:root{font-family:Segoe UI,system-ui,sans-serif;color:#233c30;background:#f4f6f2;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;gap:24px;padding:16px 32px;background:#153e32;color:#d7e6dc;font-size:13px}.brand{font-size:34px;letter-spacing:-2px;color:white;text-decoration:none;font-weight:750}.brand span{font-size:12px;color:#b9d97b;letter-spacing:0}.role{margin-left:auto;color:#cfdbd2;display:flex;align-items:center;gap:12px;font-size:11px}.role select{background:#2a5042;color:white;border-color:#567565;margin:0}main{max-width:1800px;margin:auto;padding:32px}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.eyebrow{font-size:10px;letter-spacing:2px;color:#7c936e;font-weight:700}h1{font-size:30px;letter-spacing:-1px;margin:8px 0}h2{font-size:17px;margin:0 0 6px}h3{font-size:15px}p{font-size:12px;color:#768475;line-height:1.65;margin:4px 0 12px}button{border:1px solid transparent;background:#28573f;color:#fff;border-radius:7px;font:inherit;font-size:12px;padding:12px 16px;cursor:pointer;font-weight:600}button:hover{filter:brightness(.92)}button:disabled{opacity:.5;cursor:default}.secondary{color:#3a5942;background:#f6f8f3;border-color:#d9e1d4}.icon{padding:3px 10px;background:transparent;color:#526750;font-size:26px}.notice{font-size:11px;border:1px solid #e2e7d5;border-radius:6px;background:#f0f3e6;color:#7b855f;padding:12px 15px;margin:20px 0}.panel{background:white;border:1px solid #dfe6da;border-radius:10px;margin-top:20px;overflow:hidden}.toolbar{padding:22px;display:flex;align-items:center;justify-content:space-between;gap:15px}.toolbar p{margin:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:24px 0}.stat{background:white;border:1px solid #dfe6da;padding:19px;border-radius:9px}.stat span{display:block;font-size:11px;color:#7b8978}.stat strong{font-weight:600;display:block;margin-top:9px;font-size:24px}.stat:last-child{background:#eaf0df}.filters{display:flex;gap:14px;align-items:end;flex-wrap:wrap;padding:0 22px 22px}label{display:block;font-size:11px;color:#61735c}input,select{display:block;width:100%;min-height:39px;border:1px solid #d6dfd0;border-radius:5px;padding:9px 10px;color:#334d37;background:white;font:inherit;font-size:12px;margin-top:7px}input:focus,select:focus,button:focus-visible{outline:2px solid #8dab6a;outline-offset:2px}input[type=checkbox]{width:18px;min-height:18px;height:18px;accent-color:#31573d}.filters label{min-width:140px;flex:1}.filters button{min-height:39px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:12px}th{background:#edf2e8;color:#718267;text-transform:uppercase;font-size:10px;letter-spacing:.4px;font-weight:600;padding:13px 14px}td{padding:13px 14px;border-bottom:1px solid #e9eee4}tr.group-start td{border-top:2px solid #d7e1cf}td small{display:block;color:#87927e;font-size:10px;margin-top:3px}.muted{color:#a2ac99}.money{color:#2f603c;font-weight:600}.table-footer,.footnote{font-size:11px;line-height:1.7;color:#829076;padding:14px 22px}.footnote{padding:0;margin-top:22px}.empty{text-align:center;padding:40px;color:#829076}.fields{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:16px 0}.fields.finance{grid-template-columns:repeat(3,1fr)}fieldset{border:1px solid #dce5d5;border-radius:7px;margin:24px 0;padding:15px}legend{font-size:12px;font-weight:600;padding:0 7px}fieldset .fields{grid-template-columns:repeat(4,1fr);align-items:end}fieldset p{font-size:11px}.entry-table{margin-top:15px}.entry-table th{font-size:9px}.entry-table td{padding:8px}.entry-table input{min-width:90px;margin:0}.entry-table input[type=checkbox]{min-width:18px}.entry-table .note,.entry-table .source{min-width:130px}.entry-table .worker-name{min-width:140px}.entry-table input[type=number]{width:100px}.entry-table tr:not(:has(input[type=checkbox]:checked)){opacity:.55}.calc{display:block;font-size:10px;color:#6d8863;margin-top:5px}.dialog-heading{display:flex;justify-content:space-between;align-items:center;padding:22px 26px;border-bottom:1px solid #e1e7da}.dialog-heading h2{margin:4px 0}.dialog-body{padding:8px 26px 24px}.dialog-footer{display:flex;gap:12px;justify-content:flex-end;align-items:center;padding:18px 26px;background:#f6f8f3;border-top:1px solid #e1e7da}.dialog-footer>span{margin-right:auto;font-size:11px;color:#7b8972}dialog{border:1px solid #d7e1cf;border-radius:12px;padding:0;width:min(1250px,96vw);max-height:92dvh;color:#233c30}dialog::backdrop{background:#10281b88;backdrop-filter:blur(3px)}#rate-dialog{max-width:760px}.error{color:#ad3a32;font-size:12px;line-height:1.6}.approval{padding:16px 22px;border-top:1px solid #e7ecdf;display:flex;gap:14px;align-items:center;flex-wrap:wrap}.approval div{flex:1;min-width:200px}.approval p{margin:4px 0}.approval strong{font-size:12px}.approval button{padding:8px 12px}.history-item{padding:12px 22px;border-top:1px solid #ecf0e6;font-size:11px;color:#7a896f}.history-item strong{color:#46613c}.rate-person{font-size:12px;padding:12px 0;border-bottom:1px solid #e6ecdf}.rate-person span{color:#7b8d70;display:block;font-size:11px;line-height:1.7}#message{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);max-width:90vw;background:#214d36;color:white;font-size:12px;padding:14px 20px;border-radius:8px;box-shadow:0 6px 25px #12372133;z-index:5}#message:empty{display:none}.badge{font-size:10px;background:#f2eddb;border-radius:4px;padding:3px 7px;color:#8d7b43}.review{max-width:1000px}.review pre{white-space:pre-wrap;font:inherit;font-size:12px;line-height:1.8;background:#f5f7f0;padding:16px;border-radius:5px}.review .dialog-body{max-height:65vh;overflow:auto}@media(max-width:900px){main{padding:20px}header{padding:14px 20px}header>span{display:none}.stats{gap:8px}.stat{padding:13px}.stat strong{font-size:19px}.heading{align-items:flex-start}.heading button{white-space:nowrap}h1{font-size:25px}.fields.finance{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){header{gap:10px;padding:12px 16px}.role{display:block;font-size:9px}.role select{margin-top:4px;max-width:210px;min-height:32px;padding:6px;font-size:10px}.brand{font-size:30px}main{padding:22px 12px}.heading{display:block}.heading button{margin:8px 0 0;width:100%}.stats{grid-template-columns:repeat(2,1fr)}.stat strong{font-size:21px}.toolbar{padding:17px;align-items:flex-start}.toolbar .secondary{font-size:10px;padding:10px}.filters{padding:0 17px 17px;gap:10px}.filters label{min-width:40%;width:40%}.filters button{width:100%}.notice{line-height:1.7}.fields,fieldset .fields,.fields.finance{grid-template-columns:1fr 1fr}.fields>label:last-child:nth-child(odd){grid-column:1/-1}.dialog-body{padding:8px 14px 18px}.dialog-heading,.dialog-footer{padding:16px}.dialog-footer{flex-wrap:wrap}.dialog-footer>span{width:100%;margin:0}.dialog-footer button{flex:1}dialog{width:98vw;max-height:96dvh}.approval{padding:16px}.approval div{min-width:100%}.approval button{flex:1}.table-footer{font-size:10px}.entry-table input{font-size:16px}.footnote{font-size:10px}}
.crew-picker{background:#f7f9f1}.crew-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.crew-buttons button{min-height:44px}.crew-buttons button[aria-pressed=true]{background:#28573f;color:white;border-color:#28573f}.crew-picker summary{cursor:pointer;font-size:12px;color:#42663a;font-weight:600;padding:12px 0}.crew-picker .fields{align-items:end;grid-template-columns:1fr 1fr auto}.crew-picker #crew-result{font-size:12px;line-height:1.7;color:#46613c}.crew-picker #crew-selection{color:#496d3e;font-weight:600}@media(max-width:600px){.crew-buttons button{flex:1;min-width:43%;font-size:11px}.crew-picker .fields{grid-template-columns:1fr}.crew-picker .fields>label:last-child:nth-child(odd){grid-column:auto}.crew-picker input,.crew-picker select{font-size:16px}}
[hidden]{display:none!important}.page-nav{display:flex;gap:10px;padding:10px 32px;background:white;border-bottom:1px solid #dce5d5}.page-nav a{color:#66805b;text-decoration:none;font-size:12px;padding:10px 16px;border-radius:6px}.page-nav a[aria-current=page]{background:#eaf0e2;color:#31563b;font-weight:600}.employee-link{color:#315d3b;text-decoration:underline;text-decoration-color:#b7ccaa;text-underline-offset:4px;font-weight:600}.employee-link:hover{color:#173b22}.employee-filters{padding-top:22px}.status{display:inline-block;font-size:10px;border-radius:20px;padding:5px 10px;background:#eaf3e1;color:#487437}.status.inactive{background:#eee;color:#888}.employee-card{width:min(1150px,96vw)}#employee-editor{max-width:850px}.profile-heading{display:flex;gap:16px;align-items:start;justify-content:space-between;padding-top:22px}.card-actions{display:flex;flex-wrap:wrap;gap:10px}.profile-notes{white-space:pre-wrap;background:#f7f9f2;padding:12px;border-radius:6px}.card-filters{padding:0;justify-content:start}.card-filters label{flex:0 1 180px}.card-section{border-top:1px solid #dce5d5;margin-top:24px;padding-top:16px}summary{cursor:pointer;font-size:13px;color:#41623a;font-weight:600;padding:12px 0}.membership{display:flex;gap:18px;flex-wrap:wrap}.membership label{display:flex;align-items:center;gap:8px}.membership input{margin:0}textarea{display:block;width:100%;font:inherit;font-size:13px;color:#334d37;border:1px solid #d6dfd0;border-radius:6px;margin-top:8px;padding:10px}.document-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e5ecde;padding:14px 0}.document-row strong{font-size:12px}.document-row p{margin:5px 0 0}.employee-card .history-item{padding-left:0}.employee-card #card-feedback{color:#315d3b;font-weight:600}.employee-card #card-feedback:empty{display:none}@media(max-width:600px){.page-nav{padding:8px 12px;gap:4px}.page-nav a{font-size:11px;padding:10px}.profile-heading{display:block}.card-actions{margin:12px 0}.card-actions button{flex:1}.document-row{align-items:start;flex-direction:column}.document-row button{min-height:44px}.employee-filters label:first-child{min-width:100%}#employee-editor input,#employee-editor textarea,#employee-editor select,.employee-card input,.employee-card select{font-size:16px}.card-filters button{width:auto}.employee-card .stats{grid-template-columns:repeat(2,1fr)}}
#client-editor{max-width:850px}#client-import-dialog{width:min(1250px,96vw)}.import-file{margin:20px 0}.import-file input{max-width:500px}#client-feedback{color:#315d3b;font-size:12px;font-weight:600}.page-nav{flex-wrap:wrap}#import-preview{margin:16px 0;max-height:50vh;overflow:auto}#import-preview table{white-space:normal}#import-preview td{min-width:100px;max-width:300px;overflow-wrap:anywhere}#import-preview td:first-child{min-width:65px}#import-preview input{min-width:18px}#client-card-content #client-feedback:empty{display:none}@media(max-width:600px){#client-editor input,#client-editor textarea,#client-editor select{font-size:16px}#clients-page .heading .card-actions{margin-top:12px}#clients-page .heading .card-actions button{flex:1;width:auto}.page-nav{gap:0}.page-nav a{padding:10px 9px}#client-card input{font-size:16px}}
#order-editor{width:min(1150px,97vw)}.order-workers{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:12px 0}.check-line{display:flex;align-items:center;gap:9px;font-size:12px;min-height:40px}.check-line input{margin:0;flex:0 0 18px}.stop-row{display:flex;align-items:end;gap:12px;margin:12px 0}.stop-row label{flex:1}.inline-actions{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.order-description{white-space:normal;min-width:180px;max-width:350px}.order-workers label{padding:5px 8px;border:1px solid #e0e7d9;border-radius:6px}.order-workers label:has(:checked){background:#eaf2e3}.order-workers input{accent-color:#315d3b}#order-conflicts{color:#8a5a17;background:#fff6e3;border-color:#edd6a8}#order-estimate{font-size:13px;color:#315d3b;font-weight:600}#order-result{font-size:12px;color:#315d3b}@media(max-width:700px){.order-workers{grid-template-columns:repeat(2,1fr)}#order-editor input,#order-editor select,#order-editor textarea{font-size:16px}#order-editor .dialog-footer button{min-height:44px}#order-editor .dialog-footer{flex-wrap:wrap}}@media(max-width:420px){.order-workers{grid-template-columns:1fr}.stop-row{align-items:stretch;flex-direction:column}}
.extra-price-row{border:1px solid #dce5d5;background:#f7f9f3;border-radius:7px;padding:14px;margin:14px 0}.extra-price-row .fields{grid-template-columns:repeat(4,1fr)}.price-row-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#42663a}#add-order-price{margin:10px 0}#order-estimate{background:#eaf2e3;padding:14px;border-radius:7px}@media(max-width:700px){.extra-price-row .fields{grid-template-columns:1fr 1fr}.price-row-footer{align-items:start;flex-direction:column}}
.panel-message{padding:0 22px;font-size:12px;line-height:1.7}.day-cell{min-width:36px;min-height:38px;padding:6px;font-weight:500}#attendance-panel th,#attendance-panel td{padding:7px}#attendance-panel td:first-child{position:sticky;left:0;background:white;z-index:1;min-width:160px}#attendance-panel .filters{padding-top:15px}#payroll-card-section{background:#f7f9f2;padding:16px;border-radius:7px}#payroll-card-section input,#payroll-card-section select{font:inherit;font-size:13px}#payroll-card-feedback{color:#315d3b;font-size:12px;font-weight:600}@media(max-width:600px){#payroll-card-section input,#payroll-card-section select{font-size:16px}#attendance-form .filters button{min-height:44px}}
.client-picker{min-width:0}.client-picker>label+label{margin-top:12px}.client-search-results{background:white;border:1px solid #b7cba8;border-radius:6px;max-height:280px;overflow:auto;margin:7px 0 12px;box-shadow:0 4px 12px #163b1f13}.client-search-result{display:block;width:100%;text-align:left;color:#31533b;background:white;border-radius:0;border-bottom:1px solid #e5ebdf;padding:12px;font-weight:400;min-height:44px;white-space:normal}.client-search-result strong{display:block;font-size:12px}.client-search-result small{display:block;font-size:10px;color:#809175;margin-top:4px;overflow-wrap:anywhere}.client-search-result:hover{background:#edf4e7}.search-info{padding:10px 12px;margin:0;font-size:11px}.client-picker input[type=search]{width:100%}@media(max-width:600px){.client-picker input[type=search],.client-picker select{font-size:16px}.client-search-results{max-height:230px}}

/* Keep startup checks quiet while preventing edits before shared data is ready. */
.cloud-start.cloud-loading[open]{inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border:0;border-radius:0;background:#f4f6f2;display:grid;place-items:center}
.cloud-start.cloud-loading::backdrop{background:#f4f6f2;backdrop-filter:none}
.cloud-loading-indicator{display:none}
.cloud-loading .cloud-loading-indicator{display:block;color:#61735c;font-size:13px;opacity:0;animation:cloud-loading-appear .15s .35s forwards}
.cloud-start:not(.cloud-loading){max-width:650px}
.cloud-start:not(.cloud-loading) .dialog-body{padding:26px}
.cloud-start #cloud-recheck{margin:12px 0 0 12px}
@keyframes cloud-loading-appear{to{opacity:1}}
@media(prefers-reduced-motion:reduce){.cloud-loading .cloud-loading-indicator{animation-duration:0s}}
.users-setup-body{padding:0 22px 24px;font-size:13px;line-height:1.9}.users-setup-body .card-actions{flex-wrap:wrap;align-items:center}.users-fields{grid-template-columns:repeat(2,1fr)}.users-fields label span{display:block;font-size:11px;line-height:1.6;margin-top:6px}.user-status{display:inline-block;padding:5px 10px;border-radius:20px;font-size:11px}.user-status.active{background:#e9f2df;color:#31573d}.user-status.inactive{background:#f4e8e3;color:#8d4638}#users-panel .filters{padding-top:22px}#user-editor input[readonly]{background:#f4f6f2;color:#74816c}@media(max-width:600px){.users-fields{grid-template-columns:1fr}.users-fields input,.users-fields select{font-size:16px}}
/* Phone layout: keep controls readable and wide tables inside their panels. */
@media(max-width:600px){
  html,body{max-width:100%;overflow-x:clip}
  header{flex-wrap:wrap;gap:10px 16px}
  header .role{width:100%;margin-left:0;display:flex;align-items:center;justify-content:space-between;font-size:11px}
  header .role select{margin-top:0;font-size:16px;min-height:44px;max-width:70%}
  .page-nav{flex-wrap:nowrap;overflow-x:auto;padding:6px 12px;gap:4px;scroll-padding:12px;-webkit-overflow-scrolling:touch}
  .page-nav a{flex:0 0 auto;white-space:nowrap;min-height:44px;display:flex;align-items:center;padding:10px 12px;font-size:12px}
  main{min-width:0;width:100%;padding:20px 12px}
  h1{overflow-wrap:anywhere}
  button,.secondary{min-height:44px}
  input,select,textarea{font-size:16px;min-height:44px;max-width:100%;min-width:0}
  input[type=checkbox]{min-height:20px;height:20px;width:20px}
  .fields,.fields.finance,fieldset .fields,.extra-price-row .fields,.users-fields{grid-template-columns:minmax(0,1fr)}
  .fields>*,.filters>*,.client-picker{min-width:0}
  .filters label{flex:1 1 100%;width:100%;min-width:0}
  .fields>label:last-child:nth-child(odd){grid-column:auto}
  fieldset{min-width:0;padding:12px}
  .table-wrap{max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}
  .dialog-heading{position:sticky;top:0;background:white;z-index:2;gap:10px}
  .dialog-heading h2{overflow-wrap:anywhere}
  .dialog-footer{position:sticky;bottom:0;z-index:2;padding-bottom:max(16px,env(safe-area-inset-bottom))}
  .dialog-footer button{min-width:120px}
  .review .dialog-body{max-height:none}
  .document-row strong,.profile-notes,.notice,.error{overflow-wrap:anywhere}
  body>.notice{margin:10px 12px!important}
  .cloud-start #cloud-recheck{display:block;width:100%;margin:16px 0 0}
  .cloud-start:not(.cloud-loading) .dialog-body{padding:20px}
  .check-line{min-height:44px}
}