/* The site module uses compact tables; the rest of the company workspace is unchanged. */
.site-title-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;color:var(--muted);margin:-10px 0 24px}
.site-cards{margin-top:24px}.site-card-percent{font-size:36px;font-weight:700;margin:22px 0 12px}
.site-progress{height:6px;background:var(--line);border-radius:8px;overflow:hidden;min-width:70px}.site-progress span{display:block;height:100%;background:var(--green);border-radius:8px}
.site-tabs{overflow-x:auto;flex-wrap:nowrap}.site-tabs button{white-space:nowrap}
.site-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}.site-metric{display:flex;flex-direction:column;gap:12px;min-width:0}.site-metric strong{font-size:28px}.site-metric small,.site-metric span{color:var(--muted)}.site-metric span{font-size:12px}
.site-overview-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:24px}.site-overview-grid>*{min-width:0}
.site-work-summary{display:grid;grid-template-columns:1fr auto;gap:12px;padding:20px 0;border-bottom:1px solid var(--line)}.site-work-summary small{display:block;color:var(--muted);margin-top:6px;font-size:12px}.site-work-summary .site-progress{grid-column:1/-1}
.site-stage-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:22px}.site-stage-cards small{display:block;color:var(--muted);margin-top:12px;font-size:12px;line-height:1.7}
.site-sheet-toolbar,.site-table-filters{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-bottom:18px}.site-sheet-toolbar>label{min-width:240px;flex:1}.site-date-nav{display:flex;align-items:end;gap:8px}.site-date-nav label{min-width:150px}.site-date-nav button{height:44px;min-width:42px;padding:10px}.site-date-nav input{min-height:44px}
.site-day-coverage{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.site-day-coverage strong{font-size:16px}.site-day-coverage details{position:relative}.site-day-coverage details p{position:absolute;top:20px;right:0;width:300px;max-height:300px;overflow:auto;z-index:25;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);padding:16px;line-height:1.8;border-radius:10px}.site-day-coverage summary{cursor:pointer;color:var(--muted)}.site-all-filled{color:var(--green)}.site-sheet-help{font-size:12px;margin:14px 0;line-height:1.7}
.site-day-sheet{padding:22px}.site-entry-table{table-layout:fixed;width:100%;min-width:970px;font-size:13px}.site-entry-table th{font-size:11px;white-space:nowrap}.site-entry-table th:nth-child(1){width:24%}.site-entry-table th:nth-child(2){width:65px}.site-entry-table th:nth-child(3){width:26%}.site-entry-table th:nth-child(4){width:90px}.site-entry-table th:nth-child(5),.site-entry-table th:nth-child(6){width:95px}.site-entry-table th:nth-child(7){width:16%}.site-entry-table th:last-child{width:42px}
.site-entry-table td{padding:8px 6px;vertical-align:top;border-right:1px solid var(--line)}.site-entry-table input{width:100%;min-width:0;min-height:40px;padding:9px 8px;font-size:13px}.site-entry-table output{display:block;white-space:nowrap;padding:12px 2px;font-variant-numeric:tabular-nums}.site-entry-table small{display:block;color:var(--muted);font-size:10px;line-height:1.5;margin:5px 2px 0}.site-entry-table button[data-remove-entry]{border:0;background:transparent;padding:7px;min-width:30px;font-size:20px}
.site-entry-locked{opacity:.7}.site-entry-locked input{color:var(--text);opacity:1}.site-day-actions{display:flex;gap:12px;flex-wrap:wrap;padding:14px 0}.site-day-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--line);padding-top:16px;margin-top:12px}.site-day-footer span{font-size:13px;color:var(--muted)}.site-day-footer .primary{min-height:46px}
.site-combo{position:relative;display:block;margin:0}.site-combo-menu{position:absolute;top:100%;left:0;min-width:100%;width:max-content;max-width:420px;z-index:30;max-height:290px;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}.site-combo-menu[hidden]{display:none}.site-combo-menu button{display:block;text-align:left;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:10px 12px;min-height:42px;font-size:13px}.site-combo-menu small{display:block;margin:5px 0 0;color:var(--muted);font-size:11px}.site-combo-menu [aria-selected=true]{background:var(--softblue)}.site-combo-group{padding:9px 12px;background:var(--surface2);font-size:11px;color:var(--muted)}.site-combo-menu p{padding:12px;font-size:12px}
/* Comboboxes must extend beyond the input grid. Horizontal overflow is handled by the panel below 1150px. */
#site-entry-grid{overflow-x:auto}.site-day-sheet{overflow:visible}.site-combo .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.site-table-filters>label{min-width:180px;flex:1}.site-wide-table{max-height:70vh;overflow:auto;position:relative;margin-top:18px;border:1px solid var(--line);border-radius:10px}.site-wide-table table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:12px}.site-wide-table th,.site-wide-table td{padding:9px 10px;white-space:nowrap;min-width:65px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);text-align:right;font-variant-numeric:tabular-nums}.site-wide-table thead th{position:sticky;top:0;z-index:3;background:var(--surface2);font-size:11px}.site-wide-table tr>th:first-child{position:sticky;left:0;z-index:2;background:var(--surface);min-width:245px;max-width:300px;white-space:normal;text-align:left;font-weight:500}.site-wide-table thead th:first-child{z-index:4;background:var(--surface2)}.site-wide-table small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.site-wide-table th button{border:0;background:transparent;font-size:inherit;padding:0;color:inherit;text-align:inherit}.site-month-matrix thead button{min-height:26px;min-width:42px}.site-wide-table .site-stage-row th,.site-wide-table .site-stage-row td{background:var(--softblue);font-weight:700}.site-wide-table .site-total-row th,.site-wide-table .site-total-row td{background:var(--surface2);font-weight:700}.site-wide-table .site-work-complete td,.site-wide-table .site-work-complete th{background:color-mix(in srgb,var(--green) 10%,var(--surface))}.site-wide-table .site-current-day{color:var(--blue)}.site-wide-table .site-pending{color:var(--blue);font-size:9px;white-space:nowrap}
.site-crew-strip{display:flex;gap:12px;overflow-x:auto;margin:20px 0}.site-crew-strip>section{flex:0 0 260px;padding:16px;border:1px solid var(--line);border-radius:10px}.site-crew-strip small{display:block;color:var(--muted);font-size:12px;line-height:1.7;margin:8px 0}.site-roster-table td{font-size:13px}.site-crew-checks{max-height:290px;overflow:auto;margin:14px 0}.site-crew-checks label{padding:7px 0}.site-crew-checks small{color:var(--muted);font-size:11px;margin-left:auto}.site-crew-checks [hidden]{display:none}
.site-report-card{padding:24px 0;border-bottom:1px solid var(--line)}.site-report-card small{display:block;color:var(--muted);font-size:11px;margin-top:6px}.site-report-card td{font-size:13px}.site-correction-history{padding:14px;background:var(--surface2);border-radius:10px;margin-top:18px}.site-correction-history summary{cursor:pointer;font-weight:600}.site-before-after{display:grid;grid-template-columns:1fr 1fr;gap:16px}.site-before-after>section{min-width:0;border:1px solid var(--line);border-radius:10px;padding:12px}

@media(max-width:900px){.site-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.site-overview-grid{grid-template-columns:1fr}.site-before-after{grid-template-columns:1fr}}
@media(max-width:700px){
 .site-day-sheet{padding:14px}.site-sheet-toolbar{display:grid;grid-template-columns:1fr;gap:12px}.site-sheet-toolbar>label{min-width:0}.site-date-nav{gap:6px}.site-date-nav label{min-width:0;flex:1}.site-date-nav button{min-width:34px;padding:8px}.site-date-nav #site-today{font-size:11px}.site-day-coverage{gap:10px}.site-day-coverage strong{font-size:14px}.site-day-coverage button{font-size:12px}.site-day-coverage details p{left:0;right:auto;width:220px}
 .site-entry-table,.site-entry-table tbody{display:block;width:100%;min-width:0}.site-entry-table thead{display:none}.site-entry-table tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;position:relative;border:1px solid var(--line);border-radius:10px;padding:12px;margin:14px 0;background:var(--surface2)}.site-entry-table td{display:block;border:0;padding:0;min-width:0}.site-entry-table td::before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.site-entry-table .site-entry-person{grid-column:1/5;padding-right:26px}.site-entry-table .site-entry-hours{grid-column:1;grid-row:2}.site-entry-table .site-entry-work{grid-column:2/5;grid-row:2}.site-entry-table .site-entry-volume{grid-column:1/3}.site-entry-table .site-entry-rate,.site-entry-table .site-entry-amount{grid-column:span 1}.site-entry-table .site-entry-note{grid-column:1/5}.site-entry-table .site-entry-remove{position:absolute;right:8px;top:30px}.site-entry-table output{font-size:11px;padding:12px 0;white-space:normal}.site-entry-table input{font-size:14px;min-height:44px}.site-entry-table .site-entry-person small{margin-top:4px}.site-combo-menu{width:100%;max-width:100%;max-height:220px}.site-combo-menu button{white-space:normal;font-size:13px}.site-entry-work .site-combo-menu{min-width:230px;left:auto;right:0}.site-day-actions{display:grid;grid-template-columns:1fr}.site-day-footer{position:sticky;bottom:0;z-index:5;display:grid;grid-template-columns:1fr;background:var(--surface);padding:12px 0 max(8px,env(safe-area-inset-bottom));gap:8px}.site-day-footer button{width:100%}.site-sheet-help{font-size:11px}
 #content:has(.site-day-sheet) .pagehead{margin-bottom:10px}#content:has(.site-day-sheet) .pagehead h1{font-size:24px}#content:has(.site-day-sheet) .pagehead .subtitle,#content:has(.site-day-sheet) .site-title-meta,#content:has(.site-day-sheet) .pagehead .actions{display:none}
 .site-metric{padding:16px}.site-metric strong{font-size:22px}.site-stage-cards{grid-template-columns:1fr}.site-table-filters{display:grid;grid-template-columns:1fr}.site-table-filters>label{min-width:0}.site-wide-table tr>th:first-child{min-width:175px;max-width:200px}.site-wide-table td,.site-wide-table th{font-size:11px}.site-month-sheet,.site-plan-sheet{padding:14px}.site-month-sheet .sectionhead{align-items:start;flex-direction:column}.site-crew-strip>section{flex-basis:225px}
}
#content:has(.site-day-sheet) .pagehead{margin:10px 0 8px;min-height:0}#content:has(.site-day-sheet) .pagehead h1{font-size:26px;margin:0}#content:has(.site-day-sheet) .pagehead .eyebrow,#content:has(.site-day-sheet) .pagehead .subtitle,#content:has(.site-day-sheet) .pagehead .actions{display:none}#content:has(.site-day-sheet) .site-title-meta{margin:0 0 12px;font-size:11px}#content:has(.site-day-sheet) .site-tabs{margin-top:10px;margin-bottom:14px}#content:has(.site-day-sheet) #site-back{margin-bottom:6px;padding:6px 10px;font-size:11px}.site-sheet-toolbar{margin-bottom:10px}.site-day-coverage{padding:9px 0}.site-sheet-help{margin:9px 0;font-size:11px}
.site-matrix-person tr>td:nth-child(2){position:sticky;left:245px;z-index:1;background:var(--surface)}.site-matrix-person thead th:nth-child(2){position:sticky;left:245px;z-index:4}.site-matrix-person tr>th:first-child{width:245px;min-width:245px;max-width:245px}.site-matrix-person .site-total-row>td:nth-child(2){background:var(--surface2)}
@media(max-width:700px){.site-matrix-person tr>td:nth-child(2),.site-matrix-person thead th:nth-child(2){left:175px}.site-matrix-person tr>th:first-child{width:175px;min-width:175px;max-width:175px}}
.site-matrix-volumes tr>th:first-child{width:245px;min-width:245px;max-width:245px}
@media(min-width:701px){
 .site-matrix-volumes tr:not(.site-stage-row)>td:nth-child(2),.site-matrix-volumes thead th:nth-child(2){position:sticky;left:245px;min-width:80px;max-width:80px;width:80px}
 .site-matrix-volumes tr:not(.site-stage-row)>td:nth-child(3),.site-matrix-volumes thead th:nth-child(3){position:sticky;left:325px;min-width:70px;max-width:70px;width:70px}
 .site-matrix-volumes tr:not(.site-stage-row)>td:nth-child(4),.site-matrix-volumes thead th:nth-child(4){position:sticky;left:395px;min-width:70px;max-width:70px;width:70px}
 .site-matrix-volumes tr:not(.site-stage-row)>td:nth-child(5),.site-matrix-volumes thead th:nth-child(5){position:sticky;left:465px;min-width:70px;max-width:70px;width:70px}
 .site-matrix-volumes tr:not(.site-stage-row)>td:nth-child(6),.site-matrix-volumes thead th:nth-child(6){position:sticky;left:535px;min-width:75px;max-width:75px;width:75px}
 .site-matrix-volumes tr:not(.site-stage-row)>td:nth-child(n+2):nth-child(-n+6){z-index:1;background:var(--surface)}.site-matrix-volumes thead th:nth-child(n+2):nth-child(-n+6){z-index:4;background:var(--surface2)}
 .site-matrix-time tr>td:nth-child(3),.site-matrix-time thead th:nth-child(3){position:sticky;left:310px;min-width:85px;z-index:1;background:var(--surface)}.site-matrix-time thead th:nth-child(3){z-index:4;background:var(--surface2)}
}
@media(max-width:700px){.site-month-matrix tr>th:first-child,.site-matrix-person tr>th:first-child,.site-matrix-volumes tr>th:first-child{width:140px;min-width:140px;max-width:140px}.site-matrix-person tr>td:nth-child(2){position:static}.site-matrix-person thead th:nth-child(2){left:auto}}
.site-day-coverage #site-missing{min-width:0;max-width:100%}.site-day-coverage details:not([open])>p{display:none}.site-day-coverage details p{position:static;top:auto;right:auto;left:auto;width:240px;max-width:100%;max-height:250px;font-size:12px;box-shadow:none}
/* Reports share one section. Numeric cells keep a stable, centred rhythm. */
.site-wide-table th,.site-wide-table td{text-align:center;vertical-align:middle}
.site-entry-table .site-entry-hours input,.site-entry-table .site-entry-volume input,.site-entry-table output{text-align:center;font-variant-numeric:tabular-nums}
.site-matrix-volumes tr:not(.site-stage-row)>:nth-child(6),.site-matrix-time tr>:nth-child(3),.site-matrix-person:not(.site-matrix-time) tr>:nth-child(2),.site-works-matrix tr:not(.site-stage-row)>:nth-child(10){border-right:3px solid var(--muted)}
.site-report-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 20px}.site-report-tabs button{font-size:13px;min-height:40px}.site-report-tabs .active{background:var(--softblue);border-color:var(--blue);color:var(--blue)}
.site-report-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:14px;margin:22px 0}.site-report-metrics>div{display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface2);min-width:0}.site-report-metrics strong{font-size:23px;font-variant-numeric:tabular-nums}.site-report-metrics small,.site-report-metrics span{font-size:11px;color:var(--muted);line-height:1.5}
.site-report-sheet>label{max-width:430px}.site-payslip-person{display:flex;gap:8px;align-items:end;margin:18px 0}.site-payslip-person label{flex:1;max-width:550px;min-width:0}.site-payslip-person button{min-height:44px}.site-payslip-person select{min-height:44px}
.site-detail-report .site-report-work,.site-detail-report .site-report-note{text-align:left;white-space:normal;min-width:230px;max-width:340px}.site-detail-report .site-report-work small{line-height:1.6}.site-detail-report .site-report-note{min-width:150px;max-width:250px}.site-detail-report .site-report-pending{background:var(--softblue)}.site-day-subtotal td{font-weight:600;background:var(--surface2);border-bottom:2px solid var(--muted)}.site-detail-report .site-total-row td{border-top:3px solid var(--muted)}
.site-payslip-table tr>:first-child{position:sticky;left:0;z-index:2;background:var(--surface);min-width:120px}.site-payslip-table thead th:first-child{min-width:120px;z-index:4;text-align:center}.site-payslip-table .site-total-row td:first-child,.site-payslip-table .site-day-subtotal td:first-child{background:var(--surface2)}
.site-membership-button{text-align:left;min-width:140px;line-height:1.6;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}.site-membership-popover{position:fixed;z-index:60;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:16px;overflow:auto}.site-membership-popover .sectionhead{align-items:start;gap:12px}.site-membership-popover .sectionhead strong{font-size:13px}.site-membership-popover .sectionhead button{border:0;padding:0 4px}.site-membership-popover p,.site-membership-popover label{font-size:11px;line-height:1.6}.site-membership-options{max-height:180px;overflow:auto;margin:12px 0}.site-membership-options .check{flex-wrap:wrap;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}.site-membership-options small{display:block;color:var(--muted);width:100%;padding-left:25px}.site-membership-popover .actions button{font-size:11px;padding:8px 10px}.site-membership-popover [role=alert]{color:var(--red)}
@media(max-width:700px){.site-report-sheet{padding:14px}.site-report-sheet>.sectionhead{flex-direction:column;align-items:start;gap:14px}.site-report-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.site-report-metrics>div{padding:12px}.site-report-metrics strong{font-size:19px}.site-report-tabs{gap:6px}.site-report-tabs button{font-size:11px;padding:8px 10px}.site-detail-report .site-report-work{min-width:200px}}
.site-payslip-toolbar{display:grid;grid-template-columns:1.6fr 1fr 1fr;align-items:end;gap:12px;margin:14px 0}.site-payslip-toolbar .site-table-filters{display:contents}.site-payslip-toolbar .site-payslip-person{margin:0}.site-payslip-toolbar .site-table-filters>label{min-width:0}
#content:has(#site-report-body) .pagehead{margin:10px 0 12px;min-height:0}#content:has(#site-report-body) .pagehead h1{font-size:26px}#content:has(#site-report-body) .pagehead .eyebrow,#content:has(#site-report-body) .pagehead .subtitle{display:none}#content:has(#site-report-body) .site-title-meta{margin:0 0 14px;font-size:11px}#content:has(#site-report-body) .site-tabs{margin-top:10px;margin-bottom:18px}.site-report-sheet .site-report-metrics{margin:16px 0}.site-report-sheet .site-report-metrics>div{gap:7px;padding:12px}.site-report-sheet .site-report-metrics strong{font-size:22px}
@media(max-width:900px){.site-payslip-toolbar{grid-template-columns:1fr 1fr}.site-payslip-toolbar .site-payslip-person{grid-column:1/-1}}@media(max-width:700px){.site-payslip-toolbar{gap:10px}.site-report-sheet .site-report-metrics strong{font-size:19px}}
.site-report-card td:not(:first-child){text-align:center;font-variant-numeric:tabular-nums}
.site-payslip-actions{display:flex;align-items:end;justify-content:flex-end;gap:8px;flex-wrap:wrap}.site-payslip-actions>button{min-height:42px;font-size:12px}.site-payslip-actions .site-date-nav{margin-left:12px}@media(max-width:700px){.site-payslip-actions{justify-content:flex-start;width:100%}.site-payslip-actions .site-date-nav{margin-left:0;width:100%}}

/* Each object owns its sections; the full title remains available on hover. */
#objectsections .site-object-link{min-width:0;width:100%;font-weight:600;gap:9px}
#objectsections .site-object-link .navlabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#objectsections .site-object-link.selected{color:var(--green)}
#objectsections .site-object-children{padding-left:12px;margin-left:12px;border-left:1px solid var(--line)}
#objectsections .site-object-children .nav{width:100%;gap:9px;font-size:11px;padding:10px 8px}
.site-tabs{display:none}html[data-sidebar=compact] .site-tabs{display:flex}
.site-report-tabs .active{color:var(--green);border-color:var(--green);background:var(--softblue)}
.site-combined-legend{display:flex;flex-wrap:wrap;gap:10px 24px;margin:16px 0;font-size:12px;line-height:1.6}
.site-matrix-combined tr>th:first-child{width:220px;min-width:220px;max-width:220px;white-space:normal}
.site-matrix-combined tr>:nth-child(2){min-width:65px;width:65px;max-width:65px}
.site-matrix-combined tr>:nth-child(3){min-width:130px;width:130px;max-width:130px;border-right:3px solid var(--muted)}
.site-matrix-combined td:nth-child(n+4),.site-matrix-combined th:nth-child(n+4){min-width:175px;width:175px;max-width:175px;padding:5px}
.site-matrix-combined .site-combined-cell{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:7px;min-height:145px;width:100%;border:1px solid transparent;background:transparent;white-space:normal;overflow-wrap:anywhere;padding:10px 7px;font-size:12px;line-height:1.4;color:var(--ink)}
.site-combined-cell:hover,.site-combined-cell:focus-visible{background:var(--softblue);border-color:var(--green)}
.site-combined-cell .site-combined-hours{color:var(--muted)}.site-combined-cell strong{font-size:13px}.site-combined-volume{font-size:11px}.site-combined-cell small{font-size:10px;color:var(--green);margin:0}
.site-combined-work{font-weight:600;font-size:12px;line-height:1.45}.site-combined-stage{font-size:10px;font-weight:400;color:var(--muted)}.site-combined-day-total{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px 8px;width:100%;padding-top:8px;margin-top:auto;border-top:1px solid var(--line)}.site-combined-total-label,.site-combined-day-total>.site-pending{width:100%;font-size:10px}.site-combined-total-label{color:var(--muted);font-weight:400}.site-combined-more{text-decoration:underline;text-underline-offset:3px}.site-combined-volume{font-weight:500}
@media(min-width:701px){.site-matrix-combined tr>:nth-child(2),.site-matrix-combined tr>:nth-child(3){position:sticky;z-index:1;background:var(--surface)}.site-matrix-combined tr>:nth-child(2){left:220px}.site-matrix-combined tr>:nth-child(3){left:285px}.site-matrix-combined thead tr>:nth-child(2),.site-matrix-combined thead tr>:nth-child(3){z-index:4;background:var(--surface2)}}
@media(max-width:700px){.site-matrix-combined tr>th:first-child{width:130px;min-width:130px;max-width:130px}.site-matrix-combined tr>:nth-child(3){min-width:115px;width:115px;max-width:115px}.site-matrix-combined td:nth-child(n+4),.site-matrix-combined th:nth-child(n+4){min-width:150px;width:150px;max-width:150px}.site-combined-work{font-size:11px}}

.site-combined-filters{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin:14px 0}.site-combined-filters .site-table-filters{display:contents}.site-combined-filters label{min-width:0}.site-combined-sheet .sectionhead{margin-bottom:10px}.site-combined-sheet>p{font-size:11px;line-height:1.5}.site-combined-sheet .site-combined-legend{margin:12px 0}.site-combined-sheet{padding:20px}html:not([data-sidebar=compact]) #site-back{display:none}
@media(max-width:900px){.site-combined-filters{grid-template-columns:1fr 1fr}.site-combined-filters>label{grid-column:1/-1}}@media(max-width:700px){.site-combined-sheet{padding:14px}}

.crew-live-panel{margin-bottom:20px}.crew-live-totals{display:flex;gap:18px;flex-wrap:wrap;margin:16px 0;color:var(--muted);font-size:12px}.crew-live-totals strong{color:var(--ink)}.crew-live-table{width:100%;min-width:740px}.crew-live-table th,.crew-live-table td{padding:12px;vertical-align:top}.crew-live-table th:not(:first-child),.crew-live-table td:not(:first-child){text-align:center}.crew-live-table td:first-child,.crew-live-table td:last-child{text-align:left}.crew-live-table td>small{display:block;margin-top:5px;color:var(--muted)}.crew-live-table td:last-child{min-width:240px}.crew-live-inside{color:var(--green)!important}.crew-live-work{display:block;width:100%;text-align:left;padding:8px 10px;margin:0 0 6px;font-weight:400;white-space:normal}.crew-live-work strong,.crew-live-work small{display:block;line-height:1.5}.crew-live-work small{color:var(--muted)}.crew-inline-button{display:block;margin-top:7px;padding:4px 0;border:0;background:transparent;color:var(--green);font-size:11px}.crew-selfie img{display:block;max-width:100%;max-height:65vh;border-radius:12px;margin-bottom:24px;object-fit:contain}.crew-live-panel .sectionhead small{display:block;margin-top:6px}@media(max-width:720px){.crew-live-panel .sectionhead{align-items:flex-start;flex-wrap:wrap}.crew-live-panel .sectionhead button{font-size:11px;padding:8px}.crew-live-totals{gap:8px 16px}}
.crew-board-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:16px;margin:20px 0 14px}.crew-board-toolbar>label{min-width:210px}.crew-board-tabs{margin-bottom:18px}.crew-board-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.crew-board-metrics>div{background:var(--surface2);border:1px solid var(--line);border-radius:12px;padding:16px}.crew-board-metrics small,.crew-day-amounts small{display:block;color:var(--muted);font-size:11px;margin-bottom:8px}.crew-board-metrics strong{font-size:24px;line-height:1.2}.crew-board-groups{display:grid;gap:16px}.crew-day-card{border:1px solid var(--line);border-radius:14px;padding:20px}.crew-day-card h3{margin:0 0 6px}.crew-day-card .sectionhead small{color:var(--muted);font-size:12px}.crew-day-amounts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:18px 0}.crew-day-amounts strong{font-size:19px;font-variant-numeric:tabular-nums}.crew-day-works{margin:14px 0;border-top:1px solid var(--line)}.crew-day-works>div{display:grid;grid-template-columns:minmax(180px,1fr) 110px 150px;align-items:center;gap:18px;border-bottom:1px solid var(--line);padding:12px 0}.crew-day-works strong,.crew-day-works b{text-align:right;font-variant-numeric:tabular-nums}.crew-day-card details{margin:16px 0}.crew-day-card summary{font-weight:600;cursor:pointer;margin-bottom:12px}.crew-day-card>.primary{margin-right:10px}.crew-day-warning{color:var(--orange,#b06b26);padding:10px 12px;border-radius:8px;background:var(--surface2)}.crew-manual-day{margin-top:22px}.crew-manual-day>summary{font-weight:600;cursor:pointer;padding:15px 0;color:var(--muted)}.crew-board-tabs button{padding:10px 14px}.crew-live-table small{display:block;margin-top:5px;color:var(--muted)}.crew-live-panel .approved{color:var(--green)}
@media(max-width:850px){.crew-board-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.crew-day-works>div{grid-template-columns:1fr 80px 110px;gap:8px}.crew-day-amounts{gap:10px}.crew-day-amounts strong{font-size:16px}.crew-day-card{padding:14px}.crew-day-card .sectionhead{gap:12px;flex-wrap:wrap}.crew-day-card>.primary{margin:8px 0;width:100%}}
@media(max-width:500px){.crew-board-toolbar .site-date-nav{flex-wrap:wrap}.crew-day-amounts{grid-template-columns:1fr}.crew-day-amounts>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.crew-day-amounts small{margin:0}.crew-day-works>div{grid-template-columns:1fr 100px}.crew-day-works>div>span{grid-column:1/-1}.crew-day-works strong{text-align:left}}
/* Live summary uses regular reading sizes; only excess spacing is reduced. */
.crew-live-panel{padding:24px}.crew-live-panel .sectionhead{margin-bottom:16px}.crew-live-panel h2{font-size:20px}
.crew-board-toolbar{gap:16px;margin:18px 0}.crew-board-toolbar label{font-size:13px}.crew-board-toolbar input,.crew-board-toolbar select{font-size:14px;min-height:44px}.crew-board-tabs button{font-size:14px;padding:10px 16px}
.crew-compact-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:18px 0 24px}.crew-compact-stats>div{padding:14px 16px;background:var(--surface2);border:1px solid var(--line);border-radius:10px}.crew-compact-stats span{display:block;font-size:13px;color:var(--muted);margin-bottom:8px}.crew-compact-stats strong{font-size:24px;font-variant-numeric:tabular-nums}
.crew-live-table{font-size:14px}.crew-live-table th{font-size:13px}.crew-live-table small{font-size:12px}.crew-inline-button{font-size:13px;padding:6px 0}.crew-day-card{padding:20px}.crew-day-card h3{font-size:18px}.crew-day-card summary{font-size:14px}.crew-day-card .sectionhead small{font-size:13px}.crew-day-works>div{font-size:14px;padding:10px 0}.crew-day-amounts{margin:14px 0}.crew-day-amounts small{font-size:13px}.crew-day-amounts strong{font-size:20px}
.crew-live-layout{display:grid;grid-template-columns:1fr;gap:24px}.crew-current-table{width:100%;min-width:760px;font-size:14px}.crew-current-table th,.crew-current-table td{padding:14px 12px;vertical-align:top;text-align:left}.crew-current-table th{font-size:13px}.crew-current-table small{display:block;margin-top:7px;font-size:12px;line-height:1.6;color:var(--muted)}.crew-current-table td:first-child{min-width:200px}.crew-current-table td:last-child{min-width:180px}.crew-current-work{display:block;width:100%;text-align:left;font-size:14px;padding:10px 12px;margin-bottom:8px;white-space:normal;line-height:1.6}.crew-current-work:hover{color:var(--green)}
.crew-activity{border-top:1px solid var(--line);padding-top:18px}.crew-activity h3{font-size:16px;margin:0 0 14px}.crew-activity>div{display:flex;gap:16px;margin:16px 0}.crew-activity time{color:var(--muted);font-size:13px;padding-top:2px;white-space:nowrap}.crew-activity p{margin:0;line-height:1.6;font-size:14px}.crew-activity strong,.crew-activity span{display:block}.crew-activity span{color:var(--muted);font-size:13px}.crew-missing{font-size:13px;color:var(--muted);margin:18px 0}.crew-missing summary{cursor:pointer}.crew-ready-line{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding:16px 0;font-size:14px}
@media(max-width:1150px){.crew-compact-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.crew-live-panel{padding:18px}.crew-compact-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.crew-ready-line{align-items:flex-start;flex-direction:column}}
.crew-message-row{display:block;width:100%;text-align:left;padding:16px;margin:12px 0;white-space:normal}.crew-message-row strong{display:block;font-size:15px}.crew-message-row p{margin:8px 0;color:var(--muted);font-size:13px}.crew-message-row small{font-size:12px}.crew-message-body{white-space:pre-wrap;line-height:1.7;margin:18px 0;overflow-wrap:anywhere}.crew-message-hash{overflow-wrap:anywhere;font-size:12px}

.crew-review-strip{display:grid;gap:8px;margin:12px 0;padding:12px 14px;border:1px solid var(--line,#dfe5ee);border-radius:12px;background:var(--panel,#fff)}
.crew-review-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.crew-review-row>span{flex:1;min-width:160px}.crew-review-row small{display:block;color:var(--muted,#7d8796)}.crew-manual-note{padding:8px;border-left:3px solid #d59a28;background:rgba(213,154,40,.06)}.crew-manual-note p{margin:4px 0}
/* Demo placement only: the established font sizes, palette and editable day stay. */
.crew-usability .crew-review-strip{margin:14px 0}.crew-usability .crew-compact-stats{gap:0;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);padding:15px 0;margin:18px 0}.crew-usability .crew-compact-stats>div{border:0;border-right:1px solid var(--line);border-radius:0;padding:0 20px;background:transparent}.crew-usability .crew-compact-stats>div:last-child{border:0}.crew-usability .crew-compact-stats strong{font-size:22px}.crew-single-review{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.crew-single-review small{flex:1}.crew-result-line{display:flex;align-items:center;gap:12px;margin:5px 0}.crew-result-line>.crew-current-work{flex:1;min-width:180px}.crew-result-line>button:not(.crew-current-work){flex:none}.crew-result-actions{margin:18px 0}.crew-usability-table td{padding-block:18px}.crew-usability-table small{display:block}.site-extra-toggle{margin:0!important;margin-left:auto!important}.site-usability:not(.site-show-extras) .site-entry-hours,.site-usability:not(.site-show-extras) .site-entry-note,.site-usability:not(.site-show-extras) .site-entry-table th:nth-child(2),.site-usability:not(.site-show-extras) .site-entry-table th:nth-child(7){display:none}.site-usability .site-day-coverage{flex-wrap:wrap}.site-usability .site-entry-table input{min-height:42px}.site-usability .site-day-footer{position:sticky;bottom:0;background:var(--surface,#fff);border-top:1px solid var(--line);padding-top:15px;z-index:2}@media(max-width:760px){.crew-usability .crew-compact-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px 0}.crew-usability .crew-compact-stats>div{padding-inline:12px}.crew-result-line{align-items:flex-start;flex-wrap:wrap}.site-extra-toggle{margin-left:0!important}}
/* Alignment pass for the desktop foreman workspace. */
.crew-usability-table{table-layout:fixed;min-width:920px}.crew-usability-table th:nth-child(1){width:21%}.crew-usability-table th:nth-child(2){width:14%}.crew-usability-table th:nth-child(3){width:42%}.crew-usability-table th:nth-child(4){width:15%}.crew-usability-table th:nth-child(5){width:8%}.crew-usability-table th:nth-child(4),.crew-usability-table td:nth-child(4){text-align:right;font-variant-numeric:tabular-nums}.crew-usability-table td:nth-child(2) small{white-space:nowrap;font-variant-numeric:tabular-nums}.crew-usability .crew-result-line{display:grid;grid-template-columns:minmax(0,1fr) 86px;align-items:start;gap:12px}.crew-usability .crew-result-line>.crew-current-work{width:100%;max-width:none;min-width:0;margin:0;text-align:left}.crew-usability .crew-result-line>button:not(.crew-current-work){width:86px;min-height:38px;margin:0}.crew-usability .crew-current-table td{vertical-align:top}.crew-usability .crew-board-toolbar{align-items:end;gap:16px}.crew-usability .crew-board-toolbar input,.crew-usability .crew-board-toolbar select,.crew-usability .crew-board-toolbar>button,.crew-usability .site-date-nav>button{height:42px}.crew-usability .crew-review-strip{min-height:46px}.site-usability .site-sheet-toolbar{align-items:end}.site-usability .site-sheet-toolbar input,.site-usability .site-sheet-toolbar select,.site-usability .site-sheet-toolbar button{height:42px}
.crew-usability-table th:nth-child(3){width:39%}.crew-usability-table th:nth-child(5){width:11%}.crew-usability-table [data-office-add-work]{white-space:nowrap;display:inline-flex;align-items:center;min-height:32px;padding:4px 0;text-align:left}
