@media print {
  /* Hide all UI elements except the question table */
  .sidebar, .topbar, .page-header, .grid-2, .toast-container, button, .mobile-menu-btn, .card-header p {
    display: none !important;
  }
  
  /* Reset margins and backgrounds for clean print */
  body, html {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .app-wrap, .main-wrap, .page-content {
    margin: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
    display: block !important;
  }
  
  /* Expand table */
  .card {
    border: none !important;
    box-shadow: none !important;
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .card-header {
    border-bottom: 2px solid #000 !important;
    padding: 0 0 10px 0 !important;
    margin-bottom: 20px !important;
  }
  .table-wrapper {
    overflow: visible !important;
    border: none !important;
  }
  table {
    width: 100% !important;
  }
  th, td {
    color: #000 !important;
    border-bottom: 1px solid #ddd !important;
    page-break-inside: avoid;
  }
  
  /* Make badges monochrome for print */
  .badge, .tag {
    background: transparent !important;
    border: 1px solid #666 !important;
    color: #000 !important;
  }
  
  /* Explanation box for print */
  .detail-section div[style*="background:rgba"] {
    background: transparent !important;
    border-left: 2px solid #000 !important;
  }
}
