/* Four short panels with an always-current customer document. */
[hidden]{display:none!important}
.topbar{height:54px}.sidebar{padding-top:22px}.workspace{margin-top:20px}
main{padding-top:20px}.public-access-note{padding:8px 12px;margin-bottom:16px}
.page-head{margin-bottom:14px}#quote-view>.notice{padding:8px 12px;margin-bottom:16px}
.quote-layout{grid-template-columns:minmax(0,1fr) minmax(390px,.95fr);gap:22px}
.quote-step-nav,.result-view-nav,.mobile-workbench-switch{display:flex;background:#e8edf5;border-radius:9px;padding:4px;gap:4px;margin-bottom:16px}
.quote-step-nav{position:sticky;top:0;z-index:3}
.quote-step-nav button,.result-view-nav button,.mobile-workbench-switch button{flex:1;border:0;background:transparent;border-radius:6px;color:#52657e;padding:10px 6px;font-size:16px;font-weight:600;white-space:nowrap;min-height:46px}
.quote-step-nav button[aria-selected=true],.result-view-nav button[aria-pressed=true],.mobile-workbench-switch button[aria-pressed=true]{background:#fff;color:#0a337b;box-shadow:0 1px 4px #0a337b12}
.quote-step-nav button span{display:inline-grid;place-items:center;width:22px;height:22px;font-size:14px;margin-right:5px;background:#dbe5f4;border-radius:50%}
.quote-step .card{padding:20px;margin-bottom:14px}.quote-step .section-head{margin-bottom:15px}.quote-step .step{display:none}
.quote-step label{margin-bottom:12px}.quote-step .type-picker{margin-bottom:16px}.quote-step .type-option{padding:10px}.quote-step .type-option small{display:none}
.quote-step .grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.quote-step .grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.quote-step .grid:empty{display:none}.primary-options>summary{display:none}.primary-options{padding:0;border:0}
.customer-hint{margin-bottom:18px}.step-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:4px 0 12px}.step-footer span{color:#64758c;font-size:14px}.step-footer .primary{width:auto;margin-left:auto}
.result-column{position:sticky;top:18px;max-height:none}.result-view-nav{margin-bottom:12px}
.customer-preview{background:#e8edf4;border:1px solid #d9e2ef;border-radius:10px;overflow:hidden}
.preview-heading{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;background:#fff;border-bottom:1px solid #e2e8f0;gap:12px}
.preview-heading h2{font-size:18px}.preview-heading span{color:#64758c;font-size:14px}.preview-heading .live-indicator{color:#236848;white-space:nowrap}
.quote-document{background:white;margin:14px;padding:23px;color:#20324d;max-height:520px;overflow:auto;overflow-wrap:anywhere;box-shadow:0 2px 10px #0a337b0a}
.quote-document .print-company{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:2px solid #0a337b;padding-bottom:16px;margin-bottom:18px}
.quote-document .print-company img{width:139px;height:auto;flex-shrink:0}.quote-document .print-company strong{font-size:14px;max-width:160px;color:#0a337b}
.quote-document .print-header{display:flex;justify-content:space-between;gap:14px;margin-bottom:16px}.quote-document h1{font-size:24px;color:#0a337b}.quote-document p{margin:4px 0;font-size:14px}.quote-document h3{font-size:16px;margin:18px 0 8px}
.quote-document .print-header>div:last-child{text-align:right}.quote-document .print-warning{font-size:14px;padding:10px;background:#fff8eb;color:#805b25;border:1px solid #ecd9b7;margin-bottom:16px}
.quote-document .print-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;font-size:14px;margin:16px 0}.quote-document .print-meta>div:last-child{grid-column:1/-1}
.quote-document .print-table{width:100%;border-collapse:collapse;font-size:14px}.quote-document th,.quote-document td{padding:10px 5px;text-align:right;border-bottom:1px solid #e2e8f0;font-variant-numeric:tabular-nums}.quote-document th{font-weight:500;background:#edf3fc}.quote-document th:first-child,.quote-document td:first-child{text-align:left}
.quote-document .print-total{text-align:right;padding:14px 0;font-size:16px}.quote-document .print-total strong{color:#0a337b;font-size:21px}.quote-document .print-note{white-space:pre-wrap}.quote-document .print-footer{margin-top:24px;padding-top:14px;border-top:1px solid #e2e8f0;color:#64758c;line-height:1.8}
.preview-empty{text-align:center;padding:70px 10px;color:#64758c}.preview-empty strong{font-size:20px;display:block;margin-bottom:12px}
.quote-actions{padding:16px 0 0}.quote-action-total{display:flex;justify-content:space-between;gap:16px;font-size:14px;color:#64758c}.quote-action-total strong{display:block;color:#0a337b;font-size:22px;font-variant-numeric:tabular-nums}.quote-action-total>span:last-child{text-align:right}
.quote-action-buttons{display:flex;gap:10px;margin-top:12px}.quote-action-buttons>*{flex:1;width:auto}.quote-action-buttons .primary{justify-content:center}#compact-error{color:#9b5b26;font-size:14px;margin-top:6px}#compact-error:empty{display:none}
#internal-cost-panel{max-height:610px;overflow:auto}#internal-cost-panel .price-card{margin-bottom:14px}#internal-cost-panel .layout-card{display:block}#internal-cost-panel .layout-svg{max-width:180px;margin:16px auto}#internal-cost-panel #save-record,#internal-cost-panel #print-quote,#internal-cost-panel #simple-complete{display:none}
#internal-cost-panel .unit-price span{font-size:38px}#internal-cost-panel #result-details{margin-bottom:0}
.mobile-workbench-switch{display:none}
@media(min-width:1180px){.form-column{max-height:calc(100dvh - 245px);overflow:auto;padding-right:6px}.quote-document{max-height:calc(100dvh - 480px);min-height:260px}.result-column{top:14px}#internal-cost-panel{max-height:calc(100dvh - 420px)}}
@media(min-width:741px) and (max-width:1179px){.sidebar{width:192px;padding:20px 10px}.shell{margin-left:192px}.brand-logo{max-width:172px}.sidebar .nav{font-size:16px;padding:10px 8px;gap:8px}.admin-nav>summary{font-size:16px}.admin-nav>summary:after{content:none}main{padding:18px}.quote-layout{grid-template-columns:minmax(0,1fr)}.result-column{position:static}.quote-document{max-height:600px}}
@media(max-width:740px){.sidebar{padding:12px 16px;gap:8px}.sidebar .brand-caption{font-size:14px}.sidebar nav{display:flex;flex-wrap:wrap;gap:4px}.sidebar nav>.nav{flex:1;width:auto;font-size:14px;white-space:nowrap}.admin-nav{width:100%;margin:0}.admin-nav>summary{font-size:14px;padding:6px 8px}.admin-nav[open]{display:block}.admin-nav .nav{font-size:16px}.topbar{display:none}main{padding:14px 12px}.public-access-note{font-size:14px;line-height:1.5}.public-access-note span{width:auto}.page-head{gap:8px}#quote-view .page-head h1{font-size:23px}.page-head p{font-size:14px}.page-head .btn{padding:8px 10px}#quote-view>.notice{font-size:14px}#quote-view>.notice>div{min-width:150px}#mode-desc{display:none}.quote-layout{display:block}.mobile-workbench-switch{display:flex;position:sticky;top:0;z-index:5}.quote-step-nav{position:static;gap:2px}.quote-step-nav button{font-size:14px;padding:8px 2px}.quote-step-nav button span{display:none}.quote-step .grid.three{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.quote-step .grid.two{grid-template-columns:1fr}.quote-step .card{padding:16px}.quote-step .type-picker{grid-template-columns:1fr 1fr;gap:8px}.quote-step .type-option svg{width:30px}.quote-step .type-option strong{font-size:16px}.quote-step .radio{display:none}.quote-step .type-option{gap:5px}.quote-step .section-head{flex-wrap:wrap}.quote-step .caption{font-size:14px}.result-column{display:none;position:static}.preview-mode .form-column{display:none}.preview-mode .result-column{display:block}.quote-document{padding:14px;margin:8px;max-height:none;box-shadow:none}.quote-document .print-company{flex-wrap:wrap;gap:10px}.quote-document .print-company strong{max-width:none}.quote-document .print-header{flex-direction:column}.quote-document .print-header>div:last-child{text-align:left}.quote-document .print-meta{grid-template-columns:1fr}.quote-document th,.quote-document td{font-size:14px;padding:9px 3px;overflow-wrap:anywhere}.quote-document .print-total strong{font-size:20px}.quote-actions{position:sticky;bottom:0;background:#f3f6fa;padding:12px 0 8px;z-index:4}.quote-action-total strong{font-size:20px}.preview-heading{padding:12px}#internal-cost-panel{max-height:none}.customer-hint{display:none}footer{font-size:14px}}
@media print{.mobile-workbench-switch,.quote-actions{display:none!important}}

/* Keep the primary actions in view on a normal laptop screen. */
#quote-view>.notice{display:none}.preview-heading h2{display:none}.preview-heading{padding:9px 14px}
.quote-document .print-company strong{max-width:none;font-size:14px;white-space:nowrap}
@media(min-width:1180px){.quote-document{max-height:calc(100dvh - 530px);min-height:230px}.form-column{max-height:calc(100dvh - 250px)}}
@media(max-width:740px){.quote-document .print-company strong{white-space:normal}.quote-step .grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}}

@media(max-width:740px){.sidebar nav>.nav{flex:1}.admin-nav{width:auto;flex:1}.admin-nav>summary{min-height:44px;display:flex;align-items:center;justify-content:center;font-size:14px;white-space:nowrap}.admin-nav>summary:before{content:'▸';margin-right:4px}.admin-nav[open]{flex-basis:100%}.admin-nav[open]>summary:before{content:'▾'}.public-access-note{gap:4px;padding:7px 10px;margin-bottom:12px}.public-access-note strong{font-size:14px}.public-access-note span{font-size:14px}.page-head p{display:none}.page-head{margin-bottom:12px}.quote-step .grid.two:has([name=product]){grid-template-columns:1.4fr 1fr;gap:10px}}
