@media print {
  body { background:#fff !important; font-family:Arial,sans-serif; font-size:11px; color:#000; }
  #screen-login, .hdr, .nav, .footer, .pg-head .pg-actions,
  #sales-upload-card,
  .form-actions, .btn, #diag-out, button,
  select:not(.print-keep), input[type="date"], input[type="month"],
  input[type="text"], input[type="number"], input[type="password"],
  input[type="email"], .card-title-actions,
  #staff-form-card, #pd-prompt, #pd-role-cards,
  #staff-filter-row, .pg-head .pg-actions { display:none !important; }
  #screen-app  { display:block !important; }
  main.main    { padding:0 !important; }
  .tab-pane                    { display:none !important; }
  .tab-pane.print-active       { display:block !important; }
  .card { box-shadow:none !important; border:1px solid #ccc; margin-bottom:12px; page-break-inside:avoid; padding:10px; }
  .card-title { font-size:12px; font-weight:bold; color:#1b2f4e; margin-bottom:8px; text-transform:uppercase; letter-spacing:1px; border-bottom:1px solid #ccc; padding-bottom:4px; }
  table { width:100%; border-collapse:collapse; font-size:9px; }
  th { background:#1b2f4e !important; color:#fff !important; -webkit-print-color-adjust:exact; print-color-adjust:exact; padding:5px 6px; text-align:left; font-size:8px; letter-spacing:.5px; }
  td { padding:4px 6px; border-bottom:1px solid #eee; }
  tr:nth-child(even) td { background:#f7f9fc !important; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  tfoot td { font-weight:bold; background:#1b2f4e !important; color:#fff !important; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .stats-strip { display:grid !important; grid-template-columns:repeat(6,1fr); gap:6px; margin-bottom:12px; }
  .stat { border:1px solid #ccc; padding:6px; text-align:center; page-break-inside:avoid; }
  .stat-val { font-size:16px; font-weight:bold; color:#1b2f4e; }
  .stat-lbl { font-size:7px; text-transform:uppercase; color:#666; margin-top:2px; }
  .badge { border:1px solid #ccc; padding:1px 4px; border-radius:3px; font-size:8px; }
  .print-header { display:block !important; text-align:center; margin-bottom:16px; padding-bottom:10px; border-bottom:3px solid #1b2f4e; }
  .print-header img { display:block; margin:0 auto 6px; max-height:56px; max-width:180px; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .print-header h1 { font-size:20px; color:#1b2f4e; margin:0; letter-spacing:3px; font-family:Arial,sans-serif; }
  .print-header p  { font-size:9px; color:#666; margin:3px 0 0; }
  .tgt-over  { color:#1a7c45 !important; font-weight:bold; }
  .tgt-under { color:#c0392b !important; font-weight:bold; }
  .tbl-wrap { overflow:visible !important; }
  /* Force background-image card covers (deals/news/promos) to print */
  .spec-img, .news-img {
    -webkit-print-color-adjust:exact; print-color-adjust:exact;
    page-break-inside:avoid;
  }
  .spec-card, .news-card { page-break-inside:avoid; }
  @page { margin:12mm 10mm; size:A4 landscape; }
}
