/* ==========================================
   1. CORE VARIABLES & THEME
   ========================================== */
:root {
    --dqdc-bg: #f8fafc;
    --dqdc-card: #ffffff;
    --dqdc-border: #cbd5e1;
    --dqdc-primary: #1d4ed8;
    --dqdc-primary-hover: #1e40af;
    --dqdc-critical: #dc2626;
    --dqdc-text: #0f172a;
    --z-select2: 1000;
    --z-modal: 2000;
    --z-toast: 9999;
}
[data-theme="dark"] {
    --dqdc-bg: #0f172a;
    --dqdc-card: #1e293b;
    --dqdc-border: #334155;
    --dqdc-text: #f8fafc;
}

/* Full Width Breakout */
.dqdc-comp-wrapper {
    width: 96vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    background: var(--dqdc-bg); 
    padding: 24px; 
    border-radius: 8px;
    border: 1px solid var(--dqdc-border); 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--dqdc-text);
    transition: background-color 0.3s, color 0.3s;
}

.capa-header-bar { 
    display: flex; 
    justify-content: center; 
    flex-direction: column;
    align-items: center; 
    margin-bottom: 20px; 
    text-align: center;
}
.capa-header-bar h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

/* ==========================================
   2. TABS & FILTER BARS
   ========================================== */
.capa-tabs { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 20px; 
    border-bottom: 2px solid var(--dqdc-border); 
    padding-bottom: 15px; 
    flex-wrap: wrap; 
    justify-content: center;
}

.capa-tab-btn.dqdc-local-tab { 
    color: #10b981; 
    border-color: #6ee7b7; 
    background: #ecfdf5; 
}

.capa-tab-btn { 
    background: #f1f5f9; 
    border: 1px solid var(--dqdc-border); 
    font-weight: 600; 
    color: #334155; 
    cursor: pointer; 
    padding: 10px 18px; 
    border-radius: 6px; 
    transition: all 0.2s ease-in-out; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
}
.capa-tab-btn:hover { 
    background: #e2e8f0; 
    transform: translateY(-1px); 
}
.capa-tab-btn.active { 
    background: var(--dqdc-primary); 
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.2); 
    border-color: #1e3a8a; 
    color: #ffffff;
}

.capa-section-container { 
    display: none; 
    animation: fadeIn 0.3s ease-in-out; 
}
.capa-section-container.active { 
    display: block; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(8px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* ==========================================
   3. UNIVERSAL BUTTONS
   ========================================== */
.capa-btn-primary { 
    background: #1d4ed8 !important; 
    color: white !important; 
    border: 1px solid #1e40af !important; 
    padding: 10px 20px; 
    border-radius: 6px !important; 
    cursor: pointer; 
    font-weight: bold !important; 
    font-size: 14px;
    transition: all 0.2s ease-in-out !important; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important; 
}
.capa-btn-primary:hover { 
    background: #1e40af !important; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(29,78,216,0.3) !important; 
}

.capa-btn-secondary { 
    background: #e0e7ff !important; 
    color: #1d4ed8 !important; 
    border: 1px solid #c7d2fe !important; 
    padding: 10px 20px; 
    border-radius: 6px !important; 
    cursor: pointer; 
    font-weight: bold !important; 
    font-size: 14px;
    transition: all 0.2s ease-in-out !important; 
}
.capa-btn-secondary:hover { 
    background: #c7d2fe !important; 
    transform: translateY(-2px); 
    color: #1e3a8a !important; 
}

/* ==========================================
   4. TABLES & BADGES
   ========================================== */
.capa-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: var(--dqdc-card); 
    font-size: 13px; 
}
.capa-table th, .capa-table td { 
    border: 1px solid var(--dqdc-border); 
    padding: 12px; 
    vertical-align: middle; 
    word-wrap: break-word; 
}
.capa-table th { 
    background: #1e3a8a; 
    color: #ffffff; 
    text-align: left; 
    position: sticky; 
    top: 0; 
    z-index: 10; 
    white-space: nowrap; 
    font-weight: bold; 
}
.capa-table td { 
    color: var(--dqdc-text); 
}
.capa-table tbody tr:hover { 
    background: #f8fafc; 
}

.badge { 
    display: inline-block; 
    min-width: 80px; 
    text-align: center; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-size: 11px; 
    font-weight: bold; 
    color: #ffffff; 
}

[data-theme="dark"] .capa-table th { background: #0f172a; }
[data-theme="dark"] .capa-table tbody tr:hover { background: #1e293b; }

/* ==========================================
   5. DATATABLES UI OVERRIDES
   ========================================== */
.dataTables_wrapper { width: 100%; clear: both; margin-top: 15px; position: relative; z-index: 1; }
.dataTables_wrapper .dataTables_length { float: left; margin-bottom: 15px; }

/* HIDE DEFAULT SEARCH ONLY ON PERSONNEL TAB TO PREVENT COLLISION WITH CUSTOM SEARCH */
#table-personnel_wrapper .dataTables_filter { display: none !important; }

/* STYLE NATIVE SEARCH BOXES FOR ALL OTHER TABS */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--dqdc-border);
    border-radius: 4px;
    padding: 6px;
    background: var(--dqdc-card);
    color: var(--dqdc-text);
    margin-left: 8px;
    outline: none;
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--dqdc-primary);
}
/* CUSTOM BULK CHECKBOX STYLING */
.row-cb, #cb-select-all { width: 16px; height: 16px; cursor: pointer; accent-color: var(--dqdc-primary); }

.dataTables_wrapper .dataTables_info { float: left; clear: both; margin-top: 10px; font-size: 13px; color: #64748b; }
.dataTables_wrapper .dataTables_paginate { float: right; margin-top: 10px; font-size: 13px; color: #64748b; }
.dataTables_wrapper::after { content: ""; display: table; clear: both; }





/* --- Single-Table Architecture Alignment --- */
.dataTables_wrapper table.dataTable { 
    clear: both; 
    margin: 0 !important; 
    min-width: 100%; 
    width: 100%; 
    max-width: none !important; 
    border-collapse: collapse; 
    box-sizing: border-box !important; 
    table-layout: auto !important; 
}

/* Custom Scrolling Containers to replace native DataTables split-scrolling */
.dqdc-table-scroll {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 55vh;
    width: 100%;
    border-bottom: 1px solid var(--dqdc-border);
}
.dqdc-table-scroll-expired {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 40vh;
    width: 100%;
    border-bottom: 1px solid var(--dqdc-border);
}

/* Force Native Sticky Headers inside Custom Scroller */
.capa-table th { 
    position: sticky !important; 
    top: 0 !important; 
    z-index: 20 !important; 
    background: #1e3a8a !important; /* Solid background prevents body text bleed */
    box-shadow: 0 2px 2px -1px rgba(0,0,0,0.3); /* Subtle bottom shadow for depth */
}
[data-theme="dark"] .capa-table th { background: #0f172a !important; }
#table-expired-personnel th, #table-expired-vehicles th { background: #7f1d1d !important; }

/* Custom Scrollbar for our new wrapper */
.dqdc-table-scroll::-webkit-scrollbar, .dqdc-table-scroll-expired::-webkit-scrollbar { height: 12px; width: 12px; }
.dqdc-table-scroll::-webkit-scrollbar-track, .dqdc-table-scroll-expired::-webkit-scrollbar-track { background: #f8fafc; border-radius: 6px; }
.dqdc-table-scroll::-webkit-scrollbar-thumb, .dqdc-table-scroll-expired::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; border: 2px solid #f8fafc; }
.dqdc-table-scroll::-webkit-scrollbar-thumb:hover, .dqdc-table-scroll-expired::-webkit-scrollbar-thumb:hover { background: #94a3b8; }




.capa-table th, .capa-table td { 
    box-sizing: border-box !important; 
}
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--dqdc-border); 
    border-radius: 6px; 
    padding: 8px 12px; 
    margin-left: 8px; 
    outline: none; 
    background: var(--dqdc-card); 
    color: var(--dqdc-text);
    transition: all 0.2s;
}
.dataTables_wrapper .dataTables_paginate .paginate_button { padding: 6px 12px !important; border-radius: 4px; border: 1px solid transparent; cursor: pointer; color: var(--dqdc-text) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--dqdc-border) !important; border-color: var(--dqdc-border); }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { 
    background: var(--dqdc-primary) !important; 
    color: white !important; 
    border: 1px solid var(--dqdc-primary-hover); 
}

/* ==========================================
   6. KANBAN BOARD
   ========================================== */
.kanban-board { 
    display: flex; 
    gap: 15px; 
    overflow-x: auto; 
    padding-bottom: 15px; 
    justify-content: center; /* Centers items securely */
    margin: 0 auto;
    width: 100%;
}
@media (max-width: 1200px) {
    .kanban-board {
        justify-content: flex-start;
        padding-left: 10px;
        padding-right: 10px;
    }
}

.kanban-column { flex: 0 0 260px; background: var(--dqdc-card); border: 1px solid var(--dqdc-border); border-top: 4px solid var(--dqdc-primary); border-radius: 6px; display: flex; flex-direction: column; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.kanban-column h3 { margin: 0; padding: 12px; font-size: 14px; border-bottom: 1px solid var(--dqdc-border); color: var(--dqdc-text); text-align: center; font-weight: 700; }
.kanban-cards { padding: 10px; flex-grow: 1; min-height: 200px; transition: background 0.2s; background: var(--dqdc-bg); }
.kanban-cards.drag-over { background: #e2e8f0; border-radius: 4px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }
.kanban-card { background: var(--dqdc-card); padding: 12px; border: 1px solid var(--dqdc-border); border-radius: 4px; margin-bottom: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); cursor: grab; font-size: 13px; border-left: 3px solid var(--dqdc-primary); }
.kanban-card:active { cursor: grabbing; border-color: var(--dqdc-primary); transform: scale(0.98); }

/* ==========================================
   7. ANALYTICS GRID
   ========================================== */
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px; }
.analytics-card { background: var(--dqdc-card); border: 1px solid var(--dqdc-border); border-radius: 8px; padding: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.analytics-card h3 { margin-top: 0; margin-bottom: 15px; color: var(--dqdc-text); border-bottom: 1px solid var(--dqdc-border); padding-bottom: 10px; text-align: center; }

/* ==========================================
   8. WIZARD & ADD/EDIT FORMS
   ========================================== */
.comp-card { background: var(--dqdc-card); padding: 25px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border: 1px solid var(--dqdc-border); margin: 0 auto; max-width: 900px; border-top: 4px solid var(--dqdc-primary); }
.comp-card h4 { text-align: center; font-size: 16px; margin-bottom: 20px; }

.psbs-input { width: 100%; padding: 10px 12px; border: 1px solid var(--dqdc-border); border-radius: 6px; box-sizing: border-box; font-size: 13px; background: var(--dqdc-bg); color: var(--dqdc-text); transition: border-color 0.2s; }
.psbs-input:focus { outline: none; border-color: var(--dqdc-primary); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15); }
form label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: #475569; letter-spacing: 0.3px; }

/* Wizard Toggle Logic */
.wizard-progress { display: flex; border-bottom: 2px solid var(--dqdc-border); margin-bottom: 20px; justify-content: center; }
.wizard-step { padding: 12px 20px; text-align: center; color: #64748b; font-weight: bold; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color 0.3s, border-color 0.3s; }
.wizard-step.active { color: var(--dqdc-primary); border-bottom-color: var(--dqdc-primary); }

form.wizard .wizard-panel { display: none; }
form.wizard .wizard-panel.active { display: block; animation: fadeIn 0.4s ease-in-out; }
form.wizard .wizard-nav { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
form.wizard .submit-container { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }

form.single .wizard-panel { display: block !important; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px dashed var(--dqdc-border); animation: none; }
form.single .wizard-nav, form.single .wizard-progress { display: none !important; }
form.single .submit-container { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }

/* Toast Notifications */
#dqdc-toast-container { position: fixed; bottom: 20px; right: 20px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }.dqdc-toast { background: #ffffff; padding: 16px 24px; border-radius: 8px; color: #0f172a; font-size: 14px; font-weight: bold; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 12px; transform: translateX(120%); opacity: 0; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); border-left: 5px solid #cbd5e1; pointer-events: auto; }
.dqdc-toast.show { transform: translateX(0); opacity: 1; }
.dqdc-toast-success { border-left-color: #16a34a; }
.dqdc-toast-error { border-left-color: #dc2626; }
.dqdc-toast-info { border-left-color: #3b82f6; }

/* ==========================================
   9. ELITE DIGITAL DOSSIER MODAL & TIMELINE
   ========================================== */
.dqdc-modal {
    display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; 
    overflow: auto; background-color: rgba(15, 23, 42, 0.7); backdrop-filter: blur(5px);
    opacity: 0; transition: opacity 0.3s ease;
}
.dqdc-modal.show { display: flex; justify-content: center; align-items: center; opacity: 1; }

.dqdc-modal-content {
    background-color: transparent; width: 95%; max-width: 850px; position: relative;
    transform: translateY(-20px); animation: slideDown 0.3s ease forwards;
    max-height: 90vh; display: flex; flex-direction: column; border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4); border: none; padding: 0;
}
@keyframes slideDown { to { transform: translateY(0); } }

.dqdc-modal-close {
    position: absolute; top: 15px; right: 20px; color: #cbd5e1; font-size: 28px; 
    font-weight: bold; cursor: pointer; transition: color 0.2s; z-index: 10;
}
.dqdc-modal-close:hover { color: #ffffff; }

#dossier-content {
    background: #f1f5f9; border-radius: 12px; overflow-y: auto; max-height: 90vh;
    border: 1px solid #cbd5e1;
}
#dossier-content::-webkit-scrollbar { width: 8px; }
#dossier-content::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 12px; }
#dossier-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 12px; }

/* --- Elite Dossier Core Elements --- */
.ed-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    padding: 30px; display: flex; align-items: center; gap: 20px; color: white;
}
.ed-avatar {
    width: 75px; height: 75px; background: rgba(255,255,255,0.1); border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 35px; border: 2px solid #3b82f6;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.ed-title-block { flex-grow: 1; }
.ed-name { margin: 0 0 10px 0; font-size: 26px; font-weight: 800; letter-spacing: 0.5px; color: #ffffff; }
.ed-badges { display: flex; gap: 10px; }
.ed-badge { padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }
.ed-badge-active { background: rgba(16, 185, 129, 0.2); border: 1px solid #10b981; color: #34d399; }
.ed-badge-inactive { background: rgba(100, 116, 139, 0.2); border: 1px solid #64748b; color: #cbd5e1; }
.ed-badge-neutral { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255,255,255,0.2); color: #e2e8f0; }

.ed-body { padding: 25px; display: flex; flex-direction: column; gap: 20px; }

.ed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.ed-card {
    background: #ffffff; border-radius: 8px; border: 1px solid #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); overflow: hidden;
}
.ed-card-header {
    background: #e2e8f0; padding: 12px 15px; font-weight: bold; font-size: 14px;
    color: #1e293b; border-bottom: 1px solid #cbd5e1;
}
.ed-card-body { padding: 15px; }

.ed-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #e2e8f0; font-size: 13px; }
.ed-row:last-child { border-bottom: none; padding-bottom: 0; }
.ed-row span { color: #64748b; font-weight: 600; }
.ed-row strong { color: #0f172a; text-align: right; }

.ed-vault-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.ed-vault-btn {
    background: #f8fafc; border: 1px solid #cbd5e1; padding: 8px 15px; border-radius: 6px;
    font-size: 12px; font-weight: bold; color: #1d4ed8; text-decoration: none;
    transition: all 0.2s; display: flex; align-items: center; gap: 5px;
}
.ed-vault-btn:hover { background: #e0e7ff; border-color: #93c5fd; transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }

/* --- Unified Timeline --- */
ul.ed-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
ul.ed-timeline::before { content: ''; position: absolute; left: 17px; top: 0; bottom: 0; width: 2px; background: #cbd5e1; }
ul.ed-timeline li { display: flex; gap: 15px; margin-bottom: 20px; position: relative; }
ul.ed-timeline li:last-child { margin-bottom: 0; }

.ed-tl-icon {
    width: 36px; height: 36px; background: #ffffff; border: 2px solid #cbd5e1; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 15px; z-index: 1; flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.ed-tl-content { background: #f8fafc; border: 1px solid #cbd5e1; padding: 10px 15px; border-radius: 6px; flex-grow: 1; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.ed-tl-date { display: block; font-size: 11px; font-weight: bold; color: #64748b; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.ed-tl-desc { font-size: 13px; color: #0f172a; }
/* ==========================================
   10. COLUMN DRAG TO RESIZE
   ========================================== */
.capa-table th {
    resize: horizontal; /* Enables drag-to-resize on standard browsers */
    overflow: auto;     /* Required for resize to work */
    min-width: 80px;    /* Prevents columns from completely collapsing */
}
.capa-table th::-webkit-scrollbar {
    display: none;      /* Hides internal scrollbar created by overflow: auto */
}


/* Fix DataTables Dropdown Alignment */
.dataTables_wrapper .dataTables_length { margin-top: 10px; margin-bottom: 5px; }

/* Sticky Native DataTables Scrollbar Styling */
.dataTables_scrollBody::-webkit-scrollbar { height: 12px; width: 12px; }
.dataTables_scrollBody::-webkit-scrollbar-track { background: #f8fafc; border-radius: 6px; }
.dataTables_scrollBody::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; border: 2px solid #f8fafc; }
.dataTables_scrollBody::-webkit-scrollbar-thumb:hover { background: #94a3b8; }


/* --- Filter Pills --- */
.dqdc-pill {
    background: var(--dqdc-card);
    border: 1px solid var(--dqdc-border);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: var(--dqdc-text);
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.dqdc-pill:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-1px);
}
.dqdc-pill.active-filter {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px #3b82f6;
}
.dqdc-pill-clear {
    background: #f8fafc;
    border-style: dashed;
    color: #64748b;
}
.dqdc-pill-clear:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
    border-style: solid;
}
.dqdc-pill-neutral {
    background: #f1f5f9;
    color: #475569;
}
/* --- Bulk Edit Bar --- */
.dqdc-bulk-bar {
    background: var(--dqdc-bg); /* Subdues the background */
    padding: 8px 12px;
    border: 1px solid var(--dqdc-border);
    border-radius: 6px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* --- Input Normalization for Toolbar Alignment --- */
.psbs-input.toolbar-input {
    height: 34px; /* Forces exact matching heights for text inputs and dropdowns */
    padding: 4px 8px;
    box-sizing: border-box;
}

/* ==========================================
   11. SELECT2 BEAUTIFUL SEARCH OVERRIDES
   ========================================== */
.select2-container--default .select2-selection--single {
    border: 1px solid var(--dqdc-border) !important;
    border-radius: 6px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    background: var(--dqdc-bg) !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--dqdc-text) !important;
    font-size: 13px !important;
    line-height: normal !important;
    padding-left: 12px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
    right: 5px !important;
}
.select2-dropdown {
    border: 1px solid var(--dqdc-primary) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    border-radius: 6px !important;
    z-index: var(--z-select2) !important; /* Forces it above DataTables headers */
}

.select2-search__field {
    border-radius: 4px !important;
    border: 1px solid var(--dqdc-border) !important;
}
/* Inline Matrix Shrink Config */
.capa-table .select2-container--default .select2-selection--single {
    height: 28px !important;
    border-radius: 4px !important;
}
.capa-table .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 11px !important;
    padding-left: 6px !important;
}
.capa-table .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 26px !important;
}


/* ==========================================
   12. STICKY ACTION COLUMNS
   ========================================== */
.capa-table th.sticky-actions,
.capa-table td.sticky-actions {
    position: sticky !important;
    right: 0;
    background: #ffffff;
    z-index: 10;
    box-shadow: -3px 0 6px -2px rgba(0,0,0,0.1);
}
.capa-table th.sticky-actions {
    background: #1e3a8a !important;
    z-index: 21 !important;
}
[data-theme="dark"] .capa-table td.sticky-actions { background: #1e293b; }
[data-theme="dark"] .capa-table th.sticky-actions { background: #0f172a !important; }
.capa-table tbody tr:hover td.sticky-actions { background: #f8fafc; }
[data-theme="dark"] .capa-table tbody tr:hover td.sticky-actions { background: #334155; }