:root{--bg:#f1f5f9;--card:#fff;--text:#0f172a;--muted:#64748b;--border:#dbe3ec;--accent:#0f172a;--success-bg:#ecfdf5;--success-border:#a7f3d0;--success-text:#065f46;--error-bg:#fef2f2;--error-border:#fecaca;--error-text:#991b1b;--warning-bg:#fffbeb;--warning-border:#fde68a;--warning-text:#92400e}*{box-sizing:border-box}body,html{padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--text);background:var(--bg)}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}button,input,select{font:inherit}.page{min-height:100vh;padding:16px}.container{max-width:1280px;margin:0 auto}.stack-6>*+*{margin-top:24px}.card{background:var(--card);border:1px solid var(--border);border-radius:24px;box-shadow:0 1px 3px rgba(15,23,42,.06)}.card-body{padding:24px}.header-grid{display:grid;grid-template-columns:1fr;grid-gap:20px;gap:20px;align-items:start}.header-left>*+*{margin-top:16px}.header-right{width:100%;max-width:320px;justify-self:end}.badge-box{border:1px solid var(--border);background:#fff;border-radius:18px;padding:14px 16px;max-width:360px}.muted{color:var(--muted)}.title-xl{font-size:28px;font-weight:700}.title-lg{font-size:20px;font-weight:700}.title-md{font-size:18px;font-weight:700}.instructions{border:1px solid var(--border);background:#f8fafc;border-radius:18px;padding:16px;line-height:1.5}.images-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:8px;gap:8px}.image-card{position:relative;overflow:hidden;border-radius:18px;border:1px solid var(--border);background:#fff}.image-card img{aspect-ratio:1/1;object-fit:cover;width:100%}.image-label{font-size:12px;color:var(--muted);padding:8px 10px;border-top:1px solid var(--border)}.image-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(15,23,42,.55);color:#fff;font-size:24px;font-weight:700}.alert{display:flex;gap:12px;border-radius:18px;padding:14px 16px;border:1px solid var(--border)}.alert.success{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}.alert.error{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.alert.warning{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}.group-card{overflow:hidden}.group-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--border)}.group-pill{border:1px solid var(--border);background:#f8fafc;border-radius:12px;padding:8px 10px;font-size:12px;color:var(--muted)}.table-wrap{overflow-x:auto}.capture-table{width:100%;border-collapse:collapse;font-size:14px}.capture-table thead th{position:-webkit-sticky;position:sticky;top:0;z-index:1;background:#f8fafc;color:#334155;text-align:left;font-weight:600}.capture-table td,.capture-table th{border-bottom:1px solid var(--border);padding:12px;vertical-align:top}.capture-table tbody tr:nth-child(2n){background:rgba(248,250,252,.7)}.capture-table tbody tr:hover{background:#f8fafc}.cell-input,.cell-select{width:100%;min-width:96px;border:1px solid var(--border);border-radius:12px;padding:10px 12px;background:#fff}.cell-input.small{max-width:90px}.cell-input.medium,.cell-select.medium{min-width:140px}.cell-select.large{min-width:160px}.cell-input:disabled,.cell-select:disabled{background:#f1f5f9;color:#64748b}.status-inline{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.dot{width:10px;height:10px;border-radius:999px}.dot.ok{background:#10b981}.dot.pending{background:#f59e0b}.sticky-bar{position:-webkit-sticky;position:sticky;bottom:0;margin-top:24px;border-top:1px solid var(--border);background:hsla(0,0%,100%,.96);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.sticky-inner{max-width:1280px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px}.actions{display:flex;gap:12px}.btn{border-radius:16px;padding:11px 16px;border:1px solid var(--border);background:#fff;cursor:pointer;font-weight:600}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn:disabled{opacity:.55;cursor:not-allowed}.empty-state{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.empty-card{max-width:720px}.home{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.home-box{max-width:720px;text-align:center}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}@media (min-width:768px){.page{padding:24px}.header-grid{grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr)}}.quote-page{background:#eef2f7}.quote-shell{max-width:1380px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr);grid-gap:24px;gap:24px;align-items:start}.quote-paper{padding:28px;background:#fff;border-radius:18px}.quote-header{display:flex;justify-content:space-between;gap:24px;border-bottom:2px solid #0f172a;padding-bottom:18px}.quote-brand{display:flex;gap:18px;align-items:center}.quote-logo{width:140px;height:auto}.quote-header h1{margin:2px 0 8px;font-size:32px;line-height:1}.quote-status{display:inline-flex;border:1px solid var(--border);border-radius:999px;padding:5px 10px;font-size:12px;font-weight:700;background:#f8fafc}.quote-status.ok{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}.quote-status.danger{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.quote-meta{min-width:260px;font-size:14px;line-height:1.8}.quote-meta span{color:var(--muted);display:inline-block;min-width:96px}.quote-intro{display:grid;grid-template-columns:.7fr 1fr;grid-gap:20px;gap:20px;margin:24px 0;align-items:start}.quote-client-name{font-size:20px;font-weight:700}.quote-section{margin-top:24px}.quote-section h2,.quote-terms h2{font-size:16px;text-transform:uppercase;letter-spacing:.04em;margin:0 0 12px}.quote-images{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:12px;gap:12px}.quote-image-card{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff}.quote-image-card img{width:100%;aspect-ratio:1/1;object-fit:cover}.quote-table{width:100%;border-collapse:collapse;font-size:14px}.quote-table th{background:#0f172a;color:#fff;text-align:left;padding:10px}.quote-table td{border-bottom:1px solid var(--border);padding:10px;vertical-align:top}.quote-table .number{text-align:right;white-space:nowrap}.quote-totals{display:grid;grid-template-columns:1fr 300px;grid-gap:24px;gap:24px;margin-top:24px;align-items:start}.quote-terms{border:1px solid var(--border);border-radius:14px;padding:16px;background:#f8fafc}.preline{white-space:pre-line;line-height:1.55}.quote-advance{margin-top:12px}.totals-card{border:1px solid var(--border);border-radius:14px;padding:16px;background:#fff}.totals-card>div{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid var(--border)}.totals-card .total-row{border-bottom:0;font-size:20px}.totals-card p{margin:10px 0 0}.quote-footer,.totals-card p{color:var(--muted);font-size:12px}.quote-footer{margin-top:28px;border-top:1px solid var(--border);padding-top:14px;line-height:1.5}.quote-actions{display:grid;grid-gap:16px;gap:16px}.action-card{display:grid;grid-gap:14px;gap:14px}.action-card .btn{width:100%}.action-block{display:grid;grid-gap:14px;gap:14px;padding-top:14px;border-top:1px solid var(--border)}.check-row{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.4}.segmented{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px;gap:8px}.segmented button{border:1px solid var(--border);background:#fff;border-radius:12px;padding:10px;cursor:pointer;font-weight:700}.segmented button.active{background:#0f172a;color:#fff;border-color:#0f172a}.payment-box{border:1px solid var(--border);border-radius:14px;padding:14px;background:#f8fafc}.invoice-note{margin-top:12px;padding-top:12px;border-top:1px solid var(--border);color:#334155}.upload-box{display:grid;grid-gap:8px;gap:8px;border:1px dashed #94a3b8;border-radius:14px;padding:14px;cursor:pointer;text-align:center;background:#f8fafc}.upload-box input{width:100%}.quote-textarea{width:100%;min-height:120px;border:1px solid var(--border);border-radius:14px;padding:12px;resize:vertical}@media (min-width:1100px){.quote-shell{grid-template-columns:minmax(0,1fr) 360px}.quote-actions{position:-webkit-sticky;position:sticky;top:20px}}@media (max-width:760px){.quote-paper{padding:18px}.quote-header,.quote-intro,.quote-totals{grid-template-columns:1fr;display:grid}.quote-header{display:grid}.quote-brand{align-items:flex-start}.quote-logo{width:110px}.quote-images{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{body,html{background:#fff!important}.no-print,.sticky-bar{display:none!important}.page{padding:0!important;background:#fff!important}.quote-shell{display:block!important;max-width:none!important}.quote-paper{border:0!important;box-shadow:none!important;border-radius:0!important;padding:.35in!important}.quote-header h1{font-size:26px}.quote-logo{width:118px}.quote-table{font-size:11px}.quote-table td,.quote-table th{padding:6px}.no-print-break,.quote-section,.quote-totals{page-break-inside:avoid}.no-print-break{break-inside:avoid}.quote-images{grid-template-columns:repeat(4,1fr);gap:8px}.quote-footer{font-size:10px}}.quote-v2-page{min-height:100vh;background:#f8fafc;color:#0f172a;padding:24px 16px}.quote-v2-shell{max-width:1280px;margin:0 auto;display:grid;grid-gap:20px;gap:20px}.quote-v2-card,.quote-v2-footer,.quote-v2-header-card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;box-shadow:0 8px 28px rgba(15,23,42,.04)}.quote-v2-header-card{position:relative;overflow:hidden}.quote-v2-header-inner{min-height:132px;display:flex;align-items:center;justify-content:space-between;gap:32px;padding:28px 180px 28px 44px}.quote-v2-header-status{position:absolute;right:34px;top:28px;z-index:2}.quote-v2-logo{width:180px;height:auto;display:block}.quote-v2-header-title{text-align:right}.quote-v2-header-title>div{font-size:36px;line-height:1;font-weight:800;letter-spacing:-.04em;color:#0f172a}.quote-v2-header-title strong{display:block;margin-top:8px;color:#c7282f;font-size:24px;letter-spacing:.02em}.quote-v2-status{display:inline-flex;align-items:center;gap:10px;background:#f3f4f6;color:#334155;border-radius:999px;padding:9px 15px;font-size:13px;font-weight:800}.quote-v2-status span{width:8px;height:8px;border-radius:999px;background:#64748b}.quote-v2-status.ok{background:#ecfdf5;color:#047857}.quote-v2-status.ok span{background:#10b981}.quote-v2-status.danger{background:#fef2f2;color:#b91c1c}.quote-v2-status.danger span{background:#ef4444}.quote-v2-alert{border:1px solid #e5e7eb;border-radius:18px;padding:14px 16px;background:#fff;color:#334155;font-weight:600}.quote-v2-alert.success{background:#ecfdf5;border-color:#bbf7d0;color:#047857}.quote-v2-alert.error{background:#fef2f2;border-color:#fecaca;color:#b91c1c}.quote-v2-alert.warning{background:#fffbeb;border-color:#fde68a;color:#92400e}.quote-v2-info-grid{display:grid;grid-gap:20px;gap:20px;grid-template-columns:minmax(0,.7fr) minmax(280px,.3fr)}.quote-v2-actions-card,.quote-v2-changes-card,.quote-v2-client-card,.quote-v2-date-card,.quote-v2-detail-card,.quote-v2-financial-card,.quote-v2-images-card,.quote-v2-invoice-card,.quote-v2-terms-card{padding:24px}.quote-v2-section-kicker{margin-bottom:16px;color:#64748b;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.quote-v2-client-fields{display:grid;grid-gap:18px;gap:18px;grid-template-columns:repeat(2,minmax(0,1fr))}.quote-v2-client-fields span,.quote-v2-date-card span{display:block;color:#94a3b8;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.quote-v2-client-fields strong{display:block;margin-top:6px;color:#0f172a;font-size:15px;line-height:1.35}.quote-v2-client-fields div:first-child strong{font-size:20px}.quote-v2-date-card strong{display:block;margin-top:6px;color:#0f172a;font-size:15px;line-height:1.45}.quote-v2-date-divider{margin-top:18px;padding-top:18px;border-top:1px solid #e5e7eb}.quote-v2-date-divider strong{color:#c7282f}.quote-v2-card-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.quote-v2-actions-card h2,.quote-v2-card-title-row h2,.quote-v2-changes-card h2,.quote-v2-financial-card h2,.quote-v2-images-card h2,.quote-v2-invoice-card h2,.quote-v2-terms-card h2{margin:0;color:#0f172a;font-size:18px;font-weight:900;letter-spacing:-.01em}.quote-v2-card-title-row span{color:#64748b;font-size:14px;font-weight:600}.quote-v2-table-wrap{overflow-x:auto;border:1px solid #e5e7eb;border-radius:14px}.quote-v2-table{width:100%;border-collapse:collapse;font-size:13px;min-width:860px}.quote-v2-table thead th{background:#f1f5f9;color:#475569;padding:12px 14px;text-align:left;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.quote-v2-table td:first-child,.quote-v2-table th:first-child{width:46px;text-align:center;color:#94a3b8;font-weight:700}.quote-v2-table td:nth-child(4),.quote-v2-table th:nth-child(4){text-align:center}.quote-v2-table td:nth-child(5),.quote-v2-table td:nth-child(6),.quote-v2-table th:nth-child(5),.quote-v2-table th:nth-child(6){text-align:right;white-space:nowrap}.quote-v2-table tbody tr:nth-child(2n){background:rgba(248,250,252,.85)}.quote-v2-table td{border-top:1px solid #eef2f7;padding:11px 14px;color:#475569;vertical-align:top}.quote-v2-table td:nth-child(2),.quote-v2-table td:nth-child(6){color:#0f172a;font-weight:800}.quote-v2-financial-card h2{margin-bottom:16px}.quote-v2-financial-grid{display:grid;grid-gap:20px;gap:20px;grid-template-columns:repeat(3,minmax(0,1fr))}.quote-v2-financial-grid.has-iva{grid-template-columns:repeat(4,minmax(0,1fr))}.quote-v2-financial-box{border:1px solid #e5e7eb;border-radius:16px;background:#fff;padding:20px}.quote-v2-financial-box span{display:block;color:#64748b;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.quote-v2-financial-box strong{display:block;margin-top:10px;color:#0f172a;font-size:24px;font-weight:900;letter-spacing:-.03em}.quote-v2-financial-box small{color:#334155;font-size:13px;letter-spacing:0}.quote-v2-financial-box.total{position:relative}.quote-v2-financial-box.total:before{content:"";position:absolute;left:0;top:22px;width:4px;height:48px;background:#c7282f;border-radius:0 999px 999px 0}.quote-v2-financial-box.total strong{color:#c7282f;padding-left:10px;font-size:28px}.quote-v2-financial-box.advance{background:rgba(199,40,47,.05);border-color:rgba(199,40,47,.16)}.quote-v2-money-note{margin:14px 0 0;color:#64748b;font-size:12px}.quote-v2-images-card h2{margin-bottom:18px}.quote-v2-images-grid{display:grid;grid-gap:20px;gap:20px;grid-template-columns:repeat(4,minmax(0,1fr))}.quote-v2-images-grid.count-1{grid-template-columns:minmax(0,1fr)}.quote-v2-images-grid.count-2{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-v2-images-grid.count-3{grid-template-columns:repeat(3,minmax(0,1fr))}.quote-v2-image-tile{margin:0}.quote-v2-image-tile img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:16px;border:1px solid #e5e7eb;background:#f8fafc}.quote-v2-image-tile figcaption{margin-top:8px;color:#475569;font-size:12px;font-weight:800;text-align:center}.quote-v2-terms-actions-grid{display:grid;grid-gap:20px;gap:20px;grid-template-columns:minmax(0,.65fr) minmax(320px,.35fr);align-items:start}.quote-v2-actions-card h2,.quote-v2-terms-card h2{margin-bottom:16px}.quote-v2-terms-text{white-space:pre-line;color:#475569;font-size:14px;line-height:1.65}.quote-v2-actions-card h2{padding-bottom:12px;border-bottom:1px solid rgba(199,40,47,.45)}.quote-v2-check-row{display:flex;gap:10px;align-items:flex-start;margin:16px 0;color:#475569;font-size:14px;line-height:1.45}.quote-v2-check-row input{margin-top:2px;accent-color:#c7282f}.quote-v2-check-row strong{color:#c7282f}.quote-v2-button{width:100%;min-height:43px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;border:1px solid rgba(199,40,47,.45);padding:10px 14px;background:#fff;color:#334155;cursor:pointer;font-weight:800;transition:.15s ease;margin-top:10px}.quote-v2-button.primary{background:#c7282f;border-color:#c7282f;color:#fff;box-shadow:0 8px 18px rgba(199,40,47,.14)}.quote-v2-button.outline:hover{background:rgba(199,40,47,.05);border-color:#c7282f}.quote-v2-button:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}.quote-v2-button.upload{cursor:pointer}.quote-v2-button.upload input{display:none}.quote-v2-mini-success{margin-top:16px;border:1px solid #bbf7d0;background:#ecfdf5;color:#047857;border-radius:14px;padding:12px;font-size:14px;font-weight:700}.quote-v2-muted-note{margin-top:10px;color:#64748b;font-size:13px}.quote-v2-invoice-head{display:flex;align-items:center;gap:20px;margin-bottom:20px}.quote-v2-invoice-toggle{display:flex;gap:10px}.quote-v2-invoice-toggle button{min-width:74px;border:1px solid rgba(199,40,47,.4);background:#fff;color:#334155;border-radius:12px;padding:10px 20px;font-weight:800;cursor:pointer}.quote-v2-invoice-toggle button.active{background:#c7282f;border-color:#c7282f;color:#fff}.quote-v2-invoice-grid{display:grid;grid-gap:28px;gap:28px;grid-template-columns:minmax(0,.38fr) minmax(0,.62fr)}.quote-v2-invoice-grid>div+div{border-left:1px solid #e5e7eb;padding-left:28px}.quote-v2-invoice-grid h3{margin:0 0 8px;color:#0f172a;font-size:14px;font-weight:900}.quote-v2-invoice-grid p{margin:0 0 9px;color:#475569;font-size:14px;line-height:1.55}.quote-v2-invoice-grid strong{color:#c7282f}.quote-v2-preline{white-space:pre-line;color:#334155;font-size:14px;line-height:1.55}.quote-v2-changes-card textarea{width:100%;min-height:120px;margin-top:14px;border:1px solid #e5e7eb;border-radius:14px;padding:12px;resize:vertical}.quote-v2-footer{display:grid;grid-gap:10px;gap:10px;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:center;padding:20px 24px;color:#475569;font-size:13px;line-height:1.5}.quote-v2-footer p{margin:0}.quote-v2-footer p:last-child{font-weight:700;text-align:right}@media (max-width:900px){.quote-v2-header-inner{padding:64px 24px 24px;flex-direction:column;align-items:flex-start}.quote-v2-header-title{text-align:left}.quote-v2-client-fields,.quote-v2-financial-grid,.quote-v2-financial-grid.has-iva,.quote-v2-footer,.quote-v2-images-grid,.quote-v2-images-grid.count-2,.quote-v2-images-grid.count-3,.quote-v2-info-grid,.quote-v2-invoice-grid,.quote-v2-terms-actions-grid{grid-template-columns:1fr}.quote-v2-invoice-grid>div+div{border-left:0;border-top:1px solid #e5e7eb;padding-left:0;padding-top:20px}.quote-v2-footer p:last-child{text-align:left}}@media print{.quote-v2-page{padding:0;background:#fff}.quote-v2-shell{max-width:none;gap:12px}.quote-v2-card,.quote-v2-footer,.quote-v2-header-card{box-shadow:none;border-radius:10px;page-break-inside:avoid;break-inside:avoid}.quote-v2-header-inner{min-height:80px;padding:14px 140px 14px 18px}.quote-v2-logo{width:120px}.quote-v2-header-title>div{font-size:24px}.quote-v2-header-title strong{font-size:16px}.no-print,.quote-v2-actions-card,.quote-v2-changes-card,.quote-v2-invoice-card{display:none!important}.quote-v2-table{font-size:10px;min-width:0}.quote-v2-table td,.quote-v2-table th{padding:5px}.quote-v2-financial-grid,.quote-v2-financial-grid.has-iva,.quote-v2-footer,.quote-v2-images-grid,.quote-v2-info-grid,.quote-v2-terms-actions-grid{grid-template-columns:1fr}.quote-v2-footer p:last-child{text-align:left}}