/**
 * 后台表格横向滚动（全端生效）
 * - 取消固定列，避免遮挡中间字段
 * - 修复 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;
}


/* pager-bottom-v4 */
/* Force Ant Table / list pagers to content bottom */
.ap-card .ant-spin-nested-loading,
.ap-card .ant-spin-container {
  display: flex;
  flex-direction: column;
  min-height: inherit;
}
.ap-card .ant-table-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.ap-card .ant-table-pagination,
.ap-card ul.ant-pagination,
.sw-pager,
.card-float-pager {
  margin-top: auto !important;
  margin-bottom: 8px !important;
  order: 99;
}
.ant-table-wrapper .ant-pagination {
  margin-top: 12px !important;
  margin-bottom: 8px !important;
}
