/* ============================================================
   Klantwensen september 2026 — team (agenda, medewerkers,
   omzet, opdrachtgevers). Alleen klassen met prefix wt-.
   ============================================================ */

/* ---------- Algemeen ---------- */
.wt-sectie { margin-top: 16px; }
.wt-av {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.wt-av-sm { width: 22px; height: 22px; font-size: 9.5px; margin-right: 6px; vertical-align: middle; }
.wt-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.wt-maps, .wt-tel { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; overflow-wrap: anywhere; }
.wt-maps:hover, .wt-tel:hover { color: var(--accent-dark); text-decoration-color: var(--accent); }
.wt-open { color: #7d5f08; font-weight: 600; }
.wt-gevaar { color: var(--red); border-color: rgba(194, 59, 46, .35); }
.wt-gevaar:hover { background: #fbeceb; }
.wt-uitleg { font-size: 13px; color: var(--ink-soft); margin: 0 0 10px; }

.wt-feiten { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.wt-feiten > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.wt-feiten > div:last-child { border-bottom: 0; }
.wt-feiten dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); font-weight: 700; padding-top: 2px; }
.wt-feiten dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.wt-foot { flex-wrap: wrap; }

/* Formulieren */
.wt-form .wt-breed { grid-column: 1 / -1; }
.wt-form-sectie { border: 0; border-top: 1px solid var(--line-soft); padding: 14px 0 6px; margin: 0; min-width: 0; }
.wt-form-sectie:first-child { border-top: 0; padding-top: 0; }
.wt-form-sectie legend { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink); padding: 0 0 8px; }
.wt-klantform .field input, .wt-klantform .field select { min-height: 44px; }
.wt-zoekveld { position: relative; }
.wt-zoekresultaten {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 4px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(24, 54, 74, .14); max-height: 280px; overflow-y: auto;
}
.wt-zoek-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; min-height: 44px;
  padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
}
.wt-zoek-item:last-child { border-bottom: 0; }
.wt-zoek-item:hover, .wt-zoek-item:focus-visible { background: var(--blue-pale); outline: none; }
.wt-zoek-item span { font-size: 12.5px; color: var(--ink-soft); }
.wt-zoek-leeg { padding: 10px 12px; font-size: 13px; color: var(--ink-soft); }

/* ---------- Agenda ---------- */
.wt-agenda-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wt-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.wt-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 13px;
  border: 1.5px solid var(--line-soft); border-radius: 999px; background: var(--card);
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.wt-chip:hover { border-color: var(--line); color: var(--ink); }
.wt-chip.actief { background: var(--ink); border-color: var(--ink); color: #fff; }
.wt-chip.actief .wt-dot { box-shadow: 0 0 0 2px #fff; }
.wt-weeknav { display: flex; gap: 6px; flex-wrap: wrap; }
.wt-weeklabel { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; font-family: var(--display); font-size: 18px; }
.wt-weeklabel .muted { font-family: var(--sans); font-size: 13px; }

.wt-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wt-dag { min-width: 0; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 8px; min-height: 180px; }
.wt-dag.vandaag { background: var(--accent-bg); border-color: #f3c9a3; }
.wt-dag-kop { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.wt-dag-kop strong { font-family: var(--display); font-size: 22px; color: var(--ink); letter-spacing: 0; }
.wt-dag.vandaag .wt-dag-kop strong { color: var(--accent-dark); }
.wt-leeg { font-size: 12px; color: var(--ink-faint); padding: 4px 2px; }

.wt-item {
  background: var(--card); border: 1px solid var(--line-soft); border-left: 4px solid var(--wt-kleur, var(--ink-faint));
  border-radius: 6px; margin-bottom: 7px; overflow: hidden; box-shadow: var(--shadow);
}
.wt-item-hoofd {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
  padding: 7px 9px 4px; border: 0; background: transparent; font: inherit; color: var(--ink); text-align: left; cursor: pointer; min-width: 0;
}
.wt-item-hoofd:hover { background: var(--blue-pale); }
.wt-item-hoofd:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.wt-item-tijd { font-size: 12px; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.wt-item-wie { display: flex; align-items: center; font-size: 12px; color: var(--ink-soft); min-width: 0; overflow-wrap: anywhere; }
.wt-item-titel { font-size: 13.5px; line-height: 1.3; overflow-wrap: anywhere; }
.wt-item-klant { font-size: 12.5px; color: var(--ink-soft); overflow-wrap: anywhere; }
.wt-item-link { display: block; padding: 3px 9px; font-size: 12px; color: var(--ink-soft); }
.wt-item-link:last-child { padding-bottom: 8px; }
.wt-item-link.wt-maps::before { content: "↗ "; color: var(--accent); text-decoration: none; }
.wt-item-link.wt-tel::before { content: "☎ "; color: var(--accent); }

.wt-daglijst { display: none; }
.wt-mdag { margin-bottom: 14px; }
.wt-mdag-kop { font-family: var(--display); font-size: 18px; font-weight: 600; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

@media (min-width: 761px) and (max-width: 1180px) {
  .wt-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wt-week { display: none; }
  .wt-daglijst { display: block; }
  .wt-weeknav { width: 100%; }
  .wt-weeknav .btn { flex: 1; }
  .wt-chip { min-height: 44px; }
  .wt-item-hoofd { padding: 10px 12px 6px; }
  .wt-item-titel { font-size: 15px; }
  .wt-item-link { display: flex; align-items: center; min-height: 40px; padding: 6px 12px; font-size: 14px; border-top: 1px solid var(--line-soft); }
  .wt-item-link:last-child { padding-bottom: 6px; }
}

/* ---------- Medewerkers ---------- */
.wt-logins { display: grid; gap: 8px; }
.wt-login {
  display: grid; grid-template-columns: minmax(200px, 1.1fr) minmax(0, 2fr) auto; gap: 16px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--card);
}
.wt-login-wie { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wt-login-wie > div { display: flex; flex-direction: column; min-width: 0; }
.wt-login-wie .muted { font-size: 13px; }
.wt-login-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13.5px; min-width: 0; }
.wt-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.wt-online { background: var(--green-bg); color: #1d7a41; }
.wt-online .wt-dot { background: var(--green); }
.wt-offline { background: #eef1f3; color: var(--ink-faint); }
.wt-offline .wt-dot { background: var(--grey); }

.wt-rechten { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.wt-recht-kaart {
  border: 1px solid var(--line-soft); border-top: 4px solid var(--wt-kleur, var(--ink-faint)); border-radius: var(--radius);
  background: var(--card); padding: 14px; min-width: 0;
}
.wt-recht-kaart.wt-uit { opacity: .72; }
.wt-recht-kaart.wt-eigenaar { background: var(--blue-pale); }
.wt-recht-kop { display: flex; align-items: center; gap: 10px; }
.wt-recht-kop > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wt-recht-kop .muted { font-size: 13px; overflow-wrap: anywhere; }
.wt-actief { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); min-height: 44px; cursor: pointer; }
.wt-recht-rij { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 12px; margin-top: 12px; }
.wt-recht-rij select { min-height: 44px; }
.wt-kleurveld input[type="color"] { width: 100%; height: 44px; padding: 3px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.wt-kleurveld input[type="color"]:disabled { cursor: not-allowed; opacity: .6; }
.wt-vinkjes { border: 0; margin: 12px 0 0; padding: 0; min-width: 0; }
.wt-vinkjes legend { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); font-weight: 700; margin-bottom: 6px; }
.wt-vinkjes { display: flex; flex-wrap: wrap; gap: 6px; }
.wt-vinkjes label {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 5px 10px;
  border: 1px solid var(--line-soft); border-radius: 6px; background: var(--paper); font-size: 13px; cursor: pointer;
}
.wt-vinkjes label:has(input:checked) { background: var(--green-bg); border-color: #b6dfc6; }
.wt-vinkjes input { width: 17px; height: 17px; accent-color: var(--green); flex: 0 0 auto; }
.wt-vinkjes input:disabled + span { color: var(--ink-soft); }

@media (max-width: 760px) {
  .wt-login { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wt-login .btn { width: 100%; }
  .wt-login-status { flex-direction: column; align-items: flex-start; }
  .wt-rechten { grid-template-columns: minmax(0, 1fr); }
  .wt-vinkjes label { min-height: 44px; flex: 1 1 100%; }
}

/* ---------- Omzet ---------- */
.wt-tabs { margin-bottom: 16px; }
.wt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wt-kpi { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wt-kpi-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); font-weight: 700; }
.wt-kpi-waarde { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wt-kpi .muted { font-size: 12.5px; }
.wt-kpi-groen .wt-kpi-waarde { color: #1d7a41; }
.wt-kpi-amber .wt-kpi-waarde { color: #7d5f08; }

.wt-ranglijst { display: grid; gap: 14px; }
.wt-rang-kop { display: flex; align-items: center; gap: 4px; min-width: 0; }
.wt-rang-kop strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wt-rang-nr { width: 22px; font-family: var(--display); font-size: 17px; color: var(--ink-faint); flex: 0 0 auto; }
.wt-rang-bedrag { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wt-balk { height: 12px; background: var(--paper-2, #efe8d9); border-radius: 6px; margin: 6px 0 5px; overflow: hidden; }
.wt-balk span { display: block; height: 100%; background: var(--wt-kleur, var(--accent)); border-radius: 6px; }
.wt-rang-sub { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink-soft); padding-left: 26px; }

@media (max-width: 900px) { .wt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .wt-kpi-waarde { font-size: 23px; } .wt-kpi { padding: 12px; } }

/* ---------- Opdrachtgevers ---------- */
.wt-klant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.wt-prijslijst { display: grid; gap: 0; }
.wt-prijs { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.wt-prijs:last-child { border-bottom: 0; }
.wt-prijs label { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; min-width: 0; }
.wt-prijs label small { font-weight: 400; font-size: 12px; color: var(--ink-faint); }
.wt-prijs-in { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.wt-prijs-in span { color: var(--ink-soft); }
.wt-prijs-in input {
  width: 110px; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; font: inherit; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums;
}
.wt-prijs-in input:focus { outline: none; border-color: var(--accent); }
.wt-klanten-tabel tr.wt-klant-rij { cursor: pointer; }
.wt-notitie-form { margin-top: 12px; }

@media (max-width: 760px) {
  .wt-klant-grid { grid-template-columns: minmax(0, 1fr); }
  .wt-feiten > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .wt-prijs-in input { width: 96px; }
  .wt-klant .page-head > .btn { width: 100%; }
}
