/* Dutchbeek urenregistratie — rustig en zakelijk, kleuren uit het woordmerk */
:root {
  --blauw: #1b63e0;
  --blauw-donker: #134bb0;
  --blauw-licht: #e8f0fd;
  --navy: #14213d;
  --tekst: #1f2937;
  --grijs: #6b7280;
  --lijn: #e3e7ee;
  --vlak: #f5f7fa;
  --wit: #ffffff;
  --groen: #11845b;
  --groen-licht: #e6f4ee;
  --oranje: #b45309;
  --oranje-licht: #fdf2e3;
  --rood: #b42318;
  --rood-licht: #fdecea;
  --radius: 12px;
  --schaduw: 0 1px 2px rgba(20, 33, 61, .06), 0 2px 8px rgba(20, 33, 61, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--vlak); color: var(--tekst);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--blauw); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
.klein { font-size: .875rem; } .grijs { color: var(--grijs); }
.cijfers { font-variant-numeric: tabular-nums; }

/* ---------- medewerker (mobiel) ---------- */
.mobiel { max-width: 480px; margin: 0 auto; padding: 0 16px 32px; }
.kop { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.kop img { height: 26px; display: block; mix-blend-mode: multiply; }
.kop .naam { font-size: .9rem; color: var(--grijs); text-align: right; }
.kaart { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius);
  box-shadow: var(--schaduw); padding: 20px; margin-bottom: 16px; }
.status { display: flex; align-items: center; gap: 12px; }
.status .stip { width: 14px; height: 14px; border-radius: 50%; background: var(--grijs); flex: none; }
.status.ingeklokt .stip { background: var(--groen); box-shadow: 0 0 0 4px var(--groen-licht); }
.status.pauze .stip { background: var(--oranje); box-shadow: 0 0 0 4px var(--oranje-licht); }
.status .woord { font-size: 1.35rem; font-weight: 650; color: var(--navy); }
.status .sinds { color: var(--grijs); font-size: .9rem; }
.teller { font-size: 2.6rem; font-weight: 700; color: var(--navy); letter-spacing: -.02em; }
.locatie-label { display: inline-flex; gap: 6px; align-items: center; background: var(--blauw-licht);
  color: var(--blauw-donker); border-radius: 999px; padding: 4px 12px; font-size: .9rem; font-weight: 600; }

.knop { display: block; width: 100%; border: 0; border-radius: var(--radius); padding: 18px;
  font: inherit; font-size: 1.2rem; font-weight: 650; cursor: pointer; text-align: center; text-decoration: none; }
.knop + .knop, form + form .knop { margin-top: 12px; }
.knop-in { background: var(--groen); color: #fff; }
.knop-uit { background: var(--navy); color: #fff; }
.knop-pauze { background: var(--wit); color: var(--navy); border: 2px solid var(--lijn); }
.knop-groot { padding: 26px 18px; font-size: 1.45rem; }
.knop:active { transform: translateY(1px); }
.knop:focus-visible, .knopje:focus-visible { outline: 3px solid var(--blauw); outline-offset: 2px; }

.hint { display: flex; gap: 12px; align-items: center; background: var(--blauw-licht); color: var(--navy);
  border-radius: var(--radius); padding: 14px 16px; }
.hint svg { flex: none; }
.lijst { list-style: none; margin: 0; padding: 0; }
.lijst li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--lijn); }
.lijst li:first-child { border-top: 0; }
.lijst .rechts { text-align: right; color: var(--grijs); font-size: .9rem; }
.bevestiging { text-align: center; padding: 32px 20px; }
.bevestiging .vink { width: 72px; height: 72px; border-radius: 50%; background: var(--groen-licht);
  display: grid; place-items: center; margin: 0 auto 16px; }
.bevestiging .tijd { font-size: 3rem; font-weight: 700; color: var(--navy); }
.voet { text-align: center; margin-top: 24px; font-size: .85rem; }
.voet a { margin: 0 8px; }
.melding { border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.melding.fout { background: var(--rood-licht); color: var(--rood); }
.melding.goed { background: var(--groen-licht); color: var(--groen); }
.melding.info { background: var(--blauw-licht); color: var(--navy); }

label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 4px; color: var(--navy); }
input, select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #cfd6e1;
  border-radius: 8px; background: #fff; color: var(--tekst); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blauw); border-color: var(--blauw); }
input[type=checkbox] { width: auto; }

/* ---------- beheer ---------- */
.beheer { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.zijbalk { background: var(--navy); color: #cbd5e1; padding: 20px 14px; display: flex; flex-direction: column; }
.zijbalk .merk { background: #fff; border-radius: 8px; padding: 10px 12px; margin-bottom: 20px; }
.zijbalk .merk img { height: 22px; display: block; }
.zijbalk nav a { display: flex; justify-content: space-between; color: #cbd5e1; text-decoration: none;
  padding: 9px 12px; border-radius: 8px; font-size: .95rem; }
.zijbalk nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.zijbalk nav a.actief { background: var(--blauw); color: #fff; }
.zijbalk .wie { margin-top: auto; font-size: .85rem; padding: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.zijbalk .wie button { background: none; border: 0; color: #93c5fd; padding: 0; font: inherit; cursor: pointer; }
.inhoud { padding: 28px 32px; min-width: 0; }
.inhoud-kop { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.inhoud-kop h1 { margin: 0; }
.tegels { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tegel { background: #fff; border: 1px solid var(--lijn); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--schaduw); }
.tegel .label { color: var(--grijs); font-size: .85rem; }
.tegel .getal { font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.tegel.let-op .getal { color: var(--oranje); }
.tegel.fout .getal { color: var(--rood); }
.paneel { background: #fff; border: 1px solid var(--lijn); border-radius: var(--radius); box-shadow: var(--schaduw);
  margin-bottom: 20px; overflow: hidden; }
.paneel > h2 { padding: 14px 18px; margin: 0; border-bottom: 1px solid var(--lijn); font-size: 1rem; }
.paneel > .binnen { padding: 16px 18px; }
.rij2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tabelvak { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--lijn); vertical-align: top; }
th { color: var(--grijs); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; background: #fafbfc; }
td.getal, th.getal { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.vervallen td { color: var(--grijs); text-decoration: line-through; }
tfoot td { font-weight: 700; background: #fafbfc; }
.label-s { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.l-groen { background: var(--groen-licht); color: var(--groen); }
.l-oranje { background: var(--oranje-licht); color: var(--oranje); }
.l-rood { background: var(--rood-licht); color: var(--rood); }
.l-blauw { background: var(--blauw-licht); color: var(--blauw-donker); }
.l-grijs { background: #eef0f3; color: var(--grijs); }
.knopje { display: inline-block; border: 1px solid #cfd6e1; background: #fff; color: var(--navy); border-radius: 8px;
  padding: 7px 12px; font: inherit; font-size: .9rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.knopje:hover { border-color: var(--blauw); }
.knopje.primair { background: var(--blauw); border-color: var(--blauw); color: #fff; }
.knopje.gevaar { color: var(--rood); }
.knopjes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.segment { display: inline-flex; border: 1px solid #cfd6e1; border-radius: 8px; overflow: hidden; }
.segment a { padding: 7px 14px; text-decoration: none; color: var(--navy); font-size: .9rem; }
.segment a.aan { background: var(--navy); color: #fff; }
.formrij { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.formrij label { margin-top: 0; }
details.uitklap summary { cursor: pointer; color: var(--blauw); font-size: .9rem; }
details.uitklap[open] { background: var(--vlak); border-radius: 8px; padding: 10px; }
.waarsch { color: var(--oranje); font-size: .85rem; }
.leeg { color: var(--grijs); padding: 18px; text-align: center; }
.qr { background: #fff; display: inline-block; padding: 8px; border: 1px solid var(--lijn); border-radius: 8px; }
.qr svg { display: block; width: 220px; height: 220px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; word-break: break-all; }

.inlog { max-width: 380px; margin: 10vh auto; padding: 0 16px; }
.inlog .kaart { padding: 28px; }
.inlog img { height: 30px; margin-bottom: 18px; }

@media (max-width: 860px) {
  .beheer { grid-template-columns: 1fr; }
  .zijbalk { padding: 12px 16px; }
  .zijbalk nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .zijbalk .merk { margin-bottom: 10px; }
  .inhoud { padding: 20px 16px; }
  .rij2 { grid-template-columns: 1fr; }
}
.ruimte-onder { margin-bottom: 16px; } .ruimte-boven { margin-top: 16px; }

/* uurloon en uitbetaling */
.loonblok { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; }
.loonveld label { margin-top: 0; }
.openstaand { background: var(--blauw-licht); border-radius: 10px; padding: 10px 16px; min-width: 220px; }
.openstaand .label { color: var(--navy); font-size: .85rem; }
.openstaand .bedrag { font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.uitbetaalknop { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
