/* Onderhoud Zeeland — gedeelde stijl. Buitengebruik: hoog contrast, grote tikvlakken. */
:root {
  --bg: #eef1f2;
  --surface: #ffffff;
  --surface-2: #f5f7f8;
  --ink: #142028;
  --ink-2: #4c5b66;
  --line: #d4dbe0;
  --accent: #0f5f8c;
  --accent-ink: #ffffff;
  --open: #6b7783;
  --gereed: #1d8a4e;
  --nawerk: #d4860b;
  --overgeslagen: #8248b8;
  --danger: #b4321f;
  --shadow: 0 6px 24px rgba(20, 32, 40, .16);
  --sans: "IBM Plex Sans", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1418; --surface: #172128; --surface-2: #1d2a32; --ink: #e7eef2; --ink-2: #9fb0bb;
    --line: #2c3b45; --accent: #4ba6d9; --accent-ink: #06141c; --open: #8a97a2; --gereed: #3cbf73;
    --nawerk: #f0a531; --overgeslagen: #b38ae6; --danger: #ef6a55; --shadow: 0 6px 24px rgba(0, 0, 0, .5); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--sans); -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); font-weight: 600; text-decoration: none; color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  letter-spacing: .02em; border: 1px solid currentColor; white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.open { color: var(--open); } .pill.gereed { color: var(--gereed); } .pill.nawerk { color: var(--nawerk); }
.pill.overgeslagen { color: var(--overgeslagen); } .pill.wachtrij { color: var(--accent); border-style: dashed; }
.pill.ok { color: var(--gereed); background: color-mix(in srgb, var(--gereed) 12%, transparent); }

.label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }

/* Login */
.login { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: var(--bg); padding: 16px; }
.login form { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.login h1 { margin: 0; font-size: 22px; }
.login p { margin: 0; color: var(--ink-2); }
.field { display: grid; gap: 6px; }
.field input, .field textarea, .field select { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); }
.fout { color: var(--danger); font-weight: 600; min-height: 1.2em; }

/* Segmented keuze */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--r); border: 2px solid var(--line);
  background: var(--surface-2); font-weight: 700; cursor: pointer; text-align: center; }
.seg input:checked + label { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--ink); }
.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 4000;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: var(--r); font-weight: 600; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 5000; background: rgba(0,0,0,.88); display: grid; grid-template-rows: auto 1fr; }
.lightbox header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: #fff; gap: 12px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; margin: auto; display: block; }
.lightbox .img-wrap { min-height: 0; display: grid; padding: 0 16px 16px; }
.lightbox button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
