/* Záznamy – round 9 additions (docs/SPEC_V4.md §3 R10, R14–R17; views/zaznamy.js, prefix .zz-).
   The base rules of the screen stay in prevadzka.css; this file adds the section folds, the row menu „⋯“, choosing
   animals („Vybrať“ → „Odobrať vybrané“), the young of a birth and the „Kto robil“ / „Doklad“ / „Fotky“ blocks of the event
   sheet. Loaded by zaznamy.js ensureZzStyles() unless index.html links it. Colours only through tokens (light + dark),
   nothing has a fixed width, every target is ≥ 44 px on touch. */

/* ---- folds (ui.js collapsible in place): header = chevron + the small uppercase title, summary under it ---- */
.zz-sec > .zz-sec-head { display: flex; align-items: center; gap: 2px; min-width: 0; min-height: 44px; }
.zz-sec > .zz-sec-head > .fold-toggle { margin: 0 0 0 -10px; }
.zz-sec-heading { flex: 1 1 auto; min-width: 0; }
.zz-sec > .zz-sec-head .v2-group-head { margin: 0 4px 0 0; }
.zz-sec-heading > .fold-summary { margin: 1px 4px 0 0; }
.zz-sec-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.zz-sec-body[hidden] { display: none; }
.zz-fold-bar { margin: -4px 0 -6px; }
/* a task block folded in place (Úlohy skupiny, Úlohy of an animal) keeps its badge on the title row */
.ts-lb-head[data-fold-head] { flex-wrap: wrap; row-gap: 0; }
.ts-lb-head[data-fold-head] > .fold-summary { flex-basis: 100%; margin-left: 32px; }

/* ---- a row of the registry: [✓ while choosing] row button [⋯] ---- */
.zz-row-line { display: flex; align-items: stretch; min-width: 0; }
.zz-row-line > .zz-row-btn { flex: 1 1 auto; }
.zz-row.is-open > .zz-row-line { background: var(--green-tint, var(--surface-2)); }
.zz-row-check { display: flex; flex: none; align-items: center; justify-content: center; width: 44px; margin-right: -10px; cursor: pointer; }
.zz-row-check[hidden] { display: none; }
.zz-row-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.zz-row.is-selected > .zz-row-line { background: var(--green-soft); }
.zz-row-menu { display: flex; flex: none; align-items: center; padding-right: 4px; }
.zz-row-menu[hidden] { display: none; }
.zz-row-menu .zz-row-more { width: 44px; height: 44px; min-width: 44px; padding: 0; color: var(--text-2); }

/* ---- „Vybrať“: the bar of the chosen animals ---- */
.zz-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface-2); }
.zz-selbar[hidden] { display: none; }
.zz-sel-count { flex: 1 1 auto; margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.zz-sel-note { flex: 1 1 100%; margin: 0; color: var(--text-2); font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; }
.zz-pill.is-danger { border-color: var(--critical, var(--border-strong)); color: var(--critical-text); }
.zz-pill:disabled { opacity: 0.55; cursor: default; }
.zz-link { color: var(--accent); font-weight: 600; }

/* ---- the event rows: people, documents, photos ---- */
.zz-ev-meta { color: var(--text-2); }
.zz-ev-photos { color: var(--text-2); font-weight: 600; white-space: nowrap; }

/* ---- the event sheet: „Kto robil“, „Doklad“, „Fotky udalosti“, the young of a birth ---- */
.zz-event-sheet .zz-ev-block { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--grid); }
.zz-event-sheet .zz-ev-block[hidden] { display: none; }
.zz-event-sheet .zz-f-people { margin-top: 4px; }
/* the blocks under the form read like its fields (one label style in the sheet) */
.zz-event-sheet .zz-ev-block .pp-label,
.zz-event-sheet .zz-ev-block .dk-chips-label { color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.zz-young { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.zz-young-row { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; }
.zz-young-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.zz-young-x { flex: none; }
.zz-sheet-note { margin: 0; color: var(--text-2); font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; }

@media (pointer: coarse) {
  .zz-row-check { width: 48px; }
  .zz-link { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---- round 13: a member's event of an animal, read-only view (views/zaznamy.js openEventSheet({ member }), R9 d) ---- */
.zz-member-view { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.zz-member-row { display: flex; flex-wrap: wrap; gap: 2px 10px; min-width: 0; }
.zz-member-row dt { flex: 0 0 auto; min-width: 0; color: var(--text-2); font-size: 13.5px; }
.zz-member-row dd { flex: 1 1 160px; min-width: 0; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
