/* Winkelkas – liquid glass stijl */
:root {
  --accent: hsl(220, 8%, 18%);
  --accent-soft: hsla(220, 20%, 60%, 0.35);
  --tekst: #16181D;
  --tekst-2: #4A4F58;
  --tekst-3: #5A606B;
  --grond: #E9EBEF;
  --glas: rgba(255, 255, 255, 0.62);
  --glas-sterk: rgba(255, 255, 255, 0.78);
  --rand: rgba(255, 255, 255, 0.85);
  --lijn: rgba(22, 24, 29, 0.08);
  --goed: #22543A;
  --goed-bg: rgba(46, 107, 69, 0.12);
  --let-op: #7A4209;
  --let-op-bg: rgba(176, 96, 20, 0.12);
  --fout: #8A1C1C;
  --fout-bg: rgba(180, 30, 30, 0.1);
  --radius: 22px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--tekst); background: var(--grond);
  overscroll-behavior: none; -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
a { color: var(--tekst-2); }

.achtergrond { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(100px); }
.blob.een { width: 680px; height: 680px; left: -180px; top: -260px; background: var(--accent-soft); }
.blob.twee { width: 560px; height: 560px; right: -160px; bottom: -240px; background: rgba(190, 198, 214, 0.75); }

#app { position: relative; z-index: 1; height: 100%; }

.glas {
  background: var(--glas);
  backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--rand); border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(20, 24, 32, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.glas.sterk { background: var(--glas-sterk); }

/* knoppen */
.knop {
  min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid rgba(22, 24, 29, 0.1);
  background: rgba(255, 255, 255, 0.85); font-weight: 600; font-size: 15px; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; color: var(--tekst);
}
.knop.hoofd { background: var(--accent); color: #fff; border: none; box-shadow: 0 10px 26px rgba(20, 24, 32, 0.2); }
.knop.groot { min-height: 66px; font-size: 18px; border-radius: 20px; }
.knop.gevaar { color: var(--fout); }
.knop.hoofd.gevaar { background: var(--fout); color: #fff; border-color: transparent; }
.knop.hoofd.gevaar:disabled { opacity: .45; cursor: not-allowed; }
.knop.klein { min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 12px; }
.knop.breed { width: 100%; }
.knop.actief { background: var(--accent); color: #fff; border-color: transparent; }
.pil { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--rand); background: var(--glas); font-weight: 600; font-size: 15px; white-space: nowrap; }
.pil.actief { background: var(--accent); color: #fff; border-color: transparent; }

/* formulieren */
.veld { display: flex; flex-direction: column; gap: 6px; }
.veld label, .label { font-size: 13px; font-weight: 600; color: var(--tekst-2); }
.invoer {
  min-height: 52px; border-radius: 14px; border: 1px solid rgba(22, 24, 29, 0.14); background: rgba(255, 255, 255, 0.92);
  padding: 0 14px; font-size: 16px; width: 100%;
}
.invoer:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.vink { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.vink input { width: 22px; height: 22px; accent-color: var(--accent); }
.rij { display: flex; gap: 12px; align-items: center; }
.rij.wrap { flex-wrap: wrap; }
.kolom { display: flex; flex-direction: column; gap: 12px; }
.tussen { justify-content: space-between; }
.groei { flex: 1; min-width: 0; }
.klein-tekst { font-size: 13px; color: var(--tekst-3); line-height: 1.5; }
.fout-tekst { color: var(--fout); background: var(--fout-bg); padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.goed-tekst { color: var(--goed); background: var(--goed-bg); padding: 10px 14px; border-radius: 12px; font-size: 14px; }
h1 { font-size: 26px; margin: 0; }
h2 { font-size: 18px; margin: 0; }

/* ===== inloggen ===== */
.midden { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-kaart { width: 100%; max-width: 440px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.logo-blok { width: 88px; height: 88px; border-radius: 24px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 30px; overflow: hidden; margin: 0 auto; }
.logo-blok img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo-klein { width: 42px; height: 42px; border-radius: 12px; font-size: 16px; margin: 0; flex: none; }

/* ===== wie werkt er ===== */
.wie { display: flex; gap: 40px; align-items: center; justify-content: center; min-height: 100%; padding: 32px; flex-wrap: wrap; }
.wie-lijst { width: 460px; max-width: 100%; display: flex; flex-direction: column; gap: 20px; }
.mw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mw-knop { min-height: 76px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--rand); background: var(--glas); font-size: 16px; font-weight: 600; text-align: left; }
.mw-knop.actief { border: 2px solid var(--accent); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--tekst); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex: none; }
.pin-kaart { width: 380px; max-width: 100%; padding: 30px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.pin-stippen { display: flex; gap: 16px; }
.pin-stippen span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(22, 24, 29, 0.25); }
.pin-stippen span.vol { background: var(--accent); border-color: var(--accent); }
.toetsen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.toets { min-height: 64px; border-radius: 20px; border: 1px solid var(--rand); background: rgba(255, 255, 255, 0.78); font-size: 24px; font-weight: 600; box-shadow: 0 4px 14px rgba(20, 24, 32, 0.05); }
.toets:active, .tegel:active, .pil:active, .knop:active { transform: scale(0.97); }
.schudden { animation: schud 0.35s; }
@keyframes schud { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }

/* ===== kassa ===== */
.kassa { height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.balk { min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; gap: 12px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 12px; border-radius: 999px; background: var(--goed-bg); color: var(--goed); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.offline { background: var(--let-op-bg); color: var(--let-op); }
.kassa-midden { flex: 1; display: flex; gap: 14px; min-height: 0; }
.kassa-links { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cat-balk { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.cat-balk::-webkit-scrollbar { display: none; }
.tegels { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); grid-auto-rows: 132px; gap: 12px; align-content: start; padding-bottom: 8px; }
.tegel { text-align: left; padding: 16px; border-radius: 22px; border: 1px solid var(--rand); background: var(--glas); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 6px 22px rgba(20, 24, 32, 0.06), inset 0 1px 0 rgba(255,255,255,0.9); display: flex; flex-direction: column; justify-content: space-between; }
.tegel .naam { font-size: 16px; font-weight: 600; line-height: 1.3; }
.tegel .prijs { font-size: 20px; font-weight: 700; }
.tegel .rij { flex-wrap: wrap; gap: 6px; }
.etiket { white-space: nowrap; font-size: 11px; font-weight: 600; color: var(--tekst-2); padding: 4px 8px; border-radius: 999px; background: rgba(22, 24, 29, 0.07); }
.bon { width: 370px; display: flex; flex-direction: column; padding: 18px; }
.bon-regels { flex: 1; overflow-y: auto; margin: 10px -6px 0; padding: 0 6px; }
.bon-regel { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 4px; border: none; border-bottom: 1px solid var(--lijn); background: none; text-align: left; }
.aantal { width: 34px; height: 34px; border-radius: 10px; background: rgba(22, 24, 29, 0.06); display: flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }
.leeg { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--tekst-3); font-size: 15px; padding: 20px; }
.som { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 14px; color: var(--tekst-2); }
.som div { display: flex; justify-content: space-between; }
.afreken-knop { margin-top: 14px; min-height: 68px; border-radius: 20px; border: none; background: var(--accent); color: #fff; font-size: 19px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; box-shadow: 0 10px 28px rgba(20, 24, 32, 0.22); }

/* ===== betalen ===== */
.betalen { height: 100%; display: flex; gap: 14px; padding: 16px; }
.betalen-links { width: 380px; padding: 22px; display: flex; flex-direction: column; }
.betalen-rechts { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.methodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.methode { min-height: 92px; border-radius: 24px; border: 1px solid var(--rand); background: var(--glas); font-size: 20px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 12px; }
.methode.actief { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 10px 28px rgba(20, 24, 32, 0.2); }
.groot-bedrag { font-size: 40px; font-weight: 700; letter-spacing: -0.5px; }
.wisselgeld { padding: 16px; border-radius: 18px; background: var(--goed-bg); color: var(--goed); display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.wisselgeld strong { font-size: 28px; }

/* ===== venster ===== */
.scherm-donker { position: fixed; inset: 0; z-index: 50; background: rgba(22, 24, 29, 0.32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.venster { width: 100%; max-width: 640px; max-height: calc(100% - 20px); overflow-y: auto; padding: 26px; border-radius: 30px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(36px) saturate(180%); -webkit-backdrop-filter: blur(36px) saturate(180%); border: 1px solid rgba(255,255,255,0.95); box-shadow: 0 30px 80px rgba(20, 24, 32, 0.25); display: flex; flex-direction: column; gap: 16px; }
.venster.breed { max-width: 900px; }
.segment { display: flex; padding: 4px; border-radius: 16px; background: rgba(22, 24, 29, 0.06); }
.segment button { flex: 1; min-height: 44px; border-radius: 12px; border: none; background: transparent; font-weight: 600; color: var(--tekst-2); }
.segment button.actief { background: #fff; color: var(--tekst); box-shadow: 0 2px 8px rgba(20, 24, 32, 0.08); }
.melding { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; padding: 14px 20px; border-radius: 16px; background: var(--tekst); color: #fff; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,0.25); max-width: 90%;; display: flex; align-items: center; gap: 14px; }
.melding.goed { background: var(--goed); }
.melding.fout { background: var(--fout); }
.melding-knop { flex: none; min-height: 40px; padding: 8px 14px; border: none; border-radius: 10px; background: #fff; color: var(--tekst); font: inherit; font-weight: 700; cursor: pointer; }

/* ===== beheer ===== */
.beheer { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px; min-height: 100%; align-items: flex-start; }
.zijmenu { flex: 1 1 220px; max-width: 260px; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.zijmenu .kop { padding: 4px 10px 12px; font-size: 13px; color: var(--tekst-3); }
.zijmenu .kop strong { display: block; color: var(--tekst); font-size: 15px; }
.menu-item { min-height: 46px; display: flex; align-items: center; padding: 0 14px; border-radius: 14px; border: none; background: none; font-weight: 600; font-size: 15px; text-align: left; width: 100%; }
.menu-item.actief { background: var(--accent); color: #fff; }
.menu-sub { font-size: 12px; font-weight: 700; color: var(--tekst-3); padding: 14px 14px 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.inhoud { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 16px; max-width: 1360px; }
.kaarten { display: flex; flex-wrap: wrap; gap: 14px; }
.kpi { flex: 1 1 200px; padding: 20px; }
.kpi .l { font-size: 13px; color: var(--tekst-3); }
.kpi .w { font-size: 28px; font-weight: 700; margin-top: 6px; letter-spacing: -0.4px; }
.kpi .s { font-size: 13px; color: var(--tekst-2); margin-top: 4px; }
.paneel { padding: 20px; }
.tabel-doos { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--tekst-3); padding: 10px 8px; border-bottom: 1px solid var(--lijn); white-space: nowrap; }
td { padding: 12px 8px; border-bottom: 1px solid rgba(22, 24, 29, 0.05); vertical-align: middle; }
td.r, th.r { text-align: right; white-space: nowrap; }
tr.totaal td { font-weight: 700; border-bottom: none; }
tr.klik { cursor: pointer; }
tr.klik:hover td { background: rgba(255,255,255,0.5); }
.waarschuw { color: var(--let-op); font-weight: 600; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(22, 24, 29, 0.07); font-size: 12px; font-weight: 600; }
.badge.uit { background: var(--let-op-bg); color: var(--let-op); }
.stip { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #2E8B57; margin-right: 8px; }
.stip.oranje { background: #B06014; }
.stip.grijs { background: #A3ACB5; }
.balkje { height: 10px; border-radius: 999px; background: rgba(22, 24, 29, 0.08); overflow: hidden; }
.balkje div { height: 100%; background: var(--accent); }
.formulier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.schuif { width: 100%; height: 44px; -webkit-appearance: none; appearance: none; background: transparent; }
.schuif::-webkit-slider-runnable-track { height: 14px; border-radius: 999px; background: var(--track); }
.schuif::-moz-range-track { height: 14px; border-radius: 999px; background: var(--track); }
.schuif::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -10px; border-radius: 50%; background: #fff; border: 1px solid rgba(0,0,0,0.12); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.schuif::-moz-range-thumb { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid rgba(0,0,0,0.12); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.laden { opacity: 0.6; pointer-events: none; }

@media (max-width: 900px) {
  .kassa-midden { flex-direction: column; }
  .bon { width: 100%; max-height: 46vh; }
  .betalen { flex-direction: column; overflow-y: auto; }
  .betalen-links { width: 100%; }
  .zijmenu { max-width: none; }
  .formulier-grid { grid-template-columns: 1fr; }
}
@media print {
  .zijmenu, .achtergrond, .geen-print { display: none !important; }
  .glas { background: #fff; box-shadow: none; border: 1px solid #ddd; backdrop-filter: none; }
  body { background: #fff; }
}

/* ===== telefoon (smal scherm) ===== */
.mobiel-afreken { display: none; }
@supports (padding: env(safe-area-inset-bottom)) {
  .kassa, .betalen, .beheer { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-width: 700px) {
  .alleen-groot { display: none; }
  .kassa { height: auto; min-height: 100%; padding: 10px; gap: 10px; }
  .balk { padding: 8px 10px; }
  .balk .rij { gap: 6px; }
  .status { padding: 6px 10px; font-size: 12px; }
  .kassa-midden { flex-direction: column; }
  .tegels { overflow: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 10px; }
  .tegel { padding: 12px; }
  .tegel .naam { font-size: 15px; }
  .tegel .prijs { font-size: 18px; }
  .bon { width: 100%; max-height: none; }
  .bon-regels { overflow: visible; }
  .bon .afreken-knop { display: none; }
  .mobiel-afreken { display: flex; position: sticky; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 20; min-height: 62px; border-radius: 18px; border: none; background: var(--accent); color: #fff; font-size: 17px; font-weight: 700; align-items: center; justify-content: space-between; padding: 0 20px; box-shadow: 0 12px 30px rgba(20, 24, 32, 0.3); }
  .betalen { padding: 10px; gap: 10px; height: auto; min-height: 100%; }
  .betalen-links { padding: 16px; }
  .betalen-links .glas.sterk { margin-top: 12px !important; }
  .groot-bedrag { font-size: 32px; }
  .methode { min-height: 64px; font-size: 16px; border-radius: 18px; }
  .fooi-rij { padding: 12px !important; gap: 8px; }
  .fooi-rij strong { width: 100% !important; }
  .fooi-rij .knop { flex: 1 1 calc(33% - 8px); padding: 0 8px; min-width: 0; }
  .betalen .toetsen { width: 100% !important; grid-auto-rows: 58px !important; }
  .toets { min-height: 54px; font-size: 22px; }
  .wie { padding: 16px; gap: 20px; }
  .pin-kaart { padding: 22px; }
  .beheer { padding: 10px; gap: 10px; }
  .zijmenu { flex-direction: row; max-width: none; flex: 1 1 100%; overflow-x: auto; padding: 8px; gap: 6px; position: sticky; top: 0; z-index: 10; scrollbar-width: none; }
  .zijmenu::-webkit-scrollbar { display: none; }
  .zijmenu .kop, .zijmenu .menu-sub { display: none; }
  .menu-item { width: auto; white-space: nowrap; flex: none; min-height: 42px; }
  .menu-item[data-a="uitloggen"] { margin-top: 0 !important; }
  .kpi { flex: 1 1 140px; padding: 14px; }
  .kpi .w { font-size: 20px; }
  .rij.wrap.geen-print[role="group"] { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .rij.wrap.geen-print[role="group"] .pil { flex: none; min-height: 42px; padding: 0 16px; }
  .paneel { padding: 14px; }
  h1 { font-size: 22px; }
  .venster { padding: 18px; border-radius: 24px; }
}
