/* Voertip op gewicht (taak 30) en groeifoto's als tijdlijn (taak 33), 23-11-2026. acties.js (voerBlad), views/dier.js.
   Ronde 14-stijl: rustig, geen alarmkleur; de tip is een stille regel. Kleuren uit de tokens van thema.css (Donker en Licht). */

/* ---------- voertip in het voerblad */
.vt-tip { display: flex; align-items: center; gap: 10px; margin: -2px 0 2px; padding: 10px 6px 10px 14px; border-radius: 12px; background: var(--surface-2, var(--surface)); color: var(--text); }
.vt-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vt-tx b { font-size: 15px; line-height: 20px; font-weight: 600; }
.vt-tx small { font-size: 13px; line-height: 17px; color: var(--text-2); }
.vt-kies { flex: none; min-height: 44px; min-width: 56px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--accent); background: transparent; color: var(--accent); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.vt-kies:active { background: var(--accent-soft, var(--accent-vlak)); }
.vt-weg { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--text-2); border-radius: 50%; cursor: pointer; }
.vt-weg svg { width: 18px; height: 18px; }
.vt-past { display: flex; align-items: center; gap: 6px; margin: -4px 0 2px; font-size: 13px; line-height: 17px; color: var(--text-2); }
.vt-past svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ---------- voertip als rij in de bladen Voeren en Gewicht */
.vt-rij { margin-top: 12px !important; }
.vt-rij .w { display: inline-flex; flex-direction: column; align-items: flex-end; }
.vt-rij .vt-wat { display: inline-flex; align-items: center; justify-content: flex-end; }
.vt-rij .vt-ok { display: inline-flex; margin-right: 6px; color: var(--accent); }
.vt-rij .vt-ok svg { width: 16px; height: 16px; }
.vt-uitleg { margin: 0; padding: 0 16px 12px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.gr-regels { margin-top: 12px; }

/* ---------- groeifoto's */
.gr-leeg { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 16px; border-radius: 12px; background: var(--surface); color: var(--text-2); }
.gr-leeg > svg { width: 30px; height: 30px; color: var(--text-2); }
.gr-leeg b { color: var(--text); font-size: 17px; font-weight: 600; }
.gr-leeg span { font-size: 15px; line-height: 21px; max-width: 34ch; }
.gr-leeg .knop { margin-top: 10px; }

.gr-beeld { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2, var(--surface)); border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1 / 1; }
.gr-beeld img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* eerste en nu naast elkaar */
.gr-naast { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.gr-naast-vak { margin: 0; min-width: 0; }
.gr-naast-vak figcaption { display: flex; flex-direction: column; gap: 1px; padding: 6px 2px 0; font-size: 13px; line-height: 17px; color: var(--text-2); }
.gr-naast-vak .gr-wanneer { font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--text-2); }
.gr-naast-vak .gr-gram { font-size: 17px; line-height: 22px; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.gr-groei { grid-column: 1 / -1; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft, var(--accent-vlak)); color: var(--text); font-size: 15px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }

/* de tijdlijn: nieuw boven, een lijn langs de foto's */
.gr-lijn { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; }
.gr-lijn::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: var(--separator); }
.gr-item { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: start; padding: 0 0 16px; }
.gr-item::before { content: ""; position: absolute; left: -18px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-sizing: border-box; }
.gr-item:first-child::before { background: var(--accent); }
.gr-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 2px; }
.gr-datum { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text); }
.gr-leeftijd { font-size: 13px; line-height: 17px; color: var(--text-2); }
.gr-gewicht { display: flex; flex-direction: column; margin-top: 4px; }
.gr-gewicht .gr-gram { font-size: 20px; line-height: 24px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.gr-gewicht small { font-size: 13px; line-height: 17px; color: var(--text-2); }
.gr-geen { font-size: 13px; line-height: 17px; color: var(--text-2); }
.gr-verschil { margin-top: 4px; font-size: 13px; line-height: 17px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.gr-verschil.op { color: var(--accent); }
.gr-kop { margin: 0 0 12px; font-size: 15px; line-height: 20px; color: var(--text-2); }
.gr-onder { position: sticky; bottom: 0; z-index: 2; margin: 8px -4px 0; padding: 10px 4px calc(10px + env(safe-area-inset-bottom)); background: var(--sheet, var(--bg)); }
.gr-knop { min-height: 48px; width: 100%; }
.gr-leeg + .gr-onder { position: static; }

@media (min-width: 700px) {
  .gr-item { grid-template-columns: 160px 1fr; }
  .gr-naast { max-width: 520px; }
}

/* UX-keuring 23-11: voerblad compacter, Gevoerd en Geweigerd vast onderin */
.vt-acties { position: sticky; bottom: 0; z-index: 2; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: var(--sheet, var(--bg)); }
.vt-tip { padding-top: 6px; padding-bottom: 6px; }
.vt-uitleg-ok { display: flex; align-items: center; gap: 6px; color: var(--text); }
.vt-uitleg-ok svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.vt-aan { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--accent); background: transparent; color: var(--accent); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }

/* groeifoto groot met Eerder en Later */
.gr-groot-vak { margin: 0; touch-action: pan-y; }
.gr-groot-vak img { user-select: none; -webkit-user-drag: none; }
.gr-groot-vak figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 10px 2px 0; font-size: 15px; line-height: 20px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.gr-groot-vak figcaption b { color: var(--text); font-weight: 600; }
.gr-groot-tel { margin-left: auto; }
.gr-groot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.gr-groot-nav .knop { min-height: 48px; }
.gr-groot-nav .knop[disabled] { opacity: .4; }
