/* ==========================================================================
   SmartSoil AI — Farm Report Print & PDF Stylesheet
   Formats the 21-section comprehensive report for crisp multi-page printing
   ========================================================================== */

@media print {
  /* Hide interactive app UI elements during print */
  .app-header,
  .mobile-bottom-nav,
  .market-ticker-banner,
  .nav-menu-desktop,
  .header-actions,
  .btn,
  .modal-backdrop,
  .no-print,
  .suggested-prompts-row,
  .chat-input-row {
    display: none !important;
  }

  body {
    background: white !important;
    color: #0f172a !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
    background-image: none !important;
  }

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

  .main-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .view-section {
    display: none !important;
  }

  #view-reports {
    display: block !important;
  }

  .report-page-container {
    padding: 1.5cm !important;
    page-break-after: always;
  }

  .report-header-banner {
    border-bottom: 2px solid #059669 !important;
    padding-bottom: 12pt !important;
    margin-bottom: 18pt !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .report-section {
    margin-bottom: 16pt !important;
    page-break-inside: avoid;
  }

  .report-section h3 {
    color: #065f46 !important;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4pt;
    margin-bottom: 8pt;
    font-size: 13pt !important;
  }

  .report-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 12pt !important;
  }

  .report-table th, .report-table td {
    border: 1px solid #cbd5e1 !important;
    padding: 6pt 8pt !important;
    font-size: 9.5pt !important;
  }

  .report-table th {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: bold !important;
  }

  .glass-panel, .card {
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    background: white !important;
  }

  .badge {
    border: 1px solid #94a3b8 !important;
    color: black !important;
  }
}
