@prefix-cls: ~'my-multiple-tabs';
@multiple-height: 50px;
@my-font-color: #1c8dff;
@my-platform-border-radius: 10px;
// html[data-theme='dark'] {
//   .@{prefix-cls} {
//     .ant-tabs-tab {
//       border-bottom: 1px solid @border-color-base;
//     }
//   }
// }

// html[data-theme='light'] {
//   .@{prefix-cls} {
//     .ant-tabs-tab:not(.ant-tabs-tab-active) {
//       border: 0;
//     }
//   }
// }

.my-multiple-tabs {
  z-index: 10;
  height: 50px;
  line-height: 50px;
  font-size: 14px;

  .ant-tabs {
    height: 50px;
    line-height: 50px;
    border-radius: 0;
  }

  .ant-tabs.ant-tabs-card {
    .ant-tabs-nav-list {
      align-items: center;
    }

    .ant-tabs-nav {
      padding-top: 2px;
      height: 50px;
      margin: 0;
      background-color: @component-background;
      border: 0;
      box-shadow: none;

      .ant-tabs-nav-container {
        height: 50px;
        padding-top: 2px;
      }

      .ant-tabs-tab {
        // height: calc(@multiple-height - 24px);
        // padding: 0 5px;
        // border-right: 1px solid #ddd;
        border: none;
        // line-height: calc(@multiple-height - 24px);
        font-weight: 400;
        font-size: 14px;
        color: #1c2532;
        background-color: @component-background;
        transition: none;
        padding: 0 13px;

        .ant-tabs-tab-remove {
          // width: 8px;
          // height: 38px;
          // font-size: 12px;
          color: inherit;
          transition: none;
          margin-left: 5px;
          margin-right: 0;
          display: flex;
          justify-content: center;
          align-items: center;

          &:hover {
            svg {
              width: 0.8em;
              fill: #1c8dff;
            }
          }
        }

        // > div {
        //   display: flex;
        //   justify-content: center;
        //   align-items: center;
        // }

        svg {
          width: 0.8em;
          fill: #999;
        }
      }

      .ant-tabs-ink-bar {
        height: 1px;
        position: absolute;
        background: #1c8dff;
        pointer-events: none;
        visibility: visible;
      }

      .ant-tabs-tab:not(.ant-tabs-tab-active) {
        &:hover {
          color: @my-font-color;
        }
      }

      .ant-tabs-tab-active {
        position: relative;
        border-top: 0;
        border-left: 0;
        transition: none;

        span {
          color: @my-font-color !important;
        }

        svg {
          width: 0.8em;
          fill: #1c8dff;
        }
      }
    }

    .ant-tabs-nav > div:nth-child(1) {
      padding: 0 8px 0 3px;
    }
  }

  .ant-tabs-tab:not(.ant-tabs-tab-active) {
    .anticon-close {
      font-size: 12px;

      svg {
        width: 0.6em;
      }
    }
  }

  .ant-dropdown-trigger {
    display: inline-flex;
  }

  &--hide-close {
    .ant-tabs-tab-remove {
      opacity: 0 !important;
    }
  }

  &-content {
    &__extra-quick,
    &__extra-redo,
    &__extra-fold {
      display: inline-block;
      width: 36px;
      height: calc(@multiple-height - 24px);
      line-height: calc(@multiple-height - 24px);
      color: #c3c8cf;
      text-align: center;
      cursor: pointer;
      border-left: 1px solid #ddd;

      &:hover {
        color: @text-color-base;
      }

      span[role='img'] {
        transform: rotate(90deg);
      }
    }

    &__extra-redo {
      span[role='img'] {
        transform: rotate(0deg);
      }
    }

    &__info {
      display: inline-block;
      width: 100%;
      height: 50px - 24;
      padding-left: 0;
      font-size: 14px;
      cursor: pointer;
      user-select: none;
    }
  }
}

.ant-tabs-dropdown-menu {
  &-title-content {
    display: flex;
    align-items: center;

    .@{prefix-cls} {
      &-content__info {
        width: auto;
        margin-left: 0;
        line-height: 28px;
      }
    }
  }

  &-item-remove {
    margin-left: auto;
  }
}

.multiple-tabs__dropdown {
  .ant-dropdown-content {
    width: 172px;
  }
}

.my-platform-page-box {
  width: calc(100vw - 70px);
  height: calc(100vh - 70px);
  background-color: #f6f7f8;
  border-radius: @my-platform-border-radius;
  padding: 15px;
  margin: 10px;

  .vben-page-wrapper-content {
    margin: 0 !important;
  }
}
