@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Reset the viewport-lock layout for print */
  body {
    height: auto !important;
    overflow: visible !important;
    display: block !important;
    background: white !important;
  }

  /* Hide interactive chrome */
  nav,
  aside,
  #tabBar,
  .print\:hidden,
  #exportModal { display: none !important; }

  /* Show print-only elements */
  .print\:block { display: block !important; }
  .hidden.print\:block { display: block !important; }

  /* Content column becomes full-width block */
  #tabContent {
    overflow: visible !important;
    height: auto !important;
    padding: 0 16px !important;
    display: block !important;
  }

  /* Remove card chrome */
  section,
  .bg-white.rounded-xl {
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 0 !important;
    box-shadow: none !important;
  }

  /* Keep rows together */
  tr { page-break-inside: avoid; }

  /* Reduce chart height in print */
  canvas { max-height: 180px !important; }

  /* Typography */
  body  { font-size: 11px !important; line-height: 1.4 !important; }
  h1    { font-size: 16px !important; }
  h2    { font-size: 13px !important; }
  p, td, li { font-size: 11px !important; }

  /* Section labels keep coral background */
  .section-label {
    background: #e07b54 !important;
    color: white !important;
  }

  /* KPI strips */
  .grid.grid-cols-4,
  .grid.grid-cols-5 { display: flex !important; gap: 8px !important; }
  .grid.grid-cols-4 > *,
  .grid.grid-cols-5 > * { flex: 1 !important; }

  /* Side-by-side grid charts */
  .grid.grid-cols-2 { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
}
