:root {
  color-scheme: light;
  --bg: #f5f5ee;
  --panel: #fffefa;
  --ink: #232720;
  --muted: #566052;
  --line: #dedfd3;
  --olive: #293d2b;
  --accent: #ddeaab;
  --radius: 16px;
  font: 16px/1.5 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-underline-offset: .21em; }
a:hover { color: #355a35; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible + label {
  outline: 3px solid #6c8543; outline-offset: 3px;
}
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site { background: #232f23; color: #f6f7ed; }
.bar, .split, .heading, .toolbar, nav, .actions { display: flex; align-items: center; gap: .75rem; }
.bar, .split, .heading, .toolbar { justify-content: space-between; }
.bar { min-height: 73px; gap: 1.5rem; }
.brand { display: inline-flex; gap: .48rem; align-items: baseline; font-weight: 780; text-decoration: none; white-space: nowrap; font-size: 1.13rem; }
.brand span { font-size: .79rem; color: #cbd6bb; font-weight: 560; }
.site a:hover { color: #e4efae; }
nav { gap: .6rem; }
nav a, nav button { color: inherit; text-decoration: none; padding: .5rem .76rem; border-radius: 8px; font-size: .88rem; }
nav a[aria-current] { background: #495746; }
main { padding-block: 39px 72px; }
.heading { margin: 0 0 24px; align-items: end; }
.eyebrow { color: #526047; font-size: .81rem; font-weight: 650; margin: 0 0 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0; font-weight: 720; }
h2 { font-size: 1.18rem; margin: 0 0 1.14rem; }
h3 { font-size: .96rem; margin: 1.1rem 0 .4rem; }
.split h2 { margin: 0; }
.split { margin-bottom: 1rem; }
.panel { padding: clamp(17px, 3vw, 26px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.stats strong { display: block; font-size: clamp(1.35rem, 3vw, 2rem); margin: .14rem 0 .1rem; font-variant-numeric: tabular-nums; }
.stats > div:first-child { background: #eff3df; border-color: #d8dfbe; }
small, .muted, .stats span { color: var(--muted); }
small { display: block; font-size: .8rem; }
.button, button { display: inline-flex; justify-content: center; align-items: center; border: 1px solid transparent; border-radius: 8px;
  padding: .58rem .9rem; font: inherit; font-size: .86rem; font-weight: 650; text-decoration: none; cursor: pointer; min-height: 39px; }
.primary { background: var(--olive); color: white; }
.primary:hover { background: #3d563d; color: white; }
.secondary { background: #f4f4eb; border-color: #dadccd; color: var(--ink); }
.secondary:hover { background: #e8ebdc; }
.plain { background: transparent; padding: .5rem; }
button:disabled { opacity: .58; cursor: wait; }
.actions { flex-wrap: wrap; }
.table-panel { padding: 0; overflow: hidden; }
.toolbar { padding: 14px 18px; flex-wrap: wrap; }
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; }
.tabs a { padding: .42rem .65rem; border-radius: 7px; text-decoration: none; color: var(--muted); font-size: .83rem; white-space: nowrap; }
.tabs a[aria-current] { background: #e9eedb; color: var(--ink); font-weight: 700; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .91rem; }
th, td { padding: .77rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table-panel th:first-child, .table-panel td:first-child { padding-left: 19px; }
.table-panel th:last-child, .table-panel td:last-child { padding-right: 19px; }
th { background: #eeefe6; font-size: .78rem; font-weight: 700; color: #4a5447; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty { padding-block: 2rem; color: var(--muted); }
.key { font-weight: 720; }
.status { display: inline-block; padding: .21rem .56rem; border-radius: 9px; font-size: .75rem; font-weight: 650; white-space: nowrap; background: #eeeee7; }
.status.open { background: #e7edd8; color: #39462b; }
.status.betaald { background: #dfeee3; color: #264b37; }
.status.vervallen, .alert { background: #f8e7dd; color: #6a3525; }
.layout { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(248px, 325px); gap: 18px; }
.stack { display: grid; gap: 15px; }
.sticky { position: sticky; top: 16px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.fields .wide { grid-column: 1 / -1; }
label { display: grid; gap: .3rem; font-size: .86rem; font-weight: 590; }
input, select, textarea { min-width: 0; width: 100%; min-height: 39px; border: 1px solid #cdd1c2;
  background: #fffefa; color: var(--ink); border-radius: 8px; padding: .52rem .64rem; font: inherit; }
textarea { resize: vertical; font-weight: 400; }
.toolbar input { max-width: 230px; }
label + button, .login form button { margin-top: .9rem; }
.clean { list-style: none; padding: 0; margin: .35rem 0 0; }
.clean li { border-top: 1px solid var(--line); padding-block: .6rem; overflow-wrap: anywhere; }
.clean li:first-child { border-top: 0; }
.facts { margin: .5rem 0 1rem; }
.facts > div { display: flex; justify-content: space-between; gap: .5rem; margin: .4rem 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.facts .total { border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .7rem; font-weight: 760; }
.facts .total dt { color: var(--ink); }
.drop { display: grid; justify-items: center; text-align: center; gap: .45rem; border: 1px dashed #9ca68d; background: #f6f7ee;
  border-radius: 11px; padding: 1rem; }
.drop.drag { background: #e5efd0; border-color: #526e3e; }
.drop span, .hint { font-size: .8rem; }
.drop label { margin-top: .25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.bon, .extra { border: 1px solid var(--line); border-radius: 10px; padding: .75rem; min-width: 0; }
.bon .split, .extra .split { margin-bottom: .6rem; flex-wrap: wrap; }
.bon .split strong { overflow-wrap: anywhere; }
.bon .fields, .extra .fields { gap: .5rem; }
.alert { border-radius: 8px; padding: .55rem .68rem; font-size: .86rem; }
.preline { white-space: pre-wrap; overflow-wrap: anywhere; }
details { padding-block: .45rem; border-top: 1px solid var(--line); }
summary { cursor: pointer; }
.login { max-width: 460px; margin: 6vh auto; }
.login h1 { margin-bottom: 1.2rem; }
[hidden] { display: none !important; }
@media (max-width: 720px) {
  .shell { width: calc(100% - 28px); }
  .layout { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .bar, nav { gap: .22rem; }
  nav a, nav button { padding: .4rem; }
}
@media (max-width: 475px) {
  .brand { display: grid; gap: 0; align-content: center; line-height: 1.18; }
  .heading { align-items: start; flex-direction: column; }
  .stats { gap: 5px; }
  .stats .panel { padding: 9px; }
  .stats strong { font-size: 1.1rem; }
  .stats span, .stats small { font-size: .72rem; }
}
