.@{table-prefix-cls} { 
  // 边框
  &-border.arco-table-border-header-cell {
    .arco-table-container {
      .arco-table-th {
        border-top: 0;
        &:first-child {
          border-left: 1px solid var(--color-border-1);
        }
      }
    }
  }
  &-border-header-cell .arco-table-th {
    border-left: 1px solid var(--color-border-1);
    border-top: 1px solid var(--color-border-1);
    &:first-child {
      border-left: 0;
    }
  }
  
  thead {
    .arco-table-tr {
      height: 36px;
    }
  }

  // 左侧多选、单选、展开行
  // 多选、单选右侧边框去掉
  &-tr{
    .arco-table-checkbox, 
    .arco-table-radio, 
    .arco-table-expand-icon-cell, 
    .arco-table-expand{
      padding-left: 10px;
    }

    .arco-table-checkbox, 
    .arco-table-radio{
      &+.arco-table-th, &+.arco-table-td{
        border-left: 0;
      }
    }
  }  

  // 排序筛选按钮
  .arco-table-th{
    &-item {
      font-size: 12px;
      padding: 0px 12px;
    }
    &-item.arco-table-col-has-sorter {
      .arco-table-cell-with-sorter {
        display: inline-block;
        font-size: 12px;
        padding: 0;
      }
    }
    &-item.arco-table-col-has-filter {
      .arco-table-filters {
        position: relative;
        display: inline-block;
        margin-left: 8px;
        vertical-align: -3px;

        &:hover{
          svg{
            color: rgb(var(--primary-6));
          }
        }
      }
      .arco-table-filters-open svg{
        color: rgb(var(--primary-6));
      }
    }
  }

  // 展开按钮对齐
  tbody{
    .arco-table-td.arco-table-operation.arco-table-expand-icon-cell{
      & button{
        width: 14px;
        height: 14px;
      }
    }
    .arco-table-td, .arco-table-cell{
      .arco-table-cell-expand-icon{
        & button{
          width: 14px;
          height: 14px;
        }
      }
    }
  }

  // 展开列背景色修复
  &.arco-table-hover .arco-table-expand-content:not(.arco-table-empty-row):hover .arco-table-td:not(.arco-table-col-fixed-left):not(.arco-table-col-fixed-right){
    background-color: rgb(var(--primary-1));
  }

  // 分页上边距, 中间对齐
  &-pagination .arco-pagination {
    margin-top: 16px;
  }
  .arco-pagination-size-default .arco-pagination-total-text{
    display: flex;
    align-items: center;
  }

  // 操作按钮右对齐
  &-filters-btn{
    justify-content: flex-end;
  }

  // Cea/V5拖拽表头统一，仅处理border-header
  &-border-header-cell {
    thead>.arco-table-tr {
        &>.arco-table-th {
            // border-top: 1px solid var(--color-border-3);
            // border-right: 1px solid var(--color-bg-3);
            // border-left: 0;
            border: 0;
            border-bottom: 1px solid var(--color-border-2);

            &:last-of-type{
              border-right: 0;
            }
        }
        // 处理右侧固定的表头左侧线
        &>.arco-table-th.arco-table-col-fixed-left-last {
            border-right: 0;

            &+.arco-table-th {
                // border-left: 1px solid var(--color-border-3);
                border-left: 0;
            }
        }
    }
    // 处理hover状态
    .arco-table-th{
        background-color: var(--color-bg-5);
        // border-top: 1px solid var(--color-border-3);
        border-top: 0;

        // 主题中不再处理顶部hover样式，只有可拖拽时arco-m中处理
        // &:hover{
        //     background-color: rgb(var(--primary-2));
        // }
    }

    // 处理嵌套中的表头上边框去掉
    .arco-table-td thead>.arco-table-tr {
      &>.arco-table-th{
        border-top: 0;
      }
    }
  }

  // 展开列的hover色
  &-expand-content{
    &:hover{
      .arco-table-td{
        background: rgb(var(--primary-1)) !important;
      }
    }
  }

  // 展开按钮背景色去除
  &-expand-icon-cell button,
  &-cell-expand-icon button{
    background-color: transparent;
    // border: 1px solid var(--color-text-3);

    &:hover{
      background-color: transparent;
      // border-color: var(--color-text-3);
    }
  }

  // 空状态去除底部边框线
  .arco-table-tr.arco-table-empty-row > .arco-table-td{
    border-bottom: 0;
    padding: 0 12px;
  }
}
