/* ==================================================================
   PATRON — huisstijl IC Grote Beer (moderne versie)
   Basiskleuren & font uit icgrotebeer-styleguide.md
   ================================================================== */

:root {
  --kleur-goud:       #9E7631;
  --kleur-goud-donker:#876328;
  --kleur-zwart:      #1a1a1a;
  --kleur-wit:        #FFFFFF;
  --kleur-creme:      #FAF4E7;
  --kleur-grijs:      #8A8A8A;
  --kleur-grijs-licht:#f4f2ec;
  --kleur-rand:       #e7e3da;

  --font-basis: "Montserrat", Helvetica, Roboto, Arial, sans-serif;

  --radius:    10px;
  --radius-lg: 16px;
  --schaduw:   0 1px 3px rgba(26,26,26,.06), 0 6px 24px rgba(26,26,26,.06);
  --schaduw-hover: 0 4px 12px rgba(26,26,26,.10), 0 12px 36px rgba(26,26,26,.10);
  --overgang: .18s ease;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  font-family: var(--font-basis);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--kleur-zwart);
  background: #fbfaf7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--kleur-goud); text-decoration: none; transition: color var(--overgang); }
a:hover { color: var(--kleur-goud-donker); }

h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--kleur-zwart); }
h2 { font-size: 34px; font-weight: 600; line-height: 1.2; letter-spacing: -.5px; }
h4 { font-size: 20px; font-weight: 600; }

.label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--kleur-goud);
  font-weight: 600;
  margin-bottom: 10px;
}
.muted { color: var(--kleur-grijs); }
.small { font-size: 13px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* -------- Header -------- */
.site-header {
  background: var(--kleur-wit);
  border-bottom: 1px solid var(--kleur-rand);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-divider { width: 1px; height: 28px; background: var(--kleur-rand); }
.brand-platform {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--kleur-zwart);
}
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--kleur-zwart);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background var(--overgang), color var(--overgang);
}
.site-nav a:hover { background: var(--kleur-creme); color: var(--kleur-goud-donker); }
.nav-user {
  font-size: 12px;
  color: var(--kleur-grijs);
  padding-left: 8px;
  border-left: 1px solid var(--kleur-rand);
  margin-left: 6px;
}
.nav-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 999px;
  color: var(--kleur-zwart);
  line-height: 0;
}
.nav-gear:hover { background: var(--kleur-creme); color: var(--kleur-goud-donker); }
.nav-gear svg { display: block; }

/* -------- Account-tegel -------- */
.acct-name { font-size: 16px; font-weight: 600; margin: 0 0 2px; color: var(--kleur-zwart); }
.acct-mail { font-size: 13px; color: var(--kleur-grijs); margin: 0 0 8px; overflow-wrap: anywhere; word-break: break-word; }
.acct-bedrijf { font-size: 14px; margin: 0 0 6px; color: var(--kleur-zwart); }
.acct-rol { margin: 0; }

/* -------- Knoppen -------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--kleur-goud);
  color: var(--kleur-wit);
  padding: 12px 22px;
  border: 1px solid var(--kleur-goud);
  border-radius: var(--radius);
  font-family: var(--font-basis);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--overgang), transform var(--overgang), box-shadow var(--overgang);
}
.button:hover {
  background: var(--kleur-goud-donker);
  border-color: var(--kleur-goud-donker);
  color: var(--kleur-wit);
  transform: translateY(-1px);
  box-shadow: var(--schaduw);
}
.button:active { transform: translateY(0); }
.button-ghost {
  background: transparent;
  color: var(--kleur-goud-donker);
  border: 1px solid var(--kleur-rand);
  padding: 9px 16px;
  letter-spacing: .5px;
  font-size: 12px;
  text-transform: none;
}
.button-ghost:hover {
  background: var(--kleur-creme);
  border-color: var(--kleur-goud);
  color: var(--kleur-goud-donker);
  box-shadow: none;
}
.button-block { width: 100%; }
.button:disabled, .button[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; background: var(--kleur-goud); }

/* -------- Main / secties -------- */
main { flex: 1 0 auto; }
.section { max-width: 1140px; margin: 0 auto; padding: 48px 24px; width: 100%; }

.hero { background: var(--kleur-creme); padding: 96px 24px; text-align: center; }
.hero .inner { max-width: 760px; margin: 0 auto; }
.hero h2 { font-size: 44px; }
.hero p { color: #6b6b6b; font-size: 19px; }

/* -------- Formulieren -------- */
label { font-size: 13px; font-weight: 600; color: #555; letter-spacing: .3px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack label { display: flex; flex-direction: column; gap: 7px; }

input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], select {
  font-family: var(--font-basis);
  font-size: 15px;
  font-weight: 400;
  padding: 13px 15px;
  border: 1.5px solid var(--kleur-rand);
  border-radius: var(--radius);
  background: var(--kleur-wit);
  color: var(--kleur-zwart);
  width: 100%;
  transition: border-color var(--overgang), box-shadow var(--overgang);
  appearance: none;
}
input::placeholder { color: #b3b0a8; }
input:hover, select:hover { border-color: #d2cdc2; }
input:focus, select:focus {
  outline: none;
  border-color: var(--kleur-goud);
  box-shadow: 0 0 0 4px rgba(158,118,49,.14);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238A8A8A' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row input, .row select { flex: 1 1 auto; min-width: 160px; width: auto; }
.inline { display: inline; margin: 0; }

/* -------- Zoekbalk -------- */
.searchbar { display: flex; gap: 10px; align-items: center; margin-bottom: 24px; max-width: 560px; }
.searchbar input { flex: 1; }
.searchbar .clear { font-size: 13px; white-space: nowrap; }

/* -------- Auth (gecentreerd) -------- */
.auth-wrap {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 230px);
  padding: 48px 20px;
}
.auth-card {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius-lg);
  box-shadow: var(--schaduw);
  padding: 44px 40px;
  width: 100%;
  max-width: 440px;
  text-align: center;
}
.auth-card .auth-logo { height: 46px; margin: 0 auto 20px; display: block; }
.auth-card h2 { font-size: 26px; margin-bottom: 6px; }
.auth-card > p { margin-top: 0; }
.auth-card form { text-align: left; margin-top: 26px; }
.auth-card .button { margin-top: 6px; }

/* -------- Tabellen -------- */
.table-card {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius-lg);
  box-shadow: var(--schaduw);
  overflow: hidden;
  margin-bottom: 28px;
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 15px 18px; font-size: 14px; vertical-align: middle; }
.table thead th {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--kleur-grijs);
  font-weight: 700;
  background: var(--kleur-grijs-licht);
  border-bottom: 1px solid var(--kleur-rand);
}
.table tbody tr { border-bottom: 1px solid var(--kleur-rand); transition: background var(--overgang); }
.table tbody tr:last-child { border-bottom: 0; }
.table tbody tr:hover { background: #fcfbf8; }
.table td.right, .table th.right { text-align: right; }
.table .inline + .inline { margin-left: 6px; }
.table select { padding: 8px 32px 8px 12px; font-size: 13px; width: auto; }

/* -------- Badges -------- */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 4px 12px;
  border-radius: 999px;
}
.badge-active   { color: #1f7a3d; background: #e7f5ec; }
.badge-invited  { color: var(--kleur-goud-donker); background: var(--kleur-creme); }
.badge-disabled { color: #8a8a8a; background: #efefef; }
.badge-new      { color: #6b6b6b; background: #f0eee8; }

/* -------- Panelen & tegels -------- */
.panel {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius-lg);
  box-shadow: var(--schaduw);
  padding: 28px;
}
.panel h4 { margin-bottom: 16px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.tile {
  display: block;
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius-lg);
  box-shadow: var(--schaduw);
  padding: 26px;
  color: var(--kleur-zwart);
  transition: transform var(--overgang), box-shadow var(--overgang), border-color var(--overgang);
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--schaduw-hover); border-color: var(--kleur-goud); color: var(--kleur-zwart); }
.tile h4 { margin-bottom: 6px; }
.tile p { color: var(--kleur-grijs); font-size: 14px; margin: 0; }
.tile-static, .tile-static:hover { transform: none; box-shadow: var(--schaduw); border-color: var(--kleur-rand); cursor: default; }

/* -------- Badge-varianten -------- */
.badge-warn { color: var(--kleur-goud-donker); background: var(--kleur-creme); margin-left: 4px; }
.badge-note { font-size: 11px; color: #b3261e; margin-left: 6px; }

/* -------- Credentials-kaart (default wachtwoord) -------- */
.cred-card {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-goud);
  border-left: 5px solid var(--kleur-goud);
  border-radius: var(--radius-lg);
  box-shadow: var(--schaduw);
  padding: 22px 24px;
  margin-bottom: 28px;
}
.cred-head { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.cred-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--kleur-goud); display: inline-block; }
.cred-rows { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 14px 0 18px; }
.cred-rows > div { display: flex; flex-direction: column; gap: 4px; }
.cred-label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--kleur-grijs); }
.cred-rows code, code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
  background: var(--kleur-grijs-licht);
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--kleur-zwart);
  letter-spacing: .5px;
}

/* -------- Wachtwoord-eisen -------- */
.pw-eisen { margin: 2px 0 4px; padding-left: 20px; color: var(--kleur-grijs); font-size: 13px; }
.pw-eisen li { margin: 2px 0; }

/* -------- Flash-meldingen -------- */
.flash {
  max-width: 1140px;
  margin: 18px auto 0;
  padding: 14px 18px;
  font-size: 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  word-break: break-word;
}
.flash-success { background: #e7f5ec; border-color: #b8e0c6; color: #1f7a3d; }
.flash-error   { background: #fdeceb; border-color: #f3c4c0; color: #b3261e; }
.flash-info    { background: var(--kleur-creme); border-color: #e6d8b8; color: var(--kleur-goud-donker); }

/* -------- Footer -------- */
.site-footer { flex-shrink: 0; background: var(--kleur-zwart); color: var(--kleur-wit); padding: 52px 24px 26px; margin-top: 56px; }
.site-footer .inner { max-width: 1140px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 44px; justify-content: space-between; }
.site-footer h4 { color: var(--kleur-wit); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.site-footer p, .site-footer a { color: #c9c7c2; font-size: 14px; }
.site-footer a:hover { color: var(--kleur-goud); }
.site-footer .col { min-width: 200px; }
.site-footer .bottom { max-width: 1140px; margin: 36px auto 0; padding-top: 18px; border-top: 1px solid #333; font-size: 12px; color: #8a8a8a; letter-spacing: .5px; }

/* -------- Responsive -------- */
@media (max-width: 640px) {
  .site-header .inner { flex-direction: column; align-items: flex-start; }
  .hero { padding: 64px 20px; }
  .hero h2 { font-size: 34px; }
  .row.wrap { flex-direction: column; align-items: stretch; }
  .row.wrap input, .row.wrap select, .row.wrap .button { width: 100%; }
}

/* ---- Bedrijfslogo's ---- */
.logo-cell { width: 56px; }
.logo-thumb,
.logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--kleur-grijs-licht);
  border: 1px solid var(--kleur-rand);
  object-fit: contain;
  overflow: hidden;
  vertical-align: middle;
}
.logo-placeholder {
  font-weight: 700;
  color: var(--kleur-goud);
  background: var(--kleur-creme);
}
.logo-thumb-lg {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
}
.bedrijf-kop {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0;
}
.bedrijf-kop h2 { margin: 0; }

/* ---- Zoekbalk met filters (producten) ---- */
.searchbar.wrap { flex-wrap: wrap; max-width: none; }
.searchbar.wrap input[type=search] { flex: 1 1 260px; min-width: 220px; }
.searchbar.wrap select { flex: 0 1 auto; min-width: 150px; width: auto; }

/* ---- PIN-weergave in beheer ---- */
.pin-weergave {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--kleur-goud);
}
.button-mini { font-size: 12px; padding: 6px 10px; }

/* ================= KIOSK (bestelscherm) ================= */
.kiosk-body {
  margin: 0;
  min-height: 100vh;
  background: var(--kleur-zwart);
  color: var(--kleur-wit);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.kiosk {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

/* Wachtscherm */
.kiosk-wacht {
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px;
}
.kiosk-logo {
  width: min(46vw, 360px);
  height: auto;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,.5));
}
.kiosk-titel {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: .5px;
  margin: 12px 0 0;
}
.kiosk-hint {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: var(--kleur-goud);
  font-weight: 600;
  margin-top: 8px;
  animation: kiosk-pulse 2s ease-in-out infinite;
}
@keyframes kiosk-pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* Keypad */
.kiosk-pad {
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.kiosk-pad-titel {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.pin-dots {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
}
.pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  transition: all .15s ease;
}
.pin-dot.gevuld {
  background: var(--kleur-goud);
  border-color: var(--kleur-goud);
  transform: scale(1.1);
}
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.keypad-knop {
  font-family: var(--font-basis);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--kleur-wit);
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.14);
  border-radius: 16px;
  height: 78px;
  cursor: pointer;
  transition: background .12s ease, transform .05s ease;
}
.keypad-knop:hover { background: rgba(255,255,255,.14); }
.keypad-knop:active { transform: scale(.96); background: rgba(158,118,49,.5); }
.keypad-actie { font-size: 1.1rem; color: var(--kleur-goud); }

/* Besteld-als kaart */
.kiosk-besteld .kiosk-card {
  text-align: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 420px;
  width: 100%;
}
.kiosk-card .label { color: var(--kleur-goud); }
.kiosk-card h1 { font-size: clamp(1.6rem, 5vw, 2.6rem); margin: 8px 0 4px; }
.kiosk-logo-bedrijf {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: var(--kleur-wit);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-sizing: border-box;
  margin-bottom: 16px;
}
.kiosk-knop { margin-top: 24px; font-size: 1.1rem; padding: 16px; }

/* Subtiele beheer-link op de kiosk */
.kiosk-login-link {
  position: fixed;
  bottom: 16px;
  right: 18px;
  font-size: 12px;
  letter-spacing: .5px;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.kiosk-login-link:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.06); }

/* ---- Kiosk: fade + keuze 'Bestellen als' ---- */
.fade-uit { opacity: 0 !important; transition: opacity .25s ease; }
.kiosk-keuze, .kiosk-pad, .kiosk-wacht { transition: opacity .25s ease; }
.kiosk-keuze { text-align: center; width: 100%; max-width: 560px; }
.keuze-knoppen { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.keuze-knop {
  font-family: var(--font-basis);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--kleur-wit);
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 40px 48px;
  min-width: 200px;
  cursor: pointer;
  transition: background .12s ease, transform .05s ease;
}
.keuze-knop:hover { background: rgba(158,118,49,.35); }
.keuze-knop:active { transform: scale(.97); }

/* ================= BESTELSCHERM ================= */
.bestel-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--kleur-wit);
}
.bestel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.bestel-wie { display: flex; align-items: center; gap: 16px; }
.bestel-logo {
  width: 60px; height: 60px; object-fit: contain;
  background: var(--kleur-wit); border-radius: 12px; padding: 6px; box-sizing: border-box;
}
.bestel-wie .label { color: var(--kleur-goud); }
.bestel-naam { font-size: 1.4rem; font-weight: 700; }
.bestel-stop { color: var(--kleur-wit); border-color: rgba(255,255,255,.3); }

.bestel-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 0;
}
.bestel-zoek-kol { padding: 24px; border-right: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; }
.bestel-zoek {
  width: 100%;
  box-sizing: border-box;
  font-size: 1.3rem;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: var(--kleur-wit);
  margin-bottom: 18px;
}
.bestel-zoek::placeholder { color: rgba(255,255,255,.5); }
.resultaten { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; overflow-y: auto; align-content: start; }
.resultaat {
  display: flex; flex-direction: column; gap: 4px;
  text-align: left;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  color: var(--kleur-wit);
  font-family: var(--font-basis);
  transition: background .12s ease, transform .05s ease;
}
.resultaat:hover { background: rgba(158,118,49,.3); }
.resultaat:active { transform: scale(.98); }
.res-naam { font-size: 1.15rem; font-weight: 700; }
.res-sub { font-size: .8rem; color: rgba(255,255,255,.55); }
.res-prijs { font-size: 1rem; font-weight: 600; color: var(--kleur-goud); margin-top: 4px; }

/* Mandje */
.bestel-mandje { padding: 24px; display: flex; flex-direction: column; min-height: 0; }
.bestel-mandje h3 { font-size: 1.3rem; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.mandje-badge { background: var(--kleur-goud); color: var(--kleur-zwart); border-radius: 999px; padding: 2px 12px; font-size: .9rem; }
.mandje-lijst { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.mandje-lijn {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 12px 14px;
}
.mandje-naam { font-size: 1.1rem; font-weight: 600; }
.mandje-lijnprijs { font-weight: 700; color: var(--kleur-goud); min-width: 80px; text-align: right; }
.mini-stepper { display: flex; align-items: center; gap: 10px; }
.mini-knop {
  width: 44px; height: 44px; border-radius: 10px;
  font-size: 1.4rem; font-weight: 700; color: var(--kleur-wit);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); cursor: pointer;
}
.mini-knop:active { background: rgba(158,118,49,.5); }
.mini-qty { min-width: 28px; text-align: center; font-size: 1.2rem; font-weight: 700; }
.mandje-del {
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1px solid rgba(255,255,255,.15); font-size: 1.1rem;
}
.mandje-del:active { background: rgba(220,80,80,.4); }
.mandje-totaal {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,.15); margin-top: 16px; padding-top: 16px;
  font-size: 1.3rem;
}
.mandje-totaal strong { font-size: 1.6rem; color: var(--kleur-goud); }

/* Stepper-overlay (nieuw item) */
.stepper-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 50;
}
.stepper-card {
  background: #232323; border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px; padding: 32px; text-align: center; width: 100%; max-width: 360px; color: var(--kleur-wit);
}
.stepper-naam { font-size: 1.5rem; font-weight: 700; margin: 0 0 4px; }
.stepper-prijs { margin: 18px 0 4px; }
.stepper-prijs label { display: block; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 8px; }
.stepper-prijs input { width: 100%; text-align: center; font-size: 1.4rem; font-weight: 600; padding: 14px; }
.stepper-fout { color: #ff8f8a; font-size: 13px; margin: 8px 0 0; }
.stepper-rij { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 28px 0; }
.stepper-knop {
  width: 72px; height: 72px; border-radius: 16px;
  font-size: 2rem; font-weight: 700; color: var(--kleur-wit);
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2); cursor: pointer;
}
.stepper-knop:active { background: rgba(158,118,49,.5); }
.stepper-aantal { font-size: 2.4rem; font-weight: 700; min-width: 60px; }
.stepper-acties { display: flex; gap: 12px; justify-content: center; }

@media (max-width: 760px) {
  .bestel-grid { grid-template-columns: 1fr; }
  .bestel-zoek-kol { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
}

/* Fix: overlay moet verborgen blijven als 'hidden' gezet is */
.stepper-overlay[hidden] { display: none !important; }

/* Categoriebalk in bestelscherm */
.cat-balk { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.cat-knop {
  font-family: var(--font-basis);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--kleur-wit);
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.16);
  border-radius: 12px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background .12s ease, transform .05s ease;
}
.cat-knop:hover { background: rgba(255,255,255,.14); }
.cat-knop:active { transform: scale(.97); }
.cat-knop.actief { background: var(--kleur-goud); border-color: var(--kleur-goud); color: var(--kleur-zwart); }
.lijst-titel { font-size: 1.05rem; margin-bottom: 12px; font-weight: 600; }

/* Collega-placeholder i.p.v. logo */
.bestel-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.75);
  flex: 0 0 auto;
}
.bestel-avatar svg { width: 60%; height: 60%; }

/* Rekening-kop: label links, teller rechtsboven */
.mandje-kop { display: flex; align-items: flex-start; justify-content: space-between; }
.mandje-kop .label { margin-bottom: 16px; }
.bestel-mandje .mandje-badge { align-self: flex-start; }

/* PIN-veld met oog-knop (beheer) */
.pin-veld { display: inline-flex; align-items: center; gap: 8px; }
.pin-cijfers {
  font-size: 16px; font-weight: 700; letter-spacing: 3px;
  color: var(--kleur-goud); min-width: 56px; display: inline-block;
}
.pin-oog {
  border: none; background: transparent; cursor: pointer;
  font-size: 15px; line-height: 1; padding: 4px; border-radius: 6px; opacity: .5;
}
.pin-oog:hover { opacity: .9; background: var(--kleur-grijs-licht); }
.pin-oog.aan { opacity: 1; }
.pin-rij { display: flex; align-items: center; gap: 10px; }

/* Bevestigingspopup bestelling */
.bevestig-card { max-width: 420px; text-align: left; }
.bevestig-titel { text-align: center; font-size: 1.6rem; font-weight: 700; margin: 0 0 18px; }
.bevestig-lijst { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; max-height: 45vh; overflow-y: auto; }
.bevestig-rij { display: flex; justify-content: space-between; gap: 14px; color: rgba(255,255,255,.85); }
.bevestig-rij .bv-prijs { color: var(--kleur-goud); font-weight: 600; white-space: nowrap; }
.bevestig-totaal {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,.15); margin-top: 14px; padding-top: 12px; font-size: 1.1rem;
}
.bevestig-totaal strong { font-size: 1.4rem; color: var(--kleur-goud); }
.bevestig-zin { font-size: .9rem; color: rgba(255,255,255,.7); text-align: center; margin: 16px 0 22px; }
.bevestig-zin strong { color: var(--kleur-wit); }

/* ---- company.php opfrissing ---- */
/* Wat lucht tussen opeenvolgende blokken */
.panel { margin-bottom: 20px; }

/* PIN-veld ruimer: oog niet tegen de cijfers, en afstand tot de knop ernaast */
.pin-veld { gap: 12px; margin-right: 14px; }
.pin-oog { padding: 6px 8px; }

/* Gebruikerslijst (twee regels per persoon) */
.gebr-balk { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.gebr-allebox { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--kleur-grijs); font-weight: 600; cursor: pointer; }
.gebr-allebox input { width: auto; margin: 0; accent-color: var(--kleur-goud); }
.gebr-testmodus {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--kleur-goud-donker);
  background: var(--kleur-creme); border: 1px solid var(--kleur-goud);
  border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
.gebr-testmodus input { width: auto; margin: 0; accent-color: var(--kleur-goud); }
.gebr-lijst {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius-lg);
  box-shadow: var(--schaduw);
  overflow: hidden;
  margin-bottom: 20px;
}
.gebr-rij {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--kleur-rand);
  flex-wrap: wrap;
}
.gebr-rij:last-child { border-bottom: 0; }
.gebr-rij:hover { background: #fcfbf8; }
.gebr-rij > .gebr-check { flex: 0 0 auto; width: auto; margin: 0; accent-color: var(--kleur-goud); }
.gebr-info { flex: 1 1 240px; min-width: 0; }
.gebr-r1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gebr-naam { font-weight: 600; font-size: 15px; }
.gebr-rol { font-size: 12px; color: var(--kleur-grijs); }
.gebr-r2 { font-size: 13px; color: var(--kleur-grijs); margin-top: 3px; overflow-wrap: anywhere; }
.gebr-acties { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rol-select { width: auto; padding: 6px 30px 6px 10px; font-size: 13px; }
.pin-blok { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--kleur-grijs); }
.gebr-balk a { font-weight: 600; }

/* Tabs (bv. Bedrijven / Gebruikers) */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--kleur-rand); margin: 8px 0 24px; }
.tabs a {
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--kleur-grijs);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a:hover { color: var(--kleur-goud-donker); }
.tabs a.actief { color: var(--kleur-zwart); border-bottom-color: var(--kleur-goud); }

/* 'Verplicht'-checkbox naast een PIN */
.pin-verplicht-form { margin-left: 10px; }
.pin-verplicht { font-size: 13px; color: var(--kleur-grijs); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.pin-verplicht input[type=checkbox] { width: auto; margin: 0; accent-color: var(--kleur-goud); }

/* Bedrijfskeuze op het bestelscherm (bedrijven zonder verplichte PIN) */
.bedrijf-keuze-lijst { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 720px; max-height: 66vh; overflow: auto; margin: 20px auto 16px; }
.bedrijf-knop { min-width: 150px; font-size: 1.15rem; padding: 18px 24px; border-radius: 14px; }
.kiosk-onder-acties { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Collega kiezen via naam (geen PIN) — zoekveld met dropdown eronder */
.collega-bedrijf-naam { color: var(--kleur-goud); font-weight: 700; }
.collega-combo { position: relative; width: 100%; max-width: 480px; margin: 18px auto 14px; text-align: left; }
.collega-zoek {
  display: block; width: 100%;
  box-sizing: border-box; font-size: 1.2rem; padding: 16px 20px;
  border-radius: 14px; border: 1.5px solid var(--kleur-rand);
  background: #fff; color: var(--kleur-zwart); text-align: left;
}
.collega-zoek:focus { outline: none; border-color: var(--kleur-goud); }
.collega-dropdown {
  margin-top: 8px; max-height: 46vh; overflow-y: auto;
  border: 1.5px solid var(--kleur-rand); border-radius: 14px;
  background: #fff; box-shadow: var(--schaduw-hover);
}
.collega-dropdown.leeg { padding: 4px; }
.collega-optie {
  display: block; width: 100%; box-sizing: border-box;
  font-family: var(--font-basis); font-size: 1.1rem; font-weight: 600;
  color: var(--kleur-zwart); background: transparent; border: none;
  border-bottom: 1px solid var(--kleur-rand);
  padding: 15px 20px; cursor: pointer; text-align: left;
  transition: background var(--overgang);
}
.collega-optie:last-child { border-bottom: none; }
.collega-optie:hover, .collega-optie:focus { background: rgba(158,118,49,.16); outline: none; }
.collega-optie:active { background: rgba(158,118,49,.30); }
.collega-geen { padding: 16px 20px; margin: 0; text-align: center; }

/* Bestand kiezen in de huisstijl i.p.v. grijze default-box */
.bestand-veld { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
input[type=file] { font-family: var(--font-basis); font-size: 14px; color: var(--kleur-grijs); }
input[type=file]::file-selector-button {
  font-family: var(--font-basis); font-weight: 600; font-size: 14px;
  color: var(--kleur-zwart); background: var(--kleur-wit);
  border: 1.5px solid var(--kleur-rand); border-radius: var(--radius);
  padding: 11px 18px; margin-right: 12px; cursor: pointer;
  transition: border-color var(--overgang), color var(--overgang);
}
input[type=file]::file-selector-button:hover { border-color: var(--kleur-goud); color: var(--kleur-goud); }
.bestand-hint { font-size: 12px; }

/* ---- Kop-acties (terug-link + toevoegknop) ---- */
.kop-acties { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 4px 0 24px; }
.terug-link { font-size: 14px; }

/* Sorteerbare kolomkop */
.sort-kop { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.sort-kop:hover { color: var(--kleur-goud); }
.sort-pijl { font-size: 10px; color: var(--kleur-goud); }

/* Verzorgd formulier (gebruiker toevoegen) */
.form-stack { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.veld-rij { display: flex; gap: 18px; flex-wrap: wrap; }
.veld { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--kleur-zwart); flex: 1 1 220px; }
.veld input, .veld select { font-weight: 400; }

/* ---- Saldo & verbruik ---- */
.kop-knoppen { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.saldo-kaart {
  background: var(--kleur-zwart);
  color: var(--kleur-wit);
  border-radius: var(--radius-lg);
  box-shadow: var(--schaduw);
  padding: 28px 32px;
  margin-bottom: 24px;
}
.saldo-kaart .label { color: var(--kleur-goud); margin-bottom: 6px; }
.saldo-bedrag { font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 700; line-height: 1; }
.saldo-bedrag.saldo-negatief { color: #e57373; }
.saldo-sub { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 18px; }
.saldo-sub > div { display: flex; flex-direction: column; gap: 2px; }
.saldo-sub span { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.55); }
.saldo-sub strong { font-size: 1.1rem; color: var(--kleur-wit); }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-items { margin: 8px 0 4px; padding-left: 18px; font-size: 13px; }
.detail-items li { margin: 2px 0; }
details summary { cursor: pointer; font-weight: 600; }

/* Info-tabel op de eigen pagina */
.info-tabel { width: 100%; border-collapse: collapse; }
.info-tabel th { text-align: left; width: 160px; padding: 8px 0; font-size: 13px; color: var(--kleur-grijs); font-weight: 600; vertical-align: top; }
.info-tabel td { padding: 8px 0; font-size: 14px; }

/* Admin-bewerking in verbruik */
.qty-mini { width: 60px; padding: 6px 8px; font-size: 13px; }
.lijn-edit { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detail-items li { margin: 6px 0; }
.edit-rij td { background: var(--kleur-grijs-licht); }

/* Kiosk-actieknoppen (afmelden + bestellen) */
.bestel-acties { display: inline-flex; gap: 10px; align-items: center; }
.bestel-afmeld { color: var(--kleur-wit); border-color: rgba(255,255,255,.3); background: transparent; }
.bestel-afmeld:hover { background: rgba(255,255,255,.1); }

/* ---- Landingspagina: 2 grote push-knoppen ---- */
.landing-knoppen { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 40px; }
.knop-groot {
  flex: 1 1 240px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 150px;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  background: var(--kleur-zwart);
  color: var(--kleur-wit);
  text-decoration: none;
  font-size: 1.8rem; font-weight: 700; letter-spacing: 2px;
  box-shadow: var(--schaduw);
  transition: transform var(--overgang), box-shadow var(--overgang), filter var(--overgang);
}
.knop-groot:hover { transform: translateY(-3px); box-shadow: var(--schaduw-hover); filter: brightness(1.08); }
.knop-groot.knop-goud { background: var(--kleur-goud); }
.knop-groot .knop-sub { font-size: .9rem; font-weight: 400; letter-spacing: .5px; text-transform: none; color: rgba(255,255,255,.7); }

/* Dashboard-kop met manager-knop rechtsboven + volle-breedte verbruikknop */
.dash-kop { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-kop h2 { margin: 0; }
.dash-verbruik { margin: 20px 0; text-align: center; }

/* ================= VERBRUIK REGISTREREN (overlay, lichte stijl) ================= */
.vreg-start { margin-top: 24px; text-align: center; }
.vreg-start .small { margin-top: 8px; }

.vreg-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(26,26,26,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.vreg-overlay[hidden] { display: none !important; }
body.vreg-open-body { overflow: hidden; }

.vreg-modal {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius-lg);
  box-shadow: var(--schaduw-hover);
  width: 100%; max-width: 1000px;
  height: 90vh; max-height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.vreg-modal-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--kleur-rand);
}
.vreg-naam { font-size: 1.3rem; font-weight: 700; }
.vreg-sluit {
  border: none; background: transparent; cursor: pointer;
  font-size: 1.8rem; line-height: 1; color: var(--kleur-grijs);
  padding: 0 4px;
}
.vreg-sluit:hover { color: var(--kleur-zwart); }

.vreg-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  min-height: 0; flex: 1;
}
.vreg-zoek-kol {
  padding: 20px 24px; display: flex; flex-direction: column; min-height: 0;
  border-right: 1px solid var(--kleur-rand);
}
.vreg-zoek {
  width: 100%; box-sizing: border-box;
  font-size: 1.05rem; padding: 12px 16px;
  border-radius: var(--radius); border: 1.5px solid var(--kleur-rand);
  background: #fff; color: var(--kleur-zwart); margin-bottom: 14px;
}
.vreg-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.vreg-cat {
  font-family: var(--font-basis); font-size: .95rem; font-weight: 600;
  color: var(--kleur-zwart); background: var(--kleur-grijs-licht);
  border: 1.5px solid var(--kleur-rand); border-radius: var(--radius);
  padding: 8px 14px; cursor: pointer; transition: background var(--overgang);
}
.vreg-cat:hover { background: #ece8df; }
.vreg-cat.actief { background: var(--kleur-goud); border-color: var(--kleur-goud); color: var(--kleur-wit); }
.vreg-lijst-titel { font-size: 1rem; margin-bottom: 12px; font-weight: 600; }
.vreg-resultaten {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px; overflow-y: auto; align-content: start; padding-right: 4px;
}
.vreg-resultaat {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  background: var(--kleur-wit); border: 1.5px solid var(--kleur-rand);
  border-radius: var(--radius); padding: 14px; cursor: pointer;
  font-family: var(--font-basis); color: var(--kleur-zwart);
  transition: border-color var(--overgang), background var(--overgang);
}
.vreg-resultaat:hover { border-color: var(--kleur-goud); background: var(--kleur-creme); }
.vreg-res-naam { font-size: 1.05rem; font-weight: 700; }
.vreg-res-sub { font-size: .78rem; color: var(--kleur-grijs); }
.vreg-res-prijs { font-size: .95rem; font-weight: 600; color: var(--kleur-goud); margin-top: 4px; }

.vreg-mandje { padding: 20px 24px; display: flex; flex-direction: column; min-height: 0; }
.vreg-mandje-kop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.vreg-badge { background: var(--kleur-goud); color: var(--kleur-wit); border-radius: 999px; padding: 2px 12px; font-size: .85rem; font-weight: 700; }
.vreg-mandje-lijst { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.vreg-mandje-lijn {
  display: grid; grid-template-columns: 1fr auto auto auto;
  align-items: center; gap: 10px;
  background: var(--kleur-grijs-licht); border: 1px solid var(--kleur-rand);
  border-radius: var(--radius); padding: 10px 12px;
}
.vreg-mandje-naam { font-weight: 600; }
.vreg-mandje-lijnprijs { font-weight: 700; color: var(--kleur-goud); min-width: 70px; text-align: right; }
.vreg-mini-stepper { display: flex; align-items: center; gap: 8px; }
.vreg-mini-knop {
  width: 34px; height: 34px; border-radius: 8px; font-size: 1.2rem; font-weight: 700;
  color: var(--kleur-zwart); background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand); cursor: pointer;
}
.vreg-mini-knop:hover { background: var(--kleur-creme); }
.vreg-mini-qty { min-width: 24px; text-align: center; font-weight: 700; }
.vreg-mandje-del {
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid var(--kleur-rand); font-size: 1rem;
}
.vreg-mandje-del:hover { background: rgba(220,80,80,.12); border-color: rgba(220,80,80,.4); }
.vreg-totaal {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--kleur-rand); margin-top: 20px; padding-top: 18px;
  font-size: 1.15rem;
}
.vreg-totaal strong { font-size: 1.4rem; color: var(--kleur-goud); }
.vreg-reden { margin-top: 22px; display: flex; flex-direction: column; gap: 6px; }
.vreg-reden input { width: 100%; }
.vreg-afronden-knop { margin-top: 8px; width: 100%; }

/* Stepper-kaart */
.vreg-stepper-card {
  background: var(--kleur-wit); border: 1px solid var(--kleur-rand);
  border-radius: var(--radius-lg); box-shadow: var(--schaduw-hover);
  padding: 28px; text-align: center; width: 100%; max-width: 360px;
}
.vreg-st-naam { font-size: 1.4rem; font-weight: 700; margin: 0 0 4px; }
.vreg-st-prijsveld { margin: 16px 0 4px; }
.vreg-st-prijsveld label { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--kleur-grijs); margin-bottom: 8px; }
.vreg-st-prijsveld input {
  width: 100%; text-align: center; font-size: 1.3rem; font-weight: 600; padding: 12px;
  border-radius: var(--radius); border: 1.5px solid var(--kleur-rand);
}
.vreg-st-fout { color: #c0392b; font-size: 13px; margin: 8px 0 0; }
.vreg-st-rij { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 24px 0; }
.vreg-st-knop {
  width: 64px; height: 64px; border-radius: 14px; font-size: 1.8rem; font-weight: 700;
  color: var(--kleur-zwart); background: var(--kleur-grijs-licht);
  border: 1.5px solid var(--kleur-rand); cursor: pointer;
}
.vreg-st-knop:hover { background: #ece8df; }
.vreg-st-aantal { font-size: 2.2rem; font-weight: 700; min-width: 56px; }
.vreg-st-acties { display: flex; gap: 12px; justify-content: center; }

@media (max-width: 760px) {
  .vreg-grid { grid-template-columns: 1fr; overflow-y: auto; }
  .vreg-zoek-kol { border-right: none; border-bottom: 1px solid var(--kleur-rand); }
  .vreg-resultaten { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ===== Rapportage ===== */
.rap-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  margin: 22px 0 8px;
  padding: 18px 20px;
  background: var(--kleur-grijs-licht);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
}
.rap-filter label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--kleur-grijs);
}
.rap-filter input[type=date] { width: 170px; }
.rap-filter .button { white-space: nowrap; }
.rap-snel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
  align-items: center;
}
.rap-snel a {
  white-space: nowrap;
  padding: 8px 16px;
  border: 1px solid var(--kleur-rand);
  border-radius: 999px;
  background: var(--kleur-wit);
  font-size: 13px;
  font-weight: 600;
  color: var(--kleur-grijs);
  transition: border-color var(--overgang), color var(--overgang), background var(--overgang);
}
.rap-snel a:hover {
  border-color: var(--kleur-goud);
  background: var(--kleur-creme);
  color: var(--kleur-goud-donker);
}

.rap-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0 8px;
}
.stat-card {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--kleur-grijs);
}
.stat-waarde { font-size: 24px; font-weight: 700; color: var(--kleur-zwart); }
.stat-periode { font-size: 16px; }

.rap-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 32px 0 22px;
  border-bottom: 2px solid var(--kleur-rand);
}
.rap-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 12px 18px;
  font-family: var(--font-basis);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--kleur-grijs);
  cursor: pointer;
  transition: color var(--overgang), border-color var(--overgang);
}
.rap-tab:hover { color: var(--kleur-zwart); }
.rap-tab.is-actief {
  color: var(--kleur-goud-donker);
  border-bottom-color: var(--kleur-goud);
}
.rap-paneel { display: none; }
.rap-paneel.is-actief { display: block; }

@media (max-width: 760px) {
  .rap-stats { grid-template-columns: repeat(2, 1fr); }
  .rap-snel { margin-left: 0; flex-basis: 100%; }
  .rap-filter input[type=date] { width: 100%; }
  .rap-filter label { flex: 1 1 140px; }
  .rap-tabs { gap: 0; }
  .rap-tab { flex: 1 1 auto; padding: 11px 10px; text-align: center; }
}

/* ==================================================================
   ENERGIE — aanvullingen op de PATRON-huisstijl
   ================================================================== */
.site-nav a.actief { background: var(--kleur-creme); color: var(--kleur-goud-donker); }
.stat-periode { font-size: 12px; color: var(--kleur-grijs); }
.stat-waarde { font-size: 22px; }
.rap-stats { margin: 16px 0 6px; }

.en-periode-label { color: var(--kleur-goud); font-weight: 600; }
.en-filter { display: flex; gap: 10px; }
.en-filter select { width: auto; padding: 10px 34px 10px 14px; font-size: 14px; }

.en-tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin: 18px 0 18px; border-bottom: 2px solid var(--kleur-rand);
}
.en-tabs a {
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  padding: 12px 18px; font-size: 14px; font-weight: 600; letter-spacing: .3px;
  color: var(--kleur-grijs);
}
.en-tabs a:hover { color: var(--kleur-zwart); }
.en-tabs a.actief { color: var(--kleur-goud-donker); border-bottom-color: var(--kleur-goud); }

.en-chart { position: relative; height: 320px; }
.en-chart-klein { height: 230px; }
.en-twee { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.en-twee .panel { margin-bottom: 20px; }

.en-balk { display: inline-block; width: 70px; height: 6px; background: var(--kleur-grijs-licht); border-radius: 3px; margin-right: 8px; vertical-align: middle; overflow: hidden; }
.en-balk span { display: block; height: 100%; background: var(--kleur-goud); }

.en-leeg { text-align: center; color: var(--kleur-grijs); }
.en-leeg p { margin: 0 0 14px; }

.en-form-rij { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.en-form-rij label { display: flex; flex-direction: column; gap: 6px; flex: 1 1 160px; }
.en-form-rij .button { flex: 0 0 auto; }
input[type=month], input[type=number] {
  font-family: var(--font-basis); font-size: 15px; padding: 12px 14px;
  border: 1.5px solid var(--kleur-rand); border-radius: var(--radius); background: var(--kleur-wit); width: 100%;
}

.en-formaten { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; font-size: 13px; }
.en-formaten code, .en-code { background: var(--kleur-grijs-licht); padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.en-code { font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.en-cred { border-color: var(--kleur-goud); }

.en-scroll { overflow-x: auto; }
.en-paginering { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 20px; }
.en-paginering a { padding: 6px 12px; border: 1px solid var(--kleur-rand); border-radius: var(--radius); font-size: 13px; }
.en-paginering a.actief { background: var(--kleur-goud); color: var(--kleur-wit); border-color: var(--kleur-goud); }

@media (max-width: 760px) {
  .en-twee { grid-template-columns: 1fr; }
  .en-tabs a { flex: 1 1 auto; text-align: center; padding: 11px 8px; }
  .en-chart { height: 260px; }
  .table th, .table td { padding: 10px 10px; }
}
