/* v11.266.0 — Generic "Columns" manager (move/show/hide) shared by
   every register table that opts in — see column_manager.js for the
   markup contract. Loaded globally in base.html like smart_picker.css
   so any page can use it without its own copy of these rules. */
.colmgr { position: relative; display: inline-flex; }
.colmgr-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff; border: 0; border-radius: 7px;
    padding: 7px 12px; font-size: .85rem; font-weight: 600;
    cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.colmgr-btn:hover { filter: brightness(1.08); }
.colmgr-menu {
    position: absolute; top: calc(100% + 4px); right: 0; width: 260px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15,23,42,.14); z-index: 1000;
    overflow: hidden;
}
.colmgr-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 10px; border-bottom: 1px solid #eef2f7;
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: #64748b;
}
.colmgr-reset {
    background: none; border: 0; color: #6366f1; font-weight: 700;
    font-size: .72rem; text-transform: none; letter-spacing: 0;
    cursor: pointer; padding: 2px 4px;
}
.colmgr-reset:hover { text-decoration: underline; }
.colmgr-list { list-style: none; margin: 0; padding: 4px; max-height: 360px; overflow-y: auto; }
.colmgr-row {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 6px; border-radius: 6px; cursor: grab;
}
.colmgr-row:hover { background: #f8fafc; }
.colmgr-row.dragging { opacity: .4; }
.colmgr-row.drag-over { background: #eef2ff; outline: 1px dashed #6366f1; }
.colmgr-handle { color: #cbd5e1; display: inline-flex; cursor: grab; }
.colmgr-label {
    display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0;
    font-size: .85rem; color: #0f172a; cursor: pointer;
}
.colmgr-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.colmgr-label input[type="checkbox"] { accent-color: #3b82f6; flex-shrink: 0; }
.colmgr-locked { color: #cbd5e1; font-size: .72rem; margin-left: auto; flex-shrink: 0; }
body.dark-mode .colmgr-menu { background: #1e293b; border-color: #334155; }
body.dark-mode .colmgr-head { border-color: #334155; color: #94a3b8; }
body.dark-mode .colmgr-row:hover { background: #0f172a; }
body.dark-mode .colmgr-label { color: #e2e8f0; }
body.dark-mode .colmgr-row.drag-over { background: #312e81; }
