@font-face { font-family: Onest; src: url(/fonts/onest-latin-ext-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Onest; src: url(/fonts/onest-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #eceef2; --surface: #fff; --ink: #1d1a2a; --muted: #5d5a6e; --line: #d9dbe3;
  --aubergine: #47224a; --indigo: #3441b8; --indigo-ink: #fff;
  --ok: #17694d; --ok-bg: #dff1e9; --warn: #8a4b00; --warn-bg: #fbecd2; --bad: #a3231b; --bad-bg: #f9dedb; --info-bg: #e3e6fa;
  --radius: 10px; --focus: #3441b8;
  font-family: Onest, system-ui, sans-serif; color: var(--ink); background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14121c; --surface: #1d1a2a; --ink: #eceaf4; --muted: #a9a6bb; --line: #373350; --aubergine: #d9b3dd; --indigo: #8f9bff; --indigo-ink: #12102a;
    --ok: #7fd9b2; --ok-bg: #12382b; --warn: #f0b765; --warn-bg: #3b2a0c; --bad: #ff9d94; --bad-bg: #411a17; --info-bg: #23284f; --focus: #8f9bff; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); line-height: 1.5; font-size: 16px; padding-bottom: env(safe-area-inset-bottom); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 700; } h2 { font-size: 1.2rem; font-weight: 650; } h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 .75rem; max-width: 65ch; }
a { color: var(--indigo); }
.muted { color: var(--muted); } .small { font-size: .875rem; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--surface); padding: .5rem; z-index: 10; }

header.top { background: var(--aubergine); color: #fff; }
@media (prefers-color-scheme: dark) { header.top { background: #2a1630; } }
header.top .in { max-width: 1100px; margin: 0 auto; padding: .75rem 16px; display: flex; align-items: center; gap: 1rem; justify-content: space-between; }
.brand { font-weight: 700; letter-spacing: -.01em; font-size: 1.05rem; }
.brand small { font-weight: 400; opacity: .75; margin-left: .5rem; }
header.top button.link { color: #fff; }
nav.tabs { max-width: 1100px; margin: 0 auto; padding: 0 16px; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
nav.tabs a { color: #fff; opacity: .78; text-decoration: none; padding: .6rem .8rem; border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 500; }
nav.tabs a[aria-current=page] { opacity: 1; border-bottom-color: #fff; }
main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 80px; }
main.narrow { max-width: 720px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card.flat { background: transparent; border-style: dashed; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; } .row.between { justify-content: space-between; } .grow { flex: 1 1 200px; }
.stack > * + * { margin-top: 12px; }
.grid3 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .v { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: .875rem; }
.stat.neg .v { color: var(--bad); }

label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #8d8aa0; border-radius: 8px; padding: .65rem .75rem; min-height: 44px; }
textarea { min-height: 110px; resize: vertical; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 3px; }
.field { margin-bottom: 14px; }
.field.two { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
button, .btn { font: inherit; font-weight: 600; min-height: 44px; padding: .55rem 1.1rem; border-radius: 8px; border: 1px solid transparent; cursor: pointer; background: var(--indigo); color: var(--indigo-ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button.secondary, .btn.secondary { background: transparent; color: var(--indigo); border-color: var(--indigo); }
button.danger { background: var(--bad); color: #fff; } @media (prefers-color-scheme: dark) { button.danger { color: #1a0c0a; } }
button.link { background: none; border: 0; color: var(--indigo); padding: .25rem .5rem; min-height: 36px; text-decoration: underline; font-weight: 500; }
button.sm, .btn.sm { min-height: 36px; padding: .25rem .8rem; font-size: .9rem; }
button:disabled { opacity: .55; cursor: not-allowed; }

.chip { display: inline-block; padding: .1rem .6rem; border-radius: 99px; font-size: .8rem; font-weight: 650; background: var(--info-bg); color: var(--indigo); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.warn { background: var(--warn-bg); color: var(--warn); } .chip.bad { background: var(--bad-bg); color: var(--bad); }
.notice { border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; background: var(--info-bg); }
.notice.warn { background: var(--warn-bg); color: var(--warn); } .notice.bad { background: var(--bad-bg); color: var(--bad); } .notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice ul { margin: .25rem 0 0; padding-left: 1.2rem; }

/* Het bewijs: een bon met geperforeerde rand — het ene opvallende element */
.receipt { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 22px 20px 20px; margin: 18px 0; box-shadow: 0 1px 0 var(--line); }
.receipt::before, .receipt::after { content: ''; position: absolute; left: 0; right: 0; height: 10px; background: radial-gradient(circle at 6px 0, var(--bg) 5px, transparent 5.5px) 0 0 / 14px 10px repeat-x; }
.receipt::before { top: -1px; } .receipt::after { bottom: -1px; transform: scaleY(-1); }
.receipt .code { font-size: 1.5rem; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.receipt dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 12px 0 0; }
.receipt dt { color: var(--muted); } .receipt dd { margin: 0; overflow-wrap: anywhere; }
.hash { font-family: ui-monospace, monospace; font-size: .8rem; }

.list { list-style: none; padding: 0; margin: 0; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.item .title { font-weight: 650; }
table { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .92rem; }
th { background: transparent; font-weight: 650; color: var(--muted); font-size: .85rem; }
tfoot td { font-weight: 700; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
.neg { color: var(--bad); }

dialog { border: 0; border-radius: 12px; padding: 20px; width: min(520px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgba(10, 8, 20, .55); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: .7rem 1rem; border-radius: 8px; z-index: 20; max-width: calc(100vw - 32px); }
.login { max-width: 440px; margin: 8vh auto 0; padding: 0 16px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.seg button { background: transparent; color: var(--ink); border-radius: 0; font-weight: 500; }
.seg button[aria-pressed=true] { background: var(--indigo); color: var(--indigo-ink); }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.ledger-line { display: flex; justify-content: space-between; gap: 12px; padding: .35rem 0; border-bottom: 1px dotted var(--line); }
@media (max-width: 640px) { h1 { font-size: 1.35rem; } th, td { padding: .45rem .5rem; } .receipt dl { grid-template-columns: 1fr; } .receipt dt { margin-top: 6px; } }
@media (prefers-reduced-motion: no-preference) { .receipt.fresh { animation: stamp .45s cubic-bezier(.2, 1.4, .4, 1); } @keyframes stamp { from { transform: scale(1.06) rotate(-1.5deg); opacity: 0; } to { transform: none; opacity: 1; } } }

.ml6 { margin-left: 6px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt20 { margin-top: 20px; } .my6 { margin: 6px 0; } .wauto { width: auto; } .w110 { width: 110px; }
