/*
  Fyxdo — Nieuwe afspraak.
  Laadvolgorde: brand/fonts/fonts.css → brand/tokens.css → brand/icons/icons.css
               → screens/auth/auth.css → screens/app/app.css → screens/klanten/klanten.css
               → screens/afspraken/afspraak.css
  Bouwt voort op het formulier en de klantkiezer uit klanten.css (fx-form-page, fx-combo,
  fx-picked, fx-picked-extra, fx-split, fx-textarea, fx-dup). Alleen variabelen uit tokens.css.
  Geen gradiënten, geen schaduwen, geen inline stijl.
*/

/* ---------- Keuzelijst (Duur) ---------- */
.fx-select-wrap { position: relative; }
.fx-select {
  padding-right: 44px;
  cursor: pointer;
  background: var(--card);
}
.fx-select-wrap > :is(.fx-ico, .fx-icon) {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: var(--size-icon-sm);
  height: var(--size-icon-sm);
  color: var(--text);
  pointer-events: none;
}

/* Datum en tijd: de native kiezer van de telefoon. Zelfde veld als de rest. */
.fx-input[type="date"], .fx-input[type="time"] { min-width: 0; font-variant-numeric: tabular-nums; }
.fx-input[type="date"]::-webkit-date-and-time-value,
.fx-input[type="time"]::-webkit-date-and-time-value { text-align: left; }

.fx-split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* Eindtijd onder Duur: "Tot 15:30" */
.fx-hint--end { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Herhalen (§ 2a): grens en samenvatting onder Einde ---------- */
.fx-repeat-sum { display: flex; flex-direction: column; gap: var(--space-1); margin-top: calc(var(--space-2) * -1); }
.fx-repeat-sum:empty { display: none; }

/* ---------- Bedrag met euroteken ---------- */
.fx-money { position: relative; }
.fx-money > span {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.fx-money .fx-input { padding-left: 40px; font-variant-numeric: tabular-nums; }

/* ---------- Vinkje (Bewaren als dienst) ---------- */
.fx-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--size-touch);
  font-size: 16px; line-height: 24px;
  color: var(--text);
  cursor: pointer;
}
.fx-check input {
  position: absolute;
  left: 0; top: 50%;
  width: var(--size-touch); height: var(--size-touch);
  margin: 0;
  transform: translate(-10px, -50%);   /* aanraakdoel 44 px rond het vak van 24 px */
  opacity: 0;
  cursor: pointer;
}
.fx-check-box {
  flex: none;
  width: 24px; height: 24px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: transparent;
}
.fx-check-box :is(.fx-ico, .fx-icon) { width: 16px; height: 16px; }
.fx-check input:checked + .fx-check-box { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.fx-check input:focus-visible + .fx-check-box { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (forced-colors: active) { .fx-check input:checked + .fx-check-box { background: Highlight; color: HighlightText; } }
.fx-check + .fx-hint { margin-top: calc(var(--space-2) * -1); padding-left: 36px; }

/* ---------- Plek: recente plekken als knoppen ---------- */
.fx-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.fx-chip {
  min-height: var(--size-touch);
  padding: 0 var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px; line-height: 20px; font-weight: 600;
  cursor: pointer;
}
.fx-chip:hover { background: var(--tint); }
.fx-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Overlap (adviserend, zelfde vorm als de dubbele-klant-hint) ---------- */
.fx-overlap { margin-top: calc(var(--space-2) * -1); }
.fx-overlap ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); font-variant-numeric: tabular-nums; }

/* ---------- Al gepland op deze dag ---------- */
.fx-dayplan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.fx-dayplan h2 {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  font-size: 14px; line-height: 20px; font-weight: 600;   /* text-field-label */
}
.fx-dayplan ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.fx-dayplan li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--space-2);
  align-items: center;
  min-height: 36px;
  padding: var(--space-1) var(--space-4);
  box-sizing: border-box;
  font-size: 14px; line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.fx-dayplan li + li { border-top: 1px solid var(--border); }
.fx-dayplan li > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-dayplan .is-busy { color: var(--text-muted); }
.fx-dayplan .is-new { background: var(--tint); font-weight: 600; }
.fx-dayplan p { margin: 0; padding: 0 var(--space-4) var(--space-3); font-size: 14px; line-height: 20px; color: var(--text-muted); }

/* ---------- Plek in een vak met meer velden ---------- */
.fx-field-group { display: flex; flex-direction: column; gap: var(--space-2); }

/* ---------- Gelukt: melding bovenaan de agenda ---------- */
.fx-agenda-body > .fx-agenda-body__inner > .fx-alert--ok { margin: 0 0 var(--space-4); }
.fx-alert:focus { outline: none; }
.fx-hint--end:empty { display: none; }
