.qhc-budget-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.qhc-budget-nav button{min-height:46px}.qhc-budget-section{border:1px solid #d9e2ec;border-radius:10px;padding:12px;margin:12px 0}.qhc-budget-scroll{max-width:100%;overflow-x:auto}.qhc-budget table{width:100%;min-width:760px;border-collapse:collapse;table-layout:fixed}.qhc-budget th,.qhc-budget td{padding:6px 5px;border-bottom:1px solid #e1e8ef;vertical-align:middle}.qhc-budget th:nth-child(1){width:42px}.qhc-budget th:nth-child(2){width:30%}.qhc-budget th:nth-child(3){width:70px}.qhc-budget th:nth-child(4){width:95px}.qhc-budget th:nth-child(5){width:130px}.qhc-budget th:nth-child(6){width:130px}.qhc-budget th:last-child{width:40px}.qhc-budget td input{width:100%;min-width:0;box-sizing:border-box}.qhc-budget-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.qhc-budget-warning{padding:12px;border:1px solid #c68b23;background:#fff7e8;border-radius:8px}.qhc-budget-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.qhc-budget-card{border:1px solid #d9e2ec;border-radius:10px;padding:12px}.qhc-budget-card.safe{border-left:5px solid #18844b}.qhc-budget-card.attention{border-left:5px solid #d2a020}.qhc-budget-card.near,.qhc-budget-card.over{border-left:5px solid #c63737}.qhc-budget-chart{display:flex;align-items:center;gap:18px}.qhc-budget-pie{width:144px;height:144px;flex:none;border-radius:50%}.qhc-budget-legend{display:grid;gap:6px}.qhc-budget-legend span{display:inline-block;width:10px;height:10px;margin-right:6px}.qhc-budget-report{padding:12px;border:1px solid #d9e2ec;border-radius:10px;margin:12px 0}@media(max-width:700px){.qhc-budget-nav{grid-template-columns:1fr}.qhc-budget-summary{grid-template-columns:1fr}.qhc-budget-chart{flex-wrap:wrap}}@media print{@page{size:A4 portrait;margin:13mm}.qhc-budget-nav,.qhc-budget-actions,.qhc-budget label,.qhc-budget #qhc-budget-print,aside,header{display:none!important}.qhc-budget{font:10pt Arial,sans-serif}.qhc-budget-pie{width:36mm!important;height:36mm!important}.qhc-budget table{min-width:0;font-size:8pt}.qhc-budget-scroll{overflow:visible}.qhc-budget th,.qhc-budget td{overflow-wrap:normal;word-break:normal}.qhc-budget-report{break-inside:avoid}}

.qhc-budget-dot-0{background:#1d568c}.qhc-budget-dot-1{background:#36a5a1}.qhc-budget-dot-2{background:#e4b45b}.qhc-budget-dot-3{background:#8a72c2}
/* QHC 0.21.51 – compact estimate entry, independent verification fixture */
.qhc-budget{max-width:100%;min-width:0}
.qhc-budget-section{padding:10px 12px;margin:9px 0;border-radius:9px;background:#fff}
.qhc-budget-group-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.qhc-budget-group-title h3{margin:0;font-size:14px;line-height:1.35}
.qhc-budget-group-title strong{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
.qhc-budget table{min-width:700px;margin:0;font-size:12px;table-layout:fixed}
.qhc-budget th,.qhc-budget td{padding:3px 4px;line-height:1.25}
.qhc-budget th{background:#f0f5f9;font-size:11px;white-space:nowrap}
.qhc-budget td input{height:31px!important;min-height:31px!important;margin:0!important;padding:4px 6px!important;font-size:12px!important;border-radius:5px!important}
.qhc-budget th:nth-child(1){width:35px}.qhc-budget th:nth-child(2){width:auto}.qhc-budget th:nth-child(3){width:62px}.qhc-budget th:nth-child(4){width:82px}.qhc-budget th:nth-child(5){width:112px}.qhc-budget th:nth-child(6){width:130px}.qhc-budget th:last-child{width:33px}
.qhc-budget td.number{font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right;font-size:12px}
.qhc-budget-stt{text-align:center}
.qhc-budget td [data-budget-delete]{padding:3px 7px;min-height:27px}
.qhc-budget-actions{margin-top:6px;gap:7px}.qhc-budget-actions button{padding:6px 10px;font-size:12px;min-height:32px}
.qhc-budget-demo{border:1px solid #dfad43;background:#fff8e8;padding:10px;border-radius:7px;font-weight:600;font-size:12px}
@media(max-width:700px){.qhc-budget-section{padding:8px}.qhc-budget-group-title{align-items:flex-start}.qhc-budget table{min-width:700px}}
@media print{.qhc-budget-demo{display:none!important}.qhc-budget-group-title{break-after:avoid}.qhc-budget-section{break-inside:auto}}

/* 0.21.52 compact cost warning and table */
.qhc-budget-card{padding:10px 12px;min-width:0}.qhc-budget-card h3{margin:0 0 5px;font-size:15px}.qhc-budget-card>strong{font-size:12px}.qhc-budget-metrics{display:grid;grid-template-columns:1fr 1fr;gap:5px 12px;margin:9px 0;font-size:12px}.qhc-budget-metrics span{display:flex;flex-direction:column;color:#64748b}.qhc-budget-metrics b{font-size:13px;color:#18384c;white-space:nowrap}.qhc-budget-progress{height:9px;background:#e6edf2;border-radius:20px;overflow:hidden}.qhc-budget-progress span{display:block;height:100%;background:#18844b}.qhc-budget-card.attention .qhc-budget-progress span{background:#d2a020}.qhc-budget-card.near .qhc-budget-progress span,.qhc-budget-card.over .qhc-budget-progress span{background:#c63737}.qhc-budget-foot{margin:7px 0;font-size:12px}.qhc-budget-detail table{min-width:790px;table-layout:fixed}.qhc-budget-detail th:nth-child(1){width:105px}.qhc-budget-detail th:nth-child(2){width:auto}.qhc-budget-detail th:nth-child(3){width:105px}.qhc-budget-detail th:nth-child(4){width:80px}.qhc-budget-detail th:nth-child(5){width:145px}.qhc-budget-detail th:nth-child(6){width:100px}.qhc-budget-detail td,.qhc-budget-detail th{word-break:normal;overflow-wrap:break-word;white-space:normal;padding:7px}.qhc-budget-detail td:first-child,.qhc-budget-detail td:nth-child(5){white-space:nowrap}.qhc-budget-detail td:nth-child(5){text-align:right}.qhc-budget-four{display:grid;grid-template-columns:1fr 1fr;gap:10px}.qhc-budget-ring-item{display:flex;gap:12px;align-items:center;border:1px solid #dce5ec;padding:9px;border-radius:8px;break-inside:avoid}.qhc-budget-ring{width:80px;height:80px;flex:none;border-radius:50%;display:grid;place-items:center;position:relative}.qhc-budget-ring:before{content:"";position:absolute;inset:13px;border-radius:50%;background:#fff}.qhc-budget-ring span{z-index:1;font-weight:700;font-size:12px}.qhc-budget-ring-item b,.qhc-budget-ring-item small{display:block}.qhc-budget-ring-item small{font-size:11px;margin-top:3px}.qhc-over{color:#b91c1c}@media(max-width:700px){.qhc-budget-four{grid-template-columns:1fr}}

/* 0.21.53: individual ring on each alert, compact and responsive */
.qhc-budget-mini-ring{margin:6px 0;max-width:100%}.qhc-budget-mini-ring .qhc-budget-ring-item{border:0;padding:0;gap:8px}.qhc-budget-mini-ring .qhc-budget-ring{width:58px;height:58px}.qhc-budget-mini-ring .qhc-budget-ring:before{inset:10px}.qhc-budget-mini-ring .qhc-budget-ring span{font-size:10px}.qhc-budget-mini-ring .qhc-budget-ring-item small{font-size:10px}.qhc-budget-card{overflow:hidden}

/* QHC 0.21.54: SVG circular indicators + accurate 0–100% progress */
.qhc-budget-ring{background:transparent!important;display:flex;align-items:center;justify-content:center;overflow:visible}
.qhc-budget-ring:before{display:none!important}
.qhc-budget-ring-svg{display:block;width:100%;height:100%;flex:none;overflow:visible}
.qhc-budget-mini-ring .qhc-budget-ring{width:78px;height:78px;min-width:78px}
.qhc-budget-mini-ring .qhc-budget-ring-item{display:flex;align-items:center;gap:12px}
.qhc-budget-ring-details{min-width:0;overflow-wrap:break-word}
.qhc-budget-progress{width:100%;height:10px;background:#e6edf2;border-radius:999px;overflow:hidden}
.qhc-budget-progress>span{height:100%;display:block;border-radius:999px;transition:width .2s ease}
.qhc-budget-foot{font-variant-numeric:tabular-nums}
@media(max-width:520px){.qhc-budget-mini-ring .qhc-budget-ring{width:70px;height:70px;min-width:70px}.qhc-budget-ring-details small{font-size:10px}}
@media print{.qhc-budget-ring-svg{print-color-adjust:exact;-webkit-print-color-adjust:exact}.qhc-budget-progress>span{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* QHC 0.21.55: percentage-accurate animated budget bars */
.qhc-budget-progress>span{width:0;max-width:100%;transition:width .75s cubic-bezier(.22,1,.36,1)}
@media(prefers-reduced-motion:reduce){.qhc-budget-progress>span{transition:none}}
