/* Family Vaccine Record — app styles (on top of /assets/labs.css) */
[hidden] { display: none !important; }
.app-page .page-title { margin-bottom: 18px; }
.notice-stack { display: grid; gap: 10px; }
.app-block { margin-top: 20px; }
.h-sm { font-size: 22px; margin: 0; }
.h-xs { font-size: 17px; margin: 0 0 6px; }
.block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.field-msg { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.field-msg.err { color: var(--danger); font-weight: 600; }
.field-msg.ok { color: var(--ok); font-weight: 600; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 12px; }
.inline-form label { flex: 1 1 220px; }
.danger { color: var(--danger) !important; border-color: color-mix(in srgb, var(--danger) 45%, var(--line)) !important; }
.danger-row { margin-top: 18px; }
.forgot { margin-top: 12px; }
.forgot summary { cursor: pointer; color: var(--accent); font-weight: 600; }

/* People chips */
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-weight: 650; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Vaccine cards */
.group { margin-top: 22px; }
.group > summary { cursor: pointer; font-weight: 650; color: var(--muted); }
.vax-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin-top: 10px; }
.vax { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.vax.has { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.vax-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.vax h4 { margin: 0; font-size: 16px; }
.vax p { margin: 0; }
.status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); }
.status.yes { background: var(--accent-soft); color: var(--text); border-color: var(--accent); }
.req { font-size: 13px; color: var(--muted); }
.doses { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.doses li { display: flex; justify-content: space-between; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 6px; overflow-wrap: anywhere; }
.dose-actions { display: flex; gap: 6px; flex: none; }
.remind-line { font-size: 13px; color: var(--muted); }
.card-form:empty { display: none; }
.dose-form, .titer-form { display: grid; gap: 10px; margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
.titer-form { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; border-top: 0; }
.form-title { font-weight: 650; }
.dose-form .check { font-weight: 500; }
.hidden-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.hidden-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.icon-btn { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; min-height: 36px; padding: 0 10px; font: inherit; font-size: 13px; cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--text); }

/* Tables */
.table-scroll { overflow-x: auto; margin-top: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.data-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }

/* Reminders */
.rem-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.rem-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }

/* Data */
.pass-box { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.file-btn { position: relative; display: inline-flex; font-weight: 650; font-size: 14px; }
.file-btn:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.file-input { position: absolute; inset: 0; opacity: 0; width: 100%; min-height: 0; height: 100%; cursor: pointer; padding: 0; }

/* Print */
.print-area { display: none; }
.pv-msg { margin-top: 12px; }
.bulk-row { margin-top: 4px; }
.form-msg { grid-column: 1 / -1; flex-basis: 100%; }
.form-note { flex-basis: 100%; margin: 0; }
.log-box { margin-top: 16px; }
.log-box summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.log-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); max-height: 260px; overflow: auto; overflow-wrap: anywhere; }
.scroll-hint { display: none; }
@media (max-width: 640px) { .scroll-hint { display: block; } }
.notice a, .muted a { text-decoration: underline; }
@media print {
  .no-print, #app-body, #lock-screen, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .page { padding: 0; }
  .print-area { display: block; color: #000; font-size: 12pt; }
  .print-title { font-size: 22pt; font-weight: 700; margin: 0 0 6pt; }
  .print-footer { position: fixed; bottom: 0; left: 0; right: 0; font-size: 8.5pt; font-weight: 700; border-top: 1px solid #000; padding-top: 3pt; margin: 0; background: #fff; }
  .print-area { padding-bottom: 28pt; }
  @page { margin: 14mm 12mm 18mm; }
  .print-warn { border: 2px solid #000; padding: 6pt 8pt; font-weight: 700; margin: 0 0 6pt; }
  .print-meta { font-size: 10pt; margin: 0 0 12pt; }
  .print-person { break-inside: avoid-page; margin-bottom: 16pt; }
  .print-person h2 { font-size: 16pt; margin: 12pt 0 6pt; }
  .print-person h3 { font-size: 12pt; margin: 10pt 0 4pt; }
  .print-table { width: 100%; border-collapse: collapse; font-size: 10.5pt; }
  .print-table th, .print-table td { border: 1px solid #555; padding: 3pt 5pt; text-align: left; vertical-align: top; }
  .print-table tr { break-inside: avoid; }
}
.warn-text { color: var(--warn); font-weight: 600; }
.ack-list { margin: 12px 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.ack-form { display: grid; gap: 12px; justify-items: start; }
.ack-form .check { font-weight: 500; }
.ack-form a { text-decoration: underline; }
