/* Print-only brand header — hidden on screen */
.print-header {
  display: none;
}

/* Hide everything except grid */
@media print {
  body * {
    visibility: hidden !important;
  }

  .print-area,
  .print-area * {
    visibility: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  /* position: absolute (NOT fixed) — fixed repeats on every page */
  .print-area {
    position: absolute !important;
    top: 2cm !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    z-index: 9999;
  }

  /* Scale down slightly so all columns fit within one landscape page */
  .ag-root-wrapper {
    zoom: 0.85;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Let AG Grid expand to all rows */
  .ag-root,
  .ag-body,
  .ag-body-viewport,
  .ag-center-cols-viewport,
  .ag-center-cols-container {
    overflow: visible !important;
    height: auto !important;
  }

  .ag-body-horizontal-scroll {
    display: none !important;
  }

  .ag-cell {
    white-space: normal !important;
    line-height: 1.4;
    overflow: visible !important;
  }

  ::-webkit-scrollbar {
    display: none;
  }

  /* ── Brand header ── */
  .print-header {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
  }

  .print-logo-mark {
    width: 40px;
    height: 40px;
    background-color: #0F172A !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bodoni Moda', 'Georgia', serif;
    font-size: 20px;
    font-weight: bold;
    color: #C5A059 !important;
    line-height: 40px;
    text-align: center;
    flex-shrink: 0;
  }

  .print-brand-text {
    display: flex;
    flex-direction: column;
  }

  .print-brand-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #0F172A !important;
    line-height: 1;
  }

  .print-brand-tagline {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #C5A059 !important;
    font-weight: 600;
    margin-top: 4px;
    line-height: 1;
  }

  @page {
    size: landscape;
    margin: 0.75cm;
  }
}