:host {
    position: relative;
    z-index: 0;
}

$tabWidth: 15rem;

.title {
    cursor: pointer;
    user-select: none;
}

app-node-config-tab {
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
    left: 0;
    top: 4em;
    position: absolute;
    border-radius: 8px;

    width: $tabWidth;
    margin-left: -$tabWidth/2;
    left: 50%;

    // triangle on top:
    &::before {
      content: '';

      width: 0rem;
      height: 0rem;

      display: block;
      margin: 0 auto;

      transform: rotateZ(45deg);

      margin-top: -1rem;
      margin-bottom: -1rem;

      position: relative;

      border-bottom: 1rem solid transparent;
      border-right: 1rem solid transparent;
      border-left: 1rem solid white;
      border-top: 1rem solid white;
    }

    &::after {
      content: '';

      width: 2rem;
      height: 2rem;
      display: block;

      background: white;

      margin-top: -1rem;
      transform: rotateZ(45deg);
      margin-bottom: -1rem;

      box-shadow: 0px 0px 2px rgba(0,0,0,0.3);
      z-index: -2;
      position: absolute;
      left: 50%;
      margin-left: -1rem;
      top: 0;

    }
}
