/* c:\Users\jonas\Desktop\Rapsodia\css\pdf.css */

@media print {
  @page {
    size: A4;
    margin: 20mm;
  }

  body {
    background-color: white !important;
    color: black !important;
    font-size: 12pt;
    font-family: 'Cormorant Garamond', serif;
  }

  /* Hide UI elements */
  .app-header,
  .tab-nav,
  .btn,
  .mobile-menu-btn,
  .no-print {
    display: none !important;
  }

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

  /* Print specific layout */
  .pdf-document {
    display: block !important;
  }

  .pdf-header {
    text-align: center;
    border-bottom: 2px solid var(--gold-500);
    padding-bottom: 20px;
    margin-bottom: 30px;
  }

  .pdf-logo {
    font-size: 24pt;
    font-weight: bold;
    color: var(--wine-900) !important;
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  .pdf-section {
    margin-bottom: 30px;
    page-break-inside: avoid;
  }

  .pdf-section-title {
    color: var(--wine-800) !important;
    border-bottom: 1px solid var(--gold-300);
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 16pt;
    font-family: 'Inter', sans-serif;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
  }

  th, td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 10pt;
  }

  th {
    background-color: var(--wine-50) !important;
    -webkit-print-color-adjust: exact;
    color: var(--wine-900) !important;
    font-weight: bold;
  }

  .total-row td {
    font-weight: bold;
    font-size: 12pt;
    background-color: var(--gold-100) !important;
    -webkit-print-color-adjust: exact;
  }

  /* Force background colors to print */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
