.sales-workflow { display:flex; align-items:center; gap:14px; padding:12px 19px; border-bottom:1px solid var(--line); flex-wrap:wrap; background:#0d1728; color:#9cacc3; }
.sales-workflow button { border:0; background:transparent; color:inherit; border-radius:999px; padding:8px 17px; font-size:14px; cursor:pointer; }
.sales-workflow button.active { background:#243e63; color:#8eb5ff; }
.sales-bottom-add { padding:12px; background:var(--surface-soft); border-radius:0 0 12px 12px; border-top:1px solid var(--line); }
.sales-bottom-add input { width:100%; border:1px solid #b2ddff; border-radius:9px; padding:11px 12px; background:var(--surface); font:inherit; }
.sales-catalog-results { margin-top:8px; display:grid; gap:2px; max-height:290px; overflow-y:auto; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.sales-catalog-choice { display:flex; justify-content:space-between; gap:16px; align-items:center; width:100%; text-align:left; border:0; border-bottom:1px solid var(--line); background:var(--surface); padding:10px 12px; cursor:pointer; color:var(--text); font:inherit; }
.sales-catalog-choice:hover,.sales-catalog-choice:focus-visible { background:#f0f9ff; }
.sales-catalog-choice strong { display:block; font-size:13px; }
.sales-catalog-choice small { display:block; font-size:12px; color:var(--muted); }
.sales-catalog-price { text-align:right; white-space:nowrap; }
.sales-line-suggestions { padding:10px; border-top:1px solid var(--line); }
#salesModal .sales-lines-heading #salesAddLine { display:none; }
#salesModal .line-item-cell { min-width:240px; }
#salesModal .line-item-search { min-width:220px; }
#salesModal .line-remove:disabled { opacity:.35; cursor:not-allowed; }
#proposalModal { z-index:70; }
#proposalModal .modal { width:min(1380px,calc(100vw - 20px)); height:calc(100dvh - 20px); max-height:calc(100dvh - 20px); }
.proposal-body { padding:20px; overflow-y:auto; min-height:0; display:grid; gap:16px; flex:1; }
.proposal-layout { display:grid; grid-template-columns:minmax(260px,.8fr) minmax(340px,1.2fr); gap:20px; align-items:start; }
.proposal-controls { display:grid; gap:14px; min-width:0; }
.proposal-estimates { display:grid; gap:7px; max-height:235px; overflow-y:auto; padding-right:3px; }
.proposal-estimate-choice { display:flex; gap:9px; align-items:start; border:1px solid var(--line); border-radius:9px; padding:10px; background:var(--surface); cursor:pointer; }
.proposal-estimate-choice input { width:auto; margin-top:4px; }
.proposal-estimate-choice:has(input:checked) { border-color:#84c5f4; background:#f2f9ff; }
.proposal-estimate-choice span { min-width:0; overflow-wrap:anywhere; }
.proposal-sheet { background:#fff; color:#172033; border:1px solid #dfe5ec; border-radius:10px; padding:30px; min-width:0; }
.proposal-sheet .proposal-brand { padding-bottom:20px; border-bottom:2px solid var(--brand); }
.proposal-logo { width:156px; max-width:60%; height:auto; display:block; }
.proposal-sheet h2 { margin:24px 0 10px; font-size:22px; font-weight:700; letter-spacing:-.025em; line-height:1.25; }
.proposal-sheet h4 { margin:24px 0 9px; color:var(--text); font-size:14px; font-weight:700; }
.proposal-sheet p { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.65; font-size:13px; }
.proposal-sheet .proposal-caption { font-size:12px; color:#667085; }
.proposal-doc-row { display:flex; justify-content:space-between; align-items:baseline; gap:14px; padding:12px 0; border-bottom:1px solid #dfe5ec; }
.proposal-doc-row>span:first-child { overflow-wrap:anywhere; min-width:0; }
.proposal-doc-row>span:last-child { white-space:nowrap; font-variant-numeric:tabular-nums; }
.proposal-doc-total { font-size:20px; font-weight:750; }
.proposal-archive { margin-top:18px; }
.proposal-archive-row { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; padding:12px 16px; border-bottom:1px solid var(--line); }
.proposal-send-panel { display:grid; gap:13px; border:1px solid #b2ddff; background:#f5fbff; padding:16px; border-radius:12px; }
.proposal-history-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.proposal-email-note { color:#7a2e0e; background:#fff8e8; padding:10px 12px; border-radius:8px; font-size:13px; }
.proposal-acceptance-state { padding:18px; background:var(--surface-soft); border:1px solid var(--line); border-radius:12px; }
.proposal-acceptance-state p { margin:8px 0; }
#proposalModal .field textarea { min-height:90px; }
#proposalModal .modal-error { white-space:pre-line; }
@media(max-width:850px) { .proposal-layout { grid-template-columns:1fr; } .proposal-body { padding:15px; } .proposal-sheet { padding:20px; } }
@media(max-width:600px) { #proposalModal .modal { width:100%; height:100dvh; max-height:100dvh; border-radius:0; } .sales-workflow { gap:5px; padding:10px 12px; } .sales-workflow button { padding:8px 12px; } #proposalModal .modal-actions { flex-wrap:wrap; } .sales-catalog-choice { align-items:start; } }

/* Keep proposal controls in the established OS type and spacing system. */
#proposalModal { font-family:inherit; }
#salesModal.proposal-covered { visibility:hidden; }
#proposalModal .modal { width:min(1480px,calc(100vw - 32px)); height:calc(100dvh - 32px); max-height:calc(100dvh - 32px); }
#proposalModal .sales-workflow { flex:0 0 auto; }
#proposalModal .proposal-body { align-content:start; }
#proposalModal .proposal-sheet { font-family:inherit; font-size:13px; line-height:1.6; }
#proposalModal .proposal-estimate-choice { display:flex; align-items:flex-start; gap:10px; color:var(--text); text-transform:none; font-size:13px; font-weight:400; line-height:1.5; }
#proposalModal .proposal-estimate-choice input[type=checkbox] { width:16px; height:16px; flex:0 0 16px; margin:3px 0 0; padding:0; accent-color:var(--brand); }
#proposalModal .proposal-estimate-choice>span { flex:1; }
#proposalModal .proposal-estimate-choice strong { font-size:13px; font-weight:650; }
#proposalModal .proposal-doc-row { font-size:13px; }
#proposalModal .proposal-doc-total { font-size:18px; }
@media(max-width:600px) { #proposalModal .modal { width:100%; height:100dvh; max-height:100dvh; border-radius:0; } }
