/* =========================================================
   MAF – Mechelse Amateur Fietsers
   Palet: Vivid Coral #EC644F · Warm Peach #F2AA91 · Deep Navy #222C49
          Dark Navy #101423 · Off-white #FCFBF5
   ========================================================= */

:root {
  --coral: #EC644F;
  --peach: #F2AA91;
  --navy: #222C49;
  --navy-dark: #101423;
  --off: #FCFBF5;
  --white: #FFFFFF;

  /* Kleurschaal afgeleid van gebroken marine (Deep Navy #222C49) */
  --navy-50:  #F0F2F7;
  --navy-100: #DDE1EC;
  --navy-200: #BCC3D8;
  --navy-300: #939DBD;
  --navy-400: #6B779F;
  --navy-500: #4D5982;
  --navy-600: #3A456B;
  --navy-700: #2C3658;
  --navy-800: #222C49;
  --navy-900: #181F37;
  --navy-950: #101423;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --sidebar-w: 264px;

  --topo-navy: url('../img/topo-navy.jpg');
  --topo-coral: url('../img/topo-coral.jpg');
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  background: var(--off);
  color: var(--navy-dark);
}
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; margin: 0; line-height: 1; letter-spacing: -0.02em; }
.icon { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }

/* ---------- Typografie ---------- */
.display { font-size: clamp(32px, 8.5vw, 64px); text-transform: uppercase; line-height: .95; overflow-wrap: anywhere; }
.h2 { font-size: clamp(22px, 2.4vw, 30px); text-transform: uppercase; letter-spacing: -0.01em; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.muted { color: var(--navy-500); }
.accent { color: var(--coral); }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-coral { background: var(--coral); color: var(--navy-dark); }
.btn-coral:hover { background: #E4523C; }
.btn-navy { background: var(--navy-dark); color: var(--off); }
.btn-navy:hover { background: var(--navy); }
.btn-light { background: var(--off); color: var(--navy-dark); }
.btn-ghost { background: transparent; border-color: var(--peach); color: inherit; }
.btn-ghost:hover { background: rgba(242,170,145,.15); }
.btn-danger { background: transparent; border-color: var(--coral); color: #B53A26; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

.pill {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--peach); font-size: 14px; text-decoration: none; color: inherit; white-space: nowrap;
}
.pill.is-active { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--off); font-weight: 700; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }

/* Rijgroepen */
.g-A { background: var(--navy-dark); color: var(--off); }
.g-B { background: var(--coral); color: var(--navy-dark); }
.g-C { background: var(--peach); color: var(--navy-dark); }
.g-Iedereen { background: var(--white); color: var(--navy-dark); box-shadow: inset 0 0 0 1px var(--navy-300); }
.is-cancelled { opacity: .55; text-decoration: line-through; }

/* ---------- App-shell ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(to right, var(--navy-950) var(--sidebar-w), transparent var(--sidebar-w)); }

.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 28px; padding: 28px 18px;
  background: linear-gradient(180deg, var(--navy-700) 0%, var(--navy-800) 38%, var(--navy-900) 72%, var(--navy-950) 100%);
  color: var(--off);
  border-right: 1px solid var(--navy-700);
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--off); }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: .04em; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; border-radius: 999px;
  text-decoration: none; color: var(--navy-100); font-weight: 500;
}
.side-nav a:hover { background: var(--navy-700); color: var(--off); }
.side-nav a.is-active { background: var(--coral); color: var(--navy-dark); font-weight: 700; }
.side-nav .soon { margin-left: auto; font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--navy-600); color: var(--navy-100); }
.side-cta { margin: 0 4px; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }
.strava-card { background: var(--navy-900); border: 1px solid var(--navy-700); border-radius: var(--radius-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--navy-100); }
.strava-card .eyebrow { color: var(--peach); font-size: 11px; }
.me { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.me > div { flex: 1; min-width: 0; line-height: 1.25; }
.me strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me small { color: var(--navy-200); }
.me form { margin: 0; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer;
}
.icon-btn:hover { background: var(--navy-700); }
.sidebar-close { display: none; }

.avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.avatar-peach { background: var(--peach); color: var(--navy-dark); }
.avatar-coral { background: var(--coral); color: var(--navy-dark); }
.avatar-navy { background: var(--navy); color: var(--off); }

.main { padding: 36px 44px 56px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.topbar, .tabbar, .scrim { display: none; }

/* ---------- Page header ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.page-head .eyebrow { color: var(--navy-600); display: block; margin-bottom: 6px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--navy-600); text-decoration: none; font-weight: 700; font-size: 14px; }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--peach); border-radius: var(--radius-lg); padding: 28px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.card-dark { background: var(--navy-dark) var(--topo-navy) center/cover; color: var(--off); border: 0; }
.card-coral { background: var(--coral) var(--topo-coral) center/cover; color: var(--navy-dark); border: 0; }
.card-peach { background: var(--peach); color: var(--navy-dark); border: 0; }
.card-dark .eyebrow { color: var(--peach); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-3 > .span-2 { grid-column: span 2; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* Hero: volgende rit */
.hero-ride { position: relative; overflow: hidden; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.hero-ride > * { position: relative; }
.hero-route { position: absolute !important; right: 0; top: 0; width: 55%; height: 100%; pointer-events: none; opacity: .85; }
.hero-ride .when { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 6vw, 76px); line-height: .9; letter-spacing: -0.03em; text-transform: uppercase; }
.hero-ride .when span { color: var(--coral); }
.hero-ride .what { font-size: 19px; font-weight: 700; margin-top: 10px; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.stats { display: flex; gap: 24px; flex-wrap: wrap; color: var(--peach); font-size: 15px; }
.stats b { color: var(--off); font-size: 18px; }
.hero-empty .when { font-size: clamp(32px, 4vw, 48px); }

.season { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 320px; }
.big-num { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.03em; }
.season-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.season-grid b { display: block; font-family: var(--font-display); font-size: 28px; }

/* KPI strip */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--peach); border-bottom: 1px solid var(--peach); }
.kpis > div { padding: 22px 24px; border-right: 1px solid var(--peach); }
.kpis > div:first-child { padding-left: 0; }
.kpis > div:last-child { border-right: 0; }
.kpis b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 2.6vw, 40px); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.kpis > div:first-child b { color: var(--coral); }
.kpis span { color: var(--navy-600); display: block; margin-top: 6px; }

/* ---------- Weekplanning ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { display: flex; flex-direction: column; gap: 6px; min-height: 190px; padding: 6px; border-radius: 14px; background: var(--off); }
.day.is-today { box-shadow: inset 0 0 0 1px var(--coral); }
.day-label { font-size: 13px; font-weight: 700; color: var(--navy-600); padding: 4px 4px 2px; text-transform: uppercase; }
.day.is-today .day-label > span { background: var(--coral); color: var(--navy-dark); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.day-label .today-txt { display: none; }
.chip { display: block; border-radius: 10px; padding: 10px; font-size: 13px; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; hyphens: auto; }
.chip b { display: block; }
.chip:hover { filter: brightness(1.05); transform: translateY(-1px); }
.chip .chip-meta { opacity: .85; }
.chip-joined::after { content: '✓ jij rijdt mee'; display: block; font-size: 11px; font-weight: 700; margin-top: 4px; }

/* Maandkalender */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.month-dow { font-size: 12px; font-weight: 700; color: var(--navy-600); text-transform: uppercase; padding: 0 6px; }
.mday { min-height: 116px; background: var(--off); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.mday.is-other { opacity: .45; }
.mday.is-today { box-shadow: inset 0 0 0 1px var(--coral); }
.mday-num { font-size: 13px; font-weight: 700; padding: 2px 4px; }
.mday .chip { padding: 5px 8px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mday .chip b { display: inline; }
.mday .chip-joined::after { content: none; }

/* Lijstweergave */
.ride-list { display: flex; flex-direction: column; }
.ride-date { font-family: var(--font-display); font-weight: 800; font-size: 20px; text-transform: uppercase; padding: 22px 0 8px; border-bottom: 2px solid var(--navy-dark); }
.ride-date:first-child { padding-top: 0; }
.ride-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--peach); text-decoration: none; }
.ride-row:hover .ride-title { color: var(--coral); }
.ride-time { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.ride-title { font-weight: 700; font-size: 17px; }
.ride-meta { color: var(--navy-600); font-size: 14px; display: flex; gap: 6px 14px; flex-wrap: wrap; }
.ride-side { display: flex; align-items: center; gap: 10px; }
.month-list { display: none; }

/* Toolbar rittenplanning */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.period { display: flex; align-items: center; gap: 6px; }
.period h2 { min-width: 0; }
.period .icon-btn { border: 1px solid var(--peach); width: 40px; height: 40px; }
.period .icon-btn:hover { background: var(--navy-50); }

/* ---------- Tabel ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-600); padding: 10px 8px; font-weight: 700; }
.table td { padding: 12px 8px; border-top: 1px solid var(--peach); vertical-align: middle; }
.table .profile { width: 120px; height: 28px; color: var(--coral); display: block; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Klassement ---------- */
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--navy-700); }
.rank .pos { font-family: var(--font-display); font-weight: 800; font-size: 22px; width: 28px; }
.rank li:first-child .pos { color: var(--coral); }
.rank .who { flex: 1; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-me { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--navy); border-radius: 14px; margin-top: 10px; }
.rank-me .pos { font-family: var(--font-display); font-weight: 800; color: var(--coral); }
.card-dark .pill { border-color: var(--peach); color: var(--off); }
.card-dark .pill.is-active { background: var(--off); color: var(--navy-dark); border-color: var(--off); }
.card-dark .avatar-navy { background: var(--off); color: var(--navy-dark); }

.board td:first-child { font-family: var(--font-display); font-weight: 800; font-size: 20px; width: 48px; }
.board tr.is-me td { background: var(--navy-50); }

/* ---------- Rit detail ---------- */
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.detail-when { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: .92; text-transform: uppercase; letter-spacing: -0.03em; }
.detail-when span { color: var(--coral); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.facts dt { font-size: 13px; color: var(--navy-600); }
.facts dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.card-dark .facts dt { color: var(--peach); }
.map-box { background: var(--navy-dark) var(--topo-navy) center/cover; border-radius: 20px; color: var(--coral); display: flex; align-items: center; justify-content: center; min-height: 220px; padding: 12px; }
.map-box .route-shape { width: 100%; max-height: 260px; }
.route-start { fill: var(--off); stroke: var(--navy-dark); stroke-width: 3; }
.profile-box .profile { width: 100%; height: 110px; color: var(--coral); display: block; }
.people { display: flex; flex-wrap: wrap; gap: 10px; }
.person { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; background: var(--off); border-radius: 999px; font-size: 14px; font-weight: 500; }
.person .avatar { width: 32px; height: 32px; font-size: 12px; }
.prose { white-space: pre-line; }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; }
.action-row form { margin: 0; }

/* ---------- Routes ---------- */
.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.route-card { background: var(--white); border: 1px solid var(--peach); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.route-card .map-box { border-radius: 0; min-height: 170px; }
.route-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.route-card h3 { font-size: 20px; text-transform: uppercase; }
.route-card .profile { width: 100%; height: 36px; color: var(--coral); }
.route-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ---------- Formulieren ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-weight: 700; font-size: 14px; }
.field small { color: var(--navy-600); font-size: 13px; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px;
  border: 1px solid var(--navy-200); background: var(--white); color: var(--navy-dark);
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(236,100,79,.2); }
.seg-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-radio label { cursor: pointer; }
.seg-radio input { position: absolute; opacity: 0; }
.seg-radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--peach); font-weight: 500; }
.seg-radio input:checked + span { background: var(--navy-dark); color: var(--off); border-color: var(--navy-dark); font-weight: 700; }
.seg-radio input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.errors { background: #FDECE8; border: 1px solid var(--coral); border-radius: 14px; padding: 14px 18px; }
.errors ul { margin: 0; padding-left: 18px; }
.upload-box { border: 2px dashed var(--peach); border-radius: 18px; padding: 18px; display: grid; gap: 14px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.search { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--peach); border-radius: 999px; padding: 0 18px; min-height: 48px; }
.search input { border: 0; outline: 0; background: transparent; min-width: 0; flex: 1; }

/* ---------- Flash ---------- */
.flash { padding: 14px 20px; border-radius: 14px; font-weight: 500; }
.flash-ok { background: var(--navy-dark); color: var(--off); }
.flash-error { background: #FDECE8; color: #8A2A1B; border: 1px solid var(--coral); }

/* ---------- Gast / login ---------- */
.guest {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: var(--navy-dark) var(--topo-navy) center/cover;
}
.auth-card { width: 100%; max-width: 440px; background: var(--off); border-radius: var(--radius-lg); padding: 36px 32px; display: flex; flex-direction: column; gap: 20px; }
.auth-card .brand { color: var(--navy-dark); }
.auth-card .form { grid-template-columns: 1fr; }
.guest > .flash { max-width: 440px; width: 100%; margin-bottom: 12px; }

.empty { text-align: center; padding: 40px 16px; color: var(--navy-600); }
.empty h3 { color: var(--navy-dark); margin-bottom: 8px; text-transform: uppercase; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > .span-2 { grid-column: 1 / -1; }
  .detail-hero { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 30; padding: 10px 12px 10px 16px;
    padding-top: max(10px, env(safe-area-inset-top));
    background: var(--navy-900); color: var(--off);
  }
  .topbar .brand span { font-size: 22px; }
  .topbar .icon-btn:hover { background: var(--navy-700); }
  .sidebar {
    position: fixed; z-index: 50; inset: 0 auto 0 0; width: min(86vw, 320px); height: 100%;
    transform: translateX(-102%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(0,0,0,.35);
  }
  .sidebar-close { display: inline-flex; }
  .menu-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(16,20,35,.55); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .menu-open .scrim { opacity: 1; pointer-events: auto; }
  .menu-open { overflow: hidden; }

  .main { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); gap: 18px; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: var(--navy-950); border-top: 1px solid var(--navy-700);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center; color: var(--navy-200); text-decoration: none; font-size: 11px; font-weight: 500; }
  .tabbar a.is-active { color: var(--coral); }
  .tabbar .tab-cta { width: 56px; height: 56px; min-height: 0; margin: -18px auto 0; border-radius: 50%; background: var(--coral); color: var(--navy-dark); box-shadow: 0 6px 20px rgba(236,100,79,.45); }
  .side-cta { display: none; }
}

@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 20px; border-radius: 22px; }
  .hero-ride, .season { min-height: 0; }
  .hero-route { width: 100%; opacity: .5; }
  .page-head { align-items: flex-start; }
  .page-head .page-actions { width: 100%; }
  .page-head .page-actions .btn { flex: 1; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis > div { padding: 16px 12px 16px 0; border-right: 0; border-bottom: 1px solid var(--peach); }
  .kpis > div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--peach); }
  .kpis > div:nth-last-child(-n+2) { border-bottom: 0; }

  /* Week: verticale dagenlijst */
  .week { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .day { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: stretch; padding: 8px; }
  .day-label { width: 100%; }
  .day-label .today-txt { display: inline; }
  .day .chip { flex: 1 1 100%; }
  .day.no-rides { display: none; }

  /* Maand: bolletjes + lijst eronder */
  .month { gap: 4px; }
  .mday { min-height: 52px; padding: 4px; align-items: center; }
  .mday .chip { width: 8px; height: 8px; padding: 0; border-radius: 50%; font-size: 0; }
  .mday-chips { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
  .month-list { display: block; margin-top: 20px; }

  .ride-row { grid-template-columns: 60px minmax(0, 1fr); }
  .ride-side { grid-column: 2; }
  .facts dd { font-size: 22px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { flex: 1; }
  .table .hide-sm { display: none; }
  .toolbar .pills { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
}

@media (min-width: 761px) {
  .mday-chips { display: flex; flex-direction: column; gap: 4px; }
}
