/* Print styles — hide chrome, clean layout for paper / Print-to-PDF. */
@media print {
  /* force browsers to print background colours / accents (stripes, dots, badges) */
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  .sidebar, .topbar, .scrim, .toast-wrap,
  .btn, .seg, .icon-btn, .menu-pop, .notif-pop,
  [data-modal-open], .modal-overlay { display: none !important; }

  .shell { display: block !important; }
  .content { padding: 0 !important; max-width: none !important; }
  body { background: #fff !important; }
  .card { box-shadow: none !important; border-color: #ddd !important; break-inside: avoid; }
  table.tbl tr { break-inside: avoid; }

  /* let wide tables shrink to fit the page instead of being clipped/scrolled */
  [style*="overflow-x:auto"], [style*="overflow-x: auto"] { overflow: visible !important; }
  table.tbl { width: 100% !important; table-layout: fixed; font-size: 11px !important; }
  table.tbl th, table.tbl td { white-space: normal !important; word-break: break-word; padding: 5px 6px !important; }

  /* dedicated print-report header is shown only when printing */
  .print-only { display: block !important; }
}

.print-only { display: none; }
