/* =========================
   IMPRESSION BULLETIN
   ========================= */
@media print {

  /* 🔒 Forcer la couleur */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12px;
  }

  /* =========================
     TITRES & EN-TÊTES
     ========================= */

  h3 {
    background: #1e3a8a !important;
    color: #ffffff !important;
    padding: 6px 0;
    margin-bottom: 10px;
    border-radius: 4px;
  }

  .block-title h1 {
    background: #334155 !important;
    color: #ffffff !important;
    padding: 4px 8px;
    font-size: 16px;
  }

   /* =========================
     TABLEAU DES NOTES
     ========================= */
    table.identite th,
  table.identite td, table.decision td {
    border: none !important;
  }

  table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
  }

  /* Forcer toutes les cellules */
  table th,
  table td {
    border: 1.5px solid #000 !important;
    padding: 4px 6px !important;
    font-size: 12px !important;
    vertical-align: middle !important;
  }

  /* En-têtes plus visibles */
  table thead th {
    background: #e5e7eb !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    font-weight: bold;
    text-align: center;
  }

  /* Première colonne (Disciplines) */
  table tbody td:first-child {
    font-weight: bold;
    background: #f8fafc !important;
  }

  /* Ligne Moyenne trimestrielle */
  table tbody tr:last-child td {
    border-top: 2.5px solid #000 !important;
    background: #f1f5f9 !important;
    font-weight: bold;
  }

  /* Encadrement du tableau */
  table {
    outline: 2.5px solid #000 !important;
    outline-offset: -2px;
  }
  
  table.decision {
    outline: 0px solid #000 !important;
    outline-offset: 0px;
  }

  /* =========================
     DISCIPLINES
     ========================= */

  .txtcolor {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    padding: 2px 4px;
    border-radius: 3px;
    font-style: italic;
  }

  /* =========================
     NOTES & MOYENNES
     ========================= */

  /* Moyenne trimestrielle */
  strong[style*="color:red"] {
    background: #fee2e2 !important;
    color: #7f1d1d !important;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
  }

  strong[style*="color:green"] {
    background: #dcfce7 !important;
    color: #065f46 !important;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
  }

  /* =========================
     ADMIS / REFUSÉ
     ========================= */

  td[colspan][class*="text-center"] strong {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
  }

  strong:contains("Admis"),
  strong:contains("Admis(e)") {
    background: #dcfce7 !important;
    color: #065f46 !important;
  }

  strong:contains("Refusé"),
  strong:contains("Refusé(e)") {
    background: #fee2e2 !important;
    color: #7f1d1d !important;
  }

  /* =========================
     ÉCHELLE & OBSERVATIONS
     ========================= */

  p {
    background: #f8fafc !important;
    padding: 4px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px;
  }

  /* =========================
     SIGNATURE & FOOTER
     ========================= */

  center strong {
    background: #f1f5f9 !important;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
  }

  /* =========================
     BOUTONS / ICÔNES
     ========================= */

  .btn,
  .fa,
  .hidden-sm,
  .hidden-xs {
    display: none !important;
  }
}
