:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18372f;background:#f3f4ee;font-synthesis:none;line-height:1.5}*{box-sizing:border-box}body{margin:0}header{height:86px;border-bottom:1px solid #d6ddd3;display:flex;justify-content:space-between;align-items:center;padding:0 max(5vw,20px);background:#fff}.brand{font-weight:750;font-size:23px;display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}.brand small{font-size:10px;letter-spacing:2px;color:#66796e}.mark{background:#183d31;color:#d5ef91;border-radius:8px;padding:4px 9px;font-size:22px}#connection{font-size:13px;color:#54695d}main{max-width:1140px;margin:42px auto;padding:0 24px;min-height:70vh}h1{font-size:clamp(28px,4vw,42px);line-height:1.15;letter-spacing:-1.5px;margin:10px 0 14px}h2{font-size:21px;letter-spacing:-.5px;margin:0 0 18px}h3{font-size:16px}p{color:#57675c}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:11px;font-weight:750;color:#5a725c}.hero{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:30px}.hero p{max-width:650px}.buttons{display:flex;gap:10px;flex-wrap:wrap;align-items:center}button,.button{font:inherit;font-size:14px;font-weight:650;border:1px solid #cbd5cb;border-radius:7px;padding:11px 17px;background:#fff;color:#244235;cursor:pointer;text-decoration:none}button:hover{border-color:#254a3a;background:#eef2e8}button.primary{background:#203f32;color:white;border-color:#203f32}button.accent{background:#d9ef9d;border-color:#c8e08d;color:#1d3b2e}button:disabled{opacity:.5;cursor:wait}.card{background:white;border:1px solid #d8ded3;border-radius:12px;padding:25px;margin-bottom:20px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:30px}.stats .card{margin:0}.stat{font-size:32px;font-weight:700}.muted,small{color:#627065;font-size:13px}.pill{display:inline-block;border-radius:20px;padding:4px 10px;background:#edf1e7;font-size:12px;font-weight:650}.pill.signed{background:#e0edc5}.row{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid #e5e8df;padding:16px 0}.row:first-of-type{border-top:0}.row h3{margin:0 0 5px}.row p{margin:0;font-size:13px}.empty{padding:32px 0;color:#6c796e}label{display:block;font-size:13px;font-weight:650;margin:0 0 14px}input,textarea,select{display:block;width:100%;font:inherit;font-size:16px;color:#17352c;border:1px solid #bbc8bb;border-radius:6px;padding:11px;margin-top:6px;background:#fcfdf9}textarea{min-height:100px;resize:vertical}input[type=checkbox]{width:18px;display:inline-block;margin-right:8px}input[type=file]{font-size:13px}.check{display:flex;align-items:flex-start}.check input{flex-shrink:0}.check span{padding-top:3px}.wide{grid-column:1/-1}.layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px}.sticky{position:sticky;top:20px;align-self:start}.step{border-left:3px solid #d4e5b3;padding-left:12px;margin:20px 0}.entry{padding:14px;background:#f3f5ee;border-radius:8px;margin-bottom:12px}.entry .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.entry label{margin-bottom:8px}#notice:not(:empty){padding:12px 5%;background:#fff1cd;color:#684d12;border-bottom:1px solid #ddc993}#notice.error{background:#ffe6df;color:#8d3024}canvas{width:100%;height:190px;display:block;background:#fff;border:2px dashed #b4c4ac;border-radius:8px;touch-action:none}.signature{max-width:360px;height:130px;object-fit:contain}.warning{background:#f9f1dd;border-radius:7px;padding:14px;font-size:13px;color:#6f5727}.attachments{display:flex;flex-wrap:wrap;gap:12px}.attachment{max-width:180px;border:1px solid #d8ded3;border-radius:7px;padding:10px;overflow-wrap:anywhere}.attachment img{width:150px;height:100px;object-fit:cover}.attachment audio{width:155px}.attachment a{color:inherit}dialog{border:1px solid #b9c5b7;border-radius:12px;width:620px;max-width:95vw;padding:28px;max-height:90vh;overflow:auto}dialog::backdrop{background:#10271c99}footer{padding:25px;text-align:center;font-size:12px;color:#718071}a{color:#244e3b}#saveState{font-size:12px;margin:12px 0}.document{color:#111;background:white;padding:28px;border:1px solid #ddd}.document h1{font-size:28px;letter-spacing:0}.document p{color:#222;white-space:pre-wrap}.document table{width:100%;border-collapse:collapse;margin:16px 0;font-size:13px}.document th,.document td{border:1px solid #aaa;text-align:left;padding:8px;white-space:pre-wrap;overflow-wrap:anywhere}.document th{background:#f2f3ef}.document .signature{max-width:250px}.document .attachment{break-inside:avoid}#printArea{display:none}.subnav{margin-bottom:20px}pre{overflow-wrap:anywhere;white-space:pre-wrap;font-size:11px}button:focus-visible,a:focus-visible{outline:3px solid #6c8d38;outline-offset:3px}@media(max-width:780px){header{height:72px;padding:0 18px}.brand{font-size:19px}.brand small{display:none}#connection{max-width:140px;font-size:11px;text-align:right}main{padding:0 16px;margin:25px auto}.hero{display:block}.hero .buttons{margin-top:18px}.layout,.grid{grid-template-columns:1fr}.stats{gap:8px}.stats .card{padding:14px}.stat{font-size:27px}.card{padding:19px}.sticky{position:static;grid-row:1}.sticky .step{display:inline-block;margin:6px 12px 6px 0}.entry .grid{grid-template-columns:1fr 1fr}.row{align-items:flex-start}.row .buttons{justify-content:flex-end}.document{padding:10px}.document table{font-size:11px}}@media print{body>*{display:none!important}#printArea{display:block!important}.document{border:0;padding:0}body{background:white;color:black}a{color:black;text-decoration:none}.document h2{break-after:avoid}.document tr{break-inside:avoid}.document .attachment audio,.document button{display:none}.document img{max-height:160px} @page{size:A4;margin:14mm}}

.tour-progress{display:flex;gap:6px;margin:24px 0}.tour-progress span{height:5px;flex:1;background:#dfe5d7;border-radius:5px}.tour-progress .active{background:#476a32}hr{border:0;border-top:1px solid #dce2d5;margin:22px 0}

/* Black and green application palette. Paper output keeps its white background. */
@media screen {
 :root{color-scheme:dark;color:#edf6ef;background:#080b09}
 header{background:#0c100d;border-color:#27382d}
 .brand small,#connection,.muted,small{color:#a2b6a8}
 .mark{background:#59ed85;color:#07130b}
 h1,h2,h3,label{color:#eff8f1}
 p{color:#b3c4b8}
 .eyebrow{color:#65ed90}
 button,.button{background:#19231c;border-color:#3a5141;color:#e6f6eb}
 button:hover,.button:hover{background:#263c2d;border-color:#65ed90}
 button.primary,button.accent{background:#59ed85;border-color:#59ed85;color:#071b0d}
 button.primary:hover,button.accent:hover{background:#84f5a5;border-color:#84f5a5}
 .card{background:#101712;border-color:#2b3e30}
 .stat{color:#69f294}
 .pill{background:#203829;color:#a8f6bf}
 .pill.signed{background:#205035;color:#cbffdc}
 .row{border-color:#2b3e30}
 .empty{color:#a2b6a8}
 input,textarea,select{background:#090f0b;border-color:#415a48;color:#edf8f0}
 input:focus,textarea:focus,select:focus{outline:2px solid #59ed85;outline-offset:2px}
 input[type=checkbox]{accent-color:#59ed85}
 .entry{background:#17241b}
 .step{border-color:#59ed85}
 #notice:not(:empty){background:#173323;color:#c3f6d2;border-color:#376f48}
 #notice.error{background:#3e1e1c;color:#ffd2c8;border-color:#925447}
 .warning{background:#1c3022;color:#c0e7ca}
 .attachment{border-color:#3b5142}
 dialog{background:#101712;color:#edf6ef;border-color:#476a52}
 dialog::backdrop{background:#000b}
 footer{color:#a2b6a8}
 a{color:#75f29b}
 .tour-progress span{background:#304536}
 .tour-progress .active{background:#59ed85}
 hr{border-color:#304536}
 button:focus-visible,a:focus-visible{outline-color:#78ffa5}
 canvas{color-scheme:light;background:#fff;border-color:#59ad75}
 .document{color-scheme:light;color:#111;background:#fff;border-color:#c7d2c9}
 .document h1,.document h2,.document h3{color:#111}
 .document p{color:#222}
 .document .eyebrow,.document small{color:#30583b}
 .document a{color:#245535}
 .document .warning{background:#e8f6ec;color:#224c2e}
}
.company-panel{display:flex;align-items:center;justify-content:space-between;gap:20px}.company-panel h2{margin:6px 0}.company-panel p{margin:0}summary{cursor:pointer;color:#75f29b;margin:12px 0}details{margin-bottom:20px}@media(max-width:780px){.company-panel{align-items:flex-start;flex-direction:column}}@media print{summary{color:#111}}
/* Company template branding uses paper colours in preview and print. */
.document .sheet-brand{display:flex;align-items:center;gap:22px;padding:12px 0 18px;border-bottom:4px solid var(--sheet-accent,#218347);margin-bottom:22px;break-inside:avoid}
.document .sheet-brand.logo-right{flex-direction:row-reverse;justify-content:space-between}
.document .sheet-company{font-size:21px;font-weight:750;color:#111;line-height:1.25;overflow-wrap:anywhere}
.document .sheet-brand h1{margin:8px 0 0;font-size:29px;line-height:1.2;color:#111}
.document .sheet-brand .sheet-tagline{margin:6px 0 0;font-size:12px;color:#444}
.document .company-logo{width:145px;max-height:90px;object-fit:contain;flex-shrink:0}
.document .sheet-compact{gap:15px;padding:8px 0 12px;margin-bottom:14px}
.document .sheet-compact .company-logo{width:100px;max-height:65px}
.document .sheet-compact h1{font-size:24px}
.document .sheet-footer{border-top:1px solid #bbb;padding-top:12px;margin-top:24px;font-size:11px;white-space:pre-wrap;color:#333}
.template-preview{margin-top:22px;border-radius:8px}.template-preview p{font-size:13px}
input[type=color]{height:48px;padding:5px;max-width:150px}
@media(max-width:600px){.document .sheet-company{font-size:17px}.document .company-logo{width:95px;max-height:70px}.document .sheet-brand h1{font-size:23px}}
@media print{.document .company-logo{max-height:90px!important;print-color-adjust:exact}.document .sheet-brand{print-color-adjust:exact}}

.logo-upload-preview{display:block;max-width:260px;max-height:120px;object-fit:contain;background:#fff;border:1px solid #415a48;border-radius:6px;padding:8px;margin:12px 0}#logoSelection{font-size:13px;overflow-wrap:anywhere;color:#bceccc;margin:10px 0}#saveLogo{margin:0 0 14px}
/* Simplified daywork sheet: compact header, short metadata grid, clear sections. */
dialog:has(.clean-sheet){width:960px}
.clean-sheet{font-size:13px;line-height:1.4;padding:30px!important}
.clean-sheet .sheet-brand{padding:0 0 12px;margin-bottom:7px;border-bottom-width:2px;gap:18px}
.clean-sheet .sheet-brand h1{font-size:23px;margin:4px 0 0}
.clean-sheet .sheet-company{font-size:18px}
.clean-sheet .company-logo{width:125px;max-height:65px}
.clean-sheet .sheet-contact{font-size:10px;line-height:1.4;margin:4px 0 15px;color:#555;white-space:normal}
.clean-sheet .sheet-status{display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:10px;color:#555;margin:14px 0}
.clean-sheet .sheet-status strong{letter-spacing:1px;color:#333}
.clean-sheet .sheet-job-grid{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #d7ddd8;border-bottom:1px solid #d7ddd8;padding:12px 0;gap:12px 24px;margin-bottom:18px}
.clean-sheet .sheet-job-grid span{display:block;text-transform:uppercase;letter-spacing:.7px;font-size:9px;color:#627067;margin-bottom:3px}
.clean-sheet .sheet-job-grid strong{display:block;font-size:13px;font-weight:600;color:#111;overflow-wrap:anywhere;white-space:pre-wrap}
.clean-sheet h2{font-size:13px;letter-spacing:0;margin:18px 0 8px;color:#15281b}
.clean-sheet p{margin:6px 0;overflow-wrap:anywhere}
.clean-sheet .sheet-work>p{min-height:35px}
.clean-sheet .sheet-completion{font-size:11px;border-left:2px solid #d8e2db;padding-left:10px;margin-top:10px}
.clean-sheet .sheet-completion p{margin:4px 0}
.clean-sheet .sheet-section-title{display:flex;justify-content:space-between;align-items:baseline;gap:15px}
.clean-sheet .sheet-section-title span{font-size:10px;color:#555}
.clean-sheet table{margin:5px 0 12px;font-size:11px;table-layout:fixed}
.clean-sheet th,.clean-sheet td{padding:7px 9px;border:0;border-bottom:1px solid #d9dfda;white-space:pre-wrap}
.clean-sheet th{background:#f0f3f0;color:#263d2c;font-weight:650}
.clean-sheet td:last-child,.clean-sheet th:last-child{text-align:right;width:20%}
.clean-sheet .sheet-none{font-size:11px;background:#f5f7f4;padding:9px 10px;margin-top:14px}
.clean-sheet .sheet-signoff{margin-top:18px;border-top:1px solid #c8d2ca;break-inside:avoid}
.clean-sheet .sheet-signoff p{font-size:11px}
.clean-sheet .sheet-confirmation{font-size:10px!important;color:#444;line-height:1.45;margin-top:12px}
.clean-sheet .sheet-signature-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:center;margin:12px 0}
.clean-sheet .signature{height:65px;max-width:220px}
.clean-sheet .signature-blank{height:50px;border-bottom:1px solid #aab8ad;color:#69756c;font-size:10px;padding-top:25px}
.clean-sheet .sheet-commercial{font-size:9px!important;color:#555}
.clean-sheet .sheet-attachment-summary{font-size:10px;padding-top:12px;border-top:1px solid #d9dfda;margin-top:18px}
.clean-sheet .sheet-attachment-summary span{display:block;font-size:9px;color:#666;margin-top:3px}
.clean-sheet .sheet-attachment-list{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.clean-sheet .attachment{max-width:160px;border-color:#d9dfda;padding:8px;font-size:9px;color:#333}
.clean-sheet .attachment img{width:140px;height:85px}
.clean-sheet .attachment small,.clean-sheet .attachment p{font-size:9px!important}
.clean-sheet .sheet-registration,.clean-sheet .sheet-recipient,.clean-sheet .sheet-footer{font-size:9px;color:#666;margin-top:10px}
.clean-sheet .sheet-audit{margin:12px 0 0;font-size:10px}
.clean-sheet .sheet-audit summary{color:#536c58;font-size:10px}
.clean-sheet .sheet-audit p{font-size:9px}
.clean-sheet .practice-label{font-size:10px;font-weight:bold;color:#684b15}
@media(max-width:600px){.clean-sheet{padding:16px!important}.clean-sheet .sheet-company{font-size:14px}.clean-sheet .sheet-brand h1{font-size:20px}.clean-sheet .company-logo{width:95px}.clean-sheet .sheet-status{font-size:9px}.clean-sheet .sheet-job-grid{gap:10px}.clean-sheet .sheet-job-grid strong{font-size:12px}}
@media print{.clean-sheet{padding:0!important;font-size:11px}.clean-sheet .sheet-audit{display:none}.clean-sheet .company-logo{max-height:65px!important}.clean-sheet .sheet-work{break-inside:auto}.clean-sheet .sheet-signoff{break-inside:avoid}.clean-sheet .sheet-job-grid,.clean-sheet .sheet-status{break-inside:avoid}.clean-sheet th{print-color-adjust:exact}}

.clean-sheet td[colspan]{text-align:left;width:auto;color:#647067}

[hidden]{display:none!important}
[inert]{user-select:none}
details.form-section>summary{font-size:18px;font-weight:700;cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px}
details.form-section[open]>summary{margin-bottom:18px}
@media(max-width:780px){header{height:auto;min-height:72px;align-items:flex-start;gap:12px;padding:14px 16px;flex-wrap:wrap}.brand{min-height:44px}header>.buttons{flex:1 1 100%;gap:8px}header button{min-height:44px;padding:9px 12px}#connection{margin-left:auto;text-align:left;max-width:none}.sticky{grid-row:auto}.sticky .step{display:none}.sticky .warning{display:none}.entry .grid{grid-template-columns:1fr}.layout{gap:16px}}
.stat-filter{text-align:left;width:100%;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;gap:.4rem}.stat-filter:hover,.stat-filter[aria-pressed="true"]{border-color:#48ef87}.stat-filter:focus-visible{outline:3px solid #48ef87;outline-offset:3px}#sheetList:focus{outline:none}

.job-folder{border:1px solid #3a5141;border-radius:10px;margin:14px 0;overflow:hidden}.job-folder summary{padding:18px;margin:0;min-height:64px}.folder-title{font-size:17px;font-weight:700}.folder-count{float:right;font-size:13px;padding:3px 10px;border-radius:20px;background:#203829;color:#a8f6bf}.job-folder summary small{display:block;margin-left:18px;margin-top:4px}.folder-sheets{padding:0 18px;border-top:1px solid #3a5141}.job-folder[open] summary{background:#17241b}@media(max-width:600px){.folder-title{font-size:15px}.folder-count{float:none;margin-left:12px}.folder-sheets .row{flex-wrap:wrap}}

@media screen{#notice:not(:empty){position:sticky;top:0;z-index:20;box-shadow:0 2px 8px #0004}.dialog-feedback{padding:12px;border:1px solid #62bd7d;border-radius:8px;background:#193b26;color:#e6f9eb}.dialog-feedback.error{background:#49241e;color:#ffe5db;border-color:#d78774}}
