:root {
  color-scheme: light;
  --ink: #14231d;
  --muted: #66736d;
  --line: #dce4df;
  --paper: #f5f7f5;
  --surface: #ffffff;
  --accent: #c8ff63;
  --accent-deep: #8fc929;
  --orange: #ff7a00;
  --danger: #b42318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; }
button, input, select { font: inherit; }
button, .button { border: 0; border-radius: 10px; background: var(--ink); color: #fff; padding: .72rem 1rem; cursor: pointer; text-decoration: none; font-weight: 700; }
button:hover, .button:hover { filter: brightness(1.1); }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); padding: .68rem .75rem; }
label { display: grid; gap: .4rem; color: var(--muted); font-size: .875rem; font-weight: 650; }
.topbar { height: 68px; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; }
.topbar > div { display: flex; align-items: center; gap: .75rem; }
.menu-toggle { display: none; }
.topbar nav { display: flex; align-items: stretch; height: 100%; gap: .25rem; }
.topbar nav a { display: flex; align-items: center; padding: 0 1rem; color: #b9c5c0; text-decoration: none; border-bottom: 3px solid transparent; }
.topbar nav a.active { color: #fff; border-color: var(--accent); }
.brand-mark { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; color: var(--ink); background: var(--accent); font-size: 1.7rem; font-weight: 900; }
.brand-mark.small { width: 34px; height: 34px; border-radius: 9px; font-size: 1.1rem; }
.brand-mark img { display: block; width: 100%; height: 100%; }
label small { color: var(--muted); font-weight: 500; }
.page { max-width: 1440px; margin: 0 auto; padding: 2rem; }
.page.wide { max-width: none; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.5rem; }
.page-head h1 { margin: .2rem 0 0; font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -.04em; }
.month-title { text-transform: capitalize; }
.eyebrow { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.month-picker { display: flex; align-items: end; gap: .65rem; }
.manager-controls { display: flex; align-items: end; justify-content: flex-end; gap: .75rem; flex-wrap: wrap; }
.manager-export { display: flex; gap: .45rem; }
.manager-export .button { white-space: nowrap; }
.report-wrap { overflow: auto; max-height: calc(100vh - 190px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 12px 35px rgba(20,35,29,.06); }
.report-table { border-collapse: separate; border-spacing: 0; min-width: max-content; font-variant-numeric: tabular-nums; }
.report-table th, .report-table td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .58rem .7rem; white-space: nowrap; }
.report-table thead th { position: sticky; top: 0; z-index: 3; background: var(--accent); font-size: .78rem; text-align: center; }
.report-table thead tr:nth-child(2) th { top: 38px; background: #efffd3; font-weight: 650; }
.report-table .unit-col { left: 0; z-index: 5; min-width: 250px; text-align: left; }
.report-table tbody th { position: sticky; left: 0; z-index: 2; background: #fff; text-align: left; font-weight: 650; }
.report-table .num { min-width: 105px; text-align: right; }
.report-table .delivery { background: #fff9ef; }
.report-table .today { background: var(--orange); color: #fff; }
.report-table tr.section th { position: static; background: var(--ink); color: #fff; text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; }
.report-table tr.total th, .report-table tr.total td { background: var(--accent); font-weight: 850; }
.admin-page { max-width: 1240px; }
.status-card { min-width: 190px; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--muted); }
.status-card span { display: block; color: var(--ink); font-size: 1.7rem; font-weight: 850; }
.admin-tabs { display: flex; gap: .4rem; margin-bottom: 1rem; padding: .35rem; border-radius: 13px; background: #e9eeeb; width: max-content; }
.admin-tabs .tab { background: transparent; color: var(--muted); }
.admin-tabs .tab.active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 10px rgba(20,35,29,.08); }
.admin-tabs .tab span { margin-left: .4rem; padding: .1rem .42rem; border-radius: 1rem; background: var(--accent); color: var(--ink); font-size: .75rem; }
.admin-section { display: none; padding: 1.4rem; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.admin-section.active { display: block; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.section-heading h2 { margin: 0; font-size: 1.25rem; }
.section-heading p { margin: .3rem 0 0; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 2fr 1fr .65fr auto; align-items: end; gap: .75rem; padding: 1rem; border-radius: 12px; background: #f0f4f1; }
.rule-form { grid-template-columns: 1.25fr 1fr 1.5fr 1.5fr auto; }
.card-list, .rules-list { display: grid; gap: .65rem; margin-top: 1rem; }
.unit-card { display: grid; grid-template-columns: 2fr 1fr 90px 120px auto; align-items: center; gap: .65rem; padding: .8rem; border: 1px solid var(--line); border-radius: 11px; }
.user-form { grid-template-columns: 1.4fr 1.2fr 1fr 1.1fr auto auto; }
.user-card { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1.1fr 110px auto; align-items: end; gap: .65rem; padding: .8rem; border: 1px solid var(--line); border-radius: 11px; }
.check { display: flex; align-items: center; gap: .45rem; color: var(--ink); }
.check input { width: auto; }
button.secondary { background: #eaf0ec; color: var(--ink); }
button.danger { background: #fff0ee; color: var(--danger); }
.search { max-width: 340px; }
.station-list { display: grid; gap: .45rem; }
.station-row { display: grid; grid-template-columns: 70px minmax(260px, 1fr) minmax(220px, .8fr) auto; align-items: center; gap: .8rem; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; }
.station-row[hidden] { display: none; }
.restaurant-list { display: grid; gap: .45rem; }
.restaurant-row { display: grid; grid-template-columns: 70px minmax(260px, 1fr) minmax(210px, .65fr) auto; align-items: center; gap: .8rem; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; }
.restaurant-row[hidden] { display: none; }
.restaurant-row strong { display: block; }
.restaurant-row small { display: block; margin-top: .2rem; color: var(--muted); }
.restaurant-stats { display: flex; gap: .4rem; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.restaurant-stats span { padding: .32rem .55rem; border-radius: 999px; background: #eef2ef; }
.station-code { font-size: 1.1rem; font-weight: 850; }
.station-row strong, .rule-row strong { display: block; }
.station-row small, .rule-row small { display: block; margin-top: .2rem; color: var(--muted); }
.rule-row { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; }
.alert { margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 10px; }
.alert.success { background: #e7f8d0; color: #31570d; }
.alert.error { background: #fff0ee; color: var(--danger); }
.empty { padding: 4rem 2rem; text-align: center; border: 1px dashed #b8c4bd; border-radius: 14px; background: #fff; }
.empty p { color: var(--muted); margin-bottom: 1.5rem; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: var(--ink); }
.login-card { width: min(420px, calc(100% - 2rem)); padding: 2rem; border-radius: 20px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.login-card h1 { margin: 1.2rem 0 .3rem; }
.login-card > p { margin: 0 0 1.5rem; color: var(--muted); }
.stack { display: grid; gap: 1rem; }
@media (max-width: 800px) {
  .topbar { height: auto; padding: .8rem 1rem; align-items: flex-start; }
  .topbar nav { height: auto; flex-direction: column; }
  .topbar nav a { padding: .35rem .6rem; border: 0; }
  .page { padding: 1rem; }
  .page-head { align-items: stretch; flex-direction: column; }
  .month-picker { align-items: stretch; }
  .manager-controls { align-items: stretch; justify-content: stretch; flex-direction: column; }
  .form-grid, .rule-form, .unit-card, .user-card, .station-row, .restaurant-row { grid-template-columns: 1fr; }
  .admin-tabs { width: 100%; overflow-x: auto; }
}

/* Daily mobile overview and reconciliation */
a { color: #285e42; }
:focus-visible { outline: 3px solid #318759; outline-offset: 3px; }
button:disabled { opacity: .55; cursor: wait; }
[hidden] { display: none !important; }
.topbar { height: auto; min-height: 68px; gap: 1rem; flex-wrap: wrap; }
.topbar nav { min-height: 64px; }
.topbar nav a { min-height: 48px; font-size: .9rem; }
.director-page { max-width: 1160px; }
.date-filter { display: flex; align-items: end; gap: .6rem; }
.date-filter label { flex: 1; }
.date-navigator { display: flex; align-items: end; gap: .45rem; }
.date-navigator a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); text-decoration: none; font-size: 1.3rem; font-weight: 800; }
.date-navigator label { min-width: 155px; }
.quick-dates { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.25rem; }
.quick-dates a { background: white; border: 1px solid var(--line); border-radius: 9px; padding: .7rem 1rem; text-decoration: none; font-weight: 650; }
.summary-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1rem; margin: 1.25rem 0; }
.director-summary { grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr)); }
.metric { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 15px; padding: 1.4rem; }
.metric span, .metric small { display: block; color: var(--muted); font-size: .9rem; }
.metric strong { display: block; font-size: clamp(1.4rem, 2.5vw, 2.15rem); margin: .6rem 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric.primary { background: var(--ink); color: white; border-color: var(--ink); }
.metric.primary span, .metric.primary small { color: #c6d9ce; }
.metric.primary strong { color: var(--accent); }
.metric-history { display: grid; gap: .2rem; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid rgba(255,255,255,.2); color: #c6d9ce; font-size: .78rem; }
.venue-metric-value { font-size: clamp(1.2rem, 1.8vw, 1.65rem) !important; line-height: 1.2; }
.report-note { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.group-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }
.group-heading h2 { font-size: 1.2rem; }
.venue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.venue-card { background: white; padding: 1.2rem; border: 1px solid var(--line); border-radius: 14px; }
.venue-card-link { position: relative; display: block; color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.venue-card-link:hover { border-color: #8fc929; box-shadow: 0 8px 20px rgba(20,35,29,.10); transform: translateY(-2px); }
.venue-card-open { display: block; margin-bottom: .6rem; color: #285e42; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.venue-card-open b { font-size: 1rem; }
.venue-card h3 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.venue-amount { font-size: 1.75rem; font-weight: 800; margin: 1rem 0; font-variant-numeric: tabular-nums; }
.venue-card dl { margin: 0; padding-top: .7rem; border-top: 1px solid var(--line); }
.venue-card dl > div { display: flex; justify-content: space-between; gap: .5rem; margin: .5rem 0; font-size: .9rem; }
.venue-card dt { color: var(--muted); }
.venue-card dd { margin: 0; font-variant-numeric: tabular-nums; }
.venue-history { display: grid; gap: .35rem; margin-top: .9rem; padding-top: .75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.venue-history span { display: flex; justify-content: space-between; gap: .5rem; }
.venue-history b { color: var(--ink); font-variant-numeric: tabular-nums; }
.chart-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1rem; margin: 1.25rem 0; }
.chart-card { position: relative; min-width: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: 15px; background: white; }
.chart-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: .7rem; }
.chart-head h2 { margin: .15rem 0 0; font-size: 1.1rem; }
.chart-head small { color: var(--muted); white-space: nowrap; }
.chart-card canvas { display: block; width: 100%; }
.line-chart-card canvas { cursor: pointer; }
.chart-legend { display: grid; gap: .4rem; margin-top: .35rem; font-size: .82rem; }
.legend-row { display: flex; align-items: flex-start; gap: .5rem; color: var(--muted); }
.legend-row i { display: block; width: 11px; height: 11px; flex: 0 0 11px; margin-top: .25rem; border-radius: 50%; }
.chart-tooltip { position: absolute; z-index: 3; display: none; max-width: 210px; padding: .55rem .65rem; border-radius: 9px; background: #14231d; color: white; font-size: .78rem; line-height: 1.4; pointer-events: none; box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.chart-tooltip strong { display: block; color: var(--accent); }
.weather-strip { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)) auto; align-items: center; gap: 1rem; margin: 0 0 1.25rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 15px; background: #eaf3f0; }
.weather-strip > div > span, .weather-forecast > div > span { display: block; color: var(--muted); font-size: .78rem; }
.weather-strip strong, .weather-forecast strong { display: block; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.weather-main { display: flex; align-items: center; gap: .65rem; }
.weather-main small { display: block; margin-top: .2rem; color: var(--muted); }
.weather-icon { font-size: 2rem; line-height: 1; }
.weather-empty { color: var(--muted); }
.weather-badge { cursor: help; font-size: 1.05em; }
.weather-popup { position: fixed; z-index: 20; right: 1rem; bottom: 1rem; left: 1rem; padding: 1rem 3.25rem 1rem 1rem; border-radius: 14px; background: var(--ink); color: white; box-shadow: 0 16px 45px rgba(0,0,0,.28); }
.weather-popup p { margin: 0; line-height: 1.5; }
.weather-popup-close { position: absolute; top: .5rem; right: .5rem; display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border-radius: 50%; background: #263a31; color: white; font-size: 1.6rem; font-weight: 400; line-height: 1; }
.weather-page { max-width: 1240px; }
.weather-forecast { display: grid; grid-template-columns: 1fr 2fr repeat(3, 1fr); align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1.2rem; border-radius: 15px; background: var(--ink); color: white; }
.weather-forecast .eyebrow, .weather-forecast span { color: #c6d9ce; }
.weather-forecast h2 { margin: .25rem 0 0; font-size: 1.1rem; }
.weather-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: white; }
.weather-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.weather-table th, .weather-table td { padding: .8rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.weather-table th { background: #efffd3; font-size: .8rem; }
.weather-table td small { display: block; margin-top: .2rem; color: var(--muted); font-size: .75rem; }
.small-weather-icon { font-size: 1.25rem; vertical-align: middle; }
.weather-no-data { color: var(--muted); text-align: center !important; padding: 2rem !important; }
.lfl-page { max-width: 1320px; }
.lfl-filter { display: flex; align-items: end; gap: .65rem; }
.lfl-summary { display: grid; grid-template-columns: 1.35fr 1.35fr 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.positive { color: #3f7d0b !important; }
.negative { color: var(--danger) !important; }
.lfl-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: white; }
.lfl-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lfl-table th, .lfl-table td { padding: .8rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.lfl-table thead th { background: #efffd3; font-size: .78rem; }
.lfl-table th:first-child { position: sticky; left: 0; z-index: 1; min-width: 190px; background: white; text-align: left; }
.lfl-table thead th:first-child { z-index: 2; background: #efffd3; }
.lfl-table th small { display: block; margin-top: .25rem; color: var(--muted); font-size: .72rem; font-weight: 500; }
.lfl-bar-row td { padding: 0 .8rem .75rem; border-bottom: 1px solid var(--line); }
.lfl-change-bar { display: block; width: 100%; height: 5px; border-radius: 999px; background: hsl(var(--lfl-hue) 70% 46% / var(--lfl-alpha)); }
.lfl-table tfoot th, .lfl-table tfoot td { background: var(--ink); color: white; font-weight: 800; }
.lfl-charts-control { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.lfl-charts-control small { color: var(--muted); }
.lfl-charts { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
.lfl-chart-scroll { overflow-x: auto; }
.lfl-chart-scroll canvas { display: block; min-width: 680px; width: 100%; }
.lfl-key { display: inline-block; width: 10px; height: 10px; margin-right: .25rem; border-radius: 50%; }
.lfl-key.current { background: #8fc929; }
.lfl-key.previous { background: #9aa8a1; }
.unit-page { max-width: 1320px; }
.unit-filter { display: flex; align-items: end; gap: .7rem; margin-bottom: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.unit-filter label { min-width: 190px; }
.unit-summary { display: grid; grid-template-columns: 1.35fr 1fr repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.unit-summary .metric { padding: 1.1rem; }
.unit-summary .metric strong { font-size: clamp(1.25rem, 2vw, 1.85rem); }
.unit-charts { display: grid; gap: 1rem; }
.unit-chart-scroll { overflow-x: auto; }
.unit-chart-scroll canvas { display: block; width: 100%; }
.analytics-page { max-width: 1240px; }
.analytics-chart { margin-bottom: 1rem; }
.analytics-chart-scroll { overflow-x: auto; overflow-y: hidden; }
.analytics-chart-scroll canvas { min-width: 680px; }
.analytics-table-wrap { overflow-x: auto; }
.analytics-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.analytics-table th, .analytics-table td { padding: .75rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.analytics-table th:nth-child(2) { text-align: left; white-space: normal; }
.analytics-table th small { display: block; margin-top: .25rem; color: var(--muted); font-size: .75rem; font-weight: 500; }
.analytics-table thead th { background: #efffd3; font-size: .8rem; }
.all-venues { margin-top: 1rem; }
.venue-days-card { margin-top: 1rem; }
.venue-records-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.venue-record-card { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #f7f9f7; }
.venue-record-card > h3 { margin: 0; font-size: 1.05rem; }
.venue-record-card > small { display: block; margin: .25rem 0 1rem; color: var(--muted); }
.venue-days-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.venue-days-grid h3, .venue-days-grid h4 { margin: 0 0 .65rem; font-size: .92rem; }
.venue-record-card .ranking-list { gap: .4rem; }
.venue-record-card .ranking-list li { grid-template-columns: 27px minmax(0, 1fr) auto; gap: .45rem; padding: .52rem; }
.venue-record-card .rank-number { width: 24px; height: 24px; font-size: .8rem; }
.venue-record-card .ranking-list strong { font-size: .88rem; }
.venue-record-card .ranking-list small { font-size: .7rem; }
.venue-record-card .ranking-list b { font-size: .86rem; }
.muted-rank { background: #e9eeeb; }
.analytics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ranking-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: 15px; background: white; }
.wide-ranking { grid-column: 1 / -1; }
.ranking-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1rem; }
.ranking-head h2 { margin: .2rem 0 0; font-size: 1.15rem; }
.ranking-head > span { color: var(--muted); font-size: .85rem; }
.ranking-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.ranking-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .75rem; border-radius: 10px; background: #f5f8f5; }
.rank-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); font-weight: 850; }
.ranking-list strong, .ranking-list small { display: block; overflow-wrap: anywhere; }
.ranking-list small { margin-top: .15rem; color: var(--muted); font-size: .78rem; }
.ranking-list b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.analytics-tip { margin-top: 1rem; padding: 1rem; border-radius: 12px; background: #fff1d9; color: #5b451f; }
.unassigned { background: #fff1d9; margin-top: 1.5rem; }
.reconcile-filter { display: grid; grid-template-columns: 1fr 1fr 2fr 2fr auto; gap: .75rem; align-items: end; }
.reconcile-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.station-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.station-filter { max-width: 300px; margin-bottom: 1rem; }
.reconcile-filter > * { min-width: 0; }
.reconcile-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; max-height: 70vh; background: white; }
.reconcile-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .9rem; }
.reconcile-table th { position: sticky; top: 0; background: #e7f4d5; z-index: 1; text-align: left; }
.reconcile-table td, .reconcile-table th { padding: .8rem; border-bottom: 1px solid var(--line); min-width: 115px; vertical-align: top; }
.reconcile-table small { display: block; color: var(--muted); margin-top: .4rem; font-size: .8rem; }
.reconcile-table tr:nth-child(even) { background: #f7f9f7; }
.reconcile-table .num { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1.5rem; padding: 1.3rem; }
.pagination a { padding: .7rem; }
.rule-form { grid-template-columns: 1fr 1fr 1fr; }
.payment-choices { grid-column: 1 / -1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
.checkbox-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: .8rem; max-height: 320px; overflow: auto; }
.checkbox-list label { padding: .65rem; background: white; border-radius: 7px; overflow-wrap: anywhere; }
.checkbox-list input { width: 20px; height: 20px; flex-shrink: 0; }
.delivery-settings { display: grid; gap: 1rem; }
.delivery-card { padding: 1rem; border: 1px solid var(--line); border-radius: 13px; background: #f7f9f7; }
.delivery-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.delivery-card h3 { margin: 0; font-size: 1.1rem; }
.delivery-summary { margin: .35rem 0 0; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.selection-count { flex-shrink: 0; padding: .35rem .65rem; border-radius: 999px; background: var(--accent); font-size: .8rem; font-weight: 800; }
.delivery-card .payment-choices { background: white; }
.delivery-card .checkbox-list { max-height: none; }
.delivery-card .checkbox-list label { border: 1px solid var(--line); }
.delivery-card .checkbox-list small { color: var(--muted); font-weight: 500; }
.delivery-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }
dialog { border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; max-width: min(480px, calc(100% - 2rem)); width: 100%; color: var(--ink); }
dialog::backdrop { background: rgba(14, 30, 22, .55); }
dialog h2, dialog p { margin: 0; overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: end; gap: .7rem; }
#station-dialog-error { color: var(--danger); }
@media (max-width: 1000px) {
  .venue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .director-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .director-summary .primary { grid-column: span 2; }
  .lfl-summary { grid-template-columns: 1fr 1fr; }
  .unit-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reconcile-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .station-row { grid-template-columns: 50px minmax(0, 1fr); }
  .restaurant-row { grid-template-columns: 50px minmax(0, 1fr); }
  .station-row select { grid-column: 1 / 2; min-width: 180px; }
  .station-row button { justify-self: end; }
}
@media (max-width: 800px) {
  .topbar { flex-direction: column; align-items: stretch; padding: .8rem 1rem; gap: .4rem; }
  .topbar-brand { width: 100%; }
  .menu-toggle { display: flex; align-items: center; gap: .4rem; margin-left: auto; padding: .55rem .75rem; background: #263a31; }
  .topbar nav { display: none; flex-direction: column; flex-wrap: nowrap; min-height: 0; gap: .1rem; padding-top: .35rem; }
  .topbar nav.open { display: flex; }
  .topbar nav a { width: 100%; min-height: 42px; padding: .6rem .7rem; border-left: 3px solid transparent; border-bottom: 0; font-size: .9rem; }
  .topbar nav a.active { border-bottom-color: var(--accent); }
  .topbar nav a.active { border-left-color: var(--accent); border-bottom-color: transparent; background: rgba(255,255,255,.05); }
  .weather-badge { cursor: pointer; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .metric.primary { grid-column: 1 / -1; }
  .director-summary { grid-template-columns: 1fr 1fr; }
  .director-summary .primary { grid-column: 1 / -1; }
  .chart-grid { grid-template-columns: 1fr; }
  .lfl-filter { align-items: stretch; flex-direction: column; }
  .unit-filter { align-items: stretch; flex-direction: column; }
  .unit-filter label { min-width: 0; }
  .weather-strip { grid-template-columns: 1fr 1fr; }
  .weather-main, .weather-empty { grid-column: 1 / -1; }
  .weather-forecast { grid-template-columns: 1fr 1fr; }
  .rule-form { grid-template-columns: 1fr; }
  .section-heading { flex-direction: column; align-items: stretch; }
  .search { max-width: none; }
}
@media (max-width: 520px) {
  .summary-grid, .venue-grid, .checkbox-list { grid-template-columns: 1fr; }
  .page-head { gap: 1rem; }
  .manager-export { display: grid; grid-template-columns: 1fr 1fr; }
  .manager-export .button { text-align: center; }
  .venue-card { padding: 1.2rem; }
  .admin-section { padding: .8rem; }
  .station-row { grid-template-columns: 1fr; }
  .restaurant-row { grid-template-columns: 1fr; }
  .station-row select { grid-column: auto; min-width: 0; }
  .station-row button { justify-self: stretch; }
  .reconcile-filter { grid-template-columns: 1fr; }
  .admin-tabs .tab { white-space: nowrap; }
  .delivery-card-head, .delivery-actions { align-items: stretch; flex-direction: column; }
  .selection-count { align-self: flex-start; }
  .date-filter { align-items: stretch; flex-direction: column; }
  .date-navigator { width: auto; display: grid; grid-template-columns: 38px minmax(0, 150px) 38px; justify-content: start; }
  .date-navigator a { width: 38px; height: 43px; }
  .date-navigator label { min-width: 0; width: 150px; }
  .date-navigator input { min-width: 0; }
  .director-summary, .analytics-grid { grid-template-columns: 1fr; }
  .director-summary .primary, .wide-ranking { grid-column: auto; }
  .chart-card { padding: 1rem; }
  .weather-strip, .weather-forecast { grid-template-columns: 1fr; }
  .lfl-summary { grid-template-columns: 1fr; }
  .unit-summary { grid-template-columns: 1fr; }
  .lfl-charts-control { align-items: stretch; flex-direction: column; }
  .analytics-table th, .analytics-table td { padding: .65rem .5rem; font-size: .84rem; }
  .venue-records-grid, .venue-days-grid { grid-template-columns: 1fr; }
  .ranking-list li { grid-template-columns: 28px minmax(0, 1fr); }
  .ranking-list b { grid-column: 2; }
}
