/**
 * 后台表格横向滚动（全端生效）
 * - 取消固定列，避免遮挡中间字段
 * - 修复 ap-card overflow 导致无法左右滑动
 */
.ap-card {
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
}

.ap-card .ant-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  touch-action: pan-x pan-y;
}

.ap-card .ant-table-container,
.ap-card .ant-table-content,
.ap-card .ant-table-body {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* 全端取消 Ant Design 固定列 */
.ant-table-wrapper .ant-table-cell-fix-left,
.ant-table-wrapper .ant-table-cell-fix-right {
  position: static !important;
  z-index: auto !important;
  background: inherit !important;
  box-shadow: none !important;
}

.ant-table-wrapper .ant-table-cell-fix-left-last::after,
.ant-table-wrapper .ant-table-cell-fix-right-first::before {
  display: none !important;
}

.ant-table-wrapper .ant-table-sticky-scroll,
.ant-table-wrapper .ant-table-sticky-scroll-bar {
  display: none !important;
}

/* 表头与内容同步横向滚动 */
.ant-table-wrapper table {
  min-width: max-content;
}
