/* Wijnkelder – ontwerprichting "Register" (gekozen 2026-10-04).
   Licht, redactioneel, data-eerst: Schibsted Grotesk voor tekst, IBM Plex Mono voor cijfers en labels. */

/* Lettertypen zelf gehost (fase 0.3.1): geen verzoeken naar Google. Licentie: SIL OFL 1.1,
   zie static/fonts/OFL-*.txt. Bron: fontsource (Schibsted Grotesk variabel 400–900, Plex Mono 400/500). */
@font-face {
    font-family: 'Schibsted Grotesk'; font-style: normal; font-display: swap; font-weight: 400 900;
    src: url(/static/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format('woff2-variations');
    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: 'Schibsted Grotesk'; font-style: normal; font-display: swap; font-weight: 400 900;
    src: url(/static/fonts/schibsted-grotesk-latin-wght-normal.woff2) format('woff2-variations');
    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;
}
@font-face {
    font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400;
    src: url(/static/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format('woff2');
    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: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400;
    src: url(/static/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');
    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;
}
@font-face {
    font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500;
    src: url(/static/fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format('woff2');
    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: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500;
    src: url(/static/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2');
    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 {
    --grond: #ecebe6;
    --vlak: #f6f5f1;
    --wit: #ffffff;
    --inkt: #141412;
    --grijs: #4f4d47;       /* secundaire tekst, 7:1 op --grond */
    --lijn: #c9c6bd;
    --lijn-zacht: #dcd9d1;
    --groen: #2e4b2f;       /* accent: op dronk, actief */
    --oranje: #b4532a;      /* drink nu / voorbij */
    --oranje-tekst: #8f3418;
    --wacht: #9a978e;
    --rood: #6b1d24;
    --wit-wijn: #c9b45e;
    --mousserend: #7d9aa0;
    --dessert: #a5652b;
    --rose: #c98a8a;
    --port: #4b2a4a;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
    --rand: clamp(16px, 3.5vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Schibsted Grotesk', system-ui, sans-serif;
    background: var(--grond);
    color: var(--inkt);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.5;
}

a { color: var(--groen); }
:focus-visible { outline: 2px solid var(--groen); outline-offset: 2px; }

.mono { font-family: var(--mono); }
.label-mono {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--grijs);
}
.visueel-verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Topbalk --- */
.topbalk {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 40px;
    padding: 14px var(--rand);
    border-bottom: 2px solid var(--inkt);
    background: var(--grond);
}
.woordmerk { font-weight: 900; font-size: 20px; letter-spacing: -0.02em; }
.topbalk nav { display: flex; flex-wrap: wrap; gap: 0 26px; flex: 1 1 auto; }
.topbalk nav button {
    background: none;
    border: none;
    color: var(--grijs);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 0;
    min-height: 44px;
    cursor: pointer;
}
.topbalk nav button:hover { color: var(--inkt); }
.topbalk nav button.active { color: var(--inkt); font-weight: 700; box-shadow: inset 0 -3px 0 var(--groen); }
.topbalk-rechts { display: flex; align-items: center; gap: 12px; }
.header-naam { font-family: var(--mono); font-size: 12px; color: var(--grijs); }

main { padding: 0 0 80px; }
.tab { display: none; }
.tab.active { display: block; }
.pagina { padding: clamp(28px, 3.5vw, 48px) var(--rand) 0; max-width: 1280px; }
.pagina-kop { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--inkt); }
.pagina-kop h1, .pagina-kop h2 { font-weight: 800; font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -0.02em; line-height: 1.1; }

/* --- Knoppen --- */
.btn {
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--inkt);
    border-radius: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.12s, color 0.12s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary { background: var(--inkt); color: var(--grond); }
.btn-primary:hover { background: var(--groen); border-color: var(--groen); }
.btn-secondary { background: transparent; color: var(--inkt); }
.btn-secondary:hover { background: var(--inkt); color: var(--grond); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-gevaar { background: var(--oranje-tekst); border-color: var(--oranje-tekst); color: #fff; }
.btn-gevaar:hover { background: #6e2611; }
.header-btn { min-height: 40px; }

/* --- Formulieren --- */
label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grijs); }
input, select, textarea {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--inkt);
    border-radius: 0;
    background: var(--vlak);
    color: var(--inkt);
    font-family: inherit;
    font-size: 15px;
    width: 100%;
}
textarea { padding: 10px 12px; resize: vertical; min-height: 72px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--groen); outline-offset: -1px; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--groen); }

.form-card { background: var(--vlak); border: 1px solid var(--inkt); padding: clamp(20px, 2.5vw, 32px); }
.form-card h2 { font-weight: 800; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.veld-hint { font-size: 12px; color: var(--grijs); }

.scan-zone {
    border: 1px dashed var(--inkt);
    padding: 28px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 16px;
    background: var(--grond);
}
.scan-zone:hover, .scan-zone.drag-over { background: #e2e0d9; }
.scan-zone p { color: var(--grijs); font-size: 14px; margin-top: 6px; }
.scan-zone-kop { font-weight: 700; font-size: 17px; }
#preview-img { max-width: 180px; max-height: 180px; margin: 0 auto 12px; display: none; }

.scan-status { padding: 12px 14px; margin-bottom: 16px; font-size: 14px; display: none; border-left: 4px solid; }
.scan-status.loading { display: block; background: #e3e6e3; border-color: var(--grijs); }
.scan-status.success { display: block; background: #dfe7dc; border-color: var(--groen); color: #1d311e; }
.scan-status.error   { display: block; background: #f3e1d8; border-color: var(--oranje); color: #5e220f; }

/* --- Voorraad: kop met groot getal --- */
.kop-cijfer { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: end; padding: clamp(32px, 4.5vw, 72px) var(--rand) 36px; border-bottom: 1px solid var(--inkt); }
.kop-links { flex: 1 1 520px; min-width: 0; }
.kop-groot { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.kop-groot .getal { font-weight: 900; font-size: clamp(120px, 16vw, 260px); line-height: 0.8; letter-spacing: -0.06em; }
.kop-groot .sub { font-weight: 700; font-size: clamp(26px, 2.5vw, 42px); line-height: 1.05; letter-spacing: -0.02em; }
.kop-rechts { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.verdeling { display: flex; height: 18px; gap: 2px; }
.verdeling div { min-width: 2px; }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-family: var(--mono); font-size: 12px; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 10px; height: 10px; display: inline-block; }
.kerncijfers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--inkt); }
.kerncijfers > div { padding: 14px 16px 0; border-left: 1px solid var(--lijn); }
.kerncijfers > div:first-child { padding-left: 0; border-left: none; }
.kerncijfers .waarde { font-weight: 800; font-size: 40px; line-height: 1; }
.kerncijfers .waarde.let-op { color: var(--oranje-tekst); }
.kerncijfers .uitleg { font-size: 13px; color: var(--grijs); margin-top: 4px; }

/* --- Voorraad: filters + register --- */
.register-indeling { display: flex; flex-wrap: wrap; align-items: start; }
.filters { flex: 0 1 320px; max-width: 100%; padding: 28px 28px 28px var(--rand); display: flex; flex-direction: column; gap: 26px; border-right: 1px solid var(--lijn); }
.filters fieldset { border: none; display: flex; flex-direction: column; gap: 2px; }
.filters legend { margin-bottom: 8px; }
.filter-optie { display: flex; justify-content: space-between; align-items: center; min-height: 38px; font-family: inherit; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--inkt); cursor: pointer; }
.filter-optie > span:first-child { display: flex; gap: 10px; align-items: center; }
.filter-optie .telling { font-family: var(--mono); font-size: 13px; color: var(--grijs); padding-left: 12px; }
.register { flex: 999 1 640px; min-width: 0; padding: 28px var(--rand) 0; }
.register-kop { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 14px; }
.register-kop h1 { font-weight: 800; font-size: 32px; letter-spacing: -0.02em; }
.tabel-scroll { overflow-x: auto; }
.register .tabel-scroll { border-top: 2px solid var(--inkt); }

.reg-tabel { width: 100%; min-width: 960px; border-collapse: collapse; }
.reg-tabel th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grijs); text-align: left; font-weight: 500; padding: 12px; }
.reg-tabel th:first-child, .reg-tabel td:first-child { padding-left: 0; }
.reg-tabel th:last-child, .reg-tabel td:last-child { padding-right: 0; text-align: right; }
.reg-tabel tbody tr.rij { border-top: 1px solid var(--lijn); cursor: pointer; }
.reg-tabel tbody tr.rij:hover { background: #e4e2dc; }
.reg-tabel tbody tr.rij.open { background: var(--vlak); }
.reg-tabel td { padding: 16px 12px; vertical-align: middle; }
.reg-jaar { font-family: var(--mono); font-size: 15px; width: 64px; }
.reg-naam { font-weight: 700; font-size: 17px; line-height: 1.25; }
.reg-sub { font-size: 13px; color: var(--grijs); }
.reg-type { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: 1px; }
.reg-aantal { font-weight: 800; font-size: 22px; }
.rij-knop { background: none; border: none; font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 0; }

.tijdlijn { position: relative; height: 26px; min-width: 200px; }
.tijdlijn .as { position: absolute; left: 0; right: 0; top: 12px; height: 1px; background: var(--lijn); }
.tijdlijn .balk { position: absolute; top: 7px; height: 12px; }
.tijdlijn .nu { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--inkt); }
.tijdlijn-tekst { font-family: var(--mono); font-size: 12px; color: var(--grijs); margin-top: 2px; }
.tijdlijn-tekst.let-op { color: var(--oranje-tekst); }

.reg-tabel .detail-rij td { padding: 0 0 22px; background: var(--vlak); text-align: left; }
.detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; padding: 6px 0 4px 76px; }
.detail dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grijs); }
.detail dd { font-size: 14px; margin-top: 2px; }
.detail-acties { display: flex; gap: 8px; padding: 14px 0 0 76px; flex-wrap: wrap; }

/* --- Leeg --- */
.empty-state { padding: 48px 0; color: var(--grijs); font-size: 15px; }
.empty-state .icon { display: none; }

/* --- Secties (rapportage, pairing, beheer) --- */
.rap-sectie { border-top: 2px solid var(--inkt); padding: 18px 0 36px; }
.pagina-kop + .rap-sectie { border-top: none; padding-top: 4px; }
.rap-sectie h2 { font-weight: 800; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 16px; }
.rap-tabel { width: 100%; border-collapse: collapse; font-size: 14px; }
.rap-tabel th {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--grijs);
    font-weight: 500;
    text-align: left;
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid var(--inkt);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}
.rap-tabel th:hover { color: var(--inkt); }
.rap-tabel th.sort-asc::after { content: ' ↑'; }
.rap-tabel th.sort-desc::after { content: ' ↓'; }
.rap-tabel td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--lijn); vertical-align: top; }
.rap-tabel tr:hover td { background: #e4e2dc; }
.rap-tabel tfoot td { font-weight: 800; border-top: 1px solid var(--inkt); border-bottom: none; }
.rap-tabel caption { padding: 4px 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--inkt); }
.stat-box { padding: 16px 16px 0; border-left: 1px solid var(--lijn); }
.stat-box:first-child { border-left: none; padding-left: 0; }
.stat-box .getal { font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.stat-box .label { font-size: 13px; color: var(--grijs); margin-top: 6px; }

.alert-lijst { display: flex; flex-direction: column; }
.alert-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0 12px 14px; border-bottom: 1px solid var(--lijn); font-size: 15px; border-left: 4px solid var(--groen); }
.alert-item.urgent { border-left-color: var(--oranje); }
.alert-item.waarschuwing { border-left-color: var(--wit-wijn); }
.alert-item span[style*="color"] { color: var(--grijs) !important; font-family: var(--mono); font-size: 13px; }

/* --- Welke wijn? --- */
.pairing-zoek { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.pairing-zoek input { flex: 1 1 320px; min-height: 52px; font-size: 16px; }
.pairing-zoek .btn { min-height: 52px; }
.pairing-card { display: flex; gap: 20px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--lijn); }
.pairing-locatie { font-weight: 900; font-size: 44px; line-height: 0.9; min-width: 40px; letter-spacing: -0.04em; }
.pairing-body { flex: 1; }
.pairing-naam { font-weight: 700; font-size: 18px; }
.pairing-reden { font-size: 15px; color: var(--grijs); margin-top: 4px; max-width: 70ch; }

/* --- Geschiedenis --- */
.mutatie-list { display: flex; flex-direction: column; }
.mutatie-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--lijn); }
.mutatie-icon { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.mutatie-icon.opgedronken { color: var(--groen); }
.mutatie-icon.gebroken { color: var(--oranje-tekst); }
.mutatie-icon.weggegeven { color: var(--grijs); }
.mutatie-naam { font-weight: 700; font-size: 16px; }
.mutatie-meta { font-size: 13px; color: var(--grijs); margin-top: 2px; }
.mutatie-cijfer { font-family: var(--mono); font-size: 15px; font-weight: 500; white-space: nowrap; }

/* --- Vensters (uitboeken, bewerken) --- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(20, 20, 18, 0.55); z-index: 100; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--grond); border: 2px solid var(--inkt); padding: clamp(20px, 3vw, 32px); max-width: 480px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal h2 { font-weight: 800; font-size: 24px; letter-spacing: -0.01em; margin-bottom: 16px; }
.wijn-info-box { border-top: 1px solid var(--inkt); border-bottom: 1px solid var(--inkt); padding: 12px 0; margin-bottom: 16px; font-size: 15px; line-height: 1.5; }
.actie-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 16px; }
.actie-btn { min-height: 48px; border: 1px solid var(--inkt); background: transparent; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; }
.actie-btn:hover { background: #e4e2dc; }
.actie-btn.selected { background: var(--inkt); color: var(--grond); }
.actie-btn .icon { display: none; }
.extra-velden { display: none; }
.extra-velden.show { display: block; }
.ster-rating { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.ster { font-family: var(--mono); font-size: 14px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--lijn); cursor: pointer; color: transparent; position: relative; user-select: none; }
.ster::after { content: attr(data-v); position: absolute; color: var(--inkt); }
.ster.actief { background: var(--groen); border-color: var(--groen); }
.ster.actief::after { color: #fff; }

/* --- Kelderindeling --- */
.indeling-tabel { min-width: 900px; }
.indeling-tabel td { vertical-align: middle; }
.indeling-tabel input:not([type="checkbox"]) { min-height: 38px; }
.indeling-tabel tr:hover td { background: transparent; }
.bereik { display: flex; align-items: center; gap: 6px; }
.bereik input { width: 96px; }
.typen-keuze { display: flex; flex-wrap: wrap; gap: 0 14px; }
.typen-keuze .filter-optie { min-height: 30px; font-size: 14px; }
.verplaats-paneel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0 4px; }
.verplaats-paneel select { width: auto; min-width: 200px; }
.indeling-nieuw { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 18px; max-width: 560px; }
.indeling-nieuw .form-group { flex: 1 1 280px; }
.btn:disabled { opacity: 0.35; cursor: default; }

/* --- Account & beheer --- */
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.account-form { display: flex; flex-direction: column; gap: 14px; }
.gevaar { border-color: var(--oranje-tekst); }
.gevaar h2 { color: var(--oranje-tekst); }
.code-tonen { font-family: var(--mono); font-size: 28px; letter-spacing: 0.12em; border: 2px solid var(--inkt); padding: 10px 18px; display: inline-block; margin: 6px 0 10px; background: var(--vlak); }
.status-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px; border: 1px solid var(--grijs); white-space: nowrap; }
.status-open, .status-actief { border-color: var(--groen); color: var(--groen); }
.status-gebruikt { border-color: var(--grijs); color: var(--grijs); }
.status-geblokkeerd, .status-ingetrokken, .status-verlopen, .status-onbevestigd { border-color: var(--oranje-tekst); color: var(--oranje-tekst); }

/* --- Inloggen --- */
#login-overlay { display: none; position: fixed; inset: 0; background: var(--grond); z-index: 200; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
#login-overlay.open { display: flex; }
.login-box { width: 380px; max-width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; border-top: 2px solid var(--inkt); padding: 20px 0; }
.login-box .woordmerk { font-size: 28px; display: block; margin-bottom: 4px; }
.login-box p { color: var(--grijs); font-size: 15px; margin-bottom: 18px; }
.login-box .form-group { margin-bottom: 14px; }
.login-box .btn { width: 100%; }
.auth-paneel { display: none; }
.auth-paneel.actief { display: block; }
.auth-links { margin-top: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.auth-links a { color: var(--groen); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.login-fout, .login-ok { padding: 10px 12px; font-size: 14px; margin-bottom: 14px; display: none; border-left: 4px solid; }
.login-fout { background: #f3e1d8; border-color: var(--oranje); color: #5e220f; }
.login-ok { background: #dfe7dc; border-color: var(--groen); color: #1d311e; }

@media (max-width: 640px) {
    /* register als blokken in plaats van een brede tabel */
    .reg-tabel { min-width: 0; }
    .reg-tabel thead { display: none; }
    .reg-tabel tbody tr.rij {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) auto;
        grid-template-areas: "jaar wijn aantal" ". herkomst klasse" ". venster venster";
        column-gap: 10px;
        row-gap: 6px;
        padding: 14px 0;
    }
    .reg-tabel tr.rij td { padding: 0; }
    .reg-tabel tr.rij td:nth-child(1) { grid-area: jaar; padding-top: 2px; }
    .reg-tabel tr.rij td:nth-child(2) { grid-area: wijn; }
    .reg-tabel tr.rij td:nth-child(3) { grid-area: herkomst; font-size: 14px; }
    .reg-tabel tr.rij td:nth-child(4) { grid-area: venster; }
    .reg-tabel tr.rij td:nth-child(5) { grid-area: klasse; text-align: right; font-size: 14px; }
    .reg-tabel tr.rij td:nth-child(6) { grid-area: aantal; }
    .tijdlijn { min-width: 0; }
    .reg-tabel .detail-rij, .reg-tabel .detail-rij td { display: block; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .kerncijfers .waarde { font-size: 30px; }
    .filters { border-right: none; border-bottom: 1px solid var(--lijn); }
    .detail, .detail-acties { padding-left: 0; }
    .mutatie-item { grid-template-columns: minmax(0, 1fr) auto; }
    .mutatie-icon { grid-column: 1 / -1; }
}
