/* Document workspace: S&C navy, blue, white, and a quiet paper preview. */
.proposal-editor,.proposal-preview-modal{width:min(1120px,96vw)!important;max-width:1120px!important}.proposal-editor .modal-body{background:#f5f7fb}.proposal-editor .form-grid>.field{min-width:0}.proposal-editor-top{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:14px 18px;background:#e7effc;border:1px solid #c7d9f4;border-radius:10px;color:#335580;font-size:12px}.proposal-editor-top span:last-child{margin-left:auto}.proposal-draft-badge{padding:5px 10px;border-radius:6px;background:#fff;color:#305a92;font-weight:700;letter-spacing:1px}.proposal-section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}.proposal-section-title h3{margin:0;font-size:17px;color:#172b52}.proposal-section-title>span{font-size:12px;color:#74849a}.proposal-lines-section{padding:0!important}.proposal-line{display:block!important;border:1px solid #d7e1ef!important;background:#fff;border-radius:12px;padding:16px!important;margin:12px 0}.proposal-line-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;color:#7a8ba4;font-size:10px;letter-spacing:1px}.proposal-line .estimate-line-main{display:grid;grid-template-columns:1fr;gap:12px}.proposal-line textarea{min-height:150px;line-height:1.6}.proposal-line .estimate-line-values{display:grid!important;grid-template-columns:1.3fr 1fr 1fr 1fr 1.1fr;align-items:end;gap:12px;margin-top:14px}.proposal-line-amount{padding:12px 0;text-align:right;color:#172b52}.proposal-line-amount small,.proposal-line-amount strong{display:block}.proposal-line-amount small{font-size:11px;color:#71829a;margin-bottom:6px}.proposal-line-amount strong{font-size:17px}.proposal-editor .suite-actions select{max-width:420px;flex:1;min-width:140px;padding:12px;border:1px solid #c9d7eb;border-radius:8px}.proposal-finance{display:grid;grid-template-columns:1fr 360px;gap:35px;padding:22px!important;background:#fff;border-radius:12px;border:1px solid #d7e1ef}.proposal-editor-totals p,.proposal-summary p,.proposal-payment-schedule p{display:flex;justify-content:space-between;gap:20px;padding:9px 0;margin:0;color:#425774;font-size:13px}.proposal-grand{border-top:2px solid #172b52!important;margin-top:8px!important;font-size:18px!important;color:#172b52!important;padding:16px 0!important}.proposal-grand strong{font-size:25px}.proposal-milestone{display:grid;grid-template-columns:1fr 110px 45px;gap:12px;align-items:end;margin-bottom:10px}.proposal-milestone label{display:block;font-size:12px;color:#64748b}.proposal-milestone input{display:block;margin-top:6px;min-height:44px;padding:10px;border:1px solid #ccd8e9;border-radius:8px;width:100%}.proposal-editor details{background:#fff;padding:16px;border-radius:10px;border:1px solid #d7e1ef}.proposal-editor summary{cursor:pointer;color:#365f97;font-size:13px}.proposal-new-client>.form-grid{margin-top:18px}.proposal-photo-hint{background:#e9f0fa;border-radius:10px;color:#4b658b;padding:16px!important;font-size:13px}.proposal-preview-modal .modal-body{background:#e9eef5}.proposal-preview-modal .form-grid{display:block}.proposal-preview{max-width:100%}.proposal-actions{display:flex;gap:9px;flex-wrap:wrap;position:sticky;top:-24px;z-index:2;background:#e9eef5;padding:0 0 18px}.proposal-actions .button{min-height:42px}.proposal-paper{background:#fff;box-shadow:0 5px 24px #142c4d12;max-width:850px;margin:0 auto 24px;padding:42px 45px;color:#252b34;font:13px/1.5 Arial,sans-serif;overflow-wrap:anywhere}.proposal-document-type{text-align:center;text-transform:uppercase;color:#9298a2;letter-spacing:2px;font-size:13px;margin-bottom:26px}.proposal-letterhead{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-bottom:30px}.proposal-letterhead img{width:145px;height:auto;display:block;margin-bottom:22px}.proposal-letterhead h3{font-size:14px;margin:0 0 6px}.proposal-letterhead p{white-space:pre-wrap;margin:3px 0;font-size:12px}.proposal-client{text-align:right;padding-top:12px}.proposal-client>b{font-size:11px}.proposal-client dl{display:grid;grid-template-columns:1fr auto;gap:4px 16px;margin-top:20px;font-size:11px}.proposal-client dd{margin:0}.proposal-service-address{margin:15px 0;white-space:pre-wrap}.proposal-table-scroll{overflow-x:auto}.proposal-items{border-collapse:collapse;width:100%;font-size:12px}.proposal-items th{font-size:11px;text-align:right;border-bottom:1px solid #222;padding:10px 6px;white-space:nowrap}.proposal-items th:first-child{text-align:left;padding-left:0}.proposal-items td{padding:16px 6px;border-bottom:1px solid #dce0e6;vertical-align:top;text-align:right;min-width:55px}.proposal-items td:first-child{text-align:left;width:65%;padding-left:0;min-width:200px}.proposal-items td:first-child div{white-space:pre-wrap;font-size:11px;line-height:1.6;margin-top:8px}.proposal-items td:not(:first-child){white-space:nowrap;font-size:11px}.proposal-summary{width:340px;max-width:100%;margin:24px 0 30px auto}.proposal-summary p{font-size:12px;color:#222}.proposal-paid{color:#14744f;border:2px solid #14744f;border-radius:5px;padding:11px;text-align:center;font-weight:700;font-size:19px;letter-spacing:1px;margin:10px 0}.proposal-payment-schedule{clear:both;border-top:1px solid #ddd;padding-top:14px;margin-top:20px}.proposal-payment-schedule h4{text-align:center}.proposal-payment-schedule p{font-size:12px;color:#222}.proposal-terms{white-space:normal;margin-top:32px}.proposal-terms>p{white-space:pre-wrap;font-size:12px;line-height:1.7}.proposal-signature-line{border-top:1px solid #777;margin-top:70px;width:240px;font-size:11px;padding-top:6px}.proposal-signed{display:flex;flex-direction:column;margin-top:25px;gap:6px}.proposal-signed img{max-width:240px;height:70px;object-fit:contain;object-position:left}.proposal-signed>span{font:italic 28px Georgia,serif}.proposal-signed small{font-size:11px;color:#778294}.proposal-photo-page>span{color:#9298a2;letter-spacing:2px;font-size:11px}.proposal-photo-page>img{display:block;width:100%;max-height:900px;object-fit:contain;margin-top:20px}.proposal-photo-manager,.proposal-history,.proposal-staff-notes{padding:20px;background:#fff;border:1px solid #d7e1ef;border-radius:12px;margin:18px 0}.proposal-photo-manager p,.proposal-photo-row{font-size:13px;color:#64748b}.proposal-photo-row{display:flex;gap:8px;align-items:center;border-top:1px solid #edf1f7;padding:10px 0}.proposal-photo-row>span{flex:1}.proposal-history summary,.proposal-staff-notes summary{cursor:pointer;color:#345f97;font-weight:600}.proposal-history p{font-size:12px;color:#64748b}.proposal-staff-notes p{white-space:pre-wrap}.proposal-void{background:#fff0ee;color:#a13c2e;padding:20px;text-align:center;font-weight:700;margin-bottom:20px}.proposal-list-tabs{display:flex;gap:25px;margin-bottom:20px;border-bottom:1px solid #d6e0ed;overflow:auto}.proposal-list-tabs button{padding:12px 2px;background:none;color:#71819a;border-bottom:3px solid transparent;font-size:13px;white-space:nowrap}.proposal-list-tabs button.active{border-color:#3067b8;color:#1c467f;font-weight:700}.proposal-list{background:#fff;border:1px solid #dce5ef;border-radius:14px;overflow:hidden}.proposal-list-head,.proposal-list-row{display:grid;grid-template-columns:minmax(220px,1fr) 130px 120px 140px;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid #e8edf4}.proposal-list-head{background:#f5f8fc;color:#7888a1;font-size:11px}.proposal-list-row:last-child{border:0}.proposal-list-row small{display:block;font-size:11px;color:#7d8ba0;margin-top:6px}.proposal-list-row b{font-size:14px;color:#243f65}.proposal-customer-link{background:none;color:#213e6a;font-size:15px;font-weight:700;padding:0;text-align:left}.proposal-customer-link:hover{text-decoration:underline}#proposal-schedule-total{display:block;color:#3c6697;line-height:1.8;margin:14px 0}#proposal-upload-progress{white-space:pre-wrap}.proposal-editor #proposal-quote-error{display:block}.proposal-new-client small{color:#74849a}.proposal-customer-body{margin:0;background:#edf1f7;font-family:Arial,sans-serif}.customer-header{background:#172b52;color:#fff;padding:18px 5%;display:flex;justify-content:space-between;align-items:center;gap:18px}.customer-header b{font-size:16px}.customer-header span{font-size:12px;color:#b6c8e1}.customer-main{display:grid;grid-template-columns:minmax(0,850px) 270px;gap:24px;max-width:1180px;margin:30px auto;padding:0 20px;align-items:start}.customer-actions{position:sticky;top:20px;background:#fff;border-radius:12px;padding:22px;border:1px solid #d7e1ef}.customer-actions .button{display:block;width:100%;text-align:center;margin-bottom:12px;padding:13px;text-decoration:none;box-sizing:border-box}.customer-actions p{font-size:13px;color:#687b94;line-height:1.6}.customer-actions label{display:block;font-size:13px;line-height:1.6;color:#344e70;margin:15px 0}.customer-actions input[type="text"]{width:100%;box-sizing:border-box;min-height:44px;padding:10px;border:1px solid #c7d4e6;border-radius:7px;font-size:16px}.customer-actions canvas{width:100%;height:110px;background:#f6f8fb;border:1px solid #c7d4e6;touch-action:none}.customer-actions .customer-error{color:#a13c2e}.customer-actions h2{font-size:18px;color:#172b52}.customer-actions .customer-approved{color:#16734e;font-size:18px;font-weight:bold}.customer-status{color:#667e9e;font-size:13px}.customer-loading{padding:40px;text-align:center;color:#536c8f}@media(max-width:850px){.proposal-finance{grid-template-columns:1fr;gap:15px}.proposal-list-head,.proposal-list-row{grid-template-columns:minmax(150px,1fr) 110px 100px}.proposal-list-head>span:last-child{display:none}.proposal-list-row>.suite-actions{grid-column:1/-1}.customer-main{grid-template-columns:1fr}.customer-actions{position:static;grid-row:1}.customer-actions form{max-width:500px}.proposal-editor .estimate-line-values{grid-template-columns:repeat(2,minmax(0,1fr))!important}.proposal-line-amount{grid-column:1/-1}.proposal-editor .modal-body{padding:18px}}@media(max-width:600px){.proposal-editor,.proposal-preview-modal{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}.proposal-editor .modal-header,.proposal-preview-modal .modal-header{padding:16px}.proposal-editor .modal-footer,.proposal-preview-modal .modal-footer{padding:12px 16px}.proposal-editor .modal-body,.proposal-preview-modal .modal-body{padding:14px}.proposal-editor-top span:last-child{margin-left:0}.proposal-editor-top{gap:10px}.proposal-section-title>span{display:none}.proposal-editor .form-grid{grid-template-columns:1fr}.proposal-editor input,.proposal-editor textarea,.proposal-editor select{font-size:16px!important}.proposal-line .estimate-line-values{grid-template-columns:1fr 1fr!important}.proposal-editor textarea{min-height:130px}.proposal-finance{padding:16px!important}.proposal-milestone{grid-template-columns:1fr 76px 38px;gap:8px}.proposal-paper{padding:24px 18px}.proposal-letterhead{gap:15px}.proposal-letterhead img{width:108px}.proposal-letterhead h3{font-size:12px}.proposal-letterhead p{font-size:10px}.proposal-client dl{font-size:9px;gap:5px}.proposal-items td:first-child{min-width:145px}.proposal-items td:not(:first-child){min-width:45px;font-size:10px}.proposal-actions{position:static;gap:8px}.proposal-actions .button{flex:1;min-width:125px;font-size:12px;min-height:44px}.proposal-photo-row{flex-wrap:wrap}.proposal-photo-row span{width:100%;flex:auto}.proposal-list-head{display:none}.proposal-list-row{grid-template-columns:1fr auto;padding:18px;gap:12px}.proposal-list-row>div:nth-child(3){grid-column:1}.proposal-list-row>.suite-actions{grid-column:2;grid-row:2}.proposal-list-tabs{gap:20px}.customer-main{padding:0 10px;margin:14px auto;gap:14px}.customer-header{padding:14px}.customer-header b{font-size:14px}.customer-header span{display:none}.customer-actions{padding:18px}.customer-actions h2{margin-top:0}}@media print{.customer-header,.customer-actions{display:none!important}.customer-main{display:block;margin:0;padding:0;max-width:none}.proposal-customer-body{background:#fff}.proposal-paper{box-shadow:none;padding:0;max-width:none}.proposal-photo-page{break-before:page}.proposal-items tr{break-inside:avoid}}

#estimate-lines:empty{display:none}#catalog-picker[hidden]{display:none!important}.proposal-item-search-label{flex:1;min-width:220px;font-size:11px;color:#777}.proposal-item-search-label input{display:block;width:100%;padding:11px;border:1px solid #ccc;border-radius:4px;margin-top:5px;font-size:14px}.proposal-item-results{margin:12px 0;max-height:320px;overflow:auto}.proposal-item-results>p{font-size:12px;color:#888;padding:12px}.proposal-item-results>button{display:flex;align-items:start;gap:20px;width:100%;background:#fafafa;border:1px solid #ddd;border-bottom:0;padding:12px 15px;text-align:left;color:#333}.proposal-item-results>button:last-of-type{border-bottom:1px solid #ddd}.proposal-item-results>button:hover{background:#eef7ed}.proposal-item-results span{flex:1}.proposal-item-results strong,.proposal-item-results small{display:block}.proposal-item-results strong{font-size:13px}.proposal-item-results small{font-size:11px;color:#888;line-height:1.5;margin-top:5px;white-space:pre-wrap}.proposal-item-results b{font-size:12px;white-space:nowrap}@media(max-width:600px){.proposal-item-search-label{width:100%;flex:auto}.proposal-item-search-label input{font-size:16px;min-height:44px}.proposal-item-results>button{padding:14px 10px;min-height:50px}}

.proposal-schedule-presets{gap:8px!important;margin:0!important;flex-wrap:wrap}.proposal-schedule-presets .button{white-space:nowrap}@media(max-width:600px){.proposal-schedule-presets .button{min-height:40px}.proposal-section-title:has(.proposal-schedule-presets){align-items:flex-start;flex-direction:column}}

/* Searchable saved-item dropdown, shared by estimates and invoices. */
.proposal-item-picker{position:relative;flex:1;min-width:240px}.proposal-item-picker .proposal-item-search-label{display:block;margin-bottom:6px}.proposal-item-search-control{display:flex;border:1px solid #c5cdd9;border-radius:8px;overflow:hidden;background:#fff}.proposal-item-search-control:focus-within{border-color:#2479bf;box-shadow:0 0 0 3px #2479bf22}.proposal-item-search-control input{flex:1;min-width:0;width:100%;border:0!important;outline:0;padding:12px;font-size:14px;background:transparent}.proposal-item-dropdown-toggle{width:46px;min-height:44px;flex-shrink:0;border:0;border-left:1px solid #dce2e9;background:#edf4fb;color:#173f69;cursor:pointer;font-size:20px}.proposal-item-picker .proposal-item-results{position:absolute;top:100%;left:0;right:0;margin:5px 0 0;max-height:320px;overflow-y:auto;z-index:20;background:white;border:1px solid #c5cdd9;border-radius:8px;box-shadow:0 12px 28px #173f6926}.proposal-item-picker .proposal-item-results[hidden]{display:none!important}.proposal-item-picker .proposal-item-results>button{background:white;border:0;border-bottom:1px solid #e4e9f0}.proposal-item-picker .proposal-item-results>button:hover,.proposal-item-picker .proposal-item-results>button.is-active{background:#edf5fd}.proposal-item-picker .proposal-item-results small{max-height:3em;overflow:hidden}.proposal-item-picker .proposal-item-results>p{color:#52647b;background:white;margin:0}@media(max-width:600px){.proposal-item-picker{flex-basis:100%;min-width:0;width:100%}.proposal-item-search-control input{font-size:16px;min-height:46px}.proposal-item-picker .proposal-item-results{max-height:260px}}
/* Native details keeps hidden markup inputs in saves and live calculations. */
.proposal-editor details.proposal-markup-control{padding:0!important;border:0;background:transparent;min-width:0;margin:0;align-self:start}
.proposal-markup-control>summary{display:flex;align-items:center;gap:6px;cursor:pointer;list-style:none;min-height:44px;padding:4px 10px;border:1px solid #d5dce4;border-radius:6px;color:#526175;font-size:12px;background:#f8fafc;user-select:none}
.proposal-markup-control>summary::-webkit-details-marker{display:none}.proposal-markup-control>summary>span:first-child{font-size:26px;line-height:1}.proposal-markup-control>summary:focus-visible{outline:2px solid #1769b3;outline-offset:2px}.proposal-markup-control[open]>summary{background:#e9f3ff;border-color:#8bb8e4}.proposal-markup-content{padding-top:10px}.proposal-markup-content .field{margin:0}.proposal-finance .proposal-markup-total-row{display:none}.proposal-finance:has(.proposal-document-markup[open]) .proposal-markup-total-row{display:flex}

.proposal-draft-tag{display:inline-flex;margin-left:8px;padding:2px 7px;border-radius:5px;background:#fff0cf;color:#875a0a;font-size:11px;font-weight:700;vertical-align:middle;white-space:nowrap}
