/* Écran admin du centre : s'appuie sur parents/parents.css (couleurs, boutons, fiches) et ajoute ceci. */
.page.adm { max-width: 1220px; padding-bottom: 48px; }
.top nav select { width: auto; min-height: 38px; padding: 6px 10px; font-size: 15px; }

.adm-tabs { display: flex; gap: 4px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; }
.adm-tabs a { padding: 12px 14px; font-weight: 700; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.adm-tabs a[aria-current] { color: var(--navy); border-bottom-color: var(--orange); }

input[type="search"] { background: var(--surface); }

.fam h2 { font-size: 22px; color: var(--navy); }
.kids { display: flex; flex-wrap: wrap; gap: 8px; }
.kid-chip { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--ink); background: var(--bg); }
.kid-chip:hover { border-color: var(--navy); }
.kid-chip small { color: var(--muted); }

.bal { display: flex; flex-direction: column; align-items: center; min-width: 96px; padding: 10px 14px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); }
.bal b { font: 800 italic 36px/1 var(--display); }
.bal span { font-size: 13px; font-weight: 700; }
.bal.zero { background: var(--warn-bg); color: var(--warn); }

.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lines li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.lines li:first-child { border-top: 0; }
.lines li > span:last-child { text-align: right; }
.lines .tag { margin-left: 4px; }
.journal li { align-items: flex-start; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.facts dt { font-weight: 700; color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 6px; } }

.day-cls h2 { font-size: 22px; color: var(--navy); }
.fill { height: 6px; border-radius: 3px; background: var(--tint); position: relative; overflow: hidden; }
.fill::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--orange); border-radius: 3px; }

/* Fiche enfant : deux colonnes sur grand écran (gestes à gauche, dossier à droite), une seule sur téléphone. */
.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 860px) { .cols { grid-template-columns: minmax(0, 1fr); } }

/* Allergies : renseignement de sécurité, visible d'un coup d'œil (icône + couleur, pas seulement la couleur). */
.allergy { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 16px; border-radius: 12px;
  background: var(--warn-bg); color: var(--warn); border-left: 5px solid var(--orange); font-size: 17px; }
.allergy svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.day-cls .tag.warn { font-size: 14px; }
