.qp-banner{padding:12px 18px;background:#edf4ff;border:1px solid #cfdef2;color:#31588a;border-radius:6px;margin:14px 0 20px;font:13px Tahoma,sans-serif}.qp-layout{display:grid;grid-template-columns:minmax(340px,1.15fr) minmax(320px,1fr);gap:28px;align-items:start;font:13px Tahoma,sans-serif;max-width:1300px;margin:auto}.qp-section{background:#fff;border:1px solid #d3dfef;border-radius:7px;padding:22px;margin-bottom:18px}.qp-section h2{font:700 16px Tahoma,sans-serif;color:#203f73;margin:0 0 20px;display:flex;align-items:center;gap:10px}.qp-section h2 b{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#e7f0fd;color:#2966b2;font-size:13px}.qp-form label{display:grid;gap:8px;margin:0 0 15px;color:#385478}.qp-form input,.qp-form select,.qp-form textarea{width:100%;box-sizing:border-box;background:white;border:1px solid #c9d9ee;border-radius:5px;padding:10px 12px;font:13px/1.6 Tahoma,sans-serif;color:#203655}.qp-form textarea{resize:vertical;min-height:80px}.qp-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.qp-hint{color:#647a96;font:12px/1.7 Tahoma,sans-serif;margin:8px 0}.qp-preview{position:sticky;top:20px;border:1px solid #cad9ed;border-radius:7px;background:#fff;overflow:hidden;box-shadow:0 8px 28px #244a7510}.qp-preview header{background:linear-gradient(110deg,#198ee6,#393bad);color:white;padding:24px 28px}.qp-preview header span{font-size:12px;opacity:.9}.qp-preview h2{font:700 23px Tahoma,sans-serif;margin:10px 0 0;color:inherit}.qp-preview-body{padding:26px 28px}.qp-caption{display:block;color:#7083a0;font-size:12px;margin-bottom:12px}.qp-preview strong{display:block;font-size:15px;line-height:1.7}.qp-preview p,.qp-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85}.qp-preview pre{font:13px/1.85 Tahoma,sans-serif;background:#f4f8ff;padding:16px;border-left:3px solid #3987da;border-radius:3px}.qp-preview hr{border:0;border-top:1px solid #e0e8f3;margin:24px 0}.qp-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.qp-actions button{font:13px Tahoma,sans-serif;padding:11px 15px}.qp-actions .primary{background:linear-gradient(110deg,#248ee6,#3b45ad)}/* Fixed desktop layout; original media: (max-width:900px) */ @media (max-width:0px){.qp-layout{grid-template-columns:1fr}.qp-preview{position:static}.qp-two{grid-template-columns:1fr}}
.qp-preview header h2,.qp-preview header span{color:#fff!important}
.qp-paper{max-width:1320px;margin:0 auto 30px;background:white;padding:26px 30px;border:1px solid #cad9ed;border-radius:5px;font:13px Tahoma,sans-serif;box-shadow:0 8px 28px #244a750a}.qp-paper-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #2582d7;margin-bottom:24px;padding-bottom:16px}.qp-paper-heading h2{margin:0;color:#194d89;font-size:24px}.qp-paper-heading>span{background:#edf3fb;color:#526e94;padding:7px 16px;border-radius:4px}.qp-top{display:grid;grid-template-columns:1.15fr 1fr;gap:60px}.qp-top h3{margin:0 0 16px;font-size:15px}.qp-grand{text-align:right;padding:10px 0 24px;margin-bottom:18px;border-bottom:1px solid #dce6f3}.qp-grand>span{display:block;color:#526e94}.qp-grand strong{font-size:32px;font-weight:500;color:#2462a5;display:inline-block;margin:10px 9px 0}.qp-grand small{color:#637e9e}.qp-shipping{border:1px solid #dce6f3;border-radius:5px;background:#f8fbff;margin:14px 0 24px;padding:14px 18px}.qp-shipping summary{cursor:pointer;color:#245e9c;font-weight:bold}.qp-shipping .qp-two{margin-top:16px}.qp-three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px}.qp-items-wrap{overflow:auto;margin:16px 0}.qp-items{width:100%;border-collapse:collapse;table-layout:fixed;min-width:840px}.qp-items th{background:#eaf3fd;color:#315c89;padding:12px 6px;font-size:12px;border-bottom:2px solid #83b5e5;white-space:normal}.qp-items th:nth-child(1){width:42px}.qp-items th:nth-child(2){width:30%}.qp-items th:nth-child(3){width:75px}.qp-items th:nth-child(4){width:65px}.qp-items th:nth-child(5){width:95px}.qp-items th:nth-child(6){width:72px}.qp-items th:nth-child(7){width:82px}.qp-items th:nth-child(8){width:90px}.qp-items th:last-child{width:32px}.qp-items td{vertical-align:top;padding:12px 4px;border-bottom:1px solid #dce6f3;text-align:right}.qp-items td:first-child{text-align:center;padding-top:24px}.qp-items input,.qp-items select{padding:8px 5px;margin-bottom:6px;min-width:0;font-size:12px}.qp-items input[type=number]{text-align:right}.qp-items [data-item=description]{font-size:11px;color:#71849d}.qp-items [data-line-total]{padding-top:24px}.qp-items [data-remove]{border:0;background:none;color:#8295ab;padding:8px;font-size:20px}.qp-bottom{display:grid;grid-template-columns:1.2fr 1fr;gap:50px;margin-top:24px}.qp-remarks{font:12px/1.7 Tahoma,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;border-left:3px solid #80b5e8;background:#f5f8fd;padding:12px;margin:0;min-height:40px}.qp-totals dl{margin:0}.qp-totals dl>div{display:flex;justify-content:space-between;gap:18px;padding:12px 0;color:#455e7c}.qp-totals dd{margin:0;font-variant-numeric:tabular-nums}.qp-totals .qp-total-final{border-top:2px solid #75a9df;border-bottom:1px solid #dce6f3;font-size:17px;color:#1b5798;font-weight:bold;margin-top:12px;padding:18px 0}.qp-save{display:flex;justify-content:flex-end;align-items:center;gap:20px;border-top:1px solid #dce6f3;margin-top:20px;padding-top:20px}.qp-save .primary{background:linear-gradient(110deg,#248ee6,#3b45ad);color:white}.qp-paper [data-copy]{margin-bottom:20px}.qp-paper input:focus,.qp-paper textarea:focus,.qp-paper select:focus{outline:2px solid #8dc4fa;outline-offset:1px}/* Fixed desktop layout; original media: (max-width:1000px) */ @media (max-width:0px){.qp-top{gap:24px}.qp-paper{padding:20px}.qp-bottom{gap:24px}}/* Fixed desktop layout; original media: (max-width:700px) */ @media (max-width:0px){.qp-top,.qp-bottom,.qp-three,.qp-paper .qp-two{grid-template-columns:1fr}.qp-grand{text-align:left}.qp-save{flex-wrap:wrap}.qp-paper{padding:16px}}
.qp-editor-toolbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;background:#fff;padding:18px 0;border-bottom:1px solid #dce6f3;margin-bottom:12px}.qp-editor-title h2{font-size:19px;margin:0 0 7px;color:#203655}.qp-editor-title>span{font-size:20px;color:#298bb0}.qp-editor-actions{display:flex;align-items:center;gap:9px}.qp-editor-actions button{margin:0;min-height:40px;white-space:nowrap}.qp-editor-actions .primary{background:#83b717;border-color:#83b717;color:#fff;min-width:158px}.qp-editor-toolbar [data-status]{flex-basis:100%;margin:0;color:#9c351e;line-height:1.5}.qp-editor-toolbar [data-status]:empty{display:none}.qp-more-actions{position:relative}.qp-more-actions>summary{list-style:none;cursor:pointer;padding:11px 14px;border:1px solid #83b717;border-radius:4px;background:#83b717;color:#fff}.qp-more-actions>summary::-webkit-details-marker{display:none}.qp-more-actions[open]>div{position:absolute;right:0;top:44px;width:225px;background:#fff;padding:8px;border:1px solid #dce6f3;border-radius:5px;box-shadow:0 8px 24px #20365526;display:grid;gap:6px}.qp-more-actions button{text-align:left;width:100%}.qp-editor-context{font-size:12px;color:#647a96;margin:0 0 18px}.qp-flow-editor>.qp-banner{padding:8px 12px;margin:0 0 20px}.qp-flow-editor>.qp-banner .qp-actions{margin-top:8px;gap:7px}.qp-flow-editor>.qp-banner .qp-actions button,.qp-flow-editor>.qp-banner .qp-actions a{padding:7px 11px;font-size:12px}.qp-flow-editor>.qp-banner p:empty{display:none}.qp-meta-fields>label,.qp-document-meta>label{display:grid;grid-template-columns:125px minmax(0,1fr);align-items:center;gap:12px}.qp-flow-editor .qp-items th{background:#32a3c3;color:white;border-bottom-color:#2795b5}.qp-flow-editor{padding-top:0}.qp-flow-editor label{color:#203655}.qp-flow-editor .qp-grand{text-align:right;border:0;margin-bottom:8px}.qp-flow-editor .qp-grand strong{color:#2998b7}.qp-flow-editor .qp-top{gap:70px}.qp-flow-editor .qp-document-meta{padding-top:10px}/* Fixed desktop layout; original media: (max-width:700px) */ @media (max-width:0px){.qp-editor-toolbar{position:static}.qp-editor-actions{width:100%;flex-wrap:wrap}.qp-flow-editor .qp-top{gap:24px}.qp-meta-fields>label,.qp-document-meta>label{grid-template-columns:1fr}.qp-more-actions[open]>div{right:0}}

/* Quotation editor: Flow workflow, CRM style 01. */
.qp-flow-editor{padding-top:0;background:linear-gradient(145deg,#f6fbff,#eef1fc);border:1px solid #c7d9ee;border-radius:16px;box-shadow:0 18px 50px #244a7520}
.qp-flow-editor .qp-editor-toolbar{background:linear-gradient(110deg,#198ee6,#393bad);border:1px solid #ffffff40;border-radius:10px;padding:16px 18px;margin:12px -12px 14px;box-shadow:0 5px 12px #2453a530}
.qp-flow-editor .qp-editor-title h2{color:#fff;font-size:21px;font-weight:400}.qp-flow-editor .qp-editor-title>span{color:#e7f3ff;font-size:15px}
.qp-flow-editor .qp-editor-actions .primary,.qp-flow-editor .qp-more-actions>summary{background:linear-gradient(110deg,#248ee6,#3b45ad);border-color:#ffffff55;color:white;box-shadow:0 4px 9px #2058bd33}
.qp-flow-editor [data-close-editor]{background:#ffffff18;border-color:#ffffff55;color:#fff;border-radius:7px}.qp-flow-editor [data-close-editor]:hover{background:#ffffff30}
.qp-flow-editor input,.qp-flow-editor select,.qp-flow-editor textarea{box-shadow:inset 0 1px 3px #345c7910}.qp-flow-editor .qp-items th{background:linear-gradient(110deg,#248ee6,#3b45ad);color:white;border-color:#c7d9ee}
.qp-flow-editor .qp-grand strong{color:#2857a4}.qp-flow-editor .qp-editor-toolbar [data-status]{color:white}
.qp-flow-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 24px;padding:12px 0;border-bottom:1px solid #c7d9ee}.qp-flow-status,.qp-document-tools{display:flex;align-items:center;gap:8px}.qp-flow-status select{width:auto;max-width:170px}.qp-flow-status small{color:#647a96}.qp-document-tools button,.qp-document-tools a,.qp-document-more summary{padding:9px 14px;white-space:nowrap;font-size:13px}.qp-document-more{position:relative}.qp-document-more summary{cursor:pointer;border:1px solid #c9d9ee;border-radius:5px;background:white;color:#2857a4}.qp-document-more[open]>div{display:grid;gap:6px;position:absolute;right:0;top:44px;width:245px;background:white;padding:9px;border:1px solid #c7d9ee;border-radius:7px;z-index:10;box-shadow:0 8px 22px #244a7520}.qp-flow-tools [data-flow-message]{flex-basis:100%;margin:0;color:#9c351e}.qp-flow-tools [data-flow-message]:empty{display:none}.qp-flow-tools [data-share-panel]{width:100%;background:#fff;border:1px solid #c7d9ee;border-radius:7px;padding:14px}.qp-flow-tools [data-share-panel][hidden]{display:none}.qp-flow-tools [data-share-panel] small{margin-left:12px}.qp-flow-tools button:disabled{opacity:.5;cursor:not-allowed}
/* Fixed desktop layout; original media: (max-width:700px) */ @media (max-width:0px){.qp-flow-tools,.qp-document-tools{flex-wrap:wrap}.qp-flow-editor .qp-editor-toolbar{margin:8px -6px 14px}.qp-flow-status{flex-wrap:wrap}}

.qp-flow-editor .qp-editor-toolbar h2,.qp-flow-editor .qp-editor-title>span{color:#fff!important}.qp-flow-editor .qp-editor-actions .primary{background:linear-gradient(110deg,#248ee6,#3b45ad)!important;color:#fff!important}.qp-flow-editor [data-close-editor]{background:#ffffff18!important;color:#fff!important;border-color:#ffffff55!important}.qp-flow-editor .qp-grand strong{color:#2857a4!important}

:root body .main #quote-preparation.qp-flow-editor .qp-editor-toolbar h2{color:#fff!important;-webkit-text-fill-color:#fff!important}
:root body .main #quote-preparation.qp-flow-editor .qp-editor-actions button[type="submit"]{background:#78ad18!important;border:1px solid #6b9b13!important;color:#fff!important;box-shadow:0 4px 9px #55821626}
:root body .main #quote-preparation.qp-flow-editor .qp-editor-actions button[type="submit"]:hover{background:#699c11!important}
.qp-flow-editor .qp-native-customer{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;opacity:0;pointer-events:none}
.qp-flow-editor .qp-customer-picker{position:relative;min-width:0}.qp-flow-editor .qp-customer-picker>summary{display:block;background:#fff;border:1px solid #c9d9ee;border-radius:5px;padding:10px 32px 10px 12px;box-shadow:inset 0 1px 3px #345c7910;cursor:pointer;line-height:1.6;list-style:none}.qp-flow-editor .qp-customer-picker>summary:after{content:'▾';position:absolute;right:12px}.qp-flow-editor .qp-customer-picker .customer-picker-menu{position:absolute;top:100%;left:0;right:0;z-index:30;background:#fff;border:1px solid #c7d9ee;border-radius:7px;box-shadow:0 10px 25px #244a7525;padding:10px}.qp-flow-editor .qp-customer-picker .customer-picker-options{max-height:240px;overflow:auto;display:grid;gap:3px}.qp-flow-editor .qp-customer-picker .customer-picker-options button{text-align:left;white-space:normal;line-height:1.6;padding:8px 10px}.qp-flow-editor .qp-customer-picker .customer-picker-search{margin-bottom:8px}.qp-flow-editor .qp-customer-picker button[aria-pressed=true]{background:#e7f0fd;color:#2857a4}.qp-flow-editor .qp-customer-picker input{margin:0}
.qp-flow-editor .qp-meta-fields>.field{display:grid;grid-template-columns:125px minmax(0,1fr);align-items:center;gap:12px;margin-bottom:15px}.qp-flow-editor .qp-meta-fields>.field>label{margin:0}.qp-flow-editor .date-single{min-width:0;width:100%}.qp-flow-editor .date-single [data-date-display]{padding-right:44px}.qp-flow-editor .date-single [data-date-picker]{width:1px;min-width:0;padding:0}.qp-flow-editor .service-calendar button{font-family:inherit}.qp-flow-editor .qp-meta-fields .service-calendar{width:300px}/* Fixed desktop layout; original media: (max-width:700px) */ @media (max-width:0px){.qp-flow-editor .qp-meta-fields>.field{grid-template-columns:1fr}}
/* Match actual create-report controls, including font and calendar. */
:root body .main #quote-preparation.qp-flow-editor :is(input:not([type=hidden]):not([data-date-picker]),select,textarea,.qp-customer-picker>summary){font:400 15px/24px Tahoma,'Leelawadee UI','Segoe UI',sans-serif!important;background:#f8fbff;border:1px solid #ccdced;border-radius:8px;box-shadow:inset 0 2px 4px #193d6407;color:#203d5a;padding:9px 11px}
:root body .main #quote-preparation.qp-flow-editor .qp-customer-picker>summary{padding:10px 34px 10px 12px;min-height:46px;box-sizing:border-box}
:root body .main #quote-preparation.qp-flow-editor .date-single [data-date-display]{padding-right:47px;height:44px}
:root body .main #quote-preparation.qp-flow-editor label{font:400 14px/22.4px Tahoma,'Leelawadee UI','Segoe UI',sans-serif}
:root body .main #quote-preparation.qp-flow-editor .qp-customer-picker .customer-picker-options button{font:400 15px/24px Tahoma,'Leelawadee UI','Segoe UI',sans-serif}
.qp-flow-editor .qp-customer-picker>summary:after{content:'⌄';top:9px}.qp-flow-editor .qp-customer-picker .customer-picker-footer{border-top:1px solid #ccdced;margin-top:8px;padding-top:8px}.qp-flow-editor .qp-customer-picker .customer-picker-add{width:100%;text-align:left;color:#2857a4}
/* Compact quotation layout: use horizontal space before adding more rows. */
:root body .main:has(#quote-preparation.qp-flow-editor){max-width:none;padding:12px 14px 0}
:root body .main #quote-preparation.qp-flow-editor{max-width:none;width:100%;box-sizing:border-box;padding:0 18px 18px;margin-bottom:12px}
:root body .main #quote-preparation.qp-flow-editor .qp-editor-toolbar{padding:10px 14px;margin:8px -10px 8px;gap:8px}
:root body .main #quote-preparation.qp-flow-editor .qp-editor-title h2{font-size:19px;margin-bottom:3px}
.qp-flow-editor .qp-editor-context{margin-bottom:4px}.qp-flow-editor .qp-flow-tools{padding:6px 0;margin-bottom:12px;gap:8px}.qp-flow-editor .qp-top{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:28px;align-items:start}.qp-flow-editor .qp-document-meta{padding-top:0}.qp-flow-editor .qp-grand{padding:0 0 6px;margin:0}.qp-flow-editor .qp-grand strong{font-size:27px;margin:3px 6px 0}.qp-flow-editor .qp-grand>span{display:inline-block}.qp-flow-editor .qp-contact-row{display:grid;grid-template-columns:1.2fr 1fr 1fr 1.2fr;gap:12px;margin-top:4px}.qp-flow-editor .qp-customer-compact>.qp-two{grid-template-columns:1.2fr 1fr 1fr;gap:10px}.qp-flow-editor .qp-customer-compact textarea{height:64px;min-height:64px}.qp-flow-editor .qp-two,.qp-flow-editor .qp-three{gap:12px}.qp-flow-editor .qp-shipping{padding:8px 12px;margin:2px 0 10px}.qp-flow-editor .qp-bottom{gap:28px;margin-top:12px}.qp-flow-editor .qp-items-wrap{margin:6px 0}.qp-flow-editor .qp-totals dl>div{padding:7px 0}
:root body .main #quote-preparation.qp-flow-editor label{margin-bottom:8px;gap:4px;font-size:13px;line-height:20px}
:root body .main #quote-preparation.qp-flow-editor :is(input:not([type=hidden]):not([data-date-picker]),select,textarea,.qp-customer-picker>summary){font:400 14px/20px Tahoma,'Leelawadee UI','Segoe UI',sans-serif!important;padding:6px 10px;min-height:34px}
:root body .main #quote-preparation.qp-flow-editor .qp-customer-picker>summary{padding:6px 32px 6px 10px;min-height:34px}.qp-flow-editor .qp-customer-picker>summary:after{top:5px}
:root body .main #quote-preparation.qp-flow-editor .date-single [data-date-display]{height:34px;padding-right:42px}.qp-flow-editor .qp-meta-fields>.field{margin-bottom:8px;gap:10px}.qp-flow-editor .qp-meta-fields>label,.qp-flow-editor .qp-document-meta>label{gap:10px;grid-template-columns:105px minmax(0,1fr)}.qp-flow-editor .qp-meta-fields>.field{grid-template-columns:105px minmax(0,1fr)}
/* Fixed desktop layout; original media: (max-width:900px) */ @media (max-width:0px){.qp-flow-editor .qp-contact-row{grid-template-columns:1fr 1fr}.qp-flow-editor .qp-top{gap:18px}.qp-flow-editor .qp-customer-compact>.qp-two{grid-template-columns:1fr 1fr}.qp-flow-editor .qp-customer-compact>.qp-two>label:last-child{grid-column:1/-1}}
/* Fixed desktop layout; original media: (max-width:700px) */ @media (max-width:0px){.qp-flow-editor .qp-top,.qp-flow-editor .qp-contact-row{grid-template-columns:1fr}.qp-flow-editor .qp-meta-fields>.field{grid-template-columns:1fr}:root body .main #quote-preparation.qp-flow-editor{padding:0 12px 12px}}
.qp-flow-editor .qp-reference-row{grid-template-columns:1fr 1fr 1fr 1.4fr}/* Fixed desktop layout; original media: (max-width:900px) */ @media (max-width:0px){.qp-flow-editor .qp-reference-row{grid-template-columns:1fr 1fr}}/* Fixed desktop layout; original media: (max-width:700px) */ @media (max-width:0px){.qp-flow-editor .qp-reference-row{grid-template-columns:1fr}}

:root body .main #quote-preparation.qp-flow-editor .qp-items thead th{background:#e8f2fc!important;color:#203d5a!important;-webkit-text-fill-color:#203d5a;border-bottom:2px solid #b8cfe7;border-right:1px solid #d1e0ef;font-size:13px;font-weight:600;padding:10px 7px;line-height:1.5;vertical-align:middle}
:root body .main #quote-preparation.qp-flow-editor .qp-items tbody td{background:#fff;border-bottom:1px solid #d1e0ef;padding:10px 6px;vertical-align:top}
:root body .main #quote-preparation.qp-flow-editor .qp-items .qp-item-label{text-align:left;display:grid;gap:2px;margin:5px 0 0}
:root body .main #quote-preparation.qp-flow-editor .qp-items .qp-item-label>span{font-size:12px;color:#526b85}
:root body .main #quote-preparation.qp-flow-editor .qp-items th:first-child,:root body .main #quote-preparation.qp-flow-editor .qp-items td:first-child{text-align:center}
:root body .main #quote-preparation.qp-flow-editor .qp-items th:nth-child(2),:root body .main #quote-preparation.qp-flow-editor .qp-items th:nth-child(4),:root body .main #quote-preparation.qp-flow-editor .qp-items th:nth-child(7){text-align:left}
:root body .main #quote-preparation.qp-flow-editor .qp-items th:nth-child(3),:root body .main #quote-preparation.qp-flow-editor .qp-items th:nth-child(5),:root body .main #quote-preparation.qp-flow-editor .qp-items th:nth-child(6),:root body .main #quote-preparation.qp-flow-editor .qp-items th:nth-child(8){text-align:right}

:root body .main #quote-preparation.qp-flow-editor .qp-customer-picker{width:450px;max-width:100%;box-sizing:border-box}

:root body .main #quote-preparation.qp-flow-editor textarea[name=billing]{width:450px;max-width:100%;box-sizing:border-box;height:74px;min-height:74px;max-height:74px;line-height:20px;padding:6px 10px;resize:none;overflow-x:hidden;overflow-y:auto}

:root body .main #quote-preparation.qp-flow-editor input[name=tax]{width:calc(14ch + 22px);max-width:100%;box-sizing:border-box;font-variant-numeric:tabular-nums}

.qp-flow-editor .qp-customer-compact>.qp-tax-row{display:block}.qp-flow-editor .qp-customer-more{width:450px;max-width:100%;margin:0 0 8px}.qp-flow-editor .qp-customer-more>summary{cursor:pointer;color:#245e9c;font-size:13px;font-weight:600;padding:4px 0}.qp-flow-editor .qp-customer-more-fields{display:grid;gap:8px;padding:10px 12px;margin-top:4px;background:#f3f7fd;border:1px solid #c7d9ee;border-radius:8px}.qp-flow-editor .qp-contact-main{grid-template-columns:repeat(3,minmax(0,1fr))}/* Fixed desktop layout; original media: (max-width:700px) */ @media (max-width:0px){.qp-flow-editor .qp-contact-main{grid-template-columns:1fr}}

:root body .main #quote-preparation.qp-flow-editor .qp-customer-compact>.qp-tax-row{display:grid;width:450px;max-width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.qp-flow-editor .qp-customer-compact>.qp-tax-row>label:last-child{grid-column:auto}:root body .main #quote-preparation.qp-flow-editor .qp-tax-row input{width:100%;min-width:0;box-sizing:border-box}

.qp-flow-editor .qp-meta-fields,.qp-flow-editor .qp-document-meta>label{width:335px;max-width:100%;margin-left:auto}.qp-flow-editor .qp-document-meta .date-single{width:220px;max-width:100%}:root body .main #quote-preparation.qp-flow-editor input[name=credit]{width:220px;max-width:100%}:root body .main #quote-preparation.qp-flow-editor input[name=salesperson]{width:220px;max-width:100%}:root body .main #quote-preparation.qp-flow-editor .qp-document-meta>label>input{width:220px;max-width:100%}/* Fixed desktop layout; original media: (max-width:700px) */ @media (max-width:0px){.qp-flow-editor .qp-meta-fields,.qp-flow-editor .qp-document-meta>label{margin-left:0}}

:root body .main #quote-preparation.qp-flow-editor .qp-meta-fields>.field{margin-left:0;margin-right:0;width:100%;box-sizing:border-box}

:root body .main #quote-preparation.qp-flow-editor .qp-meta-fields>label,:root body .main #quote-preparation.qp-flow-editor .qp-document-meta>label{column-gap:10px}

:root body .main #quote-preparation.qp-flow-editor .qp-grand{box-sizing:border-box;width:335px;max-width:100%;margin:0 0 14px auto;padding:14px 16px;background:linear-gradient(110deg,#edf7ff,#eef0fc);border:1px solid #bfd5ee;border-left:4px solid #2582d7;border-radius:8px;text-align:right}:root body .main #quote-preparation.qp-flow-editor .qp-grand>span{display:block;font-size:14px;font-weight:600;color:#25466e}:root body .main #quote-preparation.qp-flow-editor .qp-grand strong{display:inline-block;font-size:36px;font-weight:700;line-height:1.2;color:#194d89;margin:6px 6px 0 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}:root body .main #quote-preparation.qp-flow-editor .qp-grand small{font-size:14px;color:#3f5b7b}/* Fixed desktop layout; original media: (max-width:700px) */ @media (max-width:0px){:root body .main #quote-preparation.qp-flow-editor .qp-grand{margin-left:0}}

:root body .main #quote-preparation.qp-flow-editor .qp-grand{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0 0 6px}

.qp-flow-editor .qp-customer-heading-row{display:flex;align-items:flex-start;gap:10px}.qp-flow-editor .qp-customer-heading-row>label{flex:0 1 450px;min-width:0}.qp-flow-editor .qp-customer-heading-row .qp-customer-more{position:relative;width:auto;flex:0 0 auto;margin:24px 0 0}.qp-flow-editor .qp-customer-heading-row .qp-customer-more>summary{padding:6px 8px;border:1px solid #c7d9ee;border-radius:8px;background:#f3f7fd;line-height:20px;white-space:nowrap}.qp-flow-editor .qp-customer-heading-row .qp-customer-more-fields{position:absolute;right:0;top:100%;width:300px;max-width:80vw;box-sizing:border-box;z-index:30;box-shadow:0 8px 24px #193e6a20}:root body .main #quote-preparation.qp-flow-editor .qp-grand{text-align:center}

.qp-flow-editor .qp-contact-picker{position:relative}.qp-flow-editor .qp-contact-picker input{padding-right:36px!important}.qp-flow-editor .qp-contact-toggle{position:absolute;right:1px;top:1px;width:32px;height:32px;padding:0;border:0;background:transparent;color:#245e9c;cursor:pointer}.qp-flow-editor .qp-contact-options{position:absolute;left:0;right:0;top:100%;z-index:40;max-height:240px;overflow:auto;background:white;border:1px solid #c7d9ee;border-radius:8px;box-shadow:0 8px 24px #193e6a20;padding:5px}.qp-flow-editor .qp-contact-options[hidden],.qp-flow-editor label[hidden]{display:none!important}.qp-flow-editor .qp-contact-options button{display:block;width:100%;text-align:left;border:0;background:white;color:#25466e;padding:9px;font:14px Tahoma,sans-serif;cursor:pointer}.qp-flow-editor .qp-contact-options button:hover,.qp-flow-editor .qp-contact-options button:focus{background:#edf5ff}.qp-flow-editor .qp-contact-options>span{display:block;padding:8px;font-size:12px;color:#526b85}

:root body .main #quote-preparation.qp-flow-editor .qp-contact-toggle{box-sizing:border-box;display:flex;align-items:center;justify-content:center;top:1px;right:1px;width:32px;min-width:32px;max-width:32px;height:32px;min-height:32px;max-height:32px;margin:0;padding:0!important;border:0!important;border-radius:0 7px 7px 0;background:transparent!important;box-shadow:none!important;font:14px/1 Tahoma,sans-serif;color:#245e9c}

:root body .main #quote-preparation .qp-contact-picker.report-customer-picker{border:0;background:transparent;padding:0;margin:0}.qp-flow-editor .qp-contact-options.customer-picker-menu{top:calc(100% + 4px);padding:10px;max-height:none}.qp-flow-editor .qp-contact-options .customer-picker-options{max-height:240px;overflow:auto}.qp-flow-editor .qp-contact-options .customer-picker-options button{display:flex;flex-direction:column;gap:3px}.qp-flow-editor .qp-contact-options small{font-size:12px;color:#63758a}.qp-flow-editor .qp-contact-options .customer-picker-footer{border-top:1px solid #ccdced;padding-top:8px;margin-top:8px}.qp-flow-editor .qp-contact-options .customer-picker-add{color:#2857a4}.qp-flow-editor .qp-contact-options input{padding-right:10px!important}

.qp-flow-editor .qp-customer-more[hidden]{display:none!important}.qp-flow-editor .qp-branch-picker .qp-contact-options{min-width:300px;max-width:80vw;max-height:280px;overflow:auto}.qp-flow-editor .qp-branch-picker .qp-contact-options button{display:flex;flex-direction:column;gap:3px}.qp-flow-editor .qp-branch-picker .qp-contact-options small{white-space:normal;line-height:1.5}

:root body .main #quote-preparation .qp-contact-picker.report-contact-picker .customer-picker-options button{display:block;min-height:64px;padding:10px 12px;text-align:left;font-weight:400}:root body .main #quote-preparation .qp-contact-picker.report-contact-picker .customer-picker-options button>span{display:block;font-size:16px;line-height:22px;min-height:22px;font-weight:400;margin:0}:root body .main #quote-preparation .qp-contact-picker.report-contact-picker .customer-picker-options button>small{display:block;font-size:12px;line-height:22px;min-height:22px;color:#6a7f98;margin:0;font-weight:400}.qp-flow-editor .report-contact-picker .customer-picker-options button[aria-selected=true]{background:#eaf2ff;color:#123d88}

:root body .main #quote-preparation .qp-contact-picker.report-contact-picker .customer-picker-options{overflow-x:hidden}:root body .main #quote-preparation .qp-contact-picker.report-contact-picker .customer-picker-options button{width:100%;min-width:0;box-sizing:border-box}:root body .main #quote-preparation .qp-contact-picker.report-contact-picker .customer-picker-options button>span,:root body .main #quote-preparation .qp-contact-picker.report-contact-picker .customer-picker-options button>small{white-space:normal;overflow-wrap:anywhere}

:root body .main #quote-preparation.qp-flow-editor .qp-customer-compact>.qp-contact-main{width:450px;max-width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;margin-top:0}:root body .main #quote-preparation.qp-flow-editor .qp-customer-compact>.qp-contact-main>label:first-child{grid-column:1/-1}.qp-flow-editor .qp-customer-compact>.qp-contact-main>label{min-width:0}

:root body .main #quote-preparation.qp-flow-editor label.qp-placeholder-field{gap:0}:root body .main #quote-preparation.qp-flow-editor .qp-placeholder-field input::placeholder{color:#7b8797;opacity:1}
/* Keep all quotation pickers consistent with the report's floating menus. */
:root body .main #quote-preparation .qp-report-menu:popover-open{display:flex;flex-direction:column;box-sizing:border-box;padding:0;border:1px solid #b6c9e5;border-radius:8px;background:#fff;box-shadow:0 10px 28px #12315b26;overflow:hidden}
:root body .main #quote-preparation .qp-report-menu .customer-picker-search{flex:none;padding:9px;margin:0;border-bottom:1px solid #dbe5f2}
:root body .main #quote-preparation .qp-report-menu .customer-picker-options{display:block;flex:1 1 auto;min-height:0;max-height:240px;padding:4px;overflow-y:auto;overflow-x:hidden}
:root body .main #quote-preparation .qp-report-menu .customer-picker-options button{display:block;width:100%;min-width:0;box-sizing:border-box;text-align:left;border:0;border-radius:4px;background:#fff;padding:10px 12px;white-space:normal;overflow-wrap:anywhere;font:400 15px/22px Tahoma,sans-serif;box-shadow:none}
:root body .main #quote-preparation .qp-report-menu .customer-picker-options button:is(:hover,:focus-visible,[aria-selected=true],[aria-pressed=true]){background:#eaf2ff;color:#123d88}
:root body .main #quote-preparation .qp-report-menu .customer-picker-options button>span{display:block;font-size:16px;line-height:22px}
:root body .main #quote-preparation .qp-report-menu .customer-picker-options button>small{display:block;font:400 12px/22px Tahoma,sans-serif;color:#6a7f98;white-space:normal;overflow-wrap:anywhere}
:root body .main #quote-preparation .qp-report-menu .customer-picker-footer{flex:none;margin:0;padding:9px;border-top:1px solid #dbe5f2;background:#f5f8ff}
:root body .main #quote-preparation .qp-report-menu .customer-picker-footer .customer-picker-add{text-align:center}
/* Shipping sits between customer details and document dates on wide screens. */
:root body .main #quote-preparation.qp-flow-editor .qp-top{grid-template-columns:minmax(0,450px) minmax(160px,1fr) 335px;gap:20px}
:root body .main #quote-preparation .qp-shipping-inline{min-width:0;padding:0;border:0;background:none;box-shadow:none}
:root body .main #quote-preparation .qp-shipping-inline h3{font:400 13px/20px Tahoma,sans-serif;color:#1e324b;margin:0 0 6px;padding:0;background:none;border:0}
:root body .main #quote-preparation .qp-shipping-inline .qp-two{display:block}
:root body .main #quote-preparation .qp-shipping-inline textarea{height:74px;min-height:74px;max-height:74px;resize:none;line-height:20px;overflow-y:auto}
:root body .main #quote-preparation .qp-shipping-inline .qp-hint{font-size:11px;line-height:1.5;margin-top:4px}
/* Fixed desktop layout; original media: (max-width:1200px) */ @media (max-width:0px){:root body .main #quote-preparation.qp-flow-editor .qp-top{grid-template-columns:minmax(0,450px) minmax(0,335px)}:root body .main #quote-preparation .qp-shipping-inline{grid-column:1;grid-row:2}:root body .main #quote-preparation .qp-document-meta{grid-column:2;grid-row:1 / span 2}}
/* Fixed desktop layout; original media: (max-width:760px) */ @media (max-width:0px){:root body .main #quote-preparation.qp-flow-editor .qp-top{grid-template-columns:minmax(0,1fr)}:root body .main #quote-preparation .qp-shipping-inline,:root body .main #quote-preparation .qp-document-meta{grid-column:auto;grid-row:auto}}

:root body .main #quote-preparation .qp-shipping-inline{padding-top:66px}
:root body .main #quote-preparation .qp-shipping-inline h3{margin:0 0 4px}
:root body .main #quote-preparation .qp-shipping-inline label:has([name=shipping_source]){margin:0 0 8px}
/* Fixed desktop layout; original media: (max-width:1200px) */ @media (max-width:0px){:root body .main #quote-preparation .qp-shipping-inline{padding-top:0}}
:root body .main #quote-preparation .qp-shipping-inline{width:300px;max-width:100%;box-sizing:border-box}
:root body .main #quote-preparation .qp-shipping-picker textarea{padding-right:36px!important}
/* Contact and phone share the tax-row proportions; email has its own full row. */
:root body .main #quote-preparation.qp-flow-editor .qp-customer-compact>.qp-contact-main>label:first-child{grid-column:auto}
:root body .main #quote-preparation.qp-flow-editor .qp-customer-compact>.qp-contact-main>label:has([name=email]){grid-column:1/-1}

/* Change quotation status directly from its list row. */
.qp-list-status{min-width:150px;max-width:190px;height:34px;padding:4px 28px 4px 10px;border:1px solid #b6c9e5;border-radius:7px;background:#fff;color:#243b5a;font:inherit;}
.qp-flow-editor .qp-document-tools{margin-left:auto;}

.qp-flow-editor .qp-document-number{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:#243b5a;font-size:14px;}.qp-document-number>span{color:#64748b;}.qp-document-number>strong{font-size:16px;}

.qp-flow-editor .qp-document-number>strong{font-size:22px;line-height:1.35;}.qp-flow-editor .qp-editor-context:empty{display:none;}

.qp-flow-editor .qp-flow-tools{padding-top:10px;padding-bottom:10px;align-items:center;}.qp-flow-editor .qp-document-number{flex-direction:column;align-items:flex-start;gap:4px;}.qp-flow-editor .qp-document-number>span{font-size:12px;line-height:18px;}
@font-face{font-family:QuotationFlowNumber;src:url('/fonts/cschatthaiui.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap;}
.qp-flow-editor .qp-document-number>strong{font-family:QuotationFlowNumber,Arial,sans-serif;font-weight:400;font-size:24px;}

/* Keep the document identity only in the main editor heading. */
:root body .main #quote-preparation.qp-flow-editor .qp-editor-title h2{font-size:20px;line-height:1.35;font-weight:700;color:#fff;margin:0 0 4px;}
:root body .main #quote-preparation.qp-flow-editor .qp-editor-title>span{display:block;font-family:QuotationFlowNumber,Arial,sans-serif;font-size:26px;line-height:1.3;font-weight:400;color:#fff;opacity:1;}

/* Fixed desktop layout; original media: (min-width:701px) */ @media (min-width:0px){:root body .main #quote-preparation.qp-flow-editor .qp-editor-toolbar{box-sizing:border-box;min-height:83px;padding-top:8px;padding-bottom:8px;}}

/* Reserve the Flow notice line so asynchronous checks cannot move the form. */
.qp-flow-editor .qp-flow-tools [data-flow-message],.qp-flow-editor .qp-flow-tools [data-flow-message]:empty{display:block;min-height:20px;line-height:20px;margin:0;}

/* Pin at the initial inset so the editor heading never jumps on first scroll. */
:root body .main #quote-preparation.qp-flow-editor .qp-editor-toolbar{position:sticky;top:9px;z-index:20;}

/* Separate the fixed heading and the scrolling document into consecutive panels. */
.main .page-scroll:has(#quote-preparation.qp-flow-editor){overflow:hidden;}
.main .page-content:has(>#quote-preparation.qp-flow-editor){height:100%;min-height:0;box-sizing:border-box;}
:root body .main #quote-preparation.qp-flow-editor{display:flex;flex-direction:column;height:100%;min-height:0;box-sizing:border-box;padding:0;margin:0;overflow:hidden;background:transparent;border:0;box-shadow:none;}
:root body .main #quote-preparation.qp-flow-editor .qp-editor-toolbar{position:relative;top:auto;flex:0 0 auto;margin:0 0 10px;width:100%;box-sizing:border-box;}
:root body .main #quote-preparation.qp-flow-editor>.qp-editor-body{flex:1 1 auto;min-height:0;overflow:auto;box-sizing:border-box;padding:12px 18px 20px;border:1px solid #cad9ed;border-radius:10px;background:#f4f8ff;}


.qp-flow-editor .qp-flow-tools{border-bottom:0;}

/* Align customer details with the document actions, rather than below them. */
:root body .main #quote-preparation.qp-flow-editor .qp-document-meta>.qp-flow-tools{padding-top:0;margin-top:0;}

/* Balance the total between the action row and the document dates. */
:root body .main #quote-preparation.qp-flow-editor .qp-document-meta>.qp-flow-tools{padding-bottom:0;margin-bottom:0;}
:root body .main #quote-preparation.qp-flow-editor .qp-flow-tools [data-flow-message]:empty{display:none;}
:root body .main #quote-preparation.qp-flow-editor .qp-grand{display:grid;grid-template-columns:auto auto;justify-content:center;align-items:baseline;column-gap:6px;row-gap:6px;padding:20px 0;margin:0;}
:root body .main #quote-preparation.qp-flow-editor .qp-grand>span{grid-column:1/-1;line-height:20px;}
:root body .main #quote-preparation.qp-flow-editor .qp-grand strong{margin:0;line-height:1.2;}

:root body .main #quote-preparation .qp-document-tools{gap:6px;}
:root body .main #quote-preparation .qp-document-tools>button,:root body .main #quote-preparation .qp-document-tools>a,:root body .main #quote-preparation .qp-document-more>summary{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:64px;padding:4px 3px;border:0;background:transparent;box-shadow:none;color:#65717c;font:12px/18px Tahoma,sans-serif;text-decoration:none;list-style:none;}
:root body .main #quote-preparation .qp-document-tools svg{width:27px;height:27px;display:block;}
:root body .main #quote-preparation .qp-document-more>summary::-webkit-details-marker{display:none;}
:root body .main #quote-preparation .qp-document-tools>button:hover,:root body .main #quote-preparation .qp-document-tools>a:hover,:root body .main #quote-preparation .qp-document-more>summary:hover{color:#2582b0;background:#eaf3fb;}
:root body .main #quote-preparation .qp-document-more[open]>div{top:100%;}

:root body .main #quote-preparation .qp-document-tools>button,:root body .main #quote-preparation .qp-document-tools>a,:root body .main #quote-preparation .qp-document-more>summary{color:#353a40;}

/* Match Flow's left-aligned total beneath a compact action strip. */
:root body .main #quote-preparation .qp-document-tools{gap:0;}
:root body .main #quote-preparation .qp-document-tools>button,:root body .main #quote-preparation .qp-document-tools>a,:root body .main #quote-preparation .qp-document-more>summary{min-width:56px;padding-left:2px;padding-right:2px;}
:root body .main #quote-preparation.qp-flow-editor .qp-grand{justify-content:start;text-align:left;padding-top:12px;padding-bottom:20px;}

:root body .main #quote-preparation .qp-more-actions>[data-secondary-actions]{width:320px;max-width:calc(100vw - 40px);padding:12px;}
:root body .main #quote-preparation [data-secondary-actions]>.qp-document-tools{margin:0;justify-content:space-between;}
:root body .main #quote-preparation [data-secondary-actions] .qp-document-tools>button,:root body .main #quote-preparation [data-secondary-actions] .qp-document-tools>a{width:auto;}
:root body .main #quote-preparation .qp-draft-menu{border-top:1px solid #d8e2ee;margin-top:8px;padding-top:8px;display:grid;gap:6px;}
:root body .main #quote-preparation .qp-draft-menu button{color:#243b53;background:#f5f8fc;text-align:left;padding:8px;font-size:13px;}
:root body .main #quote-preparation .qp-draft-menu small{display:block;color:#62758b;font-size:11px;margin-top:4px;white-space:normal;}
:root body .main #quote-preparation .qp-flow-tools:not(:has([data-flow-message]:not(:empty))):not(:has([data-share-panel]:not([hidden]))){display:none;}
:root body .main #quote-preparation .qp-draft-menu button{display:block;white-space:normal;}

/* Move only the contact picker beside the customer; retain the other field cells. */
:root body .main #quote-preparation.qp-flow-editor .qp-customer-heading-row{position:relative}
:root body .main #quote-preparation.qp-flow-editor .qp-customer-heading-row>.qp-heading-recipient{position:absolute;left:calc(100% + 20px);top:0;width:300px;max-width:none;margin:0}
:root body .main #quote-preparation.qp-flow-editor .qp-contact-main>label:has([name=phone]){grid-column:2;grid-row:1}
:root body .main #quote-preparation.qp-flow-editor .qp-contact-main>label:has([name=email]){grid-column:1/-1;grid-row:2}
/* Fixed desktop layout; original media: (max-width:760px) */ @media (max-width:0px){:root body .main #quote-preparation.qp-flow-editor .qp-customer-heading-row>.qp-heading-recipient{position:static;flex:1 1 45%;width:auto;min-width:0}:root body .main #quote-preparation.qp-flow-editor .qp-customer-heading-row>label:first-child{flex:1 1 55%}}

/* Company and person fields grouped independently in the quotation editor. */
:root body .main #quote-preparation.qp-flow-editor .qp-person-details{min-width:0;width:300px;max-width:100%;padding:0;border:0;background:none;box-shadow:none}
:root body .main #quote-preparation.qp-flow-editor .qp-person-details>label{width:100%;min-width:0}
:root body .main #quote-preparation.qp-flow-editor .qp-customer-compact>.qp-shipping-inline{padding-top:0;width:450px;max-width:100%;margin-bottom:8px}
:root body .main #quote-preparation.qp-flow-editor .qp-customer-compact>.qp-shipping-inline .qp-hint{display:none}
/* Fixed desktop layout; original media: (max-width:1200px) and (min-width:761px) */ @media (max-width:0px) and (min-width:0px){:root body .main #quote-preparation.qp-flow-editor .qp-person-details{grid-column:2;grid-row:1}:root body .main #quote-preparation.qp-flow-editor .qp-document-meta{grid-column:2;grid-row:2}}

/* Two equal address columns aligned with the company and tax fields. */
:root body .main #quote-preparation.qp-flow-editor .qp-address-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:450px;max-width:100%;align-items:start}
:root body .main #quote-preparation.qp-flow-editor .qp-address-pair>label{min-width:0}
:root body .main #quote-preparation.qp-flow-editor .qp-address-pair>.qp-shipping-inline{width:100%;min-width:0;max-width:100%;padding-top:0;grid-column:auto;grid-row:auto}
:root body .main #quote-preparation.qp-flow-editor .qp-address-pair textarea{width:100%;max-width:100%;box-sizing:border-box}
:root body .main #quote-preparation.qp-flow-editor .qp-address-pair .qp-hint{display:none}

/* Trial: joined address and tax boxes. Remove this block to restore spaced fields. */
:root body .main #quote-preparation.qp-flow-editor .qp-address-pair{gap:0;align-items:end}
:root body .main #quote-preparation.qp-flow-editor .qp-address-pair>label,
:root body .main #quote-preparation.qp-flow-editor .qp-address-pair .qp-shipping-inline,
:root body .main #quote-preparation.qp-flow-editor .qp-address-pair .qp-shipping-inline label{margin-bottom:0}
:root body .main #quote-preparation.qp-flow-editor .qp-address-pair textarea{display:block;border-radius:0;margin:0}
:root body .main #quote-preparation.qp-flow-editor .qp-address-pair textarea[name=billing]{border-top-left-radius:8px}
:root body .main #quote-preparation.qp-flow-editor .qp-address-pair textarea[name=shipping]{border-top-right-radius:8px;border-left:0}
:root body .main #quote-preparation.qp-flow-editor .qp-customer-compact>.qp-tax-row{gap:0;margin-top:0}
:root body .main #quote-preparation.qp-flow-editor .qp-tax-row>label{margin-top:0}
:root body .main #quote-preparation.qp-flow-editor .qp-tax-row input{border-radius:0;border-top:0;margin:0}
:root body .main #quote-preparation.qp-flow-editor .qp-tax-row input[name=tax]{border-bottom-left-radius:8px}
:root body .main #quote-preparation.qp-flow-editor .qp-tax-row input[name=billing_branch]{border-bottom-right-radius:8px;border-left:0}

/* Square the shared corners; retain rounding only around the outer perimeter. */
:root body .main #quote-preparation.qp-flow-editor .qp-address-pair textarea[name=billing]{border-radius:8px 0 0 0!important}
:root body .main #quote-preparation.qp-flow-editor .qp-address-pair textarea[name=shipping]{border-radius:0 8px 0 0!important}
:root body .main #quote-preparation.qp-flow-editor .qp-tax-row input[name=tax]{border-radius:0 0 0 8px!important}
:root body .main #quote-preparation.qp-flow-editor .qp-tax-row input[name=billing_branch]{border-radius:0 0 8px 0!important}

/* Selected mockup 1: company and contact cards. */
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one{grid-column:1 / 3;display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:16px;align-items:stretch;min-width:0}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-identity-card{width:auto;max-width:none;min-width:0;margin:0;padding:16px;border:1px solid #c3daf3;border-radius:10px;background:#fff;box-sizing:border-box}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-card-title{margin:-16px -16px 16px;padding:12px 16px;border-radius:9px 9px 0 0;background:#e8f3ff;color:#173e6e;font-size:16px;line-height:24px;font-weight:600}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-customer-heading-row{display:block}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-customer-picker{width:100%;max-width:100%}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one label{display:grid;gap:6px;margin:0 0 14px;min-width:0;font-size:13px}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-tax-row,
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-address-pair{width:100%;max-width:100%;gap:12px;align-items:start}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-tax-row input,
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-address-pair textarea{width:100%;max-width:100%;border:1px solid #ccdced!important;border-radius:7px!important;background:#f3f7fb;margin:0}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-address-pair textarea{height:116px;min-height:116px;max-height:116px}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-shipping-inline h3{font-size:13px;line-height:20px;margin:0 0 6px;min-height:20px}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-person-details input:not([name=recipient]){background:#f3f7fb}
/* Fixed desktop layout; original media: (max-width:1200px) */ @media (max-width:0px){:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one{grid-column:1;grid-row:1}:root body .main #quote-preparation.qp-flow-editor .qp-document-meta{grid-column:2;grid-row:1}}
/* Fixed desktop layout; original media: (max-width:760px) */ @media (max-width:0px){:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one{grid-template-columns:1fr;grid-column:1}:root body .main #quote-preparation.qp-flow-editor .qp-document-meta{grid-column:1;grid-row:2}}

/* Keep design one compact at the original company/contact widths. */
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one{grid-template-columns:minmax(0,450px) minmax(0,300px);width:766px;max-width:100%;justify-content:start}
/* Fixed desktop layout; original media: (max-width:760px) */ @media (max-width:0px){:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one{grid-template-columns:minmax(0,450px);width:450px}:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-person-details{width:300px;max-width:100%}}

/* Design two, retaining the compact 450 / 300 selection widths. */
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-two{grid-column:1/3;width:766px;max-width:100%;min-width:0}
:root body .main #quote-preparation.qp-flow-editor .qp-two-selection{display:grid;grid-template-columns:minmax(0,450px) minmax(0,300px);gap:16px;align-items:start}
:root body .main #quote-preparation.qp-flow-editor .qp-two-selection .qp-customer-heading-row{display:block}
:root body .main #quote-preparation.qp-flow-editor .qp-two-selection .qp-customer-picker{width:100%;max-width:100%}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-two label{display:grid;gap:6px;min-width:0;margin:0 0 12px}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-two>.qp-tax-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;width:100%;margin:0 0 14px;padding-bottom:2px;border-bottom:1px solid #d5e3f3}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-two .qp-tax-row input{border:1px solid #ccdced!important;border-radius:7px!important;width:100%;max-width:100%;background:#f3f7fb}
:root body .main #quote-preparation.qp-flow-editor .qp-two-details{display:grid;grid-template-columns:minmax(0,217px) minmax(0,217px) minmax(0,300px);gap:16px;align-items:stretch}
:root body .main #quote-preparation.qp-flow-editor .qp-two-details>label,
:root body .main #quote-preparation.qp-flow-editor .qp-two-details>section{display:block;box-sizing:border-box;min-width:0;width:auto;max-width:100%;padding:12px;margin:0;border:1px solid #c3daf3;border-radius:9px;background:#fff;grid-column:auto;grid-row:auto}
:root body .main #quote-preparation.qp-flow-editor .qp-two-details h3{font-size:13px;line-height:20px;margin:0 0 8px;color:#203d5a}
:root body .main #quote-preparation.qp-flow-editor .qp-two-details textarea{display:block;width:100%;max-width:100%;height:132px;min-height:132px;max-height:132px;box-sizing:border-box;margin-top:8px;border:1px solid #ccdced!important;border-radius:7px!important;background:#f3f7fb}
:root body .main #quote-preparation.qp-flow-editor .qp-two-details .qp-hint{display:none}
/* Fixed desktop layout; original media: (max-width:1200px) */ @media (max-width:0px){:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-two{grid-column:1;grid-row:1}.qp-identity-design-two .qp-two-details{grid-template-columns:1fr 1fr 1.35fr!important}}
/* Fixed desktop layout; original media: (max-width:760px) */ @media (max-width:0px){:root body .main #quote-preparation.qp-flow-editor .qp-two-selection{grid-template-columns:1fr}.qp-identity-design-two .qp-two-details{grid-template-columns:1fr!important}}

/* Design five: company above, contact strip below, compact overall width. */
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-five{grid-column:1/3;width:766px;max-width:100%;min-width:0;display:grid;gap:16px}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-five>section{padding:16px;margin:0;border:1px solid #c3daf3;border-radius:10px;background:#fff;min-width:0}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-five>section>h3{margin:-16px -16px 16px;padding:10px 16px;border-radius:9px 9px 0 0;background:#e8f3ff;color:#173e6e;font-size:15px;line-height:24px}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-five label{display:grid;gap:6px;margin:0 0 12px;min-width:0}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-five .qp-customer-heading-row{display:block;width:450px;max-width:100%}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-five .qp-customer-picker{width:100%;max-width:100%}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-five .qp-tax-row,
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-five .qp-address-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%;max-width:100%;align-items:start}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-five .qp-tax-row input,
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-five .qp-address-pair textarea{width:100%;max-width:100%;border:1px solid #ccdced!important;border-radius:7px!important;background:#f3f7fb}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-five .qp-address-pair textarea{height:100px;min-height:100px;max-height:100px}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-five .qp-shipping-inline h3{font-size:13px;line-height:20px;margin:0 0 6px}
:root body .main #quote-preparation.qp-flow-editor .qp-five-person-fields{display:grid;grid-template-columns:minmax(0,300px) minmax(0,180px) minmax(0,1fr);gap:12px}
:root body .main #quote-preparation.qp-flow-editor .qp-five-person-fields>label{margin-bottom:0}
/* Fixed desktop layout; original media: (max-width:1200px) */ @media (max-width:0px){:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-five{grid-column:1;grid-row:1}}
/* Fixed desktop layout; original media: (max-width:760px) */ @media (max-width:0px){:root body .main #quote-preparation.qp-flow-editor .qp-five-person-fields{grid-template-columns:1fr}}

:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-five>section>h3{display:flex;align-items:center;gap:10px}
:root body .main #quote-preparation.qp-flow-editor .qp-five-title-icon{width:25px;height:25px;flex:0 0 25px;color:#1676d2}

:root body .main #quote-preparation .qp-five-field-heading{display:flex;align-items:center;gap:7px;min-height:20px}
:root body .main #quote-preparation .qp-five-field-heading svg{width:17px;height:17px;flex:0 0 17px;color:#1676d2}

/* Restore the first layout and retain the requested icon set. */
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-five-person-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-identity-card-title{display:flex;align-items:center;gap:10px}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-five-title-icon{width:25px;height:25px;flex:0 0 25px;color:#1676d2}

:root body .main #quote-preparation.qp-flow-editor .qp-two-contact>.qp-identity-card-title{display:flex;align-items:center;gap:7px;background:none;padding:0;margin:0 0 10px;border-radius:0;font-size:13px}
:root body .main #quote-preparation.qp-flow-editor .qp-two-contact .qp-five-title-icon{width:20px;height:20px;flex:0 0 20px;color:#1676d2}

/* Compact design two to stay within the document-meta height. */
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-two .qp-customer-picker>summary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-two label{gap:4px;margin-bottom:8px}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-two>.qp-tax-row{margin-bottom:8px;padding-bottom:0}
:root body .main #quote-preparation.qp-flow-editor .qp-two-details>label,
:root body .main #quote-preparation.qp-flow-editor .qp-two-details>section{padding:8px;margin-bottom:0}
:root body .main #quote-preparation.qp-flow-editor .qp-two-details textarea{height:82px;min-height:82px;max-height:82px;margin-top:4px}
:root body .main #quote-preparation.qp-flow-editor .qp-two-contact>.qp-identity-card-title{margin-bottom:4px;line-height:20px}
:root body .main #quote-preparation.qp-flow-editor .qp-two-contact label:last-child{margin-bottom:0}

:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-two>.qp-tax-row{margin-bottom:2px}

/* Compact first layout, bounded by the existing document information height. */
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-identity-card{padding:10px;align-self:start}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-identity-card-title{margin:-10px -10px 8px;padding:6px 10px;line-height:22px;font-size:14px}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one label{gap:3px;margin-bottom:6px}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-customer-picker>summary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-address-pair textarea{height:76px;min-height:76px;max-height:76px}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-address-pair label{margin-bottom:0}


/* Exactly four 20px text lines, plus padding and borders. */
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-address-pair textarea{height:94px;min-height:94px;max-height:94px;line-height:20px!important;padding:6px 10px!important;box-sizing:border-box;overflow-y:auto;resize:none}
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-identity-card{padding-bottom:8px}

:root body .main #quote-preparation.qp-flow-editor textarea.qp-email-two-lines{height:54px;min-height:54px;max-height:54px;line-height:20px!important;padding:6px 10px!important;box-sizing:border-box;resize:none;overflow-y:auto;overflow-wrap:anywhere;word-break:break-all}

/* Divider under the customer and document information block. */
:root body .main #quote-preparation.qp-flow-editor .qp-top{position:relative}
:root body .main #quote-preparation.qp-flow-editor .qp-top::after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:#bed2e9;pointer-events:none}

/* Give the divider breathing room above the following fields. */
:root body .main #quote-preparation.qp-flow-editor .qp-top{padding-bottom:7px;margin-bottom:8px}

/* Match contact card height to the company card. */
:root body .main #quote-preparation.qp-flow-editor .qp-identity-design-one .qp-person-details{align-self:stretch}

/* Distinguish empty-field hints from actual customer data. */
:root body .main #quote-preparation.qp-flow-editor :is([name=tax],[name=billing_branch],[name=billing],[name=shipping],[name=phone],[name=email])::placeholder{color:#aab2bd!important;opacity:1!important;font-weight:400}

/* Customer details use black text while empty hints retain Flow gray. */
:root body .main #quote-preparation.qp-flow-editor :is([name=tax],[name=billing_branch],[name=billing],[name=shipping],[name=phone],[name=email]){color:#000!important}

/* Black document values, item details and notes throughout the editor. */
:root body .main #quote-preparation.qp-flow-editor :is(input,textarea,select,.qp-remarks,.qp-items td){color:#000!important}
:root body .main #quote-preparation.qp-flow-editor :is(input,textarea)::placeholder{color:#aab2bd!important;opacity:1!important}

/* Keep the final total accent; other summary labels and values are black. */
:root body .main #quote-preparation.qp-flow-editor .qp-totals dl>div:not(.qp-total-final),:root body .main #quote-preparation.qp-flow-editor .qp-totals dl>div:not(.qp-total-final)>:is(dt,dd){color:#000!important}
/* Flow-style lower quotation layout, independent of the approved customer cards. */
:root body .main #quote-preparation.qp-flow-editor .qp-reference-row{grid-template-columns:minmax(0,1.7fr) minmax(0,.9fr) minmax(0,1.1fr);gap:20px;margin:14px 0}
:root body .main #quote-preparation.qp-flow-editor .qp-reference-row>label,:root body .main #quote-preparation.qp-flow-editor label.qp-flow-description{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;margin:0;color:#000;font-weight:600}
:root body .main #quote-preparation.qp-flow-editor .qp-reference-row>label:first-child,:root body .main #quote-preparation.qp-flow-editor label.qp-flow-description{grid-template-columns:70px minmax(0,1fr)}
:root body .main #quote-preparation.qp-flow-editor label.qp-flow-description{margin-bottom:20px}
:root body .main #quote-preparation.qp-flow-editor :is(.qp-reference-row,.qp-flow-description,.qp-bottom) :is(input,select,textarea){background:#fff;border-color:#d1d1d1;border-radius:4px;box-shadow:inset 0 1px 3px #0000000d;font-weight:400}
:root body .main #quote-preparation.qp-flow-editor .qp-items{min-width:840px;border:1px solid #e8e8e8}
:root body .main #quote-preparation.qp-flow-editor .qp-items thead th{background:#e8f2fc!important;color:#203d5a!important;-webkit-text-fill-color:#203d5a;border:0;padding:6px 8px;font-size:13px;line-height:18px}
:root body .main #quote-preparation.qp-flow-editor .qp-items tbody td{border-bottom:1px solid #e8e8e8;padding:12px 8px;background:#fff}
:root body .main #quote-preparation.qp-flow-editor .qp-items :is(input,select){background:transparent;border:1px solid transparent;border-radius:3px;box-shadow:none;padding:4px!important;min-height:28px;font-size:13px!important}
:root body .main #quote-preparation.qp-flow-editor .qp-items :is(input,select):is(:hover,:focus){border-color:#c4d9e0;background:#fff}
:root body .main #quote-preparation.qp-flow-editor .qp-items .qp-item-label{margin:0;gap:0}
:root body .main #quote-preparation.qp-flow-editor .qp-items .qp-item-label>span{display:none}
:root body .main #quote-preparation.qp-flow-editor .qp-items th:nth-child(2){width:34%}
:root body .main #quote-preparation.qp-flow-editor .qp-items [data-line-total]{padding-top:18px}
:root body .main #quote-preparation.qp-flow-editor [data-add]{background:#fff;border:1px solid #c9d9ee;color:#2857a4;border-radius:4px;padding:6px 12px;min-height:32px}
:root body .main #quote-preparation.qp-flow-editor .qp-bottom{grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);gap:50px;margin-top:20px}
:root body .main #quote-preparation.qp-flow-editor .qp-flow-notes-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}
:root body .main #quote-preparation.qp-flow-editor .qp-flow-notes-pair>label{color:#000;font-weight:600}
:root body .main #quote-preparation.qp-flow-editor .qp-flow-notes-pair textarea{height:80px;min-height:80px;resize:vertical}
:root body .main #quote-preparation.qp-flow-editor .qp-flow-remarks-details{margin-top:16px;color:#526b85;font-size:12px}
:root body .main #quote-preparation.qp-flow-editor .qp-flow-remarks-details>summary{cursor:pointer;margin-bottom:10px}
:root body .main #quote-preparation.qp-flow-editor .qp-totals dl>div{padding:8px 0;font-size:14px}
:root body .main #quote-preparation.qp-flow-editor .qp-totals dd{font-weight:600}
:root body .main #quote-preparation.qp-flow-editor .qp-totals dl>div:nth-child(3){border-bottom:1px solid #eee;padding-bottom:16px;margin-bottom:12px}
:root body .main #quote-preparation.qp-flow-editor .qp-totals .qp-total-final{border:0;margin-top:0;padding:8px 0}
/* Fixed desktop layout; original media: (max-width:900px) */ @media (max-width:0px){:root body .main #quote-preparation.qp-flow-editor .qp-reference-row{grid-template-columns:1fr;gap:10px}:root body .main #quote-preparation.qp-flow-editor .qp-reference-row>label{grid-template-columns:90px minmax(0,1fr)}:root body .main #quote-preparation.qp-flow-editor .qp-bottom{gap:24px}}
/* Fixed desktop layout; original media: (max-width:700px) */ @media (max-width:0px){:root body .main #quote-preparation.qp-flow-editor .qp-bottom,:root body .main #quote-preparation.qp-flow-editor .qp-flow-notes-pair{grid-template-columns:1fr}}
:root body .main #quote-preparation.qp-flow-editor .qp-signature-toggle{display:flex;align-items:center;gap:8px;color:#000;margin-bottom:18px}
:root body .main #quote-preparation.qp-flow-editor .qp-signature-toggle input{width:15px;min-height:15px;height:15px;padding:0;box-shadow:none;accent-color:#399ab5}
:root body .main #quote-preparation.qp-flow-editor .qp-items [name=discount_type]{display:inline-block;width:42px;min-height:22px;height:24px;padding:0!important;font-size:12px!important}
:root body .main #quote-preparation.qp-flow-editor .qp-items textarea{background:transparent;border:1px solid transparent;box-shadow:none;min-height:32px;height:32px;resize:vertical;padding:4px;font-size:13px!important}
:root body .main #quote-preparation.qp-flow-editor .qp-items textarea:focus{background:#fff;border-color:#c4d9e0}
:root body .main #quote-preparation.qp-flow-editor .qp-move-row{display:block;margin:auto;padding:0;min-height:20px;border:0;background:transparent;color:#71849d;cursor:grab}
:root body .main #quote-preparation.qp-flow-editor .qp-product-picker{display:flex;position:relative;align-items:center}
:root body .main #quote-preparation.qp-flow-editor .qp-product-picker>input{min-width:0;flex:1}
:root body .main #quote-preparation.qp-flow-editor .qp-product-picker>button{border:0;background:transparent;padding:4px;min-height:24px}
.qp-product-options button{display:block;width:100%;text-align:left;background:white;border:0;padding:8px;color:#000}
.qp-product-options button:hover{background:#edf4ff}
.qp-product-options{max-height:300px;overflow:auto;border:1px solid #c9d9ee;background:#fff;border-radius:4px;padding:4px}
:root body .main #quote-preparation .qp-product-options.qp-report-menu:popover-open{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
:root body .main #quote-preparation.qp-flow-editor .qp-attachment-box{margin-top:24px}
:root body .main #quote-preparation.qp-flow-editor label.qp-file-drop{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:210px;height:180px;border:1px solid #d1d1d1;background:#fff;border-radius:4px;text-align:center;color:#6d747b;cursor:pointer;overflow:hidden}
:root body .main #quote-preparation.qp-flow-editor .qp-file-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
:root body .main #quote-preparation.qp-flow-editor .qp-attachment-box small{color:#6d747b}
:root body .main #quote-preparation.qp-flow-editor .qp-attachment-box li{margin:6px 0;overflow-wrap:anywhere}
:root body .main #quote-preparation.qp-flow-editor .qp-attachment-box li button{margin-left:8px;padding:2px 8px}
/* Keep resting item cells seamless, as in the Flow editor. */
:root body .main #quote-preparation.qp-flow-editor .qp-items :is(input,select,textarea){background:transparent!important;border-color:transparent!important;box-shadow:none!important;border-radius:3px!important}
:root body .main #quote-preparation.qp-flow-editor .qp-items :is(input,select,textarea):is(:hover,:focus){background:#fff!important;border-color:#c4d9e0!important}
:root body .main #quote-preparation.qp-flow-editor .qp-items thead th{white-space:nowrap;padding:6px 4px;line-height:20px;font-size:12px}
:root body .main #quote-preparation.qp-flow-editor .qp-items [name=discount_type]{display:inline-block;min-height:20px!important;height:20px!important;width:34px;padding:0!important;vertical-align:middle;font-size:12px!important}
:root body .main #quote-preparation.qp-flow-editor .qp-items .qp-product-picker>button{color:#71849d;min-width:18px}
/* Flow comparison: lower form geometry, without changing the approved palette. */
:root body .main #quote-preparation.qp-flow-editor .qp-reference-row{grid-template-columns:minmax(0,1.7fr) minmax(0,.9fr) minmax(0,1.1fr);gap:20px;margin:20px 0 15px}
:root body .main #quote-preparation.qp-flow-editor :is(.qp-reference-row,label.qp-flow-description){font-size:13px}
:root body .main #quote-preparation.qp-flow-editor :is(.qp-reference-row,label.qp-flow-description) :is(input,select){height:30px;min-height:30px;padding:4px 10px;border-radius:4px}
:root body .main #quote-preparation.qp-flow-editor .qp-reference-row>label:first-child,:root body .main #quote-preparation.qp-flow-editor label.qp-flow-description{grid-template-columns:68px minmax(0,1fr)}
:root body .main #quote-preparation.qp-flow-editor label.qp-flow-description{margin-bottom:20px}
:root body .main #quote-preparation.qp-flow-editor .qp-items-wrap{overflow:visible;margin:0 0 12px}
:root body .main #quote-preparation.qp-flow-editor .qp-items{min-width:0}
:root body .main #quote-preparation.qp-flow-editor .qp-items thead th{height:30px;padding:5px 10px;font-size:13px;border:0!important}
:root body .main #quote-preparation.qp-flow-editor .qp-items th:nth-child(2){width:auto}
:root body .main #quote-preparation.qp-flow-editor .qp-items tbody td{height:82px;box-sizing:border-box;padding:10px 6px;border-right:0;position:relative}
:root body .main #quote-preparation.qp-flow-editor .qp-items td:first-child{padding-top:19px}
:root body .main #quote-preparation.qp-flow-editor .qp-items :is(input,select,textarea){margin:0;line-height:20px;height:30px;min-height:30px;box-sizing:border-box}
:root body .main #quote-preparation.qp-flow-editor .qp-items :is(input,textarea)::placeholder{color:transparent!important}
:root body .main #quote-preparation.qp-flow-editor .qp-items :is(input,textarea):focus::placeholder{color:#aab2bd!important}
:root body .main #quote-preparation.qp-flow-editor .qp-items .qp-product-picker>button,:root body .main #quote-preparation.qp-flow-editor .qp-items [data-remove],:root body .main #quote-preparation.qp-flow-editor .qp-items .qp-move-row{opacity:0}
:root body .main #quote-preparation.qp-flow-editor .qp-items tr:is(:hover,:focus-within,:has(.qp-product-options:popover-open)) :is(.qp-product-picker>button,[data-remove],.qp-move-row){opacity:1}
:root body .main #quote-preparation.qp-flow-editor .qp-items .qp-move-row{position:absolute;left:-16px;top:16px}
:root body .main #quote-preparation.qp-flow-editor .qp-items [data-line-total]{padding-top:18px}
:root body .main #quote-preparation.qp-flow-editor .qp-bottom{grid-template-columns:minmax(0,1.87fr) minmax(0,1fr);gap:50px;margin-top:10px}
:root body .main #quote-preparation.qp-flow-editor .qp-bottom>section:first-child{padding-top:36px}
:root body .main #quote-preparation.qp-flow-editor .qp-flow-notes-pair textarea{height:78px;min-height:78px}
:root body .main #quote-preparation.qp-flow-editor .qp-totals dl>div{padding:7px 0;min-height:34px;box-sizing:border-box;font-size:14px;align-items:center}
:root body .main #quote-preparation.qp-flow-editor .qp-totals dl>div:nth-child(3){border:0;margin:0;padding:7px 0}
:root body .main #quote-preparation.qp-flow-editor .qp-attachment-box{margin-top:30px}
:root body .main #quote-preparation.qp-flow-editor .qp-flow-remarks-details{margin-top:10px}
:root body .main #quote-preparation.qp-flow-editor .qp-attachment-box label.qp-file-drop{height:200px}
:root body .main #quote-preparation.qp-flow-editor [data-catalog-status]{display:none}
:root body .main #quote-preparation.qp-flow-editor .qp-vat-toggle{display:none;margin:0;align-items:center;gap:7px;color:#000;font-weight:400}
:root body .main #quote-preparation.qp-flow-editor.qp-vat-summary .qp-vat-toggle{display:flex}
:root body .main #quote-preparation.qp-flow-editor.qp-vat-summary :is(.qp-items tr>:nth-child(7)){display:none}
:root body .main #quote-preparation.qp-flow-editor :is(.qp-vat-toggle,.qp-withholding-preview,.qp-document-settings) input[type=checkbox]{width:14px;height:14px;min-height:14px;margin:0;padding:0;box-shadow:none;accent-color:#399ab5}
:root body .main #quote-preparation.qp-flow-editor .qp-withholding-preview{border-top:1px solid #e8e8e8;margin-top:10px;padding-top:16px}
:root body .main #quote-preparation.qp-flow-editor .qp-withholding-preview label{display:flex;gap:7px;align-items:center;color:#000;margin:0}
:root body .main #quote-preparation.qp-flow-editor .qp-document-settings{position:fixed;right:0;top:90px;bottom:0;width:330px;padding:50px 28px;background:#f7f8fa;box-shadow:-4px 0 16px #0002;z-index:100;box-sizing:border-box}
:root body .main #quote-preparation.qp-flow-editor .qp-document-settings[hidden]{display:none}
:root body .main #quote-preparation.qp-flow-editor .qp-document-settings h3{font-size:22px;font-weight:400;color:#2857a4;margin:10px 0}
:root body .main #quote-preparation.qp-flow-editor .qp-document-settings p{color:#888;margin:0 0 20px}
:root body .main #quote-preparation.qp-flow-editor .qp-document-settings label{display:flex;align-items:center;gap:6px;margin:8px 0;color:#000}
:root body .main #quote-preparation.qp-flow-editor [data-close-settings]{position:absolute;right:16px;top:10px;font-size:26px;border:0;background:none}
.qp-product-options{border-radius:0!important;box-shadow:0 4px 10px #0003;padding:0!important}
.qp-product-options button{display:grid;flex-shrink:0;grid-template-columns:minmax(0,1fr) 50px;gap:4px;padding:8px 14px;font-size:13px}
.qp-product-options button>span:first-child{white-space:normal;overflow-wrap:anywhere}
.qp-product-options button small{grid-column:1/-1;white-space:normal;overflow-wrap:anywhere;color:#7e858b;font-size:12px}
.qp-product-options .qp-product-unit{color:#7e858b;text-align:right}
:root body .main #quote-preparation.qp-flow-editor label.qp-warehouse-row{display:grid;grid-template-columns:68px 286px;align-items:center;gap:12px;margin:15px 0 20px;font-size:13px;font-weight:600;color:#000}
:root body .main #quote-preparation.qp-flow-editor .qp-warehouse-row select{height:30px!important;min-height:30px!important;padding:4px 10px!important;background:#fff!important;border:1px solid #d1d1d1!important;border-radius:4px!important;box-shadow:inset 0 1px 3px #0000000d!important;font-weight:400;opacity:1}
:root body .main #quote-preparation.qp-flow-editor label.qp-flow-description{margin-bottom:0}
:root body .main #quote-preparation.qp-flow-editor :is(.qp-reference-row,.qp-flow-description,.qp-flow-notes-pair) :is(input,select,textarea){background:#fff!important;border:1px solid #d1d1d1!important;border-radius:4px!important;box-shadow:inset 0 1px 3px #0000000d!important}
:root body .main #quote-preparation.qp-flow-editor :is(.qp-reference-row,.qp-flow-description) :is(input,select){height:30px!important;min-height:30px!important;padding:4px 10px!important}
:root body .main #quote-preparation.qp-flow-editor .qp-items input[type=number]{appearance:textfield;-moz-appearance:textfield}
:root body .main #quote-preparation.qp-flow-editor .qp-items input::-webkit-inner-spin-button,:root body .main #quote-preparation.qp-flow-editor .qp-items input::-webkit-outer-spin-button{appearance:none;margin:0}
:root body .main #quote-preparation.qp-flow-editor .qp-items textarea{resize:none}
/* Apply Flow typography only below the customer/document divider. */
:root body .main #quote-preparation.qp-flow-editor .qp-flow-typography,
:root body .main #quote-preparation.qp-flow-editor .qp-flow-typography *{font-family:QuotationFlowNumber,sans-serif!important;font-size:15px!important;line-height:20px!important;color:#000!important;font-weight:400!important;-webkit-text-fill-color:currentColor}
:root body .main #quote-preparation.qp-flow-editor :is(label.qp-flow-typography,.qp-reference-row>label,.qp-flow-notes-pair>label){font-weight:700!important}
:root body .main #quote-preparation.qp-flow-editor .qp-flow-typography :is(input,textarea)::placeholder{color:#aab2bd!important;-webkit-text-fill-color:#aab2bd!important}
:root body .main #quote-preparation.qp-flow-editor .qp-flow-typography .qp-items thead th{color:#fff!important;-webkit-text-fill-color:#fff!important;font-weight:700!important}
:root body .main #quote-preparation.qp-flow-editor .qp-flow-typography .qp-totals :is(dt,dt *, .qp-withholding-preview label){color:#2898cb!important;font-weight:400!important}
:root body .main #quote-preparation.qp-flow-editor .qp-flow-typography .qp-totals dd{color:#000!important;font-weight:700!important}
:root body .main #quote-preparation.qp-flow-editor [data-add].qp-flow-typography{color:#2898cb!important}
:root body .main #quote-preparation.qp-flow-editor .qp-flow-typography :is(.qp-file-drop,.qp-file-drop *,.qp-attachment-box small,.qp-product-unit,.qp-product-options small){color:#888!important}
:root body .main #quote-preparation.qp-flow-editor .qp-flow-typography .qp-items :is(input,textarea):not(:focus)::placeholder{color:transparent!important;-webkit-text-fill-color:transparent!important}
:root body .main #quote-preparation.qp-flow-editor :is(label.qp-flow-typography,.qp-reference-row>label){white-space:nowrap}
:root body .main #quote-preparation.qp-flow-editor .qp-flow-typography .qp-items thead th :is(select,option){color:#fff!important;-webkit-text-fill-color:#fff!important;font-weight:700!important}
:root body .main #quote-preparation.qp-flow-editor .qp-flow-typography .qp-items thead th option{color:#000!important;-webkit-text-fill-color:#000!important}
/* Style 01 header palette, retaining Flow typography and existing geometry. */
:root body .main #quote-preparation.qp-flow-editor .qp-items thead{background:linear-gradient(110deg,#198ee6,#393bad)!important}
:root body .main #quote-preparation.qp-flow-editor .qp-items thead th{background:transparent!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
/* Upper information typography: leave the existing cards and field geometry intact. */
@font-face{font-family:QuotationFlowTotal;src:url('/fonts/prompt-regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
:root body .main #quote-preparation.qp-flow-editor .qp-top,
:root body .main #quote-preparation.qp-flow-editor .qp-top *{font-family:QuotationFlowNumber,sans-serif!important;font-size:15px!important;font-weight:400}
:root body .main #quote-preparation.qp-flow-editor .qp-top :is(label,h3,.qp-identity-card-title,.qp-grand>span){color:#000!important;font-weight:700!important}
:root body .main #quote-preparation.qp-flow-editor .qp-top :is(input,select,textarea,.qp-customer-picker>summary,.customer-picker-options button,.qp-person-picker button){color:#000!important;font-weight:400!important}
:root body .main #quote-preparation.qp-flow-editor .qp-top :is(input,textarea)::placeholder{color:#aab2bd!important;opacity:1}
:root body .main #quote-preparation.qp-flow-editor .qp-top .qp-grand strong{font-family:QuotationFlowTotal,sans-serif!important;font-size:30px!important;font-weight:400!important;color:#2898cb!important}
:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-top :is(input,select,textarea,summary,button){font-family:QuotationFlowNumber,sans-serif!important;font-size:15px!important;font-weight:400!important}
:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-top :is(label,h3,.qp-identity-card-title)>span{font-weight:700!important}
/* Joined document fields, matching Flow's compact four-row group. */
:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-meta-fields{display:grid;gap:0;margin-bottom:18px}
:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-meta-fields>:is(label,.field){margin:0;padding:0;min-height:30px;align-items:center}
:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-meta-fields>:is(label,.field)>label{margin:0;white-space:nowrap}
:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-meta-fields :is([data-date-display],[name=credit],[name=salesperson],[name=customer_technician]){height:30px!important;min-height:30px!important;box-sizing:border-box;margin:0!important;padding:4px 10px!important;border:1px solid #d1d1d1!important;border-radius:0!important;background:#fff!important;box-shadow:inset 0 1px 3px #0000000d!important}
:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-meta-fields>:not(:first-child) :is([data-date-display],[name=credit],[name=salesperson],[name=customer_technician]){border-top:0!important}
:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-meta-fields>:first-child [data-date-display]{border-radius:4px 4px 0 0!important}
:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-meta-fields [name=salesperson]{border-radius:0 0 4px 4px!important}
:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-meta-fields .date-single{height:30px}
:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-meta-fields [data-date-display]{padding-right:34px!important}
:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-meta-fields [data-date-open]{height:28px;min-height:28px;top:1px;bottom:auto}
/* Numeric fields accept typing without browser increment/decrement buttons. */
:root body .main #quote-preparation.qp-flow-editor input[type=number]{appearance:textfield;-moz-appearance:textfield}
:root body .main #quote-preparation.qp-flow-editor input[type=number]::-webkit-inner-spin-button,
:root body .main #quote-preparation.qp-flow-editor input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}
/* Compact Flow-style discount menu, rendered in the top layer. */
:root body .main #quote-preparation.qp-flow-editor .qp-items [name=discount_type][hidden]{display:none!important}
:root body .main #quote-preparation.qp-flow-editor .qp-items th:nth-child(6){width:115px;text-align:center;padding:2px 4px}
:root body .main #quote-preparation.qp-flow-editor .qp-discount-trigger{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:26px;min-height:26px;padding:0 8px;border:1px solid #ffffff80;border-radius:5px;background:transparent;box-shadow:none;white-space:nowrap}
:root body .main #quote-preparation.qp-flow-editor .qp-discount-trigger,:root body .main #quote-preparation.qp-flow-editor .qp-discount-trigger *{color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:15px!important;font-weight:700!important}
:root body .main #quote-preparation.qp-flow-editor .qp-discount-menu{position:fixed;inset:auto;margin:0;padding:0;width:122px;min-width:122px;max-width:122px;border:1px solid #c7d9ee;border-radius:10px;background:linear-gradient(145deg,#f6fbff,#eef1fc);box-shadow:0 18px 50px #244a7520;overflow:hidden}
:root body .main #quote-preparation.qp-flow-editor .qp-discount-menu>button{display:block;width:100%;min-height:34px;height:34px;padding:5px 14px;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:left;white-space:nowrap;font:400 15px/24px QuotationFlowNumber,sans-serif!important;color:#000!important;-webkit-text-fill-color:#000!important}
:root body .main #quote-preparation.qp-flow-editor .qp-discount-menu>button:is(:hover,:focus-visible){background:#dceafb;outline:none}
/* Fixed desktop layout; original media: (max-width:900px) */ @media (max-width:0px){:root body .main #quote-preparation.qp-flow-editor .qp-reference-row{grid-template-columns:1fr}:root body .main #quote-preparation.qp-flow-editor .qp-items-wrap{overflow-x:auto}:root body .main #quote-preparation.qp-flow-editor .qp-items{min-width:760px}}

/* Cash sales omit credit terms while keeping shared date calculations internal. */
:root body .main #quote-preparation.qp-cash-sale .qp-meta-fields>[hidden]{display:none!important}/* Quotation table only: the page heading and existing CRM pager stay unchanged. */
:root body .main [data-quotation-results] #quotation-results-table.qlt-table{width:100%;table-layout:fixed;border-collapse:collapse;font-family:QuotationFlowNumber,sans-serif!important}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table *{font-family:QuotationFlowNumber,sans-serif!important;-webkit-text-fill-color:currentColor!important}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table thead{background:linear-gradient(110deg,#198ee6,#393bad);position:sticky;top:0;z-index:2}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table th{background:transparent!important;color:#fff!important;font-size:15px!important;font-weight:700!important;padding:5px 8px;height:34px;border:0;text-align:left}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table th:nth-child(1){width:32px}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table th:nth-child(2){width:105px}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table th:nth-child(3){width:190px}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table th:nth-child(5){width:125px;text-align:right}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table th:nth-child(6){width:155px}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table th:nth-child(7){width:46px}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table td{color:#000!important;font-size:15px!important;font-weight:400!important;line-height:21px;padding:10px 8px;border:0;border-bottom:1px solid #dce5f0;background:#fff;white-space:normal;vertical-align:top;height:52px}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table td:nth-child(3){white-space:nowrap}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table td small{display:block;font-size:13px!important;color:#6b8199!important;margin-top:3px;overflow-wrap:anywhere}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table .qlt-amount{text-align:right;white-space:nowrap}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table input[type=checkbox]{appearance:auto;width:15px;height:15px;min-height:15px;padding:0;margin:3px 0;accent-color:#2857a4}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table .qp-list-status{width:100%;height:30px!important;min-height:30px!important;padding:3px 8px!important;border:0!important;border-radius:4px!important;background:#edf1f8!important;color:#405878!important;font-size:14px!important;box-shadow:none!important}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table .qlt-done{background:#e2edff!important;color:#2857a4!important}
.qlt-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#cad1dc;margin-right:10px}.qlt-dot.done{background:#2857a4}
.qlt-more{position:relative}.qlt-more summary{list-style:none;border:1px solid #c9d3e0;border-radius:4px;width:30px;height:30px;text-align:center;line-height:28px;color:#486278;cursor:pointer}.qlt-more>div{position:absolute;right:0;top:32px;z-index:4;background:linear-gradient(145deg,#f6fbff,#eef1fc);border:1px solid #c7d9ee;border-radius:8px;box-shadow:0 8px 24px #244a7520;padding:10px;min-width:160px}.qlt-more a{white-space:nowrap;text-decoration:none}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table [data-document-row]{cursor:pointer}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table [data-document-row]:hover td{background:#eef5ff!important}
:root body .main .quotation-search-bar{display:flex;align-items:center;gap:10px;padding:5px 10px;margin:0 0 16px;border:1px solid #9abff4;border-left:3px solid #2857a4;border-radius:4px;background:linear-gradient(110deg,#d8e7fc,#f4f8ff);min-height:46px}
:root body .main .quotation-search-bar h2{font-size:14px;font-weight:400;margin:0;white-space:nowrap}
:root body .main .quotation-search-bar .toolbar{display:flex;flex:1;gap:10px;margin:0;min-width:0}
:root body .main .quotation-search-bar input{flex:1;min-width:100px;height:34px;min-height:34px;padding:4px 10px;background:#fff;border:1px solid #c9d9ee;border-radius:4px}
:root body .main .quotation-search-bar select{width:145px;height:34px;min-height:34px;padding:3px 10px;background:#fff;border:1px solid #c9d9ee;border-radius:4px}
:root body .main .quotation-search-bar [data-quotation-count]{white-space:nowrap;font-size:13px}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table thead{background:#cddff8}
:root body .main [data-quotation-results] #quotation-results-table.qlt-table th{color:#1e324b!important}
:root body .main .quotation-search-bar select[data-quotation-filter]{width:215px}

/* Requested Style 01 palette for the quotation list, without layout changes. */
:root body .main:has(a[href="#sales/quotation/new"]) .quotation-search-bar{background:linear-gradient(110deg,#198ee6,#393bad);border-color:#ffffff40;border-left-color:#198ee6}
:root body .main:has(a[href="#sales/quotation/new"]) .quotation-search-bar :is(h2,[data-quotation-count]){color:#fff!important;-webkit-text-fill-color:#fff!important}
:root body .main:has(a[href="#sales/quotation/new"]) [data-quotation-results] #quotation-results-table.qlt-table thead{background:linear-gradient(110deg,#198ee6,#393bad)}
:root body .main:has(a[href="#sales/quotation/new"]) [data-quotation-results] #quotation-results-table.qlt-table th{color:#fff!important}
:root body .main a.button.primary[href="#sales/quotation/new"]{background:linear-gradient(110deg,#248ee6,#3b45ad)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 4px 9px #2058bd33!important}

/* Balance the quotation list: quiet controls, prominent table and primary action. */
:root body .main:has(a[href="#sales/quotation/new"]) .quotation-search-bar{background:linear-gradient(145deg,#f6fbff,#eef1fc);border-color:#c7d9ee;border-left-color:#2857a4}
:root body .main:has(a[href="#sales/quotation/new"]) .quotation-search-bar :is(h2,[data-quotation-count]){color:#2857a4!important;-webkit-text-fill-color:#2857a4!important}
:root body .main:has(a[href="#sales/quotation/new"]) .card:has([data-quotation-results]){border-color:#c7d9ee;box-shadow:0 4px 14px #244a7508}
:root body .main:has(a[href="#sales/quotation/new"]) .quotation-search-bar :is(input,select){border-color:#c9d9ee;box-shadow:inset 0 1px 3px #345c7910}
:root body .main:has(a[href="#sales/quotation/new"]) .qlt-more summary{border-color:#c9d9ee;background:linear-gradient(145deg,#f6fbff,#eef1fc);color:#2857a4}

/* Match quotation search typography to the displayed table data. */
:root body .main:has(a[href="#sales/quotation/new"]) .quotation-search-bar input[data-quotation-search]{font-family:QuotationFlowNumber,sans-serif!important;font-size:15px!important;font-weight:400!important}

/* Use the table font throughout the quotation search toolbar. */
:root body .main:has(a[href="#sales/quotation/new"]) .quotation-search-bar,
:root body .main:has(a[href="#sales/quotation/new"]) .quotation-search-bar *{font-family:QuotationFlowNumber,sans-serif!important}

/* Quotation results use the service-report list presentation. */
:root body .main:has(a[href="#sales/quotation/new"]) .card:has([data-quotation-results]){background:#fff;border:1px solid #dfe6ef;border-radius:14px;padding:16px;box-shadow:0 3px 12px rgba(23,51,90,.01)}
:root body .main:has(a[href="#sales/quotation/new"]) .quotation-search-bar{background:linear-gradient(100deg,#d4e4fb,#edf4ff);border:1px solid #9abff4;border-left:3px solid #2857a4;border-radius:5px;box-shadow:none}
:root body .main:has(a[href="#sales/quotation/new"]) .quotation-search-bar :is(h2,[data-quotation-count]){color:#1e324b!important;-webkit-text-fill-color:#1e324b!important;text-shadow:none}
:root body .main:has(a[href="#sales/quotation/new"]) .quotation-search-bar :is(input,select){background:#fff;border:1px solid #cbd7e7;border-radius:5px;box-shadow:none}
:root body .main:has(a[href="#sales/quotation/new"]) [data-quotation-results]{background:#fff;border-radius:0}
:root body .main:has(a[href="#sales/quotation/new"]) [data-quotation-results] #quotation-results-table.qlt-table thead{background:#c9ddf9}
:root body .main:has(a[href="#sales/quotation/new"]) [data-quotation-results] #quotation-results-table.qlt-table th{background:#c9ddf9;color:#1e324b!important}
:root body .main:has(a[href="#sales/quotation/new"])>.quotation-page-controls{background:#f5f8fc;border:1px solid #dfe6ef;border-radius:10px;box-shadow:none}
:root body .main:has(a[href="#sales/quotation/new"]) [data-list-message]:empty{display:none}

/* Hidden summary rows must override the flex row layout. */
:root body .main #quote-preparation .qp-totals dl>div[hidden]{display:none!important}

/* Reveal the entire editable item row on hover or keyboard focus. */
:root body .main #quote-preparation.qp-flow-editor .qp-items tbody tr:is(:hover,:focus-within,:has(.qp-product-options:popover-open))>td{background:#f0f7ff}
:root body .main #quote-preparation.qp-flow-editor .qp-items tbody tr:is(:hover,:focus-within,:has(.qp-product-options:popover-open)) :is(input,select,textarea){background:#fff!important;border-color:#c4d9e0!important}
:root body .main #quote-preparation.qp-flow-editor .qp-items tbody tr:is(:hover,:focus-within,:has(.qp-product-options:popover-open)) :is(input,textarea)::placeholder{color:#aab2bd!important;-webkit-text-fill-color:#aab2bd!important}
:root body .main #quote-preparation.qp-flow-editor .qp-items tbody tr.qp-empty-item:not(:hover):not(:focus-within):not(:has(.qp-product-options:popover-open)) :is(input,select,textarea){opacity:0}

/* Row actions sit beside the active row, without a visible button box. */
:root body .main #quote-preparation.qp-flow-editor .qp-items [data-remove]{padding:0;min-height:24px;width:24px;background:transparent;border:0;color:#71849d}
:root body .main #quote-preparation.qp-flow-editor .qp-items .qp-move-row:active{cursor:grabbing}
:root body .main #quote-preparation.qp-flow-editor .qp-items tr:not(:hover):not(:focus-within):not(:has(.qp-product-options:popover-open)) :is([data-remove],.qp-move-row){pointer-events:none}

:root body .main #quote-preparation.qp-flow-editor .qp-flow-typography .qp-items tbody tr:is(:hover,:focus-within,:has(.qp-product-options:popover-open)) :is(input,textarea)::placeholder{color:#aab2bd!important;-webkit-text-fill-color:#aab2bd!important}

/* Soft inset edges for editable item fields, revealed with the row. */
:root body .main #quote-preparation.qp-flow-editor .qp-items tbody tr:is(:hover,:focus-within,:has(.qp-product-options:popover-open)) :is(input,select,textarea){border:1px solid #c5d2e2!important;border-radius:5px!important;background:#fff!important;box-shadow:inset 0 1px 3px rgba(37,64,96,.14),0 1px 0 rgba(255,255,255,.8)!important}
:root body .main #quote-preparation.qp-flow-editor .qp-items tbody tr :is(input,select,textarea):focus{border-color:#72a7dc!important;outline:0;box-shadow:inset 0 1px 3px rgba(37,64,96,.12),0 0 0 2px rgba(76,143,211,.14)!important}
/* Item entry: aligned fields and inset style 03. */
:root body .main #quote-preparation.qp-flow-editor .qp-items :is(th,td):first-child{width:56px;min-width:56px;text-align:center}
:root body .main #quote-preparation.qp-flow-editor .qp-items :is(th,td):nth-child(2){padding-left:14px;padding-right:14px}
:root body .main #quote-preparation.qp-flow-editor .qp-items :is(th,td):nth-child(4){width:84px;min-width:84px;padding-left:8px;padding-right:14px}
:root body .main #quote-preparation.qp-flow-editor .qp-items :is(th,td):nth-child(5){padding-left:10px}
:root body .main #quote-preparation.qp-flow-editor .qp-items .qp-product-picker{display:block!important;width:100%}
:root body .main #quote-preparation.qp-flow-editor .qp-items .qp-product-picker>input{width:100%;padding-right:32px!important}
:root body .main #quote-preparation.qp-flow-editor .qp-items .qp-product-picker>button{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:24px;height:24px;min-width:24px;padding:5px;display:grid;place-items:center;box-shadow:none!important}
:root body .main #quote-preparation.qp-flow-editor .qp-items .qp-product-picker>button svg{width:12px;height:8px}
:root body .main #quote-preparation.qp-flow-editor .qp-flow-typography .qp-items tbody tr:is(:hover,:focus-within,:has(.qp-product-options:popover-open)) :is(input,select,textarea){border:1px solid #bdcddd!important;border-radius:6px!important;background:#fff!important;box-shadow:inset 0 2px 4px #27496b20!important}
:root body .main #quote-preparation.qp-flow-editor [data-add].qp-flow-typography{background:linear-gradient(110deg,#248ee6,#3b45ad)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid transparent;border-radius:7px;box-shadow:0 4px 9px #2058bd33}
/* Join quantity/unit into one split field; equal price and discount widths. */
:root body .main #quote-preparation.qp-flow-editor .qp-items tbody td:nth-child(3){padding-right:0}
:root body .main #quote-preparation.qp-flow-editor .qp-items tbody td:nth-child(4){padding-left:0}
:root body .main #quote-preparation.qp-flow-editor .qp-flow-typography .qp-items tbody tr:is(:hover,:focus-within,:has(.qp-product-options:popover-open)) [data-item=quantity]{border-radius:6px 0 0 6px!important}
:root body .main #quote-preparation.qp-flow-editor .qp-flow-typography .qp-items tbody tr:is(:hover,:focus-within,:has(.qp-product-options:popover-open)) [data-item=unit]{border-radius:0 6px 6px 0!important;border-left-width:0!important}
:root body .main #quote-preparation.qp-flow-editor .qp-items :is(th,td):nth-child(5),:root body .main #quote-preparation.qp-flow-editor .qp-items :is(th,td):nth-child(6){width:120px;min-width:120px;box-sizing:border-box;padding-left:8px;padding-right:8px}
:root body .main #quote-preparation.qp-flow-editor .qp-items :is([data-item=price],[data-item=discount]){width:104px!important;max-width:104px}
/* Quotation handles stay reachable across row boundaries and throughout dragging. */
:root body .main #quote-preparation.qp-shared-drag-editor .qp-items .qp-move-row{left:-18px;top:10px;width:18px;height:34px;margin:0;display:grid;place-items:center;z-index:2;touch-action:none}
:root body .main #quote-preparation.qp-shared-drag-editor .qp-items tbody td:first-child{padding-left:8px}
:root body .main #quote-preparation.qp-shared-drag-editor .qp-items tbody tr:hover .qp-move-row,
:root body .main #quote-preparation.qp-shared-drag-editor.qp-row-dragging .qp-items .qp-drag-source .qp-move-row{opacity:1!important;pointer-events:auto!important}
:root body .main #quote-preparation.qp-shared-drag-editor .qp-move-row svg{width:14px;height:14px;pointer-events:none}
:root body .main #quote-preparation.qp-shared-drag-editor .qp-drag-source>td{background:#e6f1ff!important}

:root body .main #quote-preparation.qp-shared-drag-editor .qp-items tbody tr:not(:hover):not(.qp-drag-source) .qp-move-row{opacity:0!important;pointer-events:none!important}

/* Company field captions match the regular-weight contact captions. */
:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-top .qp-five-company label,
:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-top .qp-five-company label>span{font-weight:400!important}
:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-top .qp-five-company .qp-shipping-inline h3{font-weight:400!important}

/* Make the two required identity choices equally clear. */
:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-top .qp-customer-picker.qp-choice-empty>summary,

:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-top input[name="recipient"]::placeholder{color:#000!important;-webkit-text-fill-color:#000!important;font-weight:700!important;opacity:1}

:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-meta-fields:has([name=customer_technician]) [name=salesperson]{border-radius:0!important}
:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-meta-fields [name=customer_technician]{border-radius:0 0 4px 4px!important}

/* Match the salesperson text inset to adjacent text inputs. */
:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-meta-fields select[name=salesperson]{appearance:none;-webkit-appearance:none;padding-left:10px!important;padding-right:30px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 10px center!important}


:root body .main #quote-preparation .qp-product-options.customer-picker-menu .customer-picker-options button{display:grid;grid-template-columns:minmax(0,1fr) 60px;gap:4px}
:root body .main #quote-preparation .qp-product-options.customer-picker-menu .customer-picker-search{padding:8px;flex-shrink:0}
:root body .main #quote-preparation .qp-product-options.customer-picker-menu .customer-picker-footer{padding:8px;border-top:1px solid #ccdced;flex-shrink:0}
:root body .main #quote-preparation .qp-product-picker input[readonly]{cursor:pointer;background:#fff}

/* Product search is a menu control, separate from the editable line fields. */
:root body .main #quote-preparation#quote-preparation .qp-product-options.customer-picker-menu:popover-open {
 border-radius:8px!important;
 overflow:hidden;
}
:root body .main #quote-preparation#quote-preparation .qp-product-options .customer-picker-search {
 padding:9px;
}
:root body .main #quote-preparation#quote-preparation .qp-product-options .customer-picker-search input {
 opacity:1!important;
 width:100%;
 height:40px;
 min-height:40px;
 padding:8px 10px!important;
 background:#f7faff!important;
 border:1px solid #c9d9ee!important;
 border-radius:8px!important;
 box-shadow:inset 0 1px 3px #345c7910!important;
 font:400 15px/22px Tahoma,sans-serif!important;
 color:#182b43!important;
}
:root body .main #quote-preparation#quote-preparation .qp-product-options .customer-picker-search input:focus {
 border-color:#6c9ee9!important;
 outline:2px solid #6c9ee9;
 outline-offset:3px;
}
:root body .main #quote-preparation#quote-preparation .qp-product-options .customer-picker-search input::placeholder {
 color:#8a98ab!important;
 -webkit-text-fill-color:#8a98ab!important;
 opacity:1!important;
}
:root body .main #quote-preparation#quote-preparation .qp-product-options .customer-picker-footer {
 padding:9px;
}
:root body .main #quote-preparation#quote-preparation .qp-product-options .customer-picker-add {
 display:block;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
 font-weight:700!important;
 text-align:center;
}

:root body .main #quote-preparation .qp-product-options.customer-picker-menu .customer-picker-options button.qp-product-with-photo{grid-template-columns:48px minmax(0,1fr) 60px;column-gap:10px;align-items:center}
.qp-product-with-photo .qp-product-cover{grid-column:1;grid-row:1 / 3;width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:5px;background:#f0f4f9;color:#8296ae;overflow:hidden}
.qp-product-with-photo .qp-product-cover img{display:block;width:100%;height:100%;object-fit:contain}
.qp-product-with-photo>span:not(.qp-product-cover):not(.qp-product-unit){grid-column:2;grid-row:1}
.qp-product-with-photo>.qp-product-unit{grid-column:3;grid-row:1 / 3}
:root body .main #quote-preparation .qp-product-options button.qp-product-with-photo>small{grid-column:2;grid-row:2}

:root body .main #quote-preparation .qp-product-options button.qp-product-with-photo .qp-product-cover{display:flex;align-items:center;justify-content:center;color:#929ba6}
:root body .main #quote-preparation .qp-product-options button.qp-product-with-photo .qp-product-cover svg{display:block;position:static;width:44px;height:44px;min-width:44px;margin:0;flex:none;color:#929ba6;stroke:#929ba6;fill:none}


.qp-product-preview-trigger,.qp-product-preview-trigger img{cursor:zoom-in}
/* Keep stock figures aligned beside the unit in quotation product results. */
:root body .main #quote-preparation .qp-product-options.customer-picker-menu .customer-picker-options button.qp-product-with-photo{grid-template-columns:48px minmax(0,1fr) 138px 50px}
:root body .main #quote-preparation .qp-product-with-photo>.qp-product-stock{grid-column:3;grid-row:1 / 3;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;font:400 12px/22px Tahoma,sans-serif;color:#788493}
:root body .main #quote-preparation .qp-product-with-photo>.qp-product-unit{grid-column:4;grid-row:1 / 3}
:root body .main #quote-preparation .qp-product-stock .qp-product-stock-negative{color:#d9363e!important}
/* Fixed desktop layout; original media: (max-width:540px) */ @media (max-width:0px){:root body .main #quote-preparation .qp-product-options.customer-picker-menu .customer-picker-options button.qp-product-with-photo{grid-template-columns:48px minmax(0,1fr) 94px 35px;column-gap:6px}}
:root body .main #quote-preparation .qp-product-with-photo>.qp-product-stock{width:100%;grid-template-columns:64px minmax(0,1fr);column-gap:10px}
:root body .main #quote-preparation .qp-product-stock>span:first-child{text-align:left;white-space:nowrap}
:root body .main #quote-preparation .qp-product-stock>span:last-child{display:block;text-align:center;min-width:0;font-variant-numeric:tabular-nums}
/* Fixed desktop layout; original media: (max-width:540px) */ @media (max-width:0px){:root body .main #quote-preparation .qp-product-with-photo>.qp-product-stock{grid-template-columns:50px minmax(0,1fr);column-gap:4px}}
/* Stock label and quantity share one row, aligned with the unit. */
:root body .main #quote-preparation .qp-product-options button.qp-product-with-photo>.qp-product-stock{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:10px;align-self:center;white-space:nowrap}
:root body .main #quote-preparation .qp-product-options .qp-product-stock>span{display:block;float:none;margin:0;line-height:22px;font-size:12px;white-space:nowrap}
:root body .main #quote-preparation .qp-product-options .qp-product-stock>span:first-child{flex:0 0 64px}
:root body .main #quote-preparation .qp-product-options .qp-product-stock>span:last-child{flex:1 1 0;text-align:center}
:root body .main #quote-preparation .qp-product-options button.qp-product-with-photo>.qp-product-unit{align-self:center;line-height:22px;margin:0}
/* Fixed desktop layout; original media: (max-width:540px) */ @media (max-width:0px){:root body .main #quote-preparation .qp-product-options .qp-product-stock>span:first-child{flex-basis:50px}:root body .main #quote-preparation .qp-product-options button.qp-product-with-photo>.qp-product-stock{gap:4px}}

.qp-machine-picker{margin:8px 0;position:relative}.qp-machine-label{display:block;font:12px Tahoma,sans-serif;color:#64748b;margin-bottom:4px}.qp-machine-trigger{width:100%;text-align:left!important;white-space:normal!important;height:auto!important;min-height:34px;background:#fff!important;border:1px solid #cbdff3!important;border-radius:6px;padding:6px 10px!important;font:13px/20px Tahoma,sans-serif!important;color:#334155!important}.qp-machine-picker .customer-picker-options button{white-space:normal;text-align:left;overflow-wrap:anywhere}.qp-machine-picker .customer-picker-options p{padding:10px 12px}

:root body #quote-preparation .qp-machine-picker .qp-machine-trigger{display:block!important;text-align:left!important;justify-content:flex-start!important;font:13px/20px Tahoma,sans-serif!important} :root body #quote-preparation .qp-machine-label{text-align:left!important;font:12px/18px Tahoma,sans-serif!important;color:#64748b!important}

:root body #quote-preparation .qp-quotation-machine{margin:0 0 14px;padding:10px 12px;border:1px solid #cbdff3;border-radius:8px;background:#f7fbff;text-align:left}
:root body #quote-preparation .qp-machine-enable{display:flex!important;align-items:center;justify-content:flex-start;gap:8px;margin:0!important;font:14px/22px Tahoma,sans-serif!important}
:root body #quote-preparation .qp-machine-enable input{width:16px!important;height:16px!important;min-height:0!important;margin:0!important;flex:none}
:root body #quote-preparation .qp-machine-fields[hidden]{display:none!important}

:root body #quote-preparation .qp-top>.qp-quotation-machine{position:absolute;box-sizing:border-box;max-width:100%;margin:0;z-index:2}

/* Delivery choice lives inside the original address rectangle; it never adds a row. */
:root body .main #quote-preparation .qp-contact-shipping-frame{position:relative;margin:0}
:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-identity-design-one .qp-contact-shipping-frame.has-shipping-choice textarea{padding-top:36px!important}
:root body .main #quote-preparation .qp-contact-shipping-picker{position:absolute;top:1px;left:1px;right:1px;margin:0;padding:0;border:0;background:transparent}
:root body .main #quote-preparation .qp-contact-shipping-picker[hidden]{display:none}
:root body .main #quote-preparation .qp-contact-shipping-picker>summary{box-sizing:border-box;height:30px;margin:0;padding:5px 24px 4px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;list-style:none;border:0;border-bottom:1px solid #dbeafe;border-radius:6px 6px 0 0;background:#eef6ff;color:#243b5a;font:12px/20px Tahoma,sans-serif;cursor:pointer}
:root body .main #quote-preparation .qp-contact-shipping-picker>summary::after{content:'▾';position:absolute;right:8px;top:4px}

:root body .main #quote-preparation .qp-shipping-choice-error{position:absolute;left:9px;right:9px;top:36px;color:#b42318;font:12px/18px Tahoma,sans-serif;white-space:normal}
:root body .main #quote-preparation .qp-shipping-choice-error[hidden]{display:none}
:root body .main #quote-preparation#quote-preparation .shipping-choice-invalid textarea{border-color:#d92d20!important}
:root body .main #quote-preparation .shipping-choice-invalid .qp-contact-shipping-picker>summary{color:#b42318;background:#fff1f0}
:root body .main #quote-preparation .shipping-choice-invalid textarea::placeholder{color:transparent}

:root body .main #quote-preparation .qp-invalid-field{outline:2px solid #d92d20!important;outline-offset:1px}

:root body .main #quote-preparation#quote-preparation.qp-flow-editor .qp-top .shipping-choice-invalid textarea::placeholder{color:transparent!important;-webkit-text-fill-color:transparent!important;opacity:0!important}
.qp-validation-bubble:popover-open{display:block;box-sizing:border-box;width:320px;padding:10px 12px;border:1px solid #f2a59e;border-radius:8px;background:#fff3f1;color:#b42318;box-shadow:0 5px 18px #34111120;font:14px/22px Tahoma,sans-serif;overflow-wrap:anywhere}
