:root {
  --green: #1a943d;
  --green-dark: #126c2c;
  --ink: #172b20;
  --muted: #62736a;
  --line: #dfe8e2;
  --surface: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f3f6f4; color: var(--ink); font: 15px/1.6 "Segoe UI", system-ui, sans-serif; }
a { color: var(--green-dark); text-underline-offset: 4px; }
button, input { font: inherit; }
button, .button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #218344; outline-offset: 4px; }
.site-header { min-height: 94px; padding: 18px max(24px, calc((100vw - 1440px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 20px; background: white; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); }
.brand-logo { display: block; width: 160px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 600; }
.header-actions > a { color: var(--ink); text-decoration: none; }
.header-actions form { margin: 0; }
.page-shell { max-width: 1488px; margin: auto; padding: 42px 24px 60px; min-height: calc(100vh - 176px); }
.eyebrow { display: block; color: var(--green-dark); font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }
h1 { font-size: clamp(27px, 3vw, 36px); letter-spacing: -1.2px; line-height: 1.2; margin: 10px 0; font-weight: 750; }
h2 { font-size: 23px; letter-spacing: -.6px; line-height: 1.35; margin: 10px 0; }
p { margin: 12px 0; }
.muted { color: var(--muted); }
.panel { padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 8px 32px #16382506; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.timezone-badge { background: #edf7ef; color: var(--green-dark); border: 1px solid #d3e9d9; padding: 5px 12px; border-radius: 30px; font-size: 12px; }
.login-shell { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.login-shell > .error, .login-shell > .notice { width: 100%; max-width: 420px; }
.login-panel { width: 100%; max-width: 420px; padding: 32px; }
.login-panel h1 { font-size: 26px; margin: 0 0 24px; }
.login-form { margin: 0; }
.login-form p { margin: 20px 0 0; }
.login-form button { width: 100%; }
label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 8px; }
input { border: 1px solid #cddad1; border-radius: 9px; background: #fbfdfb; padding: 12px 14px; color: var(--ink); min-width: 0; max-width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px #1a943d15; outline: none; }
.login-form input { width: 100%; }
.login-form .remember-choice { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-weight: 400; cursor: pointer; }
.login-form .remember-choice input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--green); }
button, .button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid transparent; border-radius: 9px; background: var(--green-dark); color: white; font-weight: 650; font-size: 13px; text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s; }
button:hover, .button:hover { background: #0d5522; box-shadow: 0 4px 10px #16382512; }
button:disabled { opacity: .65; cursor: wait; }
.button.secondary { background: white; border-color: var(--line); color: var(--ink); }
.button.secondary:hover { background: #f0f6f2; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
[data-period] { background: #edf7ef; color: var(--green-dark); border-color: #d3e9d9; padding: 8px 22px; }
[data-period]:hover { background: #dcefe0; }
.period-panel { max-width: 1000px; }
.period-panel form { margin-top: 24px; }
.date-range { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 26px 0; }
.date-inputs { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(110px, 1fr); gap: 10px; }
.form-bottom { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
.form-help { color: var(--muted); font-size: 12px; }
#report-progress { border-radius: 8px; padding: 12px; color: var(--green-dark); background: #edf7ef; }
.report-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.report-interval { color: var(--muted); font-size: 13px; margin: 6px 0; }
.report-toolbar .button:last-child { background: white; border-color: var(--line); color: var(--ink); }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0; }
.stat-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; border-top: 3px solid var(--green); }
.stat-card > span { display: block; color: var(--muted); font-size: 12px; }
.stat-card > strong { display: block; font-size: 30px; letter-spacing: -.8px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.stat-card small { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.vehicle-navigation { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.vehicle-navigation a { border: 1px solid #d2e3d7; color: var(--green-dark); background: white; border-radius: 30px; padding: 7px 17px; font-size: 12px; text-decoration: none; font-weight: 650; }
.vehicle-navigation a:hover { background: #e5f3e9; }
.vehicle-section { background: white; margin: 26px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; scroll-margin-top: 20px; box-shadow: 0 4px 20px #16382504; }
.vehicle-heading { color: white; background: #163d29; border-left: 5px solid #37ba5e; padding: 22px 26px; }
.vehicle-heading h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: .2px; }
.vehicle-summary { display: flex; gap: 8px 28px; flex-wrap: wrap; font-size: 12px; }
.vehicle-heading .vehicle-summary { color: #d0e4d7; }
.vehicle-summary strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
.vehicle-table { min-width: 1120px; table-layout: fixed; }
th, td { padding: 13px 12px; text-align: left; border-bottom: 1px solid #e8eee9; vertical-align: top; overflow-wrap: anywhere; }
th { background: #f5f8f6; font-size: 11px; font-weight: 750; color: #475d4e; }
.vehicle-table th:nth-child(1) { width: 5%; }
.vehicle-table th:nth-child(2) { width: 9%; }
.vehicle-table th:nth-child(6) { width: 23%; }
.vehicle-table th:nth-child(7) { width: 10%; }
.vehicle-table td:nth-child(n+8) { text-align: right; font-variant-numeric: tabular-nums; }
.vehicle-table .vehicle-row { background: #eaf3ed; font-weight: 700; }
.vehicle-table .day-row { background: #f0f5f2; border-top: 2px solid #cfdfd3; color: #42614b; }
.vehicle-table .day-row td:nth-child(2) { font-weight: 700; }
.vehicle-table .detail-row:nth-child(even) { background: #fafcfb; }
.vehicle-table .detail-row:hover { background: #f0f8f2; }
.grand-total { background: #e7f3eb; border: 1px solid #c4dfcc; border-left: 5px solid var(--green); border-radius: 12px; padding: 24px 28px; margin: 28px 0; }
.grand-total h2 { font-size: 18px; margin: 0 0 14px; }
.report-note { color: var(--muted); font-size: 12px; padding: 0 4px; }
.error, .notice { border: 1px solid #edc7c7; background: #fff4f3; color: #852b2b; padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; overflow-wrap: anywhere; }
.notice { background: #edf7ef; border-color: #c4dfcc; color: var(--green-dark); }
.site-footer { max-width: 1488px; padding: 22px 24px; margin: auto; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--muted); text-decoration: none; }
@media (max-width: 760px) {
  .site-header { padding: 16px; gap: 12px; }
  .brand { gap: 10px; }
  .brand-logo { width: 120px; }
  .header-actions { gap: 12px; font-size: 11px; }
  .header-actions button { padding: 8px 10px; font-size: 11px; }
  .page-shell { padding: 28px 16px 40px; }
  .panel { padding: 24px; }
  .overview-grid { grid-template-columns: 1fr; gap: 10px; }
  .stat-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; }
  .stat-card > strong { font-size: 24px; }
  .date-range { grid-template-columns: 1fr; gap: 18px; }
  .form-bottom > button { width: 100%; }
  .vehicle-heading { padding: 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  body { background: white; font-size: 11px; }
  .no-print { display: none; }
  .page-shell { max-width: none; padding: 0; }
  .table-scroll { overflow: visible; }
  .vehicle-table { min-width: 0; font-size: 9px; }
  th, td { padding: 5px; }
  .vehicle-heading { break-after: avoid; background: white; color: black; }
  .vehicle-heading .vehicle-summary { color: black; }
  .vehicle-section + .vehicle-section { break-before: page; }
  .vehicle-section, .stat-card { box-shadow: none; }
}
