/* Bestelplatform Cremerie Alijs — huisstijl van alijs.be (kleuren uit de brand guide, Montserrat) */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/montserrat-latin.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: "Montserrat"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/montserrat-latin-ext.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;
}

:root {
  --creme: #f5e6d7; --creme-2: #f9f5eb; --karamel: #a6572d; --choco: #632d16;
  --koraal: #cc6358; --rood: #a82b1d; --salie: #92a152; --salie-licht: #b8c470; --salie-donker: #5c6b4a;
  --navy: #1d1f52; --goud: #f4c784; --lijn: #e3d3c2;
  --font: "Montserrat", -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--creme-2); color: var(--choco); -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.app { min-height: 100%; display: flex; flex-direction: column; }

/* Kopbalk: groen = toog, bruin = beheer */
.kop { background: var(--salie); color: var(--creme); padding: 12px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; }
.kop.beheer { background: var(--choco); }
.merk, .login-merk { font-weight: 700; font-size: 22px; letter-spacing: .5px; line-height: 1.1; }
.merk small, .login-merk small { display: block; font-weight: 500; font-size: 11px; opacity: .9; letter-spacing: 1px; text-transform: uppercase; }
.login-merk { color: var(--salie-donker); text-align: center; margin-bottom: 10px; }
.menu { display: flex; gap: 6px; margin-left: 10px; }
.menuknop { background: transparent; border: 0; color: var(--creme); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.menuknop.aan { background: #ffffff2e; }
.rol { margin-left: auto; font-size: 14px; background: #ffffff2e; padding: 6px 12px; border-radius: 99px; }
.uit { background: none; border: 0; color: var(--creme); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 8px 4px; }
.balk-offline { background: var(--goud); color: var(--choco); padding: 8px 20px; font-size: 14px; font-weight: 600; }

.inhoud { flex: 1; padding: 20px; width: 100%; max-width: 1200px; margin: 0 auto; }
h1 { font-size: 26px; margin: 0 0 16px; }
h2 { font-size: 18px; margin: 24px 0 10px; color: var(--karamel); }
.zonder-marge { margin: 0; }
.rij { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rij.boven { margin-top: 16px; }
.rij.onder { margin-bottom: 14px; }
.vul { flex: 1; }
.hint { font-size: 14px; color: var(--salie-donker); margin: 6px 0; }
.midden { text-align: center; margin-top: 80px; }
.fout { background: #f6dcd8; color: var(--rood); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.melding { background: var(--salie); color: #fff; padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; }
.melding.slecht { background: var(--rood); }

.zoek { flex: 1; min-width: 220px; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--lijn); background: #fff; font-size: 17px; }
.knop { border: 0; border-radius: 12px; padding: 14px 20px; font-weight: 600; font-size: 16px; cursor: pointer; background: var(--salie); color: #fff; }
.knop:disabled { opacity: .55; cursor: wait; }
.knop.licht { background: #fff; color: var(--choco); border: 2px solid var(--lijn); }
.knop.rood { background: var(--rood); }
.knop.choco { background: var(--choco); }
.knop.klein { padding: 9px 14px; font-size: 14px; }
.knop.breed { width: 100%; }
.link { background: none; border: 0; color: var(--karamel); text-decoration: underline; cursor: pointer; display: block; margin: 14px auto 0; }

.tabs { display: flex; gap: 8px; margin: 16px 0 4px; flex-wrap: wrap; }
.tab { padding: 10px 16px; border-radius: 99px; border: 2px solid var(--lijn); background: #fff; cursor: pointer; font-weight: 600; font-size: 15px; }
.tab.aan { background: var(--choco); border-color: var(--choco); color: var(--creme); }
.teller { background: var(--koraal); color: #fff; border-radius: 99px; padding: 1px 8px; margin-left: 4px; font-size: 13px; }

.maand { margin: 22px 0 8px; font-weight: 700; color: var(--karamel); text-transform: capitalize; }
.kaart { width: 100%; text-align: left; background: #fff; border-radius: 16px; padding: 16px 18px; margin-bottom: 10px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; cursor: pointer; border: 2px solid transparent; }
.kaart:hover, .kaart:focus-visible { border-color: var(--salie-licht); outline: none; }
.kaart .titel { font-weight: 700; font-size: 18px; }
.kaart .sub { color: var(--salie-donker); font-size: 15px; }
.kaart .rechts { grid-row: 1 / 3; grid-column: 2; text-align: right; align-self: center; }

.status { display: inline-block; border-radius: 99px; padding: 4px 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.st-nieuw { background: var(--goud); color: var(--choco); }
.st-bevestigd { background: var(--salie); color: #fff; }
.st-uitgevoerd { background: #d9d2c9; color: #5a4a40; }
.st-geannuleerd { background: #f1d4cf; color: var(--rood); text-decoration: line-through; }

.terug { background: none; border: 0; color: var(--karamel); font-weight: 600; font-size: 16px; cursor: pointer; padding: 6px 0; margin-bottom: 12px; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.blok { background: #fff; border-radius: 16px; padding: 18px 20px; }
.blok h3 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--karamel); }
.klein-label { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--salie-donker); }
.veld { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f0e6dc; font-size: 16px; }
.veld:last-child { border-bottom: 0; }
.veld > span:first-child { color: var(--salie-donker); }
.veld a { color: var(--navy); font-weight: 600; word-break: break-all; }
.vol { grid-column: 1 / -1; }
.vrij { white-space: pre-wrap; margin: 0; overflow-wrap: anywhere; }
.notitie { background: #fff7e6; border: 2px dashed var(--goud); }
.notitie textarea { width: 100%; min-height: 70px; border: 0; background: transparent; font-size: 16px; resize: vertical; }
.acties { display: flex; gap: 10px; flex-wrap: wrap; }
.logboek { font-size: 14px; color: #6b5a50; }
.logboek div { padding: 6px 0; border-bottom: 1px solid #f0e6dc; }
.logboek div:last-child { border-bottom: 0; }

/* Formulieren */
.formulier { max-width: 760px; }
.groep { margin-bottom: 14px; }
fieldset.groep { border: 0; padding: 0; }
label, legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=number], input[type=password], select, textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 2px solid var(--lijn); background: #fff; font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--salie); }
input[readonly] { background: var(--creme-2); }
textarea { min-height: 90px; resize: vertical; }
textarea.hoog { min-height: 260px; }
.twee { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drie { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 12px; }
.keuze { display: flex; gap: 8px; flex-wrap: wrap; }
.keuze label { font-weight: 500; background: #fff; border: 2px solid var(--lijn); border-radius: 10px; padding: 10px 14px; cursor: pointer; margin: 0; }
.vinkje { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; background: #fff; border: 2px solid var(--lijn); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.vinkje.onder { margin-bottom: 14px; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--salie-donker); flex: none; }

/* Aanmelden */
.login { max-width: 420px; margin: 50px auto; background: #fff; border-radius: 20px; padding: 30px; }
.login h1 { text-align: center; }
.code { letter-spacing: 12px; text-align: center; font-size: 28px !important; font-weight: 700; }
.qr { display: block; width: 200px; height: 200px; margin: 10px auto 12px; background: #fff; }
.sleutel { font-family: Consolas, monospace; font-weight: 700; word-break: break-all; color: var(--choco); }

/* Venster */
.venster-achter { position: fixed; inset: 0; background: #0006; display: flex; align-items: center; justify-content: center; z-index: 20; padding: 16px; }
.venster { background: var(--creme-2); border-radius: 18px; padding: 24px 26px; width: min(720px, 100%); max-height: 100%; overflow: auto; }

/* Instellingen */
.sjabloon { background: #fff; border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; }
.sjabloon h3 { margin: 0 0 12px; }

@media (max-width: 700px) {
  .inhoud { padding: 14px; }
  .detail, .twee, .drie { grid-template-columns: 1fr; }
  .rol { display: none; }
  .menu { margin-left: 0; }
  .veld { grid-template-columns: 100px 1fr; }
}
