/* Beurtvaart — Leeflang Cleaning & Transport
   Stijl gebaseerd op Borgbewijzen systeem */

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

body {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  font-size: 13px;
  background: #f0f2f5;
  color: #222;
  min-height: 100vh;
}

/* ── NAVIGATIE ─────────────────────────────── */
.nav {
  background: #1a3a5c;
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 44px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 24px;
  text-decoration: none;
}
.nav-logo-ovaal {
  width: 42px; height: 28px;
  border-radius: 50%;
  border: 2.5px solid #29abe2;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  flex-shrink: 0;
}
.nav-logo-inner {
  width: 33px; height: 21px;
  border-radius: 50%;
  border: 2px solid #ffd700;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-tekst {
  font-size: 7px;
  font-weight: 900;
  color: #e8231a;
  letter-spacing: 0.5px;
  line-height: 1;
}
.nav-merk { color: #fff; font-weight: 700; font-size: 14px; }
.nav-sub  { color: #7eb3d4; font-size: 11px; font-weight: 400; }
.nav-items { display: flex; align-items: center; flex: 1; }
.nav-link {
  color: #a8c4dd;
  font-size: 12px;
  padding: 0 14px;
  height: 44px;
  display: flex; align-items: center;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .15s;
  white-space: nowrap;
}
.nav-link:hover { color: #fff; }
.nav-link.actief { color: #fff; border-bottom-color: #29abe2; }
.nav-badge {
  background: #e8762c;
  color: #fff; font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 99px;
  margin-left: 4px;
}
.nav-user {
  color: #7eb3d4; font-size: 11px;
  margin-left: auto; padding-left: 20px;
  display: flex; align-items: center; gap: 10px;
}
.nav-user a { color: #a8c4dd; text-decoration: none; }
.nav-user a:hover { color: #fff; }

/* ── STATS BAR ──────────────────────────────── */
.stats-bar {
  background: #1e4d7b;
  padding: 10px 20px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat-item .val {
  color: #fff; font-size: 22px; font-weight: 700; line-height: 1.1;
}
.stat-item .lbl {
  color: #7eb3d4; font-size: 11px; margin-top: 1px;
}
.stat-item .val.oranje { color: #f5c842; }
.stat-item .val.groen  { color: #5dca99; }

/* ── CONTENT ────────────────────────────────── */
.content { padding: 16px 20px; max-width: 1400px; }

/* ── KAARTEN ────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 4px;
  margin-bottom: 14px;
  overflow: hidden;
}
.card-head {
  padding: 9px 14px;
  border-bottom: 1px solid #eef0f3;
  font-size: 13px; font-weight: 700; color: #1a3a5c;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.card-body { padding: 12px 14px; }

/* ── KNOPPEN ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: 3px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  border: none; text-decoration: none; line-height: 1; white-space: nowrap;
  transition: opacity .15s;
}
.btn:hover { opacity: .88; }
.btn-blauw  { background: #2c6fad; color: #fff; }
.btn-groen  { background: #27a060; color: #fff; }
.btn-oranje { background: #e8762c; color: #fff; }
.btn-rood   { background: #c0392b; color: #fff; }
.btn-outline { background: #fff; color: #2c6fad; border: 1px solid #2c6fad; }
.btn-grijs  { background: #888; color: #fff; }
.btn-sm { padding: 3px 10px; font-size: 11px; }
.btn-lg { padding: 10px 22px; font-size: 14px; }
.knoppen { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* ── TABELLEN ───────────────────────────────── */
table.data-tbl {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
table.data-tbl th {
  background: #1a3a5c; color: #fff;
  padding: 8px 10px; text-align: left;
  font-weight: 600; font-size: 11px; white-space: nowrap;
}
table.data-tbl td {
  padding: 7px 10px; border-bottom: 1px solid #eef0f3;
  color: #333; vertical-align: middle;
}
table.data-tbl tr:last-child td { border-bottom: none; }
table.data-tbl tr:hover td { background: #f5f8fb; }
.td-num  { font-weight: 700; color: #1a3a5c; }
.td-muted { color: #aaa; font-style: italic; }

/* ── FORMULIEREN ────────────────────────────── */
.form-groep { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.form-label { font-size: 11px; font-weight: 700; color: #555; }
.form-input, .form-select, .form-textarea {
  padding: 7px 10px;
  border: 1px solid #d0d7df; border-radius: 3px;
  font-size: 12px; color: #333;
  font-family: inherit; width: 100%;
  background: #fff;
  transition: border-color .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: #2c6fad;
}
.form-input[readonly] { background: #eaf4fb; color: #1a3a5c; font-weight: 600; }
.form-textarea { min-height: 70px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.form-hint { font-size: 11px; color: #888; margin-top: 2px; }

/* ── PILLS / BADGES ─────────────────────────── */
.pill {
  display: inline-block; padding: 2px 9px;
  border-radius: 99px; font-size: 10px; font-weight: 700;
}
.pill-blauw   { background: #dbeeff; color: #1a5c9a; }
.pill-groen   { background: #d5f5e8; color: #1a7a50; }
.pill-oranje  { background: #fde8d5; color: #a85000; }
.pill-rood    { background: #fde8e8; color: #a80000; }
.pill-grijs   { background: #eee;    color: #666; }
.pill-amber   { background: #fff3cd; color: #856404; }

/* ── ALERTS / FLASH ─────────────────────────── */
.alert {
  padding: 10px 14px; border-radius: 4px;
  font-size: 12px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.alert-succes     { background: #d5f5e8; border: 1px solid #27a060; color: #1a5c40; }
.alert-fout       { background: #fde8e8; border: 1px solid #c0392b; color: #7a1a1a; }
.alert-waarschuwing { background: #fff3cd; border: 1px solid #ffc107; color: #856404; }
.alert-info       { background: #dbeeff; border: 1px solid #2c6fad; color: #1a3a5c; }

/* ── ZOEK + FILTER BAR ──────────────────────── */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px; align-items: flex-end;
}
.filter-bar .form-input,
.filter-bar .form-select { width: auto; min-width: 100px; }
.zoek-input { flex: 1; min-width: 200px; }

/* ── STAAFGRAFIEK ───────────────────────────── */
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bar-lbl { font-size: 11px; color: #555; width: 40px; text-align: right; flex-shrink: 0; }
.bar-track { flex: 1; height: 14px; background: #eef0f3; border-radius: 2px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 2px; background: #2c6fad; }
.bar-val   { font-size: 11px; color: #555; width: 80px; flex-shrink: 0; }

/* ── GRIDS ──────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* ── INFO TABEL (detail view) ───────────────── */
table.info-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
table.info-tbl td { padding: 7px 10px; border-bottom: 1px solid #eef0f3; }
table.info-tbl td:first-child { color: #888; width: 40%; }
table.info-tbl td:last-child  { font-weight: 600; }

/* ── PAGINERING ─────────────────────────────── */
.paginering { display: flex; gap: 6px; align-items: center; margin-top: 10px; }
.paginering a {
  padding: 4px 10px; border: 1px solid #dde3ea; border-radius: 3px;
  color: #2c6fad; text-decoration: none; font-size: 12px;
}
.paginering a.actief { background: #2c6fad; color: #fff; border-color: #2c6fad; }
.paginering span { font-size: 12px; color: #888; }

/* ── RESPONSIEF (mobiel chauffeur) ──────────── */
@media (max-width: 640px) {
  .nav { padding: 0 12px; }
  .stats-bar { gap: 20px; padding: 8px 12px; }
  .stat-item .val { font-size: 18px; }
  .content { padding: 10px 12px; }
  .form-grid-2, .form-grid-3, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  table.data-tbl { font-size: 11px; }
  table.data-tbl th, table.data-tbl td { padding: 6px 7px; }
  .nav-items .nav-link:not(.actief) { display: none; }
}

/* ── LOGIN ──────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: #1a3a5c;
}
.login-card {
  background: #fff; border-radius: 6px;
  width: 100%; max-width: 380px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.login-header {
  background: #1a3a5c; padding: 24px;
  text-align: center;
}
.login-body { padding: 28px; }
.login-titel { color: #fff; font-size: 20px; font-weight: 700; margin-top: 10px; }
.login-sub   { color: #7eb3d4; font-size: 12px; margin-top: 4px; }

/* ── MOBIEL CHAUFFEUR PAGINA ────────────────── */
.mob-wrap {
  min-height: 100vh; background: #f0f2f5;
}
.mob-header {
  background: #1a3a5c; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.mob-titel  { color: #fff; font-size: 15px; font-weight: 700; }
.mob-sub    { color: #7eb3d4; font-size: 11px; }
.mob-body   { padding: 16px; max-width: 480px; margin: 0 auto; }
.mob-card   { background: #fff; border: 1px solid #dde3ea; border-radius: 4px; padding: 14px; margin-bottom: 12px; }
.mob-label  { font-size: 11px; font-weight: 700; color: #555; margin-bottom: 3px; text-transform: uppercase; letter-spacing: .04em; }
.mob-waarde { font-size: 14px; font-weight: 600; color: #1a3a5c; margin-bottom: 10px; }
.mob-status { background: #fff3cd; border: 1px solid #ffc107; border-radius: 3px; padding: 8px 12px; color: #856404; font-weight: 600; text-align: center; margin-bottom: 12px; }
.mob-btn-groot { width: 100%; padding: 14px; font-size: 16px; font-weight: 700; border-radius: 4px; border: none; cursor: pointer; margin-top: 8px; }

/* ── WORKFLOW STAPPEN ───────────────────────── */
.workflow {
  display: flex; align-items: stretch; overflow-x: auto;
  margin-bottom: 14px; gap: 0;
}
.wf-stap {
  flex: 1; min-width: 90px; text-align: center;
  padding: 8px 6px; background: #fff;
  border: 1px solid #dde3ea; border-right: none;
  position: relative;
}
.wf-stap:last-child { border-right: 1px solid #dde3ea; border-radius: 0 4px 4px 0; }
.wf-stap:first-child { border-radius: 4px 0 0 4px; }
.wf-num   { font-size: 9px; color: #aaa; margin-bottom: 2px; }
.wf-icon  { font-size: 18px; margin-bottom: 3px; }
.wf-label { font-size: 10px; font-weight: 700; color: #1a3a5c; line-height: 1.3; }
.wf-actor { font-size: 9px; color: #888; margin-top: 2px; }
.wf-pijl  { position: absolute; right: -9px; top: 50%; transform: translateY(-50%); color: #2c6fad; font-size: 14px; z-index: 2; background: #f0f2f5; padding: 0 1px; }

/* ── SECTIE KOPTEKST ────────────────────────── */
.sectie-titel {
  font-size: 13px; font-weight: 700; color: #1a3a5c;
  margin-bottom: 8px;
}
.sectie-warn {
  font-size: 13px; font-weight: 700; color: #c0392b;
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
