.table-header {
  position: relative;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 50px;
  padding-inline: var(--ant-table-cell-padding-inline);

  &::before {
    position: absolute;
    top: 50%;
    inset-inline-end: 0;
    width: 1px;
    height: 1.6em;
    background-color: var(--ant-table-header-split-color);
    transform: translateY(-50%);
    content: '';
  }

  &-last {
    border-right: none;
  }

  &-cell {
    font-weight: var(--font-weight-medium);
  }

  &-left {
    justify-content: flex-start;
  }

  &-right {
    justify-content: flex-end;
  }

  &-center {
    justify-content: center;
  }

  &:hover {
    .sorter-header {
      .sorter {
        .anticon {
          color: var(--ant-table-header-icon-hover-color);
        }
      }
    }
  }

  .sorter-header {
    display: flex;
    flex: 1;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;

    .sorter {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-left: 4px;

      .anticon {
        font-size: 12px;
        color: var(--ant-table-header-icon-color);
        transition: color var(--ant-motion-duration-slow);
      }

      .sorter-up {
        margin-bottom: -0.125em;
      }

      .sorter-down {
        margin-top: -0.125em;
      }

      .sorter-active {
        color: var(--ant-color-primary);

        .anticon {
          color: var(--ant-color-primary);
        }
      }
    }
  }
}
