/* SBMCB — print
   A practitioner prints the day list and takes it into the room, or prints
   the outstanding list before making calls. So print is a real output, not
   an afterthought: the navigation, the controls and the things that are
   only useful on a screen come off, and what is left is a document. */

@media print {

  /* Chrome that cannot be acted on with a pen. */
  .sidebar,
  .header-tools,
  .subheader,
  .page-toolbar,
  .skip,
  .drawer-scrim,
  .btn,
  .seg,
  .attn-action,
  .appt-action,
  .chart-readout {
    display: none !important;
  }

  html, body {
    height: auto;
    background: none;
    color: var(--ink);
    font-size: 11pt;
  }

  .shell { display: block; height: auto; overflow: visible; }
  .main { display: block; }
  .work { overflow: visible; padding: 0; height: auto; }
  .page { max-width: none; }

  .header {
    height: auto;
    padding: 0 0 8pt;
    border-bottom: 1pt solid var(--ink);
  }

  /* Panels become sections on a page rather than surfaces on a screen. */
  .panel {
    border: 0;
    border-top: 1pt solid var(--line-strong);
    border-radius: 0;
    break-inside: avoid;
  }

  .panel-head { padding: 6pt 0 4pt; border-bottom: 0; }
  .panel-body { padding: 0; }

  .kpi-row { display: flex; gap: 16pt; margin-bottom: 12pt; }
  .kpi { flex: 1; padding: 0; border: 0; }
  .kpi-value { font-size: 16pt; }

  .dash-main, .dash-second, .dash-third {
    display: block;
  }

  .stack > * + * { margin-top: 12pt; }

  /* Nothing scrolls on paper, so nothing may be clipped by a scroll box. */
  .timeline-scroll,
  .table-wrap { max-height: none; overflow: visible; }

  .appt, .attn-item, .event, tr { break-inside: avoid; }

  .appt:hover, .table tbody tr:hover { background: none; }

  /* A status dot does not survive a monochrome printer; the word does. */
  .status::before { display: none; }
  .status { color: var(--ink); }

  a[href^="#"]::after { content: ""; }

  /* The activity feed is context on screen and noise on paper. */
  .activity { display: none; }

  @page { margin: 14mm; }
}
