.client-offer-status{display:block;width:fit-content;margin:7px 0;padding:4px 9px;border:1px solid #b4c9d8;border-radius:999px;background:#edf4fa;color:#244c65;font-weight:700}.client-offer-status[data-status=accepted]{background:#e1f0d8;color:#2b5d21}.client-offer-status[data-status=changes_requested]{background:#fff1d1;color:#805710}.client-offer-status[data-status=rejected]{background:#ffe8e4;color:#912e24}.client-offer-dialog{width:min(720px,calc(100vw - 24px));max-height:90dvh;overflow:auto;padding:22px}.client-offer-dialog label{display:block;margin:14px 0}.client-offer-dialog .field{width:100%}.client-offer-dialog .checkbox-row{display:flex;gap:10px;align-items:flex-start}.client-offer-dialog .checkbox-row input{flex:none;margin-top:5px}.client-offer-history{display:grid;gap:14px}.client-offer-history article,.client-offer-comparison{padding:16px;border:1px solid var(--line,#c6d4dd);border-radius:10px;margin:12px 0}.client-offer-comparison table{width:100%;border-collapse:collapse}.client-offer-comparison td,.client-offer-comparison th{padding:8px;text-align:left;border-bottom:1px solid var(--line,#c6d4dd)}html[data-eh-theme=dark] .client-offer-status{background:#243a4c;color:#d1e5f2;border-color:#456277}html[data-eh-theme=dark] .client-offer-status[data-status=accepted]{background:#2c432a;color:#c7edb6}html[data-eh-theme=dark] .client-offer-status[data-status=changes_requested]{background:#463c24;color:#f6dc93}html[data-eh-theme=dark] .client-offer-status[data-status=rejected]{background:#482c30;color:#ffb7ae}@media(max-width:700px){.client-offer-dialog{padding:16px}.client-offer-dialog .dialog-actions{display:flex;flex-wrap:wrap}.client-offer-dialog .dialog-actions .button{flex:1;min-width:130px}}
.client-offer-opened{display:block;color:var(--muted,#5c7280);font-size:12px;margin-top:5px}.client-offer-status{max-width:100%;white-space:normal;overflow-wrap:anywhere}

/* Offer workflow: independent scroll area; actions never overlap metadata. */
.client-offer-dialog{box-sizing:border-box;border:1px solid var(--line,#ccd9e1);border-radius:18px;background:var(--panel,#fff);color:var(--ink,#172f3f)}
.client-offer-history-dialog{padding:0!important;overflow:hidden!important;max-height:min(90dvh,900px);width:min(760px,calc(100vw - 24px))}
.client-offer-history-dialog .offer-history-layout{display:flex;flex-direction:column;max-height:min(90dvh,900px);margin:0;min-height:0}
.offer-history-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line,#d6e2e9);flex:none}
.offer-history-header h2{margin:0;font-size:22px}.offer-history-header p{margin:6px 0 0;color:var(--muted,#637987);font-size:14px}.offer-history-header button{flex:none}
.offer-history-scroll{padding:20px 24px;overflow-y:auto;min-height:0;overscroll-behavior:contain}
.client-offer-history{gap:16px}.client-offer-history article.client-offer-revision{margin:0;padding:20px;min-width:0;background:var(--panel2,var(--panel,#f8fafb));border-radius:14px}
.client-offer-revision header{display:block}.client-offer-revision h3{font-size:18px;margin:0 0 10px}.client-offer-revision .client-offer-status{font-size:13px;line-height:1.5;margin-bottom:20px}
.client-offer-revision dl{display:grid;gap:16px;margin:0}.client-offer-revision dl>div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:6px 16px}.client-offer-revision dt{color:var(--muted,#5b7484);font-size:13px}.client-offer-revision dd{margin:0;overflow-wrap:anywhere;line-height:1.5;font-size:15px}.client-offer-revision .offer-history-amount{font-size:21px;font-weight:750}
.offer-history-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line,#d6e2e9)}
.client-offer-dialog .offer-history-actions .button{position:static!important;display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;height:auto!important;min-height:44px;margin:0!important;padding:11px 15px!important;white-space:normal;line-height:1.45!important;text-decoration:none;transform:none!important;font-size:14px}
.offer-history-actions .offer-revoke{color:var(--muted,#5b7484)}.offer-history-feedback{padding:14px;margin-top:18px;background:var(--panel,#edf4f8);border-radius:10px}.offer-history-feedback p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0}
.offer-history-archive{margin-top:24px}.offer-history-archive>summary{cursor:pointer;padding:12px 0;color:var(--muted,#5b7484);font-weight:650}.is-archived{opacity:.85}
.offer-history-footer{padding:14px 24px;border-top:1px solid var(--line,#d6e2e9);background:var(--panel,#fff);flex:none;display:flex;justify-content:flex-end}.offer-history-footer .button{position:static;margin:0;min-width:140px}
.estimate-share-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:245px}.estimate-share-actions .primary{font-size:16px;min-height:50px;padding:13px 20px;font-weight:750}.estimate-share-actions small{text-align:center;color:var(--muted,#607787);font-size:12px;margin-bottom:8px}
@media(max-width:700px){#estimateView .estimate-head{display:flex;flex-direction:column;align-items:stretch;gap:18px}.estimate-share-actions{order:-1;min-width:0}.client-offer-history-dialog{width:calc(100vw - 16px);max-height:92dvh}.client-offer-history-dialog .offer-history-layout{max-height:92dvh}.offer-history-header,.offer-history-footer{padding:15px 16px}.offer-history-scroll{padding:16px}.client-offer-history article.client-offer-revision{padding:16px}.client-offer-revision dl>div{grid-template-columns:1fr;gap:4px}.client-offer-revision dl{gap:17px}.offer-history-actions{display:grid;grid-template-columns:1fr}.offer-history-footer .button{width:100%}}

dialog.client-offer-dialog[open]{inset:0;margin:auto;height:auto;max-width:calc(100vw - 24px);width:min(720px,calc(100vw - 24px));max-height:90dvh;border:1px solid var(--line,#ccd9e1);border-radius:18px;background:var(--panel,#fff);color:var(--ink,#172f3f)}
dialog.client-offer-history-dialog[open]{overflow:hidden!important;padding:0!important;width:min(760px,calc(100vw - 24px));height:auto;max-height:90dvh}
.client-offer-dialog form{min-width:0}.client-offer-dialog:not(.client-offer-history-dialog) .dialog-actions{position:static!important;display:flex;gap:10px;flex-wrap:wrap;margin-top:20px;background:transparent;padding:0}.client-offer-dialog:not(.client-offer-history-dialog) .dialog-actions .button{height:auto;white-space:normal;min-height:44px;line-height:1.4;padding:12px 18px}
html[data-eh-theme=dark] .client-offer-dialog,html[data-eh-theme=dark] .client-offer-dialog h2,html[data-eh-theme=dark] .client-offer-dialog h3{color:var(--ink,#e6edf3)}
@media(max-width:700px){dialog.client-offer-dialog[open]{max-width:calc(100vw - 16px);width:calc(100vw - 16px);max-height:92dvh}dialog.client-offer-history-dialog[open]{max-height:92dvh}.client-offer-history-dialog .offer-history-layout{max-height:92dvh}}

/* One compact send window, from recipient through confirmed delivery. */
dialog.client-offer-send-dialog[open]{padding:0!important;overflow:hidden!important;width:min(620px,calc(100vw - 24px));height:fit-content!important;min-height:0!important;max-height:92dvh}
.client-offer-send-dialog .offer-send-layout{display:flex;flex-direction:column;min-height:0!important;height:auto!important;max-height:92dvh;margin:0!important;padding:0!important;gap:0!important}
.offer-send-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid var(--line,#d1dce3);flex:none}
.offer-send-header h2{font-size:23px;line-height:1.25;margin:5px 0 0!important}.offer-send-header .button{position:static!important;flex:none;min-width:44px;min-height:44px;padding:8px!important;line-height:1;font-size:22px}
.offer-send-kicker{font-size:11px;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:var(--muted,#667a87)}
.offer-send-content,.offer-send-result{padding:22px 24px;overflow-y:auto;min-height:0;overscroll-behavior:contain}
.offer-send-amount{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 17px;border-radius:12px;background:var(--panel2,#edf4f8);margin:0 0 20px}.offer-send-amount span{font-size:13px;color:var(--muted,#5c7180)}.offer-send-amount strong{font-size:23px;font-weight:800;white-space:nowrap}
.client-offer-send-dialog label.offer-send-email{margin:0 0 20px;font-size:14px;font-weight:650}.offer-send-email input{margin-top:8px;min-height:48px;font-size:17px}
.offer-send-variants{border:0;padding:0;margin:0 0 16px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.offer-send-variants legend{margin-bottom:9px;font-size:14px;font-weight:650}.client-offer-send-dialog .offer-send-variants label{display:flex;align-items:flex-start;gap:9px;margin:0;border:1px solid var(--line,#c9d7df);border-radius:12px;padding:13px;cursor:pointer}.offer-send-variants label:has(input:checked){border-color:#6fbf3b;box-shadow:inset 0 0 0 1px #6fbf3b;background:#6fbf3b0c}.offer-send-variants input{margin:3px 0 0;flex:none}.offer-send-variants strong,.offer-send-variants small{display:block}.offer-send-variants strong{font-size:15px}.offer-send-variants small{font-size:12px;line-height:1.5;color:var(--muted,#5c7180);margin-top:4px}
.offer-send-sections{margin:0 0 17px;font-size:13px}.offer-send-sections summary{cursor:pointer;padding:8px 0;color:var(--muted,#5c7180)}.offer-send-sections>div{padding:5px 0}.client-offer-send-dialog .offer-send-sections label{display:flex;align-items:center;gap:9px;margin:9px 0;font-size:13px}.offer-send-note{font-size:13px!important;line-height:1.65!important;color:var(--muted,#5c7180);margin:14px 0 0!important}
.offer-send-footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid var(--line,#d1dce3);flex:none;background:var(--panel,#fff)}.offer-send-footer .button{position:static!important;margin:0!important;min-height:48px;min-width:130px;height:auto!important;font-size:15px;padding:12px 18px!important;line-height:1.4;white-space:normal}.offer-send-footer .primary{font-weight:750}
.offer-send-result{text-align:center;padding-top:28px;padding-bottom:28px}.offer-send-result>p{margin:12px 0;line-height:1.6}.offer-send-recipient{display:block;font-size:20px;line-height:1.5;overflow-wrap:anywhere;margin:8px 0 24px}.offer-send-result .offer-send-amount{text-align:left}.offer-send-result-icon{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:#e9f2f7;color:#245476;font-size:34px;font-weight:750;margin:0 auto 18px}.client-offer-send-dialog[data-delivery=sent] .offer-send-result-icon{background:#ddf2cd;color:#356b20}.client-offer-send-dialog[data-delivery=failed] .offer-send-result-icon{background:#ffe9e4;color:#a03928}
.offer-send-spinner{display:inline-block;width:24px;height:24px;border:3px solid currentColor;border-right-color:transparent;border-radius:50%;animation:offer-send-spin .9s linear infinite}.offer-send-progress{display:flex;align-items:center;gap:12px;padding:15px 0 0;font-size:14px;line-height:1.5}.offer-send-progress[hidden]{display:none}.offer-send-spinner{flex:none}.offer-send-warning,[data-error]:not([hidden]){padding:12px 14px;border-radius:10px;background:#9d5c0912;color:var(--ink,#693c0b);font-size:13px;line-height:1.6}
@keyframes offer-send-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.offer-send-spinner{animation:none;border-style:dotted}}
@media(max-width:600px){dialog.client-offer-send-dialog[open]{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:90dvh;inset:0;margin:auto;border-radius:18px}.client-offer-send-dialog .offer-send-layout{max-height:90dvh}.offer-send-header{padding:17px 18px;gap:10px}.offer-send-header h2{font-size:20px}.offer-send-content,.offer-send-result{padding:18px}.offer-send-footer{padding:14px 18px;display:grid;grid-template-columns:1fr 1fr}.offer-send-footer .button{min-width:0;min-height:48px;font-size:14px;padding:12px 9px!important}.offer-send-amount{gap:10px;padding:13px}.offer-send-amount strong{font-size:21px}.offer-send-recipient{font-size:18px}.offer-send-variants{gap:8px}.client-offer-send-dialog .offer-send-variants label{padding:11px 9px}.offer-send-variants strong{font-size:14px}}

html[data-eh-theme="dark"] .client-offer-send-dialog .offer-send-amount{background:#233544;color:var(--ink,#e6edf3)}
