/* Budget workspace: quiet hierarchy, aligned figures, one primary action per level. */
.budget-workbench>.page-head{padding:22px 24px;gap:24px;align-items:center;min-height:0}
.budget-workbench>.page-head h1{font-size:clamp(23px,2.3vw,31px);line-height:1.18;max-width:600px;margin:6px 0 10px}
.budget-workbench>.page-head .eyebrow{font-size:10px;letter-spacing:.12em}
.budget-workbench>.page-head .page-head-actions{gap:8px;max-width:58%;align-items:center}
.budget-workbench>.page-head .row-actions{gap:7px;justify-content:flex-end}
.budget-workbench .btn{min-height:38px;padding:9px 13px;border-radius:9px;font-size:13px;font-weight:700;box-shadow:none;white-space:nowrap}
.budget-workbench .btn.primary,.budget-workbench .btn.success{box-shadow:0 3px 8px #083f7012}
.budget-workbench>.page-head .context-tutorial{padding:7px 10px;min-height:32px;background:transparent;border-color:transparent;font-size:12px}
.budget-overview{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px;margin:18px 0}
.budget-workbench .budget-total{min-height:0;margin:0;padding:20px 24px;border-radius:14px;display:flex;flex-direction:column;justify-content:center;gap:6px;background:#155d55}
.budget-workbench .budget-total:before,.budget-workbench .budget-total:after{display:none}
.budget-workbench .budget-total>span{font-size:10px;letter-spacing:.1em}
.budget-workbench .budget-total>strong{font-size:32px;line-height:1.15;margin:0;font-variant-numeric:tabular-nums}
.budget-workbench .budget-total>small{font-size:12px}
.budget-overview-secondary{display:grid;grid-template-columns:1fr 1fr;padding:20px 24px;border:1px solid var(--line);border-radius:14px;background:var(--surface);align-items:center;gap:24px}
.budget-overview-secondary>div{min-width:0;display:grid;gap:8px}
.budget-overview-secondary small{color:var(--muted);font-size:12px;font-weight:650}
.budget-overview-secondary strong{font-size:23px;font-variant-numeric:tabular-nums;color:var(--text);overflow-wrap:anywhere}
.budget-overview-secondary span{color:var(--muted);font-size:11px;line-height:1.5}
.budget-workbench .budget-bdi-policy{position:relative;display:flex;flex-wrap:wrap;gap:16px;align-items:center;padding:14px 18px;margin:16px 0;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.budget-workbench .budget-bdi-policy>div:first-child{display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:4px 10px;flex:1 1 240px;min-width:0}
.budget-workbench .budget-bdi-policy>div:first-child>small{font-size:10px;grid-column:1;color:var(--muted)}
.budget-workbench .budget-bdi-policy>div:first-child>b{font-size:14px;line-height:1.5;grid-column:1;overflow-wrap:anywhere}
.budget-workbench .budget-bdi-policy dl{border:0;gap:20px;flex-wrap:wrap}
.budget-workbench .budget-bdi-policy dl div{padding:0}
.budget-workbench .budget-bdi-policy dt{font-size:10px}
.budget-workbench .budget-bdi-policy dd{font-size:13px}
.budget-workbench .budget-bdi-policy>.row-actions{gap:8px;flex-shrink:0}
.budget-policy-help{grid-column:2;grid-row:1/3;align-self:center;position:relative}
.budget-policy-help>summary{display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--line);border-radius:50%;color:var(--brand);font-weight:750;cursor:pointer;list-style:none;background:var(--surface-2)}
.budget-policy-help>summary::-webkit-details-marker{display:none}
.budget-policy-help>div{position:absolute;z-index:20;left:0;top:34px;width:min(330px,65vw);padding:16px;border:1px solid var(--line);background:var(--surface);border-radius:12px;box-shadow:0 12px 35px #16375022;font-size:13px;line-height:1.6}
.budget-policy-help>div>span{display:block;color:var(--muted);margin-bottom:10px}
.budget-workbench .budget-entry-toolbar{margin:18px 0;padding:14px 18px;gap:10px}
.budget-workbench .entry-mode label{font-size:13px;padding:7px 11px}
.budget-workbench .budget-eap>.section-title{margin:20px 0 12px}
.budget-workbench .budget-stage{margin-bottom:16px;border-radius:12px}
.budget-workbench .budget-stage-head{padding:16px 18px;display:flex;flex-wrap:wrap;gap:16px;align-items:center;background:var(--surface-2)}
.budget-workbench .stage-identity{flex:1 1 180px;gap:12px}
.budget-workbench .stage-identity>span{width:32px;height:32px;font-size:14px;border-radius:8px}
.budget-workbench .stage-identity small{font-size:9px;letter-spacing:.06em}
.budget-workbench .stage-identity h3{font-size:15px;margin:3px 0}
.budget-workbench .stage-financial-summary{display:flex;gap:16px;flex-wrap:wrap;grid-column:auto;grid-row:auto}
.budget-workbench .stage-financial-summary>span{padding:0 0 0 14px;min-width:65px}
.budget-workbench .stage-financial-summary small{font-size:9px;letter-spacing:.04em}
.budget-workbench .stage-financial-summary b{font-size:13px}
.budget-workbench .stage-financial-summary em{font-size:10px}
.budget-workbench .budget-stage-actions{margin-left:auto;gap:6px}
.budget-workbench .stage-items:has(.budget-ledger-row){padding:0;overflow:visible}
.budget-ledger-heading,.budget-workbench .stage-item-row.budget-ledger-row{display:grid;grid-template-columns:minmax(190px,2.6fr) minmax(60px,.65fr) minmax(85px,.9fr) minmax(90px,.9fr) minmax(105px,1.1fr) minmax(105px,1.1fr) minmax(90px,1fr) 36px;gap:14px;align-items:start;min-width:0;padding:18px}
.budget-ledger-heading{padding-top:12px;padding-bottom:12px;background:var(--surface);color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.035em;border-bottom:1px solid var(--line)}
.budget-workbench .budget-ledger-row{border-top:0;border-bottom:1px solid var(--line);background:var(--surface);font-size:14px}
.budget-workbench .budget-ledger-row:last-child{border-bottom:0}
.budget-ledger-row>div{min-width:0;font-variant-numeric:tabular-nums}
.budget-ledger-row .budget-line-identity>div:first-child{flex-wrap:wrap;gap:5px 8px}
.budget-ledger-row .budget-line-identity>div:first-child b{font-size:12px}
.budget-ledger-row .budget-line-identity>small{white-space:normal;font-size:14px;line-height:1.5;font-weight:650;overflow:visible;margin-top:7px}
.budget-ledger-row .budget-line-identity .source-pill{font-size:9px;max-width:100%;padding:4px 7px}
.budget-ledger-row .budget-line-meta{flex-wrap:wrap;font-size:11px;gap:6px;margin-top:8px}
.budget-ledger-row .budget-line-meta>span:first-child{display:none}
.budget-ledger-row .workspace-link{font-size:12px;padding:2px 0}
.budget-ledger-row .budget-line-quantity{display:flex;flex-wrap:wrap;gap:4px}
.budget-ledger-row .budget-line-quantity b{font-size:14px;font-weight:650;overflow:visible}
.budget-ledger-row .budget-line-quantity span{font-size:12px}
.budget-ledger-reference b{font-size:13px;font-weight:650;overflow-wrap:anywhere}
.budget-ledger-adjustments{display:grid;gap:7px;font-size:11px;color:var(--muted)}
.budget-ledger-adjustments span{display:flex;justify-content:space-between;gap:5px;flex-wrap:wrap}
.budget-ledger-adjustments b{color:var(--text);font-weight:650}
.budget-ledger-adjustments small{font-size:10px;line-height:1.4;color:#28745f}
.budget-ledger-row .budget-price-card{padding:0;border:0;background:transparent;box-shadow:none;border-radius:5px;display:block;transform:none;min-height:0}
.budget-ledger-row .budget-price-card strong{display:block;margin:0;font-size:14px;white-space:normal;overflow:visible;font-weight:700;overflow-wrap:anywhere}
.budget-ledger-row .budget-price-card em{display:block;font-size:11px;line-height:1.6;margin-top:6px;overflow-wrap:anywhere}
.budget-ledger-row .budget-price-card.editable:hover{box-shadow:0 0 0 6px var(--surface-2);background:var(--surface-2);transform:none}
.budget-ledger-row .budget-price-card.editing{padding:6px}
.budget-ledger-row .budget-line-result{padding:0;background:none;display:grid;gap:6px;border-radius:0}
.budget-ledger-row .budget-line-result b{font-size:14px;margin:0;white-space:normal;overflow-wrap:anywhere}
.budget-ledger-row .budget-line-result span{font-size:11px;white-space:normal;line-height:1.5;margin:0}
.budget-ledger-row .budget-line-actions{flex-wrap:wrap;justify-content:flex-end}
.budget-ledger-row .budget-line-actions .item-decision-action{min-width:0;width:auto;font-size:11px;padding:6px;white-space:normal}
.budget-ledger-row .line-actions-menu>summary{width:30px;height:30px;border-radius:7px}
.is-negative{color:#b83f49!important}
@media(max-width:1200px){.budget-ledger-heading,.budget-workbench .stage-item-row.budget-ledger-row{grid-template-columns:minmax(170px,2fr) 60px 80px 82px minmax(90px,1fr) minmax(90px,1fr) minmax(85px,1fr) 32px;gap:10px;padding:16px 12px}.budget-workbench .stage-financial-summary{gap:10px}}
@media(max-width:1250px){.budget-ledger-heading{display:none}.budget-workbench .stage-item-row.budget-ledger-row{grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}.budget-ledger-row .budget-line-identity{grid-column:1/-2}.budget-ledger-row .budget-line-actions{grid-column:6;grid-row:1}.budget-ledger-row>[data-caption]::before{content:attr(data-caption);display:block;width:100%;font-size:10px;color:var(--muted);font-weight:700;margin-bottom:8px}.budget-ledger-row .budget-line-quantity{display:block}.budget-overview{grid-template-columns:1fr 1fr}.budget-overview-secondary{gap:16px;padding:18px}.budget-overview-secondary strong{font-size:20px}}
@media(max-width:760px){.budget-workbench>.page-head{align-items:stretch;flex-direction:column;padding:18px}.budget-workbench>.page-head .page-head-actions{max-width:100%;width:100%}.budget-workbench>.page-head .row-actions{justify-content:flex-start;flex-wrap:wrap}.budget-overview{grid-template-columns:1fr}.budget-workbench .budget-bdi-policy{gap:16px}.budget-workbench .budget-bdi-policy>.row-actions{flex-wrap:wrap}.budget-policy-help>div{left:auto;right:0}.budget-workbench .stage-item-row.budget-ledger-row{grid-template-columns:repeat(3,minmax(0,1fr))}.budget-ledger-row .budget-line-identity{grid-column:1/3}.budget-ledger-row .budget-line-actions{grid-column:3}.budget-workbench .stage-financial-summary{width:100%}.budget-workbench .budget-stage-actions{margin-left:0}.budget-workbench .budget-stage-head{gap:12px}.budget-workbench .budget-entry-toolbar>div:first-child{width:100%}}
