/* Vitara AI — print stylesheet.
 * Linked with media="print" on normal pages and unconditionally on print views,
 * so nothing here is wrapped in @media print. app.css stays untouched. */

@page { size: auto; margin: 16mm 14mm; }

html, body { background: #fff !important; color: #000 !important; }

/* Chrome that has no business on paper */
.topbar, .nav-menu-wrap, .nav-menu, .btn, button, .flash, .no-print,
.modal-overlay, .pop-panel, .edge-nav, .nav-dev, .tab-bar { display: none !important; }

/* A selected toggle prints as plain text so the chosen value is on paper */
.toggle-group, .multi-group { border: 0 !important; }
.toggle-btn.active {
  display: inline-block !important;
  background: none !important; color: #000 !important;
  border: 0 !important; padding: 0 !important; font-weight: 600;
}

/* Page skeleton */
.screen { display: block !important; min-height: 0 !important; animation: none !important; }
.container { max-width: none !important; margin: 0 !important; padding: 0 !important; }
a { color: inherit !important; text-decoration: none !important; }

/* Everything that is hidden behind a tab or a collapsible prints in full */
.tab-pane { display: block !important; }
.collapsible-body { display: block !important; }
.collapsible-head .chev { display: none !important; }

/* Rich text stays visible, with a light frame so empty fields still read as fields */
.rte {
  display: block !important; visibility: visible !important; overflow: visible !important;
  min-height: 0; border: 1px solid #bbb; box-shadow: none !important;
  background: #fff !important; color: #000 !important;
}
.rte.super:empty::before { content: '' !important; }

/* Form controls: flat, ruled fields */
input, select, textarea {
  border: 0 !important; border-bottom: 1px solid #999 !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important; color: #000 !important;
  -webkit-appearance: none; appearance: none;
}
input[type="hidden"] { display: none !important; }

/* Cards and tables: flat, and kept whole across page breaks where possible */
.form-card, .dx-card, .protocol-block, .interaction-card, .collapsible, .img-study,
.case-recap, .red-flag-banner, .disclaimer, .hosp-header, tr {
  break-inside: avoid; page-break-inside: avoid; box-shadow: none !important;
}
h1, h2, h3, h4, .form-section-title, .fmt-band, .fmt-sub { break-after: avoid; page-break-after: avoid; }
table { border-collapse: collapse !important; }
th, td { color: #000; }
.mar-scroll, .anes-chart-wrap { overflow: visible !important; border: 0 !important; }
.sticky-col { position: static !important; }
