/**Variable**/

.vhb-table {
  .vhb-table--header-wrapper {
    color: $vhb-table-header-font-color;
    .vhb-table--header-border-line {
      position: absolute;
      left: 0;
      bottom: 0;
      height: 0;
      border-bottom: $vhb-table-border-width solid $vhb-table-border-color;
    }
  }
  /*排序*/
  .vhb-cell--sort {
    width: 1.5em;
    height: 1.35em;
    vertical-align: middle;
    text-align: center;
    display: inline-block;
    position: relative;
  }
  .vhb-sort--asc-btn,
  .vhb-sort--desc-btn {
    position: absolute;
    left: 0.35em;
    color: $vhb-table-column-icon-border-color;
    width: 1em;
    text-align: center;
    cursor: pointer;
    &:hover {
      color: $vhb-table-font-color;
    }
    &.sort--active {
      color: $vhb-primary-color;
    }
  }
  .vhb-sort--asc-btn {
    top: -0.15em;
  }
  .vhb-sort--desc-btn {
    bottom: -0.15em;
  }
}

.vhb-header--column {
  position: relative;
  font-weight: $vhb-table-header-font-weight;
  user-select: none;
  &.col--ellipsis {
    & > .vhb-cell {
      display: flex;
      align-items: center;
      .vhb-cell--title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      & > i,
      & > span {
        &:not(.vhb-cell--title) {
          flex-shrink: 0;
        }
      }
    }
  }
  .vhb-cell--required-icon {
    display: inline-block;
    color: $vhb-table-validate-error-color;
    width: 0.8em;
    height: 1em;
    line-height: 1em;
    font-family: $vhb-icon-font-family;
    font-weight: normal;
    position: relative;
    &:before {
      content: "*";
      position: absolute;
      left: 0;
      top: 0.2em;
    }
  }
  // .vhb-cell--required-icon,
  // .vhb-cell--edit-icon,
  // .vhb-cell-help-icon,
  // .vhb-cell--title {
  //   vertical-align: middle;
  // }
  .vhb-cell--required-icon {
    margin-right: 0.1em;
  }
  .vhb-cell--edit-icon,
  .vhb-cell-help-icon {
    margin-right: 0.2em;
  }
  .vhb-cell-help-icon {
    cursor: help;
  }
  .vhb-resizable {
    position: absolute;
    right: -7px;
    bottom: 0;
    width: 14px;
    height: 100%;
    text-align: center;
    z-index: 1;
    cursor: col-resize;
    &.is--line {
      &:before,
      &:after {
        content: "";
        display: inline-block;
        vertical-align: middle;
      }
      &:before {
        width: 1px;
        height: 50%;
        background-color: $vhb-table-resizable-line-color;
      }
      &:after {
        width: 0;
        height: 100%;
      }
    }
  }
}

.vhb-table--fixed-right-wrapper {
  .vhb-header--column {
    .vhb-resizable {
      right: auto;
      left: -7px;
    }
  }
}
