:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#263a33;background:#f5f6f2;font-size:14px;font-synthesis:none;--green:#285b49;--muted:#718078;--line:#e1e6df;--red:#a84e3b}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{outline-offset:4px}button{cursor:pointer;border:1px solid #d5ddd3;background:#fff;border-radius:8px;padding:10px 15px;color:inherit;font-weight:550}button:hover{background:#eef3ed}button:disabled{opacity:.5;cursor:default}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:#1b4435}.quiet{border-color:transparent;background:transparent}.small{font-size:12px;padding:7px 11px}a{color:var(--green)}h1,h2,h3,p{margin:0}h1{font-size:29px;letter-spacing:-1px;font-weight:650}h2{font-size:18px;letter-spacing:-.3px}h3{font-size:14px}.muted{color:var(--muted)}.tiny{font-size:11px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:1.8px;font-weight:700;color:#849187}.loading{padding:60px}.layout{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#edf1e9;border-right:1px solid var(--line);padding:31px 18px 24px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;padding:0 10px 35px;font-size:19px;font-weight:700;letter-spacing:-.5px}.brandmark{display:grid;grid-template-columns:repeat(3,4px);align-items:end;gap:3px;width:29px;height:28px;padding:5px;background:var(--green);border-radius:7px}.brandmark i{background:#e5eedf;border-radius:1px;height:9px}.brandmark i:nth-child(2){height:15px}.brandmark i:nth-child(3){height:12px}.workspace{border:1px solid #d9e0d3;background:#f7f9f4;border-radius:10px;padding:14px 13px;margin-bottom:28px}.workspace strong{display:block;font-size:12px;margin-bottom:5px}.sidebar .eyebrow{padding:0 12px;margin-bottom:10px}.nav{display:flex;flex-direction:column;gap:3px}.nav button{border:0;background:transparent;text-align:left;padding:12px;border-radius:8px;font-weight:450;display:flex;align-items:center;gap:9px}.nav button.selected{background:white;box-shadow:0 2px 6px #1f382309;color:var(--green);font-weight:650}.nav .dot{height:7px;width:7px;border-radius:50%;flex-shrink:0}.nav .count{font-size:10px;color:#7f8c80;margin-left:auto}.sidebottom{margin-top:auto;padding:30px 12px 0;font-size:11px;line-height:1.7;color:#7c897f}.sidebottom a{display:block;margin-top:8px}.main{padding:29px 34px 34px;min-width:0;max-width:1800px;width:100%;margin:auto}.topline{display:flex;justify-content:space-between;align-items:center;padding-bottom:24px;border-bottom:1px solid var(--line);gap:12px}.breadcrumb{font-size:12px;color:#788579}.topactions{display:flex;align-items:center;gap:12px}.badge{border:1px solid #d6dfd1;background:#eef3e9;color:#5d7056;border-radius:5px;font-size:10px;padding:5px 8px;font-weight:650}.header{display:flex;align-items:center;justify-content:space-between;margin:27px 0 22px;gap:15px}.header p{font-size:12px;color:var(--muted);margin-top:8px}.segmented{display:flex;background:#e9ede6;border-radius:9px;padding:3px;gap:2px}.segmented button{background:transparent;border:0;border-radius:7px;font-size:12px;padding:8px 12px;white-space:nowrap}.segmented button.selected{background:white;box-shadow:0 1px 3px #0000000b}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.card{background:white;border:1px solid var(--line);border-radius:12px}.kpi{padding:20px 21px;min-height:138px}.kpi.primarycard{background:#285b49;color:white;border-color:#285b49}.kpi .label{font-size:11px;color:#778477}.kpi.primarycard .label{color:#c8dacb}.kpi .value{font-size:26px;letter-spacing:-1px;margin:15px 0 10px;font-variant-numeric:tabular-nums;white-space:nowrap}.kpi .sub{font-size:11px;color:var(--muted);line-height:1.5}.kpi.primarycard .sub{color:#c8dacb}.kpi .sub .change{color:#496e4a}.analysisgrid{display:grid;grid-template-columns:1.02fr 1fr;gap:18px;margin-bottom:24px}.panel{padding:21px 23px}.panelhead{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:21px}.panelhead h2{font-size:15px}.panelhead select{padding:6px 9px;font-size:11px;max-width:160px}.chartbody{display:flex;gap:30px;align-items:center;min-height:176px}.donut{width:164px;height:164px;border-radius:50%;flex-shrink:0;display:grid;place-items:center}.donutcenter{width:126px;height:126px;border-radius:50%;background:white;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px}.donutcenter strong{font-size:19px;letter-spacing:-.5px}.legend{flex:1;display:grid;gap:10px}.legendrow{display:grid;grid-template-columns:8px 1fr auto;gap:8px;align-items:center;font-size:11px}.legendrow i{width:7px;height:7px;border-radius:50%}.legendrow span:last-child{font-variant-numeric:tabular-nums;color:#5a6b60}.revenuehead{font-size:11px;color:var(--muted);line-height:1.6}.revenuerow{display:grid;grid-template-columns:1fr auto auto;gap:20px;align-items:center;padding:14px 0;border-bottom:1px solid #eef0eb;font-size:12px}.revenuerow strong{font-variant-numeric:tabular-nums;font-size:14px}.revenuerow .share{width:68px;text-align:right;color:#5a7562}.revenuenote{font-size:10px;color:var(--muted);line-height:1.5;margin-top:12px}.tablecard{overflow:hidden}.tablehead{display:flex;justify-content:space-between;align-items:center;padding:22px 23px 16px;gap:12px}.tablehead p{font-size:11px;margin-top:6px;color:var(--muted)}.toolbar{padding:0 23px 17px;display:flex;gap:9px;align-items:center}.search{width:320px;margin-right:auto}.filter{font-size:11px;padding:8px 10px}.filter.selected{background:#edf3e9;border-color:#bfcfba;color:var(--green)}input,textarea,select{border:1px solid #d9e0d6;background:white;border-radius:7px;padding:9px 10px;color:inherit}input:focus,textarea:focus,select:focus{outline:2px solid #90b39c;outline-offset:1px}input[type=number]{appearance:textfield;-moz-appearance:textfield}input::-webkit-inner-spin-button{appearance:none}.tablewrap{overflow:auto;max-height:640px}table{border-collapse:collapse;width:100%;font-size:12px;min-width:820px}thead{position:sticky;top:0;z-index:2}th{background:#f5f7f2;font-size:10px;text-align:left;font-weight:550;color:#71806f;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 10px;white-space:nowrap}td{padding:13px 10px;border-bottom:1px solid #edf0e9;vertical-align:middle}th:first-child,td:first-child{padding-left:23px}th:last-child,td:last-child{padding-right:23px}td.product{max-width:280px;min-width:220px}.productname{font-size:12px;font-weight:550;line-height:1.4}.productmeta{font-size:10px;color:#899287;margin-top:5px;max-width:245px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.historycell{white-space:nowrap;font-variant-numeric:tabular-nums;color:#4b6253}.historycell small{display:block;color:#99a091;font-size:10px;margin-top:4px}.money{font-variant-numeric:tabular-nums;white-space:nowrap}.qty{width:76px;text-align:right;padding:8px;font-variant-numeric:tabular-nums;background:#fafbf8}.amountinput{width:100px}.ordered td{background:#fcfdf9}.rowbutton{border:0;font-size:11px;background:transparent;white-space:nowrap;color:#577761;padding:7px}.rowbutton.invalid{color:var(--red)}.rowbutton.valid{color:#4a865d}.details td{background:#f7f9f4;padding-top:15px;padding-bottom:18px}.detailsbox{display:flex;gap:18px;align-items:start}.detailsbox label{flex:1;font-size:11px;color:#63755f}.detailsbox label.stock{flex:0 0 170px}.detailsbox textarea,.detailsbox input{display:block;width:100%;margin-top:7px;background:white}.detailsbox textarea{resize:vertical;min-height:61px}.detailsbox .hint{margin-top:6px;font-size:10px;color:#86927e}.tablefooter{display:flex;justify-content:space-between;padding:14px 23px;font-size:11px;background:#fcfdf9;border-top:1px solid var(--line);gap:16px}.notice{border:1px solid #e9dfc6;background:#faf6eb;border-radius:9px;padding:12px 15px;color:#80704d;font-size:12px;line-height:1.5;margin-bottom:17px}.notice.error{background:#fff2ec;border-color:#eecbb8;color:#98513b}.notice button{margin-left:12px}.foot{font-size:10px;color:#8b9587;padding-top:19px;display:flex;justify-content:space-between;gap:18px;line-height:1.6}.empty{padding:50px;text-align:center;color:#879280;font-size:13px}.authwrap{display:grid;place-items:center;min-height:100vh;background:radial-gradient(ellipse at top,#e3ebdd,#f7f7f2 65%)}.authcard{padding:38px;width:min(420px,calc(100vw - 36px));box-shadow:0 15px 50px #34563c0a}.authcard .brand{padding:0 0 30px}.authcard h1{font-size:24px}.authcard p{font-size:12px;color:var(--muted);line-height:1.7;margin:12px 0 25px}.authcard label{display:block;font-size:12px;margin:17px 0}.authcard input{width:100%;display:block;margin-top:8px;padding:12px}.authcard button{width:100%;margin-top:10px}.autherror{color:var(--red);font-size:12px;min-height:16px}.authnote{font-size:10px!important;margin:23px 0 0!important}dialog{border:1px solid var(--line);border-radius:15px;padding:28px;width:min(580px,calc(100vw - 32px));color:inherit;max-height:90vh;overflow:auto;box-shadow:0 20px 100px #17231d22}dialog::backdrop{background:#21392c55;backdrop-filter:blur(3px)}dialog h2{margin-bottom:10px}dialog p{font-size:12px;color:var(--muted);line-height:1.65;margin-bottom:20px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.formgrid label{font-size:11px;color:#667763}.formgrid label.full{grid-column:1/-1}.formgrid input,.formgrid select,.formgrid textarea{display:block;margin-top:6px;width:100%}.dialogactions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.issue-list{max-height:290px;overflow:auto;display:grid;gap:8px}.issue-list button{text-align:left;font-size:12px;line-height:1.6}.issue-list span{display:block;color:var(--red);font-size:11px}.summaryrow{display:flex;justify-content:space-between;font-size:13px;border-bottom:1px solid var(--line);padding:12px 0}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(100px);opacity:0;background:#263e30;color:white;padding:13px 21px;border-radius:9px;font-size:12px;transition:all .2s;z-index:99;max-width:90vw}#toast.show{transform:translateX(-50%);opacity:1}.successbox{background:#edf6eb;padding:14px;border-radius:9px;font-size:12px;line-height:1.7}
@media(min-width:1450px){.main{padding:29px 44px}.chartbody{gap:40px}.donut{width:180px;height:180px}.donutcenter{width:138px;height:138px}}
@media(max-width:1150px){.layout{grid-template-columns:185px 1fr}.main{padding:24px 22px}.sidebar{padding:28px 11px}.kpi{padding:17px 15px}.kpi .value{font-size:23px}.chartbody{gap:16px}.donut{width:135px;height:135px}.donutcenter{width:103px;height:103px}.donutcenter strong{font-size:16px}.analysisgrid{grid-template-columns:1fr 1fr}.panel{padding:19px 17px}.revenuerow{gap:10px}.header{flex-wrap:wrap}}
@media(max-width:850px){.layout{display:block}.sidebar{position:static;height:auto;padding:15px 18px;display:block;border-bottom:1px solid var(--line)}.brand{padding:0;font-size:17px}.workspace,.sidebar>.eyebrow,.sidebottom{display:none}.nav{flex-direction:row;overflow:auto;margin-top:15px;padding-bottom:2px}.nav button{white-space:nowrap;padding:9px 12px;font-size:12px}.nav .count{display:none}.main{padding:20px}.analysisgrid{grid-template-columns:1fr 1fr}.chartbody{flex-direction:column;gap:20px;align-items:stretch}.donut{align-self:center}.revenuehead{line-height:1.8}.kpis{grid-template-columns:repeat(2,1fr)}.kpi .value{font-size:26px}.kpi{min-height:125px}.topline{padding-bottom:18px}.header{margin-top:22px}.header h1{font-size:26px}}
@media(max-width:560px){.main{padding:16px}.breadcrumb{display:none}.topline{justify-content:flex-end}.topactions{flex-wrap:wrap;gap:8px}.analysisgrid{grid-template-columns:1fr}.chartbody{flex-direction:row;gap:23px}.kpi{padding:16px 12px}.kpi .value{font-size:23px}.header{margin-bottom:18px}.segmented{max-width:100%;overflow:auto}.segmented button{font-size:11px;padding:8px 9px}.tablehead{padding:18px 16px 14px}.toolbar{padding:0 16px 14px;flex-wrap:wrap}.search{width:100%}.foot{flex-direction:column;gap:5px}.formgrid{grid-template-columns:1fr}.formgrid label.full{grid-column:auto}.badge{font-size:9px}.tablefooter{font-size:10px}.panel{padding:19px}.tablehead h2{font-size:16px}}
/* Current-budget comparisons and stable column boundaries. */
.budget-scope{font-size:12px;color:var(--muted);padding:8px 12px;background:#eaf0e5;border-radius:7px}
.analysisgrid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.analysisgrid .panel{min-width:0}.analysisgrid .panelhead{flex-wrap:wrap}
.chartbody{gap:18px;align-items:center}.donut{width:264px;height:264px;min-width:264px;flex-shrink:0}.donutcenter{width:222px;height:222px;padding:15px 10px;gap:4px;text-align:center}.donutcenter>strong{font-size:22px;letter-spacing:-.6px;max-width:100%;overflow-wrap:anywhere}.chartselected{font-size:11px;line-height:1.3;font-weight:650;max-width:160px}.chartcompare{display:grid;grid-template-columns:1fr;gap:2px;padding-top:6px;margin-top:2px;border-top:1px solid var(--line);font-size:10px;width:174px}.chartcompare>span{color:var(--muted)}.chartcompare>strong{font-size:12px;letter-spacing:0}.chartcompare small{font-size:9px;color:#68775f;line-height:1.4;overflow-wrap:anywhere}.legend{min-width:0;gap:3px}.legendrow{padding:7px;border:1px solid transparent;background:transparent;text-align:left;font-weight:400;line-height:1.4;grid-template-columns:7px minmax(0,1fr) auto}.legendrow span{overflow-wrap:anywhere}.legendrow small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.legendrow.selected{background:#f0f5eb;border-color:#d1dfc8}.chartall{font-size:10px;justify-self:start;padding:5px 8px;border-color:transparent;background:transparent}.chartall.selected{color:var(--green);background:#eef3e9}.charthint{color:var(--muted);font-size:10px;line-height:1.5;margin-top:17px}
.budgettable{table-layout:fixed;min-width:1050px;width:100%}.budgettable th{white-space:normal;line-height:1.5;overflow-wrap:anywhere}.budgettable td{overflow-wrap:anywhere;line-height:1.5}.budgettable td.product{min-width:0;max-width:none}.productname{overflow-wrap:anywhere;word-break:normal}.productmeta{max-width:none;white-space:normal;overflow-wrap:anywhere;text-overflow:clip;line-height:1.5}.historycell{white-space:normal;overflow-wrap:anywhere}.budgettable .money{white-space:normal;overflow-wrap:anywhere}.qty{max-width:100%}.rowbutton{max-width:100%;white-space:normal;line-height:1.5;text-align:left;padding:6px 0}.matchreview{display:block;color:#977137;font-size:10px;line-height:1.4;margin-top:5px;white-space:normal}.missingprice{color:var(--red)}.detailsbox{min-width:0}.detailsbox label{min-width:0}.issue-list button small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-bottom:2px}
@media(max-width:1250px){.analysisgrid{grid-template-columns:1fr 1fr}.chartbody{flex-direction:column;align-items:stretch}.donut{align-self:center}.legend{grid-template-columns:1fr 1fr}.chartall{grid-column:1/-1}.legendrow{font-size:10px}}
@media(max-width:850px){.analysisgrid{grid-template-columns:1fr}.chartbody{flex-direction:row}.legend{grid-template-columns:1fr}.donut{align-self:center}}
@media(max-width:560px){.chartbody{flex-direction:column}.legend{grid-template-columns:1fr 1fr}.panelhead h2{font-size:14px}.donut{width:264px;height:264px}.donutcenter{width:222px;height:222px}.budget-scope{font-size:11px}.kpi .value{white-space:normal;overflow-wrap:anywhere}.revenuerow{grid-template-columns:minmax(0,1fr) auto auto;gap:8px}.revenuerow strong{font-size:12px}}

.pricehelp{margin:0 0 16px;color:#956a2e;font-size:13px;line-height:1.5;white-space:normal}

/* Keep the ring square independently of its surrounding financial figures. */
.analysisgrid{align-items:start}
.budget-chart-overview{display:flex;align-items:center;gap:24px;margin:6px 0 20px}
.budget-ring{position:relative;width:168px;height:auto;aspect-ratio:1 / 1;flex:0 0 168px;border-radius:50%;overflow:hidden}
.budget-ring::after{content:"";position:absolute;inset:19px;border-radius:50%;background:#fff}
.budget-chart-summary{min-width:0;display:grid;gap:7px;font-size:12px}
.budget-chart-summary>strong{font-size:25px;letter-spacing:-.6px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.budget-chart-history{padding:12px 0 18px;border-bottom:1px solid var(--line);display:grid;gap:10px}
.expense-legend{display:grid;gap:0;margin-top:5px}
.expense-entry{padding:15px 0;border-bottom:1px solid #edf0e9;min-width:0}
.expense-entry:last-child{border-bottom:0;padding-bottom:0}
.expense-heading{display:grid;grid-template-columns:8px minmax(0,1fr) auto auto;align-items:center;gap:8px;font-size:12px;line-height:1.4}
.expense-heading i{width:8px;height:8px;border-radius:50%}
.expense-heading>span{overflow-wrap:anywhere}
.expense-heading strong{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.expense-share{min-width:40px;text-align:right;color:var(--muted);font-size:11px}
.expense-history{display:grid;gap:7px;margin:10px 0 0 16px}
.expense-comparison{display:grid;grid-template-columns:minmax(90px,1fr) minmax(80px,auto) minmax(115px,1.2fr);align-items:baseline;gap:8px;font-size:10px;line-height:1.5;font-variant-numeric:tabular-nums;color:var(--muted)}
.expense-comparison strong{font-size:10px;font-weight:500;text-align:right;color:#516659}
.expense-delta{text-align:right;color:#516659;overflow-wrap:anywhere}
.expense-delta small{display:inline;margin-left:6px;font-size:10px;color:var(--muted)}
@media(max-width:1150px) and (min-width:851px){.budget-chart-overview{gap:16px}.budget-ring{width:132px;flex-basis:132px}.budget-ring::after{inset:15px}.budget-chart-summary>strong{font-size:21px}.expense-heading{grid-template-columns:8px minmax(0,1fr) auto}.expense-heading strong{grid-column:2}.expense-share{grid-column:3;grid-row:1}.expense-comparison{grid-template-columns:minmax(0,1fr) auto}.expense-delta{grid-column:1/-1;text-align:left}.expense-delta small{display:inline;margin-left:8px}}
@media(max-width:560px){.budget-chart-overview{gap:18px}.budget-ring{width:132px;flex-basis:132px}.budget-ring::after{inset:15px}.budget-chart-summary>strong{font-size:21px}.expense-comparison{grid-template-columns:minmax(0,1fr) auto}.expense-delta{grid-column:1/-1;text-align:left}.expense-delta small{display:inline;margin-left:8px}.expense-heading{grid-template-columns:8px minmax(0,1fr) auto}.expense-heading strong{grid-column:2}.expense-share{grid-column:3;grid-row:1}}

/* Separate overview and section pages. */
.nav .home-link{margin-bottom:16px}.home-icon{font-size:20px;line-height:1;width:16px}.nav>.eyebrow{margin:0 0 6px;padding:0 12px}
.section-kpis{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:24px}
.section-kpis .kpi{min-height:145px}.kpi .change{display:inline-block;margin-top:4px}
.expense-link{border:0;padding:0;background:transparent;border-radius:3px;text-align:left;font-size:inherit;font-weight:550;line-height:inherit;overflow-wrap:anywhere;color:var(--green)}
.expense-link:hover{text-decoration:underline;background:transparent}
@media(max-width:850px){.nav .home-link{margin-bottom:0}.nav>.eyebrow{display:none}.section-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.section-kpis .value{font-size:22px;white-space:normal;overflow-wrap:anywhere}}
@media(max-width:560px){.section-kpis{grid-template-columns:1fr}.section-kpis .kpi{min-height:0}.section-kpis .kpi .value{font-size:26px;margin:10px 0}.section-kpis .kpi .sub br{display:none}}

/* Full-width structure and five overview cards. */
.home-kpis{grid-template-columns:repeat(4,minmax(0,1fr)) minmax(260px,1.6fr);gap:12px;align-items:stretch}
.home-kpis>.kpi{padding:18px 16px;min-width:0}.home-kpis .value{font-size:clamp(18px,1.45vw,26px);white-space:normal;overflow-wrap:anywhere;letter-spacing:-.6px}
.home-kpis .label{line-height:1.5;min-height:32px}.home-kpis .sub{font-size:11px;line-height:1.65}
.revenue-kpi h2{font-size:13px;line-height:1.4;letter-spacing:0}.revenue-scope{font-size:10px;color:var(--muted);margin-top:5px}
.revenue-kpi .revenuerow{grid-template-columns:minmax(0,1fr) auto auto;gap:8px;padding:8px 0;font-size:10px}.revenue-kpi .revenuerow strong{font-size:11px}.revenue-kpi .share{width:auto;min-width:37px;font-size:11px;font-weight:650}.revenue-kpi .tiny{font-size:9px}.revenue-source{font-size:9px;line-height:1.5;color:var(--muted);margin-top:9px}
.structure-panel{padding:28px;margin-bottom:24px}.structure-panel .panelhead{margin-bottom:28px;flex-wrap:wrap}.structure-panel h2{font-size:21px}.structure-subtitle{font-size:12px;color:var(--muted);margin-top:7px}
.structure-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:32px;align-items:start}
.structure-overview{min-width:0;padding:20px 18px;border-radius:12px;background:#f6f8f3;display:flex;flex-direction:column;align-items:center}
.structure-overview .budget-ring{width:224px;flex:0 0 auto;aspect-ratio:1 / 1;height:auto}.structure-overview .budget-ring::after{inset:25px;background:#f6f8f3}
.structure-total{display:grid;text-align:center;gap:7px;margin:22px 0;font-variant-numeric:tabular-nums}.structure-total>span{font-size:12px;color:var(--muted)}.structure-total>strong{font-size:28px;letter-spacing:-.8px;overflow-wrap:anywhere}.structure-total>small{font-size:11px;color:var(--muted)}
.structure-total-history{width:100%;display:grid;gap:16px;border-top:1px solid var(--line);padding-top:18px}.structure-total-history .structure-comparison{grid-template-columns:1fr auto}.structure-total-history .structure-comparison>span,.structure-total-history .structure-comparison>strong{grid-column:1/-1}.structure-total-history .structure-comparison>strong{font-size:18px}
.structure-help{font-size:11px;line-height:1.7;color:var(--muted);border-top:1px solid var(--line);padding-top:16px;margin-top:18px;width:100%}
.structure-articles{min-width:0}.structure-articles-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:16px}.structure-articles-head h3{font-size:15px}.structure-articles-head>span{font-size:11px;color:var(--muted)}
.structure-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.structure-article{border:1px solid var(--line);border-radius:11px;padding:17px 18px;min-width:0;background:#fff}
.structure-link{display:flex;align-items:center;gap:8px;width:100%;border:0;background:transparent;padding:0;text-align:left;font-size:14px;font-weight:600;line-height:1.4}.structure-link:hover{background:transparent;color:var(--green);text-decoration:underline}.structure-link i{width:9px;height:9px;border-radius:50%;background:var(--article-color);flex-shrink:0}.structure-link>span:first-of-type{flex:1;overflow-wrap:anywhere}.structure-link>span:last-child{font-weight:400;color:var(--muted)}
.structure-amount{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:14px 0 10px;font-variant-numeric:tabular-nums}.structure-amount strong{font-size:22px;letter-spacing:-.5px;overflow-wrap:anywhere}.structure-amount>span{font-size:12px;white-space:nowrap;border-radius:6px;padding:4px 7px;background:#f0f4ed;color:#526851}
.structure-bar{height:4px;background:#f0f3ed;border-radius:4px;overflow:hidden;margin-bottom:15px}.structure-bar>span{display:block;height:100%;background:var(--article-color);border-radius:4px}
.structure-article-history{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.structure-comparison{display:grid;gap:4px;min-width:0;font-variant-numeric:tabular-nums;line-height:1.4}.structure-comparison>span{font-size:11px;color:var(--muted)}.structure-comparison>strong{font-size:13px;font-weight:550}.structure-comparison>small{font-size:11px;color:#667966}.structure-comparison>*{overflow-wrap:anywhere}
@media(min-width:1700px){.structure-layout{grid-template-columns:290px minmax(0,1fr)}.structure-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1200px){.home-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.home-kpis .revenue-kpi{grid-column:1/-1}.revenue-kpi #revenue{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.revenue-kpi .revenuerow{border-bottom:0}.home-kpis .value{font-size:22px}.structure-layout{grid-template-columns:220px minmax(0,1fr);gap:22px}.structure-overview .budget-ring{width:184px}.structure-overview .budget-ring::after{inset:21px}.structure-total>strong{font-size:24px}.structure-article{padding:15px}.structure-article-history{grid-template-columns:1fr}.structure-article-history .structure-comparison{grid-template-columns:1fr 1fr}.structure-article-history .structure-comparison>strong{text-align:right}}
@media(max-width:850px){.home-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.structure-layout{grid-template-columns:1fr}.structure-overview{display:grid;grid-template-columns:184px minmax(0,1fr);gap:10px 24px}.structure-total{margin:0}.structure-total-history{grid-column:1/-1;grid-template-columns:1fr 1fr}.structure-help{grid-column:1/-1}.structure-article-history{grid-template-columns:1fr 1fr}.structure-article-history .structure-comparison{grid-template-columns:1fr}.structure-article-history .structure-comparison>strong{text-align:left}}
@media(max-width:560px){.home-kpis .value{font-size:21px}.revenue-kpi #revenue{display:block}.revenue-kpi .revenuerow{border-bottom:1px solid #eef0eb;font-size:12px}.revenue-kpi .revenuerow strong,.revenue-kpi .share{font-size:12px}.structure-panel{padding:18px}.structure-panel h2{font-size:19px}.structure-cards{grid-template-columns:1fr}.structure-overview{display:flex;gap:0}.structure-overview .budget-ring{width:210px}.structure-total{margin:20px 0}.structure-total-history{grid-template-columns:1fr}.structure-articles-head>span{line-height:1.5}.structure-amount strong{font-size:24px}}

/* Required-field status next to the budget scope. */
.header-status{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}.header-status .budget-scope{line-height:1.5}.header-status #headerissues:empty{display:none}
.issues-action{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid #e6cea3;border-radius:10px;background:#fff8e9;color:#856022;font-size:12px;font-weight:600;line-height:1.4;box-shadow:0 2px 5px #85602208;transition:background .15s,border-color .15s,box-shadow .15s}
.issues-action:hover{background:#fff0d0;border-color:#cfaa69;box-shadow:0 3px 9px #85602214}.issues-action:focus-visible{outline:2px solid #b68940;outline-offset:3px}
.issues-icon{display:grid;place-items:center;width:18px;height:18px;border:1.5px solid currentColor;border-radius:50%;font-size:11px;font-weight:750}.issues-count{display:grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:7px;background:#f2dfb7;color:#76531a;font-size:12px;font-variant-numeric:tabular-nums}.issues-arrow{font-size:15px;color:#9a7639}
.header:has(.header-status){flex-wrap:wrap}
@media(max-width:560px){.header-status{width:100%;justify-content:flex-start}.issues-action{font-size:12px}}

/* Horizontal chart summary, with all expense cards underneath. */
.structure-layout{grid-template-columns:minmax(0,1fr);gap:28px}
.structure-overview{display:grid;grid-template-columns:200px minmax(150px,.9fr) minmax(0,1.5fr);align-items:center;gap:22px 28px;padding:24px}
.structure-overview .budget-ring{width:200px;flex-basis:auto;grid-column:1;grid-row:1;justify-self:center}
.structure-overview .budget-ring::after{inset:23px}
.structure-total{grid-column:2;grid-row:1;text-align:left;margin:0}
.structure-total-history{grid-column:3;grid-row:1;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;border-top:0;border-left:1px solid var(--line);padding:0 0 0 24px}
.structure-total-history .structure-comparison{grid-template-columns:1fr;gap:6px}
.structure-total-history .structure-comparison>span,.structure-total-history .structure-comparison>strong{grid-column:auto}
.structure-help{grid-column:1/-1;grid-row:2;margin:0;padding-top:14px}.structure-help br{display:none}.structure-help br::after{content:" "}
.structure-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.structure-article-history{grid-template-columns:repeat(2,minmax(0,1fr))}.structure-article-history .structure-comparison{grid-template-columns:1fr}.structure-article-history .structure-comparison>strong{text-align:left}
@media(min-width:1700px){.structure-cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1150px){.structure-overview{grid-template-columns:170px minmax(0,1fr);gap:22px}.structure-overview .budget-ring{width:170px}.structure-overview .budget-ring::after{inset:20px}.structure-total-history{grid-column:1/-1;grid-row:2;border-left:0;border-top:1px solid var(--line);padding:18px 0 0}.structure-help{grid-row:3}.structure-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.structure-overview{padding:18px;grid-template-columns:120px minmax(0,1fr);gap:18px 14px}.structure-overview .budget-ring{width:120px}.structure-overview .budget-ring::after{inset:14px}.structure-total>strong{font-size:22px}.structure-total-history{gap:16px}.structure-total-history .structure-comparison>strong{font-size:15px}.structure-cards{grid-template-columns:1fr}}

/* Clearly distinguish items included in the current order. */
.budgettable tr.ordered>td{background:#dff1d9;border-bottom-color:#c7dfbf}
.budgettable tr.ordered>td:first-child{box-shadow:inset 4px 0 #53965b}
.budgettable tr.ordered .qty{background:#fff;border-color:#aacaa0}
.budgettable tr.ordered .productmeta,.budgettable tr.ordered .historycell small{color:#63785d}
.budgettable tr.ordered+.details>td{background:#edf7e9;box-shadow:inset 4px 0 #53965b}

/* Previous-month orders; a current order retains its green highlight. */
.budgettable tr.ordered-last-month:not(.ordered)>td{background:#fff6d9;border-bottom-color:#eee2b6}
.budgettable tr.ordered-last-month:not(.ordered)>td:first-child{box-shadow:inset 4px 0 #d4b454}
.budgettable tr.ordered-last-month:not(.ordered) .qty{background:#fffdf5;border-color:#e1d3a3}
.budgettable tr.ordered-last-month:not(.ordered) .productmeta,.budgettable tr.ordered-last-month:not(.ordered) .historycell small{color:#807550}
.budgettable tr.ordered-last-month:not(.ordered)+.details>td{background:#fffae9;box-shadow:inset 4px 0 #d4b454}
/* A large quantity increase takes priority over the regular order colors. */
.budgettable tr.over-previous-budget>td{background:#fbe9e7;border-bottom-color:#efcfca}
.budgettable tr.over-previous-budget>td:first-child{box-shadow:inset 4px 0 #d48c82}
.budgettable tr.over-previous-budget .productmeta,.budgettable tr.over-previous-budget .historycell small{color:#846c68}
.budgettable tr.over-previous-budget+.details>td{background:#fff2f0;box-shadow:inset 4px 0 #d48c82}
.historycell .history-price{color:#536c5a;font-weight:600;margin-top:3px}
.price-add{display:block;margin-top:6px;padding:7px 9px;color:#815417;background:#fff0d5;border:1px solid #e3be80;font-size:11px;line-height:1.4;text-align:left;max-width:100%}.price-add:hover{background:#ffe2b3}.web-price-badge{display:block;color:#815417;background:#fff0d5;border-radius:5px;padding:3px 5px;margin-top:5px;font-size:9px;line-height:1.4;font-weight:600}.price-origin-info{display:flex;gap:10px;align-items:flex-start;background:#fff6e8;border:1px solid #f0d4a3;border-radius:9px;padding:13px;margin:18px 0;font-size:12px;line-height:1.6}.price-color-sample{flex:none;width:18px;height:18px;border:1px solid #d8a352;border-radius:4px;background:#fce4cd;margin-top:2px}#priceform label{display:block;font-size:12px}#priceform input{display:block;width:100%;margin-top:8px}

.month-dialog{width:min(960px,calc(100vw - 32px));padding:32px}.month-heading h2{font-size:27px;margin:8px 0 12px}.month-form>label{display:block;font-size:12px;color:var(--muted)}.month-form>label input{display:block;margin-top:8px;max-width:220px}.month-sources{display:grid;gap:12px;margin:20px 0}.month-sources label{display:grid;gap:8px;padding:18px;border:1px solid var(--line);border-radius:10px;background:#fafbf8}.month-sources strong{font-size:13px;font-weight:600}.month-sources span{font-size:12px;color:var(--muted)}.month-sources input{width:100%;min-width:0;font-size:12px}.month-note{font-size:12px;line-height:1.6;margin:16px 0!important}.month-preview{border-top:1px solid var(--line);margin-top:28px;padding-top:26px}.month-preview h2{margin-top:9px}.month-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.month-stats>div{padding:16px;background:#f1f5ed;border-radius:10px}.month-stats strong{display:block;font-size:25px;margin-bottom:6px}.month-stats span{font-size:11px;color:var(--muted);line-height:1.5;display:block}.month-file-list{display:grid;gap:8px;margin:20px 0}.month-file-list a{display:grid;gap:5px;padding:12px 16px;border:1px solid var(--line);border-radius:8px;color:var(--green);text-decoration:none;overflow-wrap:anywhere}.month-file-list span,.month-file-list small{font-size:11px;color:var(--muted)}.month-file-list strong{font-size:12px}.month-table{overflow:auto;margin:16px 0}.month-table table{min-width:650px}.month-warnings{background:#faf6eb;padding:14px;border-radius:9px;margin:18px 0}.month-warnings summary,.archive-section summary{cursor:pointer;font-size:13px}.month-warnings ul{max-height:300px;overflow:auto;padding-left:20px}.month-warnings li{font-size:12px;margin:12px 0;line-height:1.5}.month-warnings li span{display:block;color:#80704d}.month-check{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.6;margin:16px 0}.month-check input{margin-top:3px;flex-shrink:0}.archive-list{display:grid;gap:10px}.archive-list button{display:flex;justify-content:space-between;gap:16px;text-align:left;padding:16px}.archive-list span{font-size:11px;color:var(--muted)}.archive-section{padding:16px 0;border-bottom:1px solid var(--line)}.topactions{flex-wrap:wrap}.month-dialog button:disabled{opacity:.55;cursor:wait}@media(max-width:650px){.month-dialog{padding:20px}.month-stats{grid-template-columns:repeat(2,1fr)}.month-dialog .dialogactions{flex-wrap:wrap}.archive-list button{display:grid}}
.source-card{display:grid;gap:10px;padding:18px;border:1px solid var(--line);border-radius:10px;background:#fafbf8;min-width:0}.month-sources .source-card label{display:block;padding:0;border:0;background:none}.source-card select{width:100%;min-width:0;font-size:13px}.source-card a{font-size:12px;color:var(--green);overflow-wrap:anywhere}.source-card .source-problem{margin:0;color:#9d482d;font-size:12px;line-height:1.6}.source-card [hidden]{display:none}
#month-error{white-space:pre-line;line-height:1.6}

.budget-actions{display:flex;flex-direction:column;align-items:stretch;gap:6px;flex-shrink:0}.budget-actions .badge{text-align:center}.budget-actions button{font-size:10px;padding:5px 8px}.budget-actions button:disabled{opacity:.55;cursor:wait}

/* Compact budget toolbar: frequent actions stay visible, administration stays in the menu. */
.topline{position:relative;align-items:center;gap:24px;min-height:72px;padding-bottom:16px}
.topcontext{display:flex;align-items:center;gap:22px;min-width:0}
.topcontext .breadcrumb{white-space:nowrap}
.topcontext .budget-actions{flex-direction:row;align-items:center;gap:9px}
.topcontext .budget-actions .badge{white-space:nowrap}
.topcontext .budget-actions button{font-size:11px;padding:7px 9px;white-space:nowrap}
.topactions{flex-wrap:nowrap;gap:12px;justify-content:flex-end}
.topactions #savestatus{white-space:normal}
.topactions #send{white-space:nowrap}
.actions-menu{position:relative;flex:0 0 auto}
.actions-menu>summary{display:flex;align-items:center;justify-content:center;gap:9px;list-style:none;cursor:pointer;border:1px solid #d5ddd3;border-radius:8px;background:#fff;padding:7px 11px;font-size:12px;font-weight:600;min-height:33px;white-space:nowrap}
.actions-menu>summary::-webkit-details-marker{display:none}
.actions-menu>summary:hover,.actions-menu[open]>summary{background:#eef3ed;border-color:#bfcfba}
.actions-menu>summary span{color:#788579;font-size:16px;line-height:10px;transition:transform .15s}
.actions-menu[open]>summary span{transform:rotate(180deg)}
.actions-popover{position:absolute;right:0;top:calc(100% + 9px);z-index:30;width:245px;max-width:calc(100vw - 32px);padding:8px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 38px #263a3329}
.actions-label{padding:9px 11px 5px;color:#788579;font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase}
.actions-divider{border-top:1px solid #edf0e9;margin-top:6px;padding-top:12px}
.actions-popover>button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:10px 11px;border-radius:7px;font-size:12px;font-weight:500}
.actions-popover>button:hover,.actions-popover>button:focus-visible{background:#f1f5ee}
.actions-popover>button.danger{color:#a14d3e}
.actions-popover>button.danger:hover{background:#fbf0ed}
@media(max-width:1250px){.topline{flex-wrap:wrap;gap:12px}.topcontext,.topactions{width:100%;justify-content:space-between}}
@media(max-width:850px){.topcontext{gap:12px}.topactions{gap:8px}}
@media(max-width:560px){.topcontext{justify-content:flex-start;flex-wrap:wrap}.topcontext .budget-actions{width:100%;justify-content:space-between}.topactions{width:100%;display:grid;grid-template-columns:1fr auto;gap:9px}.topactions #savestatus{grid-column:1/-1}.topactions #send{min-width:0}.actions-popover{right:0}.topline{justify-content:stretch}}

/* First-pass checks for unusually large orders and unusable reasons. */
.qty-cell{display:flex;flex-direction:column;align-items:stretch;gap:4px;width:100%;min-width:0;max-width:100%}
.qty-cell .qty{display:block;width:100%;max-width:100%}
.qty-cell .qty{padding:8px}
.budgettable tr .qty.anomalous{border-color:#bd7652;background:#fff6ef;box-shadow:0 0 0 2px #e9b89b55}
.qty-flag{align-self:flex-end;max-width:100%;padding:2px 4px;border-radius:4px;background:#f7dcd5;color:#934c3a;font-size:9px;font-weight:700;line-height:1.2;white-space:normal;overflow-wrap:anywhere;pointer-events:none}
.qty-flag[hidden]{display:none}
.qty-cell.growth{position:relative}
.qty-cell.growth .qty{padding-left:62px}
.qty-cell.growth .qty-flag:not([hidden]){position:absolute;left:7px;top:50%;transform:translateY(-50%);max-width:51px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px;padding:2px 3px}
.anomaly-reviews{position:sticky;left:0;display:grid;gap:8px;width:min(750px,calc(100vw - 300px));max-width:100%;margin-top:12px}
.anomaly-review{display:flex;align-items:flex-start;flex-direction:column;gap:8px;padding:11px 13px;border:1px solid #edcdb9;border-radius:9px;background:#fff7f1;color:#654532;font-size:11px}
.anomaly-review strong{display:block;font-size:12px;margin-bottom:4px}
.anomaly-review p{line-height:1.5}
.anomaly-review button{flex:0 0 auto;background:#fff;border-color:#dba988;color:#784a31}
.anomaly-review button:hover{background:#fbeadd}
textarea.invalid-reason{border-color:#bd7652;background:#fffaf6}
.reason-feedback{margin-top:6px;color:#a34835;font-size:11px;line-height:1.5}
.quantity-plan-control{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:13px 20px;border-top:1px solid var(--line);font-size:12px;color:var(--ink)}
.quantity-plan-control label{font-weight:700}.quantity-plan-control select{min-height:34px;padding:5px 9px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink)}
.quantity-plan-control span{font-weight:600}.quantity-plan-control small{flex-basis:100%;color:#68796d;line-height:1.45}
.plan-detail{margin:0 0 14px;padding:12px 14px;border:1px solid #dce5dd;border-radius:8px;background:#f7faf6;font-size:12px;line-height:1.55}
.plan-detail strong{display:block;margin-bottom:4px}.plan-detail p{margin:0}.plan-detail label{display:block;margin-top:10px;font-weight:600}.plan-detail textarea{display:block;width:100%;min-height:66px;margin-top:5px;padding:8px;border:1px solid #c9d5ca;border-radius:7px;font:inherit}
.plan-detail.plan-alert,.plan-detail.missing-base{border-color:#edcdb9;background:#fff7f1;color:#654532}
.budgettable tr.plan-warning{background:#fff8ee}.rowbutton.plan-alert{color:#9b5c21;border-color:#dfad76;background:#fff4e5}
.send-review-dialog{width:min(980px,calc(100vw - 24px));padding:0;max-height:94vh;overflow:auto}
.send-review-heading{padding:25px 28px 16px}.send-review-heading .eyebrow{display:block;margin-bottom:8px}.send-review-heading h2{font-size:23px;margin:0 0 8px}.send-review-heading p{margin:0;max-width:760px}
.send-review-stats{display:flex;flex-wrap:wrap;gap:8px 22px;padding:13px 28px;background:#f3f6f0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:12px}.send-review-stats strong{font-weight:700}
.send-review-notice{margin:14px 28px!important;padding:11px 13px;background:#fff6ed;border:1px solid #e8c49f;border-radius:8px;color:#7a4e23!important}
.send-review-issues{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.send-review-issues button{white-space:normal}.send-review-row[hidden]{display:none}
.send-review-list{max-height:min(55vh,620px);min-height:80px;overflow:auto;padding:12px 28px;display:grid;align-content:start;gap:8px}
.send-review-row{display:grid;grid-template-columns:27px minmax(0,1fr) 180px;gap:7px 15px;padding:13px 15px;border:1px solid #dbe5da;border-left:4px solid #69a17a;border-radius:9px;background:#f7faf6;font-size:12px;line-height:1.45}
.send-review-row.warning{border-color:#efd9ba;border-left-color:#d08a36;background:#fff9ef}.send-review-row>*{min-width:0}.send-review-index{color:#738377;font-weight:700}.send-review-section{font-size:10px;color:#718177}.send-review-main h3{font-size:13px;margin:3px 0 7px;overflow-wrap:anywhere}.send-review-quantities{display:flex;flex-wrap:wrap;gap:4px 14px;color:#596d5f}.send-review-quantities strong{color:#263a33}.send-review-side{display:flex;align-items:flex-end;flex-direction:column;gap:5px;text-align:right}.send-review-side>strong{font-variant-numeric:tabular-nums;font-size:14px}.send-review-side button{padding:5px 8px;font-size:11px}.send-review-status{font-size:10px;color:#55755d}.send-review-row.warning .send-review-status{color:#a05a23}
.send-review-notes{grid-column:2/-1;margin:4px 0 0;padding:7px 12px 7px 25px;border-radius:7px;background:#fff0dc;color:#684a2d;overflow-wrap:anywhere}.send-review-notes li+li{margin-top:3px}.send-review-note{grid-column:2/-1;margin:0!important;color:#788477!important}.send-review-main details{margin-top:6px;color:#64776a}.send-review-main summary{cursor:pointer;font-size:11px}.send-review-main details p{margin:5px 0 0!important;font-size:11px;overflow-wrap:anywhere}
.send-review-confirm{display:flex;align-items:center;gap:9px;padding:12px 28px 0;font-size:12px;font-weight:600}.send-review-confirm input{width:17px;height:17px}.send-review-dialog>.dialogactions{padding:13px 28px 23px;margin:0;position:sticky;bottom:0;background:#fff;border-top:1px solid var(--line)}
@media(max-width:620px){.send-review-heading{padding:20px 18px 13px}.send-review-stats{padding:12px 18px}.send-review-list{padding:10px 18px;max-height:52vh}.send-review-row{grid-template-columns:22px minmax(0,1fr);gap:5px 9px}.send-review-side{grid-column:2;align-items:flex-start;text-align:left;flex-direction:row;flex-wrap:wrap}.send-review-side>strong{width:100%}.send-review-notes,.send-review-note{grid-column:2}.send-review-confirm{padding:12px 18px}.send-review-dialog>.dialogactions{padding:12px 18px;flex-wrap:wrap}.send-review-dialog>.dialogactions button{flex:1}.send-review-notice{margin:12px 18px!important}}
@media(max-width:850px){.anomaly-reviews{width:min(750px,calc(100vw - 52px))}}

/* Dashboard: lead with spend and describe each comparison in words. */
.home-kpis{grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;align-items:stretch}
.home-kpis>.kpi{grid-column:span 2;padding:24px;min-height:0}
.home-kpis>.revenue-kpi{grid-column:span 4}
.home-kpis .label{min-height:0;font-size:11px;letter-spacing:.5px}
.home-kpis .value,.section-kpis .value{font-size:clamp(24px,2.1vw,34px);font-weight:650;line-height:1.25;margin:18px 0 12px;white-space:normal;overflow-wrap:anywhere}
.home-kpis .sub{font-size:12px;line-height:1.65}
.money-main{display:block;overflow-wrap:anywhere}
.money-exact{display:block;font-size:11px;font-weight:450;letter-spacing:0;line-height:1.6;margin-top:7px;overflow-wrap:anywhere;opacity:.85}
.budget-difference{display:grid;gap:5px;min-width:0;line-height:1.45}
.budget-difference>span{font-size:12px;font-weight:600}
.budget-difference>strong{font-size:17px;font-weight:650;letter-spacing:-.3px;overflow-wrap:anywhere}
.budget-difference>small{font-size:11px;overflow-wrap:anywhere}
.budget-difference.up{color:#99500e}.budget-difference.down{color:#2e6853}.budget-difference.equal,.budget-difference.unknown{color:#64756c}
.comparison-kpi>.budget-difference{margin:18px 0;padding:0 0 15px;border-bottom:1px solid var(--line)}
.comparison-kpi>.budget-difference>strong{font-size:clamp(22px,1.8vw,30px)}
.comparison-kpi>.budget-difference>span{font-size:14px}
.historical-base strong{color:#334b40;font-weight:600}
.revenue-kpi h2{font-size:16px}.revenue-kpi .revenue-scope{font-size:11px}
.revenue-kpi #revenue{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:12px}
.revenue-kpi .revenuerow{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;border-bottom:0;font-size:11px;min-width:0}
.revenue-kpi .revenuerow>span:first-child{flex-basis:100%}.revenue-kpi .revenuerow strong{font-size:13px;overflow-wrap:anywhere;min-width:0}.revenue-kpi .share{font-size:12px}
.structure-panel .panelhead{margin-bottom:22px}.structure-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.structure-article{padding:14px 16px;display:flex;flex-direction:column}
.structure-link{font-size:14px;min-height:22px}.section-spend-label{font-size:11px;color:var(--muted);margin-top:10px}
.structure-amount{margin:4px 0}.structure-amount strong{font-size:22px;font-weight:650;line-height:1.3;min-width:0}
.section-share{font-size:11px;color:#52665b;line-height:1.5;margin-bottom:7px}.section-share>span{color:var(--muted)}
.structure-bar{height:3px;margin-bottom:10px}
.structure-article-history{margin-top:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border-top:1px solid var(--line);padding-top:10px}
.structure-comparison{grid-template-columns:1fr 1fr!important;gap:5px 10px;align-items:start}
.structure-comparison>span{font-size:11px;grid-column:1}
.structure-comparison>strong{font-size:11px;color:var(--muted);grid-column:1;font-weight:450}
.structure-comparison>.budget-difference{grid-column:2;grid-row:1}
.comparison-base{display:grid;gap:7px;grid-column:1;grid-row:1;color:var(--muted);font-size:11px;line-height:1.5}.comparison-base strong{font-size:11px;font-weight:450}
.structure-comparison .budget-difference>strong{font-size:13px}.structure-comparison .budget-difference>span,.structure-comparison .budget-difference>small{font-size:10px}.structure-comparison .money-exact{font-size:9px}
.structure-article-history .structure-comparison{grid-template-columns:1fr!important;gap:6px}
.structure-article-history .comparison-base{gap:2px}
.structure-article-history .budget-difference{grid-column:1;grid-row:auto;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 5px;line-height:1.35}
.structure-article-history .budget-difference>small{flex-basis:100%}
.orders-panel{padding:28px;margin-bottom:24px}.orders-panel h2{font-size:21px}.orders-panel .panelhead{flex-wrap:wrap;margin-bottom:14px}.order-count{font-size:16px;color:var(--muted);font-weight:450;margin-left:7px}
.order-legend{display:flex;gap:8px;flex-wrap:wrap}.order-status{display:inline-flex;align-items:center;align-self:start;gap:5px;width:fit-content;max-width:100%;font-size:11px;line-height:1.5;font-weight:650;border-radius:6px;padding:5px 8px}
.order-status.warning{color:#8d4b0b;background:#ffecd1}.order-status.okay{color:#286044;background:#ddf0e2}
.order-rules{font-size:11px;color:#718078;line-height:1.7;margin-bottom:20px;max-width:820px}
.order-list{display:grid;gap:10px}.order-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.85fr) minmax(0,1.1fr) auto;gap:20px;align-items:start;padding:20px;border-radius:10px;border:1px solid;border-left-width:4px}
.order-row.warning{background:#fff9f0;border-color:#f0d8b8;border-left-color:#d38b36}.order-row.okay{background:#f2f9f3;border-color:#d4e5d7;border-left-color:#62a276}
.order-row>*{min-width:0}.order-category{display:block;font-size:10px;color:#738074;margin-bottom:7px}.order-product h3{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.order-quantities{margin-top:8px;font-size:11px;color:#67776e;line-height:1.6;overflow-wrap:anywhere}.order-quantities strong{font-weight:550}
.order-cost{display:grid;gap:7px}.order-cost>span{font-size:10px;color:#67776e}.order-cost>strong{font-size:17px;line-height:1.4;overflow-wrap:anywhere}.order-cost>small{font-size:10px;color:#67776e;line-height:1.5;overflow-wrap:anywhere}
.order-check ul{margin:8px 0 0;padding-left:16px;color:#8d4b0b;font-size:11px;line-height:1.6}.order-check li+li{margin-top:4px}.order-check p{font-size:11px;line-height:1.6;color:#537661;margin-top:8px}.order-open{background:#ffffffc9;white-space:nowrap}
@media(max-width:1250px){.structure-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.home-kpis>.kpi{padding:20px}.order-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto}.order-check{grid-column:1/3;grid-row:2}.order-open{grid-column:3;grid-row:1}}
@media(max-width:850px){.home-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.home-kpis>.kpi{grid-column:span 1}.home-kpis>.primarycard,.home-kpis>.revenue-kpi{grid-column:1/-1}.home-kpis>.primarycard .value{font-size:34px}.orders-panel{padding:22px}}
@media(max-width:560px){.home-kpis,.section-kpis{grid-template-columns:1fr}.home-kpis>.kpi{grid-column:1/-1}.home-kpis .value{font-size:28px}.revenue-kpi #revenue{display:block}.revenue-kpi .revenuerow{border-bottom:1px solid var(--line);padding:12px 0}.revenue-kpi .revenuerow>span:first-child{flex-basis:100%}.structure-cards{grid-template-columns:1fr}.structure-article{padding:14px}.structure-amount strong{font-size:22px}.orders-panel{padding:18px}.order-row{grid-template-columns:1fr;gap:15px;padding:16px}.order-check,.order-open{grid-column:auto;grid-row:auto}.order-open{justify-self:start}.order-cost{padding-top:12px;border-top:1px solid #d9ddcf}.order-legend{gap:6px}.structure-subtitle{line-height:1.6}}
.current-plans{min-width:0}
.plan-month{display:block;margin:8px 0 2px;font-size:11px;color:#4a6254}
.revenue-kpi .current-plans .revenuerow{padding:9px 0;border-bottom:1px solid #edf0e9}
.plan-row{grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:start}
.plan-row .plan-label{font-size:12px;font-weight:600;line-height:1.45;white-space:normal}
.plan-row>strong{white-space:nowrap}
.plan-edit{margin:5px 0 0 -8px;padding:4px 8px;color:var(--green)}
#manual-plan-form label{display:block;font-size:12px;color:var(--muted)}
#manual-plan-form input{display:block;width:100%;margin-top:8px}
@media(max-width:560px){.plan-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 10px}.plan-row>span:first-child{grid-column:1/-1}.plan-row .share{text-align:right}}

/* Compact overview: one spending row and an aligned revenue comparison. */
.budget-overview{margin-bottom:22px;font-variant-numeric:tabular-nums}
.overview-metrics{display:grid;grid-template-columns:1.05fr 1fr 1fr;gap:12px;margin-bottom:12px}
.overview-metric{min-width:0;padding:18px 20px;border:1px solid var(--line);border-radius:12px;background:#fff;display:flex;flex-direction:column;gap:10px}
.overview-label{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 10px;font-size:12px;font-weight:600;line-height:1.5}
.overview-label>span{color:#68776f;font-size:11px;font-weight:450}
.overview-value{font-size:clamp(23px,1.9vw,30px);font-weight:650;letter-spacing:-.7px;line-height:1.2}
.overview-change,.overview-hint{margin-top:auto;font-size:12px;line-height:1.55;color:#63746a;overflow-wrap:anywhere}
.overview-change.change-up{color:#99500e}.overview-change.change-down{color:#2e6853}
.overview-change strong{font-weight:600}
.overview-current{background:var(--green);border-color:var(--green);color:#fff}
.overview-current .overview-label>span,.overview-current .overview-hint{color:#d7e5dc}
.revenue-overview{padding:0;overflow:hidden}
.revenue-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px 12px}
.revenue-heading h2{font-size:16px}.revenue-heading p{font-size:12px;color:#64746b;margin-top:4px;line-height:1.5}
.revenue-heading button{flex-shrink:0;border-color:var(--line);padding:7px 10px}
.revenue-table{min-width:0;table-layout:fixed;font-size:12px;line-height:1.45}
.revenue-table thead{position:static}
.revenue-table thead th{padding:7px 20px;font-size:11px;background:#f6f8f4;white-space:normal;border-top:0}
.revenue-table th:nth-child(1){width:23%}.revenue-table th:nth-child(2){width:33%}.revenue-table th:nth-child(3){width:28%}.revenue-table th:nth-child(4){width:16%}
.revenue-table tbody th,.revenue-table td{padding:9px 20px;border-top:0;border-bottom:1px solid #edf0e9;vertical-align:middle;overflow-wrap:anywhere}
.revenue-table tbody th{background:transparent;color:inherit;font-size:12px;font-weight:550;white-space:normal}
.revenue-table tbody th>small{display:block;font-size:10px;font-weight:400;color:#6c7b72;margin-top:2px}
.revenue-table .current-period{background:#f6f9f4}
.revenue-table .current-period th{box-shadow:inset 3px 0 #8daa98}
.revenue-table th:nth-child(n+3),.revenue-amount,.revenue-ratio{text-align:right}
.revenue-table td strong{font-size:14px;font-weight:600}
.revenue-table .data-missing{color:#788278;font-size:12px;font-weight:450}
.revenue-table .money-exact{font-size:10px;margin-top:3px}
.revenue-basis>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 8px}
.revenue-basis button{padding:2px 0;font-size:11px;color:var(--green);text-decoration:underline;text-underline-offset:3px;min-height:24px}
.revenue-no-share{font-size:11px;color:#6d7b71}
.revenue-caution{display:block;color:#8a571a;font-size:11px;margin-top:3px}
.revenue-footer{display:flex;align-items:baseline;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;padding:10px 20px;font-size:11px;color:#64746b}
.revenue-footer details{flex:1;min-width:160px}
.revenue-footer summary{cursor:pointer;width:fit-content;padding:3px 0;color:#425b4b}
.revenue-footer details[open]{flex-basis:100%}
.revenue-details{line-height:1.65;max-width:960px;padding:10px 0 2px}
.revenue-details p+p{margin-top:6px}.revenue-details ul{padding-left:18px;margin:8px 0 0}.revenue-details li+li{margin-top:5px}
.revenue-updated.stale{color:#8a571a}
.revenue-error{font-size:12px;line-height:1.5;color:#915124;background:#fff5e8;padding:10px 20px;border-top:1px solid #ecdcc3}
@media(max-width:1100px){.overview-metric{padding:15px}.overview-label{flex-direction:column;gap:2px}.revenue-table thead th,.revenue-table tbody th,.revenue-table td{padding-left:14px;padding-right:14px}.revenue-table th:nth-child(1){width:22%}.revenue-table th:nth-child(2){width:31%}.revenue-table th:nth-child(3){width:29%}.revenue-table th:nth-child(4){width:18%}}
@media(max-width:650px){.overview-metrics{grid-template-columns:1fr 1fr;gap:10px}.overview-current{grid-column:1/-1}.overview-current .overview-label{flex-direction:row}.overview-current .overview-value{font-size:30px}.overview-value{font-size:22px}.overview-label{font-size:11px}.overview-change{font-size:11px}.revenue-heading{align-items:flex-start;flex-wrap:wrap;padding:15px}.revenue-heading h2{font-size:15px}.revenue-heading p{font-size:11px}.revenue-table,.revenue-table tbody{display:block}.revenue-table thead{display:none}.revenue-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:12px 15px;gap:8px 12px;border-top:1px solid var(--line)}.revenue-table tbody th,.revenue-table td{display:block;width:auto;border:0;padding:0}.revenue-table tbody th:nth-child(1){grid-column:1;width:auto;font-size:12px}.revenue-table tbody th>small{font-size:10px}.revenue-table .current-period th{box-shadow:none}.revenue-table td.revenue-basis{grid-column:2;font-size:11px}.revenue-amount{text-align:left}.revenue-ratio{text-align:right}.revenue-table td[data-label]::before{content:attr(data-label);display:block;font-size:10px;color:#68796c;margin-bottom:2px}.revenue-table td strong{font-size:14px}.revenue-footer{padding:10px 15px}.revenue-error{padding:10px 15px}}

.budgettable tr.plan-warning:not(.over-previous-budget)>td{background:#fff2e5;border-bottom-color:#ecd1b5}.budgettable tr.plan-warning:not(.over-previous-budget)>td:first-child{box-shadow:inset 4px 0 #c58b46}.budgettable tr.plan-warning:not(.over-previous-budget)+.details>td{background:#fff8ef;box-shadow:inset 4px 0 #c58b46}

.workspace-picker{display:grid;gap:8px;font-size:12px;color:#65736e}.workspace-picker select{width:100%;max-width:100%;padding:10px 8px;border:1px solid #cdd9d2;border-radius:9px;background:white;color:#203b30;font:inherit;font-weight:600}.workspace{min-width:0}.budgettable input:disabled{background:#f1f3f2;color:#6e7773;cursor:not-allowed}.source-warning{color:#a35d13;background:#fff4df;padding:10px;border-radius:8px}.source-notice{margin-bottom:16px}

@media(max-width:850px){.sidebar .workspace{display:grid;gap:8px;margin-top:14px;padding:12px 0;max-width:100%}.workspace-picker select{min-width:0}.workspace-picker{min-width:0}}
.source-changes{margin:12px 18px;padding:12px;background:#fff5e5;border-radius:8px;font-size:12px;overflow-wrap:anywhere}.source-changes ul{max-height:240px;overflow:auto}.source-changes table{font-size:11px;min-width:540px}

/* Compact source diagnostics: details stay inside the dialog. */
.diagnostic-time{display:block;font-size:11px;color:var(--muted,#667085);margin-top:5px;text-align:right}
.diagnostic-calm{background:#f3f7f5;color:#3a6453;border-color:#dce8e1}
.source-marker{display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:24px;padding:0 6px;border:1px solid #e3b66b;border-radius:50%;background:#fff5e4;color:#865300;font-size:12px;vertical-align:middle}
.diagnostic-dialog{width:min(760px,calc(100vw - 24px));box-sizing:border-box}
.diagnostic-dialog h3{font-size:16px;margin:22px 0 10px}
.diagnostic-dialog>details{margin:14px 0}
.diagnostic-list{display:grid;gap:12px;margin:12px 0}
.diagnostic-card{padding:16px;border:1px solid #e2e6ec;border-left:3px solid #d6a24a;border-radius:12px;min-width:0;overflow-wrap:anywhere}
.diagnostic-card.blocker{border-left-color:#c66356}.diagnostic-card.repair{border-left-color:#658aab}
.diagnostic-card h3{margin:7px 0;font-size:15px}.diagnostic-card p{font-size:13px;line-height:1.5;margin:8px 0}
.diagnostic-card small{font-size:11px;color:#647084}.diagnostic-card code{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
.diagnostic-links{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:12px;font-size:13px}
.diagnostic-links a{color:#386894}.diagnostic-status{font-size:12px;color:#647084;overflow-wrap:anywhere}
@media(max-width:600px){.diagnostic-card{padding:12px}.diagnostic-time{text-align:left}.header-status{max-width:100%}.issues-action{max-width:100%;font-size:11px}}

.source-explanation{display:block;margin-top:8px;font-size:13px;line-height:1.5}.diagnostic-caution{border-left:2px solid #d6a24a;padding-left:10px}

.formula-consent{margin:20px 0;padding:16px;border:1px solid #e3b66b;border-radius:12px;background:#fffaf1}.formula-consent h3{margin:0 0 10px;font-size:16px}.formula-consent p{font-size:13px;line-height:1.5}.formula-consent code{white-space:pre-wrap;overflow-wrap:anywhere}.formula-consent .send-review-confirm{margin-top:16px}

.diagnostic-delta{padding:10px 12px;margin:12px 0;background:#f4f7f5;border-radius:10px;font-size:12px;line-height:1.5}.diagnostic-delta>details{margin:9px 0}.diagnostic-delta li{margin:10px 0}.submission-result{padding:12px;border:1px solid #dce8e1;border-radius:10px;margin-bottom:16px;font-size:13px}.submission-effects{padding:12px;background:#f4f7f5;border-radius:10px;font-size:13px;line-height:1.5}.return-list{margin:12px 0}.issues-action{white-space:normal;text-align:left;line-height:1.4;max-width:440px}#savestatus{max-width:310px;line-height:1.4}
#savestatus{white-space:normal;overflow-wrap:anywhere;min-width:0;flex-shrink:1}
/* The selected quantity-plan source stays visible on desktop and mobile. */
.revenue-table tr.active-plan{background:#dff1e5;color:#174e35}
.revenue-table tr.active-plan th{box-shadow:inset 4px 0 #2e8057}
.active-plan-badge{display:inline-block;padding:2px 7px;border-radius:5px;background:#246b48;color:#fff;font-size:10px;font-weight:650;white-space:nowrap}

.direct-amounts{display:grid;gap:8px;min-width:130px}.direct-amounts>label{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:6px}.direct-amounts>label>span{font-size:11px;color:#64786d}.direct-amounts input{width:100%;min-width:0}.direct-amounts .qty-cell{min-width:0}

/* One column grid for headings and inputs, including wide service budgets. */
.budgettable th.venue-column,.budgettable td.venue-column{border-left:1px solid #d4dfd1;border-right:1px solid #d4dfd1;padding-left:10px;padding-right:10px}.budgettable th.venue-column{white-space:normal;vertical-align:bottom;text-align:center}.venue-heading{display:grid;gap:5px;text-align:center;line-height:1.4;overflow-wrap:anywhere}.venue-heading small{font-size:10px;font-weight:400}.split-venue-column .venue-heading{margin-left:44px}.direct-amounts{min-width:0}.direct-amounts>label{grid-template-columns:38px minmax(0,1fr);gap:6px}
/* Keep the row name and department headings visible inside the same scroll area. */
.tablecard .tablewrap{max-height:min(640px,75dvh);isolation:isolate}
.budgettable thead{position:sticky;top:0;z-index:3}
.budgettable thead th:first-child{position:sticky;left:0;z-index:4}
.budgettable td.product{position:sticky;left:0;z-index:1;background:#fff}
.budgettable td.product::after,.budgettable thead th:first-child::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:#cdd9cf;box-shadow:3px 0 5px #263a3320;pointer-events:none}
.purchase-history-link{display:block;border:0;background:transparent;padding:3px 0;font-size:10px;font-weight:400;text-decoration:underline;color:#517460}
.purchase-history-dialog{width:min(1080px,calc(100vw - 32px))}
.purchase-history-table{overflow:auto;margin:10px 0 16px;max-height:340px}
.purchase-history-table table{min-width:740px}.purchase-history-table small{display:block;margin-top:5px;color:var(--muted);font-size:10px}
.history-coverage{padding:12px;background:#f4f7f2;border-radius:8px;margin:12px 0}.history-coverage p{margin:9px 0}
.history-venue{padding:15px 0;border-bottom:1px solid var(--line)}.history-venue h3{margin-bottom:8px}.history-venue p{margin-bottom:10px}
.history-search{display:flex;gap:12px;align-items:end;margin:20px 0}.history-search label{flex:1;font-size:12px}.history-search input{display:block;width:100%;margin-top:7px}

.plan-detail.last-purchase p{margin:7px 0}.plan-detail.last-purchase p strong{display:inline;margin:0}.plan-detail.last-purchase .hint{margin:8px 0}.last-purchase button{margin-top:3px}

@media(min-width:901px){.details:has(.last-purchase) .last-purchase,.details:has(.last-purchase) .detailsbox,.details[data-purchase-searched="true"] .detailsbox,.details:has(.last-purchase) .anomaly-reviews{max-width:calc(100vw - 350px)}}

/* Scope and action share one row; the source timestamp occupies its own row. */
.source-comparison-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.source-comparison-dialog-heading h2{margin:12px 0}
.source-comparison{margin-bottom:22px;padding:22px;border:1px solid #c7d9ce}
.source-comparison h2{margin:0;font-size:19px}.source-comparison-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.source-comparison-heading p,.source-comparison-note{font-size:13px;line-height:1.5;color:#596d61;margin:8px 0 12px}
.source-comparison-status{padding:7px 10px;background:#e8f3e8;border-radius:7px;font-size:12px;white-space:nowrap}.source-comparison-status.different{background:#fff0d9;color:#8a551b}
.source-comparison-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:16px 0}.source-comparison-values>div{border-left:3px solid #d8e4da;padding:3px 12px}.source-comparison-values span{display:block;font-size:12px;color:#5c6d63;margin-bottom:7px}.source-comparison-values strong{display:block;font-size:22px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.source-comparison-warning{background:#fff7e8;border-left:3px solid #d3a353;padding:10px 13px;font-size:13px;line-height:1.6}
dialog.source-comparison-dialog{width:min(1180px,94vw);max-width:1180px}.source-comparison-section{border-top:1px solid #d8e2db;margin:18px 0;padding-top:16px}.source-comparison-section>summary{font-weight:700;cursor:pointer;font-size:17px}.source-comparison-section>p{font-size:13px;line-height:1.6}
.source-comparison-table{overflow:auto;margin:14px 0}.source-comparison-table table{min-width:820px;width:100%;border-collapse:collapse;font-size:13px}.source-comparison-table th,.source-comparison-table td{padding:12px;text-align:left;vertical-align:top;border-bottom:1px solid #dce5dd}.source-comparison-table th{background:#f1f5ed}.source-comparison-table td:first-child{width:47%}.source-comparison-table td:not(:first-child){min-width:105px}.source-comparison-table small{display:block;color:#677569;margin-top:5px}.source-comparison-table p{font-size:12px;line-height:1.5;margin:6px 0}.source-comparison-table code{display:block;white-space:normal;overflow-wrap:anywhere;max-width:500px;background:#f5f5ee;padding:7px;font-size:12px}.source-comparison-kind{display:block;font-weight:600;color:#956525;font-size:12px;margin-top:8px}.source-comparison-table button{display:block;margin-top:8px}
@media(max-width:750px){.source-comparison-heading{display:block}.source-comparison-status{display:inline-block;white-space:normal}.source-comparison-values{grid-template-columns:1fr;gap:12px}.source-comparison-values strong{font-size:21px}}
@media(max-width:1000px){.source-comparison-table table,.source-comparison-table tbody{display:block;min-width:0}.source-comparison-table thead{display:none}.source-comparison-table tbody>tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #dce5dd;border-radius:9px;margin:12px 0;padding:8px}.source-comparison-table td,.source-comparison-table td:first-child,.source-comparison-table td:not(:first-child){display:block;width:auto;min-width:0;border:0;padding:8px}.source-comparison-table td:first-child,.source-comparison-table td:last-child{grid-column:1/-1}.source-comparison-table td[data-label]::before{content:attr(data-label);display:block;font-size:11px;color:#627066;line-height:1.4;margin-bottom:5px}.source-comparison-table td:last-child{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.source-comparison-table td:last-child button{margin:0}}
.workspace>.tiny{display:block;margin-top:6px;line-height:1.5}
.header-status{display:grid;grid-template-columns:auto minmax(0,auto);align-items:center;column-gap:10px;row-gap:5px}
.header-status #headerissues{display:contents}
.header-status .budget-scope,.header-status .issues-action{min-height:38px;box-sizing:border-box;display:flex;align-items:center}
.header-status .budget-scope{grid-column:1;grid-row:1}
.header-status .issues-action{grid-column:2;grid-row:1}
.header-status .diagnostic-time{grid-column:2;grid-row:2;margin-top:0}
@media(max-width:600px){.header-status{grid-template-columns:minmax(0,1fr)}.header-status .budget-scope{justify-self:start}.header-status .issues-action{grid-column:1;grid-row:2;justify-self:start}.header-status .diagnostic-time{grid-column:1;grid-row:3}}

.historical-note{display:flex;flex-direction:column;gap:6px;margin-top:12px;font-size:12px;line-height:1.5;color:var(--muted,#64766d)}
.historical-note button{align-self:flex-start;white-space:normal;text-align:left}
.historical-warning{color:#936017;line-height:1.5}
.overview-metric .historical-note strong{font-size:inherit}


/* Manual source matching and explicit value review. */
.source-refresh-dialog{width:min(1100px,94vw)}.source-mapping{padding:16px 0;border-bottom:1px solid var(--line)}.source-mapping label{display:grid;gap:8px;margin:12px 0}.source-mapping select,.source-refresh-dialog select{max-width:100%;width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:white}.source-mapping-detail{background:white;padding:12px;border-radius:8px;overflow-wrap:anywhere}.source-matched{background:#edf5ee;border:1px solid #cbdcce;border-radius:12px;padding:18px;margin:18px 0}.source-refresh-dialog .source-changes li{margin:14px 0;overflow-wrap:anywhere}.source-refresh-dialog .source-changes label{display:grid;gap:8px;margin-top:10px}

.source-refresh-dialog .source-changes>ul{max-height:none;overflow:visible}

/* Budget entry assistance: hints remain placeholders until explicitly accepted. */
.input-help{margin:0;padding:0 20px 12px;color:var(--muted,#697a70);font-size:13px;line-height:1.5}
.category-status{padding:0 20px 12px;font-size:12px;color:var(--muted,#697a70)}
.category-status .small{font-size:12px;padding:4px 8px}
.budget-category{display:flex;flex-direction:column;gap:4px;margin:10px 0;font-size:12px;font-weight:400;color:#65756b}
.budget-category select{width:100%;max-width:100%;min-width:0;padding:7px 24px 7px 8px;border:1px solid #ccd9cf;border-radius:7px;background:#fff;color:#425b4b;font:inherit;font-size:12px;text-overflow:ellipsis}
.budget-category select:disabled{background:#f4f6f3;color:#69786d;opacity:1}
.budget-category small{font-size:11px}
.has-input-suggestion::placeholder{color:#91988f;opacity:1}
.paired-input-suggestion{border-color:#a6b99b;background:#f5f8ef}
.has-input-suggestion:focus{border-color:#658f6f}

.order-comparison-controls{display:grid;gap:8px;margin:16px 0;padding:16px;background:#f6f8f7;border:1px solid #d9e3dd;border-radius:10px}.order-comparison-controls label{display:grid;gap:6px;font-weight:600}.order-comparison-controls select{max-width:100%;width:min(100%,650px);padding:9px;border:1px solid #c4d3ca;border-radius:6px;background:white;color:inherit}.order-comparison-controls p{font-size:12px;line-height:1.5;color:#52655a;margin:0}.comparison-load-error{color:#9b3b22;font-size:13px}.order-comparison-values{padding-left:18px;margin:8px 0}.order-comparison-values li{margin:5px 0}.comparison-growth{color:#a44420}.order-comparison-values strong{font-size:11px}

/* Compact the three section totals without shrinking their figures or hiding checks. */
.section-kpis{gap:12px}
.section-kpis>.kpi{padding:14px 16px;min-height:0}
.section-kpis .value{margin:10px 0 7px}
.section-kpis .comparison-kpi>.budget-difference{grid-template-columns:max-content minmax(0,1fr);align-items:baseline;gap:3px 8px;margin:10px 0;padding-bottom:8px}
.section-kpis .comparison-kpi>.budget-difference>strong{font-size:clamp(22px,1.7vw,26px)}
.section-kpis .comparison-kpi>.budget-difference>small{grid-column:1/-1}
.section-kpis .historical-note{gap:4px;margin-top:8px}
.section-kpis .historical-note button{padding:5px 8px}
@media(max-width:560px){.section-kpis>.kpi{padding:14px 16px}.section-kpis .comparison-kpi>.budget-difference{grid-template-columns:1fr}}

.source-comparison-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px}.source-comparison-actions .source-comparison-note{margin:0}.source-comparison-dialog-heading{flex-wrap:wrap}
