:root {
  --azul: #1e3a5f;
  --azul-claro: #2c5282;
  --gris-bg: #f4f6f8;
  --borde: #dfe3e8;
  --texto: #1a202c;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--texto); background: var(--gris-bg); }

/* Login */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--azul), var(--azul-claro));
}
.login-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  text-align: center;
}
.login-card h1 { margin: 0; color: var(--azul); }
.subtitle { color: #718096; margin-top: 0.25rem; margin-bottom: 1.5rem; font-size: 0.9rem; }
.login-card form { text-align: left; display: flex; flex-direction: column; gap: 0.35rem; }
.login-card label { font-size: 0.85rem; font-weight: 600; margin-top: 0.5rem; }
.login-card input {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--borde);
  border-radius: 8px;
  font-size: 1rem;
}
.login-card button {
  margin-top: 1.25rem;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: var(--azul);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.login-card button:hover { background: var(--azul-claro); }
.login-jornada { margin: 0.2rem 0 0; font-weight: 700; color: var(--azul); font-size: 0.95rem; }
.login-cambiar-jornada { display: inline-block; margin: 0.15rem 0 0.6rem; font-size: 0.85rem; color: var(--azul-claro); }
.login-nocturna .login-jornada { color: #3b2a7a; }
.login-nocturna .login-card { border-top: 5px solid #3b2a7a; }
.topbar-jornada { background: #3b2a7a; color: #fff; border-radius: 999px; padding: 0.15rem 0.6rem; font-size: 0.75rem; font-weight: 700; margin-left: 0.5rem; white-space: nowrap; }
.error-msg { color: #c53030; font-size: 0.85rem; min-height: 1.2em; margin-top: 0.5rem; }

/* Dashboard */
.topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--azul);
  color: #fff;
  padding: 0.6rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .brand { font-weight: 700; font-size: 1.1rem; }
.topbar-user { margin-left: auto; font-size: 0.85rem; opacity: 0.9; }
.icon-btn, .logout-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}
.logout-btn { border: 1px solid rgba(255,255,255,0.4); border-radius: 6px; padding: 0.3rem 0.7rem; }

.layout { display: flex; min-height: calc(100vh - 48px); }
.sidebar {
  width: 260px;
  background: #fff;
  border-right: 1px solid var(--borde);
  overflow-y: auto;
  flex-shrink: 0;
  transition: margin-left 0.2s ease;
}
.sidebar.collapsed { margin-left: -260px; }
.content { flex: 1; padding: 1.5rem; }

.menu-group summary {
  cursor: pointer;
  padding: 0.7rem 1rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--borde);
}
.menu-group summary::-webkit-details-marker { display: none; }
.menu-item {
  display: block;
  padding: 0.55rem 1.25rem 0.55rem 2rem;
  color: var(--texto);
  text-decoration: none;
  font-size: 0.92rem;
}
.menu-item:hover, .menu-leaf:hover { background: var(--gris-bg); }
.menu-leaf {
  display: block;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--borde);
  color: var(--texto);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 720px) {
  .sidebar { position: fixed; left: 0; top: 48px; bottom: 0; z-index: 9; }
  .sidebar.collapsed { margin-left: -260px; }
}

/* Módulos CRUD (ej. Usuarios) */
.modulo-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.modulo-header input, .modulo-header select {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--borde);
  border-radius: 6px;
  font-size: 0.9rem;
}
.btn-primary {
  background: var(--azul);
  color: #fff;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-left: auto;
}
.btn-primary:hover { background: var(--azul-claro); }
.btn-secondary {
  background: #fff;
  color: var(--azul);
  border: 1px solid var(--azul);
  padding: 0.55rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.btn-secondary:hover { background: var(--gris-bg); }
.fila-grupo-area td { background: var(--gris-bg); font-weight: 700; padding: 0.4rem 0.9rem; }
.total-intensidad-badge {
  display: inline-block;
  background: var(--azul);
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.form-grid-checkbox { display: flex; align-items: center; }
.form-grid-checkbox label { display: flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.85rem; }
.form-grid-checkbox input[type="checkbox"] { width: auto; }

dialog.dialog-ancho { max-width: 640px; padding: 1.5rem; }
dialog.dialog-xl { max-width: 820px; max-height: 88vh; overflow-y: auto; }
.dialog-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.dialog-header-flex h3 { margin: 0; }
.icon-btn-cerrar { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: #718096; }

/* Caracterización SIMPADE */
dialog.dialog-simpade { max-width: 900px; max-height: 88vh; overflow-y: auto; padding-bottom: 0; }
.simpade-seccion-titulo {
  margin: 1.25rem 0 0.6rem 0;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--azul);
  color: var(--azul);
  font-size: 0.95rem;
}
.simpade-seccion-titulo:first-of-type { margin-top: 0.5rem; }
dialog.dialog-simpade .simpade-pie { position: sticky; bottom: 0; background: #fff; padding: 0.8rem 1.5rem 1rem; margin: 1rem -1.5rem -1.5rem; border-top: 1px solid #e3e6ea; box-shadow: 0 -6px 12px -8px rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: flex-end; gap: 0.8rem; z-index: 2; }
.simpade-pie-aviso { flex: 1; font-size: 0.92rem; font-weight: 600; padding: 0.45rem 0.7rem; border-radius: 6px; opacity: 0; transition: opacity .25s; }
.simpade-pie-aviso.visible { opacity: 1; }
.simpade-pie-aviso.ok { background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7; }
.simpade-pie-aviso.error { background: #FDECEA; color: #B71C1C; border: 1px solid #F5C6C2; }
label.simpade-obligatoria::after { content: ' *'; color: #c62828; }
#formSimpade input:disabled::placeholder, #pfsForm input:disabled::placeholder { color: #999; font-style: italic; }
.simpade-perdidas { margin: 0.2rem 0 0.7rem; padding: 0.55rem 0.8rem; background: #F3F6FA; border: 1px solid #D6E0EC; border-radius: 6px; font-size: 0.85rem; }
.simpade-perdidas ul { margin: 0.3rem 0 0; padding-left: 1.2rem; } .simpade-perdidas li { margin: 0.15rem 0; }
.sp-perd-error { color: #B71C1C; font-weight: 600; } .sp-perd-aviso { margin-top: 0.4rem; color: #1B5E20; font-weight: 600; }
.sp-otros-anios { margin: 0.6rem 0; padding: 0.55rem 0.8rem; background: #FFF8E1; border: 1px solid #F3D98B; border-radius: 6px; font-size: 0.9rem; }
.sp-otros-anios .btn-link { background: none; border: 0; color: #1D5FA8; text-decoration: underline; cursor: pointer; font: inherit; padding: 0 0.2rem; }
.simpade-nota-retiro { margin: 0.2rem 0 0.6rem; padding: 0.45rem 0.7rem; background: #FFF8E1; border-left: 3px solid #F9A825; border-radius: 4px; font-size: 0.85rem; color: #5D4037; }
#formSimpade select:disabled, #formSimpade input:disabled { background: #f1f3f5; color: #333; cursor: not-allowed; }
.campo-ancho { grid-column: 1 / -1; }
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  background: var(--gris-bg);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
}
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.5rem 1rem;
  background: var(--gris-bg);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
}
.checkbox-group label.checkbox-inline {
  display: flex !important;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 400;
  white-space: normal;
  margin: 0 !important;
}
.checkbox-group label.checkbox-inline input[type="checkbox"] {
  width: auto !important;
  flex-shrink: 0;
  margin-top: 0.15rem;
  padding: 0;
  border: none;
}

/* Matriz dinámica de Docente por Asignatura */
#matrizAsignaturas h3 {
  margin: 1.25rem 0 0.5rem 0;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--azul);
  color: var(--azul);
}
.matriz-grado { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.5rem; }
.matriz-columna {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  min-width: 220px;
  flex: 1 1 240px;
}
.matriz-columna h4 { margin: 0 0 0.6rem 0; font-size: 0.9rem; color: var(--azul-claro); }
.matriz-item {
  display: block;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--gris-bg);
  font-size: 0.85rem;
  cursor: pointer;
}
.matriz-item:last-child { border-bottom: none; }
.matriz-item input[type="checkbox"] { margin-right: 0.4rem; }
.matriz-item span { font-weight: 600; }
.matriz-item small { display: block; margin-left: 1.4rem; color: #718096; text-transform: uppercase; font-size: 0.72rem; }
.btn-link {
  background: none;
  border: none;
  color: var(--azul-claro);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.2rem 0.4rem;
}
.btn-link:hover { text-decoration: underline; }

.tabla-datos {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.tabla-datos th, .tabla-datos td {
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--borde);
  font-size: 0.9rem;
}
.tabla-datos th { background: var(--gris-bg); font-weight: 700; }
.acciones-cell { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.badge-ok, .badge-off {
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-ok { background: #e6fffa; color: #047857; }
.badge-off { background: #fef2f2; color: #b91c1c; }

.aviso { min-height: 1.5em; margin-bottom: 0.5rem; font-size: 0.9rem; border-radius: 6px; padding: 0; }
.aviso-ok { padding: 0.6rem 0.9rem; background: #e6fffa; color: #047857; }
.aviso-error { padding: 0.6rem 0.9rem; background: #fef2f2; color: #b91c1c; }

dialog {
  border: none;
  border-radius: 10px;
  padding: 0;
  width: 90%;
  max-width: 420px;
}
dialog::backdrop { background: rgba(0,0,0,0.4); }
dialog form { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.5rem; }
dialog h3 { margin: 0 0 0.5rem 0; }
dialog label { font-size: 0.85rem; font-weight: 600; margin-top: 0.4rem; }
dialog input, dialog select {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--borde);
  border-radius: 6px;
  font-size: 0.95rem;
}
.dialog-acciones {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.dialog-acciones button[type="button"] {
  background: none;
  border: 1px solid var(--borde);
  border-radius: 6px;
  padding: 0.55rem 1rem;
  cursor: pointer;
}
.ayuda-form { font-size: 0.8rem; color: #718096; margin: 0.4rem 0 0 0; }
code { background: var(--gris-bg); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.85rem; }

/* Módulo Estudiante */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.form-grid label, .content > label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.form-grid input, .form-grid select,
.content textarea, .content input[type="text"], .content input[type="date"], .content input[type="email"], .content select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--borde);
  border-radius: 6px;
  font-size: 0.9rem;
}
.content textarea { margin-bottom: 0.75rem; resize: vertical; }
/* Campos sin "type" (buscadores, nombres…) y de búsqueda/teléfono/clave: mismo aspecto que los de texto.
   :where() deja la especificidad en 0, así las clases con ancho propio (notas, valores…) siguen mandando. */
:where(.content input:not([type]), .content input[type="search"], .content input[type="tel"], .content input[type="password"], .content input[type="number"]:not([class])) {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--borde);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
}
.content .nn-filtros { min-width: min(520px, 100%); }

.resultados-flotantes {
  position: relative;
  z-index: 5;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 6px;
  max-height: 220px;
  overflow-y: auto;
}
.resultado-item { padding: 0.5rem 0.7rem; cursor: pointer; font-size: 0.88rem; border-bottom: 1px solid var(--borde); }
.resultado-item:hover { background: var(--gris-bg); }

.tarjeta-detalle {
  margin-top: 1rem;
  background: #fff;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.tarjeta-detalle h3 { margin-top: 0; }


/* Planilla de Propósitos (Evaluaciones) */
.planilla-banner {
  background: #bfd4f6;
  border: 1px solid #9db8e6;
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.75rem;
  color: #1c3d73;
}
.planilla-banner small { display: block; font-size: 0.75rem; opacity: 0.85; margin-top: 0.15rem; }
.planilla-leyenda {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  background: #fff; border: 1px solid var(--borde); border-radius: 6px;
  padding: 0.5rem 0.8rem; margin-bottom: 0.75rem; font-size: 0.85rem;
}
.leyenda-item { display: inline-flex; align-items: center; gap: 0.3rem; }
.desempeno-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.4rem; height: 1.4rem; border: 1px solid #444; border-radius: 3px; font-size: 0.8rem; background: #fff;
}
.tabla-scroll { overflow-x: auto; }
.planilla-tabla th { text-align: center; }
.planilla-tabla .planilla-nombre { text-align: left; white-space: nowrap; font-size: 0.85rem; }
.planilla-tabla .planilla-indicador { background: #6f98dc; color: #fff; font-size: 0.78rem; max-width: 220px; }
.planilla-tabla .desempeno-sub { background: #cfe0fa; font-size: 0.72rem; padding: 0.2rem; }
.planilla-tabla td.desempeno-celda { padding: 0.15rem 0.2rem; text-align: center; }
.desempeno-btn {
  width: 1.3rem; height: 1.3rem; border: 1px solid #8a8a8a; border-radius: 3px;
  background: #eceff3; cursor: pointer; padding: 0;
}
.desempeno-btn:hover { background: #d7e8d3; }
.desempeno-btn.sel { background: #7ad577; border-color: #3d9b3a; }

/* Asignación de Notas (Primaria, Secundaria, Media) */
.badge-desempeno {
  display: inline-block; min-width: 2.2rem; padding: 0.1rem 0.35rem; border-radius: 4px;
  font-size: 0.75rem; font-weight: 700; text-align: center; border: 1px solid transparent;
}
.badge-desempeno.d-DB  { background: #fde2e1; color: #9b1c1c; border-color: #f5b5b2; }
.badge-desempeno.d-DBs { background: #fff4d6; color: #8a5a00; border-color: #f2d48a; }
.badge-desempeno.d-DA  { background: #dff3e4; color: #1f6b35; border-color: #a9dbb6; }
.badge-desempeno.d-DS  { background: #dbe8fb; color: #1c3d73; border-color: #a9c3ef; }
.badge-desempeno.vacio { color: #a0aec0; }
.barra-actividad { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.barra-actividad input { flex: 1 1 260px; padding: 0.45rem 0.6rem; border: 1px solid var(--borde); border-radius: 6px; }
.planilla-notas th.col-actividad { background: #6f98dc; color: #fff; font-size: 0.78rem; min-width: 4.6rem; max-width: 9rem; vertical-align: top; }
.planilla-notas .act-nombre { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planilla-notas .act-acciones { display: inline-flex; gap: 0.15rem; margin-top: 0.15rem; }
.icono-mini {
  border: 1px solid rgba(0,0,0,0.15); background: #fff; color: #2d3748; border-radius: 3px;
  font-size: 0.7rem; line-height: 1; padding: 0.15rem 0.3rem; cursor: pointer;
}
.icono-mini:hover { background: var(--gris-bg); }
.planilla-notas td { padding: 0.25rem 0.35rem; }
.planilla-notas td.celda-nota, .planilla-notas td.celda-promedio, .planilla-notas td.celda-desempeno { text-align: center; }
.planilla-notas td.celda-promedio { font-weight: 700; min-width: 3.5rem; }
.input-nota, .input-mini {
  width: 3.4rem; padding: 0.3rem 0.25rem; text-align: center; border: 1px solid var(--borde); border-radius: 4px;
  font-size: 0.88rem; transition: background 0.3s;
}
.input-mini { width: 2.6rem; }
.input-obs { width: 14rem; padding: 0.3rem 0.4rem; border: 1px solid var(--borde); border-radius: 4px; font-size: 0.82rem; }
.input-nota:disabled, .input-mini:disabled, .input-obs:disabled { background: var(--gris-bg); color: #4a5568; }
.guardando { background: #fffbea !important; }
.guardado { background: #e6fffa !important; border-color: #38b2ac !important; }
.con-error { background: #fef2f2 !important; border-color: #e53e3e !important; }
.resumen-desempenos { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0.75rem 0; font-size: 0.85rem; align-items: center; }
.juicios-curso {
  margin-top: 1.25rem; background: #fff; border: 1px solid var(--borde); border-radius: 8px; padding: 0.9rem 1rem;
}
.juicios-curso h3 { margin: 0 0 0.25rem 0; font-size: 1rem; color: var(--azul); }
.juicios-lista { margin: 0.6rem 0; padding-left: 1.3rem; }
.juicios-lista li { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.35rem 0; border-bottom: 1px solid var(--gris-bg); }
.juicios-lista .juicio-texto { flex: 1; font-size: 0.88rem; }
.juicios-curso .juicios-lista select { flex: 0 0 auto; width: 6.5rem; padding: 0.2rem; font-size: 0.8rem; }
.juicio-agregar { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; align-items: flex-start; }
.juicio-agregar select, .juicio-agregar textarea {
  flex: 1 1 320px; min-width: 0; padding: 0.4rem; border: 1px solid var(--borde); border-radius: 6px; font: inherit; font-size: 0.85rem;
}

/* Tutorías: convivencia y observaciones */
.planilla-tutoria .input-texto {
  width: 100%; min-width: 16rem; padding: 0.3rem 0.4rem; border: 1px solid var(--borde); border-radius: 4px;
  font: inherit; font-size: 0.82rem; resize: vertical;
}

/* ===== Boletín por periodo (formato del sistema anterior) ===== */
.boletin-contenedor { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.boletin-hoja {
  width: 100%; max-width: 21.59cm; background: #fff; color: #000; padding: 1cm 1.1cm;
  box-shadow: 0 1px 6px rgba(0,0,0,0.15); font-family: Arial, Helvetica, sans-serif; font-size: 8.5pt; line-height: 1.25;
  box-sizing: border-box;
}
.boletin-hoja table { width: 100%; border-collapse: collapse; }
.boletin-hoja b { font-weight: 700; }
.bol-encabezado td { vertical-align: middle; padding: 0; }
.bol-inst { font-size: 10pt; margin-bottom: 2px; }
.bol-lema { font-weight: 700; margin-left: 1.5rem; }
.bol-linea { font-size: 7.5pt; }
.bol-escudo { width: 2.7cm; text-align: right; }
.bol-escudo img { max-width: 2.6cm; max-height: 2.4cm; }
.bol-titulo { text-align: center; font-weight: 700; text-decoration: underline; margin: 0.35cm 0 0.1cm; font-size: 9.5pt; }
.bol-datos td { padding: 1px 4px 1px 0; font-size: 9pt; }
.bol-subtitulo { position: relative; text-align: center; font-weight: 700; text-decoration: underline; margin: 0.15cm 0; font-size: 9.5pt; }
.bol-subtitulo small { position: absolute; right: 0; top: 0; font-weight: 400; text-decoration: none; font-size: 7.5pt; }
.bol-escala td { border: 1px solid #000; padding: 2px 4px; font-size: 8pt; }
.bol-area { margin-top: 0.15cm; }
.bol-area th, .bol-area td { border: 1px solid #000; padding: 2px 4px; vertical-align: middle; text-align: left; }
.bol-area thead th { background: #e3e3e3; font-weight: 700; }
.bol-area .bol-col-asig { width: 32%; }
.bol-area .bol-col-num { width: 3.5%; text-align: center; }
.bol-area .bol-col-escala { width: 9%; text-align: center; white-space: nowrap; }
.bol-area thead .bol-col-juicio { font-weight: 400; }
.bol-area .bol-col-juicio { font-size: 8pt; }
.bol-obs-asig { margin-top: 2px; }
.bol-preescolar .bol-proposito { width: 38%; }
.bol-preescolar .bol-x { width: 4%; text-align: center; font-weight: 700; }
.bol-convivencia, .bol-promedios, .bol-historico, .bol-pie, .bol-hist-titulo { margin-top: 0.2cm; }
.bol-convivencia td { border: 1px solid #000; padding: 3px 4px; }
.bol-conv-label { width: 13%; }
.bol-conv-nota { width: 14%; text-align: right; }
.bol-promedios { width: 70% !important; }
.bol-promedios td { border: 1px solid #000; padding: 3px 6px; }
.bol-prom-titulo { width: 28%; }
.bol-prom-fila { display: grid; grid-template-columns: 9.5em 3em 1fr; align-items: center; gap: 6px; }
.bol-barra { display: block; height: 7px; background: #eee; border: 1px solid #999; }
.bol-barra span { display: block; height: 100%; background: #4a76c2; }
.bol-hist-titulo { font-weight: 700; }
.bol-historico th, .bol-historico td { border: 1px solid #000; padding: 1px 2px; text-align: center; font-size: 7.5pt; }
.bol-historico thead th { background: #e3e3e3; }
.bol-pie td { border: 1px solid #000; padding: 3px 4px; }
.bol-caja { display: inline-block; min-width: 1.5em; border: 1px solid #000; text-align: center; margin-left: 4px; }
.bol-obs div { min-height: 1.4cm; padding-top: 2px; }
.bol-firmas { margin-top: .4cm; }
.bol-cierre { break-inside: avoid; page-break-inside: avoid; }
.bol-firmas td { width: 50%; text-align: center; font-weight: 700; padding: 0 1cm; }
.bol-firmas small { display: block; font-weight: 400; }
.bol-firma-linea { border-top: 1px solid #000; margin-bottom: 2px; }

@media print {
  @page { size: letter; margin: 0.8cm; }
  body, .dashboard-body { background: #fff !important; }
  .topbar, .sidebar, .no-imprimir, #contentTitle { display: none !important; }
  .layout, .content { display: block !important; padding: 0 !important; margin: 0 !important; }
  .boletin-contenedor { display: block; }
  .boletin-hoja { box-shadow: none; padding: 0; max-width: none; page-break-after: always; break-after: page; }
  .boletin-hoja:last-child { page-break-after: auto; break-after: auto; }
  .bol-area tr, .bol-convivencia, .bol-historico, .bol-firmas { break-inside: avoid; }
  .bol-area thead th, .bol-historico thead th, .bol-barra span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Proceso Integral en la planilla (Sub 1 Saber, Sub 2 Saber Hacer, Sub 3 Ser) */
.barra-actividad select, .barra-actividad input[type="date"] { padding: 0.45rem 0.5rem; border: 1px solid var(--borde); border-radius: 6px; font: inherit; font-size: 0.88rem; }
.barra-actividad.editando { background: #fffbea; border: 1px dashed #d69e2e; border-radius: 6px; padding: 0.4rem; }
.planilla-notas th.col-sub-titulo { color: #fff; font-size: 0.8rem; text-align: center; }
.planilla-notas th.col-sub-titulo small { display: block; font-weight: 400; opacity: 0.9; }
.planilla-notas th.col-sub-titulo.c0, .planilla-notas th.col-actividad.c0, .planilla-notas th.col-sub.c0 { background: #5b86d6; }
.planilla-notas th.col-sub-titulo.c1, .planilla-notas th.col-actividad.c1, .planilla-notas th.col-sub.c1 { background: #4a9b8e; }
.planilla-notas th.col-sub-titulo.c2, .planilla-notas th.col-actividad.c2, .planilla-notas th.col-sub.c2 { background: #8a6bbf; }
.planilla-notas th.col-actividad { min-width: 3.8rem; max-width: 5rem; white-space: nowrap; }
.planilla-notas th.col-sub { color: #fff; font-size: 0.78rem; min-width: 4.8rem; }
.planilla-notas td.celda-sub { text-align: center; white-space: nowrap; font-weight: 600; font-size: 0.85rem; }
.planilla-notas td.celda-sub.c0 { background: #eef3fc; }
.planilla-notas td.celda-sub.c1 { background: #ecf6f4; }
.planilla-notas td.celda-sub.c2 { background: #f3eff9; }
.definicion-notas { margin-top: 1rem; background: #fff; border: 1px solid var(--borde); border-radius: 8px; padding: 0.9rem 1rem; }
.definicion-notas h3 { margin: 0 0 0.6rem 0; font-size: 1rem; color: var(--azul); }
.definicion-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.8rem; }
.definicion-titulo { font-size: 0.88rem; margin-bottom: 0.35rem; }
.definicion-item { background: var(--gris-bg); border-radius: 4px; padding: 0.3rem 0.5rem; margin-bottom: 0.3rem; font-size: 0.82rem; }
.definicion-item small { display: block; color: #718096; font-size: 0.72rem; }
.barra-actividad select#componenteActividad { flex: 0 1 230px; width: auto; }
.barra-actividad input#fechaActividad { flex: 0 0 auto; width: auto; }
.planilla-notas th.col-actividad .act-acciones { display: flex; justify-content: center; margin-top: 0.2rem; }
/* Ajuste de densidad para que el boletín quepa en 2 hojas */
.boletin-hoja { line-height: 1.15; }
.bol-area { margin-top: 0.1cm; }
.bol-area .bol-col-asig { width: 26%; }
.bol-area th, .bol-area td { padding: 1px 3px; }
.bol-area .bol-col-juicio { font-size: 7.5pt; }
.bol-hist-titulo { break-after: avoid; page-break-after: avoid; }
.bol-convivencia, .bol-promedios, .bol-historico, .bol-pie, .bol-hist-titulo { margin-top: 0.15cm; }
@media print { @page { margin: 0.7cm; } }

/* Procesos Académicos por Escala Valorativa (configuración del docente) */
.aviso-fechas { display: inline-block; background: #e6fffa; border: 1px solid #81e6d9; color: #234e52; border-radius: 6px; padding: 0.6rem 0.9rem; margin: 0 0 0.8rem; font-size: 0.9rem; }
.aviso-fechas.cerrado { background: #f8e1e1; border-color: #e8b4b4; color: #4a1d1d; }
.ficha-curso { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.25rem 1rem; background: #fff; border: 1px solid var(--borde);
  border-radius: 6px; padding: 0.5rem 0.8rem; margin-bottom: 0.8rem; font-size: 0.85rem; max-width: 720px; }
.tabla-procesos { max-width: 1000px; }
.tabla-procesos > thead th, .tabla-procesos > tfoot th { background: #5b86d6; color: #fff; }
.tabla-procesos td { vertical-align: middle; }
.tabla-procesos .centro { text-align: center; }
.input-proc { width: 100%; min-width: 10rem; padding: 0.3rem 0.4rem; border: 1px solid var(--borde); border-radius: 4px; font: inherit; font-size: 0.88rem; }
.tabla-subprocesos { width: 100%; border-collapse: collapse; }
.tabla-subprocesos th { background: #5b86d6; color: #fff; font-size: 0.8rem; padding: 0.2rem 0.4rem; }
.tabla-subprocesos td { padding: 0.15rem 0.3rem; border-bottom: 1px solid var(--gris-bg); }
.sin-subprocesos { color: #c53030; }
.acciones-sub { display: flex; gap: 0.8rem; margin-top: 0.3rem; }
.total-mal { color: #fed7d7; font-weight: 700; }
.tabla-subprocesos .total-mal, .ficha-curso .total-mal { color: #c53030; }
.duplicar-procesos { margin-top: 1rem; background: #fff; border: 1px solid var(--borde); border-radius: 8px; padding: 0.7rem 1rem; max-width: 1000px; }
.duplicar-procesos summary { cursor: pointer; font-weight: 600; color: var(--azul); }
.duplicar-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.25rem 1rem; margin: 0.5rem 0; font-size: 0.85rem; }
.aviso-config { background: #fffbea; border: 1px solid #f6e05e; border-radius: 8px; padding: 0.8rem 1rem; }
.aviso-config p { margin: 0 0 0.4rem; }
/* Planilla con procesos: encabezado de proceso y totales por proceso */
.planilla-notas th.col-proceso { background: #3f64a8; color: #fff; text-align: center; font-size: 0.82rem; }
.planilla-notas th.col-total-proceso { background: #2f4f86; color: #fff; font-size: 0.78rem; }
.planilla-notas td.celda-total-proceso { background: #e8eef9; }
.definicion-proceso { font-weight: 700; font-size: 0.88rem; margin: 0.4rem 0; background: #e8eef9; padding: 0.25rem 0.5rem; border-radius: 4px; }
.barra-botones { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }
.barra-actividad select#destinoActividad { flex: 0 1 320px; width: auto; }

/* Configuración de Propósitos */
.tarjeta-form { background: #fff; border: 1px solid var(--borde); border-radius: 8px; padding: 0.8rem 1rem; margin-bottom: 0.8rem; }
.tarjeta-form.editando { background: #fffbea; border-color: #f6e05e; }
.propositos-fila { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: flex-end; margin-bottom: 0.5rem; }
.propositos-fila > div { display: flex; flex-direction: column; gap: 0.2rem; }
.propositos-fila label { font-size: 0.82rem; font-weight: 600; }
.propositos-fila select, .propositos-fila input[type="text"], .propositos-fila input[type="number"] {
  padding: 0.45rem 0.5rem; border: 1px solid var(--borde); border-radius: 6px; font: inherit; font-size: 0.88rem; }
.propositos-fila .propositos-texto { flex: 1 1 320px; }
.propositos-fila .propositos-orden input { width: 5rem; }
.propositos-fila .propositos-boton { flex-direction: row; gap: 0.4rem; }
.propositos-fila .form-grid-checkbox { flex-direction: row; align-items: center; padding-bottom: 0.4rem; }
.tabla-propositos td.celda-periodo { font-weight: 700; vertical-align: top; text-align: center; background: var(--gris-bg); width: 5rem; }
.tabla-propositos td { font-size: 0.86rem; }
.datos-propositos { margin-top: 1.2rem; border: 1px solid var(--borde); border-radius: 8px; padding: 0.6rem 0.9rem; background: #fff; }
.datos-propositos legend { font-weight: 600; color: var(--azul); padding: 0 0.3rem; }
.tabla-datos-propositos th { text-align: center; font-size: 0.8rem; white-space: nowrap; }
.tabla-datos-propositos td.centro { text-align: center; }
.btn-indicadores { border: 1px solid var(--azul-claro); background: #fff; color: var(--azul); border-radius: 4px; padding: 0.25rem 0.5rem; font-size: 0.78rem; cursor: pointer; white-space: nowrap; }
.btn-indicadores:hover { background: #eef3fc; }
.btn-indicadores.vacio { border-style: dashed; color: #718096; border-color: #a0aec0; }

/* Imprimir planilla de notas */
.barra-imprimir { display: flex; justify-content: flex-end; margin: -0.3rem 0 0.6rem; }
#zonaImpresion { display: none; }
@media print {
  body.imprimiendo-planilla > *:not(#zonaImpresion) { display: none !important; }
  body.imprimiendo-planilla { background: #fff !important; }
  body.imprimiendo-planilla #zonaImpresion { display: block; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; color: #000; }
}
#zonaImpresion .imp-encabezado { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4px; font-size: 9pt; }
#zonaImpresion .imp-asignatura { font-size: 12pt; }
#zonaImpresion .imp-derecha { text-align: right; }
#zonaImpresion .imp-escala { border: 1px solid #000; padding: 2px 4px; margin-bottom: 4px; font-size: 7.5pt; }
#zonaImpresion .imp-tabla { width: 100%; border-collapse: collapse; }
#zonaImpresion .imp-tabla th, #zonaImpresion .imp-tabla td { border: 1px solid #000; padding: 1px 3px; text-align: center; }
#zonaImpresion .imp-tabla th { background: #dfe8f7; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
#zonaImpresion .imp-tabla tr { break-inside: avoid; }
#zonaImpresion .imp-nombre { text-align: left !important; white-space: nowrap; }
#zonaImpresion .imp-sub { background: #f1f5fc; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
#zonaImpresion .imp-total { font-weight: 700; }
#zonaImpresion .imp-DB { color: #c00000; } #zonaImpresion .imp-DBs { color: #000; }
#zonaImpresion .imp-DA { color: #1f3fbf; } #zonaImpresion .imp-DS { color: #137333; }
#zonaImpresion .imp-definicion { margin-top: 8px; border: 1px solid #000; padding: 4px 6px; break-inside: avoid; }
#zonaImpresion .imp-def-titulo { font-weight: 700; margin-bottom: 2px; }
#zonaImpresion .imp-def-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 12px; margin-bottom: 4px; }
#zonaImpresion .imp-def-item small { color: #444; }

/* Consulta de Estudiante */
.consulta-cabecera { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.consulta-total { color: var(--azul-claro); font-size: 0.95rem; }
.consulta-filtros { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; background: #eef4fc; border: 1px solid #c9dbf3;
  border-radius: 8px; padding: 0.7rem 0.9rem; margin-bottom: 0.7rem; font-size: 0.88rem; }
.consulta-filtros label { display: flex; align-items: center; gap: 0.35rem; font-weight: 600; }
.consulta-filtros select { padding: 0.35rem 0.4rem; border: 1px solid var(--borde); border-radius: 5px; font: inherit; font-weight: 400; }
.consulta-barra { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; background: #fff; border: 1px solid var(--borde);
  border-radius: 8px; padding: 0.6rem; margin-bottom: 0.7rem; }
.consulta-columnas { position: relative; }
.menu-columnas { position: absolute; z-index: 20; top: 110%; left: 0; background: #fff; border: 1px solid var(--borde); border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12); padding: 0.5rem 0.8rem; min-width: 200px; display: grid; gap: 0.3rem; font-size: 0.86rem; }
.menu-columnas label { display: flex; gap: 0.4rem; align-items: center; white-space: nowrap; }
.consulta-controles { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.4rem; font-size: 0.88rem; }
.consulta-controles select, .consulta-controles input { padding: 0.35rem 0.5rem; border: 1px solid var(--borde); border-radius: 5px; font: inherit; }
.tabla-consulta th.ordenable { cursor: pointer; user-select: none; white-space: nowrap; }
.tabla-consulta th .flecha { color: #a0aec0; font-size: 0.75rem; }
.tabla-consulta td.col-nombre { white-space: nowrap; }
.consulta-pie { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.85rem; color: #4a5568; }
.paginador { display: flex; gap: 0.25rem; flex-wrap: wrap; align-items: center; }
.paginador button { border: 1px solid var(--borde); background: #fff; border-radius: 4px; padding: 0.25rem 0.55rem; cursor: pointer; font: inherit; }
.paginador button.actual { background: var(--azul); color: #fff; border-color: var(--azul); }
.paginador button:disabled { opacity: 0.45; cursor: default; }
.menu-columnas[hidden] { display: none; }
.consulta-controles label { display: flex; align-items: center; gap: 0.4rem; }
.consulta-controles select { width: auto; }
.consulta-filtros select { width: auto; }

/* Cambiar curso con traslado de notas */
dialog.dialog-traslado { width: min(920px, 96vw); max-width: 920px; padding: 1.4rem 1.5rem; }
dialog.dialog-traslado select#cursoDestino { width: 100%; font-weight: 600; }
.traslado-estudiante { margin: -0.3rem 0 0.6rem; font-weight: 600; color: #2c5282; }
.traslado-vista { margin-top: 0.9rem; max-height: 48vh; overflow-y: auto; }
.traslado-resumen { background: #ebf8ff; border: 1px solid #90cdf4; border-radius: 6px; padding: 0.55rem 0.8rem; margin: 0 0 0.6rem; font-size: 0.9rem; }
.traslado-sin-notas { background: #f0fff4; border: 1px solid #9ae6b4; border-radius: 6px; padding: 0.55rem 0.8rem; font-size: 0.9rem; }
.traslado-cargando { color: #718096; font-style: italic; }
.traslado-ayuda { font-size: 0.82rem; color: #4a5568; margin-top: 0.6rem; }
.tabla-traslado { font-size: 0.82rem; margin-bottom: 0.6rem; }
.tabla-traslado td { vertical-align: top; }
.tabla-traslado td.num { text-align: center; font-weight: 600; }
.traslado-nota { padding: 1px 0; }
.tabla-traslado th:nth-child(4), .tabla-traslado th:nth-child(5) { width: 5.5rem; text-align: center; }
#cursoOtro[hidden], .dialog-traslado [hidden] { display: none !important; }
dialog.dialog-traslado input[readonly] { background: #f7fafc; color: #4a5568; }
.traslado-nota em { color: #b7791f; font-style: normal; font-size: 0.75rem; }
.etiqueta-info { display: inline-block; background: #fefcbf; color: #744210; border-radius: 4px; padding: 0 0.3rem; font-size: 0.7rem; }
.traslado-botones { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.btn-secundario { background: #fff; color: #c05621; border: 1px solid #dd6b20; border-radius: 6px; padding: 0.5rem 0.9rem; cursor: pointer; }
.btn-secundario:hover { background: #fffaf0; }

/* Agregar Notas Estudiantes Nuevos */
.nn-pantalla[hidden] { display: none !important; }
.nn-filtros { display: inline-grid; gap: 0.5rem; background: #f1f3f5; border: 1px solid #d5dbe1; border-radius: 6px; padding: 0.8rem 1rem; margin-bottom: 1rem; min-width: 280px; }
.nn-fila { display: grid; grid-template-columns: 7rem 1fr; align-items: center; gap: 0.5rem; }
.nn-fila label { margin: 0; }
.nn-filtros .btn-primary { justify-self: center; min-width: 8rem; }
.nn-tabla-lista { max-width: 560px; }
.nn-tabla-lista td.num { text-align: center; width: 3.5rem; }
.nn-tabla-lista .nn-completo { color: #276749; font-weight: 600; }
.nn-tabla-lista .nn-vacio { color: #a0aec0; }
.nn-editar { font-size: 1.15rem; text-decoration: none; }
.nn-caja { border: 1px solid #cbd5e0; border-radius: 4px; padding: 0.8rem 1rem 1rem; margin-bottom: 1rem; }
.nn-caja legend { font-size: 0.85rem; font-style: italic; padding: 0 0.3rem; }
.nn-info { display: inline-grid; gap: 0.35rem; background: #f1f3f5; border: 1px solid #d5dbe1; border-radius: 6px; padding: 0.6rem 0.9rem; }
.nn-info span { display: inline-block; min-width: 5.5rem; }
.nn-info button { justify-self: center; }
.nn-condiciones { max-width: 440px; margin: 0 auto 0.8rem; background: #f1f3f5; border: 1px solid #d5dbe1; border-radius: 6px; padding: 0.5rem 0.8rem; text-align: center; font-size: 0.8rem; }
.nn-condiciones p { margin: 0.3rem 0; }
.nn-leyenda span { display: inline-block; width: 6rem; padding: 0.15rem 0; margin-left: 0.4rem; }
span.nn-guardada { background: #c6f6d5; }
span.nn-error { background: #feb2b2; }
.nn-planilla { margin: 0 auto; border-collapse: collapse; font-size: 0.9rem; }
.nn-planilla th { background: #4a7bd0; color: #fff; padding: 0.35rem 0.6rem; border: 1px solid #fff; }
.nn-planilla th:first-child { min-width: 18rem; }
.nn-planilla td { border: 1px solid #e2e8f0; padding: 0.2rem 0.3rem; }
.nn-asignatura { padding-left: 0.4rem !important; }
.nn-celda { text-align: center; }
input.nn-nota { width: 3.4rem; padding: 0.25rem 0.3rem; border: 1px solid #a0aec0; border-radius: 4px; font-size: 0.9rem; }
input.nn-nota.nn-guardada { background: #c6f6d5; border-color: #68d391; }
input.nn-nota.nn-error { background: #feb2b2; border-color: #e53e3e; }
input.nn-nota[readonly] { color: #2d3748; cursor: not-allowed; }
.nn-estado { text-align: center; color: #c53030; font-size: 0.85rem; min-height: 1.2em; }
.celda-promedio.nota-externa { color: #2b6cb0; }
.celda-promedio.nota-externa sup { font-size: 0.65rem; margin-left: 1px; }
@media (max-width: 600px) { .nn-planilla th:first-child { min-width: 9rem; } .nn-filtros { min-width: 0; width: 100%; } }

/* Módulo Reportes */
.rep-subtitulo { font-weight: 400; font-size: 1.3rem; margin: 0 0 0.8rem; }
.rep-tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.rep-tarjeta { background: #fff; border: 1px solid #d5dbe1; border-radius: 6px; display: flex; flex-direction: column; overflow: hidden; }
.rep-tarjeta h4 { margin: 0; padding: 0.7rem 0.9rem; background: #e2e6ea; font-size: 1.05rem; }
.rep-tarjeta p { flex: 1; margin: 0; padding: 0.8rem 0.9rem; font-size: 0.92rem; }
.rep-tarjeta .btn-primary { border-radius: 0; width: 100%; padding: 0.7rem; }
.rep-filtros { display: inline-grid; gap: 0.45rem; background: #f1f3f5; border: 1px solid #d5dbe1; border-radius: 6px; padding: 0.8rem 1rem; margin-bottom: 0.6rem; min-width: 320px; }
.rep-fila { display: grid; grid-template-columns: 9rem 1fr; align-items: center; gap: 0.5rem; }
.rep-fila label { margin: 0; }
.rep-filtros .btn-primary { justify-self: center; min-width: 8rem; }
.rep-opciones { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; background: #f1f3f5; border: 1px solid #d5dbe1; border-radius: 6px; padding: 0.5rem 0.9rem; margin: 0.4rem 0; }
.rep-opciones label { margin: 0; display: flex; align-items: center; gap: 0.35rem; }
.rep-acciones { display: flex; justify-content: center; gap: 0.5rem; margin: 0.6rem 0; }
.rep-acciones [hidden] { display: none !important; }
.btn-generar { background: #38a169; color: #fff; border: 0; border-radius: 4px; padding: 0.55rem 1rem; cursor: pointer; font-weight: 600; }
.btn-generar:hover { background: #2f855a; }
.rep-estado { display: flex; justify-content: center; gap: 1.2rem; margin-bottom: 0.5rem; }
.rep-estado label { margin: 0; display: flex; align-items: center; gap: 0.3rem; }
.rep-lista { max-width: 640px; margin: 0 auto 1rem; }
.rep-lista td.num, .rep-lista th:first-child { text-align: center; width: 3rem; }
.bol-salto { break-before: page; page-break-before: always; height: 0; }
@media screen { .bol-salto { border-top: 2px dashed #a0aec0; margin: 0.6cm 0; } }
/* Reporte intermedio */
.int-tabla th, .int-tabla td { border: 1px solid #000; padding: 2px 4px; }
.int-tabla .int-area th { background: #e3e3e3; text-align: center; }
.int-tabla .int-area th:first-child { text-align: left; width: 38%; }
.int-tabla td.num { text-align: center; }
.int-tabla .int-nota-area { text-align: left !important; font-weight: 400; }
.int-alerta { color: #b91c1c; font-size: 7.5pt; }
.int-nota { font-size: 7.5pt; font-style: italic; margin: 0.15cm 0; }
.bol-promedios td { padding: 2px 4px; }
/* Boletín promocional */
.pro-area td.num { text-align: center; }
.pro-col-area { text-align: left !important; font-weight: 400 !important; }
.pro-col-desemp { font-size: 7.5pt; width: 12%; }
.pro-marca { color: #b91c1c; font-weight: 700; font-size: 7.5pt; margin-left: 4px; }
.pro-resumen td { border: 1px solid #000; padding: 3px 5px; font-size: 8.5pt; }
.pro-si { background: #e6ffed; }
.pro-no { background: #ffe4e4; }
.pro-pend { background: #fff7d6; }
.pro-detalle { font-size: 8pt; margin: 0.12cm 0; }
.pro-faltan { color: #975a16; font-style: italic; }
.pro-consolidado { width: 100%; border-collapse: collapse; font-size: 7.5pt; margin-top: 0.2cm; }
.pro-consolidado th, .pro-consolidado td { border: 1px solid #000; padding: 2px 3px; }
.pro-consolidado th { background: #e3e3e3; }
.pro-consolidado td.num { text-align: center; }
.pro-celda-perdida { background: #ffd6d6; font-weight: 700; }
@media print {
  .pro-si, .pro-no, .pro-pend, .pro-celda-perdida { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 600px) { .rep-filtros { min-width: 0; width: 100%; } .rep-fila { grid-template-columns: 1fr; } }
.hoja-promocional .bol-obs div { min-height: 0.9cm; }
.hoja-promocional .bol-firmas { margin-top: 0.9cm; }

/* Base de Juicios Valorativos */
.bj-filtros { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 0.5rem 1.5rem; align-items: center; background: #f1f3f5; border: 1px solid #d5dbe1; border-radius: 6px; padding: 0.8rem 1rem; max-width: 760px; margin-bottom: 0.7rem; }
.bj-fila { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: 0.4rem; }
.bj-fila label { margin: 0; }
.bj-ancha { grid-column: 1 / -1; }
.bj-filtros .btn-primary { grid-column: 2; justify-self: end; min-width: 7rem; }
.bj-barra { background: #f1f3f5; border: 1px solid #d5dbe1; border-radius: 6px; padding: 0.5rem 1rem; text-align: center; margin-bottom: 0.6rem; }
.bj-barra p { margin: 0 0 0.4rem; font-size: 0.82rem; }
.bj-botones { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: center; }
.bj-centro { margin: 0.4rem 0 0.7rem; }
.btn-azul, .btn-verde { color: #fff; border: 0; border-radius: 4px; padding: 0.45rem 0.8rem; cursor: pointer; font-size: 0.9rem; display: inline-flex; align-items: center; margin: 0; }
.btn-azul { background: #3b82c4; } .btn-azul:hover { background: #2b6cb0; }
.btn-verde { background: #38a169; } .btn-verde:hover { background: #2f855a; }
.bj-archivo { font-weight: 400; }
.bj-categoria { display: flex; justify-content: center; align-items: center; gap: 0.5rem; }
.bj-categoria label { margin: 0; }
.bj-tabla { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.92rem; }
.bj-tabla th { background: #4a7bd0; color: #fff; padding: 0.45rem 0.5rem; text-align: center; }
.bj-tabla td { padding: 0.45rem 0.5rem; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
.bj-tabla tbody tr:nth-child(even) { background: #f3f6fb; }
.bj-tabla td.num { text-align: center; white-space: nowrap; }
.bj-tabla tr.bj-inactivo td { color: #a0aec0; }
.bj-vacio { text-align: center; color: #718096; padding: 1rem !important; }
.bj-nuevo { background: #fff; color: #1a202c; border: 1px solid #cbd5e0; border-radius: 4px; padding: 0.3rem 0.6rem; cursor: pointer; white-space: nowrap; }
.bj-estado { border: 0; background: none; cursor: pointer; font-weight: 600; }
.bj-estado.on { color: #2f855a; } .bj-estado.off { color: #c53030; }
.bj-acciones { white-space: nowrap; text-align: center; }
.bj-icono { background: none; border: 0; cursor: pointer; font-size: 1.1rem; color: #c05621; padding: 0 0.25rem; }
.bj-icono.bj-borrar { color: #e53e3e; }
#zonaImpresion .bj-imp-titulo { font-size: 13pt; margin: 0 0 4px; }
#zonaImpresion .bj-imp-ctx { font-size: 9pt; margin: 0 0 6px; }
#zonaImpresion .bj-imp { width: 100%; border-collapse: collapse; font-size: 8.5pt; }
#zonaImpresion .bj-imp th, #zonaImpresion .bj-imp td { border: 1px solid #000; padding: 2px 4px; vertical-align: top; }
#zonaImpresion .bj-imp th { background: #e3e3e3; }
@media (max-width: 700px) { .bj-filtros { grid-template-columns: 1fr; } .bj-filtros .btn-primary { grid-column: 1; } }
.bj-sugerencias { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; margin-top: 0.5rem; }
.bj-sugerencia { background: #ebf4ff; border: 1px solid #90cdf4; border-radius: 4px; padding: 0.35rem 0.7rem; cursor: pointer; color: #1a365d; }
.bj-sugerencia:hover { background: #bee3f8; }
.bj-sugerencia small { color: #4a5568; margin-left: 0.3rem; }
.rep-volver { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.8rem; }
.rep-titulo-actual { font-size: 1.15rem; font-weight: 600; }
.pro-area .bol-col-asig { width: 34%; }
.pro-area .pro-col-area { width: 44%; }
.pro-area td.pro-col-desemp { font-size: 8pt; }
.bol-historico .pro-hist-final td, .bol-historico .pro-hist-final .bol-hist-num { font-weight: 700; background: #f0f0f0; }
.int-tabla .int-area th:first-child { width: 30%; }
.int-tabla .bol-col-juicio { font-size: 8pt; }
.int-tabla td.num { white-space: nowrap; }

/* Configuración de Recuperación */
.rc-caja { background: #fff; }
.rc-centro { text-align: center; margin-bottom: 0.6rem; }
.rc-centro label { display: inline; margin-right: 0.4rem; }
.rc-tabla { margin: 0 auto; border-collapse: collapse; font-size: 0.92rem; }
.rc-tabla th { background: #4a7bd0; color: #fff; padding: 0.35rem 0.6rem; white-space: nowrap; }
.rc-tabla td { padding: 0.35rem 0.6rem; border-bottom: 1px solid #e2e8f0; }
.rc-tabla tbody tr:nth-child(even) { background: #f3f6fb; }
.rc-tabla td.num { text-align: center; white-space: nowrap; }
.rc-tabla input[type="date"] { padding: 0.2rem; font-size: 0.85rem; }
.rc-mini { margin-top: 0.6rem; }
.rc-pct { width: 5rem; }
.rc-acc { white-space: nowrap; text-align: center; }
.rc-ok { color: #2f855a !important; }
.rc-form { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6rem; background: #f1f3f5; border: 1px solid #d5dbe1; border-radius: 6px; padding: 0.5rem 0.8rem; width: fit-content; max-width: 100%; margin: 0 auto; }
.rc-form label { margin: 0; display: flex; align-items: center; gap: 0.35rem; font-weight: 600; }
.rc-form input[type="text"] { min-width: 16rem; }
.rc-ayuda { text-align: center; font-size: 0.85rem; color: #2f855a; margin: 0.5rem 0 0; }
.rc-alerta { color: #c05621; }
.rc-vacio { text-align: center; color: #c53030; margin: 0.6rem 0 0; }
/* Recuperaciones: planilla, reportes y examen */
.rr-filtros { min-width: 420px; }
.rr-filtros .nn-fila { grid-template-columns: 9.5rem 1fr; }
.rr-fechas { background: #f8dede; border-radius: 4px; padding: 0.6rem 0.9rem; margin: 0.6rem auto; width: fit-content; font-size: 0.9rem; }
.rr-fechas.ok { background: #def7e5; }
.rr-titulo { margin: 0.6rem 0 0.3rem; }
.rr-nadie { font-size: 1.05rem; }
.rr-izq { text-align: left; }
.rr-centro { text-align: center; margin: 0.5rem 0; }
.rr-roja { background: #f8a5a5; }
.rr-recupero { background: #c6f6d5; font-weight: 700; }
.rr-planilla input.nn-nota { width: 3.6rem; }
.rr-curso h3 { border-bottom: 1px solid #cbd5e0; padding-bottom: 0.2rem; margin: 1.2rem 0 0.5rem; }
.rr-reporte td { vertical-align: middle; }
.rr-radios { display: flex; flex-direction: column; gap: 0.1rem; }
.rr-radios label { margin: 0; display: flex; gap: 0.3rem; align-items: center; font-weight: 400; }
.rr-info { background: #f1f3f5; border: 1px solid #d5dbe1; padding: 0.3rem 0.6rem; width: fit-content; margin-bottom: 0.6rem; }
.rr-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 800px) { .rr-dos { grid-template-columns: 1fr; } .rr-filtros { min-width: 0; } }
.rr-hoja { background: #fff; padding: 1rem; margin: 0.8rem 0; border: 1px solid #e2e8f0; }
.rr-acta-enc { display: flex; gap: 0.8rem; align-items: center; }
.rr-acta-enc img { width: 1.8cm; }
.rr-acta-titulo { text-align: center; margin: 0.4rem 0; }
.rr-firmas { display: flex; justify-content: space-around; margin-top: 1.6cm; gap: 1rem; }
.rr-firmas div { border-top: 1px solid #000; padding-top: 3px; min-width: 5cm; text-align: center; font-weight: 700; font-size: 9pt; }
#zonaImpresion .rr-hoja { border: 0; padding: 0; break-after: page; }
#zonaImpresion .rr-hoja:last-child { break-after: auto; }
#zonaImpresion .rc-tabla, #zonaImpresion .rr-reporte { border-collapse: collapse; width: 100%; font-size: 8.5pt; }
#zonaImpresion .rc-tabla th, #zonaImpresion .rc-tabla td { border: 1px solid #000; padding: 2px 4px; background: none; color: #000; }

/* Tutoría */
.tu-arriba { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.tu-tutor { background: #f1f3f5; border: 1px solid #d5dbe1; border-radius: 6px; padding: 0.6rem 0.9rem; font-size: 0.9rem; }
.tu-tutor:empty { display: none; }
.tu-tabla td { vertical-align: top; font-size: 0.85rem; }
.tu-juicio { margin-bottom: 0.15rem; }
.tu-vacio { color: #c53030; }
.tu-gris { color: #4a5568; }
.tu-lista { max-height: 45vh; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 4px; padding: 0.4rem; margin-bottom: 0.6rem; }
.tu-opcion { display: flex; gap: 0.4rem; align-items: flex-start; font-weight: 400; padding: 0.25rem 0.2rem; border-bottom: 1px solid #f0f0f0; margin: 0; }
.tu-opcion input { margin-top: 0.2rem; }
.tu-buscar { margin-left: 0.5rem; width: 50%; }
.tu-ancho { grid-column: 1 / -1; }
.tu-dialogo { width: min(820px, 96vw); max-width: 820px; }
.tu-conv input.nn-nota { width: 3.6rem; }
.tu-ds { color: #2f855a; } .tu-da { color: #2b6cb0; } .tu-dbs { color: #1a202c; } .tu-db { color: #c53030; font-weight: 700; }
.jt-barra { display: flex; justify-content: space-between; align-items: center; margin: 0.4rem 0; flex-wrap: wrap; gap: 0.5rem; }
.jt-barra label { margin: 0; font-weight: 400; display: flex; align-items: center; gap: 0.35rem; }
.pro-obs-tutor { margin-top: 2px; font-size: 8pt; }

/* Promoción y Boletín Final */
.pm-desc { text-align: left; color: #4a5568; margin: 0 0 0.6rem; }
.pm-dos { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(300px, 1fr); gap: 1.2rem; align-items: start; margin-top: 0.6rem; }
@media (max-width: 900px) { .pm-dos { grid-template-columns: 1fr; } }
.pm-form { border: 1px solid #d5dbe1; border-radius: 4px; background: #fff; }
.pm-form-titulo { background: #e2e6ea; padding: 0.5rem 0.8rem; }
.pm-form fieldset { margin: 0.8rem; }
.pm-form textarea { width: 100%; }
.pm-rangos { display: flex; gap: 1rem; margin-top: 0.6rem; }
.pm-rangos > div { display: flex; flex-direction: column; gap: 0.3rem; }
.pm-rangos label { margin: 0; display: flex; gap: 0.4rem; align-items: center; font-weight: 400; }
.pm-form-pie { background: #e2e6ea; padding: 0.5rem; text-align: center; display: flex; justify-content: center; gap: 0.5rem; }
.pm-lista-titulo { text-align: center; margin: 0 0 0.4rem; }
.pm-chip { display: inline-block; border-radius: 3px; padding: 0 0.35rem; font-size: 0.78rem; font-weight: 700; }
.pm-DB { background: #fed7d7; color: #9b2c2c; } .pm-DBs { background: #fefcbf; color: #744210; } .pm-DA { background: #bee3f8; color: #2a4365; } .pm-DS { background: #c6f6d5; color: #22543d; }
.tu-pend { color: #b7791f; font-weight: 700; }

/* ---------- Documentos Institucionales ---------- */
.doc-cab { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; border: 1px solid #d5dbe1; background: #fff; padding: .5rem .8rem; margin-bottom: .6rem; }
.doc-cab h3 { margin: 0; font-size: 1.15rem; }
.doc-tabla th { background: #fff; border-bottom: 2px solid #5b86d6; }
.doc-tabla .centro { text-align: center; }
.doc-ico { background: none; border: 0; cursor: pointer; font-size: 1.05rem; padding: 0 .3rem; }
.doc-x { color: #e53e3e; font-weight: 700; }
.doc-datos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-bottom: .6rem; }
.doc-datos label { display: flex; flex-direction: column; font-size: .85rem; gap: .2rem; margin: 0; }
#docNombre { text-transform: uppercase; }
#docBuscarVar { width: 100%; margin: .2rem 0; }
@media (max-width: 700px) { .doc-datos { grid-template-columns: 1fr; } }
.doc-editor { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: .8rem; align-items: start; }
.doc-toolbar { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; background: #f1f3f5; border: 1px solid #d5dbe1; border-bottom: 0; padding: 4px; position: sticky; top: 0; z-index: 3; }
.doc-toolbar button, .doc-toolbar select { background: #fff; border: 1px solid #c9d1d9; border-radius: 3px; padding: 2px 7px; min-width: 28px; height: 28px; cursor: pointer; font-size: .85rem; }
.doc-toolbar button:hover, .doc-toolbar button.activo { background: #dbe7f7; }
.doc-toolbar select { width: auto; }
.doc-toolbar .doc-ancho { font-size: .8rem; margin: 0 .3rem; }
.doc-toolbar .doc-ancho input { width: 4.2rem; height: 26px; }
.doc-sep { width: 1px; height: 22px; background: #c9d1d9; margin: 0 3px; }
.doc-lienzo { background: #e9ecef; border: 1px solid #d5dbe1; padding: 1rem; overflow-x: auto; }
.doc-lienzo .doc-pagina[contenteditable] { outline: none; }
.doc-lienzo .doc-pagina img { cursor: pointer; }
.doc-codigo { width: 100%; min-height: 60vh; font-family: Consolas, monospace; font-size: .8rem; }
.doc-vars { border: 1px solid #d5dbe1; background: #fff; padding: .5rem; max-height: 80vh; overflow-y: auto; position: sticky; top: 0; }
.doc-vars h4 { margin: 0 0 .3rem; }
.doc-var-grupo { margin-bottom: .5rem; }
.doc-var-grupo > b { display: block; font-size: .8rem; color: #555; margin: .3rem 0 .15rem; }
.doc-var { display: block; width: 100%; text-align: left; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 3px; padding: 2px 6px; margin-bottom: 2px; cursor: pointer; font-family: Consolas, monospace; font-size: .78rem; color: #1d4f91; }
.doc-var:hover { background: #dbe7f7; }
.doc-var small { display: block; font-family: Arial, sans-serif; color: #666; font-size: .7rem; }
.doc-acciones { display: flex; gap: .5rem; margin: .8rem 0; }
.ip-estados { display: inline-flex; gap: .8rem; background: #f1f3f5; border: 1px solid #d5dbe1; border-radius: 6px; padding: .4rem .8rem; margin-bottom: .8rem; }
.ip-tabla { max-width: 920px; }
.ip-tabla th { background: #4a7bd0; color: #fff; }
.ip-tabla th a { color: #fff; }
.ip-tabla td a { color: #1d4f91; }
@media (max-width: 900px) { .doc-editor { grid-template-columns: 1fr; } .doc-vars { position: static; max-height: none; } }
.doc-var[hidden], .doc-var-grupo[hidden] { display: none; }

/* ---------- Elecciones ---------- */
.el-filtro { max-width: 860px; margin: 0 auto 1rem; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); border-radius: 4px; }
.el-filtro-tit { background: #e9e9e9; text-align: center; font-weight: 700; font-size: .85rem; padding: .45rem; border-radius: 4px 4px 0 0; }
.el-filtro-cuerpo { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; justify-content: center; padding: .8rem 1rem; }
.el-filtro-cuerpo label { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .85rem; margin: 0; }
.el-filtro-cuerpo select { min-width: 12rem; width: auto; }
.el-botones { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; width: 100%; }
.el-rojo { color: #c53030; }
.el-btn-oro { background: #d4a017; color: #fff; border: 0; border-radius: 3px; padding: .3rem .7rem; font-size: .8rem; cursor: pointer; }
.el-btn-oro:hover { background: #b8860b; }
.el-info { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px; padding: .5rem .8rem; margin-bottom: .8rem; font-size: .88rem; }
.el-estado { display: inline-block; padding: .05rem .5rem; border-radius: 10px; font-weight: 700; font-size: .78rem; margin-right: .4rem; }
.el-ok { background: #c6f6d5; color: #22543d; } .el-prog { background: #fefcbf; color: #744210; } .el-cerrada { background: #e2e8f0; color: #4a5568; }
.el-panel { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.15); margin-bottom: 1rem; }
.el-panel > header { display: flex; align-items: center; gap: .8rem; background: #e2e2e2; padding: .45rem 1rem; font-weight: 700; font-size: 1.05rem; }
.el-panel > header small { font-weight: 400; color: #555; font-size: .78rem; }
.el-panel > header .el-acc { margin-left: auto; }
.el-cards { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; padding: 1rem 1.5rem; }
.el-card { width: 120px; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: .68rem; gap: 2px; background: none; border: 0; padding: 0; font-family: inherit; }
.el-card img { width: 90px; height: 90px; object-fit: cover; margin-bottom: 4px; }
.el-card .el-nom { font-size: .68rem; max-height: 2.6em; overflow: hidden; }
.el-blanco { padding-top: 18px; }
.el-ico { background: none; border: 0; cursor: pointer; font-size: .95rem; padding: 0 .25rem; }
.el-acc { display: flex; gap: .6rem; justify-content: center; }
.el-mas { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #22a33a; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; margin-left: 2.5rem; }
.el-pass { display: flex; gap: .3rem; } .el-pass input { flex: 1; }
.el-check { display: flex !important; align-items: center; gap: .35rem; font-weight: 400 !important; margin: .15rem 0 0 !important; }
.el-grados { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem; }
.el-grados > div > b { display: block; font-size: .8rem; margin-top: .3rem; }
.el-resultados { max-height: 180px; overflow-y: auto; }
.el-resultados button { display: block; width: 100%; text-align: left; background: #f8fafc; border: 1px solid #e2e8f0; padding: .3rem .5rem; cursor: pointer; margin-bottom: 2px; }
.el-resultados button:hover { background: #dbe7f7; }
.el-resultados small { color: #666; }
.el-elegido { color: #047857; font-weight: 700; }
.el-foto { display: flex; gap: .8rem; align-items: center; } .el-foto img { width: 80px; height: 80px; object-fit: cover; border: 1px solid #ccc; }
.el-foto > div { display: flex; flex-direction: column; gap: .3rem; }
dialog textarea { padding: .5rem; border: 1px solid var(--borde); border-radius: 6px; font-family: inherit; }
.el-centro { text-align: center; padding: .6rem 0 0; }
.el-votos { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; padding: .8rem 1rem 1rem; }
.el-voto { width: 215px; background: #e3e9f1; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: .72rem; padding: .4rem; gap: 2px; }
.el-voto strong { font-size: 1.3rem; font-weight: 400; }
.el-voto small { color: #666; }
.el-voto em { font-style: normal; font-weight: 700; color: #22543d; }
.el-gana { background: #c6f6d5; } .el-empate { background: #fefcbf; }
.el-porcurso { padding: 0 1rem 1rem; } .el-tabla { font-size: .82rem; } .el-tabla td, .el-tabla th { text-align: center; } .el-tabla td:first-child, .el-tabla th:first-child { text-align: left; }
.el-total td { font-weight: 700; background: #f1f5f9; }
.el-clave, .el-doc { max-width: 540px; }
.el-clave label, .el-doc label { font-weight: 700; font-size: .9rem; }
.el-clave-fila { display: flex; align-items: stretch; border: 1px solid #ccc; border-radius: 4px; background: #fffbd6; margin: .3rem 0 .6rem; }
.el-clave-fila input { flex: 1; border: 0; background: transparent; padding: .45rem; font-size: 1.05rem; min-width: 0; }
.el-clave-fila button { border: 0; background: transparent; cursor: pointer; padding: 0 .6rem; }
.el-doc .el-clave-fila { background: #fff; } .el-doc .el-clave-fila input { font-size: 1.6rem; letter-spacing: .05em; }
.el-doc .el-clave-fila .btn-primary { padding: 0 1.4rem; border-radius: 0 4px 4px 0; }
.el-mesa-cab { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; background: #1e3a5f; color: #fff; padding: .5rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
.el-votante { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: 1.1rem; margin-bottom: .4rem; }
.el-instr { font-size: 1rem; }
.el-tarjeton .el-opcion { width: 150px; cursor: pointer; border: 3px solid transparent; border-radius: 6px; padding: .4rem; font-size: .78rem; background: #fff; }
.el-tarjeton .el-opcion img { width: 120px; height: 120px; }
.el-tarjeton .el-opcion:hover { border-color: #93c5fd; }
.el-tarjeton .el-sel { border-color: #16a34a; background: #dcfce7; box-shadow: 0 0 0 2px #16a34a; }
.el-num { font-size: 1.4rem; font-weight: 700; color: #1e3a5f; }
.el-votar { font-size: 1.3rem; padding: .6rem 3rem; margin: .5rem 0 1.5rem; }
.el-gracias { text-align: center; font-size: 2rem; color: #047857; padding: 3rem 1rem; }
.el-gracias small { font-size: 1rem; color: #333; }
#contentBody:fullscreen { background: #f4f5f7; padding: 1rem; overflow-y: auto; }
@media (max-width: 600px) { .el-tarjeton .el-opcion { width: 46%; } .el-filtro-cuerpo label { flex-direction: column; align-items: stretch; } .el-mas { margin-left: 0; } }

/* ---------- Agenda Virtual ---------- */
.ag-barra { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; background: #fff; border: 1px solid #ecdcb8; border-radius: 6px; padding: .6rem .9rem; margin-bottom: .6rem; }
.ag-barra h3 { margin: 0 .6rem 0 0; font-size: 1.15rem; }
.ag-campo { position: relative; display: flex; flex-direction: column; margin: 0; }
.ag-campo span { font-size: .72rem; color: #666; }
.ag-campo select, .ag-campo input { width: auto; min-width: 9rem; padding: .3rem .5rem; }
.ag-der { margin-left: auto; display: flex; gap: .4rem; flex-wrap: wrap; }
.ag-btn-oro { background: #d4a017; color: #fff; border: 0; border-radius: 4px; padding: .45rem .9rem; cursor: pointer; align-self: flex-end; }
.ag-btn-borde { background: #fff; border: 1px solid #e3b464; color: #b7791f; border-radius: 4px; padding: .4rem .8rem; cursor: pointer; }
.ag-verde { border-color: #68d391; color: #2f855a; }
.ag-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr) 270px; border: 1px solid #ecdcb8; background: #fff; min-height: 480px; }
.ag-col { border-right: 1px solid #ecdcb8; min-width: 0; }
.ag-col:last-child { border-right: 0; }
.ag-col-tit { padding: .7rem .8rem; border-bottom: 1px solid #ecdcb8; font-weight: 600; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.ag-curso-sel { border: 1px solid #e3b464; color: #b7791f; border-radius: 3px; padding: .2rem .6rem; }
.ag-buscar { display: flex; align-items: center; gap: .3rem; margin: .5rem; border: 1px solid #ddd; border-radius: 4px; padding: 0 .4rem; }
.ag-buscar input { border: 0; width: 100%; padding: .35rem 0; outline: none; }
#agListaCursos { max-height: 520px; overflow-y: auto; }
.ag-item, .ag-asig { display: flex; justify-content: space-between; align-items: center; gap: .3rem; width: 100%; background: none; border: 0; text-align: left; padding: .45rem .7rem; cursor: pointer; font-size: .8rem; border-left: 3px solid transparent; }
.ag-item:hover, .ag-asig:hover { background: #fdf6e7; }
.ag-activo { background: #f3e6c9 !important; border-left-color: #d4a017; }
.ag-num { background: #fff; border-radius: 10px; padding: 0 .4rem; font-size: .72rem; min-width: 1.3rem; text-align: center; }
.ag-asig b { display: block; font-size: .78rem; font-weight: 600; } .ag-asig small { color: #888; font-size: .64rem; }
.ag-centro-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 430px; }
.ag-asigs { border-right: 1px solid #ecdcb8; max-height: 560px; overflow-y: auto; }
.ag-subtit { font-size: .72rem; font-weight: 700; color: #555; padding: .6rem .7rem .3rem; letter-spacing: .03em; }
.ag-eventos { padding: .3rem .6rem; max-height: 560px; overflow-y: auto; }
.ag-eventos hr { border: 0; border-top: 3px solid #9ca3af; margin: .6rem 0; }
.ag-vacio { text-align: center; color: #8a94a6; padding: 1.6rem .5rem; font-size: .85rem; }
.ag-vacio span { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; background: #eef1f5; align-items: center; justify-content: center; font-size: 1.3rem; opacity: .6; }
.ag-nada { padding: .7rem; color: #888; font-size: .82rem; }
.ag-evento { border: 1px solid #e5e7eb; border-left: 5px solid #888; border-radius: 4px; padding: .4rem .6rem; margin: 0 .3rem .45rem; font-size: .8rem; background: #fff; }
.ag-evento b { display: block; margin: .15rem 0; } .ag-evento small { color: #666; } .ag-evento p { margin: .2rem 0 0; color: #333; white-space: pre-line; }
.ag-ev-cab { display: flex; align-items: center; gap: .4rem; }
.ag-chip { color: #fff; border-radius: 3px; padding: 0 .4rem; font-size: .7rem; }
.ag-ev-fecha { color: #555; font-size: .72rem; }
.ag-ev-acc { margin-left: auto; } .ag-ev-acc button { background: none; border: 0; cursor: pointer; font-size: .8rem; }
.ag-cal { padding: .5rem; }
.ag-cal-cab { display: flex; align-items: center; justify-content: space-around; padding: .4rem 0 .6rem; font-size: 1rem; }
.ag-cal-cab button { background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: #555; }
.ag-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: .82rem; }
.ag-cal-dsem { font-weight: 600; color: #444; padding: .3rem 0; }
.ag-dia { background: none; border: 0; padding: .45rem 0 .55rem; position: relative; cursor: pointer; border-radius: 50%; font-size: .82rem; }
.ag-dia:hover { background: #fdf6e7; }
.ag-fuera { color: #bbb; cursor: default; }
.ag-hoy { font-weight: 700; color: #b7791f; }
.ag-dia-sel { background: #d4a017 !important; color: #fff; }
.ag-puntos { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; justify-content: center; gap: 2px; }
.ag-puntos i { width: 5px; height: 5px; border-radius: 50%; display: block; }
#agDia { border-top: 1px solid #ecdcb8; margin-top: .5rem; }
.ag-dos { display: flex; gap: .6rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ag-dos > div { flex: 1; display: flex; flex-direction: column; }
.ag-pordia h4 { margin: .6rem 0 .3rem; }
.ag-cab { background: #fff; border-radius: 6px; padding: .7rem 1rem; margin-bottom: .6rem; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.ag-cab h3 { margin: 0; } .ag-cab small { color: #888; }
.ag-dos-col { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; align-items: start; }
.ag-tarjeta { background: #fff; border: 1px solid #ecdcb8; border-radius: 6px; padding: .6rem .8rem; margin-bottom: .8rem; }
.ag-tarjeta summary { font-weight: 600; cursor: pointer; padding: .2rem 0 .5rem; }
.ag-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .8rem; margin-bottom: .6rem; }
.ag-form label { display: flex; flex-direction: column; font-size: .82rem; gap: .2rem; margin: 0; }
.ag-form input[type=color] { height: 2.1rem; padding: 2px; }
.ag-form-acc { grid-column: 1 / -1; display: flex; gap: .5rem; }
.ag-grados { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .3rem; font-size: .82rem; }
.ag-subtit2 { background: #eef2fb; padding: .4rem .6rem; font-weight: 600; }
.ag-tabla { font-size: .85rem; }
.ag-color { display: inline-block; width: 4.5rem; height: 1.2rem; border-radius: 6px; }
.ag-ico { background: none; border: 0; cursor: pointer; font-size: .95rem; }
.ag-rojo { color: #dc2626; }
.ag-inactiva td { color: #999; }
.ag-email { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.2rem; max-width: 900px; }
.ag-email label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; margin: 0; }
.ag-hora { display: flex; gap: .4rem; } .ag-hora select { width: auto; }
.ag-email-prueba { max-width: 900px; } .ag-email-prueba input { flex: 1; }
.ag-recom { font-size: .85rem; max-width: 900px; } .ag-recom li { margin: .2rem 0; }
.ag-tabs { display: flex; gap: .2rem; border-bottom: 1px solid #ccc; margin-top: .6rem; }
.ag-tabs button { border: 1px solid #ccc; border-bottom: 0; background: #e5e7eb; padding: .4rem .9rem; cursor: pointer; border-radius: 4px 4px 0 0; }
.ag-tabs button:disabled { cursor: not-allowed; opacity: .6; }
.ag-tab-act { background: #fff !important; font-weight: 600; }
.ag-tab-cuerpo { border: 1px solid #ccc; border-top: 0; padding: .8rem; background: #fff; margin-bottom: .8rem; }
.ag-centro { text-align: center; }
.ag-dest { font-size: .85rem; }
.ag-hist summary { cursor: pointer; font-weight: 600; }
@media (max-width: 1100px) { .ag-grid { grid-template-columns: 1fr; } .ag-col { border-right: 0; border-bottom: 1px solid #ecdcb8; } #agListaCursos { max-height: 220px; } }
@media (max-width: 800px) { .ag-dos-col, .ag-email, .ag-form { grid-template-columns: 1fr; } .ag-centro-grid { grid-template-columns: 1fr; } .ag-asigs { border-right: 0; max-height: 260px; } .ag-der { margin-left: 0; } }
.ag-form .el-check { flex-direction: row !important; align-items: center; }
.ag-form .el-check input { width: auto; }
.ag-cursos .ag-col-tit { display: block; }
.bol-membrete { text-align: center; margin-bottom: 4px; } .bol-membrete img { max-width: 100%; max-height: 2.6cm; }

/* ---------- Configuración ---------- */
.cfg-buscar { text-align: right; margin-bottom: .4rem; } .cfg-buscar input { width: auto; }
.cfg-tabla { font-size: .85rem; }
.cfg-principal { background: #c6f6d5; }
.cfg-acc { white-space: nowrap; } .cfg-acc button { background: none; border: 0; cursor: pointer; font-size: .95rem; }
.cfg-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 1rem; }
.cfg-form > label, .cfg-texto > label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; margin: 0; }
.cfg-texto, .cfg-imagen { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1rem; }
.cfg-ancho { grid-column: 1 / -1; }
.cfg-img { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; align-items: flex-start; }
.cfg-img img { max-width: 100%; max-height: 90px; border: 1px solid #ddd; }
.cfg-previa { border: 1px dashed #cbd5e1; background: #fff; padding: .6rem; margin-top: .3rem; }
.cfg-centro { display: flex; justify-content: center; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 1rem 0; }
.cfg-centro label { display: flex; align-items: center; gap: .4rem; margin: 0; } .cfg-centro select { width: auto; }
.cfg-centro-txt { text-align: center; max-width: 700px; margin: 0 auto; }
.cfg-verde { background: #2f9e44; } .cfg-verde:hover { background: #237a34; }
.cfg-orden { margin: 0 auto; border-collapse: collapse; min-width: 300px; font-size: .9rem; }
.cfg-orden th { background: #4a7bd0; color: #fff; padding: .3rem .6rem; }
.cfg-orden td { padding: .3rem .6rem; border-bottom: 1px solid #e5e7eb; }
.cfg-orden tr:nth-child(even) td { background: #f1f5fb; }
.cfg-orden button { background: #3b82c4; color: #fff; border: 0; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-size: .75rem; }
.cfg-orden button:disabled { opacity: .3; cursor: default; }
@media (max-width: 700px) { .cfg-form, .cfg-texto, .cfg-imagen { grid-template-columns: 1fr; } }
.cfg-centro > * { flex: 0 0 auto; margin: 0 !important; width: auto; }
.cfg-form .el-check { flex-direction: row !important; align-items: center; align-self: end; }
.cfg-form .el-check input { width: auto; }

/* ---------- Inicio ---------- */
.in-bienvenida { margin-bottom: .8rem; } .in-bienvenida b { font-size: 1.15rem; } .in-bienvenida span { color: #666; font-size: .85rem; margin-left: .4rem; }
.in-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.in-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.in-card { background: #fff; border: 1px solid #dfe3e8; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.06); overflow: hidden; }
.in-card > header { display: flex; align-items: center; gap: .5rem; padding: .5rem .8rem; font-weight: 600; font-size: .9rem; }
.in-azul { background: #3b8ac4; color: #fff; }
.in-blanco { border-bottom: 1px solid #e5e7eb; border-top: 3px solid #2f855a; }
.in-config { margin-left: auto; background: none; border: 0; color: #2b6cb0; cursor: pointer; font-size: .78rem; }
.in-fila { padding: .55rem .8rem; border-bottom: 1px solid #eef0f3; font-size: .85rem; }
.in-fila b { color: #2b6cb0; font-weight: 600; } .in-fila small { display: block; color: #666; font-style: italic; }
.in-docs { max-height: 330px; overflow-y: auto; padding: .4rem; }
.in-doc { display: flex; align-items: center; gap: .6rem; border: 1px solid #e5e7eb; border-radius: 3px; padding: .4rem .6rem; margin-bottom: .3rem; text-decoration: none; color: #1d4f91; font-size: .82rem; }
.in-doc:hover { background: #f1f6fd; }
.in-doc small { display: block; color: #888; font-size: .7rem; }
.in-doc-ico { font-size: 1.4rem; } .in-doc-bajar { margin-left: auto; color: #2f855a; font-size: 1rem; }
.in-agenda { padding: .5rem; max-height: 360px; overflow-y: auto; }
.in-evento { border-left: 4px solid #888; padding: .3rem .6rem; margin-bottom: .4rem; background: #fafafa; font-size: .82rem; }
.in-evento b { display: block; } .in-evento small { color: #555; } .in-ev-fecha { font-size: .72rem; color: #666; text-transform: capitalize; }
.in-noticia { position: relative; text-align: center; padding: .6rem; }
.in-noticia img { max-width: 100%; max-height: 260px; object-fit: contain; }
.in-not-txt { text-align: left; padding: .4rem .6rem 0; } .in-not-txt small { display: block; color: #888; } .in-not-txt p { margin: .3rem 0 0; font-size: .85rem; white-space: pre-line; }
.in-flecha { position: absolute; top: 40%; background: rgba(0,0,0,.35); color: #fff; border: 0; width: 32px; height: 44px; font-size: 1.5rem; cursor: pointer; border-radius: 3px; }
.in-izq { left: .4rem; } .in-der { right: .4rem; }
.in-puntos { display: flex; justify-content: center; gap: 5px; }
.in-puntos button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: #cbd5e1; cursor: pointer; padding: 0; }
.in-puntos .in-punto-act { background: #2b6cb0; }
.in-centro { text-align: center; padding: .3rem 0 .5rem; }
.in-cumple { padding: .6rem; }
.in-cumple-tit { background: #f3f4f6; padding: .3rem .6rem; font-weight: 600; font-size: .82rem; margin: .3rem 0; }
.in-persona { display: flex; align-items: center; gap: .6rem; border: 1px solid #e5e7eb; padding: .35rem .5rem; margin-bottom: .3rem; font-size: .8rem; }
.in-persona b { color: #2b6cb0; display: block; } .in-persona small { color: #444; }
.in-avatar { width: 38px; height: 38px; background: #cbd5e1; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.in-prox > span { min-width: 6.5rem; color: #666; font-size: .75rem; }
.in-nada { color: #888; font-size: .85rem; padding: .4rem .6rem; margin: 0; }
.in-expandida img { max-width: 100%; margin: .6rem 0; } .in-expandida p { white-space: pre-line; }
.in-gestion form { gap: .5rem; }
.in-mini { width: 60px; height: 40px; object-fit: cover; }
.in-prev img { max-width: 220px; max-height: 120px; }
.in-form textarea { padding: .5rem; border: 1px solid var(--borde); border-radius: 6px; font-family: inherit; }
.in-subir { display: grid; grid-template-columns: 1fr 1fr auto; gap: .6rem; align-items: end; background: #f8fafc; border: 1px solid #e2e8f0; padding: .6rem; border-radius: 4px; }
.in-subir label { display: flex; flex-direction: column; margin: 0 !important; }
.in-gestion td input:not([type=checkbox]) { width: 100%; }
@media (max-width: 900px) { .in-grid { grid-template-columns: 1fr; } .in-subir { grid-template-columns: 1fr; } }

/* ---------- Estudiante: gestión, inscripciones y admisión ---------- */
.pe-tabla td, .pe-tabla th { font-size: .82rem; }
.pe-tabla select, .pe-tabla input { width: auto; padding: .2rem .3rem; }
.pe-estado { padding: 1px 6px; border-radius: 3px; font-size: .75rem; font-weight: 600; }
.pe-ok { background: #c6f6d5; color: #22543d; } .pe-no { background: #fed7d7; color: #9b2c2c; } .pe-pend { background: #fefcbf; color: #744210; }
.ic-filtros, .cf-filtros, .cf-botones, .em-filtros, .is-barra { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: .6rem .8rem; margin-bottom: .6rem; }
.ic-filtros label, .cf-filtros label, .em-filtros label, .is-barra label { display: flex; align-items: center; gap: .35rem; margin: 0; font-size: .85rem; }
.ic-filtros select, .cf-filtros select, .em-filtros select, .is-barra select, .ic-filtros input, .cf-filtros input { width: auto; }
.ic-busq input { min-width: 260px; }
.ic-resumen { font-size: .88rem; margin: .3rem 0 .6rem; }
.ic-tabla { font-size: .8rem; } .ic-si { color: #2f855a; font-weight: 700; } .ic-no { color: #c53030; font-weight: 700; cursor: help; text-decoration: underline dotted; }
.cf-tabla { font-size: .8rem; }
.cf-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem .8rem; }
.cf-form label { display: flex; flex-direction: column; gap: .2rem; margin: 0 !important; font-size: .82rem; }
.lm-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 1rem; }
.lm-izq, .lm-der { background: #eef0f2; border-radius: 6px; padding: .8rem; display: flex; flex-direction: column; gap: .45rem; }
.lm-fila { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; } .lm-fila label { display: flex; flex-direction: column; margin: 0; font-size: .85rem; font-weight: 600; }
.lm-cursos { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .25rem .6rem; }
.lm-cursos label[hidden] { display: none !important; }
.lm-der textarea { min-height: 90px; padding: .4rem; border: 1px solid var(--borde); border-radius: 4px; font-family: inherit; }
.lm-fecha { display: flex; align-items: center; gap: .4rem; margin: 0; } .lm-fecha input { width: auto; }
.lm-titulo { display: grid; grid-template-columns: auto 1fr 70px; gap: .3rem; align-items: center; }
.lm-acc { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; flex-wrap: wrap; }
.em-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.2rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: .8rem; margin-bottom: .6rem; }
.em-form label { display: flex; flex-direction: column; gap: .2rem; margin: 0; font-size: .85rem; }
.em-form textarea { padding: .4rem; border: 1px solid var(--borde); border-radius: 4px; font-family: inherit; }
.em-ancho { grid-column: 1 / -1; }
.is-on { background: #9ae6b4; padding: 1px 8px; border-radius: 3px; } .is-off { background: #fed7d7; padding: 1px 8px; border-radius: 3px; }
.is-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.is-chip { padding: 1px 8px; border-radius: 10px; font-size: .75rem; background: #e2e8f0; white-space: nowrap; }
.is-INSCRITO { background: #bee3f8; } .is-ADMISION { background: #fefcbf; } .is-ADMITIDO { background: #c6f6d5; } .is-NO_ADMITIDO { background: #fed7d7; } .is-MATRICULADO { background: #9ae6b4; } .is-ANULADO { background: #e2e8f0; color: #718096; }
.is-tabla { font-size: .8rem; } .is-acc { white-space: nowrap; } .is-acc button { background: none; border: 0; cursor: pointer; }
.in-ins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem .8rem; }
.in-ins label { display: flex; flex-direction: column; gap: .2rem; margin: 0 !important; font-size: .82rem; }
.in-ins textarea { padding: .4rem; border: 1px solid var(--borde); border-radius: 4px; font-family: inherit; }
.in-ins-ancho { grid-column: 1 / -1; margin: .3rem 0 0; }
.ad-tabs { display: flex; flex-wrap: wrap; gap: .2rem; border-bottom: 1px solid #d1d5db; margin-bottom: .8rem; }
.ad-tabs button { background: none; border: 1px solid transparent; border-bottom: 0; padding: .5rem .9rem; cursor: pointer; border-radius: 4px 4px 0 0; }
.ad-tab-act { background: #fff !important; border-color: #d1d5db !important; font-weight: 600; }
.ad-num { background: #6b7280; color: #fff; border-radius: 10px; padding: 0 .4rem; font-size: .72rem; }
.ad-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1rem; align-items: start; }
.ad-procesos { background: #fff; border: 1px solid #dbe4f0; border-radius: 6px; overflow: hidden; }
.ad-proc-tit { background: #eef4fc; text-align: center; padding: .5rem; font-weight: 600; }
.ad-procesos button { display: block; width: 100%; text-align: left; background: none; border: 0; border-left: 3px solid transparent; padding: .6rem .8rem; cursor: pointer; border-top: 1px solid #eef0f3; }
.ad-proc-act { background: #f1f6fd !important; border-left-color: #2b6cb0 !important; }
.ad-detalle h2 { margin: 0 0 .5rem; font-size: 1.4rem; font-weight: 400; }
.ad-resp { background: #fff; border-radius: 6px; padding: .5rem .8rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: .6rem; font-size: .85rem; } .ad-resp ul { margin: .3rem 0; }
.ad-tabla { font-size: .82rem; } .ad-tabla td small { display: block; color: #777; }
.ad-tabla input, .ad-tabla select { width: auto; padding: .2rem .3rem; }
.ad-agendar { background: #fffbd6; }
.ad-P { color: #b7791f; font-weight: 700; } .ad-A { color: #2f855a; font-weight: 700; } .ad-R { color: #c53030; font-weight: 700; }
select.ad-P { background: #fefcbf; } select.ad-A { background: #c6f6d5; } select.ad-R { background: #fed7d7; }
.ad-multi { width: 100%; }
@media (max-width: 900px) { .lm-grid, .ad-grid { grid-template-columns: 1fr; } .in-ins, .cf-form { grid-template-columns: 1fr 1fr; } .em-form { grid-template-columns: 1fr; } }

/* ---------- Acciones según el rol (body[data-rol]) ---------- */
/* Solo el administrador elimina estudiantes; el docente consulta sin editar */
body:not([data-rol="admin"]) .acciones-cell [data-eliminar], body:not([data-rol="admin"]) #btnEliminarSeleccionados { display: none !important; }
body[data-rol="docente"] .acciones-cell [data-editar], body[data-rol="docente"] #btnAbrirSimpade, body[data-rol="docente"] .checkFila, body[data-rol="docente"] #checkTodos { display: none !important; }
/* ---------- Vista del estudiante ---------- */
.ev-filtros { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: .6rem .8rem; margin-bottom: .8rem; }
.ev-filtros label { display: flex; align-items: center; gap: .4rem; margin: 0; } .ev-filtros select { width: auto; }
.ev-resumen { margin-bottom: .6rem; }
.ev-tabla { font-size: .85rem; } .ev-tabla td:not(:first-child), .ev-tabla th:not(:first-child) { text-align: center; }
.ev-area td { background: #eef2fb; font-weight: 700; } .ev-asig { padding-left: 1.2rem !important; }
.ev-baja { color: #c53030; font-weight: 700; } .ev-vacia { color: #aaa; }
/* Planilla de notas del docente en el Inicio */
.in-pl-anio { display: inline-block; border: 1px solid #dfe3e8; border-bottom: 0; padding: .3rem .8rem; margin: .5rem 0 0 .6rem; font-size: .8rem; background: #fff; }
.in-pl-periodos { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 2px; margin: 0 .6rem; }
.in-pl-periodos button { border: 1px solid #ccc; background: #eee; padding: .3rem; font-size: .8rem; cursor: pointer; }
.in-pl-periodos .in-pl-act { background: #fde2e2; color: #c53030; font-weight: 600; }
.in-pl-periodos .in-pl-abierto::before { content: '● '; color: #2f855a; }
.in-pl-tabla { width: calc(100% - 1.2rem); margin: .4rem .6rem .8rem; border-collapse: collapse; font-size: .75rem; }
.in-pl-tabla th { background: #3b8ac4; color: #fff; padding: .3rem; text-align: left; }
.in-pl-tabla td { padding: .25rem .3rem; border-bottom: 1px solid #fff; text-align: center; } .in-pl-tabla td:nth-child(2) { text-align: left; }
.in-pl-falta td { background: #fde8e8; } .in-pl-ok td { background: #e6f6ec; }
.in-pl-ir { background: none; border: 0; cursor: pointer; }

/* ===== Mi Perfil ===== */
.pf-cab { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.pf-tarjeta { display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: .8rem 1rem; line-height: 1.8; }
.pf-tarjeta img { width: 90px; height: 90px; object-fit: cover; border-radius: 50%; border: 2px solid #e5e7eb; }
.pf-bloqueo { flex: 1; min-width: 240px; background: #fef2f2; color: #b91c1c; border-radius: 8px; padding: .8rem 1rem; }
.pf-admin { background: #eff6ff; border-radius: 8px; padding: .7rem 1rem; margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.pf-sol { flex-basis: 100%; font-size: .9rem; }
.pf-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem 1rem; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1rem; background: #fff; }
.pf-form legend { font-weight: 700; padding: 0 .4rem; }
.pf-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; font-weight: 600; }
.pf-form input, .pf-form select { padding: .45rem .5rem; border: 1px solid #cbd5e1; border-radius: 6px; }
.pf-form input:disabled, .pf-form select:disabled { background: #f3f4f6; color: #374151; }
.pf-acc, .pf-nota { grid-column: 1 / -1; }
.pf-nota { font-size: .8rem; color: #6b7280; margin: 0; }
.pf-subir { cursor: pointer; }
.btn-link { background: none; border: 0; color: #2563eb; text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }

/* Tutoría: firma del tutor e imagen del grupo */
.tu-fila { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .35rem; }
.tu-verde { color: #15803d; } .tu-rojo { color: #dc2626; }
.btn-mini { display: inline-block; background: #fff; border: 1px solid #94a3b8; border-radius: 4px; padding: .15rem .5rem; font-size: .8rem; cursor: pointer; color: #111; }
.btn-mini:hover { background: #f1f5f9; }
.tu-nota { display: block; margin-top: .4rem; color: #6b7280; max-width: 28rem; }
.tu-ver-img img { display: block; max-width: min(80vw, 700px); max-height: 60vh; margin: .5rem auto; border: 1px solid #e5e7eb; }
.bol-firma-img { display: block; max-height: 1.5cm; max-width: 5cm; margin: 0 auto 1px; }
.aviso-version { background: #b91c1c; color: #fff; padding: .6rem 1rem; font-size: .9rem; text-align: center; }

/* Carga Académica */
.ca-filtros { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; justify-content: center; border: 1px solid #d5dbe1; border-radius: 6px; padding: .7rem 1rem; background: #fff; margin-bottom: .6rem; }
.ca-filtros legend, .ca-listado legend { font-style: italic; color: #4b5563; padding: 0 .3rem; }
.ca-filtros label { display: flex; align-items: center; gap: .4rem; font-size: .9rem; }
.ca-filtros select { padding: .3rem .4rem; max-width: 22rem; }
.ca-listado { border: 1px solid #d5dbe1; border-radius: 6px; padding: .4rem 1rem 1rem; background: #fff; }
.ca-titulo { margin: .4rem 0 .5rem; font-size: 1.05rem; }
.ca-tabla { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ca-tabla th, .ca-tabla tfoot td { background: #4a7bd0; color: #fff; padding: .35rem .5rem; font-weight: 600; }
.ca-tabla td { border: 1px solid #e5e7eb; padding: .3rem .5rem; text-align: center; }
.ca-tabla td.ca-izq { text-align: left; }
.ca-tabla tfoot td { text-align: right; } .ca-tabla tfoot td:last-child { text-align: center; }
.ca-tabla tbody tr:nth-child(even) { background: #f5f8fd; }
.ca-vacio { color: #b91c1c; }
.solo-imprimir { display: none; }
@media print { .solo-imprimir { display: block; } .ca-listado { border: 0; padding: 0; } }
.bol-firma-espacio { height: 1.5cm; }
.bol-firmas td { vertical-align: bottom; }
.pf-firma { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: .6rem 1rem; margin-bottom: 1rem; }
.pf-firma-caja img { max-height: 70px; max-width: 240px; display: block; border: 1px dashed #cbd5e1; background: #fff; }

/* Periodos Académicos */
.pa-caja { border: 1px solid #d5dbe1; border-radius: 6px; background: #fff; padding: .6rem 1rem 1rem; margin-bottom: 1rem; }
.pa-caja legend { font-style: italic; color: #374151; padding: 0 .3rem; }
.pa-resaltado { background: #1e40af; color: #fff !important; font-style: italic; padding: 0 .4rem !important; }
.pa-centro { display: flex; justify-content: center; gap: .6rem; margin: .3rem 0 .7rem; }
.pa-centro select, .pa-filtro select { padding: .3rem .4rem; }
.pa-filtro { margin: .4rem 0 .6rem; }
.pa-tabla { width: 100%; border-collapse: collapse; font-size: .88rem; }
.pa-tabla th { background: #4a7bd0; color: #fff; padding: .35rem .5rem; font-weight: 600; }
.pa-tabla td { padding: .3rem .5rem; text-align: center; border-bottom: 1px solid #eef1f5; }
.pa-tabla tbody tr:nth-child(even) { background: #f5f8fd; }
.pa-tabla td.pa-izq { text-align: left; }
.pa-inactivo td { color: #9ca3af; }
.pa-acc { white-space: nowrap; }
.pa-ico { background: none; border: 0; cursor: pointer; font-size: 1rem; padding: 0 .25rem; }
.pa-x { color: #dc2626; font-weight: 700; }
.pa-badge-prev { background: #fef3c7; color: #92400e; border-radius: 10px; padding: .1rem .5rem; font-size: .78rem; }
.pa-vis-titulo { font-weight: 600; margin: 0 0 .5rem; }
.pa-check { display: flex !important; align-items: center; gap: .4rem; font-weight: 400; margin-top: .5rem; }
.ev-pend { font-size: .85rem; color: #6b7280; margin: .3rem 0 .6rem; }

/* Mi Perfil del estudiante */
.pf-adm-fila { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pfe-cab { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1rem; }
.pfe-cab img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid #93c5fd; }
.pfe-datos { border-collapse: collapse; min-width: 280px; }
.pfe-datos th, .pfe-datos td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid #e5e7eb; }
.pfe-barra { background: #e5e7eb; border-radius: 3px; margin: .8rem 0; height: 18px; overflow: hidden; }
.pfe-barra div { background: #2563eb; color: #fff; height: 100%; font-size: .75rem; text-align: center; line-height: 18px; min-width: 2.2rem; }
.pfe-tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid #d1d5db; }
.pfe-tabs button { background: #f3f4f6; border: 1px solid #d1d5db; border-bottom: 0; border-radius: 6px 6px 0 0; padding: .5rem .9rem; cursor: pointer; font-size: .82rem; text-transform: uppercase; }
.pfe-tabs button.activa { background: #22a35a; color: #fff; border-color: #22a35a; }
.pfe-panel { background: #fff; border: 1px solid #d1d5db; border-top: 0; padding: 1rem; }
.pfe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .7rem 1rem; }
.pfe-grid label, .pfe-fam label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; font-weight: 600; }
.pfe-grid input, .pfe-grid select, .pfe-fam input, .pfe-fam select { padding: .45rem .5rem; border: 1px solid #cbd5e1; border-radius: 6px; }
.pfe-grid input:disabled, .pfe-grid select:disabled { background: #f3f4f6; color: #374151; }
.pfe-sub { text-align: center; margin: 1rem 0 .6rem; font-size: .95rem; }
.pf-req { color: #dc2626; font-weight: 400; }
.pfe-check { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: .5rem; font-weight: 400 !important; margin: .4rem 0; }
.pfe-pie { display: flex; flex-wrap: wrap; gap: 1rem; align-items: stretch; margin-top: 1rem; }
.pfe-pie .pf-bloqueo { background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; }
.pfe-cert { background: #e0f2fe; color: #1d4ed8; border: 1px solid #93c5fd; border-radius: 6px; padding: .8rem 1.2rem; font-weight: 700; cursor: pointer; }
.pfe-fam { min-width: min(420px, 85vw); display: flex; flex-direction: column; gap: .5rem; }

/* Caracterización SIMPADE en línea */
.in-simpade { display: flex; align-items: center; gap: .8rem; background: #fff7ed; border: 1px solid #fdba74; border-radius: 6px; padding: .7rem 1rem; margin: 0 0 1rem; font-size: 1.4rem; }
.in-simpade div { font-size: .9rem; flex: 1; }
.pfs-ok { background: #ecfdf5; color: #065f46; border-radius: 6px; padding: .6rem .8rem; margin-bottom: .6rem; }
.pfs-pend { background: #fff7ed; color: #c2410c; border-radius: 6px; padding: .6rem .8rem; margin-bottom: .6rem; }
.pfs-cerrada { color: #6b7280; padding: 1rem; text-align: center; }
.pfs-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
#pfSimBadge { color: #f59e0b; font-weight: 700; }
.pfe-tabs button.activa #pfSimBadge { color: #fff; }
.sim-linea { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 6px; padding: .7rem 1rem; margin-bottom: 1rem; }
.sim-linea select { padding: .3rem; }
.sim-cursos { flex-basis: 100%; font-size: .82rem; color: #374151; }
.sim-imp { cursor: pointer; display: inline-flex; align-items: center; }
.sim-vaciar { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; }
.sim-errores { max-height: 220px; overflow: auto; font-size: .82rem; color: #991b1b; }

/* Configuración de Elecciones */
.ce-caja { background: #fff; border: 1px solid #d5dbe1; border-radius: 4px; margin-bottom: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ce-caja > header { background: #e5e7eb; padding: .45rem .8rem; font-size: .88rem; font-weight: 600; }
.ce-cuerpo { padding: .7rem .9rem; }
.ce-centro { display: flex; justify-content: center; margin: .4rem 0 .6rem; }
.ce-centro label { display: flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; }
.ce-centro select { min-width: 16rem; padding: .3rem .4rem; }
.ce-tabla { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ce-tabla th { background: #4a7bd0; color: #fff; padding: .35rem .5rem; text-align: left; font-weight: 600; }
.ce-tabla td { padding: .35rem .5rem; border: 1px solid #e5e7eb; }
.ce-tabla td.ce-izq { font-weight: 500; }
.ce-acc { white-space: nowrap; }
.ce-separador { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0 .4rem; color: #374151; font-size: 1.05rem; }
.ce-separador::before, .ce-separador::after { content: ''; flex: 1; border-top: 1px solid #9ca3af; }
.ce-separador::before { flex: 0 0 3rem; }
.ce-dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 900px) { .ce-dos { grid-template-columns: 1fr; } }
.ce-info { width: 100%; border: 1px solid #e5e7eb; border-collapse: collapse; font-size: .85rem; margin-bottom: .4rem; }
.ce-info th, .ce-info td { padding: .4rem .6rem; text-align: left; }
.ce-info th { font-weight: 500; color: #4b5563; }
.ce-blk { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; margin-bottom: .6rem; }
.ce-blk select { padding: .35rem; }
.ce-listas { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .5rem; align-items: center; }
.ce-lista { border: 1px solid #cbd5e1; border-radius: 4px; display: flex; flex-direction: column; }
.ce-lista header { background: #4a7bd0; color: #fff; padding: .35rem .5rem; font-size: .82rem; font-weight: 600; }
.ce-lista header label { display: flex; align-items: center; gap: .3rem; cursor: pointer; }
.ce-lista input[type=search] { margin: .4rem; padding: .3rem .4rem; border: 1px solid #cbd5e1; border-radius: 4px; }
.ce-items { height: 220px; overflow: auto; padding: 0 .4rem .4rem; }
.ce-item { display: flex; align-items: center; gap: .35rem; font-size: .82rem; padding: .2rem 0; cursor: pointer; }
.ce-item small { color: #6b7280; }
.ce-mover { display: flex; flex-direction: column; gap: .4rem; }
.ce-mover button { font-size: .78rem; padding: .25rem .5rem; }
.ce-vacio { color: #9ca3af; text-align: center; }

/* Usuarios: reporte estadístico y acta de usuario y contraseña */
.ur-filtros { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.ur-filtros label { display: flex; align-items: center; gap: .35rem; font-size: .88rem; }
.ur-filtros input, .ur-filtros select { padding: .3rem .4rem; }
.ur-centro { text-align: center; font-size: .9rem; }
.ur-barra { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin: .4rem 0; font-size: .88rem; }
.ur-barra input { padding: .3rem .4rem; }
.ur-ord { cursor: pointer; user-select: none; }
.ur-pag { display: flex; gap: .5rem; justify-content: flex-end; align-items: center; margin-top: .5rem; font-size: .85rem; }
.ur-det { max-height: 55vh; overflow: auto; }
.ua-arriba { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.ua-filtros { display: grid; grid-template-columns: auto; gap: .4rem; background: #f1f3f5; border: 1px solid #d5dbe1; border-radius: 6px; padding: .7rem 1rem; }
.ua-filtros label { display: grid; grid-template-columns: 9rem auto; align-items: center; font-size: .88rem; }
.ua-filtros select { padding: .3rem; min-width: 14rem; }
.ua-filtros button { justify-self: start; margin-left: 9rem; }
.ua-acciones { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .8rem 0 .4rem; }
.ua-check { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; }
.ua-tabla { max-width: 900px; }
.ua-camb { color: #b45309; }
.ua-formato { width: 100%; font-family: inherit; font-size: .9rem; }

/* Centro de Reportes: favoritos e informes adicionales */
.rep-buscar { margin-bottom: .8rem; } .rep-buscar input { padding: .45rem .6rem; min-width: 260px; border: 1px solid #cbd5e1; border-radius: 6px; }
.rep-estrella { background: none; border: 0; cursor: pointer; font-size: 1.15rem; color: #9ca3af; padding: 0 .2rem 0 0; line-height: 1; }
.rep-estrella.activa { color: #f59e0b; }
.rep-favs .rep-tarjeta { border-color: #fcd34d; }
.rep-pend { opacity: .7; } .rep-pend .btn-primary { background: #9ca3af; cursor: not-allowed; }
.rep-tarjetas + .rep-subtitulo { margin-top: 1.4rem; }
.ra-opciones { margin: 0 0 .5rem; font-size: .88rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.ra-opciones label { display: inline-flex; align-items: center; gap: .35rem; }
.ra-acciones { display: flex; gap: .5rem; margin: .4rem 0 .8rem; }
.ra-cab { background: #eef2f7; border-left: 4px solid #4a7bd0; padding: .45rem .7rem; margin: .6rem 0 .4rem; }
.ra-cab span { color: #4b5563; font-size: .88rem; margin-left: .4rem; }
.ra-bloque { margin-bottom: 1rem; break-inside: avoid; }
.ra-tabla td, .ra-tabla th { font-size: .82rem; }
.ra-bien { color: #15803d; font-weight: 600; } .ra-medio { color: #b45309; font-weight: 600; } .ra-mal { color: #b91c1c; font-weight: 600; }
.ra-falta { background: #fee2e2; color: #b91c1c; font-weight: 700; }
.ra-matriz th { font-size: .72rem; padding: .3rem .25rem; }
.ra-grupo td { background: #e5edf9; font-weight: 600; }
.ra-sangria { padding-left: 1.4rem !important; }
.ra-resumen { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .9rem; margin: .3rem 0 .6rem; }
.ra-vacio { color: #9ca3af; }
.ra-h4 { margin: .2rem 0 .3rem; }
.ra-dba-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
@media (max-width: 900px) { .ra-dba-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ra-dba-col { border: 1px solid #d1d5db; border-radius: 4px; font-size: .78rem; }
.ra-dba-col header { padding: .3rem .4rem; font-weight: 600; display: flex; justify-content: space-between; }
.ra-dba-col div { padding: .15rem .4rem; border-top: 1px solid #f1f5f9; }
.ra-dba-col small { color: #6b7280; }
.ra-dba-0 header, span.ra-dba-0 { background: #dcfce7; } .ra-dba-1 header, span.ra-dba-1 { background: #fef9c3; }
.ra-dba-2 header, span.ra-dba-2 { background: #fed7aa; } .ra-dba-3 header, span.ra-dba-3 { background: #fecaca; }
span[class^="ra-dba-"] { padding: .15rem .5rem; border-radius: 4px; }
.ra-libro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 900px) { .ra-libro { grid-template-columns: 1fr; } }
.ra-libro-hoja { border: 1px solid #9ca3af; padding: .4rem .5rem; font-size: .75rem; break-inside: avoid; background: #fff; }
.ra-libro-cab { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem; margin-bottom: .3rem; }
.ra-libro-tabla { width: 100%; border-collapse: collapse; font-size: .75rem; }
.ra-libro-tabla th { font-size: .72rem; }
.ra-libro-tabla th, .ra-libro-tabla td { border-bottom: 1px solid #e5e7eb; padding: .1rem .3rem; text-align: left; }
.ra-libro-tabla td:nth-child(2), .ra-libro-tabla td:nth-child(3), .ra-libro-tabla th:nth-child(2), .ra-libro-tabla th:nth-child(3) { text-align: center; }
.ra-libro-area td { font-weight: 700; background: #f3f4f6; }
.ra-libro-pie { margin-top: .3rem; }
.ra-prev-intro { margin: .6rem 0; font-size: .9rem; text-align: justify; }
.ra-prev-tabla { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ra-prev-tabla th { background: #e5e7eb; } .ra-prev-tabla th, .ra-prev-tabla td { border: 1px solid #9ca3af; padding: .3rem .4rem; vertical-align: top; }
.ra-prev-comp { margin: .8rem 0; font-size: .88rem; } .ra-prev-comp div { border-bottom: 1px solid #9ca3af; height: 1.4rem; }
@media print { .ra-libro { grid-template-columns: 1fr 1fr; } .ra-prev { page-break-after: always; } .ra-tabla th { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Informes adicionales: diseño propio de SIGES360 */
.ra-t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .82rem; background: #fff; border: 1px solid #dbe2ea; border-radius: 8px; overflow: hidden; }
.ra-t th { background: #1e3a5f; color: #fff; font-weight: 600; padding: .45rem .5rem; text-align: center; }
.ra-t td { padding: .35rem .5rem; text-align: center; border-top: 1px solid #eef2f6; }
.ra-t tbody tr:hover td { background: #f8fafc; }
.ra-t-compacta td, .ra-t-compacta th { padding: .25rem .4rem; font-size: .78rem; }
.ra-t tfoot td { background: #e8eef6; font-weight: 600; }
.ra-t tfoot .ra-tf-perd td { background: #fdeceb; color: #9b1c1c; }
.ra-total td { font-weight: 700; background: #f1f5f9; }
.ra-panel { background: #fff; border: 1px solid #dbe2ea; border-radius: 10px; padding: .7rem .9rem; margin-bottom: 1rem; box-shadow: 0 1px 2px rgba(15,23,42,.04); break-inside: avoid; }
.ra-panel h4 { margin: 0 0 .5rem; font-size: 1rem; color: #1e3a5f; } .ra-panel h4 small { color: #64748b; font-weight: 400; margin-left: .4rem; }
.ra-resumen-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .ra-resumen-grid { grid-template-columns: 1fr; } }
.ra-graf svg { width: 100%; height: auto; max-height: 260px; }
.ra-leyenda { display: flex; gap: 1rem; justify-content: center; font-size: .8rem; } .ra-leyenda i { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; margin-right: .3rem; vertical-align: middle; }
.ra-cab-curso { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .8rem 0 .4rem; } .ra-cab-curso h4 { margin: 0 .5rem 0 0; color: #1e3a5f; font-size: 1.05rem; }
.ra-chip { display: inline-block; background: #eef2f7; color: #334155; border-radius: 999px; padding: .1rem .6rem; font-size: .76rem; margin: .1rem .2rem .1rem 0; }
.ra-chip-si { background: #dcfce7; color: #166534; } .ra-chip-pend { background: #fef3c7; color: #92400e; } .ra-chip-no { background: #fee2e2; color: #991b1b; }
.ra-estado { display: inline-block; border-radius: 6px; padding: .1rem .45rem; font-weight: 600; font-size: .76rem; }
.ra-estado-si { background: #dcfce7; color: #166534; } .ra-estado-pend { background: #fef3c7; color: #92400e; } .ra-estado-no { background: #fee2e2; color: #991b1b; }
.ra-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin-bottom: .8rem; }
.ra-kpis > div { background: #fff; border: 1px solid #dbe2ea; border-radius: 10px; padding: .6rem .8rem; display: flex; flex-direction: column; }
.ra-kpis b { font-size: 1.35rem; color: #1e3a5f; } .ra-kpis span { font-size: .78rem; color: #64748b; }
.ra-filtro-doc { margin: 0 0 .6rem; } .ra-filtro-doc input { padding: .4rem .6rem; border: 1px solid #cbd5e1; border-radius: 6px; min-width: 260px; }
.ra-docente { background: #fff; border: 1px solid #dbe2ea; border-radius: 10px; margin-bottom: .9rem; overflow: hidden; break-inside: avoid; }
.ra-docente > header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .55rem .8rem; background: #f1f5f9; border-bottom: 1px solid #dbe2ea; }
.ra-docente > header small { display: block; color: #64748b; font-size: .76rem; }
.ra-docente-av { display: flex; align-items: center; gap: .5rem; } .ra-docente-av .ra-barra { width: 120px; }
.ra-docente .ra-t { border: 0; border-radius: 0; }
.ra-barra { display: inline-block; width: 70px; height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; vertical-align: middle; }
.ra-barra i { display: block; height: 100%; } .ra-barra i.ra-bien { background: #16a34a; } .ra-barra i.ra-medio { background: #f59e0b; } .ra-barra i.ra-mal { background: #dc2626; }
.ra-def { white-space: nowrap; } .ra-fila-vacia td { background: #fff7f7; }
.ra-det td { background: #fafcff; text-align: left; }
.ra-fechas { display: flex; gap: .3rem; } .ra-fechas input { padding: .25rem; }
.ra-check { display: flex !important; align-items: center; gap: .35rem; font-size: .85rem; }
.ra-asigs { display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; padding: .5rem .7rem; margin-bottom: .8rem; font-size: .82rem; }
.ra-asig { display: inline-flex; align-items: center; gap: .25rem; background: #fff; border: 1px solid #cbd5e1; border-radius: 999px; padding: .1rem .55rem; cursor: pointer; }
.ra-asig-vacia { opacity: .55; }
.ra-th-proc { background: #2c5282 !important; } .ra-th-def, .ra-td-def { background: #1e3a5f; color: #fff; font-weight: 700; }
.ra-td-def { background: #e8eef6 !important; color: #1e3a5f; }
.ra-n-baja { color: #b91c1c; font-weight: 600; } .ra-n-basica { color: #334155; } .ra-n-alta { color: #1d4ed8; } .ra-n-sup { color: #15803d; font-weight: 600; }
.ra-leyenda-n { font-size: .76rem; color: #475569; margin-left: auto; } .ra-leyenda-n i { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin: 0 .2rem 0 .5rem; vertical-align: middle; }
.ra-leyenda-n i.ra-n-baja { background: #b91c1c; } .ra-leyenda-n i.ra-n-basica { background: #334155; } .ra-leyenda-n i.ra-n-alta { background: #1d4ed8; } .ra-leyenda-n i.ra-n-sup { background: #15803d; }
.ra-pie { font-size: .74rem; color: #64748b; margin: .4rem 0 0; }
.ra-perd { background: #fff; border: 1px solid #dbe2ea; border-left: 4px solid #dc2626; border-radius: 8px; padding: .5rem .7rem; margin-bottom: .5rem; font-size: .82rem; }
.ra-perd-n { display: flex; justify-content: space-between; align-items: center; margin-bottom: .3rem; }
.ra-plan { max-height: 65vh; overflow: auto; }
@media print { .ra-t th, .ra-t tfoot td, .ra-chip, .ra-estado, .ra-barra i, .ra-td-def { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .ra-panel, .ra-docente { box-shadow: none; } }
.ra-t td.pa-izq { text-align: left; }
.rep-fila[hidden] { display: none; }
.ra-t-compacta td.pa-izq { white-space: nowrap; }
.ra-num { width: 4.2rem; padding: .2rem .3rem; }
.ra-resalta { background: #fde68a !important; }
.ra-prom { background: #f1f5f9; font-weight: 600; }
.ra-consol th { min-width: 2.4rem; }
.ra-puesto { display: inline-block; min-width: 1.6rem; border-radius: 999px; font-weight: 700; }
.ra-puesto-1 { background: #fde047; } .ra-puesto-2 { background: #e2e8f0; } .ra-puesto-3 { background: #fed7aa; }
.ra-podio { display: flex; gap: .6rem; flex-wrap: wrap; margin: .3rem 0 .7rem; }
.ra-podio > div { flex: 1 1 180px; border-radius: 10px; padding: .5rem .7rem; display: flex; flex-direction: column; border: 1px solid #e2e8f0; }
.ra-podio b { font-size: 1.3rem; } .ra-podio small { color: #475569; }
.ra-podio-1 { background: #fef9c3; } .ra-podio-2 { background: #f1f5f9; } .ra-podio-3 { background: #ffedd5; }

/* Encabezado institucional de los reportes */
.rep-encabezado { background: #fff; border: 1px solid #dbe2ea; border-radius: 10px; padding: .6rem .9rem; margin: 0 0 .8rem; }
.rep-encabezado:empty { display: none; }
.rep-enc-tabla { width: 100%; border-collapse: collapse; }
.rep-enc-izq { text-align: left !important; }
.rep-enc-titulo { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; border-top: 2px solid #1e3a5f; margin-top: .4rem; padding-top: .35rem; }
.rep-enc-titulo b { color: #1e3a5f; letter-spacing: .02em; } .rep-enc-titulo span { font-size: .78rem; color: #64748b; }
@media print { .rep-encabezado { border: 0; padding: 0; margin-bottom: .4cm; } .rep-enc-titulo { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Consolidado Mi Carga Académica */
.ra-radios { display: flex; flex-direction: column; gap: .15rem; font-size: .85rem; } .ra-radios label { display: flex; align-items: center; gap: .3rem; margin: 0; }
.mc-grid { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .mc-grid { grid-template-columns: 1fr; } }
@media print { .mc-grid { display: block; } }
.mc-lista { background: #fff; border: 1px solid #dbe2ea; border-radius: 10px; overflow: hidden; position: sticky; top: .5rem; max-height: 75vh; overflow-y: auto; }
.mc-lista header { background: #1e3a5f; color: #fff; padding: .45rem .7rem; font-weight: 600; font-size: .88rem; }
.mc-lista button { display: flex; flex-direction: column; gap: .2rem; width: 100%; text-align: left; background: #fff; border: 0; border-top: 1px solid #eef2f6; padding: .5rem .7rem; cursor: pointer; font-size: .82rem; color: #1e3a5f; }
.mc-lista button:hover { background: #f1f5f9; }
.mc-lista button.activo { background: #e0ebfa; border-left: 4px solid #2563eb; font-weight: 600; }
.mc-badges { display: flex; gap: .3rem; } .mc-badges b { font-size: .7rem; background: #eef2f7; color: #334155; border-radius: 999px; padding: 0 .45rem; font-weight: 600; }
.mc-badges b.mc-bajo { background: #fee2e2; color: #991b1b; }
.mc-detalle { background: #fff; border: 1px solid #dbe2ea; border-radius: 10px; padding: .7rem .9rem; }
.mc-cab { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; } .mc-cab h4 { margin: 0; color: #1e3a5f; }
.mc-buscar { margin: 0 0 .5rem; text-align: right; } .mc-buscar input { padding: .35rem .55rem; border: 1px solid #cbd5e1; border-radius: 6px; min-width: 220px; }
.mc-aprox { font-weight: 600; } .mc-aprox small { display: block; font-weight: 400; font-size: .68rem; color: #64748b; }
.mc-alerta { color: #b91c1c; } .mc-no { color: #991b1b; background: #fee2e2; }

/* Consolidado detallado: aviso de notas solo definitivas */
.ra-nota-info { margin: 6px 0 10px; padding: 8px 12px; border-left: 4px solid #2563eb; background: #eff6ff; color: #1e3a8a; border-radius: 6px; font-size: .9rem; }

/* Informe de importación de juicios valorativos */
.bj-informe { margin: 10px 0 14px; padding: 14px 16px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
.bj-informe h4 { margin: 0 0 10px; color: #1e3a5f; }
.bj-inf-cifras { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.bj-inf-cifras span { padding: 6px 12px; border-radius: 999px; font-size: .9rem; }
.bj-inf-ok { background: #dcfce7; color: #166534; }
.bj-inf-rep { background: #f1f5f9; color: #334155; }
.bj-inf-err { background: #fee2e2; color: #991b1b; }
.bj-inf-faltan { margin: 0 0 10px; padding-left: 18px; font-size: .9rem; color: #7c2d12; }
.bj-inf-faltan li { margin: 3px 0; }
.bj-inf-tabla { max-height: 320px; overflow: auto; margin: 8px 0; }
.bj-informe details summary { cursor: pointer; color: #1d4ed8; margin-bottom: 6px; }

/* Reporte de juicios valorativos por asignatura */
.ja-juicio { display: grid; grid-template-columns: 52px 100px 1fr; gap: 8px; padding: 4px 0; border-bottom: 1px dashed #e2e8f0; font-size: .85rem; }
.ja-juicio:last-child { border-bottom: 0; }
.ja-cod { color: #64748b; font-variant-numeric: tabular-nums; }
.ja-cat { color: #1e3a5f; }
.ja-est { white-space: nowrap; vertical-align: middle; }
.ra-t td .ja-juicio, .ra-t td .ja-juicio span { white-space: normal; min-width: 0; overflow-wrap: anywhere; }

/* Ranking: promedios por nivel, ranking general y por asignatura */
.ra-barras { display: grid; gap: 5px; margin: 6px 0 14px; max-width: 760px; }
.ra-barras > div { display: grid; grid-template-columns: 150px 1fr 48px; align-items: center; gap: 8px; font-size: .85rem; }
.ra-barras i { display: block; height: 14px; border-radius: 7px; background: #3b82f6; }
.ra-barras i.ra-n-baja { background: #dc2626; } .ra-barras i.ra-n-basica { background: #64748b; } .ra-barras i.ra-n-alta { background: #2563eb; } .ra-barras i.ra-n-sup { background: #16a34a; }
.ra-barras b { text-align: right; }
.rk-grado { margin: 14px 0 6px; color: #1e3a5f; font-size: 1rem; border-bottom: 2px solid #e2e8f0; padding-bottom: 3px; }
.rk-cursos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rk-curso { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; break-inside: avoid; }
.rk-curso header { background: #1e3a5f; color: #fff; font-weight: 600; padding: 6px 10px; font-size: .9rem; }
.rk-curso .ra-t { margin: 0; border-radius: 0; }
@media print { .rk-cursos { grid-template-columns: repeat(3, 1fr); } }
.rk-curso .ra-t-compacta td.pa-izq { white-space: normal; }
.rk-curso .ra-t td:first-child, .rk-curso .ra-t td:last-child { width: 1%; white-space: nowrap; }

/* Rendimiento, recuperaciones y acumulados */
.rr-barras { display: grid; gap: 4px; margin: 6px 0; }
.rr-barra { display: grid; grid-template-columns: 220px 1fr; gap: 8px; align-items: center; font-size: .8rem; }
.rr-barra > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-barra > div { display: flex; height: 18px; border-radius: 5px; overflow: hidden; background: #f1f5f9; }
.rr-barra i { display: flex; align-items: center; justify-content: center; color: #fff; font-size: .68rem; font-style: normal; }
.rr-ley { display: flex; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: #475569; margin: 6px 0; }
.rr-ley span { display: inline-flex; align-items: center; gap: 5px; }
.rr-ley i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid #cbd5e1; }
.rr-lista { white-space: normal !important; }
.rr-pct { color: #64748b; font-size: .72rem !important; }
.rr-firmas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 50px 10px 10px; text-align: center; font-size: .85rem; }
.rr-firmas div { border-top: 1px solid #334155; padding-top: 4px; }
.rr-comp-grid { display: grid; grid-template-columns: minmax(280px, 1fr) 1.3fr; gap: 16px; align-items: start; }
.rr-columnas { display: flex; align-items: flex-end; gap: 6px; height: 240px; border-bottom: 1px solid #cbd5e1; padding: 0 4px; overflow-x: auto; }
.rr-col { display: flex; flex-direction: column; align-items: center; min-width: 34px; height: 100%; }
.rr-col-barras { flex: 1; display: flex; align-items: flex-end; gap: 1px; width: 100%; justify-content: center; }
.rr-col-barras i { width: 7px; min-height: 1px; border-radius: 2px 2px 0 0; }
.rr-col > span { font-size: .62rem; color: #475569; margin-top: 3px; }
.rr-acum td { font-size: .74rem; } .rr-acum td small { font-size: .62rem; opacity: .8; }
.rr-acum tr.rr-acum-ini td { border-top: 2px solid #94a3b8; }
.rr-acum tr.rr-acum-total td { background: #eef2ff; font-weight: 600; }
.rr-acum-est { vertical-align: middle; background: #f8fafc; }
.nm-bien { background: #f0fdf4; } .nm-alerta { background: #fef3c7; color: #92400e; font-weight: 600; }
.nm-no { background: #fee2e2; color: #991b1b; font-weight: 600; } .nm-ok { background: #dcfce7; color: #166534; } .nm-falta { color: #94a3b8; }
.rr-ley i.nm-bien, .rr-ley i.nm-alerta, .rr-ley i.nm-no, .rr-ley i.nm-ok { display: inline-block; }
@media (max-width: 800px) { .rr-comp-grid { grid-template-columns: 1fr; } .rr-barra { grid-template-columns: 120px 1fr; } }
@media print { .rr-acta h5 { break-after: avoid; } }
.rr-firma-ac { min-width: 140px; vertical-align: bottom; border-bottom: 1px solid #334155 !important; }
.nm-def { background: #fee2e2; color: #b91c1c; font-weight: 600; }
.rr-ley i.nm-def { display: inline-block; }
.rep-filtros #nmnBuscar + .btn-primary { margin-left: 6px; }
.rr-botones { display: flex; gap: 8px; justify-content: flex-end; grid-column: 1 / -1; }

/* Recuperaciones: cursos plegables, actas e informes de nivelación */
.rr-curso { border: 1px solid #e2e8f0; border-radius: 8px; margin: 6px 0; background: #fff; }
.rr-curso summary { cursor: pointer; padding: 8px 12px; font-weight: 600; color: #1e3a5f; background: #f8fafc; border-radius: 8px; }
.rr-curso[open] summary { border-bottom: 1px solid #e2e8f0; border-radius: 8px 8px 0 0; }
.rr-curso .ra-t { margin: 8px; width: calc(100% - 16px); }
.rr-rec td.rr-per { background: #fecaca; color: #991b1b; font-weight: 600; }
.rr-imp button { padding: 2px 8px; font-size: .75rem; margin: 1px; }
.rr-acta-hoja { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 18px 26px; margin: 0 0 16px; font-size: .85rem; line-height: 1.45; text-align: justify; }
.rr-acta-hoja .bol-encabezado { margin-bottom: 12px; }
.rr-acta-tit { text-align: center; margin: 10px 0; font-size: .95rem; }
.rr-acta-sub { text-align: center; margin: 10px 0 4px; font-size: .85rem; }
.rr-acta-hoja ol { margin: 4px 0 8px 18px; padding: 0; }
.rr-acta-tabla { border-collapse: collapse; margin: 10px auto; font-size: .8rem; min-width: 60%; }
.rr-acta-tabla th { background: #1e3a5f; color: #fff; padding: 4px 8px; }
.rr-acta-tabla td { border: 1px solid #cbd5e1; padding: 3px 8px; }
.rr-firma-cel { min-width: 160px; }
.rr-acta-centro { text-align: center; }
.rrf { display: grid; gap: 30px 60px; margin: 34px 20px 10px; }
.rrf-3 { grid-template-columns: repeat(3, 1fr); } .rrf-2 { grid-template-columns: repeat(2, 1fr); }
.rrf > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 60px; }
.rrf > div > span { border-top: 1px solid #334155; padding-top: 3px; width: 100%; text-align: center; font-size: .78rem; }
.rr-firma-img img { max-height: 55px; max-width: 160px; }
@media print {
  .rr-acta-hoja { border: 0; border-radius: 0; padding: 0; margin: 0; break-after: page; }
  .rr-actas { border: 0; padding: 0; }
  body.rr-solo-hoja .rep-cuerpo > *:not(.ra-res), body.rr-solo-hoja .ra-res > *:not(.rr-hojas-est), body.rr-solo-hoja .rep-encabezado, body.rr-solo-hoja .rep-volver { display: none !important; }
}
.rr-mas { font-weight: 400; color: #475569; margin-left: 10px; font-size: .8rem; }
.rr-rep td.rr-rep-n { color: #dc2626; font-weight: 700; font-size: .9rem; }
.rr-comp2 { display: grid; grid-template-columns: 1fr; gap: 6px; }
.rr-mejora { color: #16a34a; font-weight: 600; }

/* ===== Horario (Docente → Horario) ===== */
.ho-tabs { display: flex; gap: 4px; border-bottom: 2px solid #e2e8f0; margin-bottom: 10px; flex-wrap: wrap; }
.ho-tabs button { border: 0; background: transparent; padding: 8px 14px; cursor: pointer; color: #475569; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.ho-tabs button.activo { color: #1e3a5f; border-bottom-color: #2563eb; }
.ho-filtros { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin-bottom: 8px; }
.ho-filtros label { display: flex; flex-direction: column; font-size: .8rem; color: #475569; gap: 3px; }
.ho-filtros select { min-width: 220px; padding: 5px; }
.ho-grid { display: grid; grid-template-columns: 290px 1fr; gap: 14px; align-items: start; }
.ho-lista { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; position: sticky; top: 10px; max-height: 85vh; overflow-y: auto; }
.ho-lista > header { background: #1e3a5f; color: #fff; padding: 8px 12px; font-weight: 600; display: flex; justify-content: space-between; }
.ho-curso header { background: #f1f5f9; padding: 6px 12px; font-weight: 600; color: #1e3a5f; font-size: .85rem; display: flex; justify-content: space-between; }
.ho-carga { display: flex; justify-content: space-between; align-items: center; gap: 6px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #f1f5f9; background: #fff; padding: 6px 12px; cursor: pointer; font-size: .8rem; }
.ho-carga:hover { background: #f8fafc; } .ho-carga.activo { background: #dbeafe; box-shadow: inset 3px 0 0 #2563eb; font-weight: 600; }
.ho-badge { background: #e2e8f0; color: #334155; border-radius: 999px; padding: 1px 8px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.ho-badge.ho-ok { background: #dcfce7; color: #166534; } .ho-badge.ho-falta { background: #fef3c7; color: #92400e; } .ho-badge.ho-mas { background: #fee2e2; color: #991b1b; }
.ho-ayuda { font-size: .75rem; color: #64748b; padding: 8px 12px; margin: 0; }
.ho-tabla { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px; }
.ho-modelos { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.ho-modelos button { border: 1px solid #cbd5e1; background: #fff; border-radius: 6px; padding: 4px 12px; cursor: pointer; color: #b45309; font-weight: 600; }
.ho-modelos button.activo { background: #fff7ed; border-color: #f59e0b; }
.ho-nota { font-size: .75rem; color: #92400e; }
.ho-titulo { margin: 4px 0 8px; color: #1e3a5f; }
.ho-rejilla { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.ho-rejilla th { background: #fff; border-bottom: 2px solid #93c5fd; padding: 6px; font-size: .8rem; color: #1e3a5f; }
.ho-rejilla th.ho-hora, .ho-rejilla td.ho-hora { width: 86px; }
.ho-rejilla td { height: 54px; text-align: center; vertical-align: middle; font-size: .72rem; border-radius: 6px; }
.ho-rejilla td.ho-hora { background: #f1f5f9; color: #1e3a5f; }
.ho-rejilla td.ho-hora small { display: block; color: #64748b; font-size: .65rem; }
.ho-receso td { height: 24px; background: #bbf7d0 !important; color: #166534; font-weight: 600; }
.ho-clase > div { position: relative; background: #3b6e9e; color: #fff; border-radius: 6px; padding: 6px 18px 6px 6px; min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.ho-clase b { font-size: .74rem; } .ho-clase span { font-size: .68rem; opacity: .95; }
.ho-clase.ho-resalta > div { background: #1d4ed8; box-shadow: 0 0 0 2px #93c5fd; }
.ho-quitar { position: absolute; top: 2px; right: 2px; border: 0; background: #fecaca; color: #991b1b; border-radius: 50%; width: 16px; height: 16px; line-height: 14px; font-size: .75rem; cursor: pointer; padding: 0; }
.ho-libre { background: #f8fafc; color: #94a3b8; }
.ho-libre.ho-puede { background: #eff6ff; color: #1d4ed8; cursor: pointer; border: 1px dashed #93c5fd; }
.ho-libre.ho-puede:hover { background: #dbeafe; }
.ho-ocupado { background: #e5e7eb; color: #4b5563; } .ho-ocupado small { display: block; font-size: .62rem; }
.ho-resumen { margin-top: 12px; }
.ho-config { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.ho-config section { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; }
.ho-config h4 { margin: 0 0 8px; color: #1e3a5f; }
.ho-modelo { border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 8px; }
.ho-modelo summary { cursor: pointer; padding: 8px 10px; background: #f8fafc; font-size: .85rem; border-radius: 8px; }
.ho-modelo-datos { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 10px; font-size: .8rem; }
.ho-modelo-datos label { display: flex; flex-direction: column; gap: 2px; }
.hm-niveles { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .hm-niveles label { flex-direction: row; gap: 4px; align-items: center; }
.ho-bloques { margin: 0 10px; width: calc(100% - 20px); } .ho-bloques input[type=text], .ho-bloques input:not([type]) { width: 90px; }
.ho-quitar-b { border: 0; background: #fee2e2; color: #991b1b; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; }
.ho-acc { display: flex; gap: 8px; justify-content: flex-end; padding: 8px 10px; }
.ho-nuevo { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
@media (max-width: 900px) { .ho-grid, .ho-config { grid-template-columns: 1fr; } .ho-lista { position: static; } }
@media print { .ho-grid { grid-template-columns: 1fr; } .ho-lista { display: none; } .ho-tabla { border: 0; } .ho-clase > div { background: #fff !important; color: #000; border: 1px solid #334155; } }

/* ===== Asistencia (Docente → Asistencia) ===== */
.as-extra { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.as-semana { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 4px 0 8px; flex-wrap: wrap; }
.as-semana b { color: #1e3a5f; min-width: 260px; text-align: center; }
.as-rejilla th small { display: block; font-weight: 400; color: #64748b; }
.as-rejilla th.as-hoy { background: #fef3c7; border-bottom-color: #f59e0b; }
.as-rejilla td { padding: 2px; }
.as-vacia { background: #f8fafc; }
.as-clase { width: 100%; min-height: 52px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; padding: 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; color: #1e293b; }
.as-clase b { font-size: .72rem; } .as-clase small { color: #64748b; font-size: .65rem; }
.as-clase.as-pendiente { border-color: #f59e0b; background: #fffbeb; } .as-clase.as-pendiente:hover { background: #fef3c7; }
.as-clase.as-tomada { border-color: #86efac; background: #f0fdf4; }
.as-clase.as-futura { opacity: .6; cursor: default; }
.as-chip { border-radius: 999px; padding: 1px 8px; font-size: .64rem; font-weight: 700; }
.as-chip.as-ok { background: #dcfce7; color: #166534; } .as-chip.as-pend { background: #f59e0b; color: #fff; } .as-chip.as-prog { background: #e2e8f0; color: #475569; } .as-chip.as-sin { background: #fee2e2; color: #991b1b; }
.as-resumen td { background: #f8fafc; font-size: .7rem; }
.as-mini { display: inline-block; border-radius: 4px; padding: 0 5px; margin: 1px; font-size: .68rem; font-weight: 700; }
.as-mini.as-a, .as-btns .as-a.activo { background: #dcfce7; color: #166534; }
.as-mini.as-f, .as-btns .as-f.activo { background: #fee2e2; color: #991b1b; }
.as-mini.as-t, .as-btns .as-t.activo { background: #fef3c7; color: #92400e; }
.as-mini.as-e, .as-btns .as-e.activo { background: #dbeafe; color: #1e40af; }
.as-tom { display: block; color: #64748b; font-size: .62rem; }
.as-alerta { background: #fffbeb; border-left: 4px solid #f59e0b; padding: 6px 10px; border-radius: 6px; font-size: .85rem; color: #92400e; }
.as-dialogo { width: min(760px, 96vw) !important; max-width: 96vw !important; max-height: 92vh; border: 0; border-radius: 12px; padding: 0; }
.as-form { padding: 16px 18px; }
.as-form header h3 { margin: 0; color: #1e3a5f; } .as-form header p { margin: 2px 0 8px; color: #475569; font-size: .85rem; }
.as-tema { display: flex; flex-direction: column; font-size: .8rem; gap: 3px; margin-bottom: 8px; } .as-tema input { padding: 5px; }
.as-totales { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: .8rem; margin-bottom: 6px; } .as-totales button { margin-left: auto; }
.as-lista { max-height: 55vh; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 8px; }
.as-fila { display: grid; grid-template-columns: 30px 1fr auto; gap: 6px; align-items: center; padding: 5px 8px; border-bottom: 1px solid #f1f5f9; font-size: .82rem; }
.as-fila.as-novedad { background: #fff7ed; }
.as-fila .as-obs { grid-column: 2 / 4; padding: 4px; font-size: .78rem; }
.as-n { color: #94a3b8; text-align: right; }
.as-btns { display: flex; gap: 3px; }
.as-btns button { width: 32px; height: 28px; border: 1px solid #cbd5e1; background: #fff; border-radius: 6px; cursor: pointer; font-weight: 700; color: #64748b; }
.as-btns button.activo { border-color: transparent; }
@media print { .as-clase { border: 1px solid #94a3b8 !important; background: #fff !important; } }

/* ===== Control de Asistencia Escolar (reportes) ===== */
.ca-ley { display: inline-flex; gap: 4px; margin-left: auto; font-size: .7rem; }
.ca-ley span { padding: 2px 8px; border-radius: 4px; color: #fff; font-weight: 600; }
.ca-j, .ca-tabla td.ca-j, .ca-ley .ca-j { background: #9333ea; color: #fff; }
.ca-i, .ca-tabla td.ca-i, .ca-ley .ca-i { background: #dc2626; color: #fff; }
.ca-r, .ca-tabla td.ca-r, .ca-ley .ca-r { background: #f59e0b; color: #fff; }
.ca-c { background: #1e40af; color: #fff; }
.ca-tabla td, .ca-tabla th { padding: 2px 3px !important; text-align: center; font-size: .7rem; }
.ca-tabla th.ca-dia { min-width: 20px; font-weight: 600; line-height: 1.1; }
.ca-tabla td.ca-j, .ca-tabla td.ca-i, .ca-tabla td.ca-r { font-weight: 700; }
.ca-tabla td.ca-tot:empty { background: #f8fafc; }
.ca-tabla .ca-sin, .ca-tabla th.ca-sin { background: #f1f5f9; color: #94a3b8; }
.ca-ok { color: #16a34a; font-weight: 700; }
.ca-der { text-align: right !important; font-weight: 700; }
.ca-sub { font-size: .8rem; color: #475569; margin: 4px 0 8px; } .ca-sub b { padding: 1px 6px; border-radius: 3px; }
.ca-est { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 12px; }
.ca-est td.ca-j, .ca-est td.ca-i, .ca-est td.ca-r { background: transparent; color: inherit; font-weight: 700; }
.ca-est td.ca-j { color: #7e22ce; } .ca-est td.ca-i { color: #dc2626; } .ca-est td.ca-r { color: #b45309; }
.ca-barra { display: inline-block; width: 70px; height: 8px; background: #fee2e2; border-radius: 4px; vertical-align: middle; overflow: hidden; }
.ca-barra i { display: block; height: 100%; background: #16a34a; }
.ca-totfila td { font-weight: 700; background: #eef2ff; }
.ca-tabla td.ca-r:empty, .ca-tabla td.ca-i:empty, .ca-tabla td.ca-j:empty { background: #fff; }
.ca-tabla tfoot td { color: #1e293b; }
.ca-tabla tfoot td.ca-der { color: #1e3a5f; }
.rr-multi { min-width: 220px; vertical-align: top; }
.rep-tarjeta[hidden], .rep-grupo[hidden], .rep-sin-resultados[hidden] { display: none !important; }

/* ===== Observador ===== */
.ob-bienvenida { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 14px; font-weight: 600; color: #1e3a5f; }
.ob-tarjetas { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 60px 0; }
.ob-tarjetas button { width: 200px; min-height: 150px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 2px 8px rgba(15,23,42,.06); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px; color: #1e3a5f; }
.ob-tarjetas button:hover { border-color: #93c5fd; box-shadow: 0 4px 14px rgba(37,99,235,.15); }
.ob-tarjetas small { color: #64748b; font-size: .75rem; text-align: center; } .ob-ico { font-size: 2rem; }
.ob-cab { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.ob-cab h3 { margin: 0; font-size: 1rem; color: #1e3a5f; } .ob-cab p { margin: 0; font-size: .78rem; color: #64748b; }
.ob-volver { border: 0; background: transparent; color: #ea580c; font-size: 1.3rem; cursor: pointer; }
.ob-caja { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.ob-caja > header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #fed7aa; padding-bottom: 6px; margin-bottom: 8px; font-size: .85rem; color: #1e3a5f; gap: 8px; flex-wrap: wrap; }
.ob-caja > header small { color: #64748b; font-weight: 400; }
.ob-caja label { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: #334155; }
.ob-caja input, .ob-caja select, .ob-caja textarea { padding: 6px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; font-size: .85rem; }
.ob-caja textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.ob-grid4 { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.2fr; gap: 10px; }
.ob-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .ob-dos .ob-caja { margin-bottom: 0; } .ob-dos + .ob-caja { margin-top: 10px; }
.ob-cont { background: #fff7ed; color: #c2410c; border-radius: 999px; padding: 1px 8px; font-size: .72rem; font-weight: 700; }
.ob-vacio { text-align: center; color: #94a3b8; font-size: .78rem; padding: 14px 0; margin: 0; }
.ob-x { border: 0; background: #fee2e2; color: #b91c1c; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; line-height: 18px; padding: 0; }
.ob-switch { flex-direction: row !important; align-items: center; gap: 6px !important; border: 1px solid #e2e8f0; border-radius: 999px; padding: 2px 10px; }
.ob-check { flex-direction: row !important; align-items: center; gap: 6px !important; margin-top: 6px; }
.ob-buscaest { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.ob-resultados { max-height: 180px; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 6px; margin: 6px 0; }
.ob-resultados button { display: flex; justify-content: space-between; width: 100%; border: 0; border-bottom: 1px solid #f1f5f9; background: #fff; padding: 6px 10px; cursor: pointer; font-size: .8rem; text-align: left; }
.ob-resultados button:hover { background: #eff6ff; } .ob-resultados small { color: #64748b; }
.ob-anexo { display: inline-flex; align-items: center; gap: 4px; background: #f1f5f9; border-radius: 6px; padding: 3px 8px; margin: 6px 6px 0 0; font-size: .78rem; }
.ob-anexo.ob-nuevo { background: #fff7ed; }
.ob-pie { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .82rem; }
.ob-falta { display: inline-block; background: #fee2e2; color: #b91c1c; border-radius: 999px; padding: 2px 10px; margin: 4px 4px 0 0; font-size: .72rem; }
.ob-listo { display: inline-block; background: #dcfce7; color: #166534; border-radius: 999px; padding: 2px 10px; margin-top: 4px; font-size: .72rem; }
.ob-filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; } .ob-filtros label { min-width: 150px; } .ob-ancho { flex: 1 1 100%; }
.ob-estados { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: .82rem; } .ob-estados label { flex-direction: row !important; gap: 4px !important; }
.ob-acc { margin-left: auto; display: flex; gap: 6px; }
.ob-tabla td.ob-txt { white-space: normal !important; max-width: 220px; font-size: .72rem; } .ob-tabla td.ob-desc { max-width: 260px; }
.ob-nivel { display: inline-block; min-width: 26px; border-radius: 4px; color: #fff; font-weight: 700; }
.ob-nI { background: #f59e0b; } .ob-nII { background: #ea580c; } .ob-nIII { background: #b91c1c; }
.ob-estado { border-radius: 999px; padding: 1px 8px; font-size: .68rem; font-weight: 700; }
.ob-eDIRECTO { background: #dbeafe; color: #1e40af; } .ob-ePENDIENTE { background: #fef3c7; color: #92400e; } .ob-eAPROBADO { background: #dcfce7; color: #166534; } .ob-eRECHAZADO { background: #fee2e2; color: #991b1b; }
.ob-acciones button { font-size: .7rem; padding: 2px 6px; margin: 1px; border: 1px solid #cbd5e1; background: #fff; border-radius: 4px; cursor: pointer; } .ob-acciones .ob-rojo { color: #b91c1c; }
.ob-acc-acta { display: flex; gap: 8px; margin-bottom: 8px; }
.ob-acta { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 18px 26px; font-size: .85rem; }
.ob-acta h4 { text-align: center; margin: 10px 0; } .ob-acta h5 { margin: 12px 0 4px; color: #1e3a5f; border-bottom: 1px solid #e2e8f0; }
.ob-acta-datos { width: 100%; border-collapse: collapse; } .ob-acta-datos td { border: 1px solid #cbd5e1; padding: 4px 8px; }
.ob-acta-tabla { border-collapse: collapse; width: 100%; } .ob-acta-tabla th { background: #1e3a5f; color: #fff; padding: 3px 8px; } .ob-acta-tabla td { border: 1px solid #cbd5e1; padding: 3px 8px; }
.ob-acta-desc { white-space: pre-wrap; text-align: justify; }
.ob-lineas { height: 70px; background: repeating-linear-gradient(to bottom, transparent 0 22px, #94a3b8 22px 23px); }
.ob-inactivo td { opacity: .5; } .ob-edit { width: 100%; box-sizing: border-box; }
.ob-nuevo { display: flex; gap: 6px; margin: 6px 0 10px; } .ob-nuevo input { flex: 1; }
@media (max-width: 900px) { .ob-grid4, .ob-dos, .ob-buscaest { grid-template-columns: 1fr; } }
@media print { .ob-acta { border: 0; padding: 0; } }
.ob-inc { border: 1px solid #cbd5e1; border-radius: 6px; padding: 6px 10px; margin: 8px 0; font-size: .82rem; break-inside: avoid; }
.ob-inc p { margin: 2px 0; } .ob-inc-fecha { text-align: center; font-weight: 700; color: #1e3a5f; border-bottom: 1px solid #e2e8f0; padding-bottom: 3px; margin-bottom: 4px; }
.ob-acta-hoja .ob-acta-datos { margin-bottom: 6px; font-size: .82rem; }
@media print { .ob-acta-lista { display: none; } }
@media print { .rep-encabezado:has(~ .rep-cuerpo .ob-acta-hoja), .rep-volver { display: none !important; } .ob-acta-hoja { break-after: page; } }

/* Inicio: Mi Horario de Clases (docente) */
.in-verde { background: #16a34a; color: #fff; }
.in-verde .in-config { color: #fff; }
#inHorario { padding: 8px 10px; }
.in-hor-mod { display: flex; gap: 4px; margin-bottom: 6px; } .in-hor-mod button { border: 1px solid #cbd5e1; background: #fff; border-radius: 6px; padding: 2px 10px; cursor: pointer; font-size: .75rem; } .in-hor-mod button.activo { background: #fff7ed; border-color: #f59e0b; color: #b45309; }
.in-hor-hoy { font-size: .8rem; color: #334155; margin-bottom: 6px; }
.in-hor { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; font-size: .66rem; }
.in-hor th { color: #1e3a5f; font-weight: 700; padding: 2px; } .in-hor th small { display: block; font-weight: 400; color: #64748b; }
.in-hor td { height: 34px; text-align: center; vertical-align: middle; border-radius: 4px; background: #f8fafc; padding: 1px; }
.in-hor td.in-hor-h { width: 46px; background: #f1f5f9; } .in-hor td.in-hor-h small { display: block; color: #64748b; }
.in-hor th:first-child { width: 46px; }
.in-hor-rec td { height: 14px; background: #bbf7d0; color: #166534; font-weight: 600; }
.in-hor-c { background: #3b6e9e !important; color: #fff; cursor: pointer; line-height: 1.15; }
.in-hor-c b { display: block; } .in-hor-c span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .95; }
.in-hor-c.in-hor-ok { background: #15803d !important; } .in-hor-c.in-hor-pend { background: #d97706 !important; }
.in-hor .in-hor-hoycol { box-shadow: inset 0 0 0 2px #f59e0b; } .in-hor th.in-hor-hoycol { background: #fef3c7; box-shadow: none; border-radius: 4px; }
.in-hor-ley { font-size: .68rem; color: #64748b; margin: 6px 0 0; } .in-hor-ley .in-hor-ok { color: #15803d; } .in-hor-ley .in-hor-pend { color: #d97706; }

.btn-peligro:not(:disabled) { color: #b42318; border-color: #b42318; }
.btn-link-peligro { color: #b42318; }

/* Boletín de preescolar (v0.71): anchos fijos para que "Desarrollo y aprendizaje" tenga espacio y la tabla no se salga de la hoja */
.bol-preescolar { table-layout: fixed; }
.bol-preescolar col.bol-pc-prop { width: 31%; } .bol-preescolar col.bol-pc-amb { width: 17%; }
.bol-preescolar col.bol-pc-prop-sola { width: 38%; } .bol-preescolar col.bol-pc-x { width: 0.85cm; }
.bol-preescolar .bol-proposito, .bol-preescolar .bol-ambito { width: auto; }
.bol-preescolar td, .bol-preescolar th { overflow-wrap: anywhere; }
/* Firmas alineadas: misma altura para la imagen en las dos columnas, línea y textos a la misma altura */
.bol-firma-zona { height: 1.6cm; display: flex; align-items: flex-end; justify-content: center; }
.bol-firma-zona .bol-firma-img { max-height: 1.55cm; max-width: 5.5cm; margin: 0; }
.bol-firmas td { vertical-align: bottom; font-size: 8.5pt; }
.bol-firma-cargo { display: block; font-weight: 700; font-size: 8.5pt; }
.bol-firmas small { font-size: 8pt; line-height: 1.2; }

/* Historial Académico (años anteriores) */
.hs-intro { margin: 0 0 .6rem; color: #374151; }
.hs-tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid #d1d5db; margin-bottom: .9rem; }
.hs-tabs button { background: #f3f4f6; border: 1px solid #d1d5db; border-bottom: 0; border-radius: 6px 6px 0 0; padding: .5rem 1rem; cursor: pointer; font-size: inherit; }
.hs-tabs button.activa { background: #1f4e79; color: #fff; border-color: #1f4e79; }
.hs-filtros .nn-fila { grid-template-columns: 11rem 1fr; }
.hs-filtros input { min-width: 18rem; }
.hs-tabla { max-width: 1100px; }
.hs-acc { white-space: nowrap; }
.hs-ficha { margin-top: 1rem; border: 1px solid #d5dbe1; border-radius: 6px; padding: .8rem 1rem; background: #fbfcfd; }
.hs-ficha h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.hs-notas td.hs-logro { font-size: .85em; color: #374151; min-width: 18rem; }
.hs-cargar { border: 1px dashed #9ca3af; border-radius: 6px; padding: .8rem 1rem; max-width: 900px; background: #f9fafb; }
.hs-resumen { margin-top: .7rem; }
.hs-alerta { color: #b45309; font-weight: bold; }
.hs-sub { font-size: 1rem; margin: 1.2rem 0 .5rem; }
@media (max-width: 720px) { .hs-filtros .nn-fila { grid-template-columns: 1fr; } .hs-filtros input { min-width: 0; width: 100%; } }

/* Paz y Salvo y Recaudos */
.rc-filtros .nn-fila { grid-template-columns: 9rem 1fr; }
.rc-filtros input:not([type=checkbox]) { min-width: 16rem; }
.rc-botones { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.rc-tabla { max-width: 1100px; }
.rc-ficha, .rc-form { margin-top: .8rem; border: 1px solid #d5dbe1; border-radius: 6px; padding: .8rem 1rem; background: #fbfcfd; max-width: 1050px; }
.rc-ficha h3 { margin: 0 0 .4rem; } .rc-ficha h3 small { font-weight: normal; font-size: .85em; color: #4b5563; }
.rc-sub { font-size: 1.02rem; margin: 1rem 0 .5rem; }
.rc-cobros { max-width: 1000px; } .rc-cobros .rc-valor { width: 9rem; text-align: right; } .rc-cobros .rc-cant { width: 4.5rem; }
.rc-chk { display: inline-flex; gap: .4rem; align-items: center; cursor: pointer; }
.rc-total { font-size: 1.1rem; margin: .6rem 0; }
.rc-obs { grid-template-columns: 7rem 1fr; max-width: 700px; margin-bottom: .6rem; }
.rc-pagador { display: grid; gap: .4rem; max-width: 520px; margin-bottom: .6rem; } .rc-pagador .nn-fila { grid-template-columns: 7rem 1fr; }
.rc-ok { color: #15803d; font-weight: 600; } .rc-pend { color: #b91c1c; font-weight: 600; } .rc-gris { color: #6b7280; }
.rc-ps-ok { color: #15803d; font-weight: 700; } .rc-ps-no { color: #b91c1c; font-weight: 700; }
.rc-tachado, .rc-tachado td { color: #9ca3af; text-decoration: line-through; } .rc-tachado a { text-decoration: none; }
.rc-ps td.c, .tabla-datos td.c { text-align: center; } .tabla-datos td.d { text-align: right; white-space: nowrap; }
.rc-ps th { font-size: .82em; vertical-align: bottom; }
.rc-req { display: inline-flex; gap: .3rem; align-items: center; cursor: pointer; padding: .15rem .45rem; border-radius: 4px; }
.rc-req.si { background: #dcfce7; color: #166534; } .rc-req.no { background: #fee2e2; color: #991b1b; }
.rc-acciones { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .6rem 0; }
.rc-acc { white-space: nowrap; }
.rc-nota { font-size: .85em; color: #4b5563; }
.rc-grados { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .25rem .8rem; border: 1px solid #d1d5db; border-radius: 6px; padding: .5rem .8rem; margin: .6rem 0; }
.rc-form .nn-fila { grid-template-columns: 7rem 1fr; max-width: 640px; margin-bottom: .4rem; }
.rc-resumen { max-width: 700px; }
@media (max-width: 720px) { .rc-filtros .nn-fila, .rc-form .nn-fila, .rc-obs { grid-template-columns: 1fr; } .rc-filtros input:not([type=checkbox]) { min-width: 0; width: 100%; } }

/* Horario → Sugerir horario */
.ho-filtros label.ho-sg-chk { display: inline-flex; flex-direction: row; gap: .4rem; align-items: center; align-self: flex-end; padding-bottom: .55rem; }
.ho-sg-intro { max-width: 900px; } .ho-sg-intro ul { line-height: 1.6; }
.ho-sg-acc { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .6rem 0; }
.ho-sg-ok { color: #15803d; } .ho-sg-alerta { color: #b45309; }
td.ho-sg-nueva > div { background: #e0f2fe !important; color: #0f2a47 !important; border: 1px dashed #0284c7; }
td.ho-sg-nueva > div span { color: #334155 !important; }
i.ho-sg-nueva { background: #e0f2fe; }
i.ho-sg-nueva { display: inline-block; width: 1rem; height: 1rem; border: 1px solid #7dd3fc; vertical-align: middle; }
.ho-sg-ley { font-size: .85em; color: #4b5563; }

/* ---------- Actas y Diplomas de Grado ---------- */
.ag-libros { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .7rem; margin: .6rem 0 1rem; }
.ag-libro { display: flex; flex-direction: column; gap: .15rem; text-align: left; background: #fff; border: 1px solid #d5dde8; border-left: 5px solid #1f3b63;
  border-radius: 6px; padding: .6rem .8rem; cursor: pointer; font: inherit; font-size: .85rem; color: #334; }
.ag-libro:hover, .ag-libro.activo { border-color: #1f3b63; box-shadow: 0 2px 8px rgba(31, 59, 99, .15); }
.ag-libro.activo { background: #eef3fa; }
.ag-libro-n { font-size: 1.05rem; font-weight: 700; color: #1f3b63; }
.ag-libro-c { font-weight: 600; }
.ag-libro-f { color: #6b7a8c; font-size: .78rem; }
.ag-form { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; background: #fff; border: 1px solid #dde3ea; border-radius: 6px; padding: .7rem .9rem; margin: .6rem 0; }
.ag-form label { display: flex; flex-direction: column; gap: .2rem; font-size: .82rem; font-weight: 600; color: #3a4757; }
.ag-form label:has(input[type=radio]) { flex-direction: row; align-items: center; font-weight: 500; }
.ag-form input:not([type=radio]) { padding: .35rem .45rem; border: 1px solid #c4ccd6; border-radius: 4px; font: inherit; font-weight: 400; width: 9rem; }
.ag-form .ag-ancho { flex: 1 1 22rem; } .ag-form .ag-ancho input { width: 100%; }
.ag-form input.ag-corto, .ag-graduados input.ag-corto { width: 4.5rem; }
.ag-graduados input { width: 100%; min-width: 6rem; padding: .2rem .3rem; border: 1px solid transparent; border-radius: 3px; font: inherit; background: transparent; }
.ag-graduados input:hover, .ag-graduados input:focus { border-color: #c4ccd6; background: #fff; }
.ag-graduados td:nth-child(2) input { min-width: 16rem; }
.ag-nota { font-size: .85rem; color: #4a5868; margin: .3rem 0 .6rem; }
.ag-gris { color: #8a96a3; font-size: .85em; }
.ag-pie { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin: .7rem 0; flex-wrap: wrap; }
.ag-ficha, .ag-opciones { margin-top: 1rem; }
.ag-ficha h3, .ag-opciones h3 { color: #1f3b63; font-size: 1.05rem; margin: .4rem 0; }
.ag-listo { background: #eaf6ee; border: 1px solid #9fd0ad; border-radius: 6px; padding: .8rem 1rem; margin: .8rem 0; }
.ag-listo .ag-pie { justify-content: flex-start; }

/* ---------- Gobierno Escolar y Certificaciones ---------- */
.gb-editor { background: #fff; border: 1px solid #dde3ea; border-radius: 8px; padding: .8rem 1rem; margin-top: 1rem; }
.gb-editor h3 { color: #1f3b63; font-size: 1.08rem; margin: .2rem 0 .6rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.gb-editor h4 { color: #1f3b63; font-size: .92rem; margin: 1rem 0 .35rem; }
.gb-editor textarea, .gb-bloque textarea { width: 100%; box-sizing: border-box; padding: .5rem; border: 1px solid #c4ccd6; border-radius: 4px; font: inherit; font-size: .9rem; line-height: 1.45; }
.gb-t input, .gb-t select { width: 100%; box-sizing: border-box; padding: .25rem .35rem; border: 1px solid #d5dbe3; border-radius: 3px; font: inherit; }
.gb-t td:first-child input { min-width: 14rem; }
.gb-t input:disabled, .gb-t select:disabled, .gb-editor textarea:disabled, .ag-form input:disabled { background: #f6f8fa; color: #222; border-color: #e3e7ec; }
.gb-x { background: none; border: 0; color: #b33; cursor: pointer; font-size: 1rem; }
.gb-mas { margin-top: .35rem; }
.gb-estado { display: inline-block; font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 10px; }
.gb-borrador { background: #fff3cd; color: #7a5b00; } .gb-aprobada { background: #dff3e4; color: #1e6b34; } .gb-anulada { background: #f8d7da; color: #8a1c1c; }
p.gb-anulada { padding: .4rem .6rem; border-radius: 4px; }
tr.gb-vencido td { background: #fff4f4; } tr.gb-anulado td { color: #999; text-decoration: line-through; }
.gb-bloque { display: block; font-size: .82rem; font-weight: 600; color: #3a4757; margin: .4rem 0; }
.gb-personas { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0 .6rem; }
.gb-personas button { background: #eef3fa; border: 1px solid #c9d6e8; border-radius: 4px; padding: .3rem .6rem; cursor: pointer; font: inherit; font-size: .85rem; }
.gb-personas small { color: #6b7a8c; }

/* ---------- Auditoría de Usuarios y buscadores más anchos ---------- */
.aud-filtros { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; background: #f1f3f5; border: 1px solid #d5dbe1; border-radius: 6px; padding: .8rem 1rem; margin-bottom: 1rem; }
.aud-filtros label { display: flex; flex-direction: column; gap: .2rem; font-size: .82rem; font-weight: 600; color: #3a4757; }
.aud-filtros input, .aud-filtros select { padding: .4rem .5rem; border: 1px solid #c4ccd6; border-radius: 4px; font: inherit; font-weight: 400; min-width: 10rem; }
.aud-filtros .aud-ancho { flex: 1 1 22rem; } .aud-filtros .aud-ancho input { width: 100%; box-sizing: border-box; }
.aud-botones { display: flex; gap: .5rem; }
.aud-tabla td { vertical-align: top; font-size: .88rem; } .aud-nw { white-space: nowrap; }
tr.aud-alerta td { background: #fff6f5; }
.hs-filtros { min-width: min(640px, 100%); }
.hs-filtros input, .hs-filtros select { padding: .45rem .6rem; border: 1px solid #c4ccd6; border-radius: 4px; font: inherit; box-sizing: border-box; width: 100%; min-width: 26rem; }
@media (max-width: 720px) { .hs-filtros input, .hs-filtros select { min-width: 0; } }

/* ---------- Orientación Escolar ---------- */
.or-badge[hidden] { display: none; }
.or-badge { display: inline-block; min-width: 1.2rem; padding: 0 .35rem; border-radius: 9px; background: #c0392b; color: #fff; font-size: .72rem; line-height: 1.2rem; text-align: center; }
.or-estado { display: inline-block; font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 10px; }
.or-abierto { background: #fde2e1; color: #9b1c1c; } .or-seguimiento { background: #fff3cd; color: #7a5b00; } .or-remitido { background: #e0ecff; color: #1d4ed8; } .or-cerrado { background: #e5e7eb; color: #374151; }
.or-ficha { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .9rem; background: #f6f8fb; border-radius: 6px; padding: .5rem .7rem; }
.or-form { border-top: 2px solid #1f3b63; margin-top: 1rem; padding-top: .4rem; }
.or-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem .8rem; margin-bottom: .4rem; }
.or-c { display: flex; flex-direction: column; gap: .2rem; font-size: .82rem; font-weight: 600; color: #3a4757; }
.or-c input, .or-c select, .or-c textarea { padding: .35rem .45rem; border: 1px solid #c4ccd6; border-radius: 4px; font: inherit; font-weight: 400; width: 100%; box-sizing: border-box; }
.or-full { grid-column: 1 / -1; }
.or-checks { border: 1px solid #d5dbe3; border-radius: 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .25rem .8rem; font-size: .88rem; }
.or-checks legend { font-weight: 600; font-size: .82rem; color: #3a4757; }
.or-tabla input { width: 100%; box-sizing: border-box; padding: .25rem .35rem; border: 1px solid #d5dbe3; border-radius: 3px; font: inherit; }
.or-et { display: block; font-size: .82rem; color: #3a4757; margin: .3rem 0; }
.or-sec { background: #eef3fa; color: #1f3b63; padding: .3rem .6rem; border-radius: 4px; margin: .8rem 0 .4rem; font-size: .88rem; }
.or-rem { border: 1px solid #dde3ea; border-radius: 6px; padding: .6rem .8rem; margin-bottom: .6rem; background: #fff; } .or-rem.pend { border-left: 4px solid #c0392b; }
.or-rem p { margin: .3rem 0; font-size: .9rem; }
.or-infs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.or-inf h4 { margin: .2rem 0 .4rem; color: #1f3b63; }
@media (max-width: 720px) { .or-grid { grid-template-columns: 1fr 1fr; } .or-grid > label[style] { grid-column: span 2 !important; } }

/* ---------- Ayuda (instructivos y videos) ---------- */
.ay-grupo { color: #1f3b63; font-size: 1.05rem; margin: 1.2rem 0 .5rem; border-bottom: 2px solid #f5b301; padding-bottom: .2rem; }
.ay-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.ay-card { background: #fff; border: 1px solid #dde3ea; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.ay-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border-bottom: 1px solid #e5e9ef; background: #f1f3f5; }
.ay-body { padding: .7rem .9rem .9rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.ay-body h4 { margin: 0; color: #1f3b63; font-size: 1rem; } .ay-body p { margin: 0; font-size: .88rem; color: #4a5868; flex: 1; }
.ay-btns { display: flex; gap: .5rem; flex-wrap: wrap; } .ay-btns a { text-decoration: none; display: inline-flex; align-items: center; }
.ay-btns > * { margin: 0 !important; flex: 1 1 auto; justify-content: center; }
.ay-modal { position: fixed; inset: 0; background: rgba(10, 20, 35, .75); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ay-modal[hidden] { display: none; }
.ay-modal-c { background: #0f2a47; border-radius: 10px; width: min(1100px, 100%); padding: .5rem; }
.ay-modal-t { display: flex; justify-content: space-between; align-items: center; color: #fff; padding: .2rem .4rem .5rem; }
.ay-modal-t button { background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; }
.ay-modal video { width: 100%; max-height: 78vh; background: #000; border-radius: 6px; display: block; }

/* ---- Planilla Excel de notas ---- */
.barra-imprimir { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.nx-subir { cursor: pointer; display: inline-flex; align-items: center; }
.nx-panel { border: 1px solid #93c5fd; background: #eff6ff; border-radius: 8px; padding: .8rem 1rem; margin: .6rem 0; }
.nx-panel ul { margin: .4rem 0 .6rem 1.1rem; padding: 0; } .nx-panel li { margin: .2rem 0; }
.nx-panel.nx-error { border-color: #fca5a5; background: #fef2f2; }
.nx-intro { border: 1px solid #dbe3ee; background: #f8fafc; border-radius: 8px; padding: .7rem 1rem; margin-bottom: 1rem; font-size: .92rem; }
.nx-intro ol { margin: .4rem 0 0 1.2rem; padding: 0; } .nx-intro li { margin: .15rem 0; }

/* ---- Permisos e incapacidades ---- */
.pe-intro { border-left: 4px solid #f5b301; background: #fffbeb; padding: .6rem .9rem; border-radius: 6px; margin-bottom: 1rem; font-size: .92rem; line-height: 1.45; }
.card-seccion { background: #fff; border: 1px solid #dde3ea; border-radius: 10px; padding: .9rem 1rem; margin-bottom: 1rem; }
.card-seccion h3 { margin: 0 0 .7rem; color: #1f3b63; font-size: 1.05rem; } .card-seccion h4 { margin: 1rem 0 .4rem; color: #1f3b63; }
.card-seccion label { display: block; font-size: .85rem; font-weight: 600; margin: .6rem 0 .2rem; color: #334155; }
.card-seccion textarea, .card-seccion input[type="file"] { width: 100%; box-sizing: border-box; }
.pe-check { display: flex !important; align-items: center; gap: .4rem; font-weight: 500 !important; } .pe-check input { width: auto; }
.pe-estado { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pe-pendiente, .pe-registrada { background: #fef3c7; color: #92400e; } .pe-autorizado, .pe-radicada { background: #dcfce7; color: #166534; }
.pe-negado, .pe-devuelta { background: #fee2e2; color: #991b1b; } .pe-anulado, .pe-anulada { background: #e5e7eb; color: #4b5563; }
.pe-alerta { color: #b91c1c; } tr.pe-urgente td { background: #fff7ed; }
.pe-det-cab { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; } .pe-det-cab h3 { margin: 0; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.pe-dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: .35rem .9rem; margin: .8rem 0; font-size: .92rem; }
.pe-dl dt { font-weight: 700; color: #475569; } .pe-dl dd { margin: 0; }
@media (max-width: 640px) { .pe-dl { grid-template-columns: 1fr; } .pe-dl dd { margin-bottom: .4rem; } }
.pe-adj { display: inline-block; margin: 0 .5rem .3rem 0; } .pe-subir { cursor: pointer; margin-left: .3rem; }
.pe-resolver { border-top: 1px dashed #cbd5e1; margin-top: .8rem; padding-top: .4rem; }
.pe-det input[data-cubre] { min-width: 220px; }
.pe-editar { margin-top: .8rem; } .pe-editar summary { cursor: pointer; font-weight: 600; color: #1f3b63; }
.btn-danger { background: #b91c1c; color: #fff; border: 0; border-radius: 6px; padding: .5rem 1rem; cursor: pointer; font: inherit; font-weight: 600; }
.btn-danger:hover { background: #991b1b; }
.pe-resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; margin: .8rem 0; }
.pe-resumen div { background: #fff; border: 1px solid #dde3ea; border-radius: 8px; padding: .5rem .8rem; } .pe-resumen b { display: block; font-size: 1.4rem; color: #1f3b63; }
.pe-resumen span { font-size: .82rem; color: #64748b; } .pe-resumen .pe-r-alerta { border-color: #f59e0b; background: #fffbeb; }
.pe-acc { white-space: nowrap; }
/* campana */
.pe-campana { position: relative; margin-right: .4rem; }
.pe-campana-btn { position: relative; background: transparent; border: 0; color: #fff; cursor: pointer; padding: .35rem; border-radius: 8px; display: flex; }
.pe-campana-btn:hover { background: rgba(255, 255, 255, .12); }
.pe-badge { position: absolute; top: -2px; right: -4px; background: #ef4444; color: #fff; font-size: .68rem; font-weight: 700; border-radius: 999px; padding: 0 .32rem; min-width: 1rem; text-align: center; line-height: 1.1rem; }
.pe-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, 92vw); max-height: 70vh; overflow: auto; background: #fff; color: #13233a; border-radius: 10px; box-shadow: 0 12px 30px rgba(15, 42, 71, .25); z-index: 600; }
.pe-panel-cab { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; border-bottom: 1px solid #e5e9ef; position: sticky; top: 0; background: #fff; }
.pe-todas { background: none; border: 0; color: #1d4ed8; cursor: pointer; font-size: .8rem; }
.pe-n { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #f1f5f9; padding: .55rem .8rem; cursor: pointer; font: inherit; color: inherit; }
.pe-n:hover { background: #f8fafc; } .pe-n b { display: block; font-size: .88rem; } .pe-n span { display: block; font-size: .82rem; color: #475569; margin-top: .1rem; }
.pe-n small { color: #94a3b8; font-size: .74rem; } .pe-n-nueva { background: #eff6ff; } .pe-n-nueva b::before { content: '● '; color: #2563eb; }
.pe-vacio { padding: 1rem; color: #64748b; margin: 0; }
/* botones con clase dentro de .dialog-acciones: conservan su color (la regla general deja transparentes los de type="button") */
.dialog-acciones button.btn-primary[type="button"] { background: var(--azul); color: #fff; border: none; }
.dialog-acciones button.btn-primary[type="button"]:hover { background: var(--azul-claro); }
.dialog-acciones button.btn-danger[type="button"] { background: #b91c1c; color: #fff; border: none; }
.dialog-acciones button.btn-secondary[type="button"] { background: #fff; }
.card-seccion label.pe-subir { display: inline-flex; width: auto; margin: .2rem 0 0 .3rem; font-weight: 500; }
/* Usuarios: revisar nombres y apellidos */
.un-panel { border: 1px solid #dbe3ee; background: #fff; border-radius: 10px; padding: .8rem 1rem; margin: .8rem 0 1rem; }
.un-cab { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: .6rem; }
.un-acc { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.un-panel td input.un-n, .un-panel td input.un-a { min-width: 170px; }
.un-actual { color: #64748b; font-size: .85rem; }
.un-acc select { width: auto; min-width: 180px; }
/* ---- Caja: medio de pago, salidas, libro y arqueo ---- */
.rc-medios { border: 1px solid #d5dbe1; border-radius: 6px; padding: .4rem .8rem .6rem; margin: .6rem 0; max-width: 1000px; background: #fff; }
.rc-medios legend { font-weight: 700; padding: 0 .3rem; }
.rc-medios > label { display: inline-flex; align-items: center; gap: .35rem; margin-right: 1.2rem; font-weight: 600; cursor: pointer; }
.rc-medios > label input { width: auto; }
.rc-nequi { margin-top: .5rem; border-top: 1px dashed #cbd5e1; padding-top: .4rem; }
.rc-intro { border-left: 4px solid #f5b301; background: #fffbeb; padding: .6rem .9rem; border-radius: 6px; margin-bottom: 1rem; font-size: .92rem; line-height: 1.45; max-width: 1050px; }
.rc-saldos { display: flex; gap: .8rem; flex-wrap: wrap; margin: .4rem 0 .8rem; }
.rc-saldos div { background: #fff; border: 1px solid #dde3ea; border-radius: 8px; padding: .45rem .9rem; min-width: 180px; }
.rc-saldos span { display: block; font-size: .8rem; color: #64748b; } .rc-saldos b { font-size: 1.25rem; color: #1f3b63; }
.rc-eg-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: .2rem 1rem; margin-bottom: .5rem; }
.rc-eg-form .nn-fila { grid-template-columns: 10rem 1fr; }
.rc-adj { cursor: pointer; color: #1d4ed8; text-decoration: underline; display: inline !important; font-weight: 400 !important; margin: 0 !important; }
.rc-medios-tot { margin: .4rem 0; }
.rc-cuadro { max-width: 700px; } .rc-cuadro td.d { text-align: right; }
.rc-dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; max-width: 1050px; }
.rc-dos td.d, .rc-libro td.d { text-align: right; white-space: nowrap; }
.rc-libro td:first-child { white-space: nowrap; }

/* ---------- Seguimiento a Inasistencias ---------- */
.ina-dias { display: inline-block; min-width: 2rem; text-align: center; padding: .1rem .45rem; border-radius: 999px; font-weight: 700; }
.ina-medio { background: #fef3c7; color: #92400e; } .ina-alto { background: #fed7aa; color: #9a3412; } .ina-sed { background: #fecaca; color: #991b1b; }
.ina-alertas { margin: 1rem 0; } .ina-alertas summary { cursor: pointer; font-weight: 600; color: #1f3b63; }
.ina-lista-al { margin: .4rem 0 0 1rem; font-size: .9rem; line-height: 1.6; }
.ina-link { background: none; border: 0; padding: 0; color: #1d4ed8; text-decoration: underline; cursor: pointer; font: inherit; }
.ina-ficha { margin-top: 1.2rem; border: 1px solid #cbd5e1; border-radius: 10px; padding: 1rem; background: #fff; }
.ina-ficha h4 { margin: 1rem 0 .4rem; color: #1f3b63; }
.ina-ficha-cab { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; } .ina-ficha-cab h3 { margin: 0 0 .2rem; } .ina-ficha-cab p { margin: .1rem 0; font-size: .9rem; }
.ina-meses { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; }
.ina-mes { display: flex; flex-direction: column; align-items: center; min-width: 2.6rem; font-size: .78rem; color: #475569; }
.ina-mes-sel { font-weight: 700; color: #1f3b63; }
.ina-barra { height: 70px; width: 1.4rem; background: #f1f5f9; border-radius: 4px; display: flex; flex-direction: column-reverse; overflow: hidden; margin: .2rem 0; }
.ina-b-inj { background: #dc2626; } .ina-b-jus { background: #60a5fa; }
.ina-sw { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; vertical-align: middle; margin: 0 .2rem 0 .6rem; }
.ina-tipo { font-size: .78rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; white-space: nowrap; }
.ina-t-injustificado { background: #fecaca; color: #991b1b; } .ina-t-justificado { background: #dbeafe; color: #1e40af; } .ina-t-parcial { background: #fef3c7; color: #92400e; } .ina-t-otro { background: #e2e8f0; color: #334155; }
.ina-form-accion { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: .8rem; margin-bottom: .8rem; }
.ina-form-accion textarea, .ina-form-accion input[name=resultado] { width: 100%; box-sizing: border-box; }
.ina-timeline { list-style: none; padding: 0; margin: 0; } .ina-timeline li { border-left: 3px solid #1f3b63; padding: .3rem .8rem; margin-bottom: .6rem; font-size: .9rem; }
.ina-timeline p { margin: .2rem 0; } .ina-anulada { opacity: .55; text-decoration: line-through; border-left-color: #94a3b8 !important; }
.ina-config { max-width: 760px; } .ina-config select { width: 100%; }

/* ---------- Módulos contratados ---------- */
.lc-estado { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; padding: .7rem 1rem; border-radius: 8px; border: 1px solid #cbd5e1; background: #fff; margin: .8rem 0; }
.lc-estado b { font-size: 1.05rem; } .lc-licencia, .lc-piloto { border-color: #86efac; background: #f0fdf4; }
.lc-vencida, .lc-invalida, .lc-sin_archivo { border-color: #fca5a5; background: #fef2f2; }
.lc-paquetes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .7rem; margin: .8rem 0 1.2rem; }
.lc-paq { border: 1px solid #cbd5e1; border-radius: 10px; padding: .7rem .9rem; background: #fff; } .lc-paq p { margin: .4rem 0 0; font-size: .88rem; line-height: 1.4; color: #334155; }
.lc-paq-cab { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; } .lc-paq-cab span { font-size: .78rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; }
.lc-on { border-left: 4px solid #16a34a; } .lc-on .lc-paq-cab span { background: #dcfce7; color: #166534; }
.lc-off { opacity: .7; border-left: 4px solid #94a3b8; } .lc-off .lc-paq-cab span { background: #e2e8f0; color: #475569; }
.lc-filtro { max-width: 360px; margin: .4rem 0; }
.lc-opciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .6rem; max-height: 60vh; overflow: auto; padding: .2rem; }
.lc-opciones fieldset { border: 1px solid #e2e8f0; border-radius: 8px; padding: .4rem .7rem; background: #fff; } .lc-opciones legend { font-weight: 700; color: #1f3b63; font-size: .9rem; }
.lc-opciones label { display: block; font-size: .88rem; padding: .1rem 0; } .lc-fuera { color: #94a3b8; } .lc-fuera small { font-size: .72rem; }

/* Aviso breve cuando se escribe una letra en una celda de nota */
.input-rechazo { outline: 2px solid #dc2626 !important; outline-offset: 1px; }
