/* TogetherTrack — print stylesheet (FR-21). Loaded via <link media="print">
   so it only ever applies when the browser is printing or previewing print;
   the @media print wrapper is a second layer of safety if it's ever loaded
   unconditionally. Applies app-wide (not just the report document — see
   static/css/report_document.css for the dedicated print/PDF layout). */

@media print {
  @page {
    size: A4;
    margin: 18mm 15mm;
  }

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

  .navbar,
  .app-sidebar,
  nav[aria-label="breadcrumb"],
  .alert,
  .modal,
  .btn,
  .dropdown,
  .offcanvas-header,
  .d-print-none {
    display: none !important;
  }

  .app-shell,
  .app-main {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  a {
    color: #000 !important;
    text-decoration: none !important;
  }

  .card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .table-responsive {
    overflow: visible !important;
  }

  tr {
    break-inside: avoid;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    break-after: avoid;
  }
}
