/* ==========================================================================
   ALC Stuwbedrijf — werknemersapp
   Ontwerp volgens de bouwbriefing van Claude Design.
   Dit bestand geldt ALLEEN voor de werknemerskant; de managementkant gebruikt
   style.css en blijft ongewijzigd.
   ========================================================================== */

:root {
  --ink:        #14181A;
  --ink-2:      #1B2124;
  --ink-3:      #1E2528;
  --line-dark:  #2A3134;
  --line-dark-2:#333B3E;
  --paper:      #F4F5F3;
  --surface:    #FFFFFF;
  --line:       #DADEDC;
  --line-2:     #EDEFEE;
  --text:       #14181A;
  --text-2:     #3D4442;
  --text-3:     #6B7370;
  --text-4:     #8A9290;
  --text-4-dark:#8A9497;
  --rust:       #D2601A;
  --steel:      #33546B;
  --plate-1:    #41687F;
  --plate-2:    #2E4E64;
  --plate-3:    #233C4E;
  --plate-line: #5B87A4;

  --ok:         #2F6B4F;
  --ok-bg:      #EAF2EC;
  --ok-line:    #9CBFA9;
  --warn:       #C99A2E;
  --warn-bg:    #FDF3E4;
  --warn-line:  #E8C98A;
  --warn-text:  #6F5411;
  --err:        #A63A2E;
  --err-bg:     #F8E6E2;
  --err-line:   #E5BDB4;
  --err-text:   #8A2E23;

  --font: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-cond: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --topbar-h: 52px;
  --bottomnav-h: 78px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); }

:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }

/* ---------- schil ---------- */

.app {
  min-height: 100vh;
  max-width: 520px;
  margin: 0 auto;
  background: var(--paper);
  padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky; top: 0; z-index: 40;
  /* De statusbalk van een iPhone valt over de pagina heen in app-weergave. De veilige
     zone moet daarom BOVENOP de hoogte komen; zetten we hem alleen als binnenmarge,
     dan wordt de balk vanbinnen platgedrukt en zijn de knoppen rechtsboven niet meer
     aan te tikken. */
  height: calc(var(--topbar-h) + env(safe-area-inset-top));
  background: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  padding: env(safe-area-inset-top) 16px 0;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.topbar-logo { height: 24px; width: auto; display: block; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-name { color: var(--text-4-dark); font-size: 13px; font-weight: 500; }
.topbar-menu-btn {
  width: 44px; height: 44px; border: none; background: transparent;
  color: #EDEFEE; font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex: none;
  -webkit-appearance: none; appearance: none; touch-action: manipulation;
}
.topbar-menu-btn:hover { background: rgba(255,255,255,.08); }

.topbar-menu {
  /* Vast t.o.v. het scherm (de bovenbalk blijft immers staan bij scrollen), maar wel
     uitgelijnd op de rechterkant van de app-kolom van maximaal 520px. */
  position: fixed; top: calc(var(--topbar-h) + env(safe-area-inset-top) + 4px);
  right: max(12px, env(safe-area-inset-right), calc(50vw - 260px + 12px)); z-index: 50;
  background: var(--ink-3); border: 1px solid var(--line-dark-2); border-radius: 8px;
  min-width: 210px; padding: 6px; display: none;
}
.topbar-menu.open { display: block; }
.topbar-menu a {
  display: block; padding: 15px 16px; min-height: 48px; color: #E7EBEC; font-size: 15px;
  border-radius: 6px; font-weight: 500;
}
.topbar-menu a:hover { background: rgba(255,255,255,.07); }
.topbar-menu hr { border: none; border-top: 1px solid var(--line-dark-2); margin: 5px 8px; }

.page { padding: 16px 16px 8px; }
.page-tight { padding: 0 0 8px; }

/* ---------- onderbalk ---------- */

.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  max-width: 520px; margin: 0 auto;
  /* Ook hier: de streep onderaan de iPhone komt bovenop de hoogte, niet ervanaf. */
  height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
  background: var(--ink);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; color: var(--text-4-dark); font-size: 11px; font-weight: 600;
  padding-top: 4px; position: relative;
}
.bottomnav-item.active { color: var(--rust); }
.bottomnav-item svg { width: 23px; height: 23px; stroke-width: 1.8; fill: none; stroke: currentColor; }
.nav-count {
  position: absolute; top: 8px; left: 50%; margin-left: 6px;
  background: var(--rust); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
  font-family: var(--font-mono);
}

/* ---------- vaste actiebalk ---------- */

.actionbar {
  position: fixed; bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
  left: 0; right: 0; z-index: 35;
  max-width: 520px; margin: 0 auto;
  padding: 16px;
  display: flex; gap: 10px;
  background: linear-gradient(to bottom, rgba(244,245,243,0) 0%, var(--paper) 42%);
  pointer-events: none;
}
.actionbar > * { pointer-events: auto; }
.has-actionbar { padding-bottom: 96px; }

/* ---------- typografie ---------- */

h1, h2, h3 { margin: 0; font-weight: 700; }
.page-title { font-size: 25px; line-height: 1.1; letter-spacing: -.01em; }
.section-title { font-size: 20px; line-height: 1.2; }
.card-title { font-size: 17px; }
.label { font-size: 13px; font-weight: 600; color: var(--text-2); display: block; margin-bottom: 7px; }
.micro {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-4);
}
.sub { font-size: 15px; color: var(--text-3); margin: 4px 0 0; }
.hint { font-size: 13px; color: var(--text-3); }
.mono { font-family: var(--font-mono); }

/* ---------- kaarten en velden ---------- */

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 16px;
}
.card + .card { margin-top: 12px; }
.block { margin-bottom: 22px; }
.field { margin-bottom: 10px; }

input[type=text], input[type=password], input[type=number], input[type=search],
input[type=email], input[type=time], input[type=date], input[type=tel], select, textarea {
  width: 100%; font-family: var(--font); font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 0 14px; height: 60px;
}
textarea { height: auto; padding: 14px; min-height: 88px; }
input:focus, select:focus, textarea:focus { border-color: var(--steel); outline: none; }
input::placeholder { color: var(--text-4); }

/* ---------- knoppen ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 16px; font-weight: 700;
  height: 60px; padding: 0 22px; border: none; border-radius: 8px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
}
.btn-primary {
  background: var(--rust); color: #fff; border-color: var(--rust);
  box-shadow: 0 4px 14px rgba(210,96,26,.32);
}
.btn-primary:disabled { opacity: .55; box-shadow: none; }
.btn-warn { background: var(--warn); border-color: var(--warn); color: #3A2C08; box-shadow: none; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-back { width: 64px; flex: none; padding: 0; font-size: 20px; }
.btn-sm { height: 44px; font-size: 14px; padding: 0 14px; border-radius: 8px; }
.btn-dashed { border: 1.5px dashed var(--line); background: transparent; color: var(--text-2); }
.btn-ghost-dark {
  background: var(--ink-2); border: 1px solid var(--line-dark-2); color: #E7EBEC;
}

/* ---------- containerplaatje ---------- */

.plate {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 13px/1 var(--font-mono); letter-spacing: .06em; color: #EDEFEA;
  background: linear-gradient(155deg, var(--plate-1), var(--plate-2) 55%, var(--plate-3));
  border: 1px solid var(--plate-line); border-radius: 3px; padding: 7px 11px;
}
.plate::before, .plate::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #C3D2DB, #6D8A9B 70%);
}
.plate-lg { font-size: 16px; padding: 10px 14px; border-radius: 3px; }

input.plate-input {
  font: 700 21px/1 var(--font-mono); letter-spacing: .06em; color: #EDEFEA;
  text-transform: uppercase; text-align: center;
  background: linear-gradient(155deg, var(--plate-1), var(--plate-2) 55%, var(--plate-3));
  border: 1px solid var(--plate-line); border-radius: 6px;
  height: 60px; padding: 0 34px; width: 100%;
}
input.plate-input::placeholder { color: #9DB4C2; font-weight: 500; }
.plate-input-wrap { position: relative; }
.plate-input-wrap::before, .plate-input-wrap::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #C3D2DB, #6D8A9B 70%);
}
.plate-input-wrap::before { left: 12px; }
.plate-input-wrap::after { right: 12px; }

/* ---------- stappen ---------- */

.steps { display: flex; gap: 6px; margin-bottom: 14px; }
.step-bar { flex: 1; height: 5px; border-radius: 3px; background: #D6DAD8; }
.step-bar.done { background: var(--rust); }
.step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.step-count { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); flex: none; }

/* ---------- keuzeknoppen ---------- */

.pick {
  display: block; width: 100%; text-align: left; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; cursor: pointer;
  margin-bottom: 10px;
}
.pick.selected { border: 2px solid var(--ink); padding: 13px 15px; box-shadow: 0 2px 8px rgba(20,24,26,.07); }
.pick-time { font: 700 19px/1 var(--font-mono); color: var(--text); }
.pick-client { font-size: 18px; font-weight: 700; }
.pick-meta { font-size: 13px; color: var(--text-3); margin-top: 4px; }

.choice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 0 16px; min-height: 60px;
  cursor: pointer; margin-bottom: 10px;
}
.choice.selected { border: 2px solid var(--ink); }
.choice-title { font-size: 16px; font-weight: 600; }
.choice-sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.choice input { display: none; }

.bigfield {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; height: 60px; padding: 0 16px; cursor: pointer;
  font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--text);
}
.bigfield.empty { color: var(--text-4); }
.bigfield-side { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--text-3); }

/* ---------- chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 52px; display: inline-flex; align-items: center; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 26px; background: var(--surface);
  font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer;
}
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input { display: none; }

/* ---------- foto ---------- */

.photo {
  border: 2px dashed #C2C8C5; border-radius: 8px; padding: 16px; background: var(--surface);
}
.photo.filled { border: 1px solid var(--ok-line); background: var(--ok-bg); }
.photo-title { font-size: 16px; font-weight: 700; }
.photo-sub { font-size: 13px; color: var(--text-3); margin: 3px 0 12px; }
.photo-btns { display: flex; gap: 10px; }
.photo-btns .btn { flex: 1; height: 52px; font-size: 15px; }
.photo-btns .btn.chosen { background: var(--ink); color: #fff; border-color: var(--ink); }
/* Niet display:none: een bestandsveld dat niet gerenderd is, negeert in sommige browsers
   (met name een geïnstalleerde PWA op Android) de click() vanaf onze eigen knop — dan
   opent de camera niet en lijkt er niets te gebeuren. Onzichtbaar maar wél aanwezig. */
.photo input[type=file] {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0;
}
.photo-preview { display: block; width: 100%; max-height: 210px; object-fit: cover; border-radius: 6px; margin-top: 12px; }

/* ---------- inklapbaar ---------- */

details.fold { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
details.fold > summary {
  list-style: none; cursor: pointer; min-height: 60px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 16px; font-weight: 600;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold .fold-state { font-size: 13px; font-weight: 500; color: var(--text-3); }
details.fold > div { padding: 0 16px 16px; border-top: 1px solid var(--line-2); padding-top: 16px; }

/* ---------- meldingen ---------- */

.note { border-radius: 8px; padding: 14px 16px; font-size: 15px; margin-bottom: 14px; }
.note-err { background: var(--err-bg); border: 1px solid var(--err-line); color: var(--err-text); }
.note-warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-text); }
.note-ok { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok); }
.note strong { display: block; margin-bottom: 3px; }
.note ul { margin: 6px 0 0; padding-left: 20px; }

/* ---------- statuslabels ---------- */

.tag {
  display: inline-block; padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-warn { background: var(--warn-bg); color: var(--warn-text); }
.tag-steel { background: #E7EEF3; color: var(--steel); }
.tag-on-dark { background: rgba(255,255,255,.1); color: #D8DEE1; }

/* ---------- bottom sheet ---------- */

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(10,12,13,.55);
  display: none;
}
.sheet-backdrop.open { display: block; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-width: 520px; margin: 0 auto;
  background: var(--paper); border-radius: 8px 18px 0 0;
  max-height: 82vh; display: none; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.open { display: flex; }
.sheet-head {
  padding: 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.sheet-body { overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.sheet-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 58px; padding: 0 16px; width: 100%; text-align: left;
  background: var(--surface); border: none; border-bottom: 1px solid var(--line-2);
  font-size: 16px; color: var(--text); cursor: pointer;
}
.sheet-row:last-child { border-bottom: none; }
.sheet-row.current { background: #F1F3F1; font-weight: 700; }
.sheet-row-time { font: 700 14px/1 var(--font-mono); color: var(--rust); }
.sheet-list { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }

/* ---------- cijferblok ---------- */

.numpad {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-width: 520px; margin: 0 auto;
  background: var(--ink); border-radius: 8px 18px 0 0;
  display: none; padding-bottom: env(safe-area-inset-bottom);
}
.numpad.open { display: block; }
.numpad-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px; border-bottom: 1px solid var(--line-dark);
}
.numpad-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-4-dark); }
.numpad-value { font: 700 40px/1 var(--font-mono); color: #fff; margin-top: 4px; }
.numpad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.numpad-key {
  height: 62px; border: 1px solid var(--line-dark-2); background: var(--ink-3);
  color: #fff; font: 700 22px/1 var(--font-mono); border-radius: 8px; cursor: pointer;
}
.numpad-key:active { background: #2B3437; }

/* ---------- donkere blokken ---------- */

.dark-block { background: var(--ink); color: #fff; padding: 18px 16px; }
.dark-block .micro { color: var(--text-4-dark); }
.dark-card {
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 8px;
  padding: 14px; margin-bottom: 10px; border-left: 3px solid var(--rust);
}

/* ---------- statistiek ---------- */

.big-number { font-family: var(--font-cond); font-weight: 700; font-size: 62px; line-height: .9; }
.stat-row { display: flex; gap: 8px; margin-top: 14px; }
.stat-cell {
  flex: 1; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 8px;
  padding: 10px 8px; text-align: center;
}
.stat-cell .v { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: #fff; }
.stat-cell .k { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-4-dark); margin-top: 3px; }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.tab {
  flex: 1; min-height: 52px; background: none; border: none; cursor: pointer;
  font-size: 15px; font-weight: 700; color: var(--text-3);
  border-bottom: 3px solid transparent;
}
.tab.on { color: var(--text); border-bottom-color: var(--rust); }

.bars { display: flex; align-items: flex-end; gap: 5px; height: 128px; margin: 6px 0 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bar { width: 100%; border-radius: 3px 4px 0 0; background: #C6CCC9; min-height: 3px; }
.bar.now { background: var(--rust); }
.bar.best { background: var(--steel); }
.bar-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-4); }

.record { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.record:last-child { border-bottom: none; }
.record-v { font-family: var(--font-cond); font-weight: 700; font-size: 24px; color: var(--rust); flex: none; }

.clientbar { margin-bottom: 12px; }
.clientbar-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; }
.clientbar-track { height: 8px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.clientbar-fill { height: 100%; background: var(--steel); border-radius: 3px; }

.progress-track { height: 10px; background: rgba(255,255,255,.14); border-radius: 3px; overflow: hidden; margin: 12px 0 8px; }
.progress-fill { height: 100%; background: var(--rust); border-radius: 3px; }

/* ---------- dagrij beschikbaarheid ---------- */

.dayrow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 60px; padding: 0 16px; text-align: left;
  background: var(--surface); border: none; border-bottom: 1px solid var(--line-2);
  font-size: 16px; font-weight: 600; color: var(--text); cursor: pointer;
}
.dayrow:last-child { border-bottom: none; }
.dayrow.off { background: #F1F3F1; color: var(--text-3); }
.dayrow-state { font-size: 14px; font-weight: 700; }
.dayrow.off .dayrow-state { color: var(--text-3); }

/* ---------- lege staat ---------- */

.empty { text-align: center; padding: 44px 20px; color: var(--text-3); }
.empty-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; }

/* ---------- bevestigingsscherm ---------- */

.done-screen {
  position: fixed; inset: 0; z-index: 70; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 20px; text-align: center;
}
.done-circle {
  width: 82px; height: 82px; border-radius: 50%; background: var(--ok);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.done-circle svg { width: 40px; height: 40px; stroke: #fff; stroke-width: 3; fill: none; }
.done-actions { position: absolute; left: 20px; right: 20px; bottom: 28px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- inlogscherm ---------- */

.auth {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--ink); padding: 20px;
}
.auth-inner { width: 100%; max-width: 400px; }
.auth-card {
  background: var(--surface); border-radius: 8px; padding: 28px 24px;
  width: 100%;
}
/* Het logo is wit met witte contouren en hoort dus op het donkere vlak, niet op de
   witte kaart — daar zou het wegvallen. */
.auth-logo { display: block; margin: 0 auto 26px; width: 100%; max-width: 230px; height: auto; }
.auth-card .label { color: var(--text-2); }
.remember {
  display: flex; align-items: center; gap: 11px; min-height: 52px;
  font-size: 15px; color: var(--text-2); cursor: pointer;
}
.remember input { width: 24px; height: 24px; accent-color: var(--rust); }

/* ---------- diversen ---------- */

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkbox-lg { width: 28px; height: 28px; accent-color: var(--rust); flex: none; }
.divider { border: none; border-top: 1px solid var(--line-2); margin: 14px 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .topbar, .bottomnav, .actionbar, .sheet, .numpad, .sheet-backdrop { display: none !important; }
  .app { padding: 0; max-width: 100%; }
  body { background: #fff; }
}

/* ==========================================================================
   Beschikbaarheid: weekoverzicht met dagtegels
   ========================================================================== */
.daygrid { display: flex; gap: 7px; }
.daytile {
  flex: 1; min-height: 92px; border-radius: 8px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  position: relative; padding: 8px 2px;
}
.daytile-day { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-4); }
.daytile-date { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--text-2); }
.daytile-mark {
  width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  border: 1.5px solid var(--line); background: transparent;
  display: flex; align-items: center; justify-content: center;
}
.daytile-mark svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 3.4; fill: none; display: none; }
.daytile input { display: none; }

.daytile.on { background: var(--ok-bg); border-color: var(--ok); }
.daytile.on .daytile-day { color: var(--ok); }
.daytile.on .daytile-date { color: var(--ok); }
.daytile.on .daytile-mark { background: var(--ok); border-color: var(--ok); }
.daytile.on .daytile-mark svg { display: block; }

.daytile.planned { border-color: var(--steel); }
.daytile-planned-dot {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--steel);
}

/* ---------- slagzin op het inlogscherm ---------- */
.auth-tagline {
  text-align: center; margin: -12px 0 22px;
  font-family: var(--font-cond); font-weight: 700;
  font-size: 22px; letter-spacing: .04em; text-transform: uppercase;
  color: #E7EBEC;
}
.auth-tagline-sub {
  text-align: center; margin: 20px 0 0;
  font-family: var(--font-cond); font-weight: 700;
  font-size: 15px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--rust);
}

/* ---------- routelink naar Google Maps ---------- */
.maps-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: #A9C4D6;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-dark-2);
  border-radius: 6px; padding: 9px 12px; min-height: 40px;
}
.maps-link svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--rust); stroke-width: 1.9; }
.maps-link:hover { background: rgba(255,255,255,.1); }


/* ---------- aanscherping: zelfde richting als de managementkant ---------- */
.page-title, .section-title, .card-title {
  font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .01em;
}
.micro, .label { font-family: var(--font-cond); letter-spacing: .06em; }
.btn { font-family: var(--font-cond); font-weight: 700; letter-spacing: .02em; }
.big-number { font-family: var(--font-mono); letter-spacing: -.03em; }
.tag {
  border-radius: 3px; font-family: var(--font-cond); letter-spacing: .06em;
  padding: 3px 8px 3px 7px; border-left: 3px solid currentColor;
}


/* Vaste waarde uit de planning: tonen, niet invulbaar. */
.vast-veld {
  background: #EDEFEE; border: 1px solid #C9D1D4;
  border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
}
.vast-label { font-family: var(--font-cond); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: #5A666C; }
.vast-waarde { font-size: 24px; font-weight: 700; color: #14181A; letter-spacing: -.02em; }

/* Dag die niet meer te wijzigen is: zichtbaar op slot, maar wel leesbaar. */
.daytile.locked { opacity: .55; cursor: not-allowed; }
.daytile.locked::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255,255,255,.05) 6px 12px);
  pointer-events: none;
}

/* Werksoort-keuze bij urenwerk. */
.werksoort-chip.on {
  background: var(--rust); border-color: var(--rust); color: #fff;
}

/* ---------- teamkeuze: gekozen namen blijven zichtbaar, de rest zit in een paneel ---------- */
.team-gekozen { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.team-gekozen:empty { display: none; }
.team-naam {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--rust); color: #fff; border-radius: 999px;
  padding: 7px 12px; font-size: 14px; font-weight: 600;
}
.team-naam button {
  background: none; border: none; color: #fff; opacity: .8;
  font-size: 17px; line-height: 1; padding: 0; cursor: pointer;
}
.team-optie { display: flex; align-items: center; justify-content: space-between; }
.team-vink {
  width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line-dark-2); flex: none;
}
.team-optie.on .team-vink {
  background: var(--rust); border-color: var(--rust);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 15px; background-position: center; background-repeat: no-repeat;
}

/* Samenvatting van de gekozen klus bovenaan stap 2. */
/* Stond op een lichte kleur die bedoeld was voor een donkere achtergrond — vrijwel
   onleesbaar. Nu een duidelijk leesbaar blok. */
.klus-samenvatting {
  background: #E8EEF2; border: 1px solid #C9D1D4; border-left: 3px solid var(--rust);
  border-radius: 8px; padding: 12px 14px;
  font-family: var(--font-cond); font-size: 16px; font-weight: 700; color: #14181A;
  letter-spacing: .01em;
}

/* Aantallen op de klussenkaart: helpt twee gelijkende klussen uit elkaar houden. */
.pick-cijfers {
  margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--ink);
  letter-spacing: -.01em;
}

/* Meldingen op de werknemerskant. Stonden er niet in, waardoor waarschuwingen
   onzichtbaar bleven. */
.flashes { margin-bottom: 14px; }
.melding {
  border-radius: 8px; padding: 13px 15px; margin-bottom: 8px;
  font-size: 15px; font-weight: 600; line-height: 1.4;
  border-left: 4px solid;
}
.melding-success { background: #E9F0EB; color: #2C5240; border-color: #3E6B52; }
.melding-error   { background: #F7E8E5; color: #7E2A20; border-color: #9E3327; }
