.customer-offers{margin:0 0 26px;min-width:0}.offer-section-head,.offer-summary>header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px}.customer-offers h3{font-size:22px;letter-spacing:-.035em;margin:0 0 5px}.customer-offers p{font-size:15px;line-height:1.5;color:#6b6d75;margin:0}.offer-toolbar,.offer-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.offer-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 15px;border:1px solid #e2e4e9;border-radius:11px;background:#fff;font:500 14px var(--font);color:#26282d;text-decoration:none;cursor:pointer}.offer-button.primary{background:#f58b00;border-color:#f58b00;color:#1d1d1f}.offer-button:disabled{opacity:.45;cursor:default}.offer-button:focus-visible,.offer-customer-tab:focus-visible{outline:3px solid #3869ad;outline-offset:3px}.offer-customer-strip{display:flex;gap:10px;overflow-x:auto;padding:3px 3px 14px;align-items:stretch;scroll-snap-type:x proximity}.offer-customer-strip>.offer-button{min-width:165px;background:#f2f3f6}.offer-customer-tab{flex:0 0 230px;max-width:280px;scroll-snap-align:start;text-align:left;padding:16px 18px;border:1px solid #e1e3e8;border-radius:13px;background:#fff;cursor:pointer;font:14px var(--font);color:#202126}.offer-customer-tab strong,.offer-customer-tab span,.offer-customer-tab small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.offer-customer-tab strong{font-size:16px;margin-bottom:5px}.offer-customer-tab small{color:#737681;margin-top:8px;font-size:12px}.offer-customer-strip [aria-pressed=true]{border-color:#af6b15;background:#fff8ed}.offer-status:empty{display:none}.offer-status{padding-bottom:12px}.offer-editor,.offer-summary{background:#fff;border:1px solid #e1e3e8;border-radius:20px;padding:28px;margin-top:14px;min-width:0}.offer-editor>header{margin-bottom:24px}.offer-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}.offer-editor label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:500;min-width:0}.offer-editor input,.offer-editor textarea{box-sizing:border-box;width:100%;border:1px solid #dfe1e7;border-radius:10px;padding:12px;font:400 16px var(--font);background:#fafafb;color:#202126;min-height:46px}.offer-editor textarea{resize:vertical}.offer-price-head{display:flex;gap:14px;align-items:center;justify-content:space-between;margin:28px 0 12px}.offer-price-head h4,.offer-share h4{margin:0;font-size:16px}.offer-price-list>label{display:grid;grid-template-columns:minmax(0,1fr) 165px;align-items:center;gap:20px;padding:15px 0;border-top:1px solid #eeeef2}.offer-price-list b{font-size:16px}.offer-price-list small{display:block;color:#767985;font-size:12px;font-weight:400;margin-top:5px}.customer-offers .offer-hint{font-size:13px;margin:16px 0 20px;line-height:1.6}.offer-kicker{font-size:12px;color:#737681}.offer-summary>header h3{font-size:27px;margin-top:5px}.offer-summary .offer-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:22px;gap:14px}.offer-summary .basket-item{border:1px solid #e7e8ed;border-radius:15px;padding:22px}.customer-offers .offer-notes{white-space:pre-wrap;color:#33363d;padding-top:22px}.offer-share{background:#f5f6f8;border-radius:14px;padding:20px;margin-top:22px}.offer-share p{margin:10px 0 16px}.offer-summary .offer-actions{max-width:580px}.offer-editor>.offer-actions{justify-content:flex-end;margin-top:20px}
@media(max-width:700px){.offer-section-head,.offer-summary>header{align-items:flex-start;flex-direction:column;gap:14px}.offer-section-head{margin-bottom:14px}.offer-toolbar{width:100%}.offer-toolbar .offer-button:last-child{flex:1}.offer-customer-tab{flex-basis:205px}.offer-customer-strip>.offer-button{min-width:135px;font-size:13px}.offer-editor,.offer-summary{padding:20px 16px;border-radius:16px}.offer-form-grid{grid-template-columns:1fr;gap:16px}.offer-price-head{align-items:flex-start;flex-direction:column}.offer-price-list>label{grid-template-columns:1fr;gap:12px}.offer-price-list input{width:100%;max-width:220px}.offer-summary .offer-products{grid-template-columns:1fr}.offer-summary .basket-item{padding:18px 14px}.offer-summary .offer-actions{width:100%}.offer-actions .offer-button{flex:1 1 auto}.offer-summary>header h3{font-size:24px}.customer-offers h3{font-size:21px}}

.offer-summary,.offer-editor{overflow-wrap:anywhere}

.offer-services{border:1px solid #e2e3e9;border-radius:14px;padding:18px;margin:20px 0;background:#fafafb}.offer-services summary{font-weight:650;cursor:pointer}.offer-services p,.offer-services small{font-size:13px;color:#676b73;line-height:1.5}.offer-services .offer-service-total{color:#202124;font-weight:650}

/* Saved-offer input: scoped, keyboard-visible controls. */
.offer-input-dialog{width:min(780px,calc(100vw - 32px));max-height:90vh;overflow:auto;border:1px solid #e5e7eb;border-radius:16px;padding:24px;color:#202124}
.offer-input-dialog::backdrop{background:#1118}
.offer-input-dialog button{padding:10px 14px;margin:4px;border:1px solid #ddd;border-radius:9px;background:#fff;color:#202124;cursor:pointer}
.offer-input-dialog button:focus-visible,.offer-input-dialog textarea:focus-visible{outline:3px solid #d97706;outline-offset:2px}
.offer-input-dialog button:disabled{opacity:.45;cursor:default}
.offer-input-dialog textarea{display:block;box-sizing:border-box;width:100%;min-height:80px;border:1px solid #ccc;border-radius:9px;padding:12px;font:inherit}
.offer-input-dialog section section{background:#f7f8fa;padding:12px;border-radius:9px;margin-top:12px}
.offer-input-dialog section section p{margin:6px 0}
.offer-input-dialog button.primary{background:#f59a00;border-color:#f59a00;color:#171717;font-weight:600}

/* Offer filter and order state: scoped to the offers component. */
.customer-offers [hidden]{display:none!important}
.offer-filter{display:flex;flex-direction:column;gap:8px;margin:0 0 12px}
.offer-filter>label{font-size:14px;font-weight:500;color:#26282d}
.offer-filter>div{display:flex;gap:9px;flex-wrap:wrap}
.offer-filter input{flex:1 1 220px;min-width:0;box-sizing:border-box;min-height:44px;border:1px solid #dfe1e7;border-radius:10px;padding:10px 12px;font:400 16px var(--font);background:#fff;color:#202126}
.offer-filter input:focus-visible{outline:3px solid #3869ad;outline-offset:2px}
.customer-offers .offer-filter-status{font-size:13px}.customer-offers .offer-filter-status:empty{display:none}
.offer-customer-tab small+small{margin-top:2px}
.customer-offers .offer-order-state{margin:0 0 16px;padding:12px 14px;border:1px solid #f3d3a6;border-radius:12px;background:#fff8ed;font-size:14px;color:#33363d}
@media(max-width:700px){.offer-filter>div .offer-button{flex:1 1 auto}}
dialog.field-customer-dialog::backdrop{background:#f5f6f8;opacity:1}

/* Offer overview only. Existing editor, PDF and customer-view styles remain. */
.customer-offers.offer-list-workspace>.offer-section-head{align-items:center;gap:20px;margin-bottom:24px}
.customer-offers.offer-list-workspace>.offer-section-head>div:first-child{min-width:0;flex:1}
.customer-offers.offer-list-workspace>.offer-section-head p{font-size:14px;max-width:45ch;color:#616773}
.customer-offers.offer-list-workspace>.offer-section-head h3{font-size:26px;line-height:1.2;margin-bottom:8px}
.customer-offers.offer-list-workspace>.offer-section-head .offer-toolbar{justify-content:flex-end;flex-shrink:0}
.customer-offers.offer-list-workspace>.offer-section-head .offer-button{box-sizing:border-box;min-height:46px;padding:11px 17px}
.customer-offers.offer-list-workspace>.offer-section-head .primary{font-weight:650;background:#f58b00;border-color:#f58b00;box-shadow:0 2px 5px #c76f0014}
.customer-offers.offer-list-workspace>.offer-filter{margin-bottom:20px;max-width:520px}
.customer-offers.offer-list-workspace>.offer-filter>label{font-size:13px;color:#616773}
.customer-offers.offer-list-workspace>.offer-filter input{background:#fff;border-radius:12px;min-height:46px}
.customer-offers.offer-list-workspace>.offer-customer-list{display:grid;gap:0;overflow:visible;padding:0;border:1px solid #e2e5eb;border-radius:16px;background:#fff;scroll-snap-type:none}
.customer-offers.offer-list-workspace>.offer-customer-list:empty{display:none}
.customer-offers.offer-list-workspace .offer-list-row{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,.42fr) minmax(120px,.3fr) 72px;align-items:center;gap:24px;flex:none;min-width:0;max-width:none;width:100%;padding:22px 24px;border:0;border-bottom:1px solid #e8ebef;border-radius:0;background:transparent;color:#202126;scroll-snap-align:none;font:400 14px/1.5 var(--font);text-align:left}
.customer-offers.offer-list-workspace .offer-list-row:first-child{border-radius:16px 16px 0 0}
.customer-offers.offer-list-workspace .offer-list-row:last-child{border-bottom:0;border-radius:0 0 16px 16px}
.customer-offers.offer-list-workspace .offer-list-row:only-child{border-radius:16px}
.customer-offers.offer-list-workspace .offer-list-row:hover{background:#f8f9fb}
.customer-offers.offer-list-workspace .offer-list-row[aria-pressed=true]{background:#fff8ed;box-shadow:inset 3px 0 #d77700}
.customer-offers.offer-list-workspace .offer-list-row span,.customer-offers.offer-list-workspace .offer-list-row strong{min-width:0;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}
.customer-offers.offer-list-workspace .offer-row-identity strong{font-size:16px;line-height:1.4;font-weight:650;margin:0 0 5px}
.customer-offers.offer-list-workspace .offer-row-project{font-size:14px;line-height:1.5;color:#616773}
.customer-offers.offer-list-workspace .offer-row-meta{font-size:13px;color:#616773;line-height:1.65}
.customer-offers.offer-list-workspace .offer-row-total{font-size:17px;font-weight:650;text-align:right;font-variant-numeric:tabular-nums;line-height:1.4}
.customer-offers.offer-list-workspace .offer-row-open{font-size:14px;font-weight:550;color:#70470b;text-align:right}
.customer-offers.offer-list-workspace .offer-row-open>span{display:inline}
.customer-offers.offer-list-workspace>.offer-status{margin-top:14px}
@media(max-width:1000px){.customer-offers.offer-list-workspace>.offer-section-head{align-items:flex-start;flex-wrap:wrap}.customer-offers.offer-list-workspace>.offer-section-head .offer-toolbar{flex-shrink:1;max-width:100%}.customer-offers.offer-list-workspace .offer-list-row{gap:16px;padding:20px;grid-template-columns:minmax(0,1fr) 130px 130px 65px}}
/* Offer mail: send form and durable receipts, scoped to the offers component. */
.offer-send{background:#f5f6f8;border-radius:14px;padding:20px;margin-top:22px}
.offer-send h4,.offer-send-log h4{margin:0 0 6px;font-size:16px}
.customer-offers .offer-send>p,.customer-offers .offer-send-log>p{font-size:13px;color:#616773;margin:0 0 14px}
.offer-send label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:500;min-width:0;margin:0 0 14px}
.offer-send .offer-form-grid{margin:0}
.offer-send input,.offer-send textarea{box-sizing:border-box;width:100%;border:1px solid #dfe1e7;border-radius:10px;padding:12px;font:400 16px var(--font);background:#fff;color:#202126;min-height:46px}
.offer-send textarea{resize:vertical;line-height:1.5}
.offer-send .offer-actions{justify-content:flex-end}
.offer-send-log{margin-top:22px;padding-top:18px;border-top:1px solid #e8ebef}
.offer-send-log ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.offer-send-log li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;align-items:baseline;padding:12px 14px;border:1px solid #e7e8ed;border-radius:12px;background:#fff;font-size:14px;overflow-wrap:anywhere}
.offer-send-log small{grid-column:2;color:#616773;font-size:13px;line-height:1.5}
.offer-send-state{font-size:12px;font-weight:650;padding:3px 9px;border-radius:999px;background:#eef0f3;color:#33363d;white-space:nowrap}
.offer-send-state[data-state=sent]{background:#e3f4e8;color:#1b5e2d}
.offer-send-state[data-state=held]{background:#fff3df;color:#8a5200}
.offer-send-state[data-state=failed]{background:#fde8e8;color:#9b1c1c}
.offer-send-state[data-state=unknown],.offer-send-state[data-state=requested]{background:#eceefc;color:#3b3f8f}
@media(max-width:700px){.offer-send{padding:16px}.offer-send-log li{grid-template-columns:1fr}.offer-send-log small{grid-column:1}}
@media(max-width:700px){.customer-offers.offer-list-workspace>.offer-section-head{gap:16px;margin-bottom:20px}.customer-offers.offer-list-workspace>.offer-section-head .offer-toolbar{width:100%;justify-content:flex-start}.customer-offers.offer-list-workspace>.offer-section-head .offer-toolbar .primary{flex:1}.customer-offers.offer-list-workspace>.offer-filter{max-width:none}.customer-offers.offer-list-workspace .offer-list-row{grid-template-columns:minmax(0,1fr) minmax(100px,auto);gap:12px;padding:18px}.customer-offers.offer-list-workspace .offer-row-identity{grid-column:1/-1}.customer-offers.offer-list-workspace .offer-row-total{font-size:16px}.customer-offers.offer-list-workspace .offer-row-open{grid-column:1/-1;text-align:right}.customer-offers.offer-list-workspace .offer-row-identity strong{font-size:15px}}
