/* Estimate form polish: consistent controls and spacing, without changing business behavior. */
.fast-workspace{font-size:14px;background:var(--bg)}
.fast-workspace .estimate-layout{max-width:1320px;padding:24px 28px 48px}
.fast-workspace .estimate-canvas>.estimate-card{padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--paper);margin-bottom:20px}
.fast-workspace .estimate-card+.estimate-card{border-top:1px solid var(--line)}
.fast-workspace .estimate-section-title{margin-bottom:20px;gap:12px}
.fast-workspace .estimate-section-title h3{font-size:17px;font-weight:650;letter-spacing:-.2px;margin:0}
.fast-workspace .estimate-header{padding:14px 28px;gap:16px;min-height:76px;background:var(--paper);z-index:30}
.fast-workspace .estimate-heading h2{font-size:21px;line-height:1.3;margin-top:5px}
.fast-workspace .estimate-header-actions{gap:8px;align-items:center}
.fast-workspace .btn{min-height:38px;padding:8px 14px;font-size:13px;font-weight:550;box-shadow:none;border-radius:7px;line-height:1.3}
.fast-workspace .estimate-header-actions [data-fast-save]{background:var(--green);border-color:var(--green);color:var(--paper)}
.fast-workspace .btn:not(.primary){background:var(--paper);border:1px solid var(--line);color:var(--ink)}
.fast-workspace .btn:not(.primary):hover{background:var(--bg);border-color:var(--muted)}
.fast-workspace .estimate-tabs{padding:0 28px;gap:24px;background:var(--paper)}
.fast-workspace .estimate-tabs>span{display:none}
.fast-workspace .estimate-tabs>button{padding:13px 0}
.fast-workspace .form-grid{gap:18px 20px}
.fast-workspace .field label,.fast-workspace .field legend{font-size:12px;font-weight:600;color:var(--ink);margin-bottom:7px}
.fast-workspace input:not([type=checkbox]):not([type=radio]),.fast-workspace select,.fast-workspace textarea{font:inherit;font-size:14px;min-height:40px;padding:9px 11px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);box-shadow:none;max-width:100%}
.fast-workspace input::placeholder,.fast-workspace textarea::placeholder{color:var(--muted);opacity:.85}
.fast-workspace input:focus-visible,.fast-workspace select:focus-visible,.fast-workspace textarea:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.fast-workspace :is(input[type=checkbox],input[type=radio]){width:17px;height:17px;min-height:0;accent-color:var(--green);flex:none}
.fast-workspace :is(.estimate-options>p,.estimate-question-start>.help-copy,.estimate-appointment>.help-copy,#estimate-appointment>.help-copy,.fast-composer-note,.fast-budget>p,.estimate-format-tools>small,.fast-internal-model>small,#estimate-project>.estimate-section-title p,#estimate-project .field>.help,#estimate-design-fee-fields>.help-copy){display:none}
.fast-workspace .estimate-question-start{justify-content:flex-end;margin-bottom:16px}
.fast-workspace .estimate-question-start .btn{font-size:12px;min-height:34px;padding:7px 12px}
.fast-workspace .estimate-related-controls{gap:8px;align-items:stretch}
.fast-workspace .estimate-related-controls>.btn{padding:8px 11px;min-height:40px;font-size:12px}
.fast-workspace #estimate-appointment{grid-column:auto;align-self:start}
.fast-workspace .estimate-appointment-controls{gap:10px;min-height:40px}
.fast-workspace #estimate-appointment-summary{font-size:12px;color:var(--muted)}
.fast-workspace .estimate-people-field{grid-column:auto;border:0;padding:0;margin:0;min-width:0}
.fast-workspace .estimate-people-field legend{padding:0}
.fast-workspace .estimate-people-field>.help-copy{display:none}
.estimate-people-select{position:relative;width:100%;min-width:0}
.estimate-people-select>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;border:1px solid var(--line);border-radius:7px;padding:9px 11px;background:var(--paper);font-size:14px;cursor:pointer}
.estimate-people-select>summary::-webkit-details-marker{display:none}
.estimate-people-select [data-people-summary]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.estimate-people-chevron{width:7px;height:7px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);margin:0 3px 4px 0;flex:none}
.estimate-people-select[open] .estimate-people-chevron{transform:rotate(225deg);margin-top:5px}
.estimate-people-menu{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:40;max-height:260px;overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:6px;box-shadow:0 8px 24px #102c2318}
.estimate-people-menu .check-list{display:grid;gap:0}
.fast-workspace .estimate-people-menu label{margin:0;padding:10px 8px;display:flex;align-items:center;gap:10px;min-height:40px;border-radius:5px;font-size:13px;font-weight:400;color:var(--ink)}
.estimate-people-menu label:hover{background:var(--bg)}
.fast-workspace .estimate-options{border:0;background:transparent;padding:0 0 18px;margin:0 0 20px;border-bottom:1px solid var(--line)}
.fast-workspace .estimate-options>h3{font-size:15px;margin:0 0 12px}
.fast-workspace .estimate-option-tabs{gap:5px;border:0}
.fast-workspace .estimate-option-tabs [role=tab]{padding:9px 16px;min-height:40px;border:1px solid transparent;border-radius:7px;font-size:13px}
.fast-workspace .estimate-option-tabs [aria-selected=true]{background:var(--mint);border-color:var(--green);color:var(--ink)}
.fast-workspace .estimate-option-tabs [role=tab]:hover{background:var(--bg)}
.fast-workspace .estimate-option-menu>summary{width:40px;height:40px;padding:1px 0;text-align:center;font-size:26px;line-height:36px;background:var(--paper);border-color:var(--line)}
.fast-workspace .fast-budget{background:var(--bg);border:1px solid var(--line);border-radius:8px;margin:0 0 20px;padding:14px 16px;gap:18px}
.fast-workspace .fast-budget>div+div{border:0;padding-left:0}
.fast-workspace .fast-budget small{font-size:11px;line-height:1.4}
.fast-workspace .fast-budget strong{font-size:18px;font-weight:600;margin-top:7px}
.fast-workspace .fast-area{margin:16px 0 0;border:1px solid var(--line);border-radius:9px;background:var(--paper);overflow:visible}
.fast-workspace .estimate-area-header{padding:10px 14px;background:var(--bg);border-radius:9px 9px 0 0}
.fast-workspace .estimate-area-header .estimate-area-name{font-size:14px;font-weight:600;background:transparent;border-color:transparent;min-height:34px;padding:5px 7px}
.fast-workspace .estimate-area-header .estimate-area-name:hover{border-color:var(--line)}
.fast-workspace .fast-line-section{border:0;border-top:1px solid var(--line);border-radius:0;margin:0;overflow:visible}
.fast-workspace .fast-section-header{padding:16px 16px 10px;background:transparent}
.fast-workspace .fast-section-header h4{font-size:14px;font-weight:650}
.fast-workspace .fast-section-header strong{font-size:13px}
.fast-workspace .estimate-add-row{padding:0 16px 14px;background:transparent;gap:8px}
.fast-workspace .estimate-add-row .btn{min-height:33px;font-size:12px;padding:7px 11px}
.fast-workspace .fast-head,.fast-workspace .fast-row{grid-template-columns:minmax(220px,1fr) 72px 104px 116px 100px 65px 76px;gap:12px;padding:11px 16px}
.fast-workspace .fast-head{background:var(--bg);color:var(--muted);font-size:10px;text-transform:none;letter-spacing:.2px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.fast-workspace .fast-row{min-height:78px}
.fast-workspace .fast-row .fast-number input{width:100%;font-size:13px;min-height:38px;padding:8px}
.fast-workspace .fast-description{gap:10px}
.fast-workspace .fast-description textarea{font-size:13px;min-height:44px;padding:10px;line-height:1.5}
.fast-workspace .estimate-item-photo{width:32px;height:32px;border:0;border-radius:6px;background:var(--bg)}
.fast-workspace .estimate-item-photo .icon{width:17px;height:17px}
.fast-workspace .fast-row>strong,.fast-workspace [data-fast-line-margin]{font-size:13px;white-space:nowrap}
.fast-workspace .fast-row .line-remove{font-size:11px;padding:7px 10px;min-height:32px;color:var(--red)}
.fast-workspace .estimate-item{border-bottom:1px solid var(--line);padding-bottom:2px}
.fast-workspace .estimate-item:last-child{border-bottom:0}
.fast-workspace .fast-item-details{border:0;padding:0 16px 11px}
.fast-workspace .fast-item-details>summary{font-size:11px;color:var(--muted)}
.fast-workspace .fast-item-details[open]{padding:12px 16px;background:var(--bg);border-top:1px solid var(--line)}
.fast-workspace .estimate-item>.estimate-drag-handle{font-size:11px;padding:0;margin:0 14px 10px 16px;color:var(--muted)}
.fast-workspace .fast-toolbar{padding:8px 10px;gap:4px}
.fast-workspace #fast-scope-body{font-size:14px;line-height:1.65;min-height:140px;padding:18px;outline-offset:-3px}
.fast-workspace .estimate-summary-card{max-width:none;width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 40px;padding:24px;background:var(--paper);border:1px solid var(--line);border-radius:12px;margin:0}
.fast-workspace .estimate-pricing-heading{grid-column:1/-1;font-size:17px;margin:0}
.fast-workspace .estimate-price-fields{grid-column:1;margin:0;padding:0;border:0;display:grid;gap:14px}
.fast-workspace #document-total-preview{grid-column:2;align-self:start;padding-top:0}
.fast-workspace #document-total-preview .total-row{display:flex!important;padding:9px 0;font-size:13px;gap:18px}
.fast-workspace #document-total-preview .total-row.grand{font-size:20px;font-weight:650;padding-top:16px;margin-top:9px;border-top:1px solid var(--line)}
.fast-workspace #estimate-design-fee{padding:0 0 16px;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0}
.fast-workspace .estimate-design-toggle{font-size:13px;gap:9px;min-height:24px;flex-wrap:wrap}
.fast-workspace .estimate-design-toggle small{font-size:11px}
.fast-workspace #estimate-design-fee-fields .form-grid{gap:12px}
.fast-workspace #estimate-design-total{font-size:13px;margin:10px 0 0}
.fast-workspace .estimate-advanced{border-top:1px solid var(--line);margin-top:18px;padding-top:14px}
.fast-workspace .estimate-advanced>summary{font-size:12px;color:var(--muted)}
html[data-color-mode=dark] .fast-workspace .estimate-header-actions [data-fast-save]{color:#14251e}
@media(min-width:1101px){.fast-workspace .fast-head{display:grid}.fast-workspace .fast-number>span{display:none}}
@media(max-width:1100px){.fast-workspace .fast-row{grid-template-columns:minmax(180px,1fr) 60px 90px 95px 90px 55px 64px;gap:8px;padding:10px 12px}.fast-workspace .fast-head{display:none}.fast-workspace .fast-number>span{display:block;font-size:10px;margin-bottom:5px;color:var(--muted)}}
@media(max-width:760px){.fast-workspace .estimate-layout{padding:14px}.fast-workspace .estimate-canvas>.estimate-card{padding:18px;margin-bottom:14px}.fast-workspace .estimate-header{padding:12px 16px;flex-wrap:wrap;position:static}.fast-workspace .estimate-heading h2{font-size:19px}.fast-workspace .estimate-header-actions{width:100%;display:flex;flex-wrap:wrap}.fast-workspace .estimate-header-actions>.btn:not(.primary){display:inline-flex}.fast-workspace .estimate-header-actions>.btn{flex:1;justify-content:center;font-size:12px;padding:9px}.fast-workspace .estimate-tabs{padding:0 18px;gap:20px}.fast-workspace .estimate-card .form-grid{grid-template-columns:1fr}.fast-workspace .estimate-people-field,.fast-workspace #estimate-appointment{grid-column:1/-1}.fast-workspace .fast-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.fast-workspace .fast-description{grid-column:1/-1}.fast-workspace .fast-number>span{font-size:11px}.fast-workspace .fast-row>strong::before{content:'Total ';font-size:11px;font-weight:400;color:var(--muted)}.fast-workspace [data-fast-line-margin]::before{content:'Margin ';font-size:11px;color:var(--muted)}.fast-workspace .fast-budget{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.fast-workspace .estimate-summary-card{display:block;padding:20px}.fast-workspace .estimate-pricing-heading{margin-bottom:18px}.fast-workspace .estimate-price-fields{margin-bottom:20px}.fast-workspace #document-total-preview{width:100%}.fast-workspace #document-total-preview .total-row:not(.grand){display:flex!important}}
@media(prefers-reduced-motion:no-preference){.fast-workspace :is(.btn,input,select,textarea,.estimate-option-tabs [role=tab]){transition:border-color .15s ease,background-color .15s ease}}

.fast-workspace :is(input[type=checkbox],input[type=radio]){padding:0}.fast-workspace .btn:disabled{cursor:not-allowed;opacity:.45}.fast-workspace #estimate-project .field>.help-copy{display:none}.fast-workspace .design-waiver-notice{background:var(--paper);border-color:var(--line);border-left:3px solid var(--line);color:var(--ink)}

.fast-workspace .estimate-price-fields{grid-template-columns:minmax(0,1fr)}.fast-workspace #estimate-discount-calculated{display:none}

.fast-workspace .fast-row{width:100%}.fast-workspace #document-total-preview .total-row,.fast-workspace #document-total-preview .total-row strong{color:var(--ink)}.fast-workspace :is(.fast-toolbar,.estimate-format-tools) button{background:var(--paper);color:var(--ink);border:1px solid var(--line)}html[data-color-mode=dark] .fast-workspace .estimate-header-actions [data-fast-save]{background:#a8d4bd;border-color:#a8d4bd;color:#14251e}

.fast-workspace .fast-item-details label{min-width:0;max-width:100%;flex-wrap:wrap}.fast-workspace .fast-item-details select{min-width:0;width:100%;max-width:100%}

.estimate-question-area{border:1px solid var(--line);border-radius:8px;margin:16px 0;background:var(--paper)}.estimate-question-area>summary{padding:14px 16px;cursor:pointer}.estimate-question-area-body{padding:0 16px 16px}.estimate-question-area-draft{padding:16px 0;border-bottom:1px solid var(--line)}.estimate-question-area-draft>label{display:flex;flex-direction:column;align-items:stretch;gap:8px}.estimate-question-area-draft textarea{width:100%;font:inherit;padding:12px}.estimate-question-area-body>label{margin:14px 0}

.estimate-pricebook-dialog{width:min(1180px,calc(100vw - 32px));max-height:90vh;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink)}.estimate-pricebook-dialog::backdrop{background:#0007}.estimate-book-header,.estimate-book-search,.estimate-book-filters,.estimate-book-pagination{display:flex;gap:16px;align-items:center;justify-content:space-between}.estimate-book-header h2{margin:0}.estimate-book-header p{margin:5px 0;color:var(--muted)}.estimate-book-search{margin:20px 0;align-items:end}.estimate-book-search>label{flex:1}.estimate-pricebook-dialog label{display:flex;flex-direction:column;gap:7px;font-size:13px}.estimate-pricebook-dialog :is(input,select){padding:10px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink);font:inherit;min-width:0}.estimate-book-brands{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}.estimate-book-brand{display:flex;flex-direction:column;gap:8px;padding:20px;text-align:left;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink)}.estimate-book-brand:hover{border-color:var(--green)}.estimate-book-brand small,.estimate-book-part small{color:var(--muted)}.estimate-book-filters{justify-content:start;margin-bottom:16px}.estimate-book-filters label{min-width:180px}.estimate-book-part{display:grid;grid-template-columns:minmax(0,1fr) 100px auto;gap:20px;padding:18px 0;align-items:center;border-bottom:1px solid var(--line)}.estimate-book-part p{margin:5px 0;font-size:13px}.estimate-book-part input{width:100%}.estimate-book-pagination{margin-top:20px}@media(max-width:650px){.estimate-pricebook-dialog{padding:16px}.estimate-book-search,.estimate-book-filters{flex-wrap:wrap}.estimate-book-search>label{flex-basis:100%}.estimate-book-filters label{min-width:0;flex:1}.estimate-book-part{grid-template-columns:1fr 1fr}.estimate-book-part>div{grid-column:1/-1}.estimate-book-brands{grid-template-columns:repeat(2,minmax(0,1fr))}}

.estimate-pricebook-dialog [hidden]{display:none!important}

.fast-workspace .estimate-item-photo,.proposal-item>.estimate-item-photo{width:88px;height:auto;min-height:64px;flex:none;background:transparent}.estimate-product-media{display:flex;flex-direction:column;align-items:center;gap:7px;width:100%}.estimate-product-photo{display:grid;place-items:center;width:100%;height:64px;background:#fff;border-radius:6px}.estimate-product-photo>img{width:100%;height:100%;object-fit:contain}.estimate-product-media>.estimate-brand-logo{width:80px;height:26px;object-fit:contain;background:white;padding:3px;border-radius:4px}.estimate-book-brand img{width:110px;height:42px;object-fit:contain;background:white;padding:4px;border-radius:4px}.estimate-book-part-media{display:flex;gap:14px;align-items:center}.estimate-book-part-media>img{width:68px;height:68px;object-fit:contain;background:white}.estimate-book-part-brand{display:block;width:80px;height:24px;object-fit:contain;background:white;padding:3px;margin-bottom:6px}@media(max-width:760px){.fast-workspace .estimate-item-photo{width:64px}.estimate-product-media>.estimate-brand-logo{width:60px}}

.estimate-internal-sourcing{border:1px solid var(--line);border-radius:8px;padding:14px;margin-top:20px;background:var(--bg)}.estimate-internal-sourcing>summary{cursor:pointer;font-weight:600;font-size:13px}.estimate-internal-sourcing[open]>.estimate-supplier{margin-top:16px}.estimate-line-internal>.btn{margin:8px 0}

.proposal-item{grid-template-columns:88px minmax(0,1fr) auto}.estimate-book-part-media>div>img{display:block;width:80px;height:26px;object-fit:contain;background:white;padding:3px;margin-bottom:6px}@media(max-width:650px){.proposal-item{grid-template-columns:64px minmax(0,1fr) auto}.proposal-item>.estimate-item-photo{width:64px}}
