:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#172b4d;background:#f5f7fb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;--blue: #2463eb;--dark-blue: #1745a5;--muted: #718096;--border: #e5eaf2}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,a{font:inherit}button{cursor:pointer}.topbar{min-height:76px;padding:16px 6%;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:inline-flex;align-items:center;gap:11px;color:#172b4d;font-size:23px;font-weight:750;text-decoration:none;letter-spacing:-.7px}.brand-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:11px;color:#fff;background:var(--blue);font-size:23px;font-weight:800}.tagline{color:var(--muted);font-size:14px}.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px}.primary-navigation{min-width:0;display:flex;flex:1 1 auto;align-items:center;justify-content:center;gap:4px}.primary-navigation-item{min-height:40px;padding:0 14px;border:0;border-radius:8px;background:transparent;color:#52627a;font-size:14px;font-weight:600}.primary-navigation-item:hover,.primary-navigation-item[aria-current=page]{background:#eff4ff;color:var(--dark-blue)}@media(max-width:700px){.topbar{flex-wrap:wrap}.primary-navigation{order:3;flex:1 0 100%;justify-content:center}.header-actions{margin-left:auto}}.business-profile-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin-top:18px}.business-profile-controls .profile-field{flex:1 1 240px;margin:0}.business-profile-controls .secondary-button{margin:0}.estimate-editor-profile-context{margin:0 0 20px;color:#52627a;font-size:13px}.profile-identity{display:inline-flex;align-items:center;gap:9px;min-width:0}.profile-name{max-width:180px;color:#334155;font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-trigger{display:inline-grid;place-items:center;flex:0 0 auto;width:40px;height:40px;padding:0;overflow:hidden;border:1px solid var(--border);border-radius:50%;background:#fff;color:#40536f}.profile-trigger:hover,.profile-trigger:focus-visible{border-color:#a9c2ff;color:var(--blue)}.profile-trigger svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.profile-trigger img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}.dashboard{width:min(1120px,88%);margin:0 auto;padding:54px 0 70px}.welcome{padding:36px;border:1px solid #e0e9ff;border-radius:20px;background:linear-gradient(120deg,#edf3ff,#fff 80%)}.eyebrow{margin:0 0 14px;color:var(--blue);font-size:12px;font-weight:750;letter-spacing:1.4px}h1{max-width:700px;margin:0;color:#172b4d;font-size:clamp(30px,4vw,43px);line-height:1.2;letter-spacing:-1.4px}.intro{margin:15px 0 25px;color:var(--muted);font-size:16px;line-height:1.7}.primary-button{min-height:48px;padding:0 22px;border:0;border-radius:10px;background:var(--blue);color:#fff;font-size:15px;font-weight:650;transition:background .2s,transform .2s}.primary-button:hover{background:var(--dark-blue);transform:translateY(-1px)}.section{margin-top:43px}.section h2{margin:0 0 20px;color:#203452;font-size:21px;letter-spacing:-.4px}.document-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.document-card{min-width:0;min-height:190px;padding:23px 18px;display:flex;flex-direction:column;align-items:flex-start;gap:12px;border:1px solid var(--border);border-radius:15px;background:#fff;text-align:left;transition:border-color .2s,box-shadow .2s,transform .2s}.document-card:hover{border-color:#a9c2ff;box-shadow:0 8px 24px #23499114;transform:translateY(-3px)}.document-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:12px;font-size:19px;font-weight:750}.estimate{color:#2463eb;background:#eaf1ff}.invoice{color:#16805d;background:#e3f8ee}.contract{color:#8855c7;background:#f1eaff}.partnership{color:#c47719;background:#fff1db}.document-name{color:#203452;font-size:15px;font-weight:700}.document-description{color:var(--muted);font-size:12px;line-height:1.6}.empty-state{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px;border:1px dashed #d7dfeb;border-radius:15px;background:#ffffffa6;text-align:center}.empty-state[hidden]{display:none}.empty-icon{color:#8aa7e8;font-size:30px}.empty-state p{margin:12px 0 6px;font-size:15px;font-weight:700}.empty-state>span:last-child{color:var(--muted);font-size:13px}.recent-documents{display:grid;gap:10px}.recent-document{min-width:0;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 18px;border:1px solid var(--border);border-radius:10px;background:#fff}.recent-document-details,.document-library-details{min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}.recent-document-name{color:#203452;font-size:14px;font-weight:700}.recent-document-meta{overflow-wrap:anywhere;color:var(--muted);font-size:12px}.recent-section-header,.documents-page-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.recent-section-header h2{margin-bottom:0}.recent-document-actions,.document-library-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.recent-document-actions .secondary-button,.document-library-actions .secondary-button,.document-library-actions .primary-button{width:auto;margin:0}.text-button{padding:8px 10px;border:0;background:transparent;color:#245bb8;font:inherit;font-size:13px;font-weight:650;cursor:pointer}.text-button:hover{text-decoration:underline}.documents-page-header .back-button{margin-bottom:0}.documents-list-section{margin-top:24px}.documents-list-section h1{margin-bottom:8px}.document-status{padding:3px 8px;border-radius:999px;font-size:11px;font-weight:700}.document-status.draft{background:#fff1db;color:#80510e}.document-status.saved{background:#e3f8ee;color:#176146}.document-library-list,.document-version-list{display:grid;gap:10px}.document-library-row,.document-version-row{min-width:0;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;border:1px solid var(--border);border-radius:10px;background:#fff}.document-library-details h2{margin:0;color:#203452;font-size:15px}.document-library-meta,.document-version-date{margin:0;color:var(--muted);font-size:12px;overflow-wrap:anywhere}.document-migration-notice,.profile-snapshot-notice{padding:12px 14px;border-left:3px solid #b8791d;background:#fff8e9;color:#624414;font-size:13px;line-height:1.5}.document-history-page .section{margin-top:0}.document-version-row{flex-wrap:wrap}.document-version-details{color:#203452;font-size:14px;font-weight:650}.document-history-error{color:var(--muted)}@media(max-width:700px){.recent-document,.document-library-row{align-items:flex-start;flex-direction:column}.recent-document-actions,.document-library-actions{justify-content:flex-start;width:100%}.document-library-actions .primary-button,.document-library-actions .secondary-button{width:auto}}@media(max-width:520px){.recent-section-header,.documents-page-header{align-items:flex-start;flex-direction:column}.documents-page-header .primary-button{width:100%}}@media print{.profile-snapshot-notice{display:none!important}}.auth-page{display:grid;min-height:65vh;place-items:center}.auth-card{width:min(100%,460px);padding:clamp(22px,5vw,38px);border:1px solid var(--border-color, #dbe3ee);border-radius:18px;background:#fff;box-shadow:0 16px 44px #17315214}.auth-form{display:grid;gap:14px;margin-top:22px}.auth-form input{width:100%}.auth-status{min-height:1.5em}.auth-local-button{margin-top:18px}.auth-sign-out{white-space:nowrap}.local-import-section{padding:18px;border:1px solid var(--border-color, #dbe3ee);border-radius:14px}.local-import-status{overflow-wrap:anywhere}footer{display:flex;justify-content:space-between;gap:15px;padding:23px 6%;border-top:1px solid var(--border);background:#fff;color:var(--muted);font-size:12px}@media(max-width:900px){.document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard{width:90%}.welcome{padding:30px}}@media(max-width:520px){.topbar{min-height:66px;padding:13px 5%;flex-wrap:wrap}.brand{font-size:20px}.brand-icon{width:35px;height:35px}.tagline{max-width:105px;font-size:11px;text-align:right}.header-actions{gap:8px}.primary-navigation{order:3;flex:1 0 100%;justify-content:stretch}.primary-navigation-item{flex:1 1 0;padding:0 8px;font-size:13px}.profile-trigger{width:36px;height:36px}.profile-name{max-width:96px;font-size:12px}.dashboard{width:90%;padding-top:28px}.welcome{padding:23px 19px;border-radius:15px}h1{font-size:30px;letter-spacing:-.8px}.intro{font-size:14px}.primary-button{width:100%}.section{margin-top:33px}.document-grid{gap:11px}.document-card{min-height:175px;padding:16px 12px;gap:10px}.document-name{font-size:13px}.document-description{font-size:11px}footer{flex-direction:column;padding:20px 5%}}.profile-dashboard{max-width:900px}.profile-intro{margin-bottom:24px}.profile-development-notice{margin:0 0 22px;padding:13px 16px;border:1px solid #dbe7ff;border-radius:10px;background:#f0f5ff;color:#40536f;font-size:13px;line-height:1.6}.profile-form{display:grid;gap:18px}.profile-card{padding:24px;border:1px solid var(--border);border-radius:15px;background:#fff}.profile-card h2{margin:0 0 8px;color:#203452;font-size:20px}.profile-section-description{margin:0 0 20px;color:var(--muted);font-size:13px;line-height:1.6}.profile-readonly-field,.profile-field{display:grid;gap:7px;margin-top:16px}.profile-field label,.profile-field-label{color:#334155;font-size:13px;font-weight:650}.profile-field input:not([type=file]),.profile-field textarea{width:100%;min-width:0;padding:12px 13px;border:1px solid #d7dfeb;border-radius:9px;background:#fff;color:#172033;font:inherit;font-size:14px}.profile-field input:focus,.profile-field textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.profile-field textarea{min-height:82px;resize:vertical}.profile-user-id{color:var(--muted);font-size:14px;overflow-wrap:anywhere}.profile-image-field input[type=file]{max-width:100%;font:inherit;font-size:13px}.profile-field-help,.profile-image-empty{color:var(--muted);font-size:12px}.profile-image-preview{width:88px;height:88px;object-fit:cover;border:1px solid var(--border);border-radius:12px;background:#f5f7fb}.profile-remove-image{justify-self:start;padding:7px 10px;border:1px solid #dce4f0;border-radius:8px;background:#fff;color:#475569;font-size:12px}.profile-save{justify-self:start;width:auto}.profile-save:disabled{cursor:not-allowed;opacity:.55}.profile-message{margin:0;color:#b42318;font-size:13px;line-height:1.5}.profile-success{color:#16805d}@media(max-width:560px){.profile-card{padding:18px}.profile-save{width:100%}}.back-button{display:inline-flex;align-items:center;gap:8px;margin-bottom:22px;padding:10px 16px;border:1px solid #dce4f0;border-radius:10px;background:#fff;color:#334155;font-size:14px;font-weight:600;cursor:pointer;transition:background .2s,border-color .2s}.back-button:hover{background:#f1f6ff;border-color:#b8cdfa}.search-input{display:block;width:100%;max-width:560px;margin:24px 0 18px;padding:14px 16px;border:1px solid #dbe3ef;border-radius:12px;background:#fff;color:#1e293b;font-size:15px;outline:none;box-sizing:border-box}.search-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.category-filters{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 26px}.filter-button{padding:9px 16px;border:1px solid #dce4f0;border-radius:999px;background:#fff;color:#475569;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s ease}.filter-button:hover{border-color:#2563eb;color:#2563eb}.filter-button.active{border-color:#2563eb;background:#2563eb;color:#fff}.picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.picker-grid .document-card{width:100%;min-width:0;box-sizing:border-box;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.picker-grid .document-card:hover{transform:translateY(-3px);box-shadow:0 10px 25px #1e40af17}.no-results{padding:36px 20px;border:1px dashed #cbd5e1;border-radius:14px;color:#64748b;text-align:center;background:#fff}.details-welcome{margin-bottom:24px}@media(max-width:900px){.picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.picker-grid{grid-template-columns:1fr}.category-filters{gap:8px}.filter-button{padding:8px 12px}.search-input{font-size:16px}}.estimate-workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);align-items:start;gap:28px;max-width:1440px;margin:0 auto}.estimate-editor,.estimate-preview{min-width:0;background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 4px 18px #0f172a0a}.estimate-editor{padding:26px}.estimate-preview{padding:28px;position:sticky;top:20px}.estimate-form{display:grid;gap:22px}.form-section{padding:22px;border:1px solid #e2e8f0;border-radius:13px;background:#fff}.form-section h2{margin:0 0 18px;color:#172554;font-size:18px;line-height:1.4}.form-section>p{color:#64748b;font-size:14px;line-height:1.6}.estimate-form label{display:block;margin:16px 0 7px;color:#334155;font-size:13px;font-weight:600}.estimate-form input,.estimate-form textarea,.estimate-form select{display:block;width:100%;min-width:0;box-sizing:border-box;padding:12px 13px;border:1px solid #d7dfeb;border-radius:9px;background:#fff;color:#172033;font:inherit;font-size:14px;outline:none}.estimate-form input:focus,.estimate-form textarea:focus,.estimate-form select:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.estimate-form textarea{resize:vertical}.estimate-item{margin:18px 0;padding:18px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.estimate-item h3{margin:0 0 12px;color:#1e3a8a;font-size:15px}.estimate-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;color:#475569;font-size:14px;border-bottom:1px solid #e9eef5}.estimate-total strong{color:#172033;text-align:right}.grand-total{margin-top:8px;padding:17px 0;border-bottom:0;color:#172554;font-size:16px;font-weight:700}.grand-total strong{color:#1d4ed8;font-size:20px}.secondary-button,.remove-item-button{margin-top:12px;padding:11px 15px;border:1px solid #cbd8ef;border-radius:9px;background:#fff;color:#1d4ed8;font:inherit;font-size:14px;font-weight:600;cursor:pointer}.remove-item-button{border-color:#fecaca;color:#b91c1c}.estimate-preview h2{margin:0 0 8px;color:#172554;font-size:20px}.preview-subtitle{margin:0 0 24px;color:#64748b;font-size:13px;line-height:1.5}.preview-paper{min-height:360px;padding:24px 18px;border:1px solid #e2e8f0;background:#fff;color:#334155;overflow-wrap:anywhere}.preview-business{padding-bottom:18px;border-bottom:2px solid #1d4ed8}.preview-business h3{margin:0 0 8px;color:#172554;font-size:18px}.preview-business p,.preview-customer p{margin:5px 0;font-size:12px;line-height:1.6}.preview-document-title{margin:22px 0;color:#172554;font-size:22px;font-weight:800;text-align:center;letter-spacing:1px}.preview-customer{margin-bottom:20px}.preview-table{width:100%;border-collapse:collapse;font-size:11px}.preview-table th,.preview-table td{padding:9px 5px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top}.preview-table th{background:#f1f5f9;color:#334155}.preview-table td:last-child,.preview-table th:last-child{text-align:right}.preview-totals{margin-top:20px;margin-left:auto;max-width:240px}.preview-signatures{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:50px;font-size:11px}.preview-signatures div{padding-top:10px;border-top:1px solid #94a3b8}.business-edit-toggle{display:flex;align-items:center;gap:9px;margin:0 0 16px;color:#1d4ed8;font-size:13px;font-weight:600;cursor:pointer}.business-edit-toggle input{width:auto}@media(max-width:900px){.estimate-workspace{grid-template-columns:minmax(0,1fr)}.estimate-preview{position:static;grid-row:2}}@media(max-width:560px){.estimate-editor,.estimate-preview{padding:16px;border-radius:12px}.form-section{padding:16px}.preview-paper{padding:18px 12px}}.items-table-wrap{width:100%;overflow-x:auto;margin:16px 0;border:1px solid #dbe3ef;border-radius:8px}.items-table{width:100%;min-width:760px;border-collapse:collapse;background:#fff}.items-table th{padding:12px 10px;background:#eff4ff;color:#1e3a8a;text-align:left;font-size:12px;font-weight:700;white-space:nowrap;border-bottom:1px solid #dbe3ef}.items-table td{padding:10px;border-bottom:1px solid #e2e8f0;vertical-align:middle}.items-table tbody tr:last-child td{border-bottom:none}.items-table input{box-sizing:border-box;width:100%;min-width:100px;padding:9px;border:1px solid #cbd5e1;border-radius:6px;font:inherit;font-size:13px}.items-table input:focus{outline:2px solid #93b4ff;border-color:#2563eb}.items-table .item-total{white-space:nowrap;font-weight:600;color:#1e293b}.items-table .remove-item-button{margin:0;padding:8px 10px;white-space:nowrap;color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;cursor:pointer}.items-table .remove-item-button:hover{background:#fee2e2}.estimate-preview{width:100%;display:flex;justify-content:center}.preview-paper{width:210mm;min-height:297mm;max-width:100%;box-sizing:border-box;padding:14mm;background:#fff;border:1px solid #dbe3ef;box-shadow:0 8px 24px #0f172a14;color:#1e293b;font-size:12px}.preview-business{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:10px;border-bottom:2px solid #1e3a8a}.preview-logo{width:58px;height:58px;display:flex;align-items:center;justify-content:center;border:1px solid #cbd5e1;border-radius:6px;font-size:10px;color:#64748b}.preview-logo .preview-logo img{max-width:100px;max-height:40px;width:auto;height:auto;object-fit:contain;display:block}.preview-business-details{flex:1}.preview-business-details h2{margin:0 0 4px;font-size:18px}.preview-business-details p{margin:2px 0;color:#64748b}.preview-document-title{text-align:center;margin:12px 0}.preview-document-title h1{margin:0;font-size:22px;letter-spacing:1px}.preview-document-title p{margin:4px 0 0;color:#64748b}.preview-customer{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:10px;margin-bottom:12px;background:#f8fafc;border:1px solid #e2e8f0}.preview-customer strong{display:block;margin-bottom:4px;font-size:11px;text-transform:uppercase}.preview-customer p{margin:2px 0}.preview-table{width:100%;border-collapse:collapse;font-size:10px}.preview-table th{padding:7px 5px;background:#eff4ff;text-align:left;border-bottom:1px solid #cbd5e1}.preview-table td{padding:6px 5px;border-bottom:1px solid #e2e8f0}.preview-totals{width:280px;max-width:100%;margin:14px 0 0 auto}.preview-totals>div{display:flex;justify-content:space-between;gap:20px;padding:5px 0}.preview-grand-total{margin-top:5px;padding:8px!important;background:#eff4ff;border-top:2px solid #1e3a8a;font-size:13px;font-weight:700}.preview-signatures{display:grid;grid-template-columns:1fr 1fr;gap:50px;margin-top:35px}.preview-signatures>div{text-align:center}.signature-line{height:35px;margin-top:20px;border-bottom:1px solid #334155}@media(max-width:900px){.preview-paper{width:100%;min-height:auto;padding:20px}}@media(max-width:600px){.preview-customer,.preview-signatures{grid-template-columns:1fr}.preview-business{gap:10px}.preview-business-details h2{font-size:15px}}.preview-page{width:100%;max-width:1100px;margin:0 auto}.preview-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.preview-page .preview-paper{width:210mm;min-height:297mm;max-width:100%;margin:0 auto;padding:14mm;box-sizing:border-box;background:#fff;border:1px solid #dbe3ef;box-shadow:0 8px 24px #0f172a14;color:#1e293b}@media(max-width:900px){.preview-page .preview-paper{width:100%;min-height:auto;padding:20px}}@media(max-width:600px){.preview-actions{flex-direction:column;align-items:stretch}}.estimate-editor-page{width:min(1500px,94%);padding-top:34px}.estimate-editor-heading{margin-bottom:22px}.estimate-editor-heading h1{margin:0 0 10px;color:#172554;font-size:clamp(28px,4vw,38px)}.estimate-editor-heading .intro{max-width:740px}.estimate-editor-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(390px,.95fr);align-items:start;gap:24px}.estimate-editor-form{display:grid;min-width:0;gap:16px}.estimate-editor-card,.estimate-live-preview{min-width:0;padding:21px;border:1px solid var(--border);border-radius:14px;background:#fff}.estimate-editor-card h2,.estimate-live-preview>h2{margin:0 0 14px;color:#203452;font-size:18px}.estimate-editor-field{display:grid;gap:7px;margin-top:14px;color:#334155;font-size:13px;font-weight:600}.estimate-editor-field input,.estimate-editor-field textarea,.estimate-editor-field select{width:100%;min-width:0;padding:11px 12px;border:1px solid #d7dfeb;border-radius:8px;background:#fff;color:#172033;font:inherit;font-size:14px}.estimate-editor-field input:focus,.estimate-editor-field textarea:focus,.estimate-editor-field select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.estimate-editor-field textarea{resize:vertical}.estimate-section-help{margin:0;color:var(--muted);font-size:13px}.estimate-editor-items{min-width:700px}.estimate-editor-items input{min-width:90px;padding:8px}.estimate-item-total{white-space:nowrap;font-weight:600}.estimate-remove-item{padding:7px 9px;border:1px solid #fecaca;border-radius:7px;background:#fff7f7;color:#a52828}.estimate-total{display:flex;justify-content:space-between;gap:16px;margin:10px 0 0;color:#334155;font-size:14px}.estimate-total.grand-total{padding:12px;border-top:2px solid #1e3a8a;background:#eff4ff;color:#172554;font-weight:750}.estimate-editor-actions,.estimate-preview-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.estimate-save-state{flex-basis:100%;min-height:1.5em;margin:2px 0 0;color:#52627a;font-size:13px}.estimate-editor-actions button:disabled{cursor:not-allowed;opacity:.55}.estimate-live-preview{position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto}.estimate-preview-paper{width:210mm;max-width:100%;min-height:180mm;margin:0 auto;padding:16mm;border:1px solid #dbe3ef;background:#fff;box-shadow:0 8px 24px #0f172a14;color:#1e293b}.estimate-document-business{display:flex;align-items:flex-start;gap:15px;min-height:35px;margin-bottom:20px}.estimate-business-letterhead{flex:1;margin:0;color:#172554;font-size:19px;text-align:center;overflow-wrap:anywhere}.estimate-business-logo{width:68px;height:68px;object-fit:contain}.estimate-business-details h2{margin:0 0 5px;color:#172554;font-size:19px}.estimate-business-details{margin-left:auto;text-align:right}.estimate-business-details p{margin:3px 0;color:#475569;font-size:12px;overflow-wrap:anywhere}.estimate-document-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:12px;border-bottom:1px solid #cbd5e1}.estimate-document-heading h1{margin:0;color:#172554;font-size:23px}.estimate-document-metadata{text-align:right;overflow-wrap:anywhere}.estimate-document-metadata p,.estimate-document-customer p,.estimate-document-work p{margin:4px 0;font-size:11px}.estimate-document-customer,.estimate-document-work{margin:18px 0}.estimate-document-work h2{margin:0 0 6px;font-size:14px}.estimate-document-items{width:100%;margin-top:16px;border-collapse:collapse;font-size:10px}.estimate-document-items th,.estimate-document-items td{padding:7px 5px;border-bottom:1px solid #e2e8f0;text-align:left;overflow-wrap:anywhere}.estimate-document-items th{background:#eff4ff}.estimate-document-totals{width:min(290px,100%);margin:15px 0 0 auto}.estimate-document-totals p{display:flex;justify-content:space-between;gap:14px;margin:0;padding:6px 0;font-size:11px}.estimate-document-totals .estimate-document-grand-total{margin-top:4px;padding:9px;border-top:2px solid #1e3a8a;background:#eff4ff;font-size:13px;font-weight:700}.estimate-document-signatures{display:grid;grid-template-columns:1fr 1fr;gap:45px;margin-top:42px;font-size:11px;text-align:center}.estimate-document-signatures p{margin:0 0 5px}.estimate-document-signatures strong{display:block;min-height:1.2em}.estimate-document-signatures .signature-line{height:30px;margin-top:10px;border-bottom:1px solid #334155}.estimate-preview-page{width:min(1100px,94%);padding-top:30px}.estimate-preview-actions{justify-content:space-between;margin-bottom:20px}.estimate-preview-page .estimate-preview-paper{min-height:297mm}.invoice-editor-page .estimate-editor-card{scroll-margin-top:1rem}.invoice-payment{margin-top:1.25rem;padding-top:.8rem;border-top:1px solid #d8dce4;color:#263247}.invoice-payment p{margin:.35rem 0}.invoice-document .estimate-document-heading h1{letter-spacing:.02em}.contract-editor-section textarea{min-height:7rem;resize:vertical}.contract-document-section,.memo-document-section{margin:1.25rem 0;color:#263247}.memo-document-section h2{margin:0 0 .45rem;font-size:1rem}.memo-document-copy{white-space:pre-wrap;line-height:1.65;overflow-wrap:anywhere}.contract-document-section h2{margin:0 0 .45rem;font-size:1rem}.contract-document-copy{white-space:pre-wrap;line-height:1.65}.contract-document-dates p,.contract-document-section p{line-height:1.5}@media(max-width:1050px){.estimate-editor-layout{grid-template-columns:minmax(0,1fr)}.estimate-live-preview{position:static;max-height:none}}@media(max-width:600px){.estimate-editor-page{width:94%;padding-top:24px}.estimate-editor-card,.estimate-live-preview{padding:15px}.estimate-editor-items{min-width:650px}.estimate-preview-paper{width:100%;min-height:auto;padding:20px}.estimate-document-heading{flex-direction:column}.estimate-document-business{flex-wrap:wrap}.estimate-business-letterhead,.estimate-document-metadata{text-align:left}.estimate-document-signatures{grid-template-columns:1fr;gap:30px}}@page{size:A4 portrait;margin:12mm 14mm}@media print{html,body,body>#app{width:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;background:#fff!important}body>#app{display:block!important}body>#app>.topbar,body>#app>footer,.estimate-preview-actions,.profile-snapshot-notice{display:none!important}.estimate-preview-page,.estimate-preview-page.dashboard{display:block!important;width:auto!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;background:#fff!important;box-shadow:none!important}.estimate-preview-page .estimate-preview-paper,.estimate-preview-page .estimate-document{width:auto!important;min-height:0!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important;border:0!important;box-shadow:none!important}.estimate-document-business,.estimate-document-heading,.estimate-document-totals,.invoice-payment,.contract-document-section,.memo-document-section,.estimate-document-signatures,.estimate-business-logo{break-inside:avoid;page-break-inside:avoid}.estimate-document-business{flex-wrap:wrap;gap:10px}.estimate-business-letterhead{min-width:0;flex:1 1 160px}.estimate-business-details{min-width:0;max-width:35%;flex:0 1 35%;overflow-wrap:anywhere}.estimate-document-heading{flex-wrap:wrap}.estimate-document-heading h1{min-width:0;overflow-wrap:anywhere}.estimate-document-metadata{min-width:0;max-width:50%}.estimate-document-items{width:100%;table-layout:fixed;break-inside:auto;page-break-inside:auto}.estimate-document-items thead{display:table-header-group}.estimate-document-items tr{break-inside:avoid;page-break-inside:avoid}.estimate-document-items th,.estimate-document-items td{overflow-wrap:anywhere}.estimate-document-signatures{grid-template-columns:1fr 1fr}.estimate-document,.estimate-document *{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
