%shadow {
  -webkit-box-shadow: 1px 0 20px rgba(0, 0, 0, 0.08);
  box-shadow: 1px 0 20px rgba(0, 0, 0, 0.08);
}

ui-tab-router-view {
  $transition: all 0.2s ease-in;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  overflow: auto;

  #router-tabs-list {
    @extend %shadow;
    width: 100%;
    display: flex;
    flex-direction: row;
    overflow: auto;
    margin: 0;
    padding: 0;
    background-color: $ui-trv-background;
    border-radius: 0;
    position: relative;
    min-height: calc(2em + #{$ui-trv-tab-height});
    align-items: center;

    li {
      min-width: 50px;
      height: $ui-trv-tab-height;
      background: $ui-trv-tab-background;
      color: $ui-trv-tab-color;
      border: $ui-trv-tab-border;
      border-radius: $ui-trv-tab-border-radius;
      margin: 0;
      padding: 0 1em;
      cursor: pointer;
      transition: $transition;
      position: relative;
      display: flex;
      align-items: center;

      > div {
        // label
        display: inline-block;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
      }

      > span {
        // close btn
        display: inline-flex;
        margin-left: 0.6em;
        font-weight: 100;
        color: $ui-trv-tab-close-btn-color;

        > i {
          //icon
          font-size: 1.5em;
        }
      }

      &:hover {
        background: $ui-trv-tab-background-hover;
        color: $ui-trv-tab-color-hover;
        border: $ui-trv-tab-border-hover;
        transition: $transition;

        > span {
          // close btn
          color: $ui-trv-tab-close-btn-color-hover;
        }
      }

      &.active {
        background: $ui-trv-tab-background-active;
        color: $ui-trv-tab-color-active;
        border: $ui-trv-tab-border-active;
        transition: $transition;

        > span {
          // close btn
          color: $ui-trv-tab-close-btn-color-active;
        }
      }

      &:not(:first-child) {
        margin-left: calc(#{$ui-trv-tab-border-radius} * -2);
        padding-left: calc(1em + (#{$ui-trv-tab-border-radius} * 2));
      }

      &.first,
      &.last {
        min-width: fit-content;
      }
    }
  }

  router-view {
    overflow: hidden;
  }
}
