/* Stage labels and placement carry meaning alongside color. */
.stage-lead{--stage:#315ca8;--stage-light:#edf3ff}
.stage-inspection{--stage:#187890;--stage-light:#eaf8fc}
.stage-estimate{--stage:#7844a2;--stage-light:#f6effd}
.stage-signed_contract{--stage:#bd2028;--stage-light:#fff0f1}
.stage-permits_materials{--stage:#a25a0b;--stage-light:#fff5e8}
.stage-scheduled{--stage:#6151b3;--stage-light:#f1efff}
.stage-installation{--stage:#b64324;--stage-light:#fff0e9}
.stage-final_inspection{--stage:#276f48;--stage-light:#edf8ef}
.stage-collections{--stage:#146e74;--stage-light:#e7f7f6}
.stage-closed_warranty{--stage:#515c2a;--stage-light:#f4f7e8}
.stage-lost{--stage:#626977;--stage-light:#eef0f4}
.board .column{background:var(--stage-light);border:1px solid #e0e3e8;border-top:5px solid var(--stage);border-radius:12px}
.board .column-head{color:var(--stage);font-weight:800}
.board .column-head span{background:white;color:var(--stage)}
.board .job-tile{background:#fff;border:1px solid #dfe3ea;box-shadow:0 2px 5px #20283008}
.badge[class*="stage-"]{background:var(--stage-light);color:var(--stage);border:1px solid var(--stage)}
.workflow-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border:1px solid #dfe3ea;border-left:5px solid #bd2028;padding:20px;margin:20px 0;border-radius:10px}
.workflow-summary p{font-size:14px;line-height:1.6;margin:8px 0 0}.handoff-notes{white-space:pre-wrap}
.review-message{line-height:1.7;overflow-wrap:anywhere}.address-field label{margin-bottom:2px}.address-help{margin-top:6px;min-height:22px}.address-help a{color:#315ca8;text-decoration:underline}
.address-options{max-height:240px;overflow-y:auto;border:1px solid #b9c1cb;border-radius:8px;background:#fff;box-shadow:0 5px 16px #20283012;margin-top:4px}.address-options[hidden]{display:none}.address-options [role=option]{display:block;width:100%;padding:12px 14px;border:0;border-bottom:1px solid #e7e9ed;border-radius:0;background:white;color:#202830;text-align:left;font:inherit;line-height:1.45;overflow-wrap:anywhere;cursor:pointer}.address-options [role=option]:last-child{border-bottom:0}.address-options [role=option]:hover,.address-options [aria-selected=true]{background:#fff0f1;color:#90151d}
.collections-layout{display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);gap:32px;align-items:center}.collections-pie{width:100%;max-width:260px}.chart-key{width:12px;height:12px;margin-right:10px}.chart-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.chart-heading h3{font-size:30px;margin:8px 0}.chart-heading .help{max-width:500px}
#collections-chart,#review-queue{margin-top:24px}.collections-layout td{font-variant-numeric:tabular-nums}
@media(max-width:800px){.workflow-summary,.chart-heading{display:block}.workflow-summary .btn{margin-top:15px}.collections-layout{grid-template-columns:1fr;gap:12px}.collections-pie{max-width:220px;margin:0 auto}.collections-layout table{min-width:0}.collections-layout th,.collections-layout td{padding:12px 8px}}
