/* ═══════════════════════════════════════════════════════════════
   Yazdırma / PDF stilleri
   Yalnızca sonuç raporu görüntülenir; navigasyon ve formlar gizlenir.
   ═══════════════════════════════════════════════════════════════ */

@media print {
  @page { margin: 14mm; }

  body { background: #fff; color: #111; }

  .site-header, .site-footer, .calc-sidebar, .toolbar, .toolbar-actions,
  .hero, .no-print, .tabs, .submit-area, .theme-toggle, .main-content::before,
  .mobile-cta, .guide-chips, .search-box, .search-clear, .section-divider,
  .guide-hero-eyebrow { display: none !important; }

  .page { padding: 0 !important; }
  .container { max-width: 100% !important; }

  .card { border-color: #ddd; box-shadow: none !important; break-inside: avoid; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .results-layout { grid-template-columns: 1fr; }

  /* sonuç tabloları mobil card görünümü print'te normal tabloya döner */
  #resultsContent .table,
  #resultsContent .table tbody,
  #resultsContent .table tr,
  #resultsContent .table td { display: revert; width: auto; }
  #resultsContent .table thead { display: table-header-group; }
  #resultsContent .table tr { border: 0; margin: 0; padding: 0; background: none; }
  #resultsContent .table td { display: table-cell; text-align: left; padding: var(--space-2) var(--space-3); }
  #resultsContent .table td::before { content: none; }
  #resultsContent .table .badge { margin-left: 0; }

  table.table thead th.sticky-h { position: static; background: #eee !important; }
  table.table thead th { background: #eee !important; color: #222; }
  table.table td { color: #222; }

  /* collapsible günlük print'te görünür */
  #resultsContent [data-log-body] { display: block !important; }
  #resultsContent [data-log-toggle] { display: none !important; }

  .log-card { background: #f4f4f4 !important; color: #222; border: 1px solid #ddd; }

  a { color: inherit; }

  /* rapor başlığı print için ayrıca göster */
  .print-header { display: block !important; }
}