/* Network Planner theme shell.
   The Python layout keeps operational colors for states/routes; this layer
   changes neutral surfaces, text, tables, tabs, forms, charts and popovers. */

body.npl-theme-dark {
    --bg: #0d1117;
    --line: #30363d;
    --text: #c9d1d9;
    --muted: #8b949e;
    --npl-bg: #0d1117;
    --npl-surface: #161b22;
    --npl-surface-2: #0b1220;
    --npl-surface-3: #111827;
    --npl-border: #30363d;
    --npl-text: #c9d1d9;
    --npl-muted: #8b949e;
    --npl-strong: #ffffff;
    --npl-chart-grid: rgba(148, 163, 184, 0.22);
    background: #0d1117 !important;
}

body.npl-theme-light {
    --bg: #f5f3ec;
    --line: #cfc7b8;
    --text: #172033;
    --muted: #64748b;
    --npl-bg: #f5f3ec;
    --npl-surface: #ffffff;
    --npl-surface-2: #f0eadf;
    --npl-surface-3: #e7dfd0;
    --npl-border: #cfc7b8;
    --npl-text: #172033;
    --npl-muted: #64748b;
    --npl-strong: #0f172a;
    --npl-chart-grid: rgba(100, 116, 139, 0.22);
    background: #f5f3ec !important;
    color: #172033 !important;
}

#npl-workspace-root.npl-theme-dark {
    --npl-bg: #0d1117;
    --npl-surface: #161b22;
    --npl-surface-2: #0b1220;
    --npl-surface-3: #111827;
    --npl-border: #30363d;
    --npl-text: #c9d1d9;
    --npl-muted: #8b949e;
    --npl-strong: #ffffff;
    --npl-chart-grid: rgba(148, 163, 184, 0.22);
}

#npl-workspace-root.npl-theme-light {
    --npl-bg: #f5f3ec;
    --npl-surface: #ffffff;
    --npl-surface-2: #f0eadf;
    --npl-surface-3: #e7dfd0;
    --npl-border: #cfc7b8;
    --npl-text: #172033;
    --npl-muted: #64748b;
    --npl-strong: #0f172a;
    --npl-chart-grid: rgba(100, 116, 139, 0.22);
    background-color: var(--npl-bg) !important;
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light .npl-kpi-card,
#npl-workspace-root.npl-theme-light .npl-plan-shell,
#npl-workspace-root.npl-theme-light .npl-plan-header-panel,
#npl-workspace-root.npl-theme-light .npl-create-edit-zone,
#npl-workspace-root.npl-theme-light .npl-replicate-zone,
#npl-workspace-root.npl-theme-light .npl-action-group,
#npl-workspace-root.npl-theme-light .npl-command-center,
#npl-workspace-root.npl-theme-light .npl-disclosure-panel,
#npl-workspace-root.npl-theme-light .npl-selection-action-bar,
#npl-workspace-root.npl-theme-light .npl-network-map-section,
#npl-workspace-root.npl-theme-light .npl-network-map-card,
#npl-workspace-root.npl-theme-light .accordion-item,
#npl-workspace-root.npl-theme-light .card,
#npl-workspace-root.npl-theme-light details,
#npl-workspace-root.npl-theme-light .offcanvas,
#npl-workspace-root.npl-theme-light .modal-content,
#npl-workspace-root.npl-theme-light .toast {
    background-color: var(--npl-surface) !important;
    border-color: var(--npl-border) !important;
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light .npl-kpi-card div,
#npl-workspace-root.npl-theme-light .npl-plan-shell div[style*="color"],
#npl-workspace-root.npl-theme-light .npl-plan-shell span[style*="color"],
#npl-workspace-root.npl-theme-light .npl-plan-shell label[style*="color"],
#npl-workspace-root.npl-theme-light .npl-zone-title,
#npl-workspace-root.npl-theme-light .npl-field-label,
#npl-workspace-root.npl-theme-light .npl-action-group-title,
#npl-workspace-root.npl-theme-light .npl-command-center-title,
#npl-workspace-root.npl-theme-light .npl-selection-action-title,
#npl-workspace-root.npl-theme-light .npl-selection-action-status,
#npl-workspace-root.npl-theme-light .npl-network-map-title,
#npl-workspace-root.npl-theme-light summary,
#npl-workspace-root.npl-theme-light label,
#npl-workspace-root.npl-theme-light .form-check-label {
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light small,
#npl-workspace-root.npl-theme-light .text-muted,
#npl-workspace-root.npl-theme-light .npl-network-map-subtitle,
#npl-workspace-root.npl-theme-light .npl-command-center-subtitle,
#npl-workspace-root.npl-theme-light .npl-network-map-card-subtitle {
    color: var(--npl-muted) !important;
}

#npl-workspace-root.npl-theme-light .nav-tabs {
    border-color: var(--npl-border) !important;
}

#npl-workspace-root.npl-theme-light .nav-tabs .nav-link {
    background-color: transparent !important;
    border-color: transparent !important;
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light .nav-tabs .nav-link:hover {
    border-color: var(--npl-border) !important;
}

#npl-workspace-root.npl-theme-light .nav-tabs .nav-link.active {
    background-color: var(--npl-surface-3) !important;
    border-color: var(--npl-border) var(--npl-border) var(--npl-surface-3) !important;
    color: var(--npl-strong) !important;
}

#npl-workspace-root.npl-theme-light input,
#npl-workspace-root.npl-theme-light textarea,
#npl-workspace-root.npl-theme-light select,
#npl-workspace-root.npl-theme-light .form-control,
#npl-workspace-root.npl-theme-light .Select-control,
#npl-workspace-root.npl-theme-light .Select-menu-outer,
#npl-workspace-root.npl-theme-light .Select-menu,
#npl-workspace-root.npl-theme-light .DateInput_input,
#npl-workspace-root.npl-theme-light .DateRangePickerInput,
#npl-workspace-root.npl-theme-light .npl-picker-button,
#npl-workspace-root.npl-theme-light .npl-date-picker-popover,
#npl-workspace-root.npl-theme-light .npl-time-picker-popover {
    background-color: var(--npl-surface) !important;
    border-color: var(--npl-border) !important;
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light .Select-value-label,
#npl-workspace-root.npl-theme-light .Select-placeholder,
#npl-workspace-root.npl-theme-light .Select-input > input,
#npl-workspace-root.npl-theme-light .Select-option,
#npl-workspace-root.npl-theme-light .DateInput_input {
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light .Select-option {
    background-color: var(--npl-surface) !important;
}

#npl-workspace-root.npl-theme-light .Select-option.is-focused,
#npl-workspace-root.npl-theme-light .npl-time-picker-option:hover,
#npl-workspace-root.npl-theme-light .npl-date-picker-day:hover {
    background-color: var(--npl-surface-2) !important;
}

#npl-workspace-root.npl-theme-light .dash-table-container,
#npl-workspace-root.npl-theme-light .dash-table-container .dash-spreadsheet-container,
#npl-workspace-root.npl-theme-light .dash-table-container .dash-spreadsheet-inner,
#npl-workspace-root.npl-theme-light .dash-table-container .dash-spreadsheet-inner table {
    background-color: var(--npl-surface) !important;
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light .dash-table-container .dash-spreadsheet-inner th,
#npl-workspace-root.npl-theme-light .dash-table-container .dash-header {
    background-color: #e6dcca !important;
    border-color: var(--npl-border) !important;
    color: var(--npl-strong) !important;
}

#npl-workspace-root.npl-theme-light .dash-table-container .dash-spreadsheet-inner td:not([data-dash-column="profit_status"]):not([data-dash-column="active"]):not([data-dash-column="L"]):not([data-dash-column="M"]):not([data-dash-column="X"]):not([data-dash-column="J"]):not([data-dash-column="V"]):not([data-dash-column="S"]):not([data-dash-column="D"]),
#npl-workspace-root.npl-theme-light .dash-table-container .dash-cell:not([data-dash-column="profit_status"]):not([data-dash-column="active"]):not([data-dash-column="L"]):not([data-dash-column="M"]):not([data-dash-column="X"]):not([data-dash-column="J"]):not([data-dash-column="V"]):not([data-dash-column="S"]):not([data-dash-column="D"]),
#npl-workspace-root.npl-theme-light .dash-table-container .dash-filter {
    background-color: var(--npl-surface) !important;
    border-color: #ded6c8 !important;
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light .dash-table-container .dash-cell.focused,
#npl-workspace-root.npl-theme-light .dash-table-container .dash-cell.cell--selected {
    background-color: #edf7fb !important;
    border-color: #0ea5e9 !important;
}

#npl-workspace-root.npl-theme-light .popover,
#npl-workspace-root.npl-theme-light .npl-kpi-popover,
#npl-workspace-root.npl-theme-light .npl-action-popover,
body.npl-theme-light .popover,
body.npl-theme-light .npl-kpi-popover,
body.npl-theme-light .npl-action-popover {
    --bs-popover-bg: var(--npl-surface);
    --bs-popover-border-color: var(--npl-border);
    --bs-popover-header-bg: var(--npl-surface-2);
    --bs-popover-header-color: var(--npl-strong);
    --bs-popover-body-color: var(--npl-text);
    background-color: var(--npl-surface) !important;
    border-color: var(--npl-border) !important;
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light .popover-header,
#npl-workspace-root.npl-theme-light .npl-kpi-popover-header,
#npl-workspace-root.npl-theme-light .npl-action-popover-header,
body.npl-theme-light .popover-header,
body.npl-theme-light .npl-kpi-popover-header,
body.npl-theme-light .npl-action-popover-header {
    background-color: var(--npl-surface-2) !important;
    border-color: var(--npl-border) !important;
    color: var(--npl-strong) !important;
}

#npl-workspace-root.npl-theme-light .popover-body,
#npl-workspace-root.npl-theme-light .npl-kpi-popover-body,
#npl-workspace-root.npl-theme-light .npl-action-popover-body,
body.npl-theme-light .popover-body,
body.npl-theme-light .npl-kpi-popover-body,
body.npl-theme-light .npl-action-popover-body {
    color: var(--npl-text) !important;
}

body.npl-theme-light .fb-navbar {
    background: rgba(245, 243, 236, 0.9) !important;
    border-color: var(--npl-border) !important;
}

body.npl-theme-light .fb-brand-subtitle,
body.npl-theme-light .fb-nav-logout,
body.npl-theme-light .fb-navbar a {
    color: var(--npl-muted) !important;
}

body.npl-theme-light .logo-invert {
    filter: none !important;
    opacity: 0.92 !important;
}

#npl-workspace-root.npl-theme-light .js-plotly-plot,
#npl-workspace-root.npl-theme-light .js-plotly-plot .plotly,
#npl-workspace-root.npl-theme-light .js-plotly-plot .main-svg,
#npl-workspace-root.npl-theme-light .js-plotly-plot .bg,
#npl-workspace-root.npl-theme-light .js-plotly-plot .plotbg {
    background: transparent !important;
    fill: transparent !important;
}

#npl-workspace-root.npl-theme-light .js-plotly-plot text {
    fill: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light .js-plotly-plot .xgrid,
#npl-workspace-root.npl-theme-light .js-plotly-plot .ygrid,
#npl-workspace-root.npl-theme-light .js-plotly-plot .zerolinelayer path {
    stroke: var(--npl-chart-grid) !important;
}

#npl-workspace-root.npl-theme-light #npl-language-toggle,
#npl-workspace-root.npl-theme-light #npl-theme-toggle,
#npl-workspace-root.npl-theme-light #npl-help-mode-toggle,
body.npl-theme-light #npl-language-toggle,
body.npl-theme-light #npl-theme-toggle,
body.npl-theme-light #npl-help-mode-toggle {
    background-color: rgba(255, 255, 255, 0.74) !important;
    border-color: rgba(100, 116, 139, 0.26) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66) !important;
    color: var(--npl-text) !important;
}

body.npl-theme-light .npl-segmented-toggle:hover {
    background-color: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(14, 165, 233, 0.42) !important;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

body.npl-theme-light .npl-segmented-option,
body.npl-theme-light .npl-state-toggle-label {
    color: var(--npl-muted) !important;
}

body.npl-theme-light .npl-segmented-option.active,
body.npl-theme-light .npl-state-toggle-value {
    background-color: #FFFFFF !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(100, 116, 139, 0.14) !important;
    color: #111827 !important;
}

body.npl-theme-light .npl-state-toggle-value.active {
    background-color: #DDF4FF !important;
    color: #0B3558 !important;
}

#npl-workspace-root.npl-theme-light .npl-picker-button:hover {
    background-color: #FFFFFF !important;
    border-color: rgba(14, 165, 233, 0.46) !important;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.10) !important;
}

#npl-workspace-root.npl-theme-light .npl-frequency-day-label {
    background: #FFFFFF !important;
    border-color: var(--npl-border) !important;
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light .npl-frequency-day-label:hover {
    background: #EFF6FF !important;
    border-color: #1D4ED8 !important;
    color: #0F172A !important;
}

#npl-workspace-root.npl-theme-light .npl-frequency-day-label:has(.npl-frequency-day-input:checked) {
    background: #DBEAFE !important;
    border-color: #1D4ED8 !important;
    color: #0F172A !important;
}

#npl-workspace-root.npl-theme-light .npl-frequency-day-input {
    accent-color: #1D4ED8;
}

#npl-workspace-root.npl-theme-light .npl-frequency-reset {
    background: #FFFFFF !important;
    border-color: var(--npl-border) !important;
    color: var(--npl-muted) !important;
}

#npl-workspace-root.npl-theme-light .npl-frequency-reset:hover,
#npl-workspace-root.npl-theme-light .npl-frequency-reset:focus {
    background: #EFF6FF !important;
    border-color: #1D4ED8 !important;
    color: #0F172A !important;
}

body.npl-theme-light .npl-action-help-modal .modal-content {
    background: var(--npl-surface) !important;
    border-color: var(--npl-border) !important;
    color: var(--npl-text) !important;
}

body.npl-theme-light .npl-action-help-modal-header,
body.npl-theme-light .npl-action-help-modal-body,
body.npl-theme-light .npl-action-help-modal-footer,
body.npl-theme-light .npl-action-help-lead,
body.npl-theme-light .npl-action-help-line {
    color: var(--npl-text) !important;
    border-color: var(--npl-border) !important;
}

#npl-workspace-root.npl-theme-light .npl-action-button.secondary,
#npl-workspace-root.npl-theme-light .npl-action-button.neutral,
#npl-workspace-root.npl-theme-light button:not(.npl-action-button) {
    border-color: var(--npl-border) !important;
}

#npl-workspace-root.npl-theme-light .npl-market-catalog-section,
#npl-workspace-root.npl-theme-light #npl-market-catalog-section,
#npl-workspace-root.npl-theme-light #npl-market-catalog-field-help,
#npl-workspace-root.npl-theme-light #npl-market-catalog-summary-cards > div,
#npl-workspace-root.npl-theme-light .npl-advanced-shell,
#npl-workspace-root.npl-theme-light .npl-solver-section,
#npl-workspace-root.npl-theme-light .npl-quality-blockers-section,
#npl-workspace-root.npl-theme-light .npl-quality-warnings-section,
#npl-workspace-root.npl-theme-light .npl-quality-score-factors-section,
#npl-workspace-root.npl-theme-light .npl-compare-loading-region,
#npl-workspace-root.npl-theme-light .npl-settings-status-panel,
#npl-workspace-root.npl-theme-light .npl-settings-rule-card,
#npl-workspace-root.npl-theme-light .npl-table-panel {
    background-color: var(--npl-surface) !important;
    border-color: var(--npl-border) !important;
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light #npl-market-catalog-section :not(button):not(.npl-action-button)[style*="background-color: rgb(22, 27, 34)"],
#npl-workspace-root.npl-theme-light #npl-market-catalog-section :not(button):not(.npl-action-button)[style*="background-color: #161B22"],
#npl-workspace-root.npl-theme-light #npl-market-catalog-section :not(button):not(.npl-action-button)[style*="background-color: rgba(22, 27, 34"],
#npl-workspace-root.npl-theme-light [id^="npl-section-"] :not(button):not(.npl-action-button)[style*="background-color: rgb(22, 27, 34)"],
#npl-workspace-root.npl-theme-light [id^="npl-section-"] :not(button):not(.npl-action-button)[style*="background-color: #161B22"],
#npl-workspace-root.npl-theme-light [id^="npl-section-"] :not(button):not(.npl-action-button)[style*="background-color: rgba(22, 27, 34"],
#npl-workspace-root.npl-theme-light #npl-path-cover-panel :not(button):not(.npl-action-button)[style*="background-color: rgb(22, 27, 34)"],
#npl-workspace-root.npl-theme-light #npl-ortools-tail-panel :not(button):not(.npl-action-button)[style*="background-color: rgb(22, 27, 34)"],
#npl-workspace-root.npl-theme-light #npl-network-quality-panel :not(button):not(.npl-action-button)[style*="background-color: rgb(22, 27, 34)"],
#npl-workspace-root.npl-theme-light #npl-compare-handoff-panel :not(button):not(.npl-action-button)[style*="background-color: rgb(22, 27, 34)"],
#npl-workspace-root.npl-theme-light #npl-settings-offcanvas :not(button):not(.npl-action-button)[style*="background-color: rgb(22, 27, 34)"] {
    background-color: var(--npl-surface) !important;
    border-color: var(--npl-border) !important;
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light #npl-market-catalog-section [style*="rgba(13, 17, 23"],
#npl-workspace-root.npl-theme-light [id^="npl-section-"] :not(button):not(.npl-action-button)[style*="rgba(13, 17, 23"],
#npl-workspace-root.npl-theme-light #npl-settings-offcanvas :not(button):not(.npl-action-button)[style*="rgba(13, 17, 23"] {
    background-color: var(--npl-surface-2) !important;
}

#npl-workspace-root.npl-theme-light #npl-market-catalog-section :not(button)[style*="color"],
#npl-workspace-root.npl-theme-light .npl-advanced-shell :not(button)[style*="color"],
#npl-workspace-root.npl-theme-light .npl-solver-section :not(button)[style*="color"],
#npl-workspace-root.npl-theme-light #npl-section-quality :not(button)[style*="color"],
#npl-workspace-root.npl-theme-light #npl-section-reports :not(button)[style*="color"],
#npl-workspace-root.npl-theme-light #npl-section-handoff :not(button)[style*="color"],
#npl-workspace-root.npl-theme-light #npl-section-policies :not(button)[style*="color"],
#npl-workspace-root.npl-theme-light #npl-section-rules :not(button)[style*="color"],
#npl-workspace-root.npl-theme-light #npl-section-params :not(button)[style*="color"],
#npl-workspace-root.npl-theme-light #npl-section-solvers :not(button)[style*="color"],
#npl-workspace-root.npl-theme-light #npl-section-network-quality :not(button)[style*="color"],
#npl-workspace-root.npl-theme-light #npl-section-crew-feasibility :not(button)[style*="color"],
#npl-workspace-root.npl-theme-light #npl-settings-offcanvas :not(button)[style*="color"],
#npl-workspace-root.npl-theme-light .npl-table-panel,
#npl-workspace-root.npl-theme-light .npl-table-panel-title,
#npl-workspace-root.npl-theme-light .npl-settings-rule-label,
#npl-workspace-root.npl-theme-light .npl-settings-rule-value {
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light .npl-market-catalog-section :not(button)[style*="color: rgb(139, 148, 158)"],
#npl-workspace-root.npl-theme-light #npl-market-catalog-section :not(button)[style*="color: rgb(139, 148, 158)"],
#npl-workspace-root.npl-theme-light .npl-advanced-shell :not(button)[style*="color: rgb(139, 148, 158)"],
#npl-workspace-root.npl-theme-light #npl-section-quality :not(button)[style*="color: rgb(139, 148, 158)"],
#npl-workspace-root.npl-theme-light #npl-section-reports :not(button)[style*="color: rgb(139, 148, 158)"],
#npl-workspace-root.npl-theme-light #npl-section-handoff :not(button)[style*="color: rgb(139, 148, 158)"],
#npl-workspace-root.npl-theme-light #npl-section-policies :not(button)[style*="color: rgb(139, 148, 158)"],
#npl-workspace-root.npl-theme-light #npl-section-rules :not(button)[style*="color: rgb(139, 148, 158)"],
#npl-workspace-root.npl-theme-light #npl-section-params :not(button)[style*="color: rgb(139, 148, 158)"],
#npl-workspace-root.npl-theme-light #npl-section-solvers :not(button)[style*="color: rgb(139, 148, 158)"],
#npl-workspace-root.npl-theme-light #npl-section-network-quality :not(button)[style*="color: rgb(139, 148, 158)"],
#npl-workspace-root.npl-theme-light #npl-section-crew-feasibility :not(button)[style*="color: rgb(139, 148, 158)"],
#npl-workspace-root.npl-theme-light #npl-settings-offcanvas :not(button)[style*="color: rgb(139, 148, 158)"],
#npl-workspace-root.npl-theme-light .npl-table-panel-copy,
#npl-workspace-root.npl-theme-light .npl-settings-rule-detail,
#npl-workspace-root.npl-theme-light .npl-settings-status-copy {
    color: var(--npl-muted) !important;
}

#npl-workspace-root.npl-theme-light .npl-scenario-shell,
#npl-workspace-root.npl-theme-light .npl-scenario-diagnostics,
#npl-workspace-root.npl-theme-light .npl-scenario-help,
#npl-workspace-root.npl-theme-light .npl-scenario-table,
#npl-workspace-root.npl-theme-light #npl-section-quality > div,
#npl-workspace-root.npl-theme-light #npl-section-crew-feasibility > div,
#npl-workspace-root.npl-theme-light #npl-section-handoff > div {
    background-color: var(--npl-surface) !important;
    border-color: var(--npl-border) !important;
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light .npl-scenario-shell div[style*="color"],
#npl-workspace-root.npl-theme-light .npl-scenario-shell span[style*="color"],
#npl-workspace-root.npl-theme-light .npl-scenario-shell label[style*="color"],
#npl-workspace-root.npl-theme-light #npl-section-quality div[style*="color"],
#npl-workspace-root.npl-theme-light #npl-section-crew-feasibility div[style*="color"],
#npl-workspace-root.npl-theme-light #npl-section-handoff div[style*="color"] {
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light #npl-section-quality div[style*="background-color"],
#npl-workspace-root.npl-theme-light #npl-section-crew-feasibility div[style*="background-color"],
#npl-workspace-root.npl-theme-light #npl-section-handoff div[style*="background-color"] {
    background-color: var(--npl-surface) !important;
    border-color: var(--npl-border) !important;
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light .npl-scenario-shell input,
#npl-workspace-root.npl-theme-light .npl-scenario-shell textarea,
#npl-workspace-root.npl-theme-light .npl-scenario-shell select {
    background-color: #ffffff !important;
    border-color: var(--npl-border) !important;
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light .npl-scenario-subtabs .nav-link {
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light .npl-scenario-subtabs .nav-link.active {
    background-color: var(--npl-surface-3) !important;
    border-color: var(--npl-border) var(--npl-border) var(--npl-surface-3) !important;
    color: var(--npl-strong) !important;
}

#npl-workspace-root.npl-theme-light .npl-scenario-table .dash-table-container,
#npl-workspace-root.npl-theme-light .npl-scenario-table .dash-spreadsheet-container,
#npl-workspace-root.npl-theme-light .npl-scenario-table .dash-spreadsheet-inner {
    max-height: none !important;
    overflow-y: visible !important;
}

#npl-workspace-root.npl-theme-light #npl-scenario-params-table .dash-cell[data-dash-column="profit_status"] {
    border-color: #ded6c8 !important;
    font-weight: 900 !important;
}

#npl-scenario-params-table .Select-clear-zone,
#npl-workspace-root #npl-scenario-params-table .Select-clear-zone {
    display: none !important;
}

#npl-scenario-params-table .Select-control {
    cursor: pointer !important;
    min-height: 22px !important;
}

#npl-scenario-params-table .Select-value-label {
    font-weight: 900 !important;
}

#npl-scenario-params-table .Select-arrow-zone {
    width: 14px !important;
}

#npl-scenario-params-table .Select-menu-outer {
    min-width: 76px !important;
    z-index: 1200 !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-deterministic-header,
#npl-workspace-root.npl-theme-light .npl-gantt-sidebar-header,
#npl-workspace-root.npl-theme-light .npl-gantt-hour-band {
    background-color: var(--npl-surface-2) !important;
    border-color: var(--npl-border) !important;
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-day-band,
#npl-workspace-root.npl-theme-light .npl-gantt-time-header {
    background-color: var(--npl-surface) !important;
    border-color: var(--npl-border) !important;
    color: var(--npl-text) !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-root {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-slicer {
    background: #F8FAFC !important;
    border-color: #CBD5E1 !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-slicer-button {
    background: #FFFFFF !important;
    border-color: #94A3B8 !important;
    color: #0F172A !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-slicer-button:hover {
    background: #EFF6FF !important;
    border-color: #1D4ED8 !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-slicer-range-label,
#npl-workspace-root.npl-theme-light .npl-gantt-day-label,
#npl-workspace-root.npl-theme-light .npl-gantt-hour-label,
#npl-workspace-root.npl-theme-light .npl-gantt-hour-label-major {
    color: #1D4ED8 !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-slicer-days {
    background: #FFFFFF !important;
    border-color: #93C5FD !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-slicer-day {
    border-color: #DBEAFE !important;
    color: #475569 !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-slicer-day:hover {
    background: #DBEAFE !important;
    color: #1D4ED8 !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-slicer-window {
    background: rgba(37, 99, 235, 0.14) !important;
    border-color: #1D4ED8 !important;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.16) !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-deterministic-header,
#npl-workspace-root.npl-theme-light .npl-gantt-sidebar-header,
#npl-workspace-root.npl-theme-light .npl-gantt-hour-band,
#npl-workspace-root.npl-theme-light .npl-gantt-root .rct-header-root,
#npl-workspace-root.npl-theme-light .npl-gantt-root .rct-sidebar-header,
#npl-workspace-root.npl-theme-light .npl-gantt-root .rct-calendar-header,
#npl-workspace-root.npl-theme-light .npl-gantt-root .rct-dateHeader,
#npl-workspace-root.npl-theme-light .npl-gantt-root .rct-label-group,
#npl-workspace-root.npl-theme-light .npl-gantt-root .rct-label {
    background: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-day-band,
#npl-workspace-root.npl-theme-light .npl-gantt-deterministic-body,
#npl-workspace-root.npl-theme-light .npl-gantt-canvas,
#npl-workspace-root.npl-theme-light .npl-gantt-root .rct-scroll {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-sidebar-rows,
#npl-workspace-root.npl-theme-light .npl-gantt-root .rct-sidebar {
    background: #F8FAFC !important;
    border-color: #CBD5E1 !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-sidebar-row,
#npl-workspace-root.npl-theme-light .npl-gantt-root .rct-sidebar .rct-sidebar-row {
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-sidebar-capacity {
    color: #475569 !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-row-even {
    background: #FFFFFF !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-row-odd {
    background: #F8FAFC !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-row,
#npl-workspace-root.npl-theme-light .npl-gantt-root .rct-horizontal-lines .rct-hl-even,
#npl-workspace-root.npl-theme-light .npl-gantt-root .rct-horizontal-lines .rct-hl-odd {
    border-color: #E2E8F0 !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-gridline,
#npl-workspace-root.npl-theme-light .npl-gantt-root .rct-vertical-lines .rct-vl {
    border-left-color: #CBD5E1 !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-gridline-major {
    border-left-color: #94A3B8 !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-pixi-tooltip {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16) !important;
    color: #0F172A !important;
}

#npl-workspace-root.npl-theme-light .npl-gantt-pixi-tooltip-time {
    color: #1D4ED8 !important;
}

#npl-workspace-root.npl-theme-dark .npl-scenario-table .dash-table-container,
#npl-workspace-root.npl-theme-dark .npl-scenario-table .dash-spreadsheet-container,
#npl-workspace-root.npl-theme-dark .npl-scenario-table .dash-spreadsheet-inner {
    max-height: none !important;
    overflow-y: visible !important;
}

#npl-workspace-root.npl-theme-light .npl-scenario-table .dash-spreadsheet-container.dash-spreadsheet,
#npl-workspace-root.npl-theme-dark .npl-scenario-table .dash-spreadsheet-container.dash-spreadsheet {
    max-height: none !important;
    overflow-y: visible !important;
}

.npl-ada-loader {
    --npl-ada-logo-filter-rest: brightness(0) invert(1) drop-shadow(0 0 7px rgba(255, 255, 255, 0.72)) drop-shadow(0 0 16px rgba(34, 197, 94, 0.18));
    --npl-ada-logo-filter-peak: brightness(0) invert(1) drop-shadow(0 0 11px rgba(255, 255, 255, 0.92)) drop-shadow(0 0 24px rgba(34, 197, 94, 0.28));
    --npl-ada-logo-filter-settle: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.78)) drop-shadow(0 0 18px rgba(34, 197, 94, 0.2));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    box-shadow:
        0 10px 30px rgba(2, 6, 23, 0.24),
        0 0 22px rgba(255, 255, 255, 0.12);
}

.npl-ada-loader-logo {
    width: 34px;
    height: auto;
    object-fit: contain;
    filter: var(--npl-ada-logo-filter-rest);
    transform-origin: center;
    will-change: filter, opacity, transform;
    animation: npl-ada-logo-breathe 3.2s ease-in-out infinite;
}

.npl-ada-loader-text {
    color: #f8fafc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

@keyframes npl-ada-logo-breathe {
    0%,
    100% {
        filter: var(--npl-ada-logo-filter-rest);
        opacity: 0.88;
        transform: scale(1);
    }

    42% {
        filter: var(--npl-ada-logo-filter-peak);
        opacity: 1;
        transform: scale(1.09);
    }

    62% {
        filter: var(--npl-ada-logo-filter-settle);
        opacity: 0.95;
        transform: scale(1.025);
    }
}

@media (prefers-reduced-motion: reduce) {
    .npl-ada-loader-logo {
        animation: none;
        opacity: 1;
        transform: scale(1);
    }
}

#npl-workspace-root.npl-theme-light .npl-ada-loader,
body.npl-theme-light .npl-ada-loader {
    --npl-ada-logo-filter-rest: saturate(1.15) brightness(0.92) drop-shadow(0 0 6px rgba(34, 197, 94, 0.32));
    --npl-ada-logo-filter-peak: saturate(1.25) brightness(1.06) drop-shadow(0 0 10px rgba(34, 197, 94, 0.44));
    --npl-ada-logo-filter-settle: saturate(1.18) brightness(0.98) drop-shadow(0 0 7px rgba(34, 197, 94, 0.36));
    color: #047857;
    background: rgba(16, 185, 129, 0.09);
    border-color: rgba(34, 197, 94, 0.34);
    box-shadow:
        0 10px 26px rgba(15, 23, 42, 0.08),
        0 0 18px rgba(34, 197, 94, 0.16);
}

#npl-workspace-root.npl-theme-light .npl-ada-loader-text,
body.npl-theme-light .npl-ada-loader-text {
    color: #047857;
}

.npl-compare-loading-region {
    display: grid;
    gap: 12px;
    min-height: 92px;
}

.npl-compare-operation-status {
    min-height: 0;
    color: var(--npl-muted);
    font-size: 11px;
    line-height: 1.45;
}

.npl-compare-operation-status:empty {
    display: none;
}

.npl-command-center {
    display: grid;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid var(--npl-border);
    border-radius: 8px;
    background: var(--npl-surface);
    color: var(--npl-text);
}

.npl-command-bar,
.npl-command-center-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 58px;
    min-width: 0;
}

.npl-command-center-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 240px;
    flex-wrap: wrap;
    min-width: 190px;
}

.npl-command-center-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--npl-strong);
    white-space: nowrap;
}

.npl-command-center-subtitle {
    display: none;
}

.npl-command-bar-actions,
.npl-command-center-cta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.npl-edit-flow-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
}

.npl-action-button:disabled {
    cursor: not-allowed !important;
    opacity: 0.42;
    filter: saturate(0.45);
    box-shadow: none !important;
}

.npl-action-button:disabled:hover {
    transform: none !important;
}

.npl-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid rgba(245, 158, 11, 0.42);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.npl-pending-moves-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid rgba(100, 116, 139, 0.38);
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.12);
    color: var(--npl-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.npl-pending-moves-badge.is-hidden {
    display: none !important;
}

.npl-pending-moves-badge.is-active {
    border-color: rgba(14, 165, 233, 0.48);
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
}

.npl-workflow-status-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    min-height: 0;
}

.npl-workflow-status-line #npl-edit-mode-banner {
    flex: 1 1 360px;
    margin-top: 0 !important;
}

.npl-workflow-status-line #npl-action-msg {
    flex: 0 1 auto;
    margin-top: 0 !important;
}

.npl-workflow-status-line #npl-gantt-health {
    flex: 0 0 auto;
    min-height: 0;
}

.npl-workflow-status-line #npl-gantt-health > * {
    margin-bottom: 0 !important;
    white-space: nowrap;
}

.npl-status-badge-current,
.npl-status-badge-export-ready {
    border-color: rgba(34, 197, 94, 0.42);
    background: rgba(34, 197, 94, 0.12);
    color: #047857;
}

.npl-status-badge-stale {
    border-color: rgba(245, 158, 11, 0.42);
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.npl-disclosure-panel {
    border: 1px solid var(--npl-border);
    border-radius: 8px;
    background: var(--npl-surface-2);
    overflow: hidden;
}

.npl-disclosure-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    padding: 8px 10px;
    cursor: pointer;
    color: var(--npl-strong);
    font-size: 12px;
    font-weight: 700;
    list-style: none;
}

.npl-disclosure-panel > summary::-webkit-details-marker {
    display: none;
}

.npl-disclosure-panel > summary::after {
    content: "+";
    color: var(--npl-muted);
    font-size: 14px;
    font-weight: 700;
}

.npl-disclosure-panel[open] > summary::after {
    content: "-";
}

.npl-command-tools-panel {
    position: relative;
    flex: 0 0 auto;
}

.npl-command-tools-panel > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--npl-border);
    border-radius: 6px;
    background: var(--npl-surface-2);
    color: var(--npl-strong);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    list-style: none;
    white-space: nowrap;
}

.npl-command-tools-panel > summary::-webkit-details-marker {
    display: none;
}

.npl-command-tools-panel > summary::after {
    content: "+";
    margin-left: 8px;
    color: var(--npl-muted);
    font-size: 13px;
    font-weight: 700;
}

.npl-command-tools-panel[open] > summary {
    border-color: rgba(14, 165, 233, 0.42);
    background: rgba(14, 165, 233, 0.10);
}

.npl-command-tools-panel[open] > summary::after {
    content: "-";
}

.npl-command-tools-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    display: grid;
    width: min(420px, calc(100vw - 32px));
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--npl-border);
    border-radius: 8px;
    background: var(--npl-surface);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.npl-tools-section {
    display: grid;
    gap: 6px;
}

.npl-tools-section-title {
    color: var(--npl-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.npl-command-panel-actions {
    display: grid;
    gap: 6px;
    padding: 0;
}

.npl-command-panel-actions-auto {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.npl-command-panel-actions-selection,
.npl-command-panel-actions-more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.npl-selection-action-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--npl-border);
    border-radius: 8px;
    background: var(--npl-surface-2);
}

.npl-selection-action-bar.is-idle {
    display: none;
}

.npl-selection-action-bar.is-active {
    display: flex;
    border-color: rgba(14, 165, 233, 0.55);
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.16);
}

.npl-selection-action-copy {
    display: grid;
    flex: 0 0 auto;
    gap: 2px;
    min-width: 120px;
}

.npl-selection-action-status {
    color: var(--npl-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.npl-selection-action-title {
    color: var(--npl-strong);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.npl-selection-action-buttons {
    flex: 1 1 auto;
    grid-template-columns: repeat(6, minmax(78px, 1fr));
}

.npl-command-center .npl-action-button-wrap {
    min-width: 0;
}

.npl-command-center .npl-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-height: 32px;
    padding: 6px 10px;
    border: 0;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.npl-action-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1;
}

.npl-command-tools-menu .npl-action-button,
.npl-selection-action-buttons .npl-action-button {
    width: 100%;
}

.npl-command-bar-actions > .npl-action-button-wrap .npl-action-button,
.npl-command-center-cta .npl-action-button {
    min-width: 112px;
    min-height: 36px;
    font-size: 12px;
}

.npl-command-center .npl-action-help-overlay {
    top: -6px;
    right: -6px;
}

.npl-edit-flow-actions .npl-action-button {
    min-width: 92px;
}

.npl-compat-hidden-action {
    display: none !important;
}

@media (max-width: 920px) {
    .npl-command-bar {
        flex-wrap: wrap;
    }

    .npl-command-center-copy {
        flex: 1 1 100%;
    }

    .npl-edit-flow-actions {
        justify-content: flex-start;
        flex: 1 1 auto;
    }
}

@media (max-width: 760px) {
    .npl-command-bar,
    .npl-command-center-main,
    .npl-command-center-cta {
        align-items: stretch;
        flex-direction: column;
        min-height: auto;
    }

    .npl-command-bar-actions,
    .npl-command-center-cta {
        width: 100%;
    }

    .npl-command-bar-actions {
        align-items: stretch;
    }

    .npl-edit-flow-actions {
        width: 100%;
    }

    .npl-edit-flow-actions .npl-action-button-wrap {
        flex: 1 1 0;
    }

    .npl-edit-flow-actions .npl-action-button {
        width: 100%;
        min-width: 0;
    }

    .npl-command-tools-panel {
        flex: 0 0 auto;
    }

    .npl-command-tools-panel > summary {
        width: 100%;
    }

    .npl-command-tools-menu {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
    }

    .npl-command-panel-actions-auto,
    .npl-command-panel-actions-selection,
    .npl-command-panel-actions-more {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .npl-selection-action-bar.is-active {
        display: grid;
    }

    .npl-selection-action-copy {
        min-width: 0;
    }

    .npl-status-badge {
        justify-content: center;
        width: 100%;
    }

    .npl-pending-moves-badge {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .npl-command-panel-actions-auto,
    .npl-command-panel-actions-selection,
    .npl-command-panel-actions-more {
        grid-template-columns: 1fr;
    }
}
