.clinician-report {
  color: var(--ink, #20505E);
  background: #FFFFFF;
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}
.clinician-report h2 { margin: 1.25rem 0 .55rem; font-size: 1.3rem; }
.clinician-report h3 { margin: 0 0 .45rem; font-size: 1.05rem; }
.report-created { margin: 0; color: var(--muted, #20505E); font-size: .9rem; }
.report-section { margin-top: 1.2rem; }
.report-field { margin: .2rem 0; white-space: pre-wrap; }
.report-medication, .report-event {
  margin: .75rem 0;
  padding: .8rem;
  border: 1px solid var(--line, #478F83);
  border-radius: .5rem;
  break-inside: avoid;
  page-break-inside: avoid;
}
.report-medication { display: flex; align-items: flex-start; gap: 1rem; }
.report-medication-photo {
  display: block;
  width: min(11rem, 38%);
  height: 9rem;
  flex: 0 0 min(11rem, 38%);
  object-fit: contain;
  background: var(--soft, #FFFFFF);
  border: 1px solid var(--line, #478F83);
}
.report-medication-details { min-width: 0; flex: 1; }
.photo-unavailable-note { margin: 0 0 .4rem; font-style: italic; }
.report-disclaimer { margin-top: 1.5rem; padding-top: .65rem; border-top: 1px solid var(--teal, #478F83); font-weight: 700; }

@media (max-width: 34rem) {
  .report-medication { gap: .65rem; padding: .65rem; }
  .report-medication-photo { width: 34%; height: 7.5rem; flex-basis: 34%; }
}

@media print {
  @page { margin: 16mm 14mm; }
  html, body { background: #fff !important; color: #111 !important; }
  body { margin: 0; font-size: 10.5pt; }
  body > :not(main), main > :not(#report-view),
  #report-view > :not(#report-content) { display: none !important; }
  main { width: 100% !important; margin: 0 !important; padding: 0 !important; }
  #report-view { display: block !important; width: 100%; margin: 0; }
  #report-content { display: block !important; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  html, body { overflow: visible !important; min-height: 0 !important; }
  .clinician-report { font-size: 10.5pt; }
  .clinician-report h2 { margin-top: 1rem; font-size: 14pt; }
  .report-medication, .report-event { break-inside: avoid; page-break-inside: avoid; }
  .report-medication-photo { width: 38mm; height: 34mm; flex-basis: 38mm; }
  .clinician-report, .clinician-report h2, .clinician-report h3,
  .report-created, .report-field, .report-disclaimer { color: #111 !important; }
}
