/* Print: prevent header subline truncation */
@media print {
  .text-muted {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word;
  }

  /* Examiner checklist header row: avoid flex squeezing content */
  .d-flex.justify-content-between.align-items-start.flex-wrap.gap-2 {
    display: block !important;
  }

  /* Ensure buttons block doesn't steal horizontal space in print */
  .d-flex.justify-content-between.align-items-start.flex-wrap.gap-2 > div:last-child {
    display: none !important; /* hides the print/back buttons in the PDF output */
  }
}

/* ============================================================
   Tables: consistent faint cell borders + gentle striping
   - Applies to all Bootstrap .table instances
   - Use .table-striped as normal; stripes are softened for readability
   ============================================================ */

.table > :not(caption) > * > * {
  border: 1px solid #e3e6ea;
}

/* Soften Bootstrap striping (better for dense numeric tables) */
.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: #fafbfc;
}

/* Print: ensure table grid lines are visible on paper/PDF */
@media print {
  .table > :not(caption) > * > * {
    border: 1px solid #999 !important;
  }
  .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #fff !important;
  }
}
