.quote-calculator{margin-top:28px;padding:0;border-top:2px solid var(--ink);background:#fff;scroll-margin-top:24px}.quote-columns{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}.quote-editor{min-width:0}.quote-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.quote-actions .btn{padding:7px 11px;font-size:13px}.quote-calculator label{display:flex;flex-direction:column;gap:4px;font-size:13px;margin-bottom:10px}.quote-calculator input,.quote-calculator select,.quote-calculator textarea{width:100%;min-width:0;box-sizing:border-box;font:inherit;color:var(--ink);background:#fff;border:1px solid var(--strong);border-radius:3px;padding:7px 8px}.quote-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:5px}.quote-table{width:100%;min-width:840px;table-layout:fixed;border-collapse:collapse}.quote-table th,.quote-table td{width:auto;padding:9px 10px;vertical-align:middle;font-size:13px;border-bottom:1px solid var(--line)}.quote-table thead th{background:#eeebe5;color:var(--secondary);font-weight:500;white-space:nowrap}.quote-table th:first-child{width:auto}.quote-table th:nth-child(2){width:112px}.quote-table th:nth-child(3){width:80px}.quote-table th:nth-child(4){width:64px}.quote-table th:nth-child(5){width:135px}.quote-table th:nth-child(6){width:125px}.quote-table th:nth-child(7){width:80px}.quote-table input{height:34px;padding:5px 7px;font-size:13px}.quote-table input[data-field=name]{border-color:transparent;background:transparent;font-weight:500}.quote-table input[data-field=name]:hover,.quote-table input[data-field=name]:focus{border-color:var(--strong);background:#fff}.quote-table input[type=number]{text-align:right}.quote-table .quote-cost,.quote-table .quote-line-total{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.quote-cost{color:var(--secondary)}.quote-line-total{font-weight:700}.quote-remove{border:0;background:transparent;color:var(--secondary);padding:8px 0;font-size:12px;text-decoration:underline;text-underline-offset:3px}.quote-remove:hover{color:#a32e12}.quote-table .quote-group th{padding:6px 10px;background:#f7f6f3;text-align:left;font-weight:600;font-size:12px}.quote-group span{margin-left:6px;color:var(--secondary);font-weight:400}.quote-totals{display:flex;justify-content:flex-end;gap:30px;margin:0;padding:14px 12px;background:#eeebe5}.quote-totals>div{display:flex;gap:12px;align-items:baseline;font-size:13px}.quote-totals dd{margin:0;font-weight:700;font-variant-numeric:tabular-nums}.quote-totals>div:last-child dd{font-size:20px}.quote-preview{padding:16px;background:#f7f6f3;align-self:start;min-width:0}.quote-preview h3{margin:0 0 10px;font-size:18px}.quote-personalize{margin-bottom:12px}.quote-personalize>summary{font-size:13px;color:var(--secondary);margin-bottom:12px}.quote-client-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quote-preview textarea{font-size:14px;line-height:1.5;resize:vertical;min-height:240px;max-height:420px}.quote-preview small{display:block;color:var(--secondary);font-size:12px}.quote-preview>details:last-child{font-size:12px;color:var(--secondary)}.quote-empty{padding:20px;color:var(--secondary);font-size:14px;border:1px dashed var(--strong)}
@media(min-width:1450px){.quote-columns{grid-template-columns:minmax(0,1fr) 340px;gap:20px}.quote-preview{position:sticky;top:16px}.quote-table th,.quote-table td{padding-left:7px;padding-right:7px}}
@media(max-width:760px){.quote-totals{gap:12px;flex-wrap:wrap}.quote-client-fields{grid-template-columns:1fr}.quote-table-wrap{margin:0 -2px}}
@media print{.quote-calculator{display:none}}
.quote-actions .quote-markup{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0 0 0 auto;font-size:13px}.quote-markup input{width:75px;height:32px}.quote-table [data-line-margin]{display:block;font-size:11px;font-weight:400;white-space:normal;color:var(--green);margin-top:3px}.quote-profit{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px 20px;padding:12px;background:#edf3ef}.quote-profit>span{font-weight:600;font-size:14px}.quote-profit small{display:block;font-size:12px;font-weight:400;color:var(--secondary)}.quote-profit>strong{font-size:18px;color:var(--green);font-variant-numeric:tabular-nums}.quote-profit>[data-profit-note]{width:100%;text-align:right}.quote-cost input[readonly]{border-color:transparent;background:transparent;color:var(--secondary)}
.quote-method{margin:12px 0 18px;padding:14px;border:1px solid var(--strong);border-radius:4px}.quote-method legend{padding:0 6px;font-weight:600;font-size:15px}.quote-method-options{display:flex;flex-wrap:wrap;gap:12px 24px}.quote-method-options label{flex-direction:row;align-items:center;gap:8px}.quote-method-options input{width:18px;height:18px;margin:0;accent-color:var(--green)}.quote-method-fields{display:grid;grid-template-columns:minmax(180px,1fr) 160px 180px;gap:12px}.quote-method .hint{margin:2px 0 0;max-width:85ch}.quote-remove:disabled{opacity:.5;text-decoration:none;cursor:default}@media(max-width:760px){.quote-method-fields{grid-template-columns:1fr}.quote-method-options{flex-direction:column;gap:2px}}
.quote-comparison{white-space:pre-wrap;font:600 14px/1.65 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin:12px 0;padding:14px;background:var(--sunk);border-left:3px solid var(--rust)}
/* Compact controls; customer totals are the primary visual anchor. */
.quote-method{padding:12px 14px;margin:10px 0 22px;background:var(--sunk);border:0;border-left:3px solid var(--rust);border-radius:0}.quote-method-bar{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px}.quote-method-bar label{margin:0;width:150px}.quote-method-bar .quote-method-toggle{display:flex;flex-direction:row;align-items:center;gap:8px;width:auto;flex:1 1 230px;font-weight:600;font-size:15px}.quote-method-toggle input{width:18px;height:18px;margin:0;accent-color:var(--rust)}.quote-method-bar input[type=number]{height:34px;background:#fff}.quote-oil-auto{font-size:13px;margin-top:8px;overflow-wrap:anywhere}.quote-oil-auto>span:first-child{color:var(--secondary);margin-right:6px}.quote-oil-auto strong{font-weight:500}.quote-oil-missing{color:var(--rust)}.quote-method-details,.quote-pricing-help,.quote-internal{font-size:13px;color:var(--secondary);margin-top:8px}.quote-method-details p,.quote-pricing-help p{font-size:13px;max-width:70ch;margin:8px 0}.quote-method-detail-fields{display:flex;gap:14px;flex-wrap:wrap;margin-top:12px}.quote-method-detail-fields label{max-width:380px;min-width:140px;margin:0}.quote-method-detail-fields input{max-width:140px}.quote-base-title{font-size:16px;margin:0 0 10px}.quote-pricing-help{margin:0 0 12px}.quote-totals{background:transparent;border-bottom:1px solid var(--line);padding:12px 0;gap:20px}.quote-totals>div:last-child dd{font-size:14px}.quote-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:22px 0 14px;padding:0;white-space:normal;border:1px solid var(--strong);background:#fff;font:inherit}.quote-result{padding:18px 20px;display:flex;flex-direction:column;gap:6px}.quote-result>span{font-size:14px;color:var(--secondary)}.quote-result>strong{font-size:28px;line-height:1.2;letter-spacing:-.02em;font-variant-numeric:tabular-nums}.quote-result>small{font-size:13px;color:var(--secondary)}.quote-result-hardware{background:var(--sunk);border-left:1px solid var(--strong)}.quote-result-hardware>strong{color:var(--rust)}.quote-result-details{grid-column:1/-1;border-top:1px solid var(--line);padding:8px 20px;font-size:13px;color:var(--secondary)}.quote-result-details p{margin:8px 0}.quote-internal{margin-bottom:20px}.quote-profit{background:transparent}.quote-profit>strong{font-size:16px}.quote-preview{border-top:2px solid var(--strong);background:#f7f6f3}.quote-table [data-line-margin]{color:var(--secondary);font-weight:400}.quote-method summary,.quote-pricing-help summary,.quote-internal summary{cursor:pointer}.quote-method input:focus-visible,.quote-method select:focus-visible{outline:2px solid var(--rust);outline-offset:2px}@media(max-width:600px){.quote-method-bar .quote-method-toggle{flex-basis:100%}.quote-method-bar label{flex:1;width:auto}.quote-result{padding:14px 12px}.quote-result>strong{font-size:22px}.quote-result-details{padding:8px 12px}}@media(max-width:380px){.quote-comparison{grid-template-columns:1fr}.quote-result-hardware{border-left:0;border-top:1px solid var(--strong)}}
.quote-result:only-child{grid-column:1/-1}

/* Distinct material and labour sections, with compact editable rows. */
.quote-line-section{margin:16px 0 0}.quote-line-section h4{display:flex;align-items:center;gap:8px;margin:0;padding:10px 12px;background:#e9e9e7;color:#202321;font-size:16px;font-weight:700;border:1px solid var(--line);border-bottom:0;border-radius:4px 4px 0 0}.quote-line-section h4 span{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 5px;background:#fff;border-radius:4px;color:#555b56;font-size:12px;font-weight:600}.quote-line-section .quote-table-wrap{border-radius:0 0 4px 4px}.quote-table thead th{background:#fafafa;color:#686b68;font-size:12px;font-weight:500;padding:7px 10px}.quote-table td{padding:7px 10px;font-size:14px;background:#fff}.quote-table tbody tr:hover td{background:#fafbf9}.quote-table input{font-size:14px;height:32px}.quote-table input[type=number]{appearance:textfield;-moz-appearance:textfield}.quote-table input[type=number]::-webkit-inner-spin-button,.quote-table input[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}.quote-table th:nth-child(7){width:38px}.quote-table th:nth-child(2){width:100px}.quote-table th:nth-child(3){width:70px}.quote-table th:nth-child(4){width:54px}.quote-table th:nth-child(5){width:125px}.quote-table th:nth-child(6){width:140px}.quote-table [data-line-margin]{font-size:12px;line-height:1.3;color:#32714a;font-weight:400;white-space:nowrap}.quote-table [data-line-margin].is-loss{color:#a32e12}.quote-remove{font-size:22px;line-height:1;padding:5px 8px;text-decoration:none}.quote-remove:disabled{visibility:hidden}.quote-table.quote-services{min-width:350px}.quote-table.quote-services th:first-child{width:auto}.quote-table.quote-services th:nth-child(2){width:140px;text-align:right}.quote-table.quote-services th:nth-child(3){width:38px}.quote-method{padding:10px 12px;margin-bottom:16px;border:1px solid var(--line);border-radius:4px}.quote-base-title{margin-bottom:6px}.quote-result{padding:14px 16px}.quote-comparison{margin-top:16px}.quote-actions{margin:8px 0}.quote-table input[data-field=name]{font-weight:500}.quote-cost span{font-size:13px}.quote-table tbody tr:last-child td{border-bottom:0}

#quote-print-dialog{width:min(1440px,98vw);height:96vh;max-width:none;max-height:96vh;padding:0;border:1px solid #888;border-radius:6px;background:#e8ebe9}#quote-print-dialog::backdrop{background:#0008}.quote-print-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;background:#fff;border-bottom:1px solid #ccc}.quote-print-toolbar strong{font-size:16px}.quote-print-toolbar span{flex:1;font-size:13px;color:#666}.quote-print-toolbar button:disabled{cursor:wait;opacity:.58}.quote-print-layout{display:grid;grid-template-columns:300px minmax(0,1fr);height:calc(100% - 58px)}.quote-print-fields{padding:16px;overflow:auto;background:#fff;border-right:1px solid #ccc}.quote-print-fields fieldset{display:grid;gap:14px;margin:0;padding:0;border:0}.quote-print-fields legend{width:100%;margin-bottom:4px;padding-bottom:8px;border-bottom:1px solid #ccc;font-weight:750}.quote-print-fields label{display:grid;gap:6px;color:#4e5753;font-size:13px;font-weight:650}.quote-print-fields input[type=text],.quote-print-fields input:not([type]){width:100%;padding:9px 10px;border:1px solid #888;border-radius:4px;background:#fff;color:#111;font:inherit}.quote-color-field{display:flex;align-items:center;gap:10px}.quote-color-field input{width:48px;height:36px;padding:2px;border:1px solid #888;border-radius:4px;background:#fff}.quote-color-field output{font:500 13px ui-monospace,SFMono-Regular,Menlo,monospace}.quote-print-fields p{margin:4px 0 0;color:#666;font-size:12px;line-height:1.5}.quote-frame-wrap{overflow:auto}.quote-frame-wrap iframe{display:block;width:100%;height:100%;border:0}@media(max-width:860px){#quote-print-dialog{width:100vw;height:100vh;max-height:none}.quote-print-toolbar span{display:none}.quote-print-layout{grid-template-columns:1fr;height:calc(100% - 106px);overflow:auto}.quote-print-fields{overflow:visible;border-right:0;border-bottom:1px solid #ccc}.quote-frame-wrap{min-height:70vh}.quote-print-toolbar .btn{flex:1}}
.quote-context-hint{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0;padding:10px 12px;background:var(--warning-bg);color:#633507;border-radius:6px;font-size:13px}.quote-context-hint strong{display:block}.quote-context-hint .text-button{flex:0 0 auto;color:#633507;font-weight:700}@media(max-width:650px){.quote-context-hint{align-items:flex-start;flex-direction:column}}
