.rs-table,
.rs-edit-table {
  .ant-table-body {
    overflow-y: auto !important;
  }

  /* 针对 antd v5+，建议先重置滚动条相关属性 */
  .ant-table-body,
  .ant-table-content {
    scrollbar-width: auto;
    /* "auto" or "thin" */
    scrollbar-color: #b2b2b3 #fff;

    /* 滑块颜色 轨道颜色 */
    /* 兼容基于 WebKit 的浏览器 (Chrome, Safari, Edge) */
    /* 定义滚动条整体样式（宽度/高度）*/
    &::-webkit-scrollbar {
      width: 8px;
      /* 设置垂直滚动条的宽度 */
      height: 8px;
      /* 设置水平滚动条的高度 */
    }

    /* 定义滚动条轨道（背景）*/
    &::-webkit-scrollbar-track {
      background-color: #fff;
      /* 轨道颜色 */
      border-radius: 4px;
    }

    /* 定义滚动条滑块 */
    &::-webkit-scrollbar-thumb {
      background-color: #b2b2b3;
      /* 滑块颜色 */
      border-radius: 4px;
      border: 1px solid #f0f0f0;
      /* 可选：创建边框效果 */
    }

    /* 定义滑块在鼠标悬浮时的样式 */
    &::-webkit-scrollbar-thumb:hover {
      background-color: #666;
      /* 鼠标悬浮时滑块的颜色 */
    }
  }

  .pagination-wrapper {
    padding: 6px 24px;
  }
}

/**
 * 表格checkbox列宽度固定
 */
.rs-table .ant-table-container {
  .ant-table-selection-column {
    width: 48px !important;
  }

  .ant-table-cell-scrollbar {
    display: none !important;
  }

  .ant-form-item-has-error {
    text-align: left;
  }
}

.rs-edit-table .ant-table-container {
  .ant-table-selection-column {
    width: 48px !important;
  }

  .ant-table-cell-scrollbar {
    display: none !important;
  }
}

.rs-table-draging-header {
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.8);
  font-weight: 600;
  font-size: 14px;
  min-height: 32px;
  width: 150px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  position: relative;
  top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
