:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #fff;
  --ink: #17202a;
  --muted: #667085;
  --line: #d8dee8;
  --accent: #0f766e;
  --ok: #047857;
  --ok-bg: #e7f7ef;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .42; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 22px; letter-spacing: 0; }
h2 { font-size: 18px; letter-spacing: 0; }
h3 { font-size: 15px; letter-spacing: 0; }

.shell { width: min(2400px, calc(100vw - clamp(32px, 5vw, 128px))); margin: 0 auto; }
.date-strip, .record { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.date-strip { margin-top: 8px; padding: 8px; }
.strip-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.admin-total-filter { display: inline-flex; align-self: flex-end; gap: 3px; padding: 3px; max-width: 100%; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.admin-total-option { min-height: 29px; padding: 5px 9px; border: 1px solid transparent; border-radius: 4px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; white-space: nowrap; }
.admin-total-option:hover, .admin-total-option.is-active { color: var(--accent); border-color: #99cbc5; background: #e3f1ef; }
.admin-total-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.page-tabs { display: flex; align-items: center; gap: 3px; }
.tab { display: inline-flex; align-items: center; min-height: 35px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 800; text-decoration: none; }
.tab:hover, .tab.is-active { border-color: #99cbc5; background: #e3f1ef; color: var(--accent); }
.scope-note { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.scope-badge { border: 1px solid #b8d9d4; border-radius: 999px; padding: 5px 8px; color: var(--accent); background: #edf8f6; font-size: 11px; font-weight: 900; }
.small-button { border: 1px solid var(--accent); border-radius: 6px; background: #fff; color: var(--accent); padding: 8px 11px; font-size: 12px; font-weight: 800; }
.small-button.is-on { background: var(--accent); color: #fff; }
.group-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.group-bundle { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfd; }
.group-bundle-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; border-bottom: 1px solid var(--line); color: #344054; font-size: 12px; }
.group-bundle-head span { color: var(--muted); font-size: 11px; font-weight: 800; }
.group-bundle-rows { padding: 6px 8px; }
.group-role-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 38px; }
.group-role-row + .group-role-row { border-top: 1px dashed #dfe5ec; }
.group-role-label { color: var(--muted); font-size: 11px; font-weight: 900; }
.group-buttons { display: flex; flex-wrap: wrap; gap: 5px; }
.group-button { min-height: 30px; border: 1px solid #c9d4df; border-radius: 6px; padding: 5px 9px; color: #344054; background: #fff; font-size: 11px; font-weight: 800; white-space: nowrap; }
.group-button:hover, .group-button.is-active { border-color: var(--accent); color: var(--accent); background: #e3f1ef; }
.group-button:disabled, .group-button:disabled:hover { border-color: #d8dee8; color: #98a2b3; background: #f8fafc; cursor: not-allowed; opacity: .62; }
.group-button.is-admin { border-color: #c7b9a4; color: #765b32; background: #fffaf1; }
.group-button.is-admin:hover, .group-button.is-admin.is-active { border-color: #9a6c2f; color: #694815; background: #fff1d9; }
.review-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; min-width: 0; }
.review-filter-controls { display: flex; align-items: center; gap: 6px; }
.review-filter-dropdown { position: relative; min-width: 104px; }
.review-filter-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; color: #344054; background: #fff; cursor: pointer; font-size: 11px; font-weight: 900; list-style: none; }
.review-filter-summary::-webkit-details-marker { display: none; }
.review-filter-summary::after { content: "▾"; color: var(--muted); font-size: 10px; }
.review-filter-dropdown[open] .review-filter-summary { border-color: var(--accent); color: var(--accent); background: #edf8f6; }
.review-filter-dropdown[open] .review-filter-summary::after { content: "▴"; }
.review-filter-summary strong { color: var(--muted); font-size: 10px; }
.review-filter-menu { position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 8px 22px rgb(16 24 40 / 14%); }
.review-filter-option { display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 6px; color: #344054; font-size: 11px; font-weight: 800; cursor: pointer; }
.review-filter-option:hover { border-radius: 4px; background: #f1f8f7; }
.review-filter-option input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); }
.review-filter-all { border-bottom: 1px solid var(--line); margin-bottom: 4px; color: var(--accent); }
.review-filter-items { max-height: 240px; overflow-y: auto; }
.review-table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfd; color: #344054; font-size: 12px; }
.review-table-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.review-row-mode { display: inline-flex; gap: 4px; }
.review-row-mode .small-button { padding: 6px 9px; }
.review-date-table.is-collapsed { display: none; }
.date-total-table .saturday { color: #2563eb; }
.table-scroll { overflow-x: auto; }
.date-total-table { width: 100%; min-width: 920px; border-collapse: collapse; table-layout: fixed; font-size: 11px; line-height: 1.18; background: #fff; }
.date-total-table th, .date-total-table td { padding: 4px 6px; border: 1px solid var(--line); text-align: right; white-space: nowrap; }
.date-total-table th:first-child, .date-total-table td:first-child { width: 116px; text-align: left; background: #fbfcfd; color: #344054; font-weight: 900; }
.date-total-table .admin-total-row th:first-child { color: #765b32; background: #fffaf1; }
.date-total-table thead th { text-align: center; background: #fbfcfd; }
.date-total-table th.active-date, .date-total-table td.active-date { background: #ecfdf3; }
.date-total-table th.zero-date, .date-total-table td.zero-date { color: #98a2b3; background: #f8fafc; }
.date-total-table th.active-date.zero-date, .date-total-table td.active-date.zero-date { background: #f8fafc; }
.date-total-table .holiday { color: #b42318; }
.date-total-table th button { width: 100%; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-weight: 900; }
.date-total-table th button:hover { color: var(--accent); }
.date-total-table th.zero-date button { color: #98a2b3; }
.review-empty-row th { height: 34px; color: var(--muted); background: #f8fafc !important; text-align: center !important; }

main { padding: 8px 0 32px; }
.shell-main { min-width: 0; }
.record { margin-top: 12px; overflow: hidden; }
.review-record-list { display: grid; gap: 12px; margin-top: 12px; }
.review-record-list .record { margin-top: 0; }
.record-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.record-head-main { min-width: 0; }
.record-head h2 { margin-bottom: 4px; }
.subtitle { margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.status { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px; background: var(--ok-bg); color: var(--ok); font-size: 11px; font-weight: 900; white-space: nowrap; }
.date-nav { display: inline-grid; grid-template-columns: 38px 38px minmax(170px, auto) 38px 38px; align-items: center; gap: 6px; }
.date-nav h2 { text-align: center; min-width: 170px; }
.day-title-button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; white-space: nowrap; }
.day-title-button:hover { opacity: .82; }
.day-picker { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nav-button { width: 38px; height: 34px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; padding: 0; font-size: 18px; line-height: 1; }
.nav-button.is-muted { background: #a6d2ce; }
.review-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.keyboard-hint { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; color: var(--muted); font-size: 11px; font-weight: 700; text-align: right; }
.keyboard-hint span { white-space: nowrap; }
.magnifier-controls { display: inline-flex; gap: 6px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.magnifier-button { min-width: 46px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #344054; padding: 6px 8px; font-size: 12px; font-weight: 800; }
.magnifier-button.is-active { border-color: var(--accent); background: var(--accent); color: #fff; }
.temporary-issue-launcher { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; border: 1px solid #d8bf8d; border-radius: 6px; padding: 6px 10px; color: #765b32; background: #fffaf1; font-size: 11px; font-weight: 900; white-space: nowrap; }
.temporary-issue-launcher:hover, .temporary-issue-launcher.is-active { border-color: #9a6c2f; color: #694815; background: #fff1d9; }
.temporary-issue-launcher span { min-width: 18px; padding: 1px 4px; border-radius: 999px; color: #fff; background: #9a6c2f; text-align: center; }
.temporary-issue-modal { width: min(900px, calc(100vw - 48px)); max-width: none; max-height: min(84vh, 820px); margin: auto; padding: 0; border: 1px solid #e8c98b; border-radius: 8px; background: #fffaf1; color: var(--ink); box-shadow: 0 18px 48px rgb(16 24 40 / 24%); }
.temporary-issue-modal::backdrop { background: rgb(16 24 40 / 42%); }
.temporary-issue-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #f0dcae; white-space: nowrap; }
.temporary-issue-head > div:first-child { display: inline-flex; align-items: center; gap: 8px; color: #694815; font-size: 12px; }
.temporary-issue-head > div:first-child span { color: #9a6c2f; font-size: 11px; font-weight: 800; }
.temporary-issue-nav, .temporary-issue-actions { display: flex; flex-wrap: nowrap; gap: 5px; }
.temporary-issue-modal .small-button { min-height: 28px; padding: 5px 8px; border-color: #d8bf8d; color: #765b32; background: #fff; font-size: 11px; white-space: nowrap; }
.temporary-issue-modal .small-button.is-on { border-color: #9a6c2f; color: #fff; background: #9a6c2f; }
.temporary-issue-close { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 4px; color: #765b32; background: transparent; font-size: 22px; line-height: 1; }
.temporary-issue-close:hover { background: #fff1d9; }
.temporary-issue-editor { display: grid; grid-template-columns: auto max-content minmax(320px, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; }
.temporary-issue-check { display: inline-flex; align-items: center; gap: 6px; color: #694815; font-size: 11px; font-weight: 800; white-space: nowrap; }
.temporary-issue-check input { width: 15px; height: 15px; margin: 0; accent-color: #9a6c2f; }
.temporary-issue-context { color: #765b32; font-size: 11px; font-weight: 800; white-space: nowrap; }
.temporary-issue-memo { width: 100%; min-height: 34px; border: 1px solid #d8bf8d; border-radius: 5px; padding: 6px 8px; color: var(--ink); background: #fff; font-size: 11px; resize: vertical; outline: none; }
.temporary-issue-memo:focus { border-color: #9a6c2f; box-shadow: 0 0 0 3px rgb(154 108 47 / 12%); }
.temporary-issue-empty { padding: 8px 10px 10px; border-top: 1px dashed #f0dcae; color: #9a6c2f; font-size: 11px; }
.temporary-issue-list { display: grid; gap: 4px; max-height: 170px; overflow-y: auto; padding: 8px 10px 10px; border-top: 1px dashed #f0dcae; }
.temporary-issue-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; border: 1px solid transparent; border-radius: 5px; padding: 6px 8px; color: #694815; background: rgb(255 255 255 / 72%); text-align: left; }
.temporary-issue-item:hover, .temporary-issue-item.is-active { border-color: #d8bf8d; background: #fff; }
.temporary-issue-item-main { display: grid; min-width: 0; gap: 1px; }
.temporary-issue-item-main strong { overflow: hidden; color: #694815; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.temporary-issue-item-main span { overflow: hidden; color: #9a6c2f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.temporary-issue-item small { color: #9a6c2f; font-size: 10px; font-weight: 800; white-space: nowrap; }

.review-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr) minmax(420px, .95fr); gap: 12px; padding: 12px; align-items: start; }
.review-grid-viewport { overflow: auto; }
.review-grid > .pane { min-height: 440px; }
.magnifier-zone { position: relative; }
.magnifier-content { position: relative; z-index: 0; }
.magnifier-lens { position: absolute; z-index: 4; width: 180px; height: 180px; border: 3px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 8px 24px rgba(16, 24, 40, .28), 0 0 0 1px rgba(15, 118, 110, .45); pointer-events: none; transform: translate(-50%, -50%); overflow: hidden; }
.magnifier-lens[hidden] { display: none; }
.magnifier-lens-content { position: absolute; inset: 0; overflow: hidden; background: #fff; }
.magnifier-lens-content > .magnifier-content { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.pane { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.pane-title, .section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.section-title { min-height: 44px; }
.section-title > span { color: var(--muted); font-size: 11px; }
.empty-pane { display: grid; justify-items: center; align-content: center; min-height: 440px; padding: 28px 18px; color: var(--muted); text-align: center; }
.empty-pane.document-empty { background: #eef1f5; }
.document-stack { display: flex; flex-direction: column; gap: 8px; max-height: min(78vh, 900px); padding: 8px; overflow: auto; background: #eef1f5; }
.document-stack { align-items: flex-start; }
.output-document-stack { cursor: grab; overscroll-behavior: contain; }
.output-document-stack[data-panning="true"] { cursor: grabbing; user-select: none; }
.output-document-stack .document-page { flex: 0 0 auto; width: var(--document-page-width, 100%); }
.output-document-stack .document-page img { pointer-events: none; -webkit-user-drag: none; }
.document-title-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.document-zoom-controls { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafc; }
.document-zoom-button { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 4px; background: transparent; color: #344054; padding: 0; font-size: 18px; line-height: 1; }
.document-zoom-button:hover { background: #e3f3f0; color: var(--accent); }
.document-zoom-value { width: 38px; color: #344054; font-size: 11px; font-weight: 800; text-align: center; }
.document-page { margin: 0; border: 1px solid #cbd5e1; background: #fff; }
.document-page img { display: block; width: 100%; height: auto; min-height: 220px; object-fit: contain; background: #fff; }
.document-page figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; padding: 5px 8px; border-top: 1px solid var(--line); color: #344054; background: #fbfcfd; font-size: 10px; font-weight: 800; }
.document-page figcaption span { color: var(--muted); font-weight: 700; }
.empty-mark { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border: 1px solid #b7c4cc; border-radius: 50%; color: var(--accent); background: #fff; font-size: 18px; }
.empty-pane strong { color: var(--ink); font-size: 14px; }
.empty-pane p { max-width: 260px; margin-top: 7px; font-size: 12px; line-height: 1.65; }
.record-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--line); }
.summary-line { color: var(--ok); font-size: 13px; font-weight: 800; white-space: pre-line; }
.output-labor-summary { display: block; padding: 0; }
.output-labor-summary .summary-table { padding: 8px; }
.output-labor-summary .labor-table tbody tr.is-output-active td { background: #e7f5f1; color: #0d625c; font-weight: 800; }
.output-labor-summary .labor-table tbody tr.is-output-active td:first-child { box-shadow: inset 4px 0 0 var(--accent); padding-left: 10px; }
.output-date-navigation { display: flex; justify-content: center; padding: 10px 8px; border-top: 1px solid var(--line); }
.summary-table { padding: 8px; overflow-x: auto; }
.labor-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px; border-bottom: 1px solid var(--line); color: #344054; font-size: 12px; }
.labor-heading span { color: var(--muted); font-size: 11px; }
.labor-table { width: 100%; border-collapse: collapse; font-size: 11px; line-height: 1.18; }
.labor-table th, .labor-table td { padding: 5px 6px; border: 1px solid var(--line); text-align: right; white-space: nowrap; }
.labor-table th:first-child, .labor-table td:first-child { text-align: left; }
.labor-table th { background: #fbfcfd; color: #475467; font-size: 11px; }
.labor-table tfoot th, .labor-table tfoot td { background: #f8fafc; font-weight: 900; }
.labor-table-divider td { height: 10px; padding: 0; border-right: 0; border-bottom: 0; border-left: 0; border-top: 2px solid #98a2b3; background: #fff; }
.table-empty { height: 78px; color: var(--muted); text-align: center !important; font-weight: 700; }
.labor-page-tabs { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafc; }
.labor-page-button { min-width: 28px; height: 26px; border: 1px solid transparent; border-radius: 4px; color: #475467; background: transparent; font-size: 11px; font-weight: 900; }
.labor-page-button:hover { color: var(--accent); background: #e3f3f0; }
.labor-page-button.is-active { color: #fff; background: var(--accent); }
.labor-split-pages { display: grid; gap: 12px; padding: 8px; }
.labor-subtable { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.labor-subtable .summary-table, .labor-page-total .summary-table { padding: 0; }
.labor-page-total { border: 2px solid #b8d9d4; border-radius: 6px; overflow: hidden; background: #f4fbf9; }
.labor-page-total .labor-heading { border-bottom-color: #b8d9d4; color: var(--accent); background: #edf8f6; }
.labor-page-total .labor-table tfoot th, .labor-page-total .labor-table tfoot td { background: #edf8f6; }

.summary-page-table { min-height: 320px; }
.summary-page-table .empty-pane { min-height: 280px; background: #fff; }
.data-source-badge { color: var(--muted); font-size: 10px; font-weight: 800; white-space: nowrap; }
.summary-main { padding: 10px 0 32px; }
.summary-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.summary-topbar h1 { margin-right: 4px; font-size: 22px; }
.access-main { display: grid; min-height: 100vh; place-items: center; padding: 24px 16px; }
.access-panel { width: min(100%, 360px); padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 12px 28px rgba(16, 24, 40, .08); }
.access-panel h1 { margin-bottom: 8px; font-size: 22px; }
.access-panel > p { margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.access-form { display: grid; gap: 8px; }
.access-form label { color: #344054; font-size: 12px; font-weight: 900; }
.access-input { width: 100%; min-height: 40px; border: 1px solid #c9d4df; border-radius: 6px; padding: 8px 10px; color: var(--ink); background: #fff; outline: none; }
.access-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.access-submit { min-height: 40px; margin-top: 6px; border: 1px solid var(--accent); border-radius: 6px; color: #fff; background: var(--accent); font-size: 13px; font-weight: 900; }
.access-submit:hover { background: #0b625c; }
.access-error { min-height: 18px; margin: 2px 0 0; color: #b42318; font-size: 12px; }
.monthly-summary { margin-top: 10px; }
.monthly-summary-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 800; }
.monthly-summary-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.monthly-control-settings, .monthly-control-exports { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.monthly-control-exports { margin-left: auto; gap: 6px; }
.monthly-control-group { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.monthly-toolbar-group { border-left: 1px solid #d3dbe5; padding-left: 12px; }
.monthly-toolbar-group .monthly-control-button.is-active { background: var(--accent); color: #fff; }
label.monthly-control-group:has([data-summary-admin]) { font-size: 11px; font-weight: 900; color: #344054; }
.monthly-control-label { margin-right: 2px; color: var(--muted); font-size: 11px; font-weight: 900; }
.monthly-segmented { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.monthly-control-button { min-height: 29px; border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px; color: #344054; background: #fff; font-size: 11px; font-weight: 900; white-space: nowrap; }
.monthly-segmented .monthly-control-button { border-color: transparent; }
.monthly-control-button:hover, .monthly-control-button.is-active { border-color: var(--accent); color: var(--accent); background: #e3f1ef; }
.monthly-table-wrap { overflow-x: auto; }
.monthly-table { width: 100%; min-width: 1360px; border-collapse: collapse; table-layout: fixed; font-size: 11px; line-height: 1.2; background: #fff; }
.monthly-table th, .monthly-table td { height: 29px; padding: 4px 7px; border: 1px solid var(--line); white-space: nowrap; }
.monthly-table th { color: #344054; font-weight: 900; }
.monthly-table td { text-align: right; }
.monthly-table .monthly-month-cell { width: 84px; min-width: 84px; }
.monthly-table .monthly-day-cell { width: 54px; min-width: 54px; padding-right: 4px; padding-left: 4px; }
.monthly-table .monthly-row-total-header { width: auto; }
.monthly-table .monthly-row-total { min-width: 104px; }
.monthly-table .monthly-row-total { color: #075e54; font-weight: 900; }
.monthly-table .monthly-shift { position: sticky; left: 0; z-index: 4; width: 76px; text-align: center; }
.monthly-table .monthly-group-label { position: sticky; left: 76px; z-index: 4; width: 148px; text-align: left; background: #fff; }
.monthly-table thead th { position: sticky; top: 0; z-index: 3; text-align: center; background: #f7f8fa; }
.monthly-table thead tr:first-child th:first-child { left: 0; width: 76px; }
.monthly-table thead tr:first-child th:nth-child(2) { left: 76px; width: 148px; }
.monthly-table thead tr:first-child th:first-child, .monthly-table thead tr:first-child th:nth-child(2) { z-index: 5; }
.monthly-table thead tr:nth-child(2) th { top: 29px; color: var(--accent); background: #fff8ee; }
.monthly-table thead tr:nth-child(2) th.monthly-weekday { color: #111827; }
.monthly-table thead tr:nth-child(2) th.monthly-saturday { color: #2563eb; }
.monthly-table thead tr:nth-child(2) th.monthly-holiday { color: #b42318; }
.monthly-table thead tr:nth-child(3) th { top: 58px; min-width: 70px; background: #f5f7fa; }
.monthly-table [data-metric="rush"] { background: #fff8e9; color: #795b28; }
.monthly-table thead tr:nth-child(3) th[data-metric="rush"] { background: #fff3da; color: #795b28; }
.monthly-table .monthly-data-cell { min-width: 70px; }
.split-warning { margin: 8px 12px; font-size: 11px; color: #98671a; }
.monthly-period-toggle { width: 100%; border: 0; padding: 0; color: inherit; background: transparent; font: inherit; font-weight: 900; white-space: nowrap; }
.monthly-period-toggle:hover { color: var(--accent); }
.monthly-table tbody tr + tr th, .monthly-table tbody tr + tr td { border-top-color: #cbd5e1; }
.monthly-table .monthly-shift { vertical-align: middle; color: #344054; background: #f7f9fb; }
.monthly-table .monthly-cub .monthly-group-label { background: #f4f8fd; }
.monthly-table .monthly-fab .monthly-group-label { background: #f0faf5; }
.monthly-table .monthly-admin .monthly-group-label { color: #765b32; background: #fffaf1; }
.monthly-table .monthly-total-row th, .monthly-table .monthly-total-row td { background: #e9f8ef; font-weight: 900; }
.monthly-table .monthly-total-row .monthly-group-label { background: #e9f8ef; }
.monthly-table .monthly-total-row td[data-metric="rush"] { background: #f5f2df; color: #795b28; }
.monthly-table .monthly-grand-total td[data-metric="rush"] { background: #ede9cf; color: #674b20; }
.monthly-table tfoot th, .monthly-table tfoot td { height: 34px; background: #dff4e8; color: #075e54; font-weight: 900; }
.monthly-table tfoot .monthly-shift { left: 0; }
.monthly-table tfoot .monthly-group-label { left: 76px; }
.monthly-table tfoot .monthly-grand-total th { position: sticky; left: 0; z-index: 4; background: #dff4e8; }
.summary-content { padding: 8px 12px 12px; overflow-x: auto; }
.summary-content + .summary-content { border-top: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.25; }
.data-table th, .data-table td { padding: 7px 8px; border: 1px solid var(--line); text-align: right; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table thead th { background: #fbfcfd; color: #475467; }
.data-table tbody th { color: var(--ink); background: #fff; }
.data-table tfoot th, .data-table tfoot td { background: #eef4f3; font-weight: 900; }
.period-summary-content { padding-top: 0; }
.period-table th:first-child, .period-table td:first-child { text-align: center; }
.admin-reports { font-size: 14px; }
.admin-report-header { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.admin-report-header h2 { margin-bottom: 4px; }
.admin-report-meta { color: var(--muted); font-size: 12px; }
.admin-report-nav { width: 38px; height: 36px; padding: 0; border: 0; border-radius: 6px; color: #fff; background: var(--accent); font-size: 24px; line-height: 1; }
.admin-report-months { display: flex; gap: 6px; padding: 12px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.admin-report-month { display: grid; flex: 0 0 110px; gap: 4px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fbfcfd; font-size: 14px; }
.admin-report-month span { color: var(--muted); font-size: 12px; }
.admin-report-month:hover, .admin-report-month.is-active { border-color: var(--accent); color: var(--accent); background: #e3f1ef; }
.admin-report-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); align-items: start; gap: 12px; padding: 12px; }
.admin-report-left { display: grid; gap: 12px; min-width: 0; }
.admin-report-thumbnails { display: flex; gap: 10px; padding: 12px; overflow-x: auto; }
.admin-report-thumbnail { display: flex; flex-direction: column; flex: 0 0 190px; gap: 8px; padding: 7px; border: 2px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; font-size: 14px; text-align: left; }
.admin-report-thumbnail:hover, .admin-report-thumbnail.is-active { border-color: var(--accent); background: #edf8f6; }
.admin-report-thumbnail img, .admin-report-placeholder { width: 100%; height: 180px; background: #eef1f5; }
.admin-report-thumbnail img { display: block; object-fit: contain; object-position: top; }
.admin-report-placeholder { display: grid; place-items: center; color: var(--muted); }
.admin-report-caption { white-space: nowrap; }
.admin-report-documents .document-page { flex: 0 0 auto; width: 100%; }
.admin-reports .document-page figcaption { font-size: 12px; }
.admin-report-headcounts { min-width: 0; }
.admin-report-totals { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); }
.admin-report-totals strong { color: var(--accent); }
.admin-report-table-scroll { position: relative; max-height: min(78vh, 900px); overflow: auto; }
.admin-report-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-report-table th, .admin-report-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.admin-report-table th:first-child, .admin-report-table td:first-child { text-align: left; }
.admin-report-table thead th { position: sticky; top: 0; z-index: 1; color: var(--muted); background: #fbfcfd; }
.admin-report-table tbody tr[data-admin-report-date] { cursor: pointer; }
.admin-report-table tbody tr[data-admin-report-date]:hover, .admin-report-table tr.is-active { background: #e3f1ef; }
.admin-report-table tr.is-active { color: var(--accent); font-weight: 800; }
.admin-report-table button { width: 100%; border: 0; padding: 0; color: inherit; background: transparent; font: inherit; text-align: left; }
.admin-report-no-days { padding: 16px; color: var(--muted); }
.admin-reports button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 900px) {
  .admin-report-grid { grid-template-columns: 1fr; }
  .admin-report-header { gap: 8px; padding: 12px; }
}

@media (hover: none), (pointer: coarse) {
  .magnifier-lens { display: none !important; }
}

@media (max-width: 1180px) {
  .review-grid { grid-template-columns: minmax(280px, 1fr) minmax(360px, 1fr); }
  .review-grid .pane:last-child { grid-column: 1 / -1; }
}

@media (min-width: 1800px) {
  .review-grid { grid-template-columns: minmax(440px, 1fr) minmax(440px, 1fr) minmax(520px, .95fr); gap: 16px; padding: 16px; }
  .document-stack { max-height: min(80vh, 1100px); }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 16px, 2400px); }
  .strip-toolbar, .record-head { flex-direction: column; }
  .summary-topbar, .monthly-summary-meta { align-items: flex-start; flex-direction: column; }
  .summary-topbar h1 { font-size: 20px; }
  .monthly-summary-controls { align-items: flex-start; flex-direction: column; }
  .monthly-control-exports { margin-left: 0; }
  .scope-note, .review-controls, .review-toolbar-actions { justify-content: flex-start; }
  .group-navigation { grid-template-columns: 1fr; }
  .review-filter-controls { width: 100%; }
  .review-filter-dropdown { flex: 1 1 140px; }
  .review-filter-menu { left: 0; right: auto; }
  .review-table-toolbar { align-items: flex-start; flex-direction: column; }
  .review-table-actions { width: 100%; justify-content: flex-start; }
  .keyboard-hint { justify-content: flex-start; text-align: left; }
  .temporary-issue-head { align-items: flex-start; flex-direction: column; white-space: normal; }
  .temporary-issue-nav { flex-wrap: wrap; }
  .temporary-issue-editor { grid-template-columns: 1fr; align-items: stretch; }
  .temporary-issue-context { white-space: normal; }
  .review-grid { grid-template-columns: 1fr; }
  .data-table { min-width: 620px; }
  .monthly-table { min-width: 1360px; }
  .review-grid .pane:last-child { grid-column: auto; }
  .date-nav { grid-template-columns: 34px 34px minmax(140px, auto) 34px 34px; gap: 4px; }
  .date-nav h2 { min-width: 140px; font-size: 16px; }
  .nav-button { width: 34px; height: 32px; }
  .empty-pane { min-height: 300px; }
}

@media (max-width: 460px) {
  .page-tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 0 7px; font-size: 11px; }
  .small-button { padding: 7px 8px; font-size: 11px; }
  .date-nav { grid-template-columns: 31px 31px minmax(120px, auto) 31px 31px; }
  .date-nav h2 { min-width: 120px; font-size: 14px; }
  .nav-button { width: 31px; font-size: 16px; }
}
.truck-review { margin-top: 18px; padding: 16px; background: #fff; border: 1px solid #d3dbe5; }
.truck-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.truck-toolbar h2 { font-size: 16px; margin: 0 auto 0 0; }
.truck-toolbar label { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.truck-toolbar select { padding: 6px; border: 1px solid #d3dbe5; background: white; }
.truck-toolbar span { font-size: 12px; color: #526477; }
.truck-columns { display: grid; grid-template-columns: minmax(480px, 0.85fr) minmax(0, 1.15fr); gap: 20px; }
.truck-table-scroll { max-height: 75vh; overflow: auto; }
.truck-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 12px; }
.truck-table th, .truck-table td { border: 1px solid #d3dbe5; padding: 7px; text-align: center; }
.truck-table thead { position: sticky; top: 0; background: #eef5f4; }
.truck-table tfoot { background: #eef5f4; font-weight: 700; }
.truck-review button { border: 0; background: transparent; color: #246b66; text-decoration: underline; padding: 4px; cursor: pointer; }
.truck-review h3 { font-size: 14px; overflow-wrap: anywhere; }
.truck-source { min-width: 0; }
.truck-source p { font-size: 12px; color: #526477; }
.truck-source img { display: block; width: auto; height: calc(65vh * var(--truck-zoom, 1)); max-width: none; margin: 0 auto; }
.truck-photo-scroll { height: 67vh; overflow: auto; background: #f2f4f6; padding: 8px; }
.truck-photo-scroll a { display: block; width: max-content; min-width: 100%; }
.truck-review .truck-photo-open { display: block; width: max-content; min-width: 100%; padding: 0; cursor: zoom-in; }
.truck-photo-header { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.truck-photo-header h3 { flex: 1; margin: 0; }
.truck-photo-header nav { display: flex; gap: 4px; }
.truck-review .truck-photo-header button, .truck-review .truck-page-buttons button { width: 32px; height: 32px; padding: 0; border: 1px solid #d3dbe5; border-radius: 4px; text-decoration: none; background: #fff; }
.truck-photo-header button:disabled { opacity: .35; cursor: default; }
.truck-list-scroll { max-height: 67vh; overflow: auto; }
.truck-list-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.truck-list-header span { font-size: 12px; color: #526477; white-space: nowrap; }
.saturday-holiday-badge { display: block; color: #b42318; font-size: 10px; font-weight: 600; white-space: normal; }
.weekday-toggle { width: 32px; height: 29px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #344054; font-size: 11px; font-weight: 700; cursor: pointer; }
.weekday-toggle:hover { border-color: var(--accent); }
.weekday-toggle.is-active { border-color: var(--accent); background: var(--accent); color: #fff; }
.weekday-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.truck-evidence-table { min-width: 480px; table-layout: fixed; }
.truck-evidence-table th:first-child { width: 76px; white-space: nowrap; }
.truck-evidence-table td { vertical-align: top; }
.truck-evidence-table thead { z-index: 1; }
.truck-evidence-table .truck-page-buttons { gap: 4px; }
.truck-list details { border-bottom: 1px solid #d3dbe5; }
.truck-list summary { cursor: pointer; padding: 10px 8px; background: #f2f5f5; font-size: 13px; font-weight: 600; }
.truck-vehicle-row { display: grid; grid-template-columns: 94px minmax(0, 1fr); align-items: start; gap: 8px; padding: 10px 8px; }
.truck-vehicle-row strong { font-size: 12px; line-height: 32px; }
.truck-page-buttons { display: flex; flex-wrap: wrap; gap: 4px; }
.truck-review .truck-page-buttons button[aria-pressed="true"] { background: #246b66; border-color: #246b66; color: white; }
.truck-monthly-scroll { overflow: auto; margin-bottom: 20px; }
.truck-monthly th, .truck-monthly td { white-space: nowrap; min-width: 72px; }
.truck-monthly th:first-child { position: sticky; left: 0; background: #eef5f4; }
.truck-periods td { vertical-align: top; min-width: 150px; }
.truck-periods tbody th { vertical-align: top; white-space: nowrap; }
.truck-period-entry { padding: 6px 0; text-align: left; }
.truck-period-entry + .truck-period-entry { border-top: 1px solid #e4e9ef; }
.truck-period-entry span { white-space: nowrap; }
.truck-period-total { display: block; text-align: right; padding-top: 6px; border-top: 1px solid #d3dbe5; }
.truck-evidence-dates, .truck-evidence-flags { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.truck-evidence-dates { font-weight: 600; margin-bottom: 8px; }
.truck-evidence-flags { color: #87621f; font-size: 11px; margin-bottom: 8px; }
.truck-evidence-links { text-align: left; }
.truck-evidence-detail { text-align: left; margin-top: 8px; border-top: 1px solid #e4e9ef; padding-top: 8px; }
.truck-evidence-detail summary { cursor: pointer; color: #526477; font-size: 11px; }
.truck-review-modal { width: min(1500px, calc(100vw - 32px)); height: 94dvh; max-width: none; max-height: 94dvh; padding: 0; margin: auto; border: 1px solid #d3dbe5; border-radius: 6px; background: white; }
.truck-review-modal[open] { display: flex; flex-direction: column; }
.truck-review-modal::backdrop { background: rgb(16 24 40 / 55%); }
body:has(.truck-review-modal[open]) { overflow: hidden; }
.truck-modal-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #d3dbe5; flex: none; }
.truck-modal-heading { min-width: 0; flex: 1; }
.truck-modal-heading h3 { margin: 0 0 6px; font-size: 14px; overflow-wrap: anywhere; }
.truck-modal-heading div { font-size: 12px; color: #526477; }
.truck-modal-header nav { display: flex; gap: 8px; }
.truck-review .truck-modal-header button { width: 36px; height: 36px; padding: 0; border: 1px solid #d3dbe5; border-radius: 4px; text-decoration: none; font-size: 24px; color: #246b66; background: #f6f9f9; }
.truck-review .truck-modal-header button:disabled { opacity: .35; cursor: default; }
.truck-modal-scroll { min-height: 0; overflow: auto; flex: 1; background: #eef1f4; padding: 12px; }
.truck-modal-scroll img { display: block; width: 100%; max-width: 1100px; height: auto; margin: 0 auto; background: white; }
@media (max-width: 600px) { .truck-modal-header { flex-wrap: wrap; padding: 10px; } .truck-modal-heading { flex-basis: 100%; } .truck-modal-header nav { margin-left: auto; } }
@media (max-width: 800px) { .truck-columns { grid-template-columns: minmax(0, 1fr); } .truck-table-scroll { max-height: 55vh; } }
