:root{--color-primary:#0e2d41;--color-accent:#a34a0c;--color-accent-hover:#8a3e0a;--color-accent-on-dark:#f0913f;--color-surface:#fff;--color-muted:#f7f5f0;--color-teal:#326963;--color-border:#e5e5e0;--color-text:#1a1a1a;--color-text-muted:#556270;--color-cream:#fff8ef;--color-border-warm:#f0ddc6;--color-whatsapp:#075e54;--color-whatsapp-hover:#054c44;--color-success:#166534;--color-success-light:#f0fdf4;--color-success-border:#bbf7d0;--color-warning:#92400e;--color-warning-light:#fffbeb;--color-warning-border:#fde68a;--color-danger:#dc2626;--color-danger-light:#fef2f2;--color-danger-border:#fecaca;--color-water:#8bb8d0;--color-water-light:#a8d4e8;--color-water-label:#7a9bb5;--color-district-inactive:#e8e8e4;--color-district-stroke:#d0d0cc;--shadow-accent-glow:0 1px 2px #a34a0c33, 0 4px 12px #a34a0c40, 0 8px 24px #a34a0c26;--text-heading-3:1.25rem;--text-heading-3--line-height:1.4;--font-heading:"General Sans", system-ui, sans-serif;--font-body:"Inter Tight", system-ui, sans-serif}@font-face{font-family:General Sans;src:url(/assets/general-sans-medium-C2ucJIwG.woff2)format("woff2");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:General Sans;src:url(/assets/general-sans-semibold-CJIwQqfU.woff2)format("woff2");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:General Sans;src:url(/assets/general-sans-bold-dlJ4aeRS.woff2)format("woff2");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:Inter Tight;src:url(/assets/inter-tight-latin-ext-BIlDi9F-.woff2)format("woff2");font-weight:400 600;font-style:normal;font-display:swap;unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Tight;src:url(/assets/inter-tight-latin-4AtXCUT1.woff2)format("woff2");font-weight:400 600;font-style:normal;font-display:swap;unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{box-sizing:border-box}:root{font-family:var(--font-body);color:var(--color-text);background:var(--color-muted);font-size:18px;line-height:1.5}body{margin:0}button,input,textarea,select{font:inherit}button,.button,input,select,summary{min-height:48px}button,.button{background:var(--color-accent);color:#fff;cursor:pointer;text-align:center;border:2px solid #0000;border-radius:9px;justify-content:center;align-items:center;gap:.5rem;padding:.7rem 1.2rem;font-weight:600;line-height:1.35;text-decoration:none;display:inline-flex}button:disabled{opacity:.55;cursor:default}button.secondary,.button.secondary{background:var(--color-surface);color:var(--color-primary);border-color:#6d7c85}:focus-visible{outline:3px solid var(--color-accent);outline-offset:3px}a{color:var(--color-accent)}h1,h2,h3,h4,.field-label{font-family:var(--font-heading);color:var(--color-primary);line-height:1.3}h1{margin:.2rem 0 .8rem;font-size:clamp(1.8rem,4vw,2.4rem)}h2{margin:0 0 1rem;font-size:1.4rem}h3{margin:0 0 .8rem;font-size:1.12rem}h4{margin:0 0 .6rem;font-size:1rem}p{margin:.4rem 0 1rem}.app-header{background:var(--color-surface);border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;gap:1rem;padding:1.2rem max(1.2rem,50vw - 560px);display:flex}.app-header img{max-width:60vw;height:auto}.app-header span{color:var(--color-primary);font-weight:600}main{max-width:1120px;margin:auto;padding:0 1.3rem 4rem}.practice-banner{text-align:center;color:var(--color-warning);background:var(--color-warning-light);border-bottom:2px solid var(--color-warning);margin:0;padding:.8rem 1.2rem;font-weight:600}.workspace-bar,.page-title{justify-content:space-between;align-items:center;gap:1rem;padding:1rem 0;display:flex}.workspace-bar{color:var(--color-text-muted);font-size:.9rem}.workspace-bar p{margin:0}.eyebrow{color:var(--color-text-muted);margin:0}.card,details{border:1px solid var(--color-border);background:var(--color-surface);border-radius:12px;margin:1.1rem 0;padding:1.4rem}.login{max-width:620px;margin:3rem auto}.grid,.data-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.4rem;display:grid}label{flex-direction:column;gap:.4rem;margin-bottom:1rem;font-weight:500;display:flex}input,textarea,select{background:var(--color-surface);width:100%;min-width:0;color:var(--color-text);border:1.5px solid #6d7c85;border-radius:7px;padding:.65rem .75rem}textarea{resize:vertical;min-height:100px}input:disabled,textarea:disabled,select:disabled{background:var(--color-muted);color:var(--color-text-muted)}input[type=number]{font-variant-numeric:tabular-nums}.phase-fields,fieldset{border:0;min-width:0;margin:0;padding:0}fieldset.card{border:1px solid var(--color-border);padding:1.4rem}details{padding:0;overflow:hidden}summary{font-family:var(--font-heading);color:var(--color-primary);cursor:pointer;padding:1.1rem 1.4rem;font-size:1.15rem;font-weight:600;display:list-item}details[open] summary{border-bottom:1px solid var(--color-border)}.section-body{padding:1.4rem}.subsection{border-top:1px solid var(--color-border);margin-top:1rem;padding-top:1.2rem}.actions{flex-wrap:wrap;gap:.75rem;margin:1rem 0;display:flex}.hint,small{color:var(--color-text-muted);font-size:.9rem}small{font-weight:400;display:block}.phase-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;display:grid}.phase-nav button{flex-direction:column}.phase-nav .current{background:var(--color-primary)}.phase-nav .current small{color:#fff}.save-status{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;padding:1rem 0;display:flex}.saved-label{color:var(--color-success)}.error,.notice,.success{overflow-wrap:anywhere;border:1px solid;border-radius:8px;margin:1rem 0;padding:1rem 1.2rem}.error{color:#9b1c1c;background:var(--color-danger-light);border-color:#d99b9b}.notice{color:var(--color-warning);background:var(--color-warning-light);border-color:var(--color-warning-border)}.success{color:var(--color-success);background:var(--color-success-light);border-color:var(--color-success-border)}.error p:last-child,.notice p:last-child,.success p:last-child{margin-bottom:0}.error button{margin:.5rem}.choice{cursor:pointer;flex-direction:row;align-items:center;gap:.8rem;min-height:56px;margin:.3rem 0;display:flex}.choice input{width:28px;height:28px;min-height:28px;accent-color:var(--color-primary);flex-shrink:0;margin:10px}.file-input{display:none}.photo-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin:.7rem 0;display:grid}.photo-grid img{aspect-ratio:4/3;object-fit:contain;background:var(--color-muted);border-radius:8px;width:100%;max-height:360px;display:block}.signature{margin:1rem 0}.signature canvas{background:var(--color-surface);touch-action:none;border:2px solid #6d7c85;border-radius:10px;width:100%;height:250px;display:block}.field-label{font-size:1.2rem;font-weight:600}.bottom-actions{padding:1rem 0}.bottom-actions button{min-width:240px}.order-list{gap:.7rem;display:grid}.order-row{text-align:left;justify-content:space-between;gap:1rem;width:100%;padding:1rem}.order-row>span:last-child{font-size:.95rem}form>button{margin-bottom:1rem}.summary-section{border-top:1px solid var(--color-border);margin-top:1.4rem;padding-top:1.2rem}.summary-row{background:var(--color-muted);border-radius:8px;margin:.7rem 0;padding:1rem}dl{margin:0}dl>div{margin-bottom:.7rem}dt{color:var(--color-text-muted);font-size:.9rem}dd{white-space:pre-wrap;overflow-wrap:anywhere;margin:.2rem 0 0}.summary-sites{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;display:grid}.summary-sites .data-grid{grid-template-columns:1fr;gap:.1rem}.damage-summary{margin:1rem 0}.confirmation-text{background:var(--color-cream);border:1px solid var(--color-border-warm);white-space:pre-wrap;border-radius:8px;margin:1.4rem 0;padding:1.2rem}.saved-signature svg{background:var(--color-surface);border:1px solid var(--color-border);width:100%;max-height:200px}.customer-view{padding-top:2rem}.pdf-frame{background:var(--color-muted);border:1px solid #6d7c85;border-radius:8px;width:100%;height:700px}.mail-body{white-space:pre-wrap;background:var(--color-muted);overflow-wrap:anywhere;border-radius:8px;padding:1rem}@media (width<=640px){:root{font-size:17px}main{padding:0 .8rem 3rem}.app-header{padding:1rem}.app-header span{display:none}.card,.section-body,fieldset.card{padding:1rem}.grid,.summary-sites{grid-template-columns:1fr}.data-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.actions{flex-direction:column}.actions button{width:100%}.order-row{flex-direction:column;align-items:flex-start}.phase-nav{gap:.5rem}.phase-nav button{padding:.8rem .5rem}.pdf-frame{height:500px}}@media (prefers-reduced-motion:no-preference){button,.button{transition:background .15s}}@media print{.workspace-bar,button,.phase-nav,.bottom-actions{display:none}main{max-width:none;padding:0}.card{break-inside:avoid}}input[aria-invalid=true],textarea[aria-invalid=true],select[aria-invalid=true]{border:2px solid #9b1c1c}.field-error{color:#9b1c1c;font-weight:600}.content-summary dt{overflow-wrap:anywhere}#pdf-versand{scroll-margin-top:1rem}.historical-summary .snapshot-summary{border:0;margin:0;padding:0}.field-error-link{min-height:48px;color:inherit;align-items:center;display:inline-flex}.required-marker:after{content:" *"}.order-section{margin:1rem 0 2.6rem}.order-search{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.75rem;margin-bottom:1.2rem;display:grid}.order-search label,.order-search>button{margin:0}.order-search label{font-size:.9rem}.document-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:1.2rem;margin:1rem 0;display:grid}.document-card{background:var(--color-surface);min-width:0;min-height:330px;color:var(--color-primary);text-align:left;overflow-wrap:anywhere;box-shadow:0 3px 0 -1px var(--color-surface), 0 4px 0 -1px var(--color-border);border:1px solid #6d7c85;border-radius:3px;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:0;padding:1.2rem;font-weight:400;line-height:1.4;display:flex;position:relative}.document-card:before{content:"";background:linear-gradient(45deg, var(--color-border) 49%, #6d7c85 50%, var(--color-muted) 53%);border-bottom-left-radius:2px;width:1.25rem;height:1.25rem;position:absolute;top:-1px;right:-1px}.document-card:active:not(:disabled){background:var(--color-cream)}.document-card-heading{border-bottom:1px solid var(--color-border);flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.3rem .6rem;padding:0 .65rem .65rem 0;display:flex}.document-card-kind{color:var(--color-text-muted);letter-spacing:.035em;text-transform:uppercase;font-size:.75rem;font-weight:600}.document-card-number{font-size:.9rem}.document-card-customer{font-family:var(--font-heading);margin:.8rem 0 .9rem;font-size:1.12rem;font-weight:600}.document-card-label{color:var(--color-text-muted);font-size:.8rem;font-weight:400;display:block}.document-card-date{margin-bottom:1rem}.document-card-date>strong{font-family:var(--font-heading);margin-top:.15rem;font-size:1.25rem;font-weight:600;display:block}.document-card-route{gap:.65rem;margin-bottom:1.2rem;display:grid}.document-card-route>span{grid-template-columns:2.5rem minmax(0,1fr);align-items:baseline;gap:.35rem;display:grid}.document-card-route strong{font-size:1rem;font-weight:500}.document-card-footer{border-top:1px solid var(--color-border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.4rem .7rem;margin-top:auto;padding-top:.8rem;font-size:.85rem;display:flex}.workflow-icon{flex:none;width:1.4rem;height:1.4rem}.phase-nav-label,.document-card-stage{align-items:center;gap:.45rem;display:inline-flex}.document-card-stage{color:var(--color-text-muted)}.completed-reports{margin-top:2.6rem}.completed-reports h2{align-items:center;gap:.45rem;display:flex}.completed-reports h2 .workflow-icon,.document-card[data-complete] .document-card-stage{color:var(--color-success)}.document-card-action{color:var(--color-accent);margin-left:auto;font-weight:600}@media (width<=420px){.order-search{grid-template-columns:minmax(0,1fr)}.order-search>button{justify-self:start}}.save-status{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1rem;min-height:84px;padding:.7rem 0;display:grid}.pdf-preview-region{background:var(--color-muted);border-radius:8px;height:700px;margin-top:1rem;overflow:auto}.pdf-preview-region>p,.pdf-preview-region>.error{margin:1rem}.pdf-preview-region .pdf-frame{height:100%;display:block}.pdf-preview-actions{min-height:48px}@media (width<=640px){.save-status{grid-template-columns:1fr;gap:.4rem}.save-status>span{min-height:1.5em}.pdf-preview-region{height:500px}}[hidden]{display:none!important}.section-nav{flex-wrap:wrap;gap:.6rem;margin:1rem 0;display:flex}.section-nav .button{padding:.65rem .9rem;font-size:.9rem}[id^=edit-],.summary-sites,.summary-section,.confirmation-text,#customer-signature,.order-section h2{scroll-margin-top:1rem}summary:focus-visible{outline-offset:-4px;border-radius:10px}h1[tabindex="-1"]:focus{outline:none}.button[aria-disabled=true]{opacity:.55;cursor:default;pointer-events:none}.signature canvas[aria-disabled=true]{background:var(--color-muted);cursor:wait;touch-action:pan-y;border-style:dashed}.order-search input{font-size:1rem}.phase-fields label{color:var(--color-text-muted);font-size:.9rem}.phase-fields input,.phase-fields textarea,.phase-fields select{color:var(--color-text);font-size:1rem;font-weight:400}.confirmation-text p,.mail-body{max-inline-size:70ch}.local-backup{margin:1rem 0}.conflict-recovery>button{margin:.5rem .5rem .5rem 0}.conflict-columns>section{min-width:0}.technical-details{padding:0}@media (width>=641px) and (width<=1199px){.document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=1000px){.conflict-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;display:grid}}@media (width<=640px){.document-grid{grid-template-columns:minmax(0,1fr)}}@media (hover:hover) and (pointer:fine){button:hover:not(:disabled),.button:hover:not([aria-disabled=true]){background:var(--color-accent-hover)}button.secondary:hover:not(:disabled),.button.secondary:hover:not([aria-disabled=true]){background:var(--color-muted)}.document-card:hover:not(:disabled){background:var(--color-surface);border-color:var(--color-accent);box-shadow:0 3px 0 -1px var(--color-surface), 0 4px 0 -1px var(--color-accent)}}button:active:not(:disabled),.button:active:not([aria-disabled=true]){background:var(--color-accent-hover)}button.secondary:active:not(:disabled),.button.secondary:active:not([aria-disabled=true]),.document-card:active:not(:disabled){background:var(--color-cream)}
