/*
 * Tema visual de SiGES360 (v0.49): se carga DESPUÉS de styles.css y solo cambia la apariencia de la aplicación.
 * No toca las hojas de los reportes ni la impresión (boletines, actas, planillas impresas).
 *
 * Tinta   #0F2A47  textos fuertes, barra superior (jornada diurna)
 * Índigo  #34287A  barra superior y login de la jornada nocturna
 * Mar     #1D5FA8  botones principales, enlaces, foco
 * Papel   #F2F5F8  fondo de la aplicación
 * Mango   #F0A202  un solo acento: la opción abierta del menú y la marca
 */
:root {
  --tinta: #0F2A47;
  --mar: #1D5FA8;
  --mar-oscuro: #164C87;
  --mar-suave: #E7EFF8;
  --papel: #F2F5F8;
  --linea: #D9E1EA;
  --linea-suave: #E8EDF2;
  --gris-texto: #5B6B7D;
  --mango: #F0A202;
  --verde: #1F7A4D;
  --verde-suave: #E3F3EA;
  --rojo: #B3261E;
  --rojo-suave: #FBEAE8;
  --indigo: #34287A;
  --radio: 8px;
  --cromo: var(--tinta);

  /* compatibilidad con los nombres que ya usa styles.css */
  --azul: var(--tinta);
  --azul-claro: var(--mar);
  --gris-bg: var(--papel);
  --borde: var(--linea);
  --texto: #18222E;

  font-family: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 18px; /* letra grande por defecto (v0.68); cada usuario la ajusta con A− / A+ */
  line-height: 1.5;
}
body[data-jornada="nocturna"], .login-nocturna { --cromo: var(--indigo); }

body { background: var(--papel); color: var(--texto); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
.content table td, .content table th { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--mar) 45%, transparent); outline-offset: 2px; }

/* ---------------- Barra superior ---------------- */
.topbar {
  height: 56px; padding: 0 1.1rem; gap: .9rem;
  background: var(--cromo); color: #fff;
  box-shadow: inset 0 -3px 0 var(--mango);
}
.topbar .icon-btn { width: 36px; height: 36px; border-radius: var(--radio); display: grid; place-items: center; font-size: 1.15rem; }
.topbar .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.topbar .brand { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.topbar-escudo { height: 36px; width: 36px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; flex: none; }
.topbar .topbar-escudo + .brand-colegio { border-left: 0; padding-left: 0; }
.topbar .brand-colegio { font-size: .88rem; opacity: .78; padding-left: .9rem; border-left: 1px solid rgba(255, 255, 255, .28); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-jornada { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); font-weight: 700; letter-spacing: .01em; }
.topbar-user { display: flex; align-items: center; gap: .55rem; font-size: .9rem; opacity: 1; }
.topbar-user .avatar-ini {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--mango); color: var(--tinta); font-weight: 800; font-size: .8rem;
}
.topbar-user .usr-txt { display: flex; flex-direction: column; line-height: 1.15; }
.topbar-user .usr-txt small { opacity: .75; font-size: .76rem; }
.logout-btn { border-radius: var(--radio); padding: .4rem .85rem; font-weight: 700; font-size: .88rem; }
.logout-btn:hover { background: rgba(255, 255, 255, .12); }

/* ---------------- Menú lateral ---------------- */
.layout { min-height: calc(100vh - 56px); }
.sidebar {
  width: 268px; background: #fff; border-right: 1px solid var(--linea);
  position: sticky; top: 56px; height: calc(100vh - 56px); padding: .6rem .55rem 2rem;
}
.sidebar.collapsed { margin-left: -268px; }
.menu-leaf, .menu-group summary {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem .7rem; margin: 1px 0; border: 0; border-radius: var(--radio);
  color: var(--texto); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.menu-group summary { position: relative; }
.menu-group summary::after {
  content: ""; margin-left: auto; width: 7px; height: 7px; flex-shrink: 0;
  border-right: 2px solid #8A99A8; border-bottom: 2px solid #8A99A8; transform: rotate(-45deg); transition: transform .15s ease;
}
.menu-group[open] > summary::after { transform: rotate(45deg); }
.menu-group[open] > summary { color: var(--tinta); }
.menu-leaf:hover, .menu-group summary:hover { background: var(--papel); }
.menu-ico { width: 20px; height: 20px; flex-shrink: 0; color: #6A7B8D; }
.menu-group[open] > summary .menu-ico { color: var(--mar); }
.menu-item {
  position: relative; display: block; margin: 0 0 0 1.55rem; padding: .42rem .7rem .42rem .95rem;
  border-left: 1px solid var(--linea); border-radius: 0 var(--radio) var(--radio) 0;
  color: #3A4A5C; font-size: .9rem; line-height: 1.3;
}
.menu-item:hover { background: var(--papel); color: var(--tinta); }
.menu-group[open] > .menu-item:last-child { margin-bottom: .45rem; }
.menu-leaf.activo, .menu-item.activo { background: var(--mar-suave); color: var(--tinta); font-weight: 700; }
.menu-item.activo::before { content: ""; position: absolute; left: -2px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--mango); }
.menu-leaf.activo .menu-ico { color: var(--mar); }

@media (max-width: 720px) {
  .sidebar { position: fixed; top: 56px; height: auto; bottom: 0; box-shadow: 8px 0 24px rgba(15, 42, 71, .18); }
  .topbar .brand-colegio, .topbar-user .usr-txt { display: none; }
}

/* ---------------- Área de contenido ---------------- */
.content { padding: 1.6rem 2rem 3rem; min-width: 0; }
#contentTitle {
  margin: 0 0 1.2rem; font-size: 1.65rem; font-weight: 800; letter-spacing: -.015em; color: var(--tinta);
}
@media (max-width: 720px) { .content { padding: 1rem 1rem 2rem; } #contentTitle { font-size: 1.35rem; } }

/* Barra de herramientas de los módulos: el buscador ocupa el espacio libre */
.modulo-header { align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.modulo-header input[type="search"], .modulo-header input[type="text"] { flex: 1 1 260px; min-width: 200px; }
.modulo-header select { flex: 0 1 220px; }

/* ---------------- Campos ---------------- */
.content input[type="text"], .content input[type="search"], .content input[type="date"], .content input[type="email"],
.content input[type="number"], .content input[type="password"], .content input[type="tel"], .content select, .content textarea,
dialog input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]), dialog select, dialog textarea,
.modulo-header input, .modulo-header select {
  border: 1px solid #C9D3DE; border-radius: var(--radio); background-color: #fff; color: var(--texto);
  min-height: 38px; padding: .45rem .7rem; font-size: .93rem;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.content select, dialog select, .modulo-header select {
  appearance: none; -webkit-appearance: none; padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235B6B7D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center;
}
.content select[multiple], dialog select[multiple] { background-image: none; padding-right: .7rem; }
.content input:focus, .content select:focus, .content textarea:focus, dialog input:focus, dialog select:focus, dialog textarea:focus {
  outline: none; border-color: var(--mar); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mar) 20%, transparent);
}
.content input[disabled], .content select[disabled], .content input[readonly] { background-color: #F4F6F9; color: var(--gris-texto); }
.content input[type="checkbox"], .content input[type="radio"], dialog input[type="checkbox"], dialog input[type="radio"] { accent-color: var(--mar); width: 16px; height: 16px; }

/* ---------------- Botones ---------------- */
.btn-primary, .btn-secondary, .btn-verde, .content button.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 38px; padding: .45rem 1rem; border-radius: var(--radio); font-weight: 700; font-size: .9rem; line-height: 1.2;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.btn-primary { background: var(--mar); border: 1px solid var(--mar); color: #fff; }
.btn-primary:hover { background: var(--mar-oscuro); border-color: var(--mar-oscuro); }
.btn-secondary { background: #fff; border: 1px solid #C2CEDA; color: var(--tinta); }
.btn-secondary:hover { background: var(--papel); border-color: #9FB0C2; }
.btn-verde { background: var(--verde); border: 1px solid var(--verde); color: #fff; }
.btn-verde:hover { background: #18633E; }
.btn-primary:disabled, .btn-secondary:disabled, .btn-verde:disabled { opacity: .5; cursor: not-allowed; }
.btn-peligro:not(:disabled) { color: var(--rojo); border-color: #E3B4AF; }
.btn-peligro:not(:disabled):hover { background: var(--rojo-suave); }

/* Acciones dentro de tablas: texto sin subrayado, se marca al pasar */
.btn-link { color: var(--mar); text-decoration: none; font-weight: 600; font-size: .86rem; padding: .2rem .45rem; border-radius: 6px; }
.btn-link:hover { text-decoration: none; background: var(--mar-suave); }
.btn-link-peligro { color: var(--rojo); }
.btn-link-peligro:hover { background: var(--rojo-suave); }
.acciones-cell { gap: .1rem; }

/* ---------------- Tablas de pantalla ---------------- */
.tabla-datos { border: 1px solid var(--linea); border-radius: 10px; box-shadow: none; border-collapse: separate; border-spacing: 0; }
.tabla-datos th {
  background: #F5F8FB; color: var(--gris-texto); font-size: .8rem; font-weight: 700; letter-spacing: .01em;
  border-bottom: 1px solid var(--linea); padding: .7rem .9rem;
}
.tabla-datos td { border-bottom: 1px solid var(--linea-suave); padding: .62rem .9rem; vertical-align: middle; }
.tabla-datos tbody tr:last-child td { border-bottom: 0; }
.tabla-datos tbody tr:hover td { background: #F8FAFD; }
.tabla-datos code { background: var(--papel); border-radius: 5px; padding: .1rem .4rem; font-size: .84rem; color: var(--tinta); }

/* Tablas de configuración que imitaban el azul del sistema anterior */
.pa-tabla th, .cfg-orden th, .ce-tabla th, .ca-tabla th, .ca-tabla tfoot td, .ip-tabla th, .bj-tabla th, .nn-planilla th, .ce-lista header {
  background: #E9F0F7; color: var(--tinta); font-weight: 700; border-color: var(--linea);
}
.pa-tabla th, .ce-tabla th { padding: .55rem .6rem; font-size: .82rem; }
.pa-tabla td { padding: .5rem .6rem; }
.pa-tabla tbody tr:nth-child(even) { background: #FAFBFD; }

/* ---------------- Paneles ---------------- */
.pa-caja {
  border: 1px solid var(--linea); border-radius: 12px; background: #fff;
  padding: 1rem 1.25rem 1.2rem; margin: 0 0 1.25rem;
}
.pa-caja legend {
  float: left; width: 100%; padding: 0 0 .7rem; margin: 0;
  font-style: normal; font-weight: 800; font-size: 1rem; color: var(--tinta);
}
.pa-caja legend + * { clear: both; }
.pa-resaltado { background: none; color: var(--tinta) !important; font-style: normal; padding: 0 0 .7rem !important; }

/* ---------------- Estados y avisos ---------------- */
.badge-ok, .badge-off { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .18rem .6rem; font-size: .76rem; font-weight: 700; }
.badge-ok { background: var(--verde-suave); color: var(--verde); }
.badge-off { background: #EEF1F4; color: #5D6B79; }
.badge-ok::before, .badge-off::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.aviso { border-radius: var(--radio); }
.aviso-ok { background: var(--verde-suave); color: #155C39; border: 1px solid #BFE3CF; }
.aviso-error { background: var(--rojo-suave); color: #8C1D17; border: 1px solid #F0C4BF; }

/* ---------------- Diálogos ---------------- */
dialog { border-radius: 14px; box-shadow: 0 24px 60px rgba(15, 42, 71, .28); color: var(--texto); }
dialog::backdrop { background: rgba(15, 42, 71, .45); }
dialog h3 { font-size: 1.2rem; font-weight: 800; color: var(--tinta); }
dialog label { color: #34485C; font-size: .84rem; }
.dialog-acciones { gap: .6rem; padding-top: .8rem; }

/* ---------------- Inicio ---------------- */
.in-bienvenida { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin-bottom: 1.1rem; }
.in-bienvenida b { font-size: 1.15rem; color: var(--tinta); }
.in-bienvenida span { margin: 0; color: var(--gris-texto); }
.in-grid { gap: 1.1rem; }
.in-col { gap: 1.1rem; }
.in-card { border: 1px solid var(--linea); border-radius: 12px; box-shadow: none; }
.in-card > header { padding: .75rem 1rem; font-size: .95rem; font-weight: 800; color: var(--tinta); }
.in-azul { background: var(--cromo); color: #fff; }
.in-blanco { border-top: 0; border-bottom: 1px solid var(--linea-suave); }
.in-verde { background: #fff; border-bottom: 1px solid var(--linea-suave); box-shadow: inset 4px 0 0 var(--verde); }
.in-config { color: var(--mar); font-weight: 600; border-radius: 6px; padding: .2rem .45rem; }
.in-config:hover { background: var(--mar-suave); }
.in-fila { padding: .7rem 1rem; font-size: .9rem; border-color: var(--linea-suave); }
.in-fila b { color: var(--tinta); font-weight: 800; }
.in-doc { border-color: var(--linea-suave); border-radius: var(--radio); padding: .55rem .75rem; color: var(--tinta); }
.in-doc:hover { background: var(--papel); }

/* ---------------- Login ---------------- */
.login-body { background: var(--papel); display: block; min-height: 100vh; }
.login-split { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 1.05fr) minmax(360px, 1fr); }
.login-marca {
  position: relative; overflow: hidden; background: var(--cromo); color: #fff;
  padding: 3rem clamp(2rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.login-marca::after {
  /* arco de "360": la marca del sistema, dibujada con un solo trazo */
  content: ""; position: absolute; width: 560px; height: 560px; right: -210px; bottom: -230px; border-radius: 50%;
  border: 44px solid rgba(255, 255, 255, .06); border-top-color: var(--mango); transform: rotate(-28deg);
}
.login-marca .lm-escudo { display: block; width: 104px; height: 104px; object-fit: contain; background: #fff; border-radius: 50%; padding: 10px; margin-bottom: 1.4rem; position: relative; z-index: 1; }
.login-marca .lm-sistema { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.login-marca .lm-sistema span { font-weight: 400; opacity: .7; margin-left: .4rem; }
.login-marca h1 { margin: 0; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; max-width: 13ch; }
.login-marca .lm-lema { margin: 1rem 0 0; font-size: 1.05rem; opacity: .85; max-width: 34ch; }
.login-marca .lm-pie { font-size: .85rem; opacity: .7; position: relative; z-index: 1; }
.login-lado { display: grid; place-items: center; padding: 2rem 1.25rem; }
.login-card { width: 100%; max-width: 380px; background: transparent; box-shadow: none; padding: 0; text-align: left; border: 0; }
.login-nocturna .login-card { border-top: 0; }
.login-card h2 { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--tinta); letter-spacing: -.01em; }
.login-card .subtitle { margin: .3rem 0 1.4rem; color: var(--gris-texto); font-size: .95rem; }
.login-jornada {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .25rem; padding: .3rem .7rem; border-radius: 999px;
  background: var(--mar-suave); color: var(--tinta); font-size: .85rem;
}
.login-jornada::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mango); }
.login-nocturna .login-jornada { background: #ECEAF7; color: var(--indigo); }
.login-cambiar-jornada { display: block; margin: .35rem 0 1.4rem; color: var(--mar); font-weight: 600; }
.login-card form { gap: .3rem; }
.login-card label { color: #34485C; font-size: .86rem; margin-top: .6rem; }
.login-card input { min-height: 44px; border: 1px solid #C9D3DE; border-radius: var(--radio); font-size: 1rem; padding: .6rem .8rem; }
.login-card input:focus { outline: none; border-color: var(--mar); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mar) 20%, transparent); }
.login-card button { min-height: 46px; margin-top: 1.3rem; background: var(--mar); border-radius: var(--radio); font-size: 1rem; font-weight: 700; }
.login-card button:hover { background: var(--mar-oscuro); }
.login-nocturna .login-card button { background: var(--indigo); }
@media (max-width: 820px) {
  .login-split { grid-template-columns: 1fr; }
  .login-marca { padding: 1.6rem 1.25rem; gap: .6rem; }
  .login-marca h1 { font-size: 1.6rem; max-width: none; }
  .login-marca .lm-escudo { width: 64px; height: 64px; padding: 6px; margin-bottom: .7rem; }
  .login-marca .lm-lema, .login-marca .lm-pie { display: none; }
  .login-marca::after { width: 260px; height: 260px; right: -120px; bottom: -150px; border-width: 26px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

[hidden] { display: none !important; }
.in-card > header.in-azul { color: #fff; }
.aviso:empty { min-height: 0; margin: 0; padding: 0; border: 0; }
.acciones-cell { flex-wrap: nowrap; white-space: nowrap; }
.acciones-cell .btn-link { padding: .2rem .35rem; }
.sidebar.collapsed { box-shadow: none; }
@media (max-width: 720px) {
  .tabla-datos { display: block; overflow-x: auto; }
  .tabla-datos td, .tabla-datos th { white-space: nowrap; }
  .modulo-header > * { flex: 1 1 100%; }
  .modulo-header .btn-primary, .modulo-header .btn-secondary { flex: 1 1 auto; }
}
.tabla-datos td.acciones-cell { display: table-cell; }
@media (max-width: 720px) {
  .modulo-header select, .modulo-header input[type="search"], .modulo-header input[type="text"] { flex: 1 1 100%; }
  .topbar { gap: .5rem; padding: 0 .6rem; }
  .topbar .brand { font-size: 1.05rem; }
  .topbar-user { display: none; }
  .topbar-jornada { margin-left: 0; }
  .logout-btn { margin-left: auto; }
}
/* Campos dentro de tablas (planillas de notas, asistencia, etc.): compactos para no agrandar las filas */
.content table input:not([type="checkbox"]):not([type="radio"]), .content table select, .content table textarea {
  min-height: 0; padding: .22rem .4rem; border-radius: 5px; font-size: .88rem;
}
.content table select { padding-right: 1.5rem; background-position: right .4rem center; }

/* Promoción: aviso para crear el año siguiente */
.pe-crear-anio { max-width: 760px; margin: .4rem auto 1rem; background: #FFF8E6; border: 1px solid #F3D58A; border-left: 4px solid var(--mango); border-radius: 10px; padding: .9rem 1.1rem; font-size: .92rem; }
.pe-crear-campos { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; margin-top: .7rem; }
.pe-crear-campos label { display: flex; flex-direction: column; gap: .2rem; font-size: .82rem; font-weight: 600; }

/* ---------------- Comisión de Evaluación ---------------- */
.co-tabs { display: inline-flex; gap: .25rem; background: #E6ECF2; border-radius: 10px; padding: .25rem; margin-bottom: 1rem; }
.co-tab { border: 0; background: none; padding: .45rem 1rem; border-radius: 8px; font-weight: 700; color: var(--gris-texto); cursor: pointer; }
.co-tab.activo { background: #fff; color: var(--tinta); box-shadow: 0 1px 2px rgba(15, 42, 71, .12); }
.co-filtros { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1rem; }
.co-filtros label { display: flex; flex-direction: column; gap: .25rem; font-size: .84rem; font-weight: 700; color: #34485C; }
.co-filtros select { min-width: 180px; }
.co-curso-filtro select { min-width: 300px; }
.co-panel { background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.co-panel h4 { margin: 0 0 .7rem; color: var(--tinta); font-size: 1rem; }
.co-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .8rem; }
.co-cab h3 { margin: 0; font-size: 1.25rem; color: var(--tinta); }
.co-cab p { margin: .25rem 0 0; color: var(--gris-texto); }
.co-botones { display: flex; flex-wrap: wrap; gap: .5rem; }
.co-cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: .6rem; margin-top: 1rem; }
.co-cifra { border: 1px solid var(--linea-suave); border-radius: 10px; padding: .55rem .75rem; display: flex; flex-direction: column; }
.co-cifra b { font-size: 1.45rem; line-height: 1.1; color: var(--tinta); font-variant-numeric: tabular-nums; }
.co-cifra span { font-size: .8rem; color: var(--gris-texto); }
.co-c-ok b { color: var(--verde); } .co-c-no b { color: var(--rojo); } .co-c-pend b { color: #9A6100; } .co-c-ret b { color: #7A4A9C; }
.co-c-alerta { background: #FFF8E6; border-color: #F3D58A; } .co-c-alerta b { color: #9A6100; }
.co-tabla td { vertical-align: middle; }
.co-tabla .co-sel { min-width: 190px; }
.co-retirado .co-nombre { color: var(--rojo); text-decoration: line-through; }
.co-ret { color: #7A4A9C; font-weight: 700; }
.co-riesgo { display: inline-block; border-radius: 999px; padding: .15rem .6rem; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.co-bajo { background: var(--verde-suave); color: var(--verde); } .co-medio { background: #FFF1D6; color: #8A5600; }
.co-alto { background: var(--rojo-suave); color: var(--rojo); } .co-na { background: #EEF1F4; color: #8494A5; }
.co-est-promovido { border-color: #9ED3B5 !important; background-color: #F3FBF6 !important; }
.co-est-no { border-color: #EDB2AC !important; background-color: #FEF6F5 !important; }
.co-est-pendiente { border-color: #F0CF85 !important; background-color: #FFFBF0 !important; }
.co-sug { display: block; margin-top: .2rem; color: var(--gris-texto); font-size: .76rem; }
.co-ok { color: var(--verde); font-size: .8rem; font-weight: 700; min-width: 70px; }
.co-tabla-total td:not(:first-child), .co-tabla-total th:not(:first-child) { text-align: center; }
.co-tabla-total tfoot td { font-weight: 800; background: #F5F8FB; border-top: 1px solid var(--linea); }
.co-falta { color: #9A6100; font-weight: 800; }
.co-dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin-top: 1rem; }
.co-num { text-align: right; }
.co-consolidado > .co-cab { margin-bottom: .2rem; }
/* Acta impresa */
.co-acta { font-family: Arial, Helvetica, sans-serif; color: #000; font-size: 10pt; }
.co-acta-tit { text-align: center; font-size: 13pt; margin: .4cm 0 .1cm; }
.co-acta-sub { text-align: center; margin: 0 0 .3cm; }
.co-acta-tabla, .co-acta-resumen { width: 100%; border-collapse: collapse; }
.co-acta-tabla th, .co-acta-tabla td { border: 1px solid #555; padding: 3px 5px; text-align: left; }
.co-acta-tabla th { background: #E6E6E6; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.co-acta-tabla .co-retirado td { color: #555; text-decoration: line-through; }
.co-acta-resumen { margin-top: .3cm; } .co-acta-resumen td { border: 1px solid #555; padding: 4px 6px; text-align: center; }
.co-firmas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1cm; margin-top: 1.6cm; text-align: center; }
.co-firmas > div { border-top: 1px solid #000; padding-top: 4px; }
@media print {
  .co-consolidado .co-panel, .co-consolidado .tabla-datos { break-inside: avoid; }
  .co-consolidado .co-cifra { border-color: #999; }
}

/* Letra un poco más grande en toda la aplicación (v0.51) */
.menu-item { font-size: .95rem; }
.tabla-datos th { font-size: .84rem; }
.tabla-datos td { font-size: .95rem; }
.rc-ayuda { font-size: .9rem; }
@media (max-width: 720px) { :root { font-size: 17px; } }

/* ---------------- Planillas para imprimir ---------------- */
.pl-filtros { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem 1rem; margin-bottom: 1rem; }
.pl-filtros label { display: flex; flex-direction: column; gap: .25rem; font-size: .84rem; font-weight: 700; color: #34485C; }
.pl-filtros label.pl-check { flex-direction: row; align-items: center; gap: .4rem; font-weight: 600; padding-bottom: .55rem; }
.pl-filtros #plCurso { min-width: 200px; } .pl-filtros #plBlancos { width: 90px; }
.pl-hoja { background: #fff; border: 1px solid var(--linea); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; overflow-x: auto;
  font-family: Arial, Helvetica, sans-serif; color: #000; }
.pl-titulo { background: #DCE8F5; color: #12324F; text-align: center; font-weight: 700; font-size: 10.5pt; padding: 4px; margin: 6px 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pl-datos { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; font-size: 9.5pt; margin: 4px 0 6px; }
.pl-tabla { width: 100%; border-collapse: collapse; font-size: 9pt; }
.pl-tabla th, .pl-tabla td { border: 1px solid #777; padding: 0 3px; height: 19px; }
.pl-tabla th { background: #EEF2F6; font-size: 7.5pt; font-weight: 700; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pl-tabla .pl-n { width: 22px; text-align: center; }
.pl-tabla td.pl-nom { white-space: nowrap; font-size: 8.5pt; }
.pl-asistencia .pl-tabla th.pl-nom { min-width: 210px; }
.pl-asistencia .pl-tabla td:not(.pl-nom):not(.pl-n) { width: 15px; }
.pl-asistencia .pl-tabla th.pl-dia, .pl-asistencia .pl-tabla th.pl-nota { font-size: 6.5pt; padding: 0; }
.pl-informes .pl-tabla td, .pl-informes .pl-tabla th { height: 26px; }
.pl-informes .pl-tabla th:nth-child(3) { width: 34%; } .pl-informes .pl-tabla th:nth-child(4) { width: 22%; }
.pl-tabla tr.pl-ret td.pl-nom { color: #C00; text-decoration: line-through; }
.pl-tabla tr.pl-ret td { background: #FDECEC; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media print {
  .pl-hoja { border: 0; border-radius: 0; padding: 0; margin: 0; overflow: visible; break-after: page; }
  .pl-hoja:last-child { break-after: auto; }
}
.pl-informes .pl-tabla { table-layout: fixed; }
.pl-informes .pl-tabla th:nth-child(1) { width: 5%; } .pl-informes .pl-tabla th:nth-child(2) { width: 39%; }
.pl-informes .pl-tabla td.pl-nom { overflow: hidden; text-overflow: ellipsis; }
@media print { .pl-tabla { width: calc(100% - 2px); } .pl-titulo { margin-right: 2px; } }

/* Promoción de Grupos */
.pg-info { text-align: center; background: #F5F8FB; border: 1px solid var(--linea); border-radius: 10px; padding: .6rem; max-width: 560px; margin: 0 auto 1rem; }
.pg-tabla { max-width: 760px; margin: 0 auto; }
.pg-tabla select { min-width: 220px; }
.pg-nuevo { color: #9A6100; font-weight: 700; }

/* ---------------- Aula Virtual ---------------- */
.av-barra { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem 1rem; background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; }
.av-barra label { display: flex; flex-direction: column; gap: .25rem; font-size: .84rem; font-weight: 700; color: #34485C; }
.av-barra .av-carga select { min-width: 280px; }
.av-vistas { margin-left: auto; display: inline-flex; gap: .25rem; background: #E6ECF2; border-radius: 10px; padding: .25rem; }
.av-cabecera { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .8rem; margin-bottom: .8rem; }
.av-cabecera h3 { margin: 0; font-size: 1.45rem; color: var(--tinta); }
.av-cabecera p { margin: .2rem 0 0; color: var(--gris-texto); }
.av-acciones { display: flex; gap: .5rem; align-items: flex-start; }
.av-mas { position: relative; }
.av-mas > summary { list-style: none; cursor: pointer; }
.av-mas > summary::-webkit-details-marker { display: none; }
.av-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; background: #fff; border: 1px solid var(--linea); border-radius: 10px; box-shadow: 0 12px 30px rgba(15, 42, 71, .16); padding: .3rem; min-width: 230px; }
.av-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: .5rem .7rem; border-radius: 7px; cursor: pointer; font-weight: 600; color: var(--texto); }
.av-menu button:hover { background: var(--papel); }
.av-semanas { display: flex; gap: .3rem; overflow-x: auto; border-bottom: 1px solid var(--linea); margin-bottom: 1rem; }
.av-sem { background: none; border: 0; border-bottom: 3px solid transparent; padding: .55rem .9rem; font-weight: 700; color: var(--gris-texto); cursor: pointer; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-start; }
.av-sem small { font-weight: 600; font-size: .75rem; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.av-sem.activo { color: var(--tinta); border-bottom-color: var(--mango); }
.av-sem-nueva { color: var(--mar); }
.av-cuerpo { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.av-secciones { display: flex; flex-direction: column; gap: .4rem; }
.av-sec { display: flex; align-items: center; gap: .7rem; text-align: left; background: #fff; border: 1px solid var(--linea); border-radius: 10px; padding: .8rem .9rem; font-weight: 700; color: var(--tinta); cursor: pointer; }
.av-sec b { margin-left: auto; background: var(--mar-suave); color: var(--mar); border-radius: 999px; min-width: 1.6rem; text-align: center; font-size: .8rem; padding: .05rem .4rem; }
.av-sec b:empty { display: none; }
.av-sec-ico { font-size: 1.2rem; }
.av-sec:hover { border-color: #B7C6D6; }
.av-sec.activo { background: var(--cromo); border-color: var(--cromo); color: #fff; }
.av-sec.activo b { background: rgba(255, 255, 255, .2); color: #fff; }
.av-contenido { background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: 1rem 1.2rem; min-height: 260px; }
.av-contenido > h4 { margin: 0 0 .8rem; font-size: 1.15rem; color: var(--tinta); }
.av-vacio { text-align: center; color: var(--gris-texto); padding: 2rem 1rem; }
.av-item { border: 1px solid var(--linea-suave); border-radius: 10px; padding: .8rem 1rem; margin-bottom: .8rem; }
.av-item.av-oculto { background: #FAFBFC; border-style: dashed; }
.av-item header { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.av-item h5 { margin: 0; font-size: 1.05rem; color: var(--tinta); }
.av-chip { display: inline-block; border-radius: 999px; padding: .1rem .55rem; font-size: .74rem; font-weight: 700; background: #EEF1F4; color: #5D6B79; }
.av-chip-fecha { background: var(--mar-suave); color: var(--mar); } .av-chip-vencida { background: var(--rojo-suave); color: var(--rojo); }
.av-texto { margin: .5rem 0; line-height: 1.55; overflow-wrap: anywhere; }
.av-adjuntos { display: flex; flex-wrap: wrap; gap: .5rem; }
.av-adj { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--linea); border-radius: 8px; padding: .35rem .7rem; text-decoration: none; color: var(--tinta); font-weight: 600; font-size: .9rem; }
.av-adj:hover { background: var(--papel); }
.av-adj small { color: var(--gris-texto); font-weight: 400; }
.av-item footer { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .7rem; }
.av-ed { margin-left: auto; }
.av-mi-entrega { color: var(--verde); font-weight: 600; font-size: .9rem; }
.av-tarde { color: #9A6100; font-weight: 700; } .av-a-tiempo { color: var(--verde); font-weight: 700; } .av-sin { color: var(--gris-texto); }
.av-dialog { max-width: 900px; }
.av-dialog > div, .av-dialog > form { padding: 1.4rem 1.5rem; }
.av-form textarea { width: 100%; }
.av-foro-tema { background: var(--papel); border-radius: 10px; padding: .7rem .9rem; margin-bottom: .8rem; }
.av-mensajes { max-height: 48vh; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; margin-bottom: .6rem; }
.av-msj { border: 1px solid var(--linea-suave); border-radius: 10px; padding: .55rem .8rem; }
.av-msj p { margin: .3rem 0 0; }
.av-msj small { color: var(--gris-texto); }
.av-msj-doc { border-left: 4px solid var(--mango); }
.av-msj-mio { background: #F5F9FF; }
.av-plan textarea { min-width: 170px; width: 100%; }
.av-plan-ver td { vertical-align: top; font-size: .9rem; }
@media (max-width: 860px) { .av-cuerpo { grid-template-columns: 1fr; } .av-secciones { flex-direction: row; overflow-x: auto; } .av-sec { flex: 0 0 auto; } .av-vistas { margin-left: 0; } }
@media print { .av-plan textarea { border: 0 !important; resize: none; } }
/* Reporte Planeador */
.rp-modos { margin: 0; }
.rp-cifras { margin: 0 0 1rem; }
.rp-grupo { margin-bottom: 1.2rem; }
.rp-grupo h4 { background: #E9F7EE; border: 1px solid #BFE3CF; border-radius: 8px; padding: .5rem .8rem; margin: 0 0 .5rem; color: var(--tinta); }
.rp-grupo h4 small { color: var(--gris-texto); font-weight: 600; margin-left: .5rem; }
.rp-si { color: var(--verde); font-weight: 800; } .rp-no { color: var(--rojo); font-weight: 800; }
.uso-plantilla { margin-top: 1.4rem; }
.uso-anio { display: inline-flex; flex-direction: column; gap: .25rem; font-size: .84rem; font-weight: 700; margin-bottom: .7rem; }

/* ---------------- Criterios de convivencia ---------------- */
.cc-cat h4 { margin: 0 0 .5rem; color: var(--tinta); }
.cc-cat h4 small { font-weight: 400; color: var(--gris-texto); margin-left: .4rem; }
.cc-tabla details summary { cursor: pointer; }
.cc-tabla details[open] summary { font-weight: 700; margin-bottom: .3rem; }
.cc-est { margin: .2rem 0 .3rem 1.2rem; padding: 0; columns: 2 18rem; column-gap: 2rem; }
.cc-est li { break-inside: avoid; padding: .05rem 0; }
.cc-curso, .cc-per { font-size: .78rem; color: var(--gris-texto); }
.cc-barra { display: inline-block; vertical-align: middle; width: 64px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--mar) var(--p), var(--linea-suave) var(--p)); }
.cc-chip { display: inline-block; padding: .05rem .45rem; margin: .1rem 0; border-radius: 999px; background: var(--mar-suave); font-size: .78rem; white-space: nowrap; }
@media print { .cc-tabla details > summary { list-style: none; } .cc-barra { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ---------------- Exportar a SIMAT ---------------- */
.sm-intro { max-width: 70ch; color: var(--gris-texto); margin: 0 0 1rem; }
.sm-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; margin: 1rem 0 .6rem; }
.sm-resumen { margin: .4rem 0 1rem; }
.sm-resumen summary { cursor: pointer; font-weight: 700; color: var(--tinta); margin-bottom: .5rem; }
.sm-resumen table { max-width: 640px; }
.sm-tabla tr.sm-mal td { background: #FFF6E5; }
.sm-problema { color: #9A3412; font-size: .84rem; }
.sm-problema + .sm-problema { margin-top: .15rem; }
.sm-ok { color: #15803D; font-weight: 700; font-size: .84rem; }
.login-marca > div { position: relative; z-index: 1; }
.cc-tabla td, .cc-tabla td.pa-izq { white-space: normal; }
.cc-tabla td:nth-child(4) { white-space: nowrap; }
.cc-tabla td:last-child { min-width: 12rem; }
.sm-tabla td:nth-child(5) { min-width: 15rem; } /* Apellidos y nombres (la 4.ª es PER_ID) */
.sm-tabla td:last-child { min-width: 13rem; }

/* ---------------- Solicitudes de actualización de datos ---------------- */
.in-alerta-sol { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; margin: 0 0 1rem; padding: .75rem 1rem; border-radius: 10px;
  background: #FFF7E0; border: 1px solid #F3C969; color: #5B3B00; }
.in-alerta-sol span { flex: 1; min-width: 14rem; }
.pf-sol-ayuda { display: block; margin-top: .35rem; font-size: .88rem; opacity: .9; }
.pf-rechazo { margin-top: .4rem; font-size: .9rem; }
.pf-sol-msj { display: block; margin-top: .6rem; font-size: .88rem; color: inherit; }
.pf-sol-msj textarea { display: block; width: 100%; margin-top: .25rem; border: 1px solid #E5B9B9; border-radius: var(--radio); padding: .45rem .6rem; font: inherit; color: var(--tinta); background: #fff; resize: vertical; }
.pf-sol-btn { margin-top: .5rem; }
.pf-habilitada { flex: 1; min-width: 240px; background: #ECFDF3; color: #14532D; border: 1px solid #A7E3BF; border-radius: 8px; padding: .8rem 1rem; }
.pfe-pie .pf-habilitada { margin-bottom: .6rem; }
.sp-global { display: grid; gap: .5rem; padding: .9rem 1rem; border: 1px solid var(--linea-suave); border-radius: 10px; background: #fff; margin: .4rem 0 1.2rem; }
.sp-global small { color: var(--gris-texto); }
.sp-sw { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.sp-barra { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .5rem; }
.sp-barra h3 { margin: 0; color: var(--tinta); font-size: 1.1rem; }
.sp-tabla td { vertical-align: top; }
.sp-tabla td:nth-child(4) { min-width: 12rem; }
.sp-acc { min-width: 11rem; }
.sp-acc > * { margin: 0 .25rem .25rem 0; vertical-align: middle; }
.sp-dias { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; }
.sp-dias select { width: auto; min-width: 3.6rem; padding: .3rem .4rem; }
.sp-motivo { min-width: 14rem; padding: .4rem .55rem; border: 1px solid #C9D3DE; border-radius: var(--radio); }
.sp-estado { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.sp-pend { background: #FFF1D6; color: #8A5300; } .sp-hab { background: #DDF5E6; color: #166534; }
.sp-rech { background: #FDE2E2; color: #991B1B; } .sp-at { background: var(--linea-suave); color: var(--gris-texto); }
.sp-vacio { color: var(--gris-texto); font-style: italic; }
.sp-resp { margin-top: .3rem; font-size: .85rem; color: #991B1B; }

/* Tarjeta de solicitudes en el Inicio y número en el menú */
.in-card-sol { border-color: #F3C969; }
.in-amarillo { background: #FFF4D6; color: #5B3B00; border-bottom: 1px solid #F3C969; }
.in-amarillo .in-config { color: #7A4F00; }
.in-sol-num { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .4rem; margin-left: .35rem; border-radius: 999px; background: #D97706; color: #fff; font-size: .8rem; font-weight: 800; }
.in-sol-lista { padding: .5rem .6rem .8rem; }
.in-sol-item small { display: block; }
.in-sol-msj { font-style: italic; color: #5B3B00 !important; }
.in-sol-btn { margin: .6rem .2rem 0; }
.menu-insignia { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; margin-left: .4rem; border-radius: 999px;
  background: #D97706; color: #fff; font-size: .74rem; font-weight: 800; line-height: 1; vertical-align: middle; }
.menu-group > summary .menu-insignia { margin-left: auto; margin-right: .35rem; }

/* ---------------- Caracterización SIMPADE ---------------- */
.sp-tabs { flex-wrap: wrap; }
.sp-panel { margin-top: .4rem; }
.sp-estado-linea { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding: 1rem 1.2rem; border-radius: 12px; border: 1px solid; }
.sp-estado-linea.abierta { background: #ECFDF3; border-color: #A7E3BF; }
.sp-estado-linea.cerrada { background: #fff; border-color: var(--linea-suave); }
.sp-estado-linea p { margin: .35rem 0 0; color: var(--gris-texto); font-size: .92rem; max-width: 60ch; }
.sp-estado-linea b { color: var(--tinta); }
.sp-chip { display: inline-block; margin-right: .5rem; padding: .12rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 800; letter-spacing: .03em; }
.abierta .sp-chip { background: #16A34A; color: #fff; } .cerrada .sp-chip { background: #E5E7EB; color: #4B5563; }
.sp-linea-acc { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.sp-linea-acc label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--tinta); }
.sp-linea-acc select { width: auto; }
.sp-barra-total { height: 10px; border-radius: 6px; background: var(--linea-suave); margin: .9rem 0 1.2rem; overflow: hidden; }
.sp-barra-total span { display: block; height: 100%; background: var(--mar); border-radius: 6px; }
.sp-sub { margin: 0 0 .6rem; color: var(--tinta); }
.sp-cursos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.sp-curso { background: #fff; border: 1px solid var(--linea-suave); border-radius: 10px; padding: .5rem .7rem; }
.sp-curso-cab { display: flex; justify-content: space-between; gap: .4rem; font-size: .88rem; }
.sp-curso-cab span { color: var(--gris-texto); font-variant-numeric: tabular-nums; }
.sp-curso-barra { height: 6px; border-radius: 4px; background: var(--linea-suave); margin-top: .4rem; overflow: hidden; }
.sp-curso-barra span { display: block; height: 100%; background: var(--mar); }
.sp-curso.completo { border-color: #A7E3BF; } .sp-curso.completo .sp-curso-barra span { background: #16A34A; }
.sp-buscar { flex: 1; min-width: min(100%, 26rem); } .sp-buscar input { width: 100%; }
.sp-fichas td:last-child { text-align: right; white-space: nowrap; }
.sp-fmts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .8rem; }
.sp-fmt { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: .5rem .9rem; padding: 1rem; background: #fff; border: 1px solid var(--linea-suave); border-radius: 12px; }
.sp-fmt-num { grid-row: 1 / 3; width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center; background: var(--mar-suave); color: var(--mar); font-weight: 800; font-size: 1.1rem; }
.sp-fmt-txt b { display: block; color: var(--tinta); }
.sp-fmt-txt span { display: block; font-size: .88rem; color: var(--gris-texto); margin-top: .2rem; }
.sp-fmt button { justify-self: start; }
.sp-fmt-pend { opacity: .65; } .sp-fmt-pend .sp-fmt-num { background: #EEF0F3; color: var(--gris-texto); }
.sp-pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.sp-paso { display: flex; gap: .9rem; padding: 1rem; background: #fff; border: 1px solid var(--linea-suave); border-radius: 12px; }
.sp-paso > div { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; }
.sp-paso b { color: var(--tinta); } .sp-paso span { font-size: .88rem; color: var(--gris-texto); }
.sp-paso-n { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--tinta); color: #fff; font-weight: 800; }

.sp-ayuda { color: var(--gris-texto); margin: 0 0 .9rem; max-width: 80ch; }
.sp-paso .sim-imp { align-self: flex-start; }
.sp-paso > div > label.sim-imp { align-self: flex-start; margin: 0; width: auto; }
.sp-min { width: 3.6rem !important; display: inline-block; padding: .1rem .3rem !important; margin: 0 .15rem; text-align: center; min-height: 0 !important; }
.sp-f2-res { margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; background: #fff; border: 1px solid var(--linea-suave); color: var(--tinta); }
.sp-f2-aviso { margin-top: .4rem; color: #9A3412; font-size: .9rem; }

.pw-reglas { margin: .2rem 0 .8rem 1.1rem; padding: 0; font-size: .9rem; color: var(--gris-texto); }

/* ---------------- Copias de seguridad ---------------- */
.rs-estado { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 12px; border: 1px solid; margin-bottom: 1rem; }
.rs-estado.ok { background: #ECFDF3; border-color: #A7E3BF; } .rs-estado.ok .sp-chip { background: #16A34A; color: #fff; }
.rs-estado.mal { background: #FEF2F2; border-color: #F5C2C2; } .rs-estado.mal .sp-chip { background: #DC2626; color: #fff; }
.rs-estado.nada { background: #FFF7E0; border-color: #F3C969; } .rs-estado.nada .sp-chip { background: #D97706; color: #fff; }
.rs-error { margin-top: .4rem; color: #991B1B; font-size: .88rem; }
.rs-tabla { max-width: 720px; } .rs-tabla td:last-child { text-align: right; }
.check-linea { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; font-weight: 600; } .check-linea input { width: auto; }

/* Tamaño de letra (A− / A+) en la barra superior */
.tam-letra { margin-left: auto; display: flex; gap: 2px; background: rgba(255, 255, 255, .1); border-radius: var(--radio); padding: 2px; }
.tam-letra button { background: transparent; color: #fff; border: 0; border-radius: 6px; font: inherit; font-weight: 800; min-width: 40px; height: 34px; cursor: pointer; line-height: 1; }
.tam-letra button[data-letra="-1"] { font-size: .82rem; } .tam-letra button[data-letra="1"] { font-size: 1.08rem; }
.tam-letra button:hover, .tam-letra button:focus-visible { background: rgba(255, 255, 255, .2); outline: none; }
.tam-letra + .topbar-user { margin-left: .8rem; }
@media (max-width: 720px) { .tam-letra button { min-width: 34px; } }
/* Textos pequeños: un mínimo legible */
small, .ayuda-form, .rc-ayuda { font-size: max(.8rem, 13.5px); }

/* Ingreso con letra más grande (v0.70): jornada visible y botón claro para cambiarla */
.login-card { max-width: 460px; }
.login-card h2 { font-size: 2.1rem; }
.login-card .subtitle { font-size: 1.12rem; margin-bottom: 1.6rem; }
.login-card label { font-size: 1.05rem; font-weight: 700; margin-top: .9rem; }
.login-card input { min-height: 54px; font-size: 1.15rem; padding: .7rem .9rem; }
.login-card button { min-height: 56px; font-size: 1.2rem; }
.login-card .error-msg { font-size: 1.02rem; }
.login-jornada { font-size: 1.15rem; font-weight: 800; padding: .5rem 1.05rem; margin-bottom: .8rem; border: 2px solid color-mix(in srgb, var(--cromo) 35%, transparent); }
.login-jornada::before { width: 12px; height: 12px; }
.login-cambiar-jornada { display: flex; align-items: center; justify-content: center; gap: .55rem; margin: 1.1rem 0 0; min-height: 52px;
  border: 2px solid var(--cromo); border-radius: var(--radio); color: var(--cromo); background: #fff; font-size: 1.1rem; font-weight: 700; text-decoration: none; }
.login-cambiar-jornada::before { content: "⇄"; font-size: 1.35rem; line-height: 1; }
.login-cambiar-jornada:hover, .login-cambiar-jornada:focus-visible { background: color-mix(in srgb, var(--cromo) 10%, #fff); outline: none; }
.login-marca .lm-sistema { font-size: 1.25rem; }
.login-marca .lm-lema { font-size: 1.25rem; }
.login-marca .lm-pie { font-size: 1rem; }
@media (min-width: 821px) {
  .login-marca .lm-escudo { width: 124px; height: 124px; }
  .login-marca h1 { font-size: clamp(2.3rem, 4vw, 3.4rem); }
}

/* Datos mal escritos en los registros (v0.72) */
input.dato-invalido { border-color: #C62828 !important; background: #FFF5F5; }
.dato-ayuda { display: block; color: #B71C1C; font-size: .82rem; margin-top: .2rem; line-height: 1.3; }
.dato-ayuda-breve { color: #8D5A00; }

/* Registro Docentes (v0.72): barra que se acomoda, tabla con nombres en una sola línea y ventana de dos columnas */
.modulo-header { flex-wrap: wrap; }
.modulo-header .rd-archivo { flex: 1 1 240px; min-width: 200px; max-width: 360px; }
.rd-tabla .rd-nombre { min-width: 15rem; font-weight: 600; }
.rd-tabla .rd-correo { word-break: break-all; min-width: 12rem; }
.rd-tabla td { vertical-align: middle; }
dialog.rd-dialogo { width: min(640px, 94vw); }
.rd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .rd-grid { grid-template-columns: 1fr; } }

.ra-total { margin: .6rem 0 1rem; line-height: 1.5; }
