/* ── Styles áp dụng cho cả màn hình và khi in ── */
.info-section {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.photo-box {
  width: 3cm;
  height: 4cm;
  border: 1px solid #000;
  flex-shrink: 0;
  background: white;
}
.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info-details { 
  flex: 1; 
}
.info-details table { 
  width: 100%; 
  border-collapse: collapse; 
}
.info-details td { 
  padding: 4px 0; 
  font-size: 13pt; 
}

@media print {
  body {
    background: white;
    color: black;
    font-size: 12pt;
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
  }

  .no-print, .exam-nav-grid, .exam-header, .alert {
    display: none !important;
  }

  .result-print-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .result-card {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .print-header {
    display: block;
    text-align: center;
    margin-bottom: 20px;
  }

  .print-header h2 { font-size: 14pt; margin: 0; font-weight: bold; }
  .print-header h3 { font-size: 14pt; margin: 0; font-weight: bold; text-decoration: underline; }
  .print-header h1 { font-size: 16pt; margin-top: 20px; }

  .score-section {
    border: 2px solid #000;
    padding: 10px;
    margin-top: 20px;
    text-align: center;
  }

  .matrix-section { margin-top: 20px; }
  .matrix-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 13pt; }
  .matrix-table th, .matrix-table td { border: 1px solid #000 !important; padding: 4px; }
  
  /* Cố gắng không ngắt trang giữa chừng bảng */
  .matrix-table { page-break-inside: avoid; }
  
  .print-signatures {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    font-size: 13pt;
  }
  
  /* Giữ màu trong bảng in */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

