/* Raderwerk voor gebruikers: de voordeur (inloggen, registreren) en het gebruikersproces (inleveren).
   Dit bestand staat twee keer, gelijk: voorportaal/stijl.css en src/raderwerk/web/static/gebruikers.css
   (een test bewaakt dat). Mobiel eerst; licht en donker volgen het apparaat. Kleuren van het thema kasboek. */

:root {
  --grond: #f3f5f7; --vlak: #ffffff; --inkt: #1f2933; --zacht: #5b6875; --lijn: #e1e6eb; --lijn-sterk: #c9d1d9;
  --accent: #1d5f8a; --accent-donker: #17405c; --accent-zacht: #e4eef5; --op-accent: #ffffff;
  --goed: #1f7a4d; --goed-vlak: #e3f3ea; --let: #8a5a12; --let-vlak: #fdf3d6; --fout: #a8322a; --fout-vlak: #fbe6e3;
  --focus: #7fb6d9; --schaduw: 0 1px 2px rgba(31, 41, 51, .06), 0 4px 16px rgba(31, 41, 51, .06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grond: #12171c; --vlak: #1b2229; --inkt: #e3e8ee; --zacht: #9aa7b5; --lijn: #2c3540; --lijn-sterk: #3d4855;
    --accent: #6db3e0; --accent-donker: #9fcdee; --accent-zacht: #1f3a4d; --op-accent: #0f2230;
    --goed: #5fc48f; --goed-vlak: #173326; --let: #e0b25a; --let-vlak: #3a2f14; --fout: #f08a80; --fout-vlak: #3d1c19;
    --focus: #3f84ad; --schaduw: 0 1px 2px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grond); color: var(--inkt);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* de balk bovenaan */
header { background: var(--vlak); border-bottom: 1px solid var(--lijn); }
.balk {
  max-width: 40rem; margin: 0 auto; padding: .75rem 1rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.merk {
  display: inline-flex; align-items: center; gap: .55rem; font-weight: 650; font-size: 1.05rem; letter-spacing: .01em;
  color: var(--inkt); text-decoration: none;
}
.merk::before {
  content: "R"; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .55rem;
  background: var(--accent); color: var(--op-accent); font-size: .95rem; font-weight: 700;
}
.kruimel { color: var(--zacht); font-size: .95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kant { margin-left: auto; display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--zacht); }
.kant form { margin: 0; }

/* de inhoud */
main { max-width: 40rem; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
h1 { font-size: 1.5rem; line-height: 1.25; margin: .25rem 0 1rem; }
h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
p { margin: 0 0 .9rem; }
.klein { color: var(--zacht); font-size: .9rem; }

.kaart {
  background: var(--vlak); border: 1px solid var(--lijn); border-radius: 14px; box-shadow: var(--schaduw);
  padding: 1.25rem; margin: 0 0 1rem;
}
.kaart > :last-child { margin-bottom: 0; }

/* knoppen */
button, .knop {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 48px; padding: .7rem 1.2rem; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: var(--op-accent); font: inherit; font-weight: 600; text-decoration: none;
}
button:hover, .knop:hover { background: var(--accent-donker); }
.vol { width: 100%; }
button.stop, .knop.stil {
  min-height: 36px; padding: .4rem .8rem; background: transparent; color: var(--zacht); border: 1px solid var(--lijn-sterk);
  font-weight: 500; font-size: .9rem;
}
button.stop:hover, .knop.stil:hover { background: var(--accent-zacht); color: var(--inkt); }

/* invullen */
label { display: block; font-weight: 600; margin: 0 0 .35rem; }
.veld { margin: 0 0 1rem; }
input[type="text"], input:not([type]), textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1px solid var(--lijn-sterk); border-radius: 10px;
  background: var(--vlak); color: var(--inkt); font: inherit;
}
.toelichting { font-weight: 400; color: var(--zacht); font-size: .9rem; }

/* het vlak om een bestand te kiezen */
.upload {
  display: block; border: 2px dashed var(--lijn-sterk); border-radius: 12px; padding: 1.25rem 1rem; text-align: center;
  background: var(--grond); cursor: pointer; font-weight: 600;
}
.upload:hover { border-color: var(--accent); background: var(--accent-zacht); }
.upload .klein { display: block; font-weight: 400; margin-top: .25rem; }
.upload input[type="file"] { display: block; width: 100%; margin-top: .9rem; font: inherit; color: var(--zacht); }
.upload input[type="file"]::file-selector-button {
  margin-right: .75rem; padding: .55rem 1rem; border: 1px solid var(--lijn-sterk); border-radius: 8px;
  background: var(--vlak); color: var(--inkt); font: inherit; font-weight: 600; cursor: pointer;
}

/* meldingen */
.melding {
  border-radius: 10px; padding: .8rem 1rem; margin: 0 0 1rem; border-left: 4px solid var(--goed);
  background: var(--goed-vlak); color: var(--inkt);
}
.melding.dubbel { border-left-color: var(--let); background: var(--let-vlak); }
.melding.fout { border-left-color: var(--fout); background: var(--fout-vlak); }
#melding:empty { display: none; }

/* lijsten */
.lijst { list-style: none; margin: 0; padding: 0; }
.lijst li { display: flex; gap: .75rem; align-items: baseline; padding: .7rem 0; border-top: 1px solid var(--lijn); }
.lijst li:first-child { border-top: 0; padding-top: 0; }
.lijst .tijd { color: var(--zacht); font-variant-numeric: tabular-nums; flex: none; width: 3rem; }
.lijst .wat { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.lijst .kenmerk { color: var(--zacht); font-size: .85rem; font-variant-numeric: tabular-nums; flex: none; }
.lijst .opmerking { display: block; color: var(--zacht); font-size: .9rem; }

/* de administraties op de startpagina */
.administraties { display: grid; gap: .75rem; }
a.administratie {
  display: block; text-decoration: none; color: inherit; background: var(--vlak); border: 1px solid var(--lijn);
  border-radius: 14px; box-shadow: var(--schaduw); padding: 1rem 1.25rem;
}
a.administratie:hover { border-color: var(--accent); }
.administratie .naam { display: block; font-weight: 650; font-size: 1.1rem; }
.administratie .naam::after { content: " \203A"; color: var(--accent); }
.labels { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.label { font-size: .8rem; padding: .15rem .6rem; border-radius: 999px; background: var(--accent-zacht); color: var(--inkt); }

.leeg { text-align: center; color: var(--zacht); padding: 2rem 1rem; }

/* het overzicht als meer bestanden tegelijk worden ingeleverd (inleveren.js) */
.reeks li { align-items: center; }
.reeks .stand { flex: none; font-size: .85rem; padding: .15rem .6rem; border-radius: 999px; background: var(--grond); color: var(--zacht); }
.reeks li.bezig .stand { background: var(--accent-zacht); color: var(--inkt); }
.reeks li.ingeleverd .stand { background: var(--goed-vlak); color: var(--goed); }
.reeks li.al .stand { background: var(--let-vlak); color: var(--let); }
.reeks li.fout .stand { background: var(--fout-vlak); color: var(--fout); white-space: normal; max-width: 60%; text-align: right; }
button:disabled { opacity: .55; cursor: progress; }
[hidden] { display: none !important; }
