:root{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#20372f;background:#f5f6f2;font-synthesis:none;--green:#173f35;--muted:#6e7973;--line:#dde3dc;--orange:#ef7a37}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #e87a38;outline-offset:3px}button{min-height:44px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--green);padding:10px 16px;font-weight:600}.primary{background:var(--green);color:white;border-color:var(--green)}.orange{background:var(--orange);color:#23180f;border-color:var(--orange)}.ghost{border:0;background:transparent}.shell{display:grid;grid-template-columns:236px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:32px 22px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;gap:10px;align-items:center;font-size:23px;font-weight:750;letter-spacing:-1px}.brand img{width:36px}.brand small{display:block;font-size:10px;letter-spacing:2px;font-weight:700;color:var(--muted);margin-top:3px}.nav{display:grid;gap:8px;margin-top:44px}.nav button{text-align:left;border:0;background:transparent;color:#6b766e}.nav button.active{background:#eaf1eb;color:var(--green)}.nav span{margin-right:12px;font-size:20px}.side-bottom{margin-top:auto;font-size:12px;color:var(--muted);line-height:1.7}.side-bottom strong{color:var(--green)}.workspace{min-width:0}.topbar{height:85px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;background:#fff;border-bottom:1px solid var(--line)}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.8px;font-weight:700;color:var(--muted)}.profile{display:flex;align-items:center;gap:10px;font-size:13px}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#edf0e9;font-weight:700}.demo{padding:10px 42px;background:#fff6e7;color:#785921;font-size:12px;border-bottom:1px solid #f0e4d0}.main{max-width:1500px;margin:auto;padding:35px 42px 60px}.heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px}h1{font-size:32px;letter-spacing:-1.1px;font-weight:650;margin:6px 0 9px}h2{font-size:18px;letter-spacing:-.3px;margin:0 0 10px}h3{font-size:15px;margin:0 0 6px}p{line-height:1.6}.muted{color:var(--muted);font-size:14px;margin:0}.welcome{background:var(--green);color:white;border-radius:17px;padding:29px 32px;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px;position:relative;overflow:hidden}.welcome h2{font-size:25px;font-weight:550}.welcome p{color:#c7d8cc;font-size:14px;margin:7px 0 0;max-width:530px}.welcome .eyebrow{color:#b7d0bd;margin-bottom:12px}.welcome .primary{background:#fff;color:var(--green);white-space:nowrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}.stat{background:#fff;border:1px solid var(--line);border-radius:13px;padding:21px}.stat strong{display:block;font-size:29px;font-weight:600;letter-spacing:-1px;margin:12px 0 6px}.stat label{font-size:12px;color:var(--muted)}.stat small{font-size:11px;color:var(--muted)}.two-col{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(260px,1fr);gap:24px}.panel{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-bottom:22px}.panel-head{padding:22px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head h2{margin:0}.panel-body{padding:24px}.job-row{display:grid;grid-template-columns:44px 1fr auto;gap:15px;align-items:center;padding:21px 24px;border-bottom:1px solid #edf0eb;cursor:pointer}.job-row:last-child{border:0}.job-row:hover{background:#fafbf8}.job-icon{width:44px;height:44px;border-radius:12px;background:#eef3ee;display:grid;place-items:center;font-size:21px;color:#476151}.job-row h3{font-weight:650}.job-row p{margin:4px 0 0;font-size:12px;color:var(--muted)}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:5px 9px;background:#edf3ed;font-size:11px;color:#356449;font-weight:600;white-space:nowrap}.badge.amber{background:#fff1de;color:#996227}.badge.gray{background:#f0f1ee;color:#626d63}.next{font-size:12px;margin-top:10px;color:#52675b}.task{padding:18px 22px;border-bottom:1px solid #edf0eb;display:flex;gap:12px;align-items:flex-start}.task .dot{height:8px;width:8px;border-radius:50%;background:var(--orange);margin-top:6px;flex-shrink:0}.task p{font-size:12px;color:var(--muted);margin:5px 0}.task button{font-size:12px;min-height:32px;padding:5px 0}.section-title{display:flex;justify-content:space-between;align-items:center;margin:26px 0 14px}.filterbar{display:flex;gap:10px;margin-bottom:20px}.filterbar input{flex:1}.empty{padding:35px;text-align:center;color:var(--muted);line-height:1.6}.tabs{display:flex;gap:8px;overflow:auto;margin:24px 0;scrollbar-width:none}.tabs button{white-space:nowrap;background:transparent;border-color:transparent;color:var(--muted)}.tabs button.active{background:#fff;border-color:var(--line);color:var(--green)}.path{display:flex;gap:4px;margin:20px 0}.path span{flex:1;background:#e3e8df;height:5px;border-radius:4px}.path span.done{background:#5a8460}.check{display:flex;align-items:center;gap:12px;padding:13px 0;font-size:14px}.check input{width:20px;height:20px;accent-color:var(--green);flex-shrink:0}.check label{cursor:pointer}.grid-form{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:grid;gap:7px;font-size:13px;font-weight:600}.field small{font-weight:400;color:var(--muted);line-height:1.5}.full{grid-column:1/-1}input,select,textarea{width:100%;border:1px solid #ccd5cb;border-radius:8px;padding:12px;background:#fff;color:#263e32;min-height:44px}textarea{resize:vertical;min-height:96px}input:focus,textarea:focus,select:focus{outline:2px solid #8dac93;outline-offset:1px}input[type=checkbox]{width:20px;min-height:20px}.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px;flex-wrap:wrap}.notice{background:#f3f6ef;border:1px solid #dce5d6;padding:15px;border-radius:10px;font-size:13px;line-height:1.6;margin:16px 0}.warning{background:#fff6e8;border-color:#efdec3;color:#85632d}.ledger{width:100%;border-collapse:collapse;font-size:13px}.ledger td,.ledger th{text-align:left;border-bottom:1px solid var(--line);padding:14px 12px}.ledger th{color:var(--muted);font-size:11px;font-weight:600}.table-wrap{overflow:auto}.amount{font-variant-numeric:tabular-nums;white-space:nowrap}.line{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #eef0ea;font-size:14px}.line.total{font-size:18px;font-weight:650;border-bottom:0;padding-top:20px}.activity{padding:15px 0;border-bottom:1px solid var(--line);font-size:13px}.activity small{display:block;color:var(--muted);margin-top:5px}.mobile-nav{display:none}dialog{width:min(650px,calc(100% - 28px));max-height:90dvh;border:0;border-radius:18px;padding:28px;color:#20372f;box-shadow:0 24px 90px #10231945}dialog::backdrop{background:#15291f70;backdrop-filter:blur(3px)}dialog h2{font-size:24px}.modal-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.steps{display:flex;gap:8px;margin:24px 0}.steps span{flex:1;padding:9px;border-bottom:3px solid #e3e8df;font-size:12px;color:var(--muted)}.steps span.active{border-color:var(--green);color:var(--green);font-weight:700}.error{color:#a33024;font-size:13px;margin-top:16px;line-height:1.5}.receipt-img{max-width:100%;max-height:280px;border-radius:10px;margin-top:14px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:10;background:#173f35;color:white;padding:14px 22px;border-radius:12px;max-width:90%;box-shadow:0 5px 24px #0002;display:none}.help-list{line-height:1.9;font-size:14px;padding-left:20px}.budget-number{font-size:38px;letter-spacing:-1.4px;font-weight:650;margin:12px 0}.subtle{font-size:12px;color:var(--muted)}a{color:#245d43}.worker-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:16px}
.demo-launch{font-size:12px;padding:3px 10px;min-height:32px}.workflow-intro{display:flex;gap:20px;justify-content:space-between;align-items:center;margin:25px 0}.workflow-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.scope-table{min-width:1000px}.scope-table td:nth-child(2){min-width:220px;max-width:350px}.selection-card{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:22px 0;border-bottom:1px solid var(--line)}.selection-card:last-child{border:0}.selection-card>div{flex:1}.source-text{padding:20px}.source-text pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:500px;overflow:auto;font-size:12px}fieldset{border:1px solid var(--line);border-radius:10px;padding:18px}legend{font-size:14px;font-weight:650;padding:0 8px}details>summary{cursor:pointer;font-weight:650;line-height:1.6}.notice li{margin:7px 0}
@media(max-width:700px){.workflow-intro,.selection-card{display:block}.workflow-intro .badge{margin-top:14px}.workflow-actions button{flex:1;font-size:12px}.selection-card>div+div{margin-top:16px}.stats .stat strong{font-size:23px}}
@media(min-width:1450px){.main{padding-top:42px}.two-col{grid-template-columns:2fr 1fr}}
@media(max-width:1100px){.sidebar{width:190px;padding:28px 15px}.shell{grid-template-columns:190px 1fr}.main{padding:28px 24px}.topbar{padding:0 24px}.demo{padding:10px 24px}.two-col{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:16px}.stat strong{font-size:25px}}
@media(max-width:700px){.shell{display:block}.sidebar{display:none}.topbar{height:65px;padding:0 18px}.main{padding:23px 17px 105px}.demo{padding:9px 18px;font-size:11px}.topbar .eyebrow{letter-spacing:.8px}.profile{font-size:11px}.heading{align-items:flex-start;margin-bottom:20px}h1{font-size:28px}.heading>.primary{font-size:12px;padding:10px 13px;white-space:nowrap}.welcome{padding:23px;display:block}.welcome h2{font-size:23px}.welcome button{margin-top:20px}.stats{grid-template-columns:1fr 1fr;margin:18px 0}.stat strong{font-size:27px}.two-col{gap:0}.panel-head,.panel-body{padding:20px}.job-row{padding:18px 16px;gap:10px;grid-template-columns:36px 1fr}.job-icon{width:36px;height:36px}.job-row>.badge{grid-column:2;justify-self:start}.filterbar{flex-wrap:wrap}.filterbar input{flex-basis:100%}.filterbar select{width:100%}.grid-form{grid-template-columns:1fr}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);padding:8px 8px max(8px,env(safe-area-inset-bottom));z-index:3;justify-content:space-around}.mobile-nav button{border:0;display:grid;gap:4px;place-items:center;font-size:10px;padding:5px 14px;color:var(--muted)}.mobile-nav button span{font-size:20px}.mobile-nav button.active{color:var(--green);background:#eef4eb}.worker-actions{grid-template-columns:1fr 1fr}.tabs{gap:0}.tabs button{padding:10px 13px;font-size:13px}dialog{padding:22px}#toast{bottom:90px}.steps span{padding:8px 4px;font-size:11px}.ledger td,.ledger th{padding:12px 8px}.panel-head button{font-size:12px}}

.financial-review{border-top:1px solid #ddd;padding:20px 0}.financial-review details{margin:12px 0}.financial-review pre{max-height:240px;overflow:auto}.financial-review form{max-width:650px}

.gantt-scroll{overflow:auto;max-width:100%;border:1px solid #dce4d9;border-radius:12px;margin:20px 0;background:#fff}.gantt{display:block;max-width:none;font:12px system-ui;fill:#24432c}.gantt-grid{stroke:#e3eadd;stroke-width:1}.gantt-heading{font-weight:700}.gantt-day{font-size:10px;fill:#66776b}.gantt-bar{fill:#60b82d;cursor:grab;touch-action:none}.gantt-bar:focus{outline:3px solid #174724}.gantt-bar:active{cursor:grabbing}.gantt-bar.complete{fill:#8faa80}
.field[hidden]{display:none!important}

.correspondence-shortcuts{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0 16px}.correspondence-shortcuts button{background:#eef6e8;border-color:#60b82d;color:#173f35}.correspondence-shortcuts button:hover{background:#deedcf}[data-correspondence-editor]{scroll-margin-top:20px;margin-bottom:12px}

.table-scroll{overflow-x:auto}
@media print{body.printing-year .sidebar,body.printing-year .topbar,body.printing-year .shared-status,body.printing-year .mobile-nav,body.printing-year .main>:not([data-year-report]),body.printing-year [data-year-report]>:not(.year-print-summary){display:none!important}body.printing-year .shell,body.printing-year .workspace{display:block!important;margin:0!important}body.printing-year .main{padding:0!important}body.printing-year .year-print-summary table{width:100%;font-size:10pt}body.printing-year .year-print-summary tr{break-inside:avoid}body.printing-year .year-print-summary thead{display:table-header-group}body.printing-year .table-scroll{overflow:visible}}

@media print{body.printing-year .workspace>:not(.main),body.printing-year #toast{display:none!important}body.printing-year .year-print-summary th,body.printing-year .year-print-summary td{padding:6px;border-bottom:1px solid #ccc;text-align:left}body.printing-year .year-print-summary table{border-collapse:collapse}}

.job-shortcuts{margin:0 0 18px}.job-shortcut-buttons{display:flex;flex-wrap:wrap;gap:8px}.job-shortcut-buttons button{min-height:44px}.job-shortcuts [data-quick-editor]:not(:empty){background:white;border:1px solid #dce4d7;border-radius:12px;padding:16px;margin-top:10px}@media(max-width:600px){.job-shortcut-buttons{display:grid;grid-template-columns:1fr 1fr}.job-shortcut-buttons button{text-align:left;font-size:13px}}

.job-team-summary{display:flex;flex-wrap:wrap;gap:12px 24px;margin:10px 0 6px}.job-team-summary div{min-width:125px}.job-team-summary dt{font-size:12px;font-weight:600;color:#53644b}.job-team-summary dd{margin:3px 0 0;font-size:14px;font-weight:600;overflow-wrap:anywhere}@media(max-width:600px){.job-team-summary{gap:10px 16px}.job-team-summary div{min-width:110px;flex:1}}

.notification-important{border-left:5px solid #b34700;background:#fff1e6;padding:12px;color:#612600}.notification-important strong{font-weight:800}

.generated-form-dialog{max-width:900px;width:calc(100% - 32px);max-height:90vh;overflow:auto;border:1px solid #70a943;border-radius:14px;padding:24px}.generated-form-dialog::backdrop{background:#14251c99}.generated-form-dialog textarea[readonly]{background:#f0f3ef;color:#364035}.generated-form-dialog .check{margin:18px 0;display:flex;gap:10px}
.paper-tools{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--line,#dfe6dd)}
.paper-tools .actions{margin-left:auto}
.paper-record{padding:1rem 0;border-bottom:1px solid var(--line,#dfe6dd)}
.paper-record>.check{font-size:1rem}
.paper-record-body{margin-left:2rem;min-width:0;overflow-wrap:anywhere}
.paper-attachments{display:flex;flex-wrap:wrap;gap:.6rem 1rem;margin-top:.6rem}
.paper-folder .filterbar .field{flex:1;min-width:210px}
@media(max-width:600px){.paper-tools .actions{margin-left:0;width:100%}.paper-tools .actions button{flex:1}.paper-record-body{margin-left:0}.paper-folder .heading{display:block}}

/* Leadership stays beside the customer while editing remains separate from opening a job. */
.job-card{border-bottom:1px solid #edf0eb}.job-card:last-child{border-bottom:0}.job-card .job-row{border-bottom:0}.job-row-team{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 24px 18px 83px}.job-row-team p{display:flex;flex-wrap:wrap;gap:6px 16px;min-width:0;margin:0;color:var(--muted);font-size:12px;line-height:1.5}.job-row-team p span{overflow-wrap:anywhere}.job-row-team button{flex-shrink:0;font-size:12px}.job-team-summary dd{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.job-team-summary .job-team-edit{min-height:32px;padding:3px 8px;font-size:12px;text-decoration:underline}.job-team-summary .job-team-edit:disabled{cursor:not-allowed;text-decoration:none;opacity:.55}@media(max-width:700px){.job-row-team{padding:0 16px 18px 62px;align-items:flex-start;flex-direction:column}.job-row-team p{display:grid;gap:4px}.job-team-summary .job-team-edit{min-height:44px}}

.customer-portal{max-width:1000px;margin:24px auto;padding:0 16px}.customer-portal .panel{margin-bottom:20px}.customer-portal table{width:100%}.customer-portal .actions{gap:18px;flex-wrap:wrap}

.customer-ledger-table{overflow:auto}.customer-portal img{max-width:100%}
.customer-ledger-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0}.customer-ledger-totals p{background:#f0f7ec;border-radius:10px;padding:16px;margin:0}.customer-ledger-totals strong{display:block;font-size:1.45rem;margin-top:8px}.customer-ledger-table th,.customer-ledger-table td{padding:12px;text-align:left;border-bottom:1px solid #e2e9df}.customer-portal details{padding:14px 0}.customer-portal summary{font-weight:600;cursor:pointer}@media(max-width:600px){.customer-ledger-totals{grid-template-columns:1fr}.customer-portal{padding:0 10px;margin:10px auto}}
.customer-draw-notice{border:2px solid #c97516;background:#fff8ed}.customer-draw-notice h2{color:#8a4400}.customer-draw-notice a{overflow-wrap:anywhere}
/* Customer identity and insurance stay together across office job sections. */
.project-heading{align-items:flex-start}.project-heading>.badge{flex-shrink:0;margin-top:8px}.project-identity{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:24px;align-items:start;flex:1;min-width:0}.project-customer{min-width:0;overflow-wrap:anywhere}.insurance-quick-reference{background:#fff;border:1px solid var(--line);border-left:4px solid #70ad32;border-radius:12px;padding:14px 16px;min-width:0;font-size:13px}.insurance-reference-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.insurance-reference-heading .small{font-size:12px;padding:5px 9px;min-height:36px}.insurance-quick-reference dl{display:grid;gap:8px;margin:12px 0 0}.insurance-quick-reference dl>div{display:grid;grid-template-columns:60px minmax(0,1fr);gap:8px}.insurance-quick-reference dt{color:var(--muted)}.insurance-quick-reference dd{margin:0;font-weight:600;overflow-wrap:anywhere}.insurance-quick-reference a{color:var(--green)}.insurance-quick-reference .subtle{margin-bottom:0}.intake-insurance{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:10px}.intake-insurance legend{font-weight:650;padding:0 6px}
@media(max-width:1050px){.project-identity{grid-template-columns:minmax(0,1fr)}.project-heading>.badge{max-width:100px}.insurance-quick-reference{max-width:100%}}
@media(max-width:600px){.project-heading{flex-wrap:wrap}.project-identity{flex-basis:100%;gap:14px}.insurance-reference-heading .small{min-height:44px}.insurance-quick-reference a{display:inline-block;min-height:26px}}
