/* ══════════════════════════════════════════════════════════════════════════
   AG-Grid Quartz Dark Enterprise Theme & Side Toolpanel Customization
══════════════════════════════════════════════════════════════════════════ */

/* Executive Summary KPI Dashboard Cards (Responsive 5-Card Grid) */
.planner-kpi-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 6px;
    flex: 0 0 auto;
}

@media (max-width: 1300px) {
    .planner-kpi-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .planner-kpi-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

.planner-kpi-card {
    background: linear-gradient(145deg, #1b2132 0%, #131722 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.planner-kpi-card:hover {
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.4);
}

.planner-kpi-title {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.planner-kpi-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.15;
}

.planner-kpi-sub {
    font-size: 9px;
    color: #94a3b8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-mini-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kpi-mini-label {
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    line-height: 1;
    margin-bottom: 2px;
}

.kpi-mini-val {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

/* Grid Wrapper & Side Panel Container (Flex 100% Height) */
.planner-grid-wrapper {
    background: #131722;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

:root {
    --bg-canvas: #090d16;
    --bg-card: #0f172a;
    --bg-card-border: #1e293b;
    --header-bg: #162238;
    --header-border: #233554;
    --group-header-bg: #1e293b;
    --group-header-border: #334155;
    --group-header-accent: #38bdf8;
    --group-header-text: #f8fafc;
    --pinned-col-bg: #0d1527;
    --pinned-col-border: #1e3a8a;
    --row-odd-bg: #0f172a;
    --row-even-bg: #0a1120;
    --row-hover-bg: #1e293b;
    --accent-cyan: #38bdf8;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

/* Color Scheme Presets */
.theme-slate {
    --group-header-bg: #1e293b !important;
    --group-header-border: #334155 !important;
    --group-header-accent: #38bdf8 !important;
    --group-header-text: #f8fafc !important;
}

/* ── AG GRID QUARTZ DARK BLUE PALETTE OVERRIDES ── */
.ag-theme-quartz-dark {
    --ag-background-color: var(--row-odd-bg, #0f172a);
    --ag-foreground-color: var(--text-main, #f8fafc);
    --ag-header-background-color: var(--header-bg, #162238);
    --ag-header-foreground-color: #e2e8f0;
    --ag-header-cell-hover-background-color: #1e3a8a;
    --ag-border-color: #1e293b;
    --ag-secondary-border-color: #162238;
    --ag-row-border-color: #172033;
    --ag-odd-row-background-color: var(--row-even-bg, #0a1120);
    --ag-row-hover-color: var(--row-hover-bg, #1e293b);
    --ag-selected-row-background-color: rgba(56, 189, 248, 0.15);
    --ag-accent-color: var(--accent-cyan, #38bdf8);
    --ag-input-focus-border-color: var(--accent-cyan, #38bdf8);
    --ag-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ag-font-size: 13px;
    --ag-grid-size: 6px;
    --ag-cell-horizontal-padding: 10px;
    border: none !important;
}

/* Distinct Parameter Column Pinned Styling */
.ag-theme-quartz-dark .ag-pinned-left-header,
.ag-theme-quartz-dark .ag-pinned-left-cols-container {
    background-color: var(--pinned-col-bg, #0d1527) !important;
    border-right: 2px solid #1e3a8a !important;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.35);
}

/* Distinct Week Column Headers */
.ag-theme-quartz-dark .ag-header-cell:not(.ag-pinned-left-header) {
    background-color: #162238 !important;
    border-right: 1px solid #233554 !important;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #93c5fd !important;
}

.ag-theme-quartz-dark .ag-header-cell-label {
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Parameter Group Row Styling */
.ag-theme-quartz-dark .ag-group-header-row,
.ag-theme-quartz-dark .ag-row-group-header {
    background: #1e293b !important;
    border-top: 1px solid #334155 !important;
    border-bottom: 1px solid #334155 !important;
    border-left: none !important;
    border-right: none !important;
    font-weight: 700;
    color: #f8fafc !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ONLY the pinned left Parameter Column group row gets the cyan accent left border */
.ag-theme-quartz-dark .ag-pinned-left-cols-container .ag-row-group-header,
.ag-theme-quartz-dark .ag-pinned-left-cols-container .ag-group-header-row,
.ag-theme-quartz-dark .ag-cell.ag-param-cell.ag-group-header-row,
.ag-theme-quartz-dark .ag-pinned-left-cols-container .ag-cell.ag-group-header-row {
    border-left: 4px solid #38bdf8 !important;
}

/* Ensure center week cells on group rows have zero vertical borders */
.ag-theme-quartz-dark .ag-center-cols-container .ag-row-group-header,
.ag-theme-quartz-dark .ag-center-cols-container .ag-group-header-row,
.ag-theme-quartz-dark .ag-center-cols-container .ag-cell.ag-group-header-row,
.ag-theme-quartz-dark .ag-cell.ag-group-center-cell {
    border-left: none !important;
    border-right: none !important;
}

/* Cell Types Styling */
.ag-theme-quartz-dark .cell-input {
    color: #f1f5f9;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
}

.ag-theme-quartz-dark .cell-calc {
    color: #38bdf8 !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    font-weight: 600;
}

.ag-theme-quartz-dark .cell-matrix {
    color: #fbbf24 !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
}

/* Parameter Type Badges & Indicators */
.param-type-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 7px;
    flex-shrink: 0;
}

.indicator-input {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

.indicator-calc {
    background: #38bdf8;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.7);
}

.indicator-incalc {
    background: #a855f7;
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.7);
}

.indicator-matrix {
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.7);
}

.badge-type-input {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
}

.badge-type-calc {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
}

.badge-type-incalc {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
}

.badge-type-matrix {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
}

.badge-unit-dark {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 500;
    padding: 2px 5px;
}

.ag-theme-quartz-dark .cell-editable {
    cursor: text;
    background: rgba(16, 185, 129, 0.03);
    box-shadow: inset 0 -1px 0 rgba(16, 185, 129, 0.25);
}

.ag-theme-quartz-dark .cell-editable:hover {
    background: rgba(16, 185, 129, 0.14) !important;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.45) !important;
}

.ag-theme-quartz-dark .cell-readonly {
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.12);
}

.ag-theme-quartz-dark .threshold-green {
    color: #4ade80 !important;
    font-weight: 600;
}

.ag-theme-quartz-dark .threshold-amber {
    color: #fbbf24 !important;
    font-weight: 600;
}

.ag-theme-quartz-dark .threshold-red,
.ag-theme-quartz-dark .val-negative,
.ag-theme-quartz-dark .hiring-required-warning {
    color: #f87171 !important;
    font-weight: 600;
}

.ag-theme-quartz-dark .ag-cell-inline-editing {
    background: #1e293b !important;
    border: 1px solid #10b981 !important;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    color: #ffffff !important;
    padding: 2px 6px !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   AG-Grid Integrated Right Side Toolpanel (Matching Screenshot)
══════════════════════════════════════════════════════════════════════════ */
.ag-side-toolpanel {
    background: #161b26;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    z-index: 10;
}

/* Vertical Tab Strip on Far Right */
.ag-toolpanel-tabs {
    width: 38px;
    background: #1b2130;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 8px;
    gap: 16px;
}

.ag-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    font-size: 11px;
    width: 100%;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.ag-tab-btn i {
    font-size: 14px;
    margin-bottom: 6px;
}

.ag-tab-btn span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: none;
    letter-spacing: 0.08em;
    font-size: 10.5px;
    font-weight: 600;
}

.ag-tab-btn:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
}

.ag-tab-btn.active {
    color: #38bdf8;
    background: #161b26;
    border-left: 2px solid #38bdf8;
}

/* Expanded Toolpanel Drawer Body (100% Flex Height) */
.ag-toolpanel-body {
    width: 360px;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    background: #161b26;
    padding: 1rem;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    animation: toolpanelSlideIn 0.2s ease;
}

/* Always-Visible Glowing Horizontal Scrollbar */
.ag-theme-quartz-dark .ag-body-horizontal-scroll {
    height: 14px !important;
    min-height: 14px !important;
    max-height: 14px !important;
    background: #131722 !important;
    border-top: 1px solid rgba(56, 189, 248, 0.25) !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 10 !important;
}

.ag-theme-quartz-dark .ag-body-horizontal-scroll-viewport::-webkit-scrollbar,
.ag-theme-quartz-dark .ag-body-vertical-scroll-viewport::-webkit-scrollbar,
.ag-theme-quartz-dark ::-webkit-scrollbar {
    height: 12px !important;
    width: 10px !important;
    background: #131722 !important;
}

.ag-theme-quartz-dark .ag-body-horizontal-scroll-viewport::-webkit-scrollbar-thumb,
.ag-theme-quartz-dark .ag-body-vertical-scroll-viewport::-webkit-scrollbar-thumb,
.ag-theme-quartz-dark ::-webkit-scrollbar-thumb {
    background: #3b82f6 !important;
    border-radius: 6px !important;
    border: 2px solid #131722 !important;
}

.ag-theme-quartz-dark .ag-body-horizontal-scroll-viewport::-webkit-scrollbar-thumb:hover,
.ag-theme-quartz-dark .ag-body-vertical-scroll-viewport::-webkit-scrollbar-thumb:hover,
.ag-theme-quartz-dark ::-webkit-scrollbar-thumb:hover {
    background: #38bdf8 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.9) !important;
}

@keyframes toolpanelSlideIn {
    from { width: 0; opacity: 0; }
    to { width: 360px; opacity: 1; }
}

.toolpanel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.toolpanel-header h6 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #38bdf8;
    margin: 0;
}

.toolpanel-search {
    background: #1e2638;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #f8fafc;
    font-size: 12px;
    padding: 6px 10px 6px 30px;
    width: 100%;
}

.toolpanel-search:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

/* Toolpanel Scope Form Styling */
.tp-scope-form label,
.tp-scope-form .form-label,
.ag-side-toolpanel label,
.ag-side-toolpanel .form-label {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #ffffff !important;
    margin-bottom: 5px !important;
    display: flex;
    align-items: center;
}

.tp-scope-form .form-label i,
.tp-scope-form label i,
.ag-side-toolpanel .form-label i,
.ag-side-toolpanel label i {
    color: #38bdf8 !important;
    margin-right: 4px;
}

.tp-scope-form .form-control,
.tp-scope-form .form-select,
.tp-scope-form select,
.tp-scope-form input[type="month"],
.tp-scope-form input[type="text"],
.tp-scope-form input[type="number"],
.ag-side-toolpanel .form-control,
.ag-side-toolpanel .form-select,
.ag-side-toolpanel select,
.ag-side-toolpanel input {
    background-color: #1c2333 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    padding: 7px 10px !important;
}

.tp-scope-form .form-control:focus,
.tp-scope-form .form-select:focus,
.ag-side-toolpanel .form-control:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.35) !important;
    color: #ffffff !important;
}

.tp-scope-form input[type="month"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.8);
    cursor: pointer;
}

/* ── Select2 Dark Container Overrides (Strictly Scoped to .tp-scope-form & Dark Toolpanels) ── */
.tp-scope-form .select2-container,
.tp-scope-form .select2-container .select2-selection--single,
.tp-scope-form .select2-container--default .select2-selection--single,
.tp-scope-form .select2-container--bootstrap .select2-selection--single,
.tp-scope-form .select2-container--classic .select2-selection--single {
    background-color: #1c2333 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    height: 38px !important;
    color: #ffffff !important;
}

.tp-scope-form .select2-container .select2-selection--single .select2-selection__rendered,
.tp-scope-form .select2-container--default .select2-selection--single .select2-selection__rendered,
.tp-scope-form .select2-container--bootstrap .select2-selection--single .select2-selection__rendered,
.tp-scope-form .select2-container--classic .select2-selection--single .select2-selection__rendered,
.tp-scope-form .select2-selection__rendered,
.tp-scope-form span#select2-FK_OrgID-container {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 36px !important;
    padding-left: 10px !important;
    background: transparent !important;
    opacity: 1 !important;
}

.tp-scope-form .select2-container .select2-selection--single .select2-selection__placeholder,
.tp-scope-form .select2-container--default .select2-selection--single .select2-selection__placeholder,
.tp-scope-form .select2-selection__placeholder {
    color: rgba(255, 255, 255, 0.65) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.65) !important;
}

.tp-scope-form .select2-container .select2-selection--single .select2-selection__arrow b,
.tp-scope-form .select2-container--default .select2-selection--single .select2-selection__arrow b,
.tp-scope-form .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b {
    border-color: #ffffff transparent transparent transparent !important;
}

.tp-scope-form .select2-container.select2-container--open .select2-selection--single .select2-selection__arrow b,
.tp-scope-form .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b,
.tp-scope-form .select2-container--bootstrap.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #ffffff transparent !important;
}

.tp-scope-form .select2-container .select2-selection--single .select2-selection__clear,
.tp-scope-form .select2-container--default .select2-selection--single .select2-selection__clear,
.tp-scope-form .select2-selection__clear {
    color: #cbd5e1 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-right: 6px !important;
    line-height: 36px !important;
}

.tp-scope-form .select2-container .select2-selection--single .select2-selection__clear:hover {
    color: #f87171 !important;
}

.tp-scope-form .quick-preset-chip {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.tp-scope-form .quick-preset-chip:hover {
    background: #38bdf8;
    color: #0f172a;
}

/* Tree Checkbox & Jump List Items */
.toolpanel-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.15s ease;
    user-select: none;
}

.toolpanel-item:hover {
    background: #202b3f;
    color: #38bdf8;
}

.toolpanel-item input[type="checkbox"] {
    accent-color: #38bdf8;
    margin-right: 8px;
    cursor: pointer;
}

/* Jump-to Badge */
.jump-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* Simulation Scenario Card inside Side Panel */
.sim-side-card {
    background: #1b2234;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.sim-side-card:hover {
    border-color: #38bdf8;
    transform: translateY(-1px);
}

.sim-side-card.active-scenario {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, #1b2234 100%);
}

/* ── Compact Toolpanel Action Buttons System ── */
.tp-action-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
}

.tp-action-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
}

.tp-scope-form .btn-planner-primary,
.tp-scope-form .btn-planner-outline,
.tp-scope-form .btn-planner-summary,
.tp-scope-form .btn-planner-calculate,
.tp-scope-form .btn-planner-export,
.tp-scope-form .btn-planner-approve,
.tp-scope-form .btn-planner-reject {
    height: 31px !important;
    min-height: 31px !important;
    padding: 4px 8px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.15s ease !important;
}

.tp-scope-form .btn-planner-primary:hover,
.tp-scope-form .btn-planner-outline:hover,
.tp-scope-form .btn-planner-summary:hover,
.tp-scope-form .btn-planner-calculate:hover,
.tp-scope-form .btn-planner-export:hover,
.tp-scope-form .btn-planner-approve:hover,
.tp-scope-form .btn-planner-reject:hover {
    transform: translateY(-1px) !important;
}

.tp-scope-form .btn-planner-primary i,
.tp-scope-form .btn-planner-outline i,
.tp-scope-form .btn-planner-summary i,
.tp-scope-form .btn-planner-calculate i,
.tp-scope-form .btn-planner-export i,
.tp-scope-form .btn-planner-approve i,
.tp-scope-form .btn-planner-reject i {
    font-size: 11px !important;
}

/* Ensure autoHeight grids never spawn internal vertical scrollbars */
.ag-layout-auto-height .ag-body-viewport,
.ag-layout-auto-height .ag-center-cols-viewport {
    overflow-y: hidden !important;
}

/* AG-Grid Row Drag & Drop Styling */
.ag-theme-quartz-dark .ag-cell-wrapper {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
}

.ag-theme-quartz-dark .ag-row-drag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94a3b8 !important;
    cursor: grab !important;
    width: 22px !important;
    min-width: 22px !important;
    height: 100% !important;
    margin-right: 6px !important;
    font-size: 13px !important;
    opacity: 0.9 !important;
    transition: color 0.15s ease, transform 0.15s ease, opacity 0.15s ease !important;
}

.ag-theme-quartz-dark .ag-row-drag:hover {
    color: #38bdf8 !important;
    opacity: 1 !important;
    transform: scale(1.2) !important;
}

.ag-theme-quartz-dark .ag-row-drag:active {
    cursor: grabbing !important;
}

.ag-theme-quartz-dark .ag-row-drag .ag-icon {
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

.ag-theme-quartz-dark .ag-row-drag .ag-icon-grip::before,
.ag-theme-quartz-dark .ag-row-drag .ag-icon::before {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", "FontAwesome", sans-serif !important;
    font-weight: 900 !important;
    content: "\f58e" !important; /* fa-grip-vertical */
    font-size: 13px !important;
}

.ag-theme-quartz-dark .ag-group-header-row .ag-row-drag {
    color: #38bdf8 !important;
}

.ag-theme-quartz-dark .ag-group-header-row .ag-row-drag .ag-icon-grip::before,
.ag-theme-quartz-dark .ag-group-header-row .ag-row-drag .ag-icon::before {
    content: "\f0c9" !important; /* fa-bars */
}

.ag-theme-quartz-dark .ag-row-dragging {
    opacity: 0.85 !important;
    background: rgba(30, 58, 138, 0.45) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

