/* 表头设置：三根横线图标放在首个字段前（表头内），不再悬浮在表格上方 */
.col-filter-th { width: 40px; min-width: 40px; padding: 4px 6px !important; text-align: center; }
.col-filter-th .col-filter-btn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; font-size: 14px; line-height: 1; color: var(--brand); background: #f7faf8; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.col-filter-th .col-filter-btn:hover { border-color: var(--brand); background: var(--brand-soft); }
.col-filter-td { width: 40px; padding: 0 !important; }
.col-filter-list { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 220px; max-height: 320px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 28px rgba(0,0,0,.16); padding: 8px; }
.col-check { display: flex; align-items: center; gap: 6px; padding: 5px 4px; font-size: 12px; color: var(--ink); white-space: nowrap; cursor: default; user-select: none; }
.col-check:hover { background: #f5f8f6; border-radius: 6px; }
.col-check input { margin: 0; cursor: pointer; }
.cc-tip { font-size: 11px; color: var(--muted); padding: 0 4px 6px; border-bottom: 1px dashed var(--line); margin-bottom: 4px; }
.cc-drag { width: 14px; text-align: center; color: #9aa7a0; font-size: 13px; line-height: 1; cursor: grab; flex: none; }
.cc-drag:active { cursor: grabbing; }
.cc-label { overflow: hidden; text-overflow: ellipsis; }
.col-check.cc-moving { background: var(--brand-soft); border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
body.cc-sorting { cursor: grabbing; }
body.cc-sorting * { cursor: grabbing !important; }

/* 表头设置弹窗（2026-11-28 v3） */
.cc-mask { position: fixed; inset: 0; background: rgba(15,37,24,.45); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cc-dialog { width: 960px; max-width: 96vw; max-height: 88vh; background: #fff; border-radius: 12px; display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.cc-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.cc-hd b { font-size: 16px; }
.cc-x { border: none; background: none; font-size: 22px; color: #9aa7a0; cursor: pointer; line-height: 1; }
.cc-tabs { display: flex; gap: 22px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.cc-tab { border: none; background: none; padding: 10px 2px; font-size: 13.5px; color: var(--muted); position: relative; cursor: pointer; }
.cc-tab.on { color: var(--brand); font-weight: 700; }
.cc-tab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); }
.cc-body { display: flex; min-height: 340px; max-height: 60vh; overflow: hidden; }
.cc-left { flex: 1; min-width: 0; overflow: auto; padding: 14px 18px; border-right: 1px solid var(--line); }
.cc-left-t, .cc-side-t { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.cc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
.cc-item { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-item input { width: 14px; height: 14px; accent-color: var(--brand); }
.cc-item.cc-fixed { opacity: .55; }
.cc-side { width: 260px; min-width: 260px; display: flex; flex-direction: column; padding: 14px 16px; overflow: hidden; }
.cc-side-list { flex: 1; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.cc-sitem { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; font-size: 13px; }
.cc-sitem:hover { background: var(--brand-soft); }
.cc-sdrag { color: #9aa7a0; cursor: grab; }
.cc-slabel { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-sx { border: none; background: none; color: #c0392b; font-size: 15px; cursor: pointer; line-height: 1; }
.cc-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 12.5px; }
.cc-ft { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); }
.cc-total td { background: #f7faf8; font-weight: 700; }
