.op-form{display:grid;gap:16px}.op-form>label{display:grid;gap:7px}.op-section{background:#fff;border:1px solid #d8e1ea;border-radius:8px;margin:14px 0;min-width:0}.op-section summary{cursor:pointer;font-weight:700;color:#17365d;padding:16px;list-style:none;display:flex;justify-content:space-between;gap:12px}.op-section summary::after{content:'+';color:#147783}.op-section[open]>summary::after{content:'−'}.op-section-body{padding:0 16px 16px;display:grid;gap:12px;min-width:0}.op-section-body label{display:grid;gap:6px}.op-section-body p{line-height:1.55;overflow-wrap:anywhere}.op-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:#f5f7fa;padding:14px;border:1px solid #d8e1ea;border-radius:6px;margin-bottom:12px}.op-row>button{justify-self:start;align-self:end}.op-row-add,.op-filters,.op-date{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.op-row-add select{flex:1;min-width:140px}.op-check{display:flex!important;align-items:center;gap:10px}.op-check input{width:20px;min-height:20px;height:20px;margin:0}.op-help{color:#667085;font-size:14px}.op-account{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e5e9ef}.rate-form{display:grid;grid-template-columns:minmax(120px,1fr) 110px 90px auto;gap:12px;align-items:end;padding:12px 0;border-bottom:1px solid #e5e9ef}.admin-login{max-width:420px;background:#fff;padding:24px;border:1px solid #d8e1ea;border-radius:8px}.op-cost-lines p{padding:12px 0;border-bottom:1px solid #e5e9ef}.crew-position{color:#147783!important;font-weight:600}.card-body>[data-prestart],.card-body>[data-report]{margin:12px 8px 0 0}.sidebar{overflow-y:auto}.sidebar nav{flex-shrink:0}#admin-access{display:block}.op-catalog{margin-top:20px}#cost-list{display:grid;gap:10px}.op-section .form-actions{margin-top:8px}
@media(max-width:650px){.sidebar{overflow:visible}.sidebar nav,.crew-mode .sidebar nav{display:flex;overflow-x:auto;justify-content:flex-start;gap:5px;scrollbar-width:thin}.sidebar .nav-btn{flex:0 0 auto;min-width:74px;padding:12px;font-size:13px;min-height:46px;white-space:nowrap}.op-row{grid-template-columns:minmax(0,1fr)}.rate-form{grid-template-columns:1fr 1fr}.rate-form>b{grid-column:1/-1}.rate-form>button{grid-column:1/-1}.op-account{flex-wrap:wrap}.op-filters>label{flex:1 1 130px}.op-date>label{flex:1}.op-section summary{padding:14px}.op-section-body{padding:0 12px 14px}.op-form input,.op-form select,.op-form textarea,.rate-form input{font-size:16px}.op-form .form-actions>button{flex:1 1 130px}.admin-login{padding:18px}.op-section{margin:8px 0}}
.daily-stage-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 16px}.daily-stage-switch button{min-height:46px}.daily-stage-switch button[aria-pressed=true]{background:#147783;color:white;border-color:#147783}

@media(max-width:650px){.standard-worker .sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;width:100%;gap:0}.standard-worker .nav-btn{min-width:0;width:100%;font-size:13px;border-right:1px solid #45627c;border-radius:0;min-height:54px}.standard-worker .nav-btn:last-child{border-right:0}.standard-worker .nav-btn.active{background:#147783;color:white;font-weight:800;box-shadow:inset 0 3px #fff}}

.report-preview[open]{display:flex;flex-direction:column;position:fixed;inset:0;margin:auto;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;padding:0;border:0;border-radius:0;overflow:hidden;background:#f5f7fa}.report-preview-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:calc(10px + env(safe-area-inset-top)) 12px 10px;background:#17365d;color:white;flex-shrink:0}.report-preview-bar button{min-height:44px}.report-preview iframe{flex:1;width:100%;min-height:0;border:0;background:white}.report-preview-help{font-size:12px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));margin:0;color:#46556a}@media(max-width:650px){.report-preview-bar strong{display:none}.report-preview-bar button{font-size:14px}}

.measurement-row{grid-template-columns:repeat(2,minmax(0,1fr))}.measurement-expected,.measurement-actual{display:grid;gap:10px;padding:12px;border-radius:8px;background:#fff}.measurement-expected{background:#eaf3f8}.measurement-table-wrap{overflow:auto;max-height:440px;margin:12px 0}.measurement-table-wrap table{border-collapse:collapse;width:100%;font-size:14px}.measurement-table-wrap th,.measurement-table-wrap td{padding:10px;border:1px solid #d8e1ea;text-align:left;vertical-align:top}.measurement-table-wrap th{background:#eaf3f8;position:sticky;top:0}.measurement-table-wrap small{display:block}.measurement-warning{color:#8c5900;background:#fff3d3;padding:8px}.calendar-weather{display:inline-flex!important;min-height:24px!important;padding:2px 5px!important;font-size:16px;background:transparent!important;border:0!important;vertical-align:middle}.calendar-outcome{display:block;font-size:11px;color:#526578}.day-conditions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.item-cost-details{grid-column:1/-1}.item-cost-details[open]{display:grid;gap:8px}@media(max-width:650px){.measurement-row{grid-template-columns:1fr}.day-conditions{grid-template-columns:1fr}.calendar-weather{font-size:14px!important}}

.calendar-weather .weather-shape{width:26px;height:26px;display:block;flex:none}.calendar-weather{width:34px;height:32px;margin-left:4px}@media(max-width:650px){.calendar-weather .weather-shape{width:24px;height:24px}}
.measurement-admin-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.measurement-admin-heading h3{margin:12px 0}.measurement-template-download{display:inline-flex;align-items:center;padding:10px 16px;border:1px solid #dce5ee;border-radius:12px;color:#087f8c;background:#fff;font-weight:700;text-decoration:none}.measurement-template-download:hover{background:#e5f4f6}

.site-photo-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.site-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.site-photo-grid figure{margin:0;background:#fff;border:1px solid #dce5ee;border-radius:10px;overflow:hidden}.site-photo-grid img{width:100%;height:160px;object-fit:cover;display:block}.site-photo-grid figcaption{padding:10px;overflow-wrap:anywhere}.site-photo-grid small{display:block;color:#64748b;margin-top:6px}

.month-photos{width:100%;font-size:11px;padding:4px 6px;margin-bottom:5px;color:#155e75;background:#ecfeff;border-color:#a5f3fc}.day-work-entry{display:grid;gap:6px;margin-bottom:12px}.site-photo-grid{min-width:0}.site-photo-grid img{min-height:160px}

.photo-note{margin:12px 0;border:1px solid #cbd5e1;border-radius:8px;padding:10px;background:#f8fafc}.photo-note summary{cursor:pointer;font-weight:600;min-height:32px}.photo-note textarea{width:100%;box-sizing:border-box;min-height:90px;font-size:16px;margin:10px 0;resize:vertical}.photo-note p{white-space:pre-wrap;overflow-wrap:anywhere}

.site-photo-gallery{margin-top:14px;border:1px solid #cbd5e1;border-radius:8px;padding:12px;background:#fff}.site-photo-gallery>summary{cursor:pointer;font-weight:700;min-height:44px;display:list-item;align-content:center}.site-photo-gallery .site-photo-grid{margin-top:12px}

.month-day-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px;min-height:28px}.month-day-head .month-date{justify-self:start;align-self:center;text-align:left;margin:0}.month-day-head .calendar-weather{justify-self:end;width:28px;height:28px;margin:0;padding:1px!important;min-height:28px!important}.month-day-head .weather-shape{width:24px;height:24px}.month-day-head .calendar-outcome{grid-column:1/-1;margin:0}.month-day{gap:5px}.month-work-entry{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;min-width:0;margin:0}.month-day .month-work,.month-day .month-note,.month-day .month-photos,.month-day .month-more,.month-day .month-add{box-sizing:border-box;width:100%;margin-left:0;margin-right:0;padding:5px 7px;border-radius:4px;font-size:11px;line-height:1.3;text-align:left}.month-day .month-photos{min-height:0;height:auto;margin-top:0;margin-bottom:0;border:0;background:#ecfeff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.month-day .month-note{min-height:0}.month-day .month-work{min-height:0}.month-day .month-add{min-height:26px}

.month-day-head{grid-template-columns:auto minmax(0,1fr) 28px;gap:4px}.month-day-head .month-date{grid-column:1;grid-row:1}.month-day-head .calendar-weather{grid-column:3;grid-row:1}.month-day-head .calendar-outcome{grid-column:2;grid-row:1;min-width:0;min-height:0;max-width:100%;padding:2px 3px;margin:0;border:0;border-radius:3px;background:#eef2f6;color:#526578;font-size:10px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.month-day-head{min-height:28px}

.month-day-head .month-date{white-space:nowrap;min-width:0;height:28px;line-height:28px}.month-day-head .month-date span{display:none}

.month-note-slot{height:26px;min-height:26px;max-height:26px;flex:0 0 26px;min-width:0;overflow:hidden}.month-note-slot .month-note{display:block;width:100%;height:26px;min-height:26px;max-height:26px;box-sizing:border-box;margin:0;padding:5px 7px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.day-note-card{border:1px solid #cbd5e1;border-radius:8px;padding:12px;margin:12px 0}.day-note-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;gap:8px}.day-note-card textarea{width:100%;box-sizing:border-box;min-height:80px;font-size:16px}.day-note-palette summary{cursor:pointer;padding:10px 0;display:flex;gap:10px;align-items:center}.note-current-colour{width:24px;height:24px;border:1px solid #64748b;border-radius:50%;display:inline-block}.month-note-slot{height:84px;min-height:84px;max-height:84px;flex-basis:84px;overflow-y:auto;display:flex;flex-direction:column;gap:3px}.month-note-slot .month-note{flex:0 0 26px}

.inspection-list-entry{display:grid;width:100%;text-align:left;gap:6px;margin:10px 0;padding:14px;overflow-wrap:anywhere}.inspection-list-entry small{color:#526578}[data-inspection-form]{display:grid;gap:14px}[data-inspection-form] textarea{min-height:110px;font-size:16px}[data-inspection-photos]{min-width:0}

.inspection-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;border-bottom:1px solid #cbd5e1;padding:8px 0}.inspection-deleted-toggle{display:flex!important;align-items:center;gap:10px;margin:16px 0}.inspection-deleted-toggle input{width:22px!important;min-height:22px}@media(max-width:650px){.inspection-list-row{grid-template-columns:1fr}.inspection-list-row>button.danger{justify-self:end}}
.photo-pending{display:block;margin:6px 0;padding:6px 8px;border-radius:6px;background:#fff0bd;color:#594200;font-size:12px;line-height:1.4}

.document-linked-save-bar{position:sticky;bottom:0;z-index:20;display:flex;align-items:center;gap:10px;background:#fff;padding:12px 0 max(12px,env(safe-area-inset-bottom));border-top:1px solid #cbd5e1}.document-linked-save-bar [data-doc-drawings]{margin-right:auto;flex:0 0 auto}@media(max-width:600px){.document-linked-save-bar{gap:6px;flex-wrap:nowrap}.document-linked-save-bar button,.document-linked-save-bar [data-doc-drawings]{flex:1 1 0;min-width:0;min-height:46px;font-size:12px;padding:10px 5px;white-space:normal}}
.daily-dispatch-dialog{width:min(800px,96vw);max-width:96vw;max-height:92dvh;overflow:auto;box-sizing:border-box}.daily-dispatch-dialog p,.daily-dispatch-dialog h3,.daily-dispatch-dialog strong{overflow-wrap:anywhere}.daily-dispatch-projects>section{border:1px solid #ccd8e3;border-radius:9px;padding:14px;margin:12px 0}.daily-dispatch-projects article{border-top:1px solid #dde5ed;padding:12px 0}.daily-dispatch-projects article p{margin:5px 0}.daily-dispatch-dialog details{margin:14px 0}.daily-dispatch-dialog details>button{margin:10px 8px 0 0}.daily-dispatch-dialog .form-actions button{white-space:normal}
.day-work-card{min-width:0}.day-work-card>button{width:100%;text-align:left}.combined-review-notice{padding:10px 16px;background:#fff8e5;color:#483d1b;font-size:13px}.combined-review-notice p{margin:5px 0}
.sheet-work-section{border:1px solid #b8cbdc;border-radius:9px;background:#fff;margin:16px 0}.sheet-work-section>summary{font-weight:700;padding:14px;background:#edf5fb;cursor:pointer}.sheet-work-body{padding:14px;min-width:0}.sheet-work-body input,.sheet-work-body select,.sheet-work-body textarea{max-width:100%;min-width:0}.sheet-work-body .form-grid{margin-bottom:12px}#add-sheet-work{margin-top:14px}#additional-sheet-works{min-width:0}

.report-preview .report-preview-bar [data-return] {
 color:#fff; background:#17365d; border:1px solid #c4d6eb;
 font-weight:700; white-space:nowrap;
}
.report-preview .report-preview-bar [data-return]:hover,
.report-preview .report-preview-bar [data-return]:focus-visible {
 color:#17365d; background:#eaf3f8; border-color:#eaf3f8;
}
.credential-photo{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;margin:2px 0 6px}
.credential-photo [data-photo-view] img{display:block;width:72px;height:54px;object-fit:cover;border:1px solid #d8e1ea;border-radius:6px;background:#f8fafc}
.credential-photo-add{display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;border:1px solid #b6cbd6;border-radius:8px;background:#f2f8fb;color:#147783;font-weight:700;font-size:14px;cursor:pointer}
.credential-photo-add:hover{border-color:#147783}
.credential-photo [data-photo-remove]{min-height:40px;font-size:13px}
.credential-photo small{flex-basis:100%;color:#667085;font-size:12px}
.crew-licence-row .credential-photo{grid-column:1/-1}
.folder-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin:0 0 14px}
.folder-actions button{min-height:42px}.folder-actions span{color:#667085;font-size:13px}
.folder-pick{display:grid;gap:6px;max-height:50vh;overflow:auto;border:1px solid #d8e1ea;border-radius:8px;padding:10px 12px;margin:10px 0}
.folder-pick legend{font-weight:800;color:#17365d;padding:0 4px}
.folder-pick label{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:8px 4px;border-bottom:1px solid #eef2f6;font-weight:600;color:#17365d;cursor:pointer}
.folder-pick label:last-child{border-bottom:0}.folder-pick input{width:20px;height:20px}.folder-pick small{color:#667085;font-weight:400;font-size:12px}
@media(max-width:650px){.folder-actions button{flex:1 1 auto}.folder-actions span{flex-basis:100%}}
/* Plant cards: name on top, then Details / Move / Delete as three equal buttons on one line at every width. */
.plant-grid .plant-tile{grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:10px;padding:14px}
.plant-grid .plant-tile>strong,.plant-grid .plant-tile>.asset-cover{grid-column:1/-1}
.plant-grid .plant-tile>button{min-height:42px;min-width:0;padding:8px 6px;white-space:nowrap;text-align:center;justify-content:center}
.measurement-progress{grid-column:1/-1;display:grid;gap:6px;padding:10px 12px;background:#f2f8fb;border:1px solid #cfe0e8;border-radius:8px}
.measurement-progress-bar{height:8px;background:#dfe9ef;border-radius:999px;overflow:hidden}
.measurement-progress-bar span{display:block;height:100%;width:0;background:#147783;border-radius:inherit;transition:width .2s}
.measurement-progress.is-complete .measurement-progress-bar span{background:#2f855a}
.measurement-progress p{margin:0;font-size:13px;color:#344054;line-height:1.5}
.measurement-progress [data-fill-remaining]{justify-self:start;min-height:38px;font-size:13px}
.measurement-progress.is-over{background:#fff7ed;border-color:#f5c58a}
.measurement-progress.is-over .measurement-progress-bar span{background:#d97706}
.measurement-progress.is-over strong,.measurement-over{color:#b45309}
/* Calendar tidy-up: one 8-colour palette, a quiet + per day, the whole day opens on tap */
.month-day{position:relative;cursor:pointer}
.month-day:hover{background:#fbfdfe}
.month-day .month-add{position:absolute;right:6px;bottom:6px;width:28px!important;height:28px;min-height:28px!important;padding:0!important;border-radius:50%!important;border:1px solid #b9dbe7;background:#fff;color:#147783;font-size:16px!important;line-height:1;text-align:center;opacity:0;transition:opacity .15s;margin:0}
.month-day:hover .month-add,.month-day .month-add:focus-visible{opacity:1}
@media(pointer:coarse){.month-day .month-add{display:none}}
.month-day .month-note{border-radius:4px;font-weight:600}
.month-note-more{background:#eef2f6!important;border-left:4px solid #94a3b8!important;color:#475467!important}
/* Day panel */
.day-sheet{display:grid;gap:16px}
.day-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px}.day-meta label{display:grid;gap:4px;font-size:12px;font-weight:700;color:#475467;text-transform:uppercase;letter-spacing:.03em}
.dn-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.dn-head h3{margin:0;font-size:16px;color:#17365d}
.dn-saved{font-size:12px;color:#16a34a;font-weight:600}
.day-notes-editor [data-note-cards]{display:grid;gap:8px}
.dn-row{display:grid;grid-template-columns:minmax(0,1fr) auto 32px;align-items:center;gap:8px;padding:6px 6px 6px 10px;border-radius:8px}
.dn-row textarea{min-height:34px;height:34px;resize:none;border:0!important;background:transparent!important;box-shadow:none!important;padding:6px 2px;font-size:15px;line-height:1.4;overflow:hidden;color:#162b43}
.dn-row textarea:focus{outline:none;background:rgba(255,255,255,.6)!important}
.dn-colours{display:flex;gap:5px;align-items:center}
.dn-dot{width:18px!important;height:18px;min-width:18px;min-height:18px!important;padding:0!important;border-radius:50%!important;border:2px solid #fff!important;background:var(--dot)!important;box-shadow:0 0 0 1px rgba(16,24,40,.15)!important;cursor:pointer}
.dn-dot[aria-pressed=true]{box-shadow:0 0 0 2px #17365d!important}
.dn-remove{width:32px;height:32px;min-height:32px!important;padding:0!important;border:0!important;background:transparent!important;color:#667085;font-size:14px;border-radius:50%!important;box-shadow:none!important}
.dn-remove:hover{background:rgba(16,24,40,.08)!important;color:#b42318}
.dn-add{margin-top:8px;border:1px dashed #9fbfcd!important;background:#fff!important;color:#147783;font-weight:700;min-height:36px}
.day-work-actions{display:flex;gap:6px}.day-work-actions button{min-height:34px;padding:0 12px}
.day-empty{color:#667085;margin:4px 0}
.note-appearance-dialog .dn-colours{gap:10px;padding:10px 0}.note-appearance-dialog .dn-dot{width:30px!important;height:30px;min-width:30px}
@media(max-width:560px){.dn-row{grid-template-columns:minmax(0,1fr) 32px;grid-template-areas:"text remove" "colours colours"}.dn-row textarea{grid-area:text}.dn-row .dn-colours{grid-area:colours;padding-bottom:2px}.dn-row .dn-remove{grid-area:remove}.dn-dot{width:24px!important;height:24px;min-width:24px}}
