.@{prefixCls}-section {
  position: relative;
  width: 100%;
  padding: @padding-md;
  color: @text-color;

  & + & {
    padding-top: 0;
  }

  &-flex {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  &-flex &-body {
    flex: 1 1 100%;
    min-height: 0;
  }

  &-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;

    &-bar {
      height: 32px;
      padding-left: 8px;
      background: #f4f5f7;
      border-radius: 2px;
    }
  }

  &-title {
    flex: 1;
    font-weight: 700;
    font-size: 14px;
    line-height: 22px;

    &::before {
      display: inline-block;
      width: 4px;
      height: 16px;
      margin-right: 8px;
      vertical-align: -0.2em;
      background-color: @primary-color;
      border-radius: 1px;
      content: '';
    }
  }

  &-body {
    & > .@{prefixCls}-table {
      border-radius: 6px 6px 0 0;
    }

    &.@{ant-prefix}-tabs-tabpane {
      border-top-left-radius: 0;
    }
  }

  &-footer {
    padding: 10px 0;
  }

  & > .@{ant-prefix}-tabs {
    flex: 1;

    & > .@{ant-prefix}-tabs-content-holder {
      flex: 1;

      & > .@{ant-prefix}-tabs-content {
        display: flex;
        flex-direction: column;
        height: 100%;
      }
    }
  }

  &-flex > .@{ant-prefix}-tabs,
  &-table > .@{ant-prefix}-tabs {
    min-height: 0;
  }

  &-tab {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: @space-v;
    padding: 2px;
    background-color: #f2f2f2;
    border-radius: 4px;

    .@{ant-prefix}-radio-button-wrapper-checked {
      box-shadow: none !important;
    }

    &-item {
      position: relative;
      padding: 4px @space-h;
      color: rgba(51, 51, 51, 0.65);
      font-size: 14px;
      line-height: 16px;
      text-align: center;
      background-color: transparent;
      border-radius: 4px;
      cursor: pointer;

      &-active {
        color: .primary(1) [];
        background-color: #fff;
      }
    }

    &-item:not(&-item-active) + &-item:not(&-item-active)::before {
      position: absolute;
      top: 8px;
      left: 0;
      z-index: 1;
      display: block;
      width: 1px;
      height: 12px;
      background: #dfdfdf;
      content: '';
    }
  }
}

.@{prefixCls}-section-table {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;

  .@{prefixCls}-section-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
  }
}

.@{prefixCls}-section-body > .@{prefixCls}-tab-bar:first-child {
  margin-top: -5px;
}
