/* Compact quotation journey. Native document scrolling keeps keyboard focus usable. */
.pw-editor{max-width:820px!important;margin-inline:auto!important;border:1px solid #dae3e7!important;border-radius:20px!important;background:#fbfdfe!important;box-shadow:0 10px 36px #112b4310!important;overflow:visible!important}
.pw-editor .panel-head{padding:16px 22px 4px!important;border:0!important;background:transparent!important}.pw-editor .panel-head>div{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.pw-editor .panel-head h2{font-size:20px!important;margin:0!important}.pw-editor [data-price-offer-form]{padding:0 22px 18px!important}.pw-editor [hidden]{display:none!important}
.pw-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:18px 0 14px;scroll-margin-top:80px}.pw-progress button{position:relative;display:grid;justify-items:center;gap:7px;border:0;background:transparent;color:#677889;font:inherit;font-size:12px;cursor:pointer;min-height:56px}.pw-progress i{display:grid;place-items:center;font-style:normal;width:28px;height:28px;border:1px solid #d3dce3;border-radius:50%;background:#fff;color:#586d7d;z-index:1}.pw-progress button:not(:last-child):after{content:'';position:absolute;top:14px;left:65%;width:70%;height:1px;background:#d8e3e7}.pw-progress .active{color:#956b26;font-weight:700}.pw-progress .active i{background:#ad8139;border-color:#ad8139;color:#fff}.pw-heading{font-size:23px!important;color:#10253d;margin:8px 0 18px!important}.pw-pane{display:grid;gap:14px}.pw-pane>label,.pw-pane>.span-2{grid-column:1/-1}.pw-pane label{font-size:13px;font-weight:600;color:#263e50;display:grid;gap:6px}.pw-pane input,.pw-pane select,.pw-pane textarea{width:100%;min-width:0;max-width:100%;min-height:44px;border:1px solid #d9e1e7!important;border-radius:9px!important;background:#fff!important;padding:10px 12px!important;font:inherit!important;font-size:16px!important;color:#192f42!important;box-sizing:border-box}.pw-pane input[type=checkbox]{width:18px;min-height:18px}.pw-pane small{font-size:12px;color:#697d8d;font-weight:400}.pw-currency{display:flex;justify-content:flex-end}.pw-currency label{width:130px}.pw-editor .offer-line-wrap{overflow:visible!important;border:0!important;margin:0!important}.pw-editor .offer-line-table,.pw-editor .offer-line-table tbody{display:block!important;width:100%!important;min-width:0!important}.pw-editor .offer-line-table thead{display:none!important}.pw-editor tr[data-offer-line]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;border:1px solid #dce4e9!important;border-radius:14px!important;padding:16px!important;margin:0 0 14px!important;background:white!important;min-width:0!important}.pw-editor tr[data-offer-line] td{display:block!important;border:0!important;padding:0!important;min-width:0!important;background:transparent!important}.pw-editor td[data-label]:before{content:attr(data-label);display:block;font-size:12px;font-weight:600;color:#31485a;margin-bottom:6px}.pw-editor td[data-label=Product]{grid-column:1/-1}.pw-editor td[data-label=Product]:before{content:'Item'}.pw-editor .pw-summary,.pw-editor .pw-extras,.pw-editor .pw-item-end{grid-column:1/-1}.pw-summary{display:none!important}.pw-editor tr:not(.pw-collapsed) .pw-summary{display:none!important}.pw-editor tr.pw-collapsed>td:not(.pw-summary){display:none!important}.pw-editor tr.pw-collapsed .pw-summary{display:grid!important;grid-template-columns:1fr auto;gap:12px}.pw-summary [data-pw-summary],.pw-review-item>div{display:grid;gap:5px}.pw-summary b,.pw-review-item b{color:#916723}.pw-item-actions{display:flex;gap:8px;align-items:center}.pw-item-actions button,.pw-review-card header button{border:0;background:transparent;color:#176879;cursor:pointer;min-height:40px;font:inherit;font-size:13px}.pw-item-actions button:last-child{color:#9a4141}.pw-editor .pw-item-end{display:flex!important;align-items:center;justify-content:space-between;gap:12px;background:#fcf7ed!important;padding:10px 12px!important;border-radius:9px}.pw-item-end span{display:grid;gap:4px;font-size:12px;color:#896229}.pw-item-end b{font-size:17px}.pw-extras details,.pw-optional,.offer-optional{border:1px solid #e1e7eb;border-radius:10px;padding:12px!important;background:#f7fafb}.pw-extras details details{border:0;padding:8px 0!important}.pw-pane summary{cursor:pointer;font-size:13px;color:#294657;min-height:24px;line-height:24px}.pw-extra-grid,.pw-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.pw-extra-field{grid-column:1/-1}.pw-extra-field img{max-height:130px;max-width:100%;object-fit:contain}.pw-pane [data-pw-add]{width:100%;background:white!important;color:#176879!important;border:1px solid #438492!important}.pw-total{background:#fcf7ed;border:1px solid #eee5d4;border-radius:10px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#805d26}.pw-total strong{font-size:21px}.pw-breakdown{background:#f0f6f8;border-radius:12px;padding:16px;display:grid;gap:14px}.pw-breakdown>div,.pw-review-card>div{display:flex;justify-content:space-between;gap:12px;font-size:14px}.pw-review-card{border:1px solid #dce5e9;border-radius:13px;padding:16px;background:white;margin-bottom:14px}.pw-review-card header{display:flex;align-items:center;justify-content:space-between;gap:12px}.pw-review-card h3{font-size:15px;margin:0!important}.pw-review-item{display:flex;gap:12px;margin-top:12px;padding-top:10px;border-top:1px solid #eef1f3}.pw-review-item img,.pw-placeholder{width:64px;height:64px;object-fit:contain;border-radius:10px;background:#f0f5f7;flex-shrink:0}.pw-placeholder{display:grid;place-items:center;color:#748c99;font-size:30px}.pw-review-item strong{font-size:15px}.pw-review-item small,.pw-review-item span{font-size:12px}.pw-review-card dl{margin:10px 0 0}.pw-review-card dl>div{display:flex;justify-content:space-between;gap:18px;margin-top:9px;font-size:13px}.pw-review-card dt{color:#6b7c87;text-transform:capitalize}.pw-review-card dd{margin:0;text-align:right;overflow-wrap:anywhere;max-width:65%}.pw-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:24px;padding-top:12px;border-top:1px solid #e7edef;position:relative!important;background:#fbfdfe}.pw-actions .btn{width:100%;min-height:46px;justify-content:center}.pw-actions [data-pw-next]{background:#14697a!important;color:#fff!important;border-color:#14697a!important}.pw-save{grid-column:1/-1;border:0;background:transparent;color:#426777;font:inherit;font-size:13px;padding:10px;cursor:pointer}.pw-error{display:block!important;color:#a12d3a!important;font-size:13px!important;margin:6px 0}.pw-editor [aria-invalid=true]{border-color:#b74b55!important}.pw-editor [data-price-offer-status]{padding:10px 0!important;font-size:13px}.pw-editor button:focus-visible{outline:3px solid #c6a35e;outline-offset:3px}.pw-editor .offer-validity-choice{display:flex;align-items:center;gap:8px}.pw-editor .pw-unit{display:block;margin-top:5px}.pw-editor [data-offer-count-weight]{margin-top:8px}.pw-editor .offer-inherited-origin{border:0}.pw-editor .pw-pane input,.pw-editor .pw-pane select{scroll-margin-top:100px}
@media(max-width:600px){.pw-editor{border-radius:15px!important;margin:0!important}.pw-editor [data-price-offer-form]{padding:0 14px 14px!important}.pw-editor .panel-head{padding:12px 14px 0!important}.pw-editor .panel-head h2{font-size:17px!important}.pw-editor .panel-head .btn{font-size:12px;padding:8px 10px;min-height:38px}.pw-heading{font-size:21px!important}.pw-editor tr[data-offer-line]{padding:12px!important;gap:10px!important}.pw-editor tr.pw-collapsed .pw-summary{grid-template-columns:1fr!important}.pw-item-actions{justify-content:flex-end}.pw-extra-grid,.pw-grid{grid-template-columns:1fr}.pw-review-card{padding:12px}.pw-review-item img,.pw-placeholder{width:48px;height:48px}.pw-actions{margin-top:18px}.pw-progress{padding-top:14px}.pw-editor .offer-line-table td input,.pw-editor .offer-line-table td select{font-size:16px!important}}
[data-screen="price-offers"].pw-ledger-open .offer-shell>.hero,[data-screen="price-offers"].pw-ledger-open .offer-grid>.panel:has([data-price-offer-list]){display:block!important}.pw-ledger{border:0;background:transparent;color:#176879;font:inherit;font-size:12px;margin-left:auto;min-height:40px;cursor:pointer}
.pw-editor .panel-head [data-close-price-offer-editor]{display:none!important}
.pw-progress .completed i{background:#1d7785;color:white;border-color:#1d7785}
.pw-editor .pw-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.pw-editor .pw-currency label{font-size:11px;width:90px;gap:4px}.pw-editor .pw-currency select{min-height:38px;padding:7px!important;font-size:14px!important;border:1px solid #d9e1e7;border-radius:8px;background:white}.pw-editor .offer-line-table tr[data-offer-line]>td[data-label]{grid-column:auto!important}.pw-editor .offer-line-table tr[data-offer-line]>td[data-label=Product]{grid-column:1/-1!important}.pw-editor .offer-line-table tr[data-offer-line]>.pw-item-end{display:flex!important;flex-direction:row!important}.pw-editor .offer-line-table tr[data-offer-line]>.pw-extras{order:2}.pw-editor .offer-line-table tr.pw-collapsed>.pw-item-end{display:none!important}.pw-editor .offer-line-table tr[data-offer-line]{margin-bottom:0!important}.pw-editor .offer-line-table tbody{display:grid!important;gap:12px}.pw-editor .pw-item-end .btn{padding:8px 14px;min-height:38px}.pw-editor .pw-progress{padding-bottom:6px}.pw-editor .pw-heading{margin-bottom:12px!important}.pw-editor .pw-actions{margin-top:14px}

.pw-editor{scroll-margin-top:76px}

.pw-editor .vn-item td.vn-field{display:block}.pw-editor .offer-line-table tr.vn-item>td[data-label="Complete description"],.pw-editor .offer-line-table tr.vn-item>td[data-label="Glazing"],.pw-editor .offer-line-table tr.vn-item>td[data-label="Packing"],.pw-editor .offer-line-table tr.vn-item>td[data-label="Origin"]{grid-column:1/-1!important}.pw-editor .vn-item textarea{min-height:110px;resize:vertical}.pw-editor .vn-item input[readonly],.pw-editor .vn-item textarea[readonly]{background:#f3f8fa}.vn-reuse{padding:12px;border:1px solid #d9cba9;border-radius:12px;margin-bottom:12px}.vn-reuse p{font-size:13px;margin:8px 0 0}.vn-reused [name=quantity],.vn-reused [name=unit_price],.vn-reused [name=loading_port],.vn-reused [name=destination_terms],.vn-reused [data-offer-choice=payment_terms]{border-color:#b99a53!important}.vn-confirm{display:flex!important;gap:10px;align-items:start;padding:12px 0}.vn-confirm input{width:20px!important;height:20px;flex:0 0 20px}.vn-review-spec{font-size:12px}.vn-review-spec dd{overflow-wrap:anywhere}.vn-custom-glaze{margin-top:10px}
/* Progressive item details: one aligned column, compact reuse control. */
.pw-editor .vn-reuse{border:0;background:transparent;padding:4px 0;margin:2px 0 0}.pw-editor .vn-reuse-tick{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:500;color:#365764;cursor:pointer;min-height:32px;width:fit-content}.pw-editor .vn-reuse-tick input{appearance:auto;width:16px!important;height:16px!important;min-height:16px!important;accent-color:#176b79;margin:0;flex:0 0 16px}.pw-editor .vn-reuse select{width:100%;margin-top:5px;min-height:40px;border:1px solid #dce4e9;border-radius:9px;background:white;padding:8px;font-size:13px}.pw-editor .vn-reuse p:empty{display:none}.pw-editor .vn-reuse p{font-size:12px;color:#627784;line-height:1.4;margin:5px 0}.pw-editor .offer-line-table tr.vn-item{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}.pw-editor .offer-line-table tr.vn-item>td[data-label]{grid-column:1/-1!important}.pw-editor .offer-line-table tr.vn-item>td[hidden]{display:none!important}.pw-editor .vn-item textarea{min-height:104px;line-height:1.5!important}.pw-editor .vn-item input,.pw-editor .vn-item select{min-height:42px!important}.pw-editor .vn-item [data-vn-fixed-unit]{display:none!important}.pw-editor .vn-item .pw-unit{display:none}.pw-editor .vn-unit-note{display:block;color:#916723;margin-top:5px}.pw-editor .vn-item td[data-label="Price per kg"] input{padding-right:48px!important}

.pw-editor .vn-packing-text{font-size:14px;line-height:1.5;padding:10px 12px;background:#faf7ef;border:1px solid #cdbb94;color:#172e46;border-radius:9px;overflow-wrap:anywhere}.pw-editor .vn-item input[type=hidden]{display:none!important}
.pw-editor .pw-pane input.pw-field-complete,.pw-editor .pw-pane select.pw-field-complete,.pw-editor .pw-pane textarea.pw-field-complete{background-color:#faf7ef!important;border-color:#cdbb94!important;color:#172e46!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath d='m4 10 4 4 8-9' fill='none' stroke='%238b713d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;padding-right:36px!important}.pw-editor .pw-pane select.pw-field-complete{background-position:right 30px center!important;padding-right:52px!important}.pw-editor .pw-pane textarea.pw-field-complete{background-position:right 12px top 12px!important}.pw-editor .pw-pane input:focus,.pw-editor .pw-pane select:focus,.pw-editor .pw-pane textarea:focus{border-color:#79aecd!important;outline:2px solid #dcecf6!important;outline-offset:1px;box-shadow:0 0 0 3px #eaf4fa!important}.pw-editor .pw-pane [aria-invalid=true]{background-color:#fff7f7!important;border-color:#c98089!important;background-image:none!important}.pw-editor .pw-pane input,.pw-editor .pw-pane select,.pw-editor .pw-pane textarea{transition:background-color .15s,border-color .15s,box-shadow .15s}.pw-field-check{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.pw-field-check[hidden]{display:none!important}@media(prefers-reduced-motion:reduce){.pw-editor *{transition:none!important;scroll-behavior:auto!important}}

.pw-editor .vn-packing-text{position:relative;padding-right:36px}.pw-editor .vn-packing-text::after{content:"✓";position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#8b713d;font-weight:600}

/* Keep quotation stages visible while suppliers add, edit and collapse items. */
.pw-editor .pw-progress{position:sticky!important;top:var(--pw-header-offset,62px)!important;z-index:60;background:#fbfdfe;box-shadow:0 1px 0 #dbe5eb;padding-top:8px!important;padding-bottom:8px!important}
.pw-editor [data-offer-line],.pw-editor [data-offer-line]>td,.pw-editor .pw-pane input,.pw-editor .pw-pane textarea,.pw-editor .pw-select-trigger{scroll-margin-top:var(--pw-scroll-offset,158px)!important}
@media print{.pw-editor .pw-progress{position:static!important;box-shadow:none}}
/* The viewport owns scrolling; a non-scrolling body overflow container breaks sticky. */
body:has([data-screen="price-offers"]:not(.hidden) .pw-editor:not(.hidden)){overflow-x:clip!important;overflow-y:visible!important}
