/* Stijl van de klantpyramide.
   Bewust dicht bij het bestaande dashboard gehouden: papierkleur, inkt,
   Archivo Narrow voor koppen en IBM Plex Mono voor getallen. Wie het oude
   dashboard kent, herkent dit meteen. */

:root {
  --inkt: #16232E;
  --papier: #E5E1D8;
  --krijt: #FAF9F6;
  --lijn: #B9B3A6;
  --markering: #A63446;
  --grijs: #5c6b78;
  --actief: #1B4965;
  --slapend: #7B9BB3;
  --inactief: #BFBBB1;
  --groei: #2E7D5B;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.blad { max-width: 1180px; margin: 0 auto; padding: 36px 28px 72px; }

a { color: var(--actief); }

header.hoofd {
  border-bottom: 2px solid var(--inkt);
  padding-bottom: 20px;
  margin-bottom: 8px;
}

.ooglid {
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  font-size: 12px; color: var(--grijs);
}

h1 {
  font-family: 'Archivo Narrow', sans-serif; font-weight: 700;
  font-size: clamp(28px, 5vw, 44px); margin: 6px 0 4px; letter-spacing: -.01em;
}

h2 {
  font-family: 'Archivo Narrow', sans-serif; font-weight: 700;
  font-size: 22px; margin: 34px 0 6px;
}

h3 {
  font-family: 'Archivo Narrow', sans-serif; font-weight: 600;
  font-size: 16px; margin: 22px 0 4px;
}

.periode, .toelichting { font-size: 14px; color: var(--grijs); margin: 2px 0 0; }

.balk { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }

/* Tabbladen */
.tabs { display: flex; gap: 2px; margin: 6px 0 26px; flex-wrap: wrap;
        border-bottom: 1px solid var(--lijn); }
.tabs a {
  font-family: 'Archivo Narrow', sans-serif; font-weight: 600; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border-bottom: 3px solid transparent; padding: 11px 16px; color: var(--grijs);
}
.tabs a:hover { color: var(--inkt); }
.tabs a.actief { color: var(--inkt); border-bottom-color: var(--inkt); }

/* Kengetallen bovenaan */
.kpis { display: flex; flex-wrap: wrap; gap: 34px; margin: 22px 0 8px; }
.kpi { display: flex; flex-direction: column; }
.kpi-label {
  font-family: 'Archivo Narrow', sans-serif; letter-spacing: .12em;
  text-transform: uppercase; font-size: 11px; color: var(--grijs);
}
.kpi-waarde {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 22px; font-weight: 500; margin-top: 3px;
}

/* De piramide zelf */
.piramide { margin: 24px 0 10px; }

.laag { margin-bottom: 10px; }
.laag-kop {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; margin-bottom: 5px;
}
.laag-naam { font-family: 'Archivo Narrow', sans-serif; font-weight: 700;
             text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.laag-sub { color: var(--grijs); font-size: 12.5px; }

.laag-blokken { display: flex; gap: 4px; }

.vak {
  color: #FAF9F6; text-decoration: none; padding: 14px 16px;
  border-radius: 2px; min-width: 0; display: block;
  transition: transform .08s ease, box-shadow .08s ease;
}
.vak:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(22,35,46,.22); }
.vak.a { background: var(--actief); }
.vak.s { background: var(--slapend); }
.vak.i { background: var(--inactief); color: var(--inkt); }

.vak-naam {
  font-family: 'Archivo Narrow', sans-serif; text-transform: uppercase;
  letter-spacing: .1em; font-size: 11px; opacity: .9;
}
.vak-getal {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 25px; font-weight: 500; display: block; margin: 3px 0 1px;
  white-space: nowrap;
}
.vak-sub { font-size: 12px; opacity: .92; }

.legenda { display: flex; gap: 22px; flex-wrap: wrap; font-size: 12.5px;
           color: var(--grijs); margin-top: 14px; }
.legenda span::before {
  content: ''; display: inline-block; width: 11px; height: 11px;
  margin-right: 6px; border-radius: 2px; vertical-align: baseline;
}
.legenda .l-a::before { background: var(--actief); }
.legenda .l-s::before { background: var(--slapend); }
.legenda .l-i::before { background: var(--inactief); }

/* Tabellen */
table { border-collapse: collapse; width: 100%; margin-top: 12px; font-size: 14px; }
caption { text-align: left; font-size: 13px; color: var(--grijs); padding-bottom: 6px; }
th, td { padding: 7px 10px; border-bottom: 1px solid var(--lijn); text-align: right; }
th {
  font-family: 'Archivo Narrow', sans-serif; text-transform: uppercase;
  letter-spacing: .07em; font-size: 11.5px; color: var(--grijs);
  border-bottom: 1px solid var(--inkt); white-space: nowrap;
}
th.tekst, td.tekst { text-align: left; }
td.getal { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
tbody tr:hover { background: rgba(250,249,246,.7); }

.tabelwikkel { overflow-x: auto; }

/* Formulieren */
form.kaart, .kaart {
  background: var(--krijt); border: 1px solid var(--lijn);
  border-radius: 3px; padding: 20px 22px; margin-top: 16px;
}

label { display: block; font-size: 13px; margin-bottom: 4px; }
label .hint { color: var(--grijs); font-size: 12px; display: block; }

input[type=text], input[type=number], input[type=date], input[type=email],
input[type=password], select, textarea {
  font: inherit; padding: 7px 9px; border: 1px solid var(--lijn);
  background: #fff; border-radius: 2px; width: 100%; max-width: 340px;
  color: var(--inkt);
}
textarea { max-width: 100%; font-family: 'IBM Plex Mono', ui-monospace, monospace;
           font-size: 13px; }

.veldrij { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; }
.veld { flex: 1 1 200px; }

button, .knop {
  font-family: 'Archivo Narrow', sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em; font-size: 13px;
  background: var(--inkt); color: var(--krijt); border: none;
  padding: 10px 20px; border-radius: 2px; cursor: pointer; text-decoration: none;
  display: inline-block;
}
button:hover, .knop:hover { background: #24384a; }
button.tweede { background: none; color: var(--inkt); border: 1px solid var(--inkt); }

.melding {
  border-left: 4px solid var(--groei); background: var(--krijt);
  padding: 10px 14px; margin: 14px 0; font-size: 14px;
}
.melding.fout { border-left-color: var(--markering); }

.index-staaf { background: var(--lijn); height: 8px; border-radius: 2px;
               position: relative; min-width: 60px; }
.index-staaf i { display: block; height: 8px; background: var(--actief);
                 border-radius: 2px; }

/* Inlogscherm */
.inlog { max-width: 380px; margin: 12vh auto; padding: 0 24px; }
.inlog h1 { font-size: 30px; }
.inlog input { max-width: 100%; }
.inlog button { width: 100%; margin-top: 8px; }

footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--lijn);
         font-size: 12.5px; color: var(--grijs);
         display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .laag-blokken { flex-direction: column; }
  .vak-getal { font-size: 21px; }
}
