
.estimate-record-meta{display:flex;flex-wrap:wrap;gap:12px 28px;margin:0 0 20px;color:var(--muted,#647480);font-size:13px;line-height:1.6}
.estimate-workflow{display:flex;justify-content:space-between;gap:14px;padding:18px 12px 26px;position:relative}
.estimate-workflow-step{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;flex:1;min-width:85px;font-size:13px}
.estimate-workflow-step>button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;border:2px solid var(--accent,#b75a0a);background:var(--surface);border-radius:50%;color:var(--accent,#b75a0a);padding:9px;z-index:1}
.estimate-workflow-step>button.done{background:var(--accent,#b75a0a);color:white}.estimate-workflow-step>button:disabled{opacity:.5}.estimate-workflow-step small{line-height:1.6;color:var(--muted,#647480)}
.estimate-proposal-workspace{padding:0;overflow:hidden}.estimate-options{display:flex;flex-wrap:wrap;background:var(--soft);border-bottom:1px solid var(--divider)}
.estimate-options button{padding:16px 20px;border:0;border-right:1px solid var(--divider);border-radius:0;min-width:145px;max-width:260px;white-space:normal;text-align:left;background:transparent;line-height:1.5}
.estimate-options button[aria-selected=true]{background:var(--surface);box-shadow:inset 0 -3px var(--accent,#b75a0a)}.estimate-options b,.estimate-options small{display:block;overflow-wrap:anywhere}.estimate-options small{font-size:12px;color:var(--muted,#647480);margin-top:4px}
.estimate-option-heading{padding:20px;display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.estimate-option-heading h2{margin:0;font-size:19px;font-weight:600}.estimate-option-heading p{margin:6px 0 0;line-height:1.6;white-space:pre-wrap}.estimate-option-heading .actions{flex-wrap:wrap;justify-content:flex-end;flex-shrink:0}
.estimate-scope-tools{display:flex;gap:10px;flex-wrap:wrap;padding:14px 18px}.estimate-proposal-workspace>.section-head{padding:16px 18px;border-top:1px solid var(--divider);border-bottom:1px solid var(--divider)}
.estimate-proposal-workspace .scope-category{padding:14px 18px}.estimate-proposal-workspace .scope-category h3{font-size:15px;font-weight:600}.estimate-proposal-workspace .table-wrap th,.estimate-proposal-workspace .table-wrap td{padding:14px 18px;line-height:1.6;vertical-align:top}.estimate-proposal-workspace .table-wrap td:nth-child(n+2){white-space:nowrap}
.estimate-item-name{display:flex;gap:12px;min-width:180px;max-width:500px}.estimate-item-name b{font-weight:600}.estimate-item-name small{display:block;color:var(--muted,#647480);margin-top:4px;white-space:pre-wrap}.estimate-item-name img,.estimate-item-card img{width:54px;height:54px;object-fit:contain;background:white}
.estimate-line-actions{display:flex;flex-wrap:wrap;gap:5px;max-width:245px}.estimate-line-actions button{font-size:12px;min-height:30px;padding:5px 7px}.estimate-line-actions svg{width:16px;height:16px}
.estimate-item-card{margin:0 18px 14px;padding:18px;border:1px solid var(--divider);border-radius:6px}.estimate-item-card>div:first-child{display:flex;gap:12px;align-items:center}.estimate-item-card h3{margin:0;font-size:15px}.estimate-item-card p{white-space:pre-wrap;line-height:1.6}.estimate-item-card small{display:block;margin:8px 0;color:var(--muted,#647480)}
.estimate-door-line{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:0 18px;padding:18px 0;border-bottom:1px solid var(--divider)}.estimate-door-line>img{width:100px;height:70px;object-fit:contain;background:white}.estimate-door-line>div{flex:1;min-width:180px}.estimate-door-line p{margin:6px 0}.estimate-door-line>.estimate-line-actions{flex-basis:100%}
.estimate-totals-wrap{padding:20px 18px}.estimate-totals{margin:0 0 8px auto;width:min(100%,420px)}.estimate-totals>div{display:flex;justify-content:space-between;gap:20px;padding:9px 0;line-height:1.6}.estimate-totals dd{margin:0;font-weight:600}.estimate-grand-total{border-top:1px solid var(--divider);font-size:18px}.estimate-totals-wrap>small{display:block;color:var(--muted,#647480);line-height:1.6}
.estimate-check{display:flex!important;align-items:center;gap:10px;font-weight:400!important}.estimate-check input{width:auto!important;min-height:16px!important}.estimate-line-editor label{margin-top:14px}.estimate-line-editor h3{font-size:14px;margin-top:18px}.estimate-line-editor textarea{min-height:110px}.estimate-line-editor .form-grid input{min-width:0}
.estimate-deposit-history{padding:0 18px 14px}.estimate-deposit-history p{margin:12px 0}.estimate-deposit-history small{display:block;color:var(--muted,#647480);margin-top:4px}.estimate-presentation .estimate-present-option{border:1px solid var(--divider);border-radius:6px;margin-top:20px;padding:20px}.estimate-present-option>h2{margin:0 0 12px}.estimate-present-option .table-wrap td{white-space:normal;padding:12px}.estimate-presentation .estimate-totals{margin-top:18px}
.estimate-catalog-search{display:flex;gap:12px;position:sticky;top:0;background:var(--surface);padding-bottom:14px}.estimate-catalog-search input{flex:1;min-width:120px}.estimate-catalog-item{display:flex;align-items:center;gap:18px;padding:16px 0;border-bottom:1px solid var(--divider)}.estimate-catalog-item>div{flex:1}.estimate-catalog-item p{font-size:13px;line-height:1.6}.estimate-catalog-item img{width:70px;height:70px;object-fit:contain;background:white}.estimate-catalog-item small{display:block;color:var(--muted,#647480)}.estimate-template-list>div{display:flex;justify-content:space-between;gap:18px;padding:14px 0;border-bottom:1px solid var(--divider)}
@media(max-width:900px){.estimate-option-heading{flex-direction:column}.estimate-options button{min-width:120px}.estimate-workflow{overflow-x:auto;justify-content:flex-start}.estimate-catalog-item{flex-wrap:wrap}.estimate-catalog-item>div{min-width:180px}.estimate-line-actions{max-width:180px}}

.crm-builder-start form{padding:18px;max-width:1000px}.crm-builder-start form label{margin:14px 0}.crm-builder-workspace{padding:18px}.crm-builder-workspace>p{margin:0 0 18px}.crm-builder-workspace #builderFrame{width:100%;height:800px;border:1px solid var(--divider);background:white;border-radius:6px}.crm-builder-workspace form{padding:16px 0 0}.crm-builder-workspace form label{max-width:600px}.crm-builder-workspace #saveDoor{margin-top:10px}

#modal:has([data-estimate-form="option-name"]){border-radius:4px}#modal:has([data-estimate-form="option-name"]) .dialog-head{background:var(--surface);border:0;padding:16px 24px}#modal:has([data-estimate-form="option-name"]) .dialog-head h2{font-size:28px;font-weight:400}#modal:has([data-estimate-form="option-name"]) #modalBody{padding:0 24px 24px}[data-estimate-form="option-name"] .option-name-field{display:block;position:relative;margin:0;border:1px solid var(--divider);border-radius:8px;padding:8px 12px;min-height:56px;box-sizing:border-box}[data-estimate-form="option-name"] .option-name-field span{display:block;font-size:12px;color:var(--secondary);font-weight:400}[data-estimate-form="option-name"] .option-name-field input{border:0;box-shadow:none;outline:0;background:transparent;padding:2px 0 0;min-height:20px;height:24px;font-size:16px;width:100%;border-radius:0}[data-estimate-form="option-name"] .option-name-field:focus-within{outline:2px solid var(--accent);outline-offset:1px}[data-estimate-form="option-name"] .booking-footer{margin-top:32px;padding:0;border:0}

.estimate-deposits-panel .estimate-deposit-summary,.estimate-deposits-panel .estimate-deposit-history{padding:0 16px 12px}.estimate-deposits-panel .estimate-deposit-history small{display:block;color:var(--muted)}
