/* Print stylesheet — Acxa Control System */
@media print {
  /* Reset backgrounds to white, text to black */
  *, *::before, *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-color: #ccc !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 11pt;
    line-height: 1.4;
    padding: 0;
    margin: 0;
  }

  /* Hide non-essential UI */
  .sidebar,
  #desktopNav,
  .mobile-bottom-nav,
  .mobile-overlay,
  #authSplash,
  #offlineBanner,
  .topbar .p-2,
  button,
  .toast-msg,
  #toastContainer,
  .pull-refresh-indicator,
  .tv-exit-btn,
  .skip-link,
  .export-modal-overlay,
  .kbd-modal-overlay,
  .onboard-overlay,
  footer,
  .premium-footer,
  #soundBtn,
  .chart-nav-btn,
  .nc-pin {
    display: none !important;
  }

  /* Show the topbar title area */
  .topbar.premium-header {
    position: static !important;
    padding: 8pt 0 !important;
    border-bottom: 2pt solid #000 !important;
    margin-bottom: 12pt !important;
  }

  /* KPI summary row */
  .grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8pt !important;
  }

  /* Cards print nicely */
  .node-card,
  .premium-card {
    border: 1px solid #ccc !important;
    padding: 6pt !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Make sure status dots print in color */
  .bg-emerald-400 { background: #22c55e !important; }
  .bg-red-400     { background: #ef4444 !important; }
  .bg-yellow-400  { background: #eab308 !important; }
  .bg-slate-400   { background: #94a3b8 !important; }

  /* Charts: ensure canvas prints */
  canvas {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Remove animations */
  * {
    animation: none !important;
    transition: none !important;
  }

  /* Links: show URL */
  a[href]:not([href^="#"])::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666 !important;
  }

  /* Page margins */
  @page {
    margin: 1.5cm;
  }
}
