/* ==========================================================================
   print.css — browser printing.

   Tickets and customer receipts are printed SERVER-side by core/PrinterDriver
   (ESC/POS); nothing here touches that path. This stylesheet only covers the
   one browser-print case the UI offers: "Imprimer" on the Recettes screen,
   which prints the filtered ticket list.
   ========================================================================== */

@media print {
  :root { --np-shell-top: 0px; }

  html, body {
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
    display: block !important;
    color: #000;
  }

  /* The whole chrome disappears: only the report is worth paper. */
  .np-topbar,
  .np-offline,
  .np-rail,
  .np-drawer,
  .np-drawer__backdrop,
  .np-backdrop,
  .np-sheet,
  .np-toasts,
  .np-loading,
  .np-keyboard,
  .np-pagehead .np-search,
  .np-pagehead .np-btn,
  .np-noprint,
  .np-table__actions,
  .np-stack .np-btn,
  .np-cart { display: none !important; }

  .np-page,
  .np-content {
    display: block !important;
    overflow: visible !important;
    height: auto !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .np-card,
  .np-kpi,
  .np-stack {
    break-inside: avoid;
    box-shadow: none !important;
    border-color: #999 !important;
  }

  .np-table__row,
  .np-preview__row { break-inside: avoid; }

  .np-kpigrid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; }
  .np-split { display: block !important; }
  .np-split__side { max-width: none !important; margin-top: 12px; }

  /* Conic-gradient donuts do not survive printing on every driver; the legend
     underneath carries the same numbers, so drop the ring rather than print a
     grey disc. */
  .np-donut { display: none !important; }

  a[href]::after { content: ""; }
}

/* A screen-only helper for anything that exists purely for printing. */
.np-printonly { display: none; }
@media print { .np-printonly { display: block; } }
