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

  body {
    background: #ffffff;
  }

  .flash-stack,
  .skip-link,
  .tenant-sidebar,
  .tenant-topbar,
  .tenant-subnav,
  .tenant-breadcrumb,
  .bottom-tab-bar,
  .tenant-header__actions,
  .student-qr-print-hide,
  .fee-receipt-print-hide,
  .report-card-print-hide,
  .guardian-access-print-hide {
    display: none !important;
  }

  body.tenants-guardian_portal_access_batches.create-page .tenant-header {
    display: none;
  }

  .tenant-app-shell {
    display: block;
  }

  .tenant-shell,
  .fee-receipt-shell,
  .report-card-shell {
    max-width: none;
    padding: 0;
  }

  .workspace-panel,
  .fee-receipt,
  .student-qr-card__code {
    border-color: #111111;
    box-shadow: none;
    break-inside: avoid;
  }

  .student-qr-print-card {
    width: 100%;
    max-width: 180mm;
    break-inside: avoid;
  }

  .student-qr-print-layout {
    grid-template-columns: 52mm minmax(0, 1fr);
  }

  .student-qr-card__code {
    width: 52mm;
    padding: 4mm;
  }

  .student-qr-print-photo__image {
    width: 34mm;
  }

  .guardian-access-results {
    display: block;
    max-width: none;
    padding: 0;
  }

  .guardian-access-summary {
    display: none;
  }

  .guardian-access-slips {
    display: block;
  }

  .guardian-access-slip {
    margin: 0 0 8mm;
    padding: 6mm;
    border: 1px dashed #444444;
    border-radius: 0;
    color: #111111;
    break-inside: avoid;
  }

  .guardian-access-slip__credentials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guardian-access-slip__instructions {
    border-color: #999999;
  }

  .guardian-access-slip__logo {
    width: 18mm;
    height: 18mm;
  }

  .student-qr-batch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4mm;
    margin: 0;
  }

  .student-qr-batch-grid .student-qr-print-card {
    width: 100%;
    max-width: none;
    min-height: 52mm;
    padding: 3mm;
    break-inside: avoid;
  }

  .student-qr-batch-grid .student-qr-print-layout {
    grid-template-columns: 25mm minmax(0, 1fr);
    gap: 2mm;
    align-items: center;
  }

  .student-qr-batch-grid .student-qr-card__code {
    width: 25mm;
    padding: 1mm;
  }

  .student-qr-batch-grid .student-qr-print-photo__image {
    width: 14mm;
    max-height: 17mm;
  }

  .student-qr-batch-grid .detail-list {
    font-size: 8pt;
    overflow-wrap: anywhere;
  }

  .student-qr-batch-grid .detail-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 1mm 0;
  }

  .student-qr-batch-grid .detail-list dt {
    font-size: 7pt;
  }

  .report-card-shell {
    display: block;
    width: auto;
  }

  .report-card {
    gap: 3mm;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: 8.5pt;
    break-after: page;
  }

  .report-card:last-of-type {
    break-after: auto;
  }

  .report-card__logo {
    width: 18mm;
    height: 18mm;
  }

  .report-card__table {
    font-size: 7.5pt;
  }

  .report-card__table th,
  .report-card__table td {
    padding: 0.8mm 1mm;
    border-color: #444444;
  }

  .report-card__table-wrap {
    overflow: visible;
  }

  .report-card__table,
  .report-card__section,
  .report-card__summary {
    break-inside: avoid;
  }

  .report-card__signatures {
    padding-top: 14mm;
  }
}
