/* print.css — Print-friendly layout for field reports and briefings */
/* Strips UI chrome, optimizes for paper, preserves data content */

@media print {
  /* Hide UI chrome */
  .header,
  .sidebar,
  .mobile-bottom-nav,
  .notif-panel,
  .threat-bar,
  .smart-bar,
  #loading-splash,
  #platform-badge,
  #network-badge,
  .hamburger,
  .theme-toggle,
  .notif-bell,
  .shortcut-hint,
  #theme-mode-indicator,
  #sound-toggle-btn,
  .pwa-install-banner,
  #wakelock-btn,
  .tab-bar,
  .btn,
  button {
    display: none !important;
  }

  /* Reset layout */
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .main {
    margin: 0 !important;
    padding: 10mm !important;
    width: 100% !important;
    max-width: none !important;
  }

  /* Show active panel, hide others */
  .panel {
    display: none !important;
    page-break-inside: avoid;
  }
  .panel.active {
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
  }

  /* Print header */
  .panel-header {
    border-bottom: 2px solid #000 !important;
    padding-bottom: 8pt !important;
    margin-bottom: 12pt !important;
  }
  .panel-title {
    font-size: 16pt !important;
    font-weight: 700 !important;
    color: #000 !important;
  }
  .panel-desc {
    font-size: 10pt !important;
    color: #333 !important;
  }

  /* Cards and sections */
  .info-card,
  .ew-card,
  .card {
    border: 1px solid #ccc !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin-bottom: 8pt !important;
  }

  .info-label {
    color: #000 !important;
    font-weight: 700 !important;
    font-size: 10pt !important;
  }

  .info-value {
    color: #333 !important;
    font-size: 11pt !important;
  }

  /* Section titles */
  .ew-section-title {
    color: #000 !important;
    font-size: 12pt !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #666 !important;
    margin-top: 16pt !important;
    padding-bottom: 4pt !important;
  }

  /* Grids — linearize for print */
  .ai-grid,
  .fl-indicator-grid,
  .mar-grid,
  .ew-feeds-grid {
    display: block !important;
  }
  .ai-grid > *,
  .fl-indicator-grid > *,
  .mar-grid > *,
  .ew-feeds-grid > * {
    margin-bottom: 6pt !important;
  }

  /* Status badges — make readable in B&W */
  .tag {
    border: 1px solid #666 !important;
    background: transparent !important;
    color: #000 !important;
    font-size: 9pt !important;
  }

  /* Links */
  a {
    color: #000 !important;
    text-decoration: underline !important;
  }
  a[href]::after {
    content: " (" attr(href) ")" !important;
    font-size: 8pt !important;
    color: #666 !important;
  }

  /* Tables */
  table {
    border-collapse: collapse !important;
    width: 100% !important;
  }
  th, td {
    border: 1px solid #ccc !important;
    padding: 4pt 6pt !important;
    font-size: 10pt !important;
    color: #000 !important;
  }
  th {
    background: #f0f0f0 !important;
    font-weight: 700 !important;
  }

  /* Timestamp footer */
  body::after {
    content: "OSINT Dashboard — Printed " attr(data-print-date) !important;
    display: block !important;
    text-align: center !important;
    font-size: 8pt !important;
    color: #999 !important;
    margin-top: 24pt !important;
    border-top: 1px solid #ccc !important;
    padding-top: 6pt !important;
  }

  /* Page setup */
  @page {
    margin: 15mm;
    size: A4 portrait;
  }
}
