:root{font:15px/1.55 system-ui;color:#163047;background:#f3f5f8}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;gap:22px;padding:18px 3%;background:white;border-bottom:1px solid #d8e0e9}header a{font-weight:900;font-size:25px;color:#154f98;text-decoration:none}h1{font-size:23px;margin:0}header span{margin-left:auto;font-size:13px}.banner{padding:13px 3%;background:#fff3cd;color:#644d16}nav{display:flex;gap:6px;padding:16px 3%;flex-wrap:wrap}button,input,select,textarea{font:inherit;border:1px solid #b8c7d5;border-radius:7px;padding:10px}button{background:white;color:#174f91;cursor:pointer}button:hover,button.active{background:#174f91;color:white}button:disabled{opacity:.45;cursor:default}main{padding:0 3% 50px;max-width:1500px;margin:auto}#status{margin:0 3% 15px;color:#9b351e;white-space:pre-line}section,.card{background:white;border:1px solid #d7e0e9;border-radius:12px;padding:22px;margin-bottom:18px}h2{margin-top:0}h3{margin-bottom:8px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}label{display:block;font-size:13px;margin:8px 0}label input,label select,label textarea{display:block;width:100%;margin-top:5px}input[type=checkbox]{width:auto;display:inline}.table{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}td,th{padding:10px;text-align:left;border-bottom:1px solid #e0e5ec;vertical-align:top}small,.muted{color:#627487}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.pill{display:inline-block;background:#eaf1fb;border-radius:20px;padding:4px 10px;font-size:12px}details{margin:15px 0}summary{cursor:pointer;color:#174f91;font-weight:600}.address-suggestions{border:1px solid #b8c7d5;max-height:220px;overflow:auto}.address-suggestions [role=option]{padding:9px;cursor:pointer}.address-suggestions [aria-selected=true],.address-suggestions [role=option]:hover{background:#eaf1fb}[hidden]{display:none!important}@media(max-width:650px){header{flex-wrap:wrap;gap:10px}header span{margin-left:0}.table{max-width:90vw}main{padding:0 12px 35px}}@media print{header,nav,.banner,#status,.actions,form,button{display:none}main{padding:0}section{border:0}}

.customer-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,390px);gap:20px;align-items:start;height:calc(100dvh - 235px);min-height:480px}.customer-directory,.customer-detail{min-width:0;overflow:auto;height:100%;scrollbar-gutter:stable}.customer-directory>section{padding:18px}.customer-directory .grid{grid-template-columns:1fr;gap:0}.customer-directory h2{font-size:21px}.customer-list{display:flex;flex-direction:column;gap:7px}.customer-choice{text-align:left;display:flex;flex-direction:column;width:100%;gap:3px;color:#163047;background:white;overflow-wrap:anywhere}.customer-choice span,.customer-choice small{font-size:12px}.customer-choice.selected{border:2px solid #174f91;background:#eaf2ff;color:#163047}.customer-choice:hover{background:#eaf2ff;color:#163047}.customer-detail .table{max-width:100%}@media(max-width:850px){.customer-layout{display:block;height:auto;min-height:0}.customer-directory{height:auto;max-height:45dvh;margin-bottom:16px}.customer-detail{height:auto;overflow:visible}}@media print{.customer-layout{display:block;height:auto}.customer-directory{display:none}.customer-detail{height:auto;overflow:visible}}

.customer-detail .grid{grid-template-columns:1fr}.customer-detail section{padding:18px}.customer-detail .actions{flex-wrap:wrap}.customer-detail table{display:block;overflow-x:auto}#customer-dialog{width:94vw;max-width:94vw;height:94dvh;max-height:94dvh;padding:0;border:1px solid #cedceb;border-radius:12px;background:#f3f5f8}#customer-dialog::backdrop{background:rgba(16,32,50,.55)}.customer-dialog-toolbar{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;background:white;padding:12px 20px;z-index:2;border-bottom:1px solid #cedceb}#expanded-customer{padding:16px}#expanded-customer section{margin:0;max-width:none}#default-attachment{padding:12px;background:#f3f5f8;margin:12px 0}
.quote-workspace{max-width:1680px!important;padding:28px!important}.qw-heading{display:flex;justify-content:space-between;align-items:center;gap:24px}.qw-heading h2{margin:8px 0}.qw-heading small{letter-spacing:.14em;font-weight:bold}.qw-heading>label{width:160px}.qw-columns{display:grid;grid-template-columns:1.15fr 1fr;gap:20px;margin:22px 0}.qw-panel{border:1px solid #d5e1ee;border-radius:12px;padding:20px;background:#fff;min-width:0}.qw-panel h3{margin-top:0}.qw-panel>p{color:#526b82}.qw-products,.qw-chat{height:390px;overflow:auto;margin-top:14px;overscroll-behavior:contain}.qw-product{display:flex;gap:16px;justify-content:space-between;border-bottom:1px solid #e2e8f0;padding:16px 0}.qw-product p{font-size:13px;color:#5c7185;margin:5px 0;max-width:380px}.qw-product>div:last-child{text-align:right;min-width:125px}.qw-product button{display:block;margin:8px 0 0 auto}.qw-bubble{padding:14px 16px;background:#f1f5fa;border-radius:12px;margin:10px 8px 10px 0}.qw-bubble.user{margin-left:40px;background:#e7f0fd}.qw-bubble small{font-weight:bold}.qw-bubble p{white-space:pre-wrap;margin:6px 0;line-height:1.55}.qw-compose{display:flex;gap:10px;margin-top:16px;align-items:end}.qw-compose textarea{min-height:70px;flex:1}.qw-recommendation{padding:14px;border:1px solid #c3d6ec;border-radius:10px;margin:12px 0}.qw-cart td input[type=number]{width:85px}.qw-cart td:first-child{min-width:220px}.qw-cart textarea{min-width:260px}.qw-commercial{grid-template-columns:1.45fr 1fr}.qw-totals{border-top:1px solid #d5e1ee;margin-top:20px;padding-top:12px}.qw-totals p,.qw-totals h3{display:flex;justify-content:space-between}.qw-empty{padding:30px;text-align:center;background:#f5f8fc}.qw-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:18px}.qw-status{color:#a73526}.quote-paper header,.quote-addresses{display:flex;justify-content:space-between;gap:30px}.quote-paper header h1{color:#195497}.quote-paper .equipment-details{max-width:none;border:0;padding:0;margin:24px 0}.quote-totals{max-width:360px;margin-left:auto}.quote-totals p,.quote-totals h3{display:flex;justify-content:space-between}.quote-disclaimer{padding:16px;background:#fff5d6}.quote-paper td{vertical-align:top}@media(max-width:900px){.qw-columns,.qw-commercial{grid-template-columns:1fr}.qw-heading,.qw-footer{align-items:start;flex-direction:column}.quote-workspace{padding:16px!important}.quote-addresses{flex-direction:column}}@media print{body>header,#nav,#status,.notice,.actions{display:none!important}.quote-paper{display:block}.quote-paper header{display:flex!important}.quote-paper section{break-inside:avoid}}

.quote-register{max-width:1680px}.register-table{max-height:65vh;overflow:auto;margin-top:20px}.register-table th{position:sticky;top:0;background:#edf3fb;z-index:1}.register-table th button{border:0;background:transparent;font-weight:bold;white-space:nowrap}.register-table td{vertical-align:top}.register-table tbody tr:nth-child(even){background:#f6f8fb}

.address-parts{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:8px 0}.address-parts input{background:#f5f8fc;color:#28435d;min-width:0}.address-suggestions [role=option]{white-space:normal}

/* Recommendations remain alongside their own compressor, with a stacked layout on narrow screens. */
.qw-cart table{width:100%}.qw-cart td{vertical-align:top}.qw-related-cell{width:340px;min-width:290px}.qw-inline-related{border:1px solid #c9d9eb;border-radius:10px;background:#f6f9fd;overflow:hidden}.qw-inline-related>summary{cursor:pointer;padding:13px;color:#164b80}.qw-inline-related>summary strong{font-size:14px}.qw-inline-related>summary span{display:block;font-size:12px;margin-top:5px;color:#526b82}.qw-related-options{padding:0 12px 12px;max-height:480px;overflow-y:auto;overscroll-behavior:contain}.qw-related-help{font-size:12px;line-height:1.5}.qw-related-group h4{margin:14px 0 8px;color:#164b80}.qw-related-option{padding:12px;background:white;border:1px solid #dce6ef;border-radius:8px;margin:8px 0}.qw-related-option p{font-size:12px;line-height:1.5;margin:7px 0}.qw-related-option button{margin-top:8px}.qw-related-option small{display:block}.qw-related-option .qw-stock small{display:none}.qw-inline-related summary:focus-visible{outline:3px solid #0075b4;outline-offset:-3px}
@media(max-width:1200px){.qw-cart>.table{overflow:visible}.qw-cart table,.qw-cart tbody{display:block}.qw-cart thead{display:none}.qw-cart .qw-cart-line{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #d5e1ee;border-radius:10px;margin:14px 0;padding:12px;gap:10px}.qw-cart td{display:block;border:0;padding:4px;min-width:0!important}.qw-cart td[data-label]:not(.qw-item-main)::before{content:attr(data-label);display:block;font-size:12px;font-weight:700;margin-bottom:7px}.qw-cart .qw-item-main,.qw-cart .qw-related-cell{grid-column:1/-1;width:auto}.qw-cart textarea{min-width:0;width:100%}.qw-cart input{max-width:100%}.qw-cart .qw-related-cell:empty{display:none}}
@media(max-width:520px){.qw-cart .qw-cart-line{grid-template-columns:repeat(2,minmax(0,1fr))}.qw-related-options{max-height:none}.qw-panel{padding:12px}}

/* Keep quantity actions together and desktop headings in view during page scrolling. */
.qw-quantity{display:flex;align-items:center;gap:4px;white-space:nowrap}
.qw-quantity button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:38px;padding:0;flex:none}
.qw-cart td .qw-quantity input[type=number]{width:58px;padding:8px 3px;text-align:center;appearance:textfield;-moz-appearance:textfield}
.qw-quantity input::-webkit-inner-spin-button,.qw-quantity input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.qw-quantity .qw-delete{color:#a52b32;margin-left:3px}
.qw-quantity .qw-delete:hover{color:white;background:#a52b32}
.qw-quantity button:focus-visible{outline:3px solid #0075b4;outline-offset:2px}
@media(min-width:1201px){.qw-cart>.table{overflow:visible}.qw-cart table{border-collapse:separate;border-spacing:0}.qw-cart th{position:sticky;top:0;z-index:3;background:#edf3fb;box-shadow:0 2px 0 #d5e1ee}.qw-cart td:first-child{min-width:200px}.qw-cart textarea{min-width:200px}.qw-related-cell{min-width:250px;width:300px}}
@media print{.qw-cart th{position:static}}

.qw-product-details{border:1px solid #c9d9eb;border-radius:10px;background:#f6f9fd;padding:12px;margin:15px 0}.qw-product-details summary{font-size:14px}.qw-product-details p{font-size:12px}.qw-cart .qw-product-details textarea{min-width:0;width:100%}.qw-related-actions{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.qw-related-actions button{font-size:12px;padding:7px}.qw-related-choice{display:flex;align-items:center;gap:8px;font-weight:700}.qw-related-choice input[type=checkbox]{width:18px;height:18px;flex:none;margin:0}

/* Compact cart with a modal side panel for supporting information. */
.qw-cart .qw-cart-line>td{padding-top:12px;padding-bottom:12px}.qw-item-main .qw-stock{margin:5px 0 0;font-size:12px;font-weight:400}.qw-item-main .qw-stock strong{font-weight:500}.qw-row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.qw-row-actions button{padding:7px 9px;font-size:12px;white-space:nowrap}.qw-cart td input[data-key=discountPercent]{width:72px;padding:7px}.qw-quantity button{height:34px}.qw-cart td .qw-quantity input[type=number]{height:34px}
.qw-drawer{position:fixed;inset:0 0 0 auto;width:min(480px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-left:1px solid #c9d9eb;box-shadow:-8px 0 30px #16304726;background:#fff;color:#163047}.qw-drawer::backdrop{background:#10203255}.qw-drawer-header{position:sticky;top:0;z-index:1;background:white;display:flex;align-items:center;justify-content:space-between;padding:20px;border-bottom:1px solid #d5e1ee}.qw-drawer-header small{color:#526b82}.qw-drawer-header h3{margin:4px 0 0}.qw-drawer-header button{font-size:24px;padding:2px 12px}.qw-drawer-body{padding:20px}.qw-drawer-body>details{margin:0;padding:0;background:white;border:0;border-radius:0;overflow:visible}.qw-drawer-body>details>summary{display:none}.qw-drawer .qw-related-options{padding:0;max-height:none;overflow:visible}.qw-drawer textarea{width:100%;min-width:0}.qw-drawer .qw-stock{font-size:13px}@media print{.qw-drawer,.qw-row-actions{display:none!important}}

.qw-discount{display:flex;align-items:center;gap:6px;white-space:nowrap}.qw-discount span{font-size:14px;color:#526b82}

[data-parts-mode][aria-pressed="true"] { background: #173b61; color: white; }
[data-service-qty] { width: 5em; }
.qw-products h4 { margin: .75rem 0 .35rem; }

.qw-result-group > summary { cursor: pointer; padding: .75rem .5rem; color: #183652; border-bottom: 1px solid #d9e3ef; }
.qw-result-group > summary:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
