.qe{--qe-blue:#176b9a;color:#17384b;min-width:0}.qe h3,.qe h4,.qe p{margin:0 0 9px}.qe small{display:block;color:#637584;font-size:12px}.qe button,.qe input,.qe select{font-size:13px;min-height:34px;padding:7px 9px;margin:0;border-radius:6px;max-width:100%}.qe button{cursor:pointer}.qe-toolbar,.qe-run-title,.qe-actions,.qe-footer,.qe-work-head,.qe-total{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.qe-toolbar{padding:10px 0}.qe-toolbar select{max-width:360px}.qe-actions{justify-content:flex-start}.qe-run-title{padding:10px;background:#eef5fa;border:1px solid #d4e4ee;border-radius:8px;justify-content:flex-start}.qe-run-title small{margin-left:auto}.qe-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:12px 0}.qe-steps button{display:flex;align-items:center;gap:7px;text-align:left}.qe-steps b{font-size:15px}.qe-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;align-items:end}.qe-grid label{display:grid;gap:4px;font-size:12px}.qe-wide{grid-column:span 2}.qe input,.qe select{width:100%;box-sizing:border-box;border:1px solid #bfced9;background:white;color:#17384b}.qe input:focus,.qe select:focus{outline:2px solid #3d9cd1;outline-offset:1px}.qe-check{display:flex!important;align-items:flex-start;gap:7px;font-size:13px;margin:10px 0}.qe-check input{width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:1px 0}.qe-work,.qe-price{border:1px solid #d5e1e9;border-radius:8px;padding:10px;margin:9px 0;background:#fff}.qe-work-head{margin-bottom:8px}.qe-work-head b{flex:1}.qe-work-head button{padding:2px 10px}.qe-upload{padding:18px;background:#f3f8fc;border:1px dashed #83abc5;border-radius:9px}.qe-upload input{margin:8px 0}.qe-file-list>div{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #e4ecf2}.qe-file-list span{flex:1;overflow-wrap:anywhere}.qe-review,.qe-callout{background:#edf6fb;padding:10px;border-radius:6px}.qe-warning,.qe .error,.qe-dialog-error{color:#a54414!important}.qe-duration{margin:14px 0}.qe-price summary{display:flex;gap:8px;justify-content:space-between;cursor:pointer;padding-bottom:8px}.qe-price small{margin:4px 0 10px}.qe-actual{padding-top:10px}.qe-percent{background:#f4f7fa;padding:8px;font-size:12px;margin:6px 0;border-radius:5px}.qe-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}.qe-totals>div{background:#f0f6fb;padding:12px;border-radius:8px}.qe-totals b{display:block;margin-top:6px;font-size:17px}.qe-total{padding:14px;border-radius:8px;background:#175e8a;color:white;margin-bottom:16px}.qe-total strong{font-size:24px}.qe-scroll{overflow:auto;max-width:100%;margin:10px 0}.qe-scroll table{border-collapse:collapse;width:100%;min-width:540px;font-size:12px}.qe-scroll td,.qe-scroll th{padding:7px;text-align:left;border:1px solid #dae3ea;white-space:normal}.qe-scroll th{background:#edf4f9}.qe-footer{border-top:1px solid #dde8ef;margin-top:16px;padding-top:12px}.qe-empty{padding:25px;text-align:center;background:#f5f8fb}.qe-busy{pointer-events:none;opacity:.72}.qe-dialog{width:min(1000px,94vw);max-width:94vw;max-height:88vh;border:0;border-radius:12px;padding:16px;color:#17384b}.qe-dialog::backdrop{background:#102f4799}.qe-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.qe-dialog-head h3{margin:0}.qe-dialog-body{font-size:14px}.qe-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:400px;overflow:auto;background:#f5f8fb;padding:10px}.qe-search{display:flex;gap:8px;margin:12px 0}.qe-search input{flex:1;min-width:0;padding:8px}.qe-norm-option{display:block;text-align:left;width:100%;padding:9px;margin:5px 0;border:1px solid #d5e1e9;background:#f5f9fc;border-radius:6px}.qe-norm-option small{display:block}.qe-search-result{border-bottom:1px solid #d5e1e9;padding:10px 0}.qe-search-result p{font-size:12px}.qe-dialog #qe-norm-list{max-height:230px;overflow:auto}.qe-dialog .qe-grid input,.qe-dialog .qe-grid select{width:100%;padding:7px;box-sizing:border-box}.qe-dialog .qe-grid label{font-size:12px}.qe-dialog .qe-check{display:flex;gap:7px;margin:12px 0}.qe-dialog .qe-check input{width:auto}.qe-dialog button{cursor:pointer}.qe details>summary{cursor:pointer}.qe #qe-message:empty{display:none}
@media(max-width:700px){.qe-steps{display:flex;overflow-x:auto;padding-bottom:4px}.qe-steps button{flex:0 0 135px}.qe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.qe-wide{grid-column:span 2}.qe-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.qe-toolbar{align-items:stretch}.qe-toolbar>div,.qe-toolbar select{width:100%;max-width:none}.qe-toolbar .qe-actions{flex-wrap:nowrap}.qe-toolbar .qe-actions select{min-width:0}.qe-toolbar .qe-actions button{white-space:nowrap}.qe-file-list>div{flex-wrap:wrap}.qe-file-list span{flex-basis:100%}.qe-run-title small{margin-left:0}.qe-price summary{flex-direction:column}.qe input,.qe select,.qe-dialog input,.qe-dialog select{font-size:16px!important}.qe-work,.qe-price{padding:9px}.qe-dialog{padding:12px}.qe-search{flex-wrap:wrap}.qe-search input{flex-basis:65%}.qe-total strong{font-size:21px}}
.qhc-budget .qe .qe-scroll table{table-layout:auto;min-width:480px}
.qhc-budget .qe .qe-scroll th{width:auto;white-space:normal;word-break:normal;letter-spacing:normal}
.qhc-budget .qe .qe-scroll th:first-child{min-width:180px}
.qhc-budget .qe .qe-scroll th:not(:first-child){min-width:80px}
.qhc-budget .qe .qe-scroll td{word-break:normal;overflow-wrap:normal;padding:8px}
.qhc-budget .qhc-budget-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:10px 0}
.qhc-budget .qhc-budget-nav button{min-height:36px;padding:7px}
.qe-toolbar .qe-actions{flex-wrap:nowrap}.qe-toolbar .qe-actions select{min-width:0;flex:1}
@media(max-width:700px){.qhc-budget .qhc-budget-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.qe-totals b{font-size:15px}.qe-total{align-items:flex-start;flex-direction:column;gap:5px}.qe-dialog .qe-scroll{width:100%}}

.qe-steps{position:relative}.qe-run-title{scroll-margin-top:12px}

.qe-step-short{display:none}
@media(max-width:700px){.qe-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible;gap:4px}.qe-steps button{flex:none;flex-direction:column;gap:3px;padding:7px 3px;font-size:11px;text-align:center;min-width:0;justify-content:flex-start}.qe-step-full{display:none}.qe-step-short{display:block}.qe-steps b{font-size:14px}}
/* 0.21.94: compact, scoped controls; never inherit full-width checkbox sizing. */
.qhc-budget .qe input[type=checkbox],.qe-dialog input[type=checkbox]{appearance:auto!important;-webkit-appearance:checkbox!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;padding:0!important;margin:0!important;flex:0 0 16px!important;accent-color:#168447;border-radius:3px;box-shadow:none!important}
.qhc-budget .qe .qe-check,.qe-dialog .qe-check{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;padding:4px 0;margin:5px 0!important;min-height:28px;width:auto!important;font-size:12px;line-height:1.4}
.qhc-budget .qe .qe-check:has(input:checked),.qe-dialog .qe-check:has(input:checked){color:#16743c;font-weight:600}
.qhc-budget .qe .qe-review{padding:6px 9px!important}
.qe .qe-work,.qe .qe-price{padding:8px;margin:6px 0}.qe .qe-work-head{gap:6px;margin-bottom:5px}.qe .qe-work-head small{flex:8;overflow-wrap:anywhere}.qe .qe-work-head button{min-height:28px;padding:3px 8px}.qe .qe-checked-row{border-color:#8bc6a2;background:#fbfefb}
.qe-quantity-grid{display:grid;grid-template-columns:minmax(0,1fr) 78px 112px 125px;gap:8px;align-items:center}.qe-quantity-grid label{font-size:12px;min-width:0;display:grid;gap:3px}.qe-quantity-grid textarea{resize:vertical;min-height:46px;max-height:260px;width:100%;box-sizing:border-box;border:1px solid #bfced9;border-radius:6px;font:inherit;font-size:13px;padding:6px 8px;line-height:1.4;white-space:pre-wrap}.qe-quantity-grid .qe-row-check{align-self:end;white-space:nowrap;margin-bottom:3px!important}
.qe-review-tools,.qe-norm-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:6px 0}.qe-review-tools button{font-size:12px;padding:4px 7px;min-height:30px}.qe-help{font-size:12px;color:#587083;line-height:1.5;margin:6px 0!important}.qe .qe-warning{margin-top:4px}.qe .qe-toolbar .qe-actions{flex-wrap:wrap}
.qe-dialog{width:min(860px,94vw);padding:12px;box-sizing:border-box}.qe-dialog .qe-dialog-head h3{font-size:17px}.qe-dialog .qe-grid{gap:7px}.qe-dialog input,.qe-dialog select,.qe-dialog button,.qe-dialog textarea{font-size:13px;min-height:32px;border-radius:5px;padding:5px 7px;box-sizing:border-box;max-width:100%}.qe-dialog input,.qe-dialog select{border:1px solid #bdceda;background:#fff;color:#17384b}.qe-dialog .qe-grid label{gap:3px;display:grid;min-width:0}.qe-dialog .qe-grid input{min-width:0}.qe-dialog .qe-check input{width:16px!important}.qe-dialog .qe-search{gap:6px;margin:8px 0}.qe-dialog .qe-search select{max-width:160px}.qe-dialog .qe-search button{white-space:nowrap}.qe-dialog .qe-scroll{max-height:420px}.qe-dialog .qe-scroll td{white-space:pre-wrap;min-width:70px;overflow-wrap:anywhere}
.qe-optional{margin:6px 0;font-size:12px}.qe-optional input{width:100%;margin-top:4px}.qe-resource-group{border:1px solid #d3e1eb;border-radius:6px;margin:7px 0;padding:7px}.qe-resource-group>summary{cursor:pointer;font-size:13px;color:#17618c}.qe-resource-group>button{margin-top:5px}.qe-resource-row{border-top:1px solid #e1e9ee;padding:7px 0 3px}.qe-resource-head{display:flex;gap:6px;align-items:end;margin-bottom:5px}.qe-resource-head label{flex:1;font-size:11px;display:grid;gap:3px}.qe-resource-head input{width:100%;min-width:0}.qe-resource-head button{min-width:30px}.qe-resource-values{display:grid;grid-template-columns:1.3fr .7fr 1.2fr .8fr;gap:7px}.qe-resource-values label{min-width:0;font-size:11px;display:grid;gap:3px}.qe-resource-values input,.qe-resource-values select{width:100%;min-width:0}.qe-resource-row[data-custom-category=NC] .qe-resource-values{grid-template-columns:1fr 2fr}.qe-suffix{display:flex;align-items:stretch;border:1px solid #bdceda;border-radius:5px;overflow:hidden;background:#f1f6f9;min-width:0}.qe-dialog .qe-suffix input{border:0;border-radius:0;min-width:0;flex:1;width:0}.qe-suffix>span{display:flex;align-items:center;padding:4px 7px;font-size:12px;color:#315b72;white-space:nowrap}.qe-resource-preview{display:block;font-size:11px;color:#567083;margin:4px 0}.qe-editor-footer{display:flex;gap:6px;flex-wrap:wrap;margin:7px 0}.qe-components{font-size:12px;margin:6px 0}.qe-components summary{cursor:pointer}.qe-components>div{padding:5px 8px;border-bottom:1px solid #e5edf2}.qe-components p{margin:3px 0;white-space:pre-wrap}.qe-unmapped{max-height:300px;overflow:auto}.qe-unmapped>div{border-bottom:1px solid #dce7ed}.qe-unmapped pre{margin:2px 0;padding:5px}.qe-dialog #qe-library-list{max-height:240px;overflow:auto}.qe-dialog #qe-library-detail h4{margin:8px 0}.qe-dialog #qe-library-detail p{margin:5px 0}
@media(max-width:700px){.qe-quantity-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.qe-quantity-grid .qe-description{grid-column:1/-1}.qe-quantity-grid .qe-row-check{grid-column:1/-1;justify-self:start}.qe-quantity-grid textarea{font-size:16px}.qe .qe-toolbar .qe-actions{display:flex;flex-wrap:wrap}.qe .qe-toolbar .qe-actions select{flex-basis:100%}.qe .qe-toolbar .qe-actions button{flex:1;font-size:12px}.qe-dialog{padding:10px;max-height:90dvh}.qe-dialog .qe-search input{flex-basis:100%}.qe-dialog .qe-search select{max-width:none;flex:1}.qe-resource-values{grid-template-columns:repeat(2,minmax(0,1fr))}.qe-resource-row[data-custom-category=NC] .qe-resource-values{grid-template-columns:1fr}.qe-resource-values select{max-width:100%}.qe-dialog .qe-grid .qe-wide{grid-column:1/-1}.qe-suffix>span{font-size:11px;padding:4px 6px}.qe-editor-footer button{flex:1}.qe-dialog #qe-library-detail .qe-actions{align-items:stretch;gap:5px}.qe-dialog #qe-library-detail .qe-actions button{flex:1;font-size:12px}.qe .qe-work-head small{font-size:11px}.qe-dialog .qe-check,.qhc-budget .qe .qe-check{min-height:32px}.qe-norm-actions button{flex:1;font-size:12px!important}.qe-review-tools button{max-width:100%;white-space:normal;text-align:left}}
.qe-dialog[open]{display:flex;flex-direction:column;overflow:hidden;padding:0}.qe-dialog>.qe-dialog-head{padding:10px 12px;border-bottom:1px solid #dce7ee;flex-shrink:0}.qe-dialog>.qe-dialog-body{padding:10px 12px;overflow:auto;min-height:0;overscroll-behavior:contain}.qe-dialog>.qe-dialog-error{margin:0;padding:0 12px;flex-shrink:0}.qe-dialog>.qe-dialog-error:empty{display:none}

/* 0.21.95: visible save receipt and editable norm suggestions. */
.qe-editor-suggestions{grid-column:1/-1;max-height:210px;overflow:auto;border:1px solid #adccde;border-radius:6px;padding:6px;background:#f3f9fd;font-size:12px;min-width:0}.qe-editor-suggestions[hidden]{display:none}.qe-editor-suggestions .qe-norm-option{margin:4px 0;padding:6px 8px;overflow-wrap:anywhere}.qe-norm-option:focus-visible{outline:2px solid #267daf;outline-offset:-2px}.qe-save-status{margin:0;padding:8px 12px;flex-shrink:0;display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;font-size:12px;line-height:1.4;overflow-wrap:anywhere;border-bottom:1px solid #ccdfe9}.qe-save-status[hidden]{display:none}.qe-save-status strong,.qe-save-status>span{flex-basis:100%}.qe-saved{background:#eaf7ef;color:#145b32}.qe-saving{background:#eaf4fc;color:#225b80}.qe-save-failed{background:#fff4e8;color:#794419}.qe-dialog .qe-save-status button{min-height:28px;padding:3px 7px;font-size:12px}.qe-dialog #qe-editor-source:empty{display:none}.qe-dialog .qe-editor-footer button[hidden]{display:none}
@media(max-width:700px){.qe-save-status{padding:7px 10px;font-size:11px}.qe-dialog .qe-save-status button{min-height:32px}.qe-editor-suggestions{max-height:180px}.qe-editor-suggestions .qe-norm-option{min-height:44px;text-align:left}}

/* 0.21.96: compact reference prices, scoped to estimates only. */
.qe-reference-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:7px;padding:8px;background:#eaf4fb;border:1px solid #bad5e8;border-radius:7px;margin:7px 0}.qe-reference-toolbar>label{min-width:0;font-size:12px;display:grid;gap:3px}.qe-reference-toolbar>label:nth-child(2){flex:1;min-width:190px}.qe-reference-toolbar select{width:100%;max-width:100%;min-width:0}.qe-reference-toolbar>small{flex-basis:100%;font-size:11px;color:#335c72;overflow-wrap:anywhere}.qe-reference-options{font-size:12px;margin:6px 0;padding:6px 8px;border:1px solid #c8dce9;border-radius:5px;background:#f6fafd}.qe-reference-options summary{cursor:pointer;color:#17658d}.qe-reference-pick{display:flex;gap:6px;align-items:center;margin:6px 0}.qe-reference-pick select{flex:1;min-width:0;width:0;max-width:100%}.qe-reference-pick button{white-space:nowrap;flex-shrink:0}.qe-reference-options small{display:block;line-height:1.45;overflow-wrap:anywhere}.qe-reference-options label{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12px;margin:5px 0}.qe-reference-options input,.qe-reference-options label select{width:190px;max-width:100%;min-width:0}.qe-reference-note{font-size:12px;line-height:1.45;color:#265d7d;padding:5px 7px;margin:5px 0!important;background:#eaf5fc;overflow-wrap:anywhere}.qe-reference-options p{margin:4px 0!important}
@media(max-width:700px){.qe-reference-toolbar{padding:7px;gap:6px}.qe-reference-toolbar>label:nth-child(2){flex-basis:100%;min-width:0}.qe-reference-pick{flex-wrap:wrap}.qe-reference-pick select{flex-basis:100%;width:100%;font-size:13px}.qe-reference-pick button{min-height:36px}.qe-reference-toolbar button{min-height:36px}.qe-reference-options{padding:5px}.qe-reference-options label select,.qe-reference-options input{flex-basis:100%;width:100%}}
