/* Moving-In huisstijl. Palet, typografie en de groene streep komen uit de
   brand guidelines: de streep staat NIET gecentreerd maar een letterbreedte
   vanaf links onder de titel. */

:root {
  --navy: #374754;
  --wit: #ffffff;
  --witblauw: #e7e6ec;
  --lichtblauw: #d7dadf;
  --blauw: #414f5a;
  --groen: #c7d300;
  --radius: 30px;
  --radius-klein: 16px;
  --pil: 34px;
  --schaduw: 0 10px 30px rgba(0, 0, 0, 0.1);
  --schaduw-licht: 0 10px 30px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: "Titillium Web", -apple-system, system-ui, sans-serif;
  color: var(--blauw);
  line-height: 1.7;
  background: var(--witblauw);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--navy); font-weight: 900; text-transform: uppercase; line-height: 1.15; }
h2 { font-weight: 700; }
[hidden] { display: none !important; }

/* ---------- Inlogscherm ---------- */

.inlog { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; }

.inlog-beeld {
  background: var(--navy);
  color: var(--wit);
  padding: 64px 56px;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  position: relative; overflow: hidden;
}
.inlog-beeld::after {
  content: "";
  position: absolute; right: -180px; bottom: -180px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 211, 0, 0.22), transparent 68%);
}
.inlog-logo { height: 46px; width: auto; align-self: flex-start; filter: brightness(0) invert(1); }
.inlog-beeld h1 { color: var(--wit); font-size: clamp(42px, 5.2vw, 68px); letter-spacing: -0.01em; }
.inlog-beeld h1 span { color: var(--groen); display: block; }
.inlog-beeld p { max-width: 30ch; font-size: 18px; color: rgba(255, 255, 255, 0.82); }

.inlog-formulier {
  background: var(--wit);
  padding: 64px 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.inlog-formulier h2 { font-size: 34px; }
.kop-label { color: var(--groen); font-weight: 700; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.hint { margin: 6px 0 26px; font-size: 15px; }

form label {
  display: block; margin-top: 18px; margin-bottom: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--navy);
}
form input {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--lichtblauw); border-radius: var(--radius-klein);
  font-family: inherit; font-size: 16px; color: var(--navy); background: var(--wit);
}
form input:focus { outline: 2px solid var(--groen); outline-offset: 1px; border-color: transparent; }

.knop-primair {
  margin-top: 28px; width: 100%;
  background: var(--groen); color: var(--wit); border: none;
  border-radius: var(--pil); padding: 13px 40px;
  font-family: inherit; font-weight: 700; font-size: 17px;
  text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer;
}
.knop-primair:hover { box-shadow: var(--schaduw); }
.knop-primair:disabled { opacity: 0.55; cursor: progress; }

.knop-ghost {
  background: transparent; color: var(--navy);
  border: 2px solid var(--lichtblauw); border-radius: var(--pil);
  padding: 7px 20px; font-family: inherit; font-weight: 700; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
}
.knop-ghost:hover { border-color: var(--groen); color: var(--groen); }

.fout {
  margin-top: 16px; padding: 11px 16px;
  background: #fdecec; border-radius: var(--radius-klein);
  color: #9d2b2b; font-size: 14px; font-weight: 600;
}

/* ---------- Balk ---------- */

.balk {
  position: sticky; top: 0; z-index: 10;
  background: var(--wit);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  padding: 16px 32px;
  display: flex; align-items: center; gap: 28px;
}
.balk-logo { height: 38px; width: auto; }
.balk-titel { flex: 1; min-width: 0; }
.balk-titel h1 { font-size: 24px; letter-spacing: 0.01em; }
.balk-titel p { font-size: 14px; margin-top: -2px; }
.balk-rechts { display: flex; align-items: center; gap: 16px; }
#wie { font-weight: 700; color: var(--navy); font-size: 14px; }

/* ---------- Inhoud ---------- */

.inhoud { max-width: 1400px; margin: 0 auto; padding: 36px 32px 72px; }
.blok { margin-top: 44px; }

.sectietitel { font-size: 22px; letter-spacing: 0.05em; }
.sectietitel::after {
  content: ""; display: block;
  width: 60px; height: 4px; border-radius: 2px;
  background: var(--groen);
  margin: 10px 0 0 0.6em;   /* niet gecentreerd: een letterbreedte vanaf links */
}

.waarschuwing {
  background: #fff6e0; border-radius: var(--radius-klein);
  padding: 14px 20px; margin-bottom: 26px;
  color: #7a5a12; font-size: 14px; font-weight: 600;
}

/* KPI's */
.kpi-rij { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.kpi {
  background: var(--wit); border-radius: var(--radius);
  box-shadow: var(--schaduw-licht); padding: 24px 26px;
}
.kpi b { display: block; font-size: 38px; font-weight: 900; color: var(--navy); line-height: 1.05; }
.kpi span { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.kpi.accent { background: var(--navy); }
.kpi.accent b { color: var(--groen); }
.kpi.accent span { color: rgba(255, 255, 255, 0.72); }

/* Klantkaarten */
.klant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 18px; margin-top: 22px; }
.klant {
  background: var(--wit); border-radius: var(--radius);
  box-shadow: var(--schaduw-licht); padding: 22px 24px;
  display: flex; flex-direction: column; gap: 10px;
  border: none; text-align: left; font-family: inherit; cursor: pointer;
}
.klant:hover { box-shadow: var(--schaduw); }
.klant[aria-pressed="true"] { outline: 2px solid var(--groen); outline-offset: -2px; }
.klant-kop { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.klant-naam { font-weight: 700; color: var(--navy); font-size: 15px; line-height: 1.3; }
.klant-aantal { font-size: 30px; font-weight: 900; color: var(--navy); line-height: 1; }
.klant-meta { font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.klant-soort {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blauw); background: var(--witblauw);
  padding: 3px 9px; border-radius: 20px; align-self: flex-start;
}
.klant-demo { background: #fff2cc; color: #7a5a12; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin: 22px 0 16px; }
.filters label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--navy);
}
.filters select, .filters input {
  border: 1px solid var(--lichtblauw); border-radius: var(--radius-klein);
  padding: 9px 14px; font-family: inherit; font-size: 15px;
  color: var(--navy); background: var(--wit); min-width: 210px;
}
.filters select:focus, .filters input:focus { outline: 2px solid var(--groen); outline-offset: 1px; }
.telling { margin-left: auto; font-size: 13px; font-weight: 600; }

/* Tabel */
.tabel-omhulsel {
  background: var(--wit); border-radius: var(--radius);
  box-shadow: var(--schaduw-licht); overflow: hidden;
}
.tabel { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabel thead th {
  background: var(--navy); color: var(--wit);
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-align: left; padding: 13px 16px; white-space: nowrap;
}
.tabel tbody td { padding: 12px 16px; border-top: 1px solid var(--witblauw); vertical-align: top; }
.tabel tbody tr:nth-child(even) { background: #fbfbfc; }
.tabel tbody tr:hover { background: var(--witblauw); }
.rechts { text-align: right; }
.order-nr { font-weight: 700; color: var(--navy); white-space: nowrap; }
.zacht { color: #7b8794; }

.status {
  display: inline-block; padding: 3px 12px; border-radius: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.status-nieuw { background: var(--groen); color: var(--navy); }
.status-bevestigd { background: #d6e4f7; color: #1f4c86; }
.status-in_behandeling { background: #fde9c8; color: #8a5a11; }
.status-geleverd { background: var(--witblauw); color: var(--blauw); }
.status-geannuleerd { background: #f3d6d6; color: #8f2f2f; }

.leeg { padding: 44px; text-align: center; color: #7b8794; }

.voet {
  margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 24px;
  justify-content: space-between; font-size: 12px; color: #7b8794;
}

@media (max-width: 900px) {
  .inlog { grid-template-columns: 1fr; }
  .inlog-beeld { padding: 44px 28px; }
  .inlog-logo { max-width: 72vw; height: auto; }
  .inlog-formulier { padding: 36px 28px; }
  .balk { flex-wrap: wrap; gap: 10px 16px; padding: 14px 18px; }
  /* Het logo heeft een vaste hoogte en wordt op 375px breder dan het scherm. */
  .balk-logo { height: 30px; max-width: 46vw; object-fit: contain; object-position: left; }
  .balk-titel { flex-basis: 100%; order: 3; }
  .balk-titel h1 { font-size: 19px; }
  .balk-rechts { margin-left: auto; }
  .inhoud { padding: 24px 18px 56px; }
  .filters select, .filters input { min-width: 0; width: 100%; }
  .filters label { width: 100%; }
  .telling { margin-left: 0; }
  .tabel-omhulsel { overflow-x: auto; }
  .tabel { min-width: 860px; }
}
