/* Navmigo Beheer · rustig en elegant: serif-koppen, haarlijnen, merkkleur #FB3A0F. Geen externe bronnen. */
:root {
  --merk: #fb3a0f;
  --merk-tekst: #c92d06;       /* leesbaar op wit */
  --bg: #faf9f7;
  --vlak: #ffffff;
  --inkt: #1c1b1a;
  --stil: #6c6761;
  --lijn: #e3dfd9;
  --lijn-sterk: #c9c4bc;
  --goed: #1f6b46;
  --waarschuwing: #8a5a00;
  --fout: #b3261e;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --merk-tekst: #ff6a45;
    --bg: #131211;
    --vlak: #1a1918;
    --inkt: #ece9e4;
    --stil: #a09a92;
    --lijn: #2d2a27;
    --lijn-sterk: #433f3a;
    --goed: #6fcf97;
    --waarschuwing: #e6b450;
    --fout: #ff8a80;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--inkt);
  font: 16px/1.55 var(--sans);
}
a { color: var(--merk-tekst); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--merk); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin: 0; }
h1 { font-size: 2rem; margin-bottom: 0.25rem; }
h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
p { margin: 0 0 1rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
.stil { color: var(--stil); }
.num, .rechts { text-align: right; font-variant-numeric: tabular-nums; }
.klein { font-size: 0.85rem; }

/* Kop en menu */
.kop { border-bottom: 1px solid var(--lijn); background: var(--vlak); }
.kop-binnen { max-width: 76rem; margin: 0 auto; padding: 0.9rem 1.25rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 2rem; }
.merk { text-decoration: none; color: var(--inkt); display: inline-flex; align-items: baseline; gap: 0.6rem; }
.merk-naam { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.merk-naam::after { content: ""; display: inline-block; width: 0.42rem; height: 0.42rem; background: var(--merk); border-radius: 50%; margin-left: 0.2rem; }
.merk-sub { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stil); }
.menu { display: flex; flex-wrap: wrap; gap: 0.15rem 1.25rem; flex: 1; }
.menu a { color: var(--stil); text-decoration: none; padding: 0.15rem 0; border-bottom: 1px solid transparent; font-size: 0.95rem; }
.menu a:hover { color: var(--inkt); }
.menu a[aria-current="page"] { color: var(--inkt); border-bottom-color: var(--merk); }
.gebruiker { display: flex; gap: 0.9rem; align-items: baseline; font-size: 0.85rem; margin-left: auto; }
.gebruiker a { color: var(--stil); }
.inline { display: inline; margin: 0; }
.tekstknop { background: none; border: 0; padding: 0; font: inherit; color: var(--merk-tekst); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.inhoud { max-width: 76rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.voet { max-width: 76rem; margin: 0 auto; padding: 1rem 1.25rem 2rem; border-top: 1px solid var(--lijn); color: var(--stil); font-size: 0.8rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.paginakop { margin-bottom: 1.75rem; }
.paginakop p { color: var(--stil); margin: 0.25rem 0 0; }
.rij { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: baseline; justify-content: space-between; }

/* Meldingen */
.melding { border: 1px solid var(--lijn-sterk); border-left-width: 3px; padding: 0.7rem 1rem; margin-bottom: 1.5rem; background: var(--vlak); }
.melding-goed { border-left-color: var(--goed); }
.melding-fout { border-left-color: var(--fout); }
.melding-waarschuwing { border-left-color: var(--waarschuwing); }

/* Cijfertegels: haarlijnen in plaats van doosjes */
.tegels { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); border-top: 1px solid var(--lijn); border-left: 1px solid var(--lijn); margin-bottom: 2rem; }
.tegel { padding: 1rem 1.1rem; border-right: 1px solid var(--lijn); border-bottom: 1px solid var(--lijn); background: var(--vlak); }
.tegel-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stil); }
.tegel-waarde { font-family: var(--serif); font-size: 2rem; line-height: 1.15; margin-top: 0.2rem; font-variant-numeric: tabular-nums; }
.tegel-klein { font-size: 0.82rem; color: var(--stil); margin-top: 0.15rem; }

/* Kaarten en kolommen */
.kaart { border-top: 1px solid var(--lijn-sterk); padding-top: 1rem; margin-bottom: 2.25rem; }
.kolommen { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 0 3rem; }
.definities { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.5rem; margin: 0 0 1rem; }
.definities dt { color: var(--stil); font-size: 0.9rem; }
.definities dd { margin: 0; overflow-wrap: anywhere; }

/* Tabellen */
.tabelrol { overflow-x: auto; margin-bottom: 1.25rem; }
.tabel { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.tabel th { text-align: left; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stil); padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--lijn-sterk); white-space: nowrap; }
.tabel td { padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--lijn); vertical-align: top; }
.tabel th.rechts, .tabel td.rechts { padding-right: 0; padding-left: 0.75rem; }
.tabel tbody tr:hover { background: color-mix(in srgb, var(--lijn) 35%, transparent); }
.tabel tfoot td { border-top: 1px solid var(--lijn-sterk); font-weight: 600; }
.leeg { color: var(--stil); font-style: italic; }

/* Badges */
.badge { display: inline-block; border: 1px solid var(--lijn-sterk); padding: 0 0.45rem; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stil); border-radius: 2px; white-space: nowrap; }
.badge.goed { color: var(--goed); border-color: var(--goed); }
.badge.merk { color: var(--merk-tekst); border-color: var(--merk); }
.badge.fout { color: var(--fout); border-color: var(--fout); }
.badge.let-op { color: var(--waarschuwing); border-color: var(--waarschuwing); }

/* Formulieren */
form { margin: 0; }
.veld { margin-bottom: 1rem; max-width: 34rem; }
.veld label { display: block; font-size: 0.85rem; color: var(--stil); margin-bottom: 0.25rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--inkt); background: var(--vlak); border: 1px solid var(--lijn-sterk); border-radius: 3px; padding: 0.5rem 0.65rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--merk); outline: none; box-shadow: 0 0 0 1px var(--merk); }
.hulp { font-size: 0.82rem; color: var(--stil); margin: 0.25rem 0 0; }
.knop { display: inline-block; font: inherit; font-size: 0.93rem; cursor: pointer; padding: 0.45rem 1rem; border: 1px solid var(--inkt); background: transparent; color: var(--inkt); border-radius: 3px; text-decoration: none; }
.knop:hover { background: var(--inkt); color: var(--bg); }
.knop-merk { background: var(--merk); border-color: var(--merk); color: #fff; }
.knop-merk:hover { background: #d92f08; border-color: #d92f08; color: #fff; }
.knop-gevaar { border-color: var(--fout); color: var(--fout); }
.knop-gevaar:hover { background: var(--fout); border-color: var(--fout); color: #fff; }
.acties { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 0.5rem; }
.filter { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: end; margin-bottom: 1.5rem; border-top: 1px solid var(--lijn); border-bottom: 1px solid var(--lijn); padding: 0.9rem 0; }
.filter .veld { margin: 0; flex: 1 1 10rem; max-width: 16rem; }
.paginering { display: flex; gap: 1.25rem; align-items: baseline; font-size: 0.9rem; color: var(--stil); margin-bottom: 2rem; }
.vink { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
.vink input { width: auto; }
.codes { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; columns: 2; column-gap: 2rem; padding: 1rem 1.25rem; border: 1px dashed var(--lijn-sterk); list-style: none; margin: 0 0 1rem; max-width: 26rem; }
.geheim { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.15rem; letter-spacing: 0.08em; overflow-wrap: anywhere; padding: 0.75rem 1rem; border: 1px solid var(--lijn-sterk); background: var(--vlak); display: block; margin-bottom: 1rem; }

/* Inloggen */
.inlog { max-width: 26rem; margin: 3rem auto; }
.inlog h1 { margin-bottom: 1.5rem; }

/* Factuur (scherm en afdrukken) */
.factuur-vel { --inkt: #1c1b1a; --stil: #6c6761; --lijn: #e3dfd9; --lijn-sterk: #c9c4bc; --vlak: #fff; --merk-tekst: #c92d06; color-scheme: light; max-width: 46rem; margin: 1.5rem auto; padding: 2.5rem; background: #fff; color: #1c1b1a; border: 1px solid #e3dfd9; }
.factuur-vel .stil { color: #6c6761; }
.factuur-kop { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; border-bottom: 2px solid #fb3a0f; padding-bottom: 1rem; margin-bottom: 1.5rem; }
.factuur-kop h1 { font-size: 1.9rem; }
.factuur-vel .tabel th { color: #6c6761; border-bottom-color: #c9c4bc; }
.factuur-vel .tabel td { border-bottom-color: #e3dfd9; }
.factuur-vel .tabel tbody tr:hover { background: none; }
.factuur-totalen { margin-left: auto; max-width: 20rem; }
.factuur-totalen .tabel td { border: 0; padding-top: 0.2rem; padding-bottom: 0.2rem; }
.factuur-totalen .totaal td { border-top: 1px solid #1c1b1a; font-weight: 700; padding-top: 0.5rem; }
.factuur-voet { margin-top: 2.5rem; border-top: 1px solid #e3dfd9; padding-top: 1rem; font-size: 0.82rem; color: #6c6761; }
.factuur-balk { max-width: 46rem; margin: 1rem auto 0; padding: 0 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 40rem) {
  h1 { font-size: 1.6rem; }
  .definities { grid-template-columns: 1fr; gap: 0; }
  .definities dd { margin-bottom: 0.6rem; }
  .factuur-vel { padding: 1.25rem; }
}
@media print {
  :root { --bg: #fff; --vlak: #fff; --inkt: #000; --stil: #555; --lijn: #ccc; --lijn-sterk: #999; }
  body { background: #fff; color: #000; }
  .kop, .voet, .menu, .factuur-balk, .melding { display: none !important; }
  .inhoud { padding: 0; max-width: none; }
  .factuur-vel { border: 0; margin: 0; padding: 0; max-width: none; }
}

.kaart form + form, .kaart form + .acties { margin-top: 1.75rem; }
