/* BECO U4 v1.7.3 — structural component integration, all screens.
   No database, model, or business logic changes. */
:root[data-u4-theme="light"]{
 --v170-bg:#dfe7ed;--v170-canvas:#e6edf1;--v170-surface:#f1f5f7;--v170-panel:#edf3f5;
 --v170-shade:#dbe6eb;--v170-border:#bfced7;--v170-brand-soft:#cce2e0;
 --v170-ink:#1b3448;--v170-ink-strong:#112b3f;--v170-muted:#536c7f;--v170-faint:#657d8d;
 --v170-drop:0 2px 10px rgba(20,43,60,.04);
 --u4-surface:#f1f5f7;--u4-canvas:#e3ebf0;--u4-line:#c1d1db;--u4-ink:#19374a;--u4-muted:#526b7a;
}
:root[data-u4-theme="dark"]{
 --u4-surface:#1b3045;--u4-canvas:#101d2c;--u4-line:#334b60;--u4-ink:#e3eef7;--u4-muted:#9fb7c9;
}
/* Unified left nav: same DOM and links for budget, analytics, importer. */
body .u4-unified-side{box-sizing:border-box!important;width:156px!important;min-width:156px!important;background:var(--u4-canvas)!important;border-right:1px solid var(--u4-line)!important;padding:12px 8px!important;gap:3px!important;display:flex!important;flex-direction:column!important;min-height:100vh!important;align-self:stretch;position:sticky;top:0;height:100vh;overflow-y:auto;scrollbar-width:thin;color:var(--u4-ink)!important}
body .u4-unified-side .u4-unified-brand{display:flex!important;gap:9px!important;align-items:center!important;padding:0 3px 13px!important;margin:0 0 9px!important;border-bottom:1px solid var(--u4-line)!important}
body .u4-unified-side .brand-b{display:grid!important;place-items:center!important;flex:none!important;width:33px!important;height:33px!important;background:#236c72!important;border-radius:9px!important;overflow:hidden!important;padding:3px!important}
body .u4-unified-side .brand-b img{width:100%;height:100%;object-fit:contain}
body .u4-unified-side .u4-unified-brand strong{font-size:15px!important;font-weight:800!important;color:var(--u4-ink)!important}
body .u4-unified-side .u4-unified-brand small{font-size:7.5px!important;letter-spacing:.08em;color:var(--u4-muted)!important;display:block!important;margin-top:2px!important}
body .u4-unified-side .side-heading{color:#258d91!important;font-weight:850!important;font-size:9px!important;letter-spacing:.12em!important;margin:16px 3px 7px!important;padding:0!important}
body .u4-unified-side .side-link,body .u4-unified-side .u4-front-link{display:flex!important;gap:8px!important;align-items:center!important;min-height:30px!important;font-size:11px!important;line-height:1.25!important;font-weight:600!important;border:1px solid transparent!important;border-radius:8px!important;padding:7px 7px!important;background:transparent!important;color:var(--u4-ink)!important;text-decoration:none!important}
body .u4-unified-side .side-link span:first-child{font-size:13px!important;width:15px!important;flex:none!important;text-align:center}
body .u4-unified-side .side-link:hover,body .u4-unified-side .u4-front-link:hover{background:var(--v170-shade)!important;color:var(--u4-ink)!important;border-color:var(--u4-line)!important}
body .u4-unified-side .side-link.current{background:var(--v170-brand-soft)!important;color:var(--v170-ink-strong)!important;border:1px solid #48a69f!important;border-left:3px solid #21a79d!important;font-weight:790!important;padding-left:5px!important}
html[data-u4-theme="dark"] body .u4-unified-side .side-link.current{color:#e2fff8!important}
body .u4-unified-fronts{display:flex;flex-direction:column;gap:1px}
body .u4-unified-side .u4-front-link{font-size:10.5px!important;min-height:28px!important}
.u4-side-dot{width:7px;height:7px;border-radius:50%;flex:none;display:inline-block}
body .u4-unified-side .u4-front-link span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:normal;flex:1}
.u4-nav-loading{font-size:10px;padding:7px;color:var(--u4-muted)}
body .u4-unified-side .side-end{font-size:9px!important;color:var(--u4-muted)!important;border-top:1px solid var(--u4-line)!important;padding:12px 4px!important;margin-top:auto!important}
.u4-online-dot{display:inline-block;width:7px;height:7px;background:#3cae91;border-radius:50%;margin-right:4px}
html[data-u4-theme="light"] body{background:#e4ebf0!important;color:#19374a}
html[data-u4-theme="light"] body .app-frame .shell,html[data-u4-theme="light"] body.u4-v164-analytics .workspace,html[data-u4-theme="light"] body.u4-v164-budget .workspace{background:#e4ebf0!important}
html[data-u4-theme="light"] .u4-v164-frame .top,html[data-u4-theme="light"] .u4-v164-frame .an-title,html[data-u4-theme="light"] .u4-v164-frame .an-card,html[data-u4-theme="light"] .u4-v164-frame .an-kpi,html[data-u4-theme="light"] .u4-v164-frame .metric,html[data-u4-theme="light"] .u4-v164-frame .panel{background:#f0f5f7!important;border-color:#c4d2db!important;color:#1a3649!important}
html[data-u4-theme="light"] .u4-v164-frame input,html[data-u4-theme="light"] .u4-v164-frame select,html[data-u4-theme="light"] .u4-v164-frame textarea{background:#e6eef2!important;color:#173347!important;border-color:#bfcfda!important}
html[data-u4-theme="light"] .u4-v164-frame .an-kpi.highlight{background:#286b68!important;color:white!important}
html[data-u4-theme="light"] .u4-v164-frame .an-notes h2{background:#2b6e69!important;color:#f8ffff!important}
html[data-u4-theme="light"] body .app-frame .sidebar{background:#dce7ec!important;color:#173248!important}
html[data-u4-theme="light"] body .app-frame .sidebar .side-link:hover{background:#cbdde3!important;color:#132d40!important}
html[data-u4-theme="light"] body .app-frame .sidebar .side-link.active{background:#c3e2e1!important;color:#07504f!important}
html[data-u4-theme="light"] body .app-frame .top{background:#eaf1f5!important;border-color:#c1cfd8!important}
html[data-u4-theme="light"] body #home .v172-front-row,html[data-u4-theme="light"] body #detail .v170-civil-main,html[data-u4-theme="light"] body #detail .v170-civil-side{box-shadow:0 2px 9px #293e4b0a!important}
/* One-line activity titles; preserve inline editing and tool controls. */
#detail.v172-front-view #activityTable .v171-task-subline{display:none!important}
#detail.v172-front-view #activityTable .v171-activity-cell{display:flex!important;align-items:center!important;min-width:0!important;gap:0!important}
#detail.v172-front-view #activityTable .task-row td{height:39px!important;padding-top:4px!important;padding-bottom:4px!important}
#detail.v172-front-view #activityTable .task-row .grid-title{min-height:25px!important;height:27px!important;max-height:54px!important;line-height:1.3!important;padding:4px 5px!important}
#detail.v172-front-view #activityTable .task-title-cell{min-width:260px}
/* KPI components: icon + number + label in compact physical blocks. */
#detail.v172-front-view #detailMetrics{gap:8px!important;margin-top:8px!important;margin-bottom:8px!important}
#detail.v172-front-view #detailMetrics .v173-compact-kpi{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;min-height:61px!important;padding:9px 10px!important}
#detail.v172-front-view #detailMetrics .v173-kpi-symbol{width:31px!important;height:31px!important;flex:none!important;display:grid!important;place-items:center!important;border-radius:9px!important;background:var(--v170-brand-soft)!important;color:var(--v170-brand)!important}
#detail.v172-front-view #detailMetrics .v173-kpi-symbol svg{width:17px;height:17px}
#detail.v172-front-view #detailMetrics .v173-kpi-content{display:grid!important;gap:2px!important;min-width:0!important;line-height:1.15}
#detail.v172-front-view #detailMetrics .v173-kpi-content small{font-size:9px!important;font-weight:650!important}
#detail.v172-front-view #detailMetrics .v173-kpi-content strong{font-size:18px!important;line-height:1.1!important;font-variant-numeric:tabular-nums}
#detail.v172-front-view #detailMetrics .v173-kpi-content span{font-size:9px!important;color:var(--v170-muted)!important}
#detail.v172-front-view #detailMetrics .u4-detail-kpi{min-height:60px!important;display:flex!important;align-items:center!important;gap:8px!important;justify-content:flex-start!important}
#detail.v172-front-view #detailMetrics .u4-detail-kpi-icon{flex:none}
#detail.v172-front-view #detailMetrics .u4-detail-kpi-body{display:grid!important;gap:2px!important}
#detail.v172-front-view .v170-civil-pulse{grid-template-columns:minmax(260px,.75fr) minmax(0,1.75fr)!important;align-items:stretch!important;gap:8px!important}
#detail.v172-front-view .v173-progress-panel{padding:12px 16px!important;justify-content:flex-start!important;gap:5px!important}
#detail.v172-front-view .v173-progress-heading{display:flex!important;align-items:center!important;gap:12px!important;margin:0 0 5px!important}
#detail.v172-front-view .v173-progress-symbol{display:grid;place-items:center;width:39px;height:39px;flex:none;background:var(--v170-brand-soft);border:1px solid var(--v170-border);border-radius:10px;color:var(--v170-brand)}
#detail.v172-front-view .v173-progress-symbol svg{width:21px;height:21px}
#detail.v172-front-view .v173-progress-panel .v170-civil-rate{display:flex!important;align-items:baseline!important;gap:9px!important;margin:3px 0!important}
#detail.v172-front-view .v173-progress-panel .v170-civil-rate strong{font-size:22px!important}
#detail.v172-front-view .v173-progress-panel p{margin:2px 0!important;font-size:10px!important}
#detail.v172-front-view .v173-progress-panel .v170-civil-summary-line{margin-top:5px!important}
/* Global popup and side panel themes (workstream editor, baseline, dependency, trash). */
html[data-u4-theme="dark"] body .baseline-panel,html[data-u4-theme="dark"] body .ws-editor,html[data-u4-theme="dark"] body .trash-panel,html[data-u4-theme="dark"] body .dep-panel{
 background:#1b2e42!important;color:#e5f0f7!important;border-color:#3b5368!important;box-shadow:-12px 0 45px #0007!important;
}
html[data-u4-theme="dark"] body .baseline-panel input,html[data-u4-theme="dark"] body .baseline-panel select,html[data-u4-theme="dark"] body .baseline-panel textarea,html[data-u4-theme="dark"] body .ws-editor input,html[data-u4-theme="dark"] body .ws-editor select,html[data-u4-theme="dark"] body .ws-editor textarea,html[data-u4-theme="dark"] body .dep-panel input,html[data-u4-theme="dark"] body .dep-panel select{
 background:#14273b!important;color:#e5eff6!important;border-color:#415b70!important;
}
html[data-u4-theme="dark"] body .baseline-panel *,html[data-u4-theme="dark"] body .ws-editor *,html[data-u4-theme="dark"] body .trash-panel *,html[data-u4-theme="dark"] body .dep-panel *{border-color:var(--u4-line)}
html[data-u4-theme="dark"] body .baseline-panel h2,html[data-u4-theme="dark"] body .baseline-panel h3,html[data-u4-theme="dark"] body .baseline-panel strong,html[data-u4-theme="dark"] body .ws-editor h2,html[data-u4-theme="dark"] body .dep-panel h3{color:#f3f9fc!important}
html[data-u4-theme="dark"] body .baseline-explainer,html[data-u4-theme="dark"] body .baseline-empty,html[data-u4-theme="dark"] body .baseline-consent,html[data-u4-theme="dark"] body .baseline-compare,html[data-u4-theme="dark"] body .baseline-row,html[data-u4-theme="dark"] body .ws-preview{background:#213951!important;color:#d6e6f1!important}
html[data-u4-theme="dark"] body .baseline-panel p,html[data-u4-theme="dark"] body .baseline-panel small,html[data-u4-theme="dark"] body .ws-editor p,html[data-u4-theme="dark"] body .dep-panel p{color:#afc2d0!important}
/* Gantt v1.7.3: DOM-based timeline hierarchy. Duration and dependency connectors remain live. */
#detail.schedule-mode .u4-v164-ganttpanel{border:1px solid var(--v170-border)!important;border-radius:13px!important;overflow:hidden!important;background:var(--v170-surface)!important}
#detail.schedule-mode .u4-v164-ganttmeta{background:var(--v170-shade)!important;color:var(--v170-muted)!important;border-bottom:1px solid var(--v170-border)!important;min-height:34px!important}
#detail.schedule-mode .timeline-scroll{background:var(--v170-canvas)!important;border-top:0!important;scrollbar-width:thin}
#detail.schedule-mode .gantt-layout{--label-width:365px!important;color:var(--v170-ink)!important;position:relative}
#detail.schedule-mode .gantt-heading{height:43px!important;min-height:43px!important;background:var(--v170-shade)!important;box-shadow:0 2px 8px rgba(10,33,51,.04)}
#detail.schedule-mode .gantt-heading .gantt-label{font-size:11px!important;color:var(--v170-ink-strong)!important;background:var(--v170-shade)!important;border-right:1px solid var(--v170-border)!important;padding:5px 12px!important;gap:10px!important}
#detail.schedule-mode .gantt-heading .gantt-label>span:last-child{display:flex;flex-direction:column;font-weight:800;gap:2px}
#detail.schedule-mode .gantt-heading .gantt-label small{font-size:9px;font-weight:500;color:var(--v170-muted)}
#detail.schedule-mode .v173-gantt-heading-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:var(--v170-brand-soft);color:var(--v170-brand);font-size:17px}
#detail.schedule-mode .gantt-months span{color:var(--v170-muted)!important;font-size:10px!important;border-right:1px solid color-mix(in srgb,var(--v170-border) 50%,transparent)!important}
#detail.schedule-mode .gantt-months .v173-gantt-year-start{border-left:2px solid color-mix(in srgb,var(--v170-brand) 45%,var(--v170-border))!important;color:var(--v170-ink-strong)!important}
#detail.schedule-mode .gantt-row{min-height:40px!important;height:40px!important}
#detail.schedule-mode .gantt-label,#detail.schedule-mode .gantt-track{height:40px!important;min-height:40px!important;background-color:var(--v170-surface)!important;border-bottom:1px solid color-mix(in srgb,var(--v170-border) 52%,transparent)!important}
#detail.schedule-mode .gantt-label{padding-right:12px!important;gap:8px!important;color:var(--v170-ink)!important;white-space:nowrap!important}
#detail.schedule-mode .gantt-track{background-image:repeating-linear-gradient(to right,transparent 0,transparent calc(100% / var(--months) - 1px),color-mix(in srgb,var(--v170-border) 23%,transparent) calc(100% / var(--months) - 1px),color-mix(in srgb,var(--v170-border) 23%,transparent) calc(100% / var(--months)))!important}
#detail.schedule-mode .gantt-task:nth-of-type(even) .gantt-label,#detail.schedule-mode .gantt-task:nth-of-type(even) .gantt-track{background-color:var(--v170-canvas)!important}
#detail.schedule-mode .gantt-workstream{height:48px!important;min-height:48px!important}
#detail.schedule-mode .gantt-workstream .gantt-label,#detail.schedule-mode .gantt-workstream .gantt-track{height:48px!important;min-height:48px!important;background:color-mix(in srgb,var(--front-color) 13%,var(--v170-surface))!important;border-bottom-color:var(--v170-border)!important}
#detail.schedule-mode .gantt-section{height:43px!important;min-height:43px!important}
#detail.schedule-mode .gantt-section .gantt-label,#detail.schedule-mode .gantt-section .gantt-track{height:43px!important;min-height:43px!important;background:var(--v170-shade)!important;border-bottom-color:var(--v170-border)!important}
#detail.schedule-mode .gantt-group-name{font-size:12px!important;letter-spacing:.01em!important;color:var(--v170-ink-strong)!important;font-weight:800!important}
#detail.schedule-mode .gantt-group-mark{width:7px!important;height:7px!important;background:var(--front-color)!important;border-radius:2px!important}
#detail.schedule-mode .gantt-expand{flex:none!important;width:22px!important;height:22px!important;color:var(--v170-brand)!important;background:var(--v170-surface)!important;border:1px solid var(--v170-border)!important;border-radius:6px!important;font-size:12px!important}
#detail.schedule-mode .v173-gantt-task-icon{display:grid;place-items:center;flex:none;width:17px;height:18px;color:var(--front-color);font-size:18px;font-weight:850}
#detail.schedule-mode .v173-gantt-task-copy{min-width:0;display:flex;align-items:center;gap:7px;flex:1;overflow:hidden}
#detail.schedule-mode .v173-gantt-task-title{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-width:0;flex:1;font-size:11px!important;font-weight:620;color:var(--v170-ink)!important}
#detail.schedule-mode .gantt-activity-link{flex:none!important;font-size:9px!important;font-variant-numeric:tabular-nums!important;background:var(--v170-shade)!important;border:1px solid var(--v170-border)!important;color:var(--v170-muted)!important;padding:3px 5px!important;border-radius:5px!important}
#detail.schedule-mode .gantt-bar.gantt-progress-bar{top:13px!important;height:14px!important;border-radius:8px!important;opacity:1!important;box-shadow:0 1px 5px rgba(9,30,50,.17);background:color-mix(in srgb,var(--front-color) 42%,var(--v170-shade))!important}
#detail.schedule-mode .gantt-bar .gantt-physical{border-radius:8px!important;background:var(--front-color)!important;box-shadow:inset 0 -3px 3px rgba(7,32,45,.13)}
#detail.schedule-mode .gantt-bar.gantt-group-bar{top:20px!important;height:8px!important;opacity:.9!important;border-radius:9px!important;box-shadow:0 1px 5px rgba(8,32,45,.12);background:var(--front-color)!important}
#detail.schedule-mode .gantt-workstream .gantt-group-bar{top:20px!important}
#detail.schedule-mode .gantt-section .gantt-group-bar{top:18px!important}
#detail.schedule-mode .gantt-milestone{top:13px!important}
#detail.schedule-mode .gantt-today{border-left:2px dashed #df6e5d!important;z-index:4!important}
#detail.schedule-mode .dependency-lines{left:var(--label-width)!important;top:43px!important}
#detail.schedule-mode .gantt-selected .gantt-label,#detail.schedule-mode .gantt-selected .gantt-track{background:var(--v170-brand-soft)!important}
#detail.schedule-mode .gantt-row:hover .gantt-label,#detail.schedule-mode .gantt-row:hover .gantt-track{filter:brightness(.965)}
#detail.schedule-mode .gantt-legend{background:var(--v170-shade)!important;color:var(--v170-muted)!important;border-top:1px solid var(--v170-border)!important}
/* Analytics hub: wide expandable summary rows, financial analysis retained intact. */
.u4-v164-analytics-main .v173-analysis-area{margin:14px 0 16px}
.v173-analysis-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:0 0 10px}
.v173-analysis-heading h2{font-size:18px;margin:3px 0 3px;letter-spacing:-.02em;color:var(--u4-ink)}
.v173-analysis-heading p{font-size:11px;color:var(--u4-muted);margin:0}
.v173-source-tag{border:1px solid var(--u4-line);border-radius:25px;padding:6px 9px;color:var(--u4-muted);white-space:nowrap;font-size:10px}
.v173-analysis-list{display:flex;flex-direction:column;gap:8px}
.v173-analysis-entry{background:var(--u4-surface);border:1px solid var(--u4-line);border-radius:11px;overflow:hidden;box-shadow:0 2px 7px rgba(10,29,45,.025)}
.v173-analysis-entry.is-open{border-color:color-mix(in srgb,var(--v170-brand) 35%,var(--u4-line))}
.v173-analysis-toggle{width:100%;display:grid;grid-template-columns:40px minmax(190px,1.15fr) minmax(350px,2fr) 25px;gap:14px;align-items:center;text-align:left;padding:13px 16px!important;background:transparent!important;border:none!important;color:var(--u4-ink)!important;cursor:pointer}
.v173-analysis-toggle:hover{background:var(--v170-shade)!important}
.v173-analysis-toggle:focus-visible{outline:2px solid var(--v170-brand);outline-offset:-2px}
.v173-analysis-entry-icon{width:36px;height:36px;display:grid;place-items:center;background:var(--v170-brand-soft);border:1px solid var(--u4-line);color:var(--v170-brand);border-radius:9px;font-size:16px;font-weight:800}
.v173-analysis-title{display:grid;gap:4px;min-width:0}
.v173-analysis-title b{font-weight:800;font-size:13px;color:var(--u4-ink)}
.v173-analysis-title small{font-size:10px;color:var(--u4-muted)}
.v173-analysis-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-items:center}
.v173-analysis-metric{display:flex;flex-direction:column;gap:4px;padding:3px 9px;border-left:1px solid var(--u4-line);min-width:0}
.v173-analysis-metric small{font-size:9px;color:var(--u4-muted);white-space:nowrap}
.v173-analysis-metric strong{font-size:16px;color:var(--u4-ink);font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.v173-analysis-chevron{font-size:23px;color:var(--u4-muted);transition:transform .16s}
.is-open>.v173-analysis-toggle .v173-analysis-chevron{transform:rotate(180deg)}
.v173-analysis-entry-body{border-top:1px solid var(--u4-line);padding:14px 16px;background:var(--v170-canvas)}
.v173-analysis-entry-body.hidden{display:none!important}
.v173-analysis-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:12px}
.v173-analysis-detail-grid .v173-analysis-metric{background:var(--u4-surface);border:1px solid var(--u4-line);border-radius:8px;padding:10px 12px}
.v173-analysis-next{background:var(--u4-surface);border:1px solid var(--u4-line);border-radius:9px;padding:12px}
.v173-analysis-next h3{font-size:12px;color:var(--u4-ink);margin:0 0 6px}
.v173-analysis-upcoming{display:flex;justify-content:space-between;gap:15px;padding:9px 3px;border-top:1px solid var(--u4-line);color:var(--u4-ink);text-decoration:none;font-size:10px}
.v173-analysis-upcoming:hover{color:var(--v170-brand);background:var(--v170-shade)}
.v173-analysis-upcoming b{font-size:11px;display:block}.v173-analysis-upcoming small{font-size:9px;color:var(--u4-muted);margin-top:2px;display:block}
.v173-analysis-actions{margin-top:12px;text-align:right}.v173-analysis-actions a{font-size:11px;font-weight:750;color:var(--v170-brand)}
.v173-finance-detail{display:block}.v173-finance-detail.hidden{display:none!important}
.v173-finance-detail>.an-source{margin-top:2px}
.v173-loading,.v173-analysis-error{color:var(--u4-muted);font-size:12px;padding:17px}
/* ADMINISTRAR CORTES: accessible self-scrolling drawer; dark theme never displays white legacy inputs. */
#cutsPanel.u4-v164-cuts:not(.hidden){position:fixed!important;z-index:70!important;right:0!important;top:0!important;bottom:0!important;width:min(870px,100vw)!important;max-height:100dvh!important;overflow-y:auto!important;overscroll-behavior:contain;background:var(--u4-surface)!important;color:var(--u4-ink)!important;border:1px solid var(--u4-line)!important;box-shadow:-18px 0 60px rgba(0,0,0,.38)!important;margin:0!important;padding:0 20px 32px!important;border-radius:0!important;scrollbar-width:thin}
#cutsPanel .an-cut-head{position:sticky;top:0;z-index:2;background:var(--u4-surface)!important;border-bottom:1px solid var(--u4-line)!important;padding:17px 0!important;margin-bottom:12px}
#cutsPanel .an-cut-head h2,#cutsPanel h3{color:var(--u4-ink)!important}
#cutsPanel .cut-form,#cutsPanel .cut-inspect,#cutsPanel .an-compare{background:var(--v170-shade)!important;border-color:var(--u4-line)!important;color:var(--u4-ink)!important}
#cutsPanel .cut-list-wrap{max-height:280px!important;border-color:var(--u4-line)!important}
#cutsPanel input,#cutsPanel select,#cutsPanel textarea{background:var(--u4-surface)!important;color:var(--u4-ink)!important;border:1px solid var(--u4-line)!important}
#cutsPanel .cut-list th,#cutsPanel .comparison-table th{background:var(--v170-brand-soft)!important;color:var(--u4-ink)!important}
#cutsPanel .cut-list td,#cutsPanel .comparison-table td{border-color:var(--u4-line)!important;color:var(--u4-ink)!important}
#cutsPanel .cut-meta,#cutsPanel .an-check,#cutsPanel .an-cut-head p{color:var(--u4-muted)!important}
html[data-u4-theme="dark"] #cutsPanel .cut-form input,html[data-u4-theme="dark"] #cutsPanel .cut-form select{background:#14263b!important;color:#e5f2fa!important}
/* Unified modal styles in budget and importer. */
html[data-u4-theme="dark"] body .modal-backdrop .modal,html[data-u4-theme="dark"] body .money-drawer,html[data-u4-theme="dark"] body .drawer{background:#1a3045!important;color:#e8f1f7!important;border-color:#3b5268!important}
html[data-u4-theme="dark"] body .modal-backdrop .modal input,html[data-u4-theme="dark"] body .modal-backdrop .modal select,html[data-u4-theme="dark"] body .money-drawer input,html[data-u4-theme="dark"] body .money-drawer select{background:#12263a!important;color:#eaf4fa!important;border-color:#43596e!important}
html[data-u4-theme="dark"] body .money-drawer h2,html[data-u4-theme="dark"] body .modal h2{color:#f0f8fc!important}
html[data-u4-theme="light"] body .modal-backdrop .modal,html[data-u4-theme="light"] body .money-drawer,html[data-u4-theme="light"] body .drawer{background:#eaf1f5!important;color:#163548!important}
html[data-u4-theme="light"] body .modal-backdrop .modal input,html[data-u4-theme="light"] body .modal-backdrop .modal select,html[data-u4-theme="light"] body .money-drawer input,html[data-u4-theme="light"] body .money-drawer select{background:#dfe9ef!important;color:#19374a!important}
html[data-u4-theme="dark"] body .u4-unified-side{background:#101e2d!important;color:#dceaf3!important}
html[data-u4-theme="dark"] body .u4-unified-side .side-link,html[data-u4-theme="dark"] body .u4-unified-side .u4-front-link{color:#e0ebf5!important}
html[data-u4-theme="dark"] body .u4-unified-side .side-heading{color:#74c3c4!important}
html[data-u4-theme="dark"] body .u4-unified-side .u4-unified-brand strong{color:white!important}
/* Importer legacy layout adaptation. */
body .layout>.u4-unified-side{z-index:2}
html[data-u4-theme="light"] body .layout .content{background:#e4ebf0!important}
html[data-u4-theme="dark"] body .layout .content{background:#101d2c!important;color:#dae8f2!important}
html[data-u4-theme="light"] body .layout .panel,html[data-u4-theme="light"] body .layout .topbar,html[data-u4-theme="light"] body .layout .stats article{background:#edf3f5!important;border-color:#bfcfda!important}
html[data-u4-theme="dark"] body .layout .panel,html[data-u4-theme="dark"] body .layout .topbar,html[data-u4-theme="dark"] body .layout .stats article{background:#1b3045!important;color:#dbeaf5!important;border-color:#31495e!important}
html[data-u4-theme="dark"] body .layout h1,html[data-u4-theme="dark"] body .layout h2,html[data-u4-theme="dark"] body .layout b,html[data-u4-theme="dark"] body .layout strong{color:#edf6fc!important}
@media(max-width:1250px){.v173-analysis-toggle{grid-template-columns:38px minmax(140px,1fr) minmax(250px,1.9fr) 24px;gap:9px}.v173-analysis-summary{gap:3px}}
@media(max-width:960px){#detail.schedule-mode .gantt-layout{--label-width:300px!important}.v173-analysis-toggle{grid-template-columns:34px minmax(0,1fr) 20px}.v173-analysis-summary{grid-column:2/-1;grid-row:2}.v173-analysis-toggle{grid-template-rows:auto auto}.v173-analysis-chevron{grid-column:3;grid-row:1}#detail.v172-front-view .v170-civil-pulse{grid-template-columns:1fr!important}}
@media(max-width:650px){.v173-analysis-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.v173-analysis-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v173-analysis-heading{align-items:flex-start;flex-direction:column}body .u4-unified-side{width:0!important;min-width:0!important;display:none!important}#detail.schedule-mode .gantt-layout{--label-width:255px!important}}
/* Compact progress strip across all operational fronts; keep upcoming deliveries intact. */
#detail.v172-front-view .v170-civil-pulse{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
#detail.v172-front-view .v173-progress-panel{display:grid!important;grid-template-columns:minmax(200px,260px) minmax(180px,1fr) minmax(175px,auto)!important;grid-template-rows:auto auto!important;align-items:center!important;min-height:0!important;gap:5px 14px!important;padding:11px 15px!important}
#detail.v172-front-view .v173-progress-heading{grid-column:1!important;grid-row:1/3!important;align-self:center!important;margin:0!important}
#detail.v172-front-view .v173-progress-panel .v170-progress-track{grid-column:2!important;grid-row:1!important;width:100%!important;margin:0!important}
#detail.v172-front-view .v173-progress-panel .v170-civil-summary-line{grid-column:3!important;grid-row:1/3!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;margin:0!important;border-top:0!important;padding:0!important;flex-wrap:wrap!important}
#detail.v172-front-view .v173-progress-panel>p{grid-column:2!important;grid-row:2!important;margin:0!important;font-size:9px!important}
#detail.v172-front-view .v170-civil-side{padding:11px 15px!important}
#detail.v172-front-view .v170-civil-task{padding:6px 0!important}
@media(max-width:1100px){#detail.v172-front-view .v173-progress-panel{grid-template-columns:1fr 1fr!important}#detail.v172-front-view .v173-progress-heading{grid-column:1;grid-row:1/3}#detail.v172-front-view .v173-progress-panel .v170-progress-track{grid-column:2;grid-row:1}#detail.v172-front-view .v173-progress-panel>p{grid-column:2;grid-row:2}#detail.v172-front-view .v173-progress-panel .v170-civil-summary-line{grid-column:1/-1;grid-row:3;justify-content:flex-start!important}}
@media(max-width:600px){#detail.v172-front-view .v173-progress-panel{grid-template-columns:1fr!important}#detail.v172-front-view .v173-progress-heading,#detail.v172-front-view .v173-progress-panel .v170-progress-track,#detail.v172-front-view .v173-progress-panel>p,#detail.v172-front-view .v173-progress-panel .v170-civil-summary-line{grid-column:1!important;grid-row:auto!important}}
