/* Texto y acciones legibles en el listado de funcionarios. */
html body.is-authenticated #appMain #module-profesores table :is(th, td, b, small, span, button, a, i) {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

html body.is-authenticated #appMain #module-profesores .staff-icon-actions .btn-soft {
  background: #eaf2fb !important;
  border: 1px solid #b8cce3 !important;
  opacity: 1 !important;
}

/* Hacer explícita la acción de retiro y su acción inversa. */
html body.is-authenticated #appMain #module-estudiantes .student-roster-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

html body.is-authenticated #appMain #module-estudiantes :is(#studentOrderToggle, .student-order-help, .student-order-actions button, .student-order-actions i) {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

html body.is-authenticated #appMain #module-estudiantes .student-order-help {
  padding: 10px;
  background: #fff2cc;
  border-radius: 6px;
}

html body.is-authenticated #appMain #module-estudiantes .student-icon-actions button:is([aria-label="Retirar alumno"], [aria-label="Reactivar alumno"]) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 110px !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  padding: 6px 10px !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  background: #fff2cc !important;
  border: 1px solid #b98923 !important;
}

html body.is-authenticated #appMain #module-estudiantes .student-icon-actions button:is([aria-label="Retirar alumno"], [aria-label="Reactivar alumno"])::after {
  content: attr(aria-label) !important;
  display: inline-block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  font: 700 12px/1.2 Arial, sans-serif !important;
}

html body.is-authenticated #appMain #module-estudiantes .student-icon-actions button:is([aria-label="Retirar alumno"], [aria-label="Reactivar alumno"]) i {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

/* Botones secundarios de todos los módulos sobre fondos claros. */
html body.is-authenticated:not(.guardian-portal-only):not(.report-print-body) #appMain :is(.btn-soft, .btn-ghost, .icon-only-btn):not(.btn-danger):not(.btn-primary),
html body.is-authenticated:not(.guardian-portal-only):not(.report-print-body) #appMain .module.active :is(.btn-soft, .btn-ghost, .icon-only-btn):not(.btn-danger):not(.btn-primary),
html body.is-authenticated:not(.guardian-portal-only):not(.report-print-body) #appMain .module.active :is(.btn-soft, .btn-ghost, .icon-only-btn):not(.btn-danger):not(.btn-primary) :is(i, span),
html body.is-authenticated:not(.guardian-portal-only):not(.report-print-body) #appMain :is(.btn-soft, .btn-ghost, .icon-only-btn):not(.btn-danger):not(.btn-primary) :is(i, span) {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

html body.is-authenticated:not(.guardian-portal-only):not(.report-print-body) #appMain :is(.btn-soft, .btn-ghost):not(.btn-danger):not(.btn-primary) {
  background: #eaf2fb !important;
  border-color: #b8cce3 !important;
}

html body.is-authenticated #appMain #module-estudiantes tr[draggable="true"] {
  cursor: grab !important;
}

html body.is-authenticated #appMain #module-estudiantes tr.is-order-selected td {
  background: #dbeafe !important;
  box-shadow: inset 0 2px #2563eb, inset 0 -2px #2563eb;
}

html body.is-authenticated #appMain #module-estudiantes tr.is-drop-target td {
  background: #fff2cc !important;
  box-shadow: inset 0 3px #b98923;
}
