:root {
  --navy: #0f2a4a;
  --navy-2: #16365e;
  --teal: #2dd4bf;
  --ink: #e8eef6;
  --muted: #9fb3cc;
  --card: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .14);
  --error: #ff8a80;
  /* Brand accents — overridden at runtime from tenant config (white-label). */
  --brand-primary: var(--teal);
  --brand-secondary: var(--navy-2);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  /* Opaque navy base under the gradient: guarantees the dark theme even if the
     gradient fails to paint (no white flash with unreadable light text), and
     lets contrast checkers resolve a real background instead of assuming white. */
  background-color: var(--navy);
  background-image:
    radial-gradient(1200px 600px at 50% -10%, var(--brand-secondary), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #0a1f38 100%);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ── Persistent beta banner (owner directive 2026-06-10) ──────────────
   Thin, fixed, non-dismissible bar pinned above every route. Not env-gated.
   `body` carries a matching padding-top so the bar never overlaps the topbar
   / nav. Amber-on-navy clears WCAG-AA contrast (~10:1) for small text. */
.beta-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbbf24;
  color: #0f2a4a;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .25);
  user-select: none;
}
.beta-banner__text { line-height: 1; padding-left: .14em; /* offset trailing letter-spacing */ }
body { padding-top: 24px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo svg { width: 38px; height: 38px; }
.logo img { height: 38px; width: auto; border-radius: 8px; }
.logo .word { font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.logo .word b { color: var(--brand-primary); font-weight: 700; }
.link-btn {
  background: none; border: none; color: var(--muted);
  font-size: 14px; cursor: pointer; text-decoration: underline;
}

main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 22px 28px;
}

.view { animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.badge {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-primary);
  border: 1px solid var(--border); background: var(--card);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 18px;
}
h1 { font-size: clamp(26px, 7vw, 40px); line-height: 1.15; margin: 0 0 14px; }
h2 { font-size: clamp(22px, 6vw, 30px); margin: 4px 0 10px; }
p.lead { font-size: clamp(15px, 4vw, 18px); line-height: 1.6; color: var(--muted); margin: 0 0 22px; max-width: 50ch; }
p.lead.small { font-size: 15px; }

.features { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; max-width: 420px; }
.features li {
  display: flex; align-items: center; gap: 10px; font-size: 15px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
}
.tick { color: var(--brand-primary); font-weight: 700; }

.cta {
  display: inline-block; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  color: var(--navy); background: var(--brand-primary); border: none;
  border-radius: 12px; padding: 14px 22px; transition: transform .12s ease, opacity .12s ease;
}
.cta:active { transform: scale(.98); }
.cta:disabled { opacity: .55; cursor: progress; }
.cta.ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; display: grid; gap: 14px;
}
fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: grid; gap: 12px; margin: 0; }
legend { padding: 0 8px; font-size: 13px; font-weight: 600; color: var(--brand-primary); text-transform: uppercase; letter-spacing: .08em; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
label.checkbox { grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; color: var(--ink); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, textarea {
  font: inherit; color: var(--ink); background: rgba(0,0,0,.18);
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--brand-primary); outline-offset: 1px; border-color: transparent; }
input[type=checkbox] { width: auto; accent-color: var(--brand-primary); }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .cta { flex: 1; text-align: center; min-width: 140px; }

.error { color: var(--error); font-size: 14px; margin: 0; }

.success-mark {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-size: 34px; color: var(--navy); background: var(--brand-primary); margin: 8px 0 14px;
}
.summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 22px; font-size: 14px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }

/* ── Mijn meldingen (list + detail) ─────────────────────────────────── */
.claims { display: grid; gap: 12px; margin: 0 0 22px; }
.claim-card {
  width: 100%; text-align: left; cursor: pointer; color: var(--ink);
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; display: grid; gap: 6px; transition: border-color .12s ease, transform .12s ease;
}
.claim-card:hover { border-color: var(--brand-primary); }
.claim-card:active { transform: scale(.99); }
.claim-card .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.claim-card .loc { font-weight: 600; font-size: 15px; }
.claim-card .meta { color: var(--muted); font-size: 13px; }

.pill {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; border-radius: 999px; padding: 4px 10px; white-space: nowrap;
  border: 1px solid var(--border);
}
.pill.draft        { color: #cbd5e1; background: rgba(148,163,184,.16); }
.pill.submitted    { color: #93c5fd; background: rgba(59,130,246,.16); }
.pill.under_review { color: #fcd34d; background: rgba(245,200,66,.16); }
.pill.approved     { color: #6ee7b7; background: rgba(45,212,191,.16); }
.pill.rejected     { color: var(--error); background: rgba(255,138,128,.16); }

.empty { color: var(--muted); font-size: 15px; text-align: center; padding: 18px 0 24px; }
.link-btn.back { display: inline-block; margin: 0 0 12px; padding: 0; }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-head h2 { margin: 0; }

/* ── Foto's (signed-photo attachment) ───────────────────────────────── */
.photos { margin: 0 0 22px; }
.photos h3 { font-size: 15px; margin: 0 0 6px; }
.photo-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.photo-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.photo-main { display: grid; gap: 3px; min-width: 0; }
.photo-ref { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-when { font-size: 12.5px; color: var(--muted); }
.photo-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 10px; white-space: nowrap; border: 1px solid var(--border);
}
.photo-tag.ok { color: #6ee7b7; background: rgba(45,212,191,.16); }
.photo-tag.warn { color: #fcd34d; background: rgba(245,200,66,.16); }
.photo-upload { display: grid; gap: 8px; }
.file-pick { cursor: pointer; text-align: center; }
.hint { color: var(--muted); font-size: 12.5px; margin: 0; }
.uploading { color: var(--brand-primary); font-size: 13px; margin: 0; }

/* ── Behandelaar: statusfilters (chips) ─────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip {
  cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--muted); background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px; transition: color .12s ease, border-color .12s ease;
}
.chip:hover { border-color: var(--brand-primary); }
.chip.active { color: var(--navy); background: var(--brand-primary); border-color: transparent; }

/* ── Statustijdlijn (claim detail) ──────────────────────────────────── */
.timeline { list-style: none; margin: 0 0 22px; padding: 4px 0 0; }
.tl-step { position: relative; display: flex; gap: 14px; padding: 0 0 18px 0; }
.tl-step:last-child { padding-bottom: 0; }
.tl-dot {
  position: relative; flex: 0 0 auto; width: 14px; height: 14px; margin-top: 2px;
  border-radius: 50%; background: var(--card); border: 2px solid var(--border); z-index: 1;
}
/* connector line between dots */
.tl-step:not(:last-child) .tl-dot::after {
  content: ""; position: absolute; left: 50%; top: 14px; transform: translateX(-50%);
  width: 2px; height: calc(100% + 18px); background: var(--border);
}
.tl-step.done .tl-dot { background: var(--brand-primary); border-color: var(--brand-primary); }
.tl-step.done .tl-dot::after { background: var(--brand-primary); }
.tl-step.current .tl-dot { background: var(--brand-primary); border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(45,212,191,.18); }
.tl-step.rejected.current .tl-dot { background: var(--error); border-color: var(--error); box-shadow: 0 0 0 4px rgba(255,138,128,.18); }
.tl-body { display: flex; flex-direction: column; gap: 1px; }
.tl-label { font-size: 14px; font-weight: 600; }
.tl-date { font-size: 12.5px; color: var(--muted); }
.tl-step.pending .tl-label { color: var(--muted); font-weight: 500; }

/* ── Behandelaarspaneel (fraudesignalen + statusovergangen) ─────────── */
.reviewer-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 18px; margin: 0 0 22px;
}
.reviewer-panel h3 { font-size: 15px; margin: 0 0 12px; color: var(--brand-primary); }
.reviewer-panel .summary { margin-bottom: 14px; }
.summary dd.warn { color: #fcd34d; }
.risk-tag {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; border-radius: 999px; padding: 4px 10px;
  border: 1px solid var(--border); color: #fcd34d; background: rgba(245,200,66,.16);
}

footer { text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.6; padding: 18px 22px 26px; }
footer a { color: var(--muted); }
