
/* RC31 retains its PEC basis and sources; presentation follows OD5 24 October. */
#editingGuide{display:none!important}
aside{display:flex;flex-direction:column;overflow:hidden}
.sidebar-brand{flex:none}.sidebar-scroll{min-height:0;overflow-y:auto;overflow-x:hidden}
nav .section-heading,#tabs [data-view=budget]{font-size:17px;font-weight:800;color:#303c3c}
#tabs [data-view=budget].active{color:#fff}
.control-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:6px 0 10px}
.control-topbar .admin-shortcut{margin:0}
.header-monogram{display:block;width:50px;height:53px;overflow:hidden;position:relative;flex:none}
.header-monogram img{height:53px;width:auto;max-width:none;position:absolute;left:0;top:0}
main{padding-top:15px}
.scope-panel{grid-column:1/-1}.scope-scroll{overflow:auto}
#content .hierarchy-group{background:#edf1ed;font-weight:600}
#content .hierarchy-group.level-3{background:#f5f6f2}
.group-toggle{border:0;background:transparent;text-align:left;color:inherit}
.hierarchy-toolbar{display:flex;gap:8px;padding:8px}
.completed-origin .progress-track>span{background:#f28c00}
.completed-amount{color:#f28c00;font-weight:700}
#detail{max-height:none;border:0;border-radius:0;margin:0;resize:none}
#detail .detail-actions{flex:none}
#detail .detail-phase{margin:0;padding:0 14px 6px;flex:none}
#detail .detail-phase select{max-width:100%;padding:4px 8px;font:inherit}
#measurementWorkspace:not(.has-detail)>#content{max-height:none}
#documentsDialog{width:min(1320px,96vw)}
#content .documentary-oc{background:#f8faf5}
#content .documentary-oc button{font:inherit;text-align:left;white-space:normal}
@media(max-width:1000px){main{padding-top:68px!important}.header-monogram{width:42px;height:44px}.header-monogram img{height:44px}.sidebar-brand{max-height:44dvh;overflow:auto}}

.cert-progress.completed-origin .progress-value{font-weight:700;color:#f28c00}.cert-progress.completed-origin .progress-track{height:6px}.contract-subtotal{font-weight:700;background:#e6eae6}.metric .with-ocs{font-size:14px;margin-top:6px}.metric.accent .with-ocs{color:#e3e9e6}.share-actions{display:flex;gap:7px;flex-wrap:wrap}.share-actions button{font-size:12px}.cash-scope-notice{padding:12px 16px;background:#fff4df;border-left:3px solid #f28c00}

/* Keep exact dimensions legible in both comparison panels. */
#detail .measurement-grid{min-width:680px}
#detail .measurement-grid .dimension-col{width:64px}
#detail .measurement-grid .factor-col{width:48px}
#detail .measurement-grid .partial-col{width:96px}
#measurementWorkspace.has-detail #content>table.cert-items{min-width:1100px}

/* Presupuesto: tabla contractual común, misma presentación que OD5 v24. */
#metrics{display:grid}
#metrics.k-budget-host{display:block!important}
.k-budget{background:#fff;border:1px solid #d7dcd7;border-radius:15px;overflow:hidden;margin-bottom:25px;color:#272e30}
.k-budget>header{display:flex;justify-content:space-between;gap:16px;padding:26px 30px;background:#edeae2;align-items:center}
.k-budget>header b{font-size:23px}.k-budget>header span{color:#75807d;font-size:16px}
.k-budget-scroll{overflow:auto}.k-budget table{width:100%;border-collapse:collapse;table-layout:fixed}
.k-budget th{padding:20px;background:#efeee8;color:#65716f;letter-spacing:.6px;text-align:right;font-size:16px}
.k-budget th:first-child{width:40%;text-align:left}.k-budget td{padding:22px 20px;border-top:1px solid #ecece7;text-align:right;vertical-align:top;background:#fcf9f2}
.k-budget td:first-child{text-align:left}.k-budget td b{font-size:17px}.k-budget td strong{font-size:25px;font-weight:500;white-space:nowrap}
.k-budget td small{display:block;color:#8a928d;margin-top:9px;font-size:13px}
.k-budget .k-budget-oc td{background:#fff8ec}.k-budget .k-budget-total td{background:#303c3c;color:white}.k-budget .k-budget-total strong{font-weight:700}.k-budget .k-budget-total small{color:#e4e8e4}
.k-budget>p{margin:0;padding:20px 30px;color:#72807b;font-size:16px;line-height:1.45}.k-budget .cert-progress{justify-content:flex-end;margin-top:14px}
@media(max-width:760px){.k-budget>header{padding:18px;align-items:flex-start}.k-budget>header b{font-size:20px}.k-budget th,.k-budget td{padding:13px 10px}.k-budget table{min-width:660px}.k-budget td strong{font-size:22px}.k-budget>p{padding:17px;font-size:14px}}

.metric>strong>span{display:inline}

/* 26.oct.2026: compact OD5 certification summary, one desktop row. */
#metrics:not(.k-budget-host){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 16px}
#metrics>.metric{min-width:0;padding:16px}
#metrics .metric-with-ocs{display:block;font-size:14px;line-height:1.4;margin:5px 0;color:#515d5d}
#metrics .metric-with-ocs b{font-weight:600;white-space:nowrap}
#metrics .metric.accent .metric-with-ocs{color:#e3e9e6}
#metrics>.metric>strong{white-space:nowrap;font-size:clamp(21px,2.1vw,29px)}
#issuesButton{display:inline-flex;align-items:center;justify-content:center;flex:none;white-space:nowrap;font-weight:700;min-height:40px;border-color:#a9b4af}
main>header .actions{flex-wrap:wrap;justify-content:flex-end}
@media(min-width:1001px){#metrics:not(.k-budget-host){grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(min-width:761px) and (max-width:1000px){#metrics:not(.k-budget-host){grid-template-columns:repeat(4,minmax(0,1fr))!important}#metrics>.metric{padding:12px!important}#metrics>.metric>strong{font-size:21px!important}}
@media(max-width:760px){#metrics:not(.k-budget-host){grid-template-columns:repeat(2,minmax(0,1fr))!important}main>header .actions #issuesButton{grid-column:1/-1}}
@media(max-width:380px){#metrics:not(.k-budget-host){grid-template-columns:minmax(0,1fr)!important}}

/* Current OD5 reference: separate financial scopes below the four summary cards. */
.scope-totals{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:20px 0 30px}
.scope-totals>div{border-left:3px solid #f28c00;padding:8px 16px}
.scope-totals span{display:block;margin-top:5px}
.scope-totals .scope-planning-note{grid-column:1/-1}
.approved-changes{margin:18px 0}
.approved-changes summary{cursor:pointer}
.approved-changes details>p,.approved-changes .overview-documents{margin:14px}
.approved-changes .document-scroll{margin:0;overflow-x:auto}
.cashflow-mode #scopeTotals,.cashflow-mode #approvedChanges,.cashflow-mode #contractReference{display:none!important}
#metrics:not(.k-budget-host){gap:14px;margin:30px 0 17px}
#metrics>.metric{padding:19px 20px}
.control-topbar{gap:20px;padding:6px 0 20px;border-bottom:1px solid #ddd;margin-bottom:16px;min-width:0}
.control-topbar .share-actions{flex:1;min-width:0;margin:0;padding:0;border:0;gap:8px}
.share-actions[hidden]{display:none}
.share-actions button{font-weight:700;padding:12px 16px}
.header-monogram{flex:0 0 54px;width:54px;height:60px;margin-left:auto;mix-blend-mode:multiply}
.header-monogram img{height:60px}
.toolbar #issuesButton{min-height:0;font-size:12px;font-weight:400}
@media(max-width:760px){.scope-totals{grid-template-columns:1fr}.scope-totals .scope-planning-note{grid-column:auto}.control-topbar{gap:12px}.header-monogram{flex-basis:44px;width:44px;height:48px}.header-monogram img{height:48px}.share-actions button{font-size:13px;padding:12px 8px}.toolbar #issuesButton{margin-left:auto}}
