/**
 * @atom Tab
 * @section Tab
 * @modifiers
 *  .tab 分页标签
 *  .tab.active 标签激活态
 *  .tab-activated 标签激活态，和.tab.active一样
 *  .btn-tab 按钮型分页标签
 *  .btn-tab.active 按钮型标签激活态
 *  .btn-tab-activated 按钮型标签激活态
 * @markup
 *  <span class="tab">tab1</span>
 *  <span class="tab active">tab2</span>
 *  <span class="btn-tab">tab1</span>
 *  <span class="btn-tab active">tab2</span>
 */

.tab {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 0;
  margin-right: 10px;
  color: #999;
  fill: #999;
  border-bottom: 2px solid transparent;

  &:hover {
    cursor: pointer;
    color: $basic-imp-color;
    fill: $basic-imp-color;
  }

  &.active {
    color: $basic-imp-color;
    fill: $basic-imp-color;
    border-bottom: 2px solid $basic-imp-color;
  }
}

.tab-activated {
  @extend .tab;
  color: $basic-imp-color;
  fill: $basic-imp-color;
  border-bottom: 2px solid $basic-imp-color;
}

.btn-tab {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: $basic-imp-color;
  fill: $basic-imp-color;
  padding: 5px 25px;
  background-color: $basic-aid-gray-color;
  &.active {
    color: $basic-aid-gray-color;
    fill: $basic-aid-gray-color;
    background-color: $basic-imp-color;
  }
  &:hover {
    cursor: pointer;
  }
}

.btn-tab-activated {
  @extend .btn-tab;
  color: $basic-aid-gray-color;
  fill: $basic-aid-gray-color;
  background-color: $basic-imp-color;
}
.tab-wrap {
  width: 100%;
}
.tab-header {
  display: flex;
  justify-content: flex-start;
  font-size: 16px;
  font-weight: bold;
  color: #999;
  fill: #999;

  .tab-header-item {
    cursor: pointer;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 2px solid transparent;

    &.mgr30 {
      margin-right: 30px;
    }

    &:last-child {
      margin-right: 0;
    }

    &:hover {
      color: $basic-imp-color;
      fill: $basic-imp-color;
    }

    &.active {
      color: $basic-imp-color;
      fill: $basic-imp-color;
      border-bottom: 2px solid $basic-imp-color;
    }
    &.disabled {
      cursor: not-allowed;
      opacity: 0.6;
      &:hover {
        color: #999;
        fill: #999;
      }
    }
  }
  .trapezoid-tab-header-item {
    background-color: #f7f7f7;
    color: #666;
    font-size: 14px;
    text-align: center;
    font-weight: 400;
    height: 36px;
    margin-right: 0;
    line-height: 14px;
    padding: 10px 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-left: 1px solid #e0e2ef;
    border-top: 1px solid #e0e2ef;
    border-bottom: 1px solid #e0e2ef;

    &:last-child {
      border-right: 1px solid #e0e2ef;
    }

    &:hover {
      cursor: pointer;
    }

    &.active {
      background-color: #fff;
      font-weight: 700;
      color: #2e3b4b;
      border-bottom: none;
    }

    &.disabled {
      cursor: not-allowed;
      opacity: 0.6;
      &:hover {
        color: #999;
        fill: #999;
      }
    }
  }
}
.tab-panel {
  display: none;

  &.active {
    display: block;
  }
}
