/* print.css — Light-theme print overrides for Family Health Record */

@page {
  margin: 1.5cm;
}

@media print {
  /* --- Reset dark theme to light --- */
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --card: #ffffff;
    --text: #111111;
    --muted: #555555;
    --line: #cccccc;
    --accent: #16a34a;
  }

  * {
    color-adjust: exact;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    background: #fff !important;
    color: #111 !important;
    font-size: 11pt;
    line-height: 1.4;
  }

  /* --- Hide interactive elements --- */
  header .toolbar,
  .form-section,
  .search-section,
  .getting-started,
  .empty-state,
  .member-actions,
  .toast-container,
  .modal-backdrop,
  .site-footer,
  #search,
  #sortSelect,
  .btn,
  button {
    display: none !important;
  }

  /* --- Show header title cleanly --- */
  header {
    position: static !important;
    background: #fff !important;
    backdrop-filter: none !important;
    border-bottom: 2px solid #111 !important;
    padding: 10px 0 !important;
  }

  .brand-title {
    color: #111 !important;
    font-size: 16pt !important;
  }

  .tagline {
    color: #555 !important;
    font-size: 9pt !important;
  }

  /* --- Member cards --- */
  main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .member-list {
    gap: 12px !important;
  }

  .member-card {
    background: #fff !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 10px !important;
    margin-bottom: 8px;
  }

  .member-header {
    border-bottom: 1px solid #ddd !important;
  }

  .member-relation {
    color: #111 !important;
  }

  .member-meta {
    color: #555 !important;
  }

  .member-updated {
    color: #888 !important;
    font-size: 8pt !important;
  }

  /* --- Pills print with visible backgrounds --- */
  .pill {
    border: 1px solid #999 !important;
    background: #f0f0f0 !important;
    color: #111 !important;
    font-size: 9pt !important;
  }

  .pill-issue {
    background: #fef3c7 !important;
    border-color: #d97706 !important;
  }

  .pill-med {
    background: #cffafe !important;
    border-color: #0891b2 !important;
  }

  .pill-allergy {
    background: #fee2e2 !important;
    border-color: #dc2626 !important;
  }

  .pill .pill-remove {
    display: none !important;
  }

  /* --- Notes text --- */
  .member-notes {
    color: #333 !important;
  }

  /* --- Links --- */
  a {
    color: #111 !important;
    text-decoration: none !important;
  }
}
