/* ---------------------------------------------------------------------------
   Utskrift — shared print-regler for alle moduler

   Gjelder alle moduler som laster base-pakken. Flyttet ut av components.css
   2026-04-22 for tydeligere ansvar.

   Bruk:
     .mh-print-hide   — skjul elementet ved utskrift
     .mh-print-only   — vis elementet KUN ved utskrift (skjult ellers)

   Se `docs/plattform/shared-komponenter.md` §6.30 for full
   print-konvensjon.
--------------------------------------------------------------------------- */

@media print {
  .platform-topbar,
  .platform-topbar-spacer,
  .mh-module-toolbar,
  .view-toggle,
  .toast-container,
  .modal-backdrop,
  .mh-print-hide,
  .no-print {
    display: none !important;
  }

  .platform-shell,
  .platform-main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
  }

  .tab-bar { border: none !important; margin-bottom: 8px !important; }
  .tab-button:not(.active) { display: none !important; }
  .tab-button.active { border: none !important; padding-left: 0 !important; font-size: 16px !important; }

  .card, .card-collapsible, .metric-card {
    border: none !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  body { background: white !important; }

  /* Skjul som standard — bruker maa eksplisitt markere med mh-print-only */
  .mh-print-only,
  .print-only {
    display: block !important;
  }
}
