/* 全局统一表格样式 (轻量，不与 po_execution_stats.css 冲突) */
/* 目标：所有展示型页面的表格采用统一滚动容器 + 复选框列 + sticky 表头 + 自定义滚动条 */

.lw-table-page { display:flex; flex-direction:column; height:100%; overflow:hidden; }
.lw-table-toolbar { flex-shrink:0; display:flex; align-items:center; justify-content:space-between; gap:.75rem; flex-wrap:wrap; }
.lw-table-wrapper { flex:1; display:flex; flex-direction:column; overflow:hidden; }
.lw-table-scroll { flex:1; overflow:auto; position:relative; }

/* 表格基础 */
.lw-table { width:100%; border-collapse:separate; border-spacing:0; min-width:900px; }
.lw-table thead th { position:sticky; top:0; background:#f8f9fa; z-index:10; font-weight:600; font-size:12px; white-space:nowrap; }
.lw-table td, .lw-table th { border:1px solid #dee2e6; padding:6px 6px; vertical-align:middle; font-size:12px; }
.lw-table tbody tr:hover { background:#f5f6f7; }
.lw-table tbody tr.is-selected { background:#e7f3ff; }

/* 复选框列 */
.lw-col-select { width:42px; text-align:center; }
.lw-col-index { width:56px; text-align:center; }
.lw-table input[type=checkbox] { cursor:pointer; }

/* 滚动条统一 */
.lw-table-scroll::-webkit-scrollbar { width:14px; height:14px; background:#f1f1f1; }
.lw-table-scroll::-webkit-scrollbar-track { background:#f1f1f1; }
.lw-table-scroll::-webkit-scrollbar-thumb { background:#c1c1c1; border-radius:6px; border:2px solid #f1f1f1; }
.lw-table-scroll::-webkit-scrollbar-thumb:hover { background:#a8a8a8; }

/* 横向强制最小宽触发滚动 */
.lw-wide { min-width:1200px; }

/* 数字右对齐 */
.lw-num { text-align:right; }

/* 可截断内容 */
.lw-ellipsis { max-width:180px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* 工具栏计数显示 */
.lw-selected-count { font-size:12px; color:#6c757d; }

/* 自适应高度 (可在需要的容器上增加类) */
.lw-auto-height .lw-table-scroll { max-height:calc(100vh - 220px); }

/* 小屏适配 */
@media (max-width: 768px) {
  .lw-table td, .lw-table th { padding:4px 4px; font-size:11px; }
  .lw-table { min-width:700px; }
  .lw-ellipsis { max-width:120px; }
}
