/* Alerta compacta en una sola línea; conserva su acción y color rojo. */
@media screen {
  html body.is-authenticated:not(.report-print-body) #appMain#appMain#appMain .module.active .repetition-risk-mark {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    flex: 0 0 auto !important;
    justify-self: start !important;
    align-self: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 24px !important;
    padding: 4px 7px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-family: Calibri, "Segoe UI", Arial, sans-serif !important;
    text-align: center !important;
    justify-content: center !important;
  }
  html body.is-authenticated:not(.report-print-body) #appMain#appMain#appMain .module.active .repetition-risk-mark > span {
    display: inline !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-family: Calibri, "Segoe UI", Arial, sans-serif !important;
    text-align: center !important;
  }
  html body.is-authenticated:not(.report-print-body) #appMain#appMain#appMain .module.active .repetition-risk-mark > i {
    width: 11px !important;
    height: 11px !important;
    min-height: 0 !important;
    line-height: 11px !important;
    padding: 0 !important;
    font-size: 10px !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  html body.is-authenticated:not(.report-print-body) #appMain #gradeSpreadsheet .repetition-risk-mark {
    font-family: inherit !important;
  }
}

@media screen and (max-width: 900px) {
  html body.is-authenticated:not(.report-print-body) #appMain#appMain#appMain #module-calificaciones #gradeSpreadsheet .repetition-risk-mark {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 38px !important;
    padding: 2px 4px !important;
    gap: 3px !important;
    white-space: normal !important;
  }

  html body.is-authenticated:not(.report-print-body) #appMain#appMain#appMain #module-calificaciones #gradeSpreadsheet .repetition-risk-mark > span {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
  }

  html body.is-authenticated:not(.report-print-body) #appMain#appMain #module-calificaciones #gradeSpreadsheet tbody td[data-label]::before {
    font-size: calc(9px + 1pt) !important;
    line-height: 9px !important;
  }
}
