/* ===================== OVERDRACHT =====================
   Design-handoff "Overdracht 1b" (docs/design/design_handoff_overdracht/): het gezin-blok
   (entry), het overzicht per categorie, het detail-scherm en de schrijf-sheet. Op de
   tokens uit application.css; apart bestand (zelfde patroon als home.css).
   Semantiek: terracotta = jij / primair / belangrijk, paars = de andere ouder. */

/* ----- Gezin-blok (entry op de hub) ----- */
.ov-entry {
  display: block;
  border-radius: 20px;
  padding: 17px;
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--dur-fast) var(--curve-decel);
}
.ov-entry:active { transform: scale(0.985); }
.ov-entry--filled {
  background: var(--gradient-coparent);
  box-shadow: 0 14px 30px rgba(89, 66, 201, 0.3);
  color: var(--color-on-accent);
}
.ov-entry--empty {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-4);
}
.ov-entry--disabled {
  background: var(--color-softer);
  border: 1px solid var(--color-line);
  opacity: 0.6;
}
/* Kind-poort: de kaart als knop — badge "Eerst een kind", tikken opent de kind-sheet. */
button.ov-entry--gate { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.ov-entry--gate .kind-gate-badge { display: inline-flex; margin-top: 12px; }
.ov-entry__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  opacity: 0.85;
}
.ov-entry__eyebrow svg { width: 15px; height: 15px; flex: none; }
.ov-entry__eyebrow--purple { color: var(--color-coparent); opacity: 1; }
.ov-entry__title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-22);
  font-weight: 600;
  margin: 8px 0 3px;
}
.ov-entry__count { display: block; font-size: var(--text-13); opacity: 0.9; }
.ov-entry__chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.ov-entry__chip {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  padding: 6px 10px;
}
.ov-entry__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: var(--text-13);
  font-weight: 700;
}
.ov-entry__footer svg { width: 18px; height: 18px; }
.ov-entry__empty-title { display: block; font-size: var(--text-15); font-weight: 700; margin: 9px 0 3px; }
.ov-entry__empty-sub { display: block; font-size: var(--text-13); color: var(--color-text-muted); line-height: 1.45; }
.ov-entry__add {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--color-accent);
  font-weight: 700;
  font-size: var(--text-sm);
}
.ov-entry__add svg { width: 17px; height: 17px; }
/* Disabled (geen co-ouder): zelfde kaartvorm, ontkleurd + slot-badge i.p.v. paars/chevron-CTA. */
.ov-entry--disabled .ov-entry__empty-title { margin: 0 0 3px; color: var(--color-text-muted); }
.ov-entry--disabled .ov-entry__footer--disabled {
  border-top-color: var(--color-line);
  color: var(--color-faint);
}
.ov-entry--disabled .ov-entry__footer--disabled svg { color: var(--color-faint); }
.ov-entry__disabled-hint { font-size: var(--text-xs); color: var(--color-faint); line-height: 1.45; margin: 9px 3px 0; }

/* ----- Overzicht ----- */
/* Ruimte onderaan voor de sticky toevoeg-knop + bottom-nav. */
.ov { padding-bottom: 96px; }
.ov__banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-coparent-soft);
  border-radius: 15px;
  padding: 13px 15px;
  margin-bottom: 20px;
}
.ov__banner-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-coparent);
  color: var(--color-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ov__banner-icon svg { width: 19px; height: 19px; }
.ov__banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ov__banner-title { font-size: var(--text-sm); font-weight: 700; }
.ov__banner-sub { font-size: var(--text-13); color: var(--color-coparent); margin-top: 1px; }

.ov__group-head { display: flex; align-items: center; gap: 8px; margin: 0 2px 9px; }
.ov__group-head:not(:first-of-type) { margin-top: 6px; }
.ov__group-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--color-softer);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ov__group-icon svg { width: 14px; height: 14px; }
.ov__group-label {
  font-size: var(--text-13);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ov__item {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  box-shadow: var(--shadow-4);
  padding: 13px 15px;
  margin-bottom: 12px;
  color: var(--color-text);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--curve-decel);
}
.ov__item:active { transform: scale(0.985); }
.ov__item--belangrijk { border-left: 3px solid var(--color-accent); }
/* Afgehandeld: gedempt + doorgestreept, kleiner, geen schaduw — "van de lijst". */
.ov__group-label--done { color: var(--color-text-muted); margin-top: 8px; }
.ov__item--done { box-shadow: none; background: var(--color-bg); opacity: 0.7; }
.ov__item--done .ov__item-text { text-decoration: line-through; color: var(--color-text-muted); }
.ov__item-top { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.ov__item-spacer { flex: 1; }
.ov__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-11);
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-soft);
  border-radius: 6px;
  padding: 3px 8px;
}
.ov__badge svg { width: 11px; height: 11px; }
.ov__read {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-11);
  font-weight: 700;
  color: var(--color-faint);
}
.ov__read--gelezen { color: var(--color-coparent); }
.ov__read svg { width: 12px; height: 12px; }
.ov__item-text { font-size: var(--text-sm); line-height: 1.5; }
.ov__geldig {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  font-size: var(--text-11);
  font-weight: 700;
  color: var(--color-faint);
  background: var(--color-softer);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 3px 8px;
}
.ov__geldig svg { width: 11px; height: 11px; }

/* Lege/solo-staat: shared EmptyStateComponent (.empty-state) — geen eigen defs meer. */

/* Primaire CTA (terracotta) — sticky footer. */
.ov__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  border: none;
  font: inherit;
  font-weight: 700;
  font-size: var(--text-15);
  padding: 13px 20px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(140, 55, 30, 0.22);
  transition: transform var(--dur-fast) var(--curve-decel);
}
.ov__cta:active { transform: scale(0.96); }
.ov__cta svg { width: 18px; height: 18px; }
.ov__cta--full { display: flex; width: 100%; margin-top: 0; font-size: var(--text-15); padding: 15px; border-radius: 15px; }
.ov__footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  padding: 10px 18px 12px;
  background: linear-gradient(to top, var(--color-bg) 62%, transparent);
  z-index: 5;
}
@media (min-width: 560px) {
  .ov__footer { max-width: 520px; margin: 0 auto; }
}

/* ----- Detail ----- */
/* Het detail heeft geen scherm-titel (design: de paarse hero draagt de kop) —
   de lege section-head-h1 mag geen ruimte innemen. */
.ov-detail .section-head__title:empty { display: none; }
.ov-detail__hero {
  background: var(--gradient-coparent);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 14px 30px rgba(89, 66, 201, 0.3);
  color: var(--color-on-accent);
  margin-top: 10px;
}
.ov-detail__hero-row { display: flex; align-items: center; gap: 9px; }
.ov-detail__hero-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ov-detail__hero-icon svg { width: 20px; height: 20px; }
.ov-detail__hero-cat {
  display: block;
  font-size: var(--text-11);
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  opacity: 0.85;
}
.ov-detail__hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: var(--text-xs);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 3px 9px;
}
.ov-detail__hero-badge svg { width: 12px; height: 12px; }
.ov-detail__hero-text { font-size: var(--text-lg); font-weight: 600; line-height: 1.5; margin-top: 15px; }

.ov-detail__chips { display: flex; gap: 8px; margin: 16px 2px 0; flex-wrap: wrap; }
.ov-detail__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-13);
  font-weight: 700;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 8px 12px;
}
.ov-detail__chip svg { width: 14px; height: 14px; }

.ov-detail__timeline {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  box-shadow: var(--shadow-4);
  padding: 6px 15px;
  margin-top: 20px;
}
.ov-detail__tl-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; }
.ov-detail__tl-row + .ov-detail__tl-row { border-top: 1px solid var(--color-line); }
.ov-detail__tl-avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: var(--text-13);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ov-detail__tl-avatar--co { background: var(--color-coparent); }
.ov-detail__tl-avatar--unread { background: var(--color-coparent-soft); color: var(--color-coparent); }
.ov-detail__tl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ov-detail__tl-title { font-size: var(--text-sm); font-weight: 700; }
.ov-detail__tl-title--muted { color: var(--color-text-muted); }
.ov-detail__tl-sub { font-size: var(--text-xs); color: var(--color-faint); }
.ov-detail__tl-check { flex: none; width: 20px; height: 20px; color: var(--color-coparent); }

/* Afhandelen — prominente, groene bevestig-knop boven bewerken/verwijderen. */
.ov-detail__done-form { margin-top: 20px; }
.ov-detail__done {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-green-soft);
  color: var(--color-green-deep);
  border: none;
  font: inherit;
  font-weight: 700;
  font-size: var(--text-15);
  padding: 14px;
  border-radius: 13px;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--curve-decel);
}
.ov-detail__done:active { transform: scale(0.98); }
.ov-detail__done svg { width: 18px; height: 18px; }
/* Terug-op-de-lijst: neutraal i.p.v. groen (het is een terugdraaiing, geen bevestiging). */
.ov-detail__done--undo { background: var(--color-softer); color: var(--color-text); }

.ov-detail__actions { display: flex; gap: 11px; margin-top: 11px; }
.ov-detail__edit {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  font-size: var(--text-15);
  padding: 13px;
  border-radius: 13px;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--curve-decel);
}
.ov-detail__edit:active { transform: scale(0.96); }
.ov-detail__edit svg { width: 17px; height: 17px; }
.ov-detail__delete-form { flex: none; display: flex; }
.ov-detail__delete {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-error-soft);
  color: var(--color-error);
  border: none;
  padding: 13px 16px;
  border-radius: 13px;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--curve-decel);
}
.ov-detail__delete:active { transform: scale(0.96); }
.ov-detail__delete svg { width: 18px; height: 18px; }

/* ----- Schrijf-sheet ----- */
/* Frame = shared/_sheet form-variant (kop + sticky Opslaan-footer, conventions
   §Opslag-model); hier alleen nog de inhoud. */
.ov-sheet__label {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-faint);
  margin: 18px 2px 9px;
}
.ov-sheet__label:first-child { margin-top: 0; }
.ov-sheet__optional { font-weight: 600; text-transform: none; letter-spacing: 0; }

.ov-sheet__cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 20px; }
.ov-sheet__cat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 13px 6px;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.ov-sheet__cat:active { transform: scale(0.96); }
.ov-sheet__cat svg { width: 21px; height: 21px; }
.ov-sheet__cat-rb { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; }
.ov-sheet__cat:has(.ov-sheet__cat-rb:checked) {
  background: var(--color-soft);
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  font-weight: 700;
}

.ov-sheet__textwrap {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 6px 14px 14px;
}
.ov-sheet__textarea {
  width: 100%;
  box-sizing: border-box;
  border: none;
  background: none;
  outline: none;
  resize: none;
  font-family: inherit;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text);
  padding: 12px 2px 0;
}

.ov-sheet__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ov-sheet__chip {
  position: relative;
  font-size: var(--text-13);
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 11px;
  padding: 8px 13px;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.ov-sheet__chip:active { transform: scale(0.96); }
.ov-sheet__chip-rb { position: absolute; opacity: 0; pointer-events: none; }
.ov-sheet__chip:has(.ov-sheet__chip-rb:checked) {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 700;
}

.ov-sheet__switchrow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 13px;
  padding: 13px 15px;
  margin-top: 14px;
  cursor: pointer;
}
.ov-sheet__switch-icon { width: 18px; height: 18px; color: var(--color-text-muted); }
.ov-sheet__switch-label { flex: 1; font-size: var(--text-sm); font-weight: 700; }
.ov-sheet__switch-cb { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; }
.ov-sheet__switch {
  flex: none;
  width: 46px;
  height: 27px;
  border-radius: 14px;
  background: var(--color-line);
  padding: 3px;
  display: flex;
  justify-content: flex-start;
  transition: background 0.2s ease;
}
.ov-sheet__switch-knob {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.ov-sheet__switchrow:has(.ov-sheet__switch-cb:checked) .ov-sheet__switch {
  background: var(--color-accent);
  justify-content: flex-end;
}
.ov-sheet__switchrow:has(.ov-sheet__switch-cb:checked) .ov-sheet__switch-icon { color: var(--color-accent); }

.ov-sheet__footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-13);
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-top: 18px;
}
.ov-sheet__footnote svg { flex: none; width: 15px; height: 15px; color: var(--color-coparent); }
