.layout{grid-template-columns:225px minmax(0,1fr)}.results.rab-panel{grid-column:1/-1;width:100%;min-width:0}.rab-panel>.topline h3{font-size:18px;color:#183957}.rab-panel>#materialsSummary>.breakdown{display:none}.rab-panel>#project{max-width:500px}.rab-controls{margin:18px 0;padding:15px;background:#f5f8fc;border:1px solid #dce5ef;border-radius:12px;display:grid;grid-template-columns:1fr minmax(200px,.7fr);gap:10px 18px}.rab-controls label{display:block;font-size:12px;font-weight:650;margin-bottom:5px}.rab-control-row{display:flex;gap:8px}.rab-control-row input{flex:1;min-width:0}.rab-controls input,.rab-controls select,.rab-calc-destination select{padding:10px;border:1px solid #ccd8e6;border-radius:8px;background:white;width:100%}.rab-control-row .btn{flex-shrink:0;font-size:12px}.rab-controls p{grid-column:1/-1;margin:0}.rab-target-label select{margin-top:5px}.rab-calc-destination{margin:14px 0;display:block;font-size:12px;font-weight:650}.rab-calc-destination select{margin-top:5px}.rab-table-scroll{overflow-x:auto;width:100%;max-width:100%;border:1px solid #dce4ee;border-radius:10px}.rab-table{width:100%;min-width:1260px;table-layout:fixed;border-collapse:collapse;font-size:12px}.rab-table th{background:#173b65;color:#fff;padding:12px 8px;text-align:left;vertical-align:middle;font-size:11px}.rab-table td{padding:12px 8px;border-bottom:1px solid #e1e7ef;vertical-align:top;overflow-wrap:anywhere}.rab-table .num{text-align:right;font-variant-numeric:tabular-nums}.rab-table th:nth-child(n+3){text-align:right}.rab-table td small{display:block;font-size:10px;color:#687d93;font-weight:400;margin-top:4px}.rab-table .rab-description{padding-left:27px}.rab-description>strong{font-size:12px;line-height:1.5;display:block}.rab-item:hover{background:#f9fbfe}.rab-number{color:#697f98}.rab-table .rab-group{background:#e5eefb;font-weight:750;color:#183e70}.rab-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.rab-group-name{font-weight:750;color:#183e70;background:transparent;border:1px solid transparent;border-radius:6px;padding:5px;min-width:160px;max-width:100%;flex:1}.rab-group-name:hover,.rab-group-name:focus{border-color:#9cbbe1;background:#fff}.rab-group-actions{display:flex;gap:5px;align-items:center}.rab-group-actions .smallbtn{font-size:10px;white-space:nowrap}.rab-group-actions button:disabled{opacity:.4;cursor:default}.rab-item-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:6px}.rab-item-actions .trace-button{margin:0;display:inline-block}.rab-move{max-width:170px;width:100%;font-size:10px;padding:5px;border:1px solid #dce4ee;border-radius:6px;color:#64758c;background:#fff}.rab-qty,.rab-price{width:100%;min-width:0;text-align:right;padding:7px 5px;border:1px solid #ccd9e8;border-radius:6px;font-size:12px;background:#fff}.rab-volume{font-weight:650;color:#185c47}.rab-money{font-weight:700;color:#173d65}.rab-measure{background:#fafcff;color:#60728a;font-size:11px}.rab-table .rab-measure-label{padding-left:42px}.rab-measure-label small{font-size:9px!important}.rab-empty-group{color:#6c7f94;font-size:12px}.rab-subtotal{background:#f0f5fb;font-weight:700}.rab-subtotal td:first-child{text-align:right}.rab-incomplete{font-size:10px;color:#a86212}.rab-total{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:15px;padding:18px;background:#eaf6ef;border:1px solid #bddcc9;border-radius:11px;color:#11643f}.rab-total strong{display:block;font-size:15px}.rab-total small{display:block;margin-top:5px;font-size:11px}.rab-total b{font-size:24px;white-space:nowrap}.print-number{display:none}.rab-panel .buttonrow{display:flex}.rab-panel .buttonrow .btn{font-size:12px}@media(max-width:760px){.rab-controls{display:block;padding:11px}.rab-control-row{flex-direction:column}.rab-target-label{margin-top:12px}.rab-controls p{margin-top:10px}.rab-panel>.topline h3{font-size:16px}.rab-total{padding:13px;align-items:flex-start;flex-direction:column;gap:8px}.rab-total b{font-size:22px}.rab-panel .buttonrow{display:grid;grid-template-columns:1fr 1fr}.rab-panel .buttonrow .btn:first-child{grid-column:1/-1}}@media print{@page{size:A4 landscape;margin:10mm}.rab-table-scroll{overflow:visible!important;border:0}.rab-table{min-width:0!important;font-size:9px;table-layout:auto}.rab-table col{width:auto!important}.rab-table col:nth-child(2){width:25%!important}.rab-table th,.rab-table td{padding:6px 4px!important;font-size:9px}.rab-table thead{display:table-header-group}.rab-table tr{break-inside:avoid}.rab-table .rab-description{padding-left:15px!important}.rab-table .rab-measure-label{padding-left:24px!important}.rab-qty,.rab-price{display:none}.print-number{display:inline!important}.rab-controls,.rab-item-actions{display:none!important}.rab-total{break-inside:avoid}.rab-table .rab-group{print-color-adjust:exact}.rab-panel .tablewrap,.rab-table-scroll{max-width:none!important}.rab-panel .noprint{display:none!important}.rab-calc-destination{display:none}}

/* Project budgets share quantities while keeping RAB and RAP prices separate. */
.budget-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 22px 0}.budget-views{display:flex;padding:3px;background:#edf2f8;border-radius:8px}.budget-views button{border:0;background:transparent;color:#677d95;border-radius:6px;padding:8px 12px;font:600 11px system-ui;cursor:pointer}.budget-views button.active{background:#fff;color:#1d65a8;box-shadow:0 1px 4px #18344f15}.budget-toolbar>.btn{font-size:11px;padding:8px 12px;min-height:34px}.budget-toolbar #budget-policy{font-size:10px;color:#63778e}.budget-summary{margin:14px 22px 0;border:1px solid #e1e8f0;border-radius:9px;background:#fafcff}.budget-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.budget-cards>div{padding:12px 16px;min-width:0}.budget-cards>div+div{border-left:1px solid #e1e8f0}.budget-cards span,.budget-cards small{display:block;color:#6b7f94;font-size:10px}.budget-cards strong{display:block;font-size:17px;color:#234764;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:3px 0}.budget-cards small{font-size:10px}.budget-summary>details{border-top:1px solid #e1e8f0;font-size:11px;color:#617a93;padding:8px 16px}.budget-summary summary{cursor:pointer}.budget-breakdown p{margin:7px 0}.budget-settings{width:min(620px,94vw);max-height:90dvh;overflow-y:auto}.budget-settings p{font-size:12px;color:#61758b;line-height:1.65}.budget-settings fieldset{border:1px solid #dce5f0;border-radius:9px;padding:12px 14px;margin:14px 0;min-width:0}.budget-settings legend{font-size:12px;font-weight:700;color:#294b70;padding:0 6px}.budget-settings .field{display:block;font-size:12px;color:#3f5873}.budget-settings .field input,.budget-settings .field select{margin-top:5px;width:100%;font-size:13px}.budget-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:12px}.budget-settings input:disabled{background:#f1f4f8;color:#8b98a7}.budget-example{background:#eff6ff;border-radius:7px;padding:10px}.budget-print{display:none}
@media(max-width:760px){.budget-toolbar{padding:12px 12px 0;gap:8px}.budget-toolbar #budget-policy{width:100%;line-height:1.6}.budget-summary{margin:12px 12px 0}.budget-cards>div{padding:10px 8px}.budget-cards strong{font-size:13px}.budget-cards span,.budget-cards small{font-size:9px}.budget-summary>details{font-size:10px;padding:8px}.budget-fields{gap:10px}.budget-settings{padding:14px}}
@media print{.budget-toolbar,.budget-summary .budget-cards,.budget-summary>details{display:none!important}.budget-summary{margin:0 0 10px;border:0;background:none}.budget-print{display:block;font-size:10px;color:#384d61}.budget-settings{display:none!important}}
/* Compact budget totals live beside the workspace title. */
.estimator-shell .shell-rab-heading{gap:20px;align-items:center;flex-wrap:wrap}.estimator-shell .shell-rab-title{flex:1;min-width:260px}.estimator-shell .shell-project-total{display:none}.estimator-shell .shell-rab-heading>.budget-summary{flex:1.35;margin:0 0 0 auto;min-width:430px;max-width:680px;border:0;background:transparent;text-align:right}.shell-rab-heading .budget-cards>div{padding:0 16px}.shell-rab-heading .budget-cards>div:last-child{padding-right:0}.shell-rab-heading .budget-cards strong{font-size:20px;white-space:nowrap}.shell-rab-heading .budget-cards span{font-size:10px;text-transform:uppercase;letter-spacing:.04em}.shell-rab-heading .budget-cards small{font-size:9px}.budget-detail-button{border:0;background:transparent;color:#4677a5;padding:6px 0 0;cursor:pointer;font:10px system-ui}.budget-flow{font-weight:700;color:#285c8a!important}.budget-print{display:none}
@media(max-width:1100px){.estimator-shell .shell-rab-heading>.budget-summary{min-width:365px;flex:1}.shell-rab-heading .budget-cards strong{font-size:16px}.shell-rab-heading .budget-cards>div{padding:0 10px}}
@media(max-width:760px){.estimator-shell .shell-rab-heading{gap:14px;align-items:stretch}.estimator-shell .shell-rab-title{min-width:0}.estimator-shell .shell-rab-heading>.budget-summary{width:100%;min-width:0;max-width:none;margin:0;text-align:left;border-top:1px solid #e7edf4;padding-top:12px}.shell-rab-heading .budget-cards>div{padding:0 8px}.shell-rab-heading .budget-cards>div:first-child{padding-left:0}.shell-rab-heading .budget-cards strong{font-size:13px;white-space:normal}.shell-rab-heading .budget-cards span{font-size:9px}.budget-detail-button{padding-top:7px}.budget-summary .budget-print{display:none}}
@media print{.estimator-shell .shell-project-total{display:block}.estimator-shell .shell-rab-heading>.budget-summary{display:block!important;flex-basis:100%;max-width:none;min-width:0;text-align:left;padding:0}.budget-detail-button,.budget-cards{display:none!important}.budget-summary .budget-print{display:block!important}.shell-rab-heading .shell-rab-title{flex:1}.shell-project-total .rab-total strong{display:block}}
/* Resource recaps and project deletion remain secondary actions. */
.project-resource-recap #materialsSummary>.breakdown{display:none}.resource-tabs{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;flex-wrap:wrap}.resource-tabs>div{display:flex;padding:3px;background:#edf2f8;border-radius:8px;max-width:100%}.resource-tabs>div>button{border:0;border-radius:6px;background:transparent;color:#64788e;font:600 11px system-ui;padding:8px 12px;cursor:pointer}.resource-tabs>div>button.active{background:#fff;color:#1d65a8;box-shadow:0 1px 4px #18344f15}.resource-tabs>.btn{font-size:11px;padding:8px 12px}.project-resource-recap [hidden]{display:none!important}.manpower-heading{display:flex;justify-content:space-between;align-items:center;gap:14px}.manpower-heading h3{margin:0 0 5px;font-size:15px}.manpower-heading p{font-size:12px;color:#506e87;margin:0}.manpower-heading>div:last-child{text-align:right}.manpower-heading span{display:block;font-size:10px;color:#6b7f94}.manpower-heading strong{font-size:18px;color:#22597a}.manpower-planning{display:flex;gap:14px;align-items:end;flex-wrap:wrap;padding:12px;background:#f6f9fc;border:1px solid #e2e9f2;border-radius:8px;margin:12px 0}.manpower-planning label{font-size:11px;color:#4b6580;display:block}.manpower-planning input{display:block;width:160px;margin-top:5px;border:1px solid #cddbeb;border-radius:6px;background:#fff;padding:8px;font-size:12px}.manpower-planning>span{font-size:10px;color:#728399;max-width:430px;line-height:1.7}.manpower-table{min-width:760px;width:100%;border-collapse:collapse}.manpower-table th,.manpower-table td{padding:10px 9px;border-bottom:1px solid #e1e8f1;vertical-align:top}.manpower-table th{font-size:11px;color:#5b7188;background:#f4f7fb}.manpower-table td{font-size:12px}.manpower-table td:first-child{width:46%}.manpower-table .num{text-align:right;font-variant-numeric:tabular-nums}.manpower-table small{display:block;font-size:10px;color:#aa6819}.manpower-trace{margin-top:5px;font-size:10px;color:#607b96}.manpower-trace summary{cursor:pointer}.manpower-trace>div{padding:8px 0;border-top:1px solid #e3ebf4;margin-top:7px;line-height:1.8}.manpower-trace span{display:block}.manpower-trace .smallbtn{margin-top:4px;font-size:10px}.manpower-warning{font-size:11px;border:1px solid #f2dcb7;background:#fff9ef;color:#906328;padding:10px;border-radius:6px}#project-delete-name{font-weight:700;overflow-wrap:anywhere}#project-trash-dialog select{width:100%;padding:10px;border:1px solid #cddbeb;border-radius:7px}#project-trash-dialog .field{display:block}#db-delete{background:#fff2ef;color:#a83e30}#db-trash{color:#526d87;background:#f5f8fc}
@media(max-width:760px){.resource-tabs{gap:10px}.resource-tabs>div>button{font-size:10px;padding:8px}.manpower-heading{align-items:start;flex-direction:column}.manpower-heading>div:last-child{text-align:left}.manpower-planning{gap:10px}.manpower-planning label{flex:1;min-width:115px}.manpower-planning input{width:100%;min-width:0}.manpower-planning>span{width:100%}.project-resource-recap .recap-scroll{overflow-x:auto;max-width:100%}}
