/* AllyOS Plan-of-Care export — print only the generated plan as a clean, light, branded document. */
.dochead{display:none}
@media print{
  @page{ margin:16mm 14mm; }
  body{ background:#fff !important; }
  /* Re-map the dark theme variables for print so inline var(--ink)/var(--muted) etc.
     resolve to dark-on-light. This fixes any text that uses inline CSS-variable colors
     (e.g. the symptom-map domain names), which class overrides alone cannot reach. */
  #out, .poc{
    --ink:#1c2b32; --ink2:#1c2b32; --muted:#5b6b72; --dim:#5b6b72; --faint:#7d8b91;
    --green:#0e6e5a; --teal:#0e8a8a; --amber:#9a6300;
    --line:#e3ecea; --line2:#cfe3e3;
  }
  body *{ visibility:hidden !important; }
  #out, #out *{ visibility:visible !important; }
  #out{ position:absolute; left:0; top:0; width:100%; }
  .noprint{ display:none !important; }
  .poc{ border:none !important; background:#fff !important; color:#1c2b32 !important; padding:0 !important; box-shadow:none !important; }
  .poc h2{ color:#0e3a40 !important; }
  .poc .meta{ color:#5b6b72 !important; }
  .poc .grp{ color:#0e8a8a !important; }
  .poc .grp:after{ background:#cfe3e3 !important; }
  .poc .rx, .poc .rxc, .poc .elig, .poc .marker{ background:#f4f9f9 !important; color:#1c2b32 !important; border-color:#cfe3e3 !important; }
  .poc .rx b{ color:#0e6e5a !important; }
  .poc table, .poc th, .poc td{ color:#1c2b32 !important; border-color:#e3ecea !important; }
  .poc th{ color:#5b6b72 !important; }
  .poc .row{ border-color:#e3ecea !important; }
  .poc .pri.crit{ background:#fde2de !important; color:#b3261e !important; }
  .poc .pri.high{ background:#fdeccb !important; color:#9a6300 !important; }
  .poc .pri.mod{ background:#e4f0f7 !important; color:#1a5a8a !important; }
  .poc .elig.go{ background:#e9f6f0 !important; color:#0c7a4d !important; border-color:#1e9e6a !important; }
  .poc .elig.hold{ background:#fdecec !important; color:#b3261e !important; border-color:#e3a9a3 !important; }
  .poc .elig.found{ background:#eaf2f8 !important; color:#1a5a8a !important; border-color:#bcd4e6 !important; }
  .poc .sig{ color:#5b6b72 !important; border-color:#e3ecea !important; }
  .poc .sig b{ color:#1c2b32 !important; }
  .poc .dochead{ display:block !important; border-bottom:2px solid #0e8a8a; padding-bottom:10px; margin-bottom:16px; }
  .poc .dochead .lh-brand{ font-weight:900; font-size:1.25rem; color:#0e3a40; }
  .poc .dochead .lh-meta{ font-size:10.5px; color:#5b6b72; line-height:1.5; }

  /* Start-safety / context gate (RYG) — flatten dark boxes to light with a colored left rule */
  .poc .ryg{ background:#fff !important; color:#1c2b32 !important; border:1px solid #cfe3e3 !important; border-left:4px solid #cfe3e3 !important; border-radius:6px !important; }
  .poc .ryg *{ color:#1c2b32 !important; }
  .poc .ryg.green{ border-left-color:#1e9e6a !important; }
  .poc .ryg.yellow{ border-left-color:#c79200 !important; }
  .poc .ryg.red{ border-left-color:#d1493f !important; }

  /* Collapsible reference sections — render summaries as clean section headings, not UI bars.
     beforeprint opens every <details>, so the content prints; here we strip the screen chrome. */
  .poc details.grpc{ margin:18px 0 8px !important; border:none !important; }
  .poc details.grpc>summary{ background:#fff !important; border:none !important; border-bottom:1px solid #cfe3e3 !important; border-radius:0 !important;
    color:#0e8a8a !important; font-size:10px !important; letter-spacing:.14em !important; text-transform:uppercase !important;
    padding:0 0 6px 0 !important; display:block !important; }
  .poc details.grpc>summary:before, .poc details.grpc>summary:after{ display:none !important; content:'' !important; }
}
