.sales-quote-editor{width:min(1060px,96vw);max-width:1060px}.quote-form-section{padding:16px;border:1px solid #e4dcd2;border-radius:8px}.quote-form-section h3{margin:0 0 14px}.quote-addresses{display:grid;grid-template-columns:1fr 1fr;gap:16px;min-width:0}.quote-address-card{margin:0;min-width:0;border:1px solid #e4dcd2;border-radius:8px;padding:16px}.quote-address-card textarea{width:100%;box-sizing:border-box}.sales-quote-editor .quote-form-line{display:grid;grid-template-columns:minmax(0,1fr) 100px auto;gap:12px;align-items:end}.quote-summary{margin:20px 0 0 auto;max-width:390px}.quote-summary>div{display:flex;justify-content:space-between;gap:24px;padding:8px;border-bottom:1px solid #eee5db}.quote-summary>div:last-child{background:#263d35;color:#fff;border-radius:5px;margin-top:8px;padding:14px}.quote-version{font-size:.75em;color:#9a4d2d}.quote-pdf-dialog{width:min(960px,95vw);max-width:960px}.quote-pdf-preview{width:100%;height:65vh;min-height:350px;border:1px solid #ddd4ca}.saved-image-result{text-align:center}.saved-image-result img{max-height:60vh;max-width:100%;object-fit:contain}.visit-status-control{display:block;min-width:135px}.visit-status-error{display:block;white-space:normal;color:#a53928;font-size:12px}.quote-address-card[hidden]{display:none}.invitation-fields [aria-invalid=true]{outline:2px solid #a53928}@media(max-width:700px){.quote-addresses{grid-template-columns:1fr}.sales-quote-editor .quote-form-line{grid-template-columns:minmax(0,1fr) 70px}.sales-quote-editor .quote-form-line>.btn{grid-column:1/-1}.quote-summary{max-width:none}.quote-pdf-preview{height:55vh}}
/* Quote line pricing and document view share the same information hierarchy. */
.sales-quote-editor{width:min(1180px,96vw);max-width:1180px}.quote-line-card{padding:14px;margin:0 0 12px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.quote-line-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}.quote-line-numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:12px 0}.quote-line-card .field{min-width:0}.quote-line-card input,.quote-line-card textarea{width:100%;box-sizing:border-box;min-width:0}.quote-line-numbers strong{display:block;padding:10px 0}.quote-line-amount{text-align:right}.quote-price-help{font-size:12px;line-height:1.5;color:var(--muted)}.quote-review-bar{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:12px 0}.quote-review-bar .versions{margin:0}.quote-review-bar>label{display:flex;align-items:center;gap:12px}.quote-review-bar>p{flex-basis:100%;font-size:12px;margin:0;color:var(--muted)}.quote-status-control{display:flex;gap:5px;align-items:center;min-width:150px}.quote-status-control .fw-select{min-width:0;flex:1}.quote-status-control small{color:var(--muted);font-size:10px}.quote-paper{background:#fff;color:#27362f;border:1px solid #e4dcd2;border-radius:6px;padding:32px;max-width:1150px;margin:0 auto 20px;box-sizing:border-box;width:100%}.quote-paper-heading{display:flex;justify-content:space-between;border-bottom:1px solid #ded3c8;padding-bottom:20px}.quote-paper-heading>div:last-child{text-align:right}.quote-paper-heading img{width:36px;height:46px;object-fit:contain;float:left;margin-right:10px}.quote-paper-heading strong{font-size:24px}.quote-paper-heading small{display:block;font-size:9px}.quote-paper-heading h2{font-size:24px;letter-spacing:2px;color:#964e2b;margin:0 0 8px}.quote-paper-heading p{font-size:12px}.quote-prepared{padding:24px 0}.quote-prepared small,.quote-paper .quote-addresses h3{font-size:11px;color:#964e2b;letter-spacing:1px}.quote-prepared h2{margin:8px 0;font-size:22px}.quote-paper .quote-addresses{margin-bottom:24px}.quote-paper .quote-addresses p{min-height:36px;margin:8px 0}.quote-detail-lines table{width:100%;min-width:640px}.quote-detail-lines td:first-child{width:48%;white-space:normal;overflow-wrap:anywhere}.quote-detail-lines td:not(:first-child),.quote-detail-lines th:not(:first-child){text-align:right;white-space:nowrap}.quote-detail-lines small{display:block;font-size:11px;color:#68716c;margin-top:5px}.quote-detail-lines .quote-line-note{white-space:pre-wrap;font-size:12px;color:#68716c;margin:8px 0}.quote-paper footer{border-top:1px solid #ded3c8;margin-top:26px;padding-top:12px;font-size:11px;color:#68716c}.quote-paper .quote-summary{font-size:13px}
@media(max-width:700px){.quote-line-numbers{grid-template-columns:1fr 1fr;gap:10px}.quote-paper{padding:16px}.quote-paper-heading strong,.quote-paper-heading h2{font-size:18px}.quote-review-bar>label{align-items:flex-start;flex-direction:column}.quote-paper-heading{gap:10px}}
/* Shared compact record controls follow the user's column width. Menus remain in the top layer. */
.field-table .quote-status-control{min-width:0;max-width:100%;width:100%;gap:3px}.field-table .quote-status-control .fw-select{flex:1 1 0;width:0;min-width:0}.field-table .quote-status-control small{display:none}.field-table .fw-select-trigger{min-height:30px;padding:5px 6px!important;gap:4px;box-sizing:border-box;max-width:100%;font-size:12px}.field-table .fw-select-value{min-width:0;flex:1}.field-table .fw-chevron{width:10px}.related-record-link,.record-step-link{text-decoration:underline;text-underline-offset:3px;color:var(--accent,#974a28);cursor:pointer}.related-record-link:focus-visible,.record-step-link:focus-visible{outline:2px solid currentColor;outline-offset:2px}.record-direct-cell{font:inherit;color:inherit;border:0;background:transparent;text-align:left;padding:5px 0;max-width:100%;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:text}.record-direct-cell:hover{background:#f7f2ec}.record-inline-form{width:100%;min-width:0;display:grid;gap:3px}.record-inline-form input{width:100%;min-width:0;box-sizing:border-box;font:inherit;padding:5px;border:1px solid var(--accent,#974a28);border-radius:3px}.record-inline-actions{display:flex;gap:5px;justify-content:flex-end}.record-inline-actions button{border:1px solid var(--line);background:white;border-radius:3px;cursor:pointer}.record-inline-form .inline-error{white-space:normal;overflow-wrap:anywhere;font-size:11px}.record-summary-strip{display:flex;gap:24px;flex-wrap:wrap;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:6px;margin-bottom:14px}.record-summary-strip>div{display:grid;gap:5px;min-width:0}.record-summary-strip strong{font-size:16px}.business-direct-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}.business-direct-form .field{min-width:0}.business-direct-form input,.business-direct-form textarea,.business-direct-form select{width:100%;min-width:0;box-sizing:border-box}.business-save-row{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:14px;flex-wrap:wrap}.business-save-row .hint{margin-right:auto}.readonly-field>span:last-child{padding:9px 0;overflow-wrap:anywhere}.business-overview .case-next{margin-top:10px}.case-next .transition-card{padding:10px}.case-next .missing-list{font-size:12px;line-height:1.5}.business-overview .business-title h2{font-size:17px}.business-section .business-section-body{padding:16px}.order-handoff-overview .handoff-summary{font-size:12px}.order-step-body .step-intro{font-size:12px}.record-context:has(+.order-handoff-overview),.record-context:has(+.business-overview){display:none}@media(max-width:700px){.business-direct-form .form-grid{grid-template-columns:1fr}.record-summary-strip{gap:14px}.business-save-row .hint{flex-basis:100%}}
.work-body a.related-record-link,.work-body a.record-step-link,.work-body a.related-record-link:hover,.work-body a.record-step-link:hover{display:inline;color:var(--accent);text-decoration:underline;text-underline-offset:3px;border:0;border-radius:0;background:transparent;padding:0;min-height:0;white-space:normal;overflow-wrap:anywhere;font-size:inherit}
.business-overview{padding:16px;border-radius:6px;margin:14px 0}.business-overview .business-title{margin-bottom:8px;align-items:center}.business-overview .business-title h2 .bi-main{font-size:17px}.case-next{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}.case-next>h3,.case-next>p{grid-column:1/-1;margin:0}.case-next .transition-card{min-width:0;gap:12px;align-items:center}.case-next .transition-card .bi-main{font-size:13px}.case-next .transition-card .bi-sub{font-size:11px}.case-requirements{margin-top:8px}.case-requirements>summary{cursor:pointer;color:var(--accent);font-size:12px}.case-next .missing-list li{margin:5px 0}.case-next .transition-card>.btn{min-width:0;padding:8px}.business-section:has(.business-direct-form) summary .bi-main{font-size:14px}.business-direct-form .field .bi-main{font-size:13px}.business-direct-form .field .bi-sub{font-size:11px}.business-direct-form input,.business-direct-form textarea{font-size:13px}.business-section:has(.business-direct-form)>summary{padding:12px 16px}@media(max-width:800px){.case-next{grid-template-columns:1fr}}
