/* Print rules for every app page (wrapped in @media print because AssetMapper renders one <link> per imported file without a media attribute). */

@media print {
  @page { margin: 14mm 12mm; }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10.5pt;
  }

  .sv-skip-link,
  .sv-topbar,
  .sv-sidenav,
  .sv-sidenav-backdrop,
  .sv-footer,
  .sv-toasts,
  .sv-filter-bar,
  .sv-pager__items,
  .sv-page-header__actions,
  .sv-card__actions,
  .sv-region--breadcrumb,
  .sv-local-tasks,
  .sv-local-actions,
  .sv-dropdown,
  .sv-map-panel__tools,
  .sv-alert__dismiss,
  .sv-print-hide,
  button,
  dialog {
    display: none !important;
  }

  .sv-shell,
  .sv-shell__content { display: block !important; }
  .sv-main { padding: 0 !important; }
  .sv-main__inner { max-width: none !important; }

  a { color: #000 !important; text-decoration: none !important; }

  .sv-card,
  .sv-table-wrap,
  .sv-stat,
  .sv-filter-bar,
  .sv-empty {
    border-color: #999 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .sv-table-wrap--scroll { overflow: visible !important; }
  .sv-table thead th { position: static !important; background: #eee !important; color: #000 !important; }
  .sv-table th,
  .sv-table td { border-bottom-color: #bbb !important; }
  .sv-table tr { break-inside: avoid; }
  thead { display: table-header-group; }

  /* Badges keep icon + text; print with outline instead of background. */
  .sv-badge,
  .sv-chip,
  .sv-tag { border-color: #666 !important; background: #fff !important; color: #000 !important; }

  h1,
  h2,
  h3 { break-after: avoid; }
  details > :not(summary) { display: block !important; }
}
