/* Unified Windows 8 inspired module directory. Loaded after legacy styles. */
:root {
  --module-grid-gap: 12px;
  --module-tile-block-size: 136px;
  --module-icon-box-size: 56px;
  --module-section-block-size: 72px;
  --module-tile-radius: 9px;
  --tile-blue: #2563eb;
  --tile-cyan: #0369a1;
  --tile-turquoise: #0f766e;
  --tile-yellow: #facc15;
  --tile-green: #15803d;
  --tile-purple: #7c3aed;
  --tile-orange: #c2410c;
  --tile-navy: #1e3a8a;
  --tile-slate: #475569;
  --action-edit: #2563eb;
  --action-save: #15803d;
  --action-assign: #0369a1;
  --action-configure: #facc15;
  --action-deactivate: #b45309;
  --action-delete: #dc2626;
  --action-report: #7c3aed;
}

body.is-authenticated #module-inicio,
body.is-authenticated #module-category-panel {
  min-width: 0;
  overflow-x: clip;
}

body.is-authenticated #module-inicio .modern-home-directory {
  display: grid !important;
  gap: 20px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 20px 0 !important;
}

.modern-tile-group,
.panel-categoria {
  --section-color: var(--tile-blue);
  --section-ink: #fff;
  min-width: 0;
}

.modern-tile-group {
  padding: 14px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: none;
}

.panel-categoria {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.section-tone-blue { --section-color: var(--tile-blue); }
.section-tone-cyan { --section-color: var(--tile-cyan); }
.section-tone-turquoise { --section-color: var(--tile-turquoise); }
.section-tone-green { --section-color: var(--tile-green); }
.section-tone-purple { --section-color: var(--tile-purple); }
.section-tone-navy { --section-color: var(--tile-navy); }
.section-tone-slate { --section-color: var(--tile-slate); }
.section-tone-yellow {
  --section-color: var(--tile-yellow);
  --section-ink: #302400;
}

body.is-authenticated #appMain .module-section-bar {
  width: 100% !important;
  min-width: 0 !important;
  height: var(--module-section-block-size) !important;
  min-height: var(--module-section-block-size) !important;
  max-height: var(--module-section-block-size) !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 11px !important;
  margin: 0 0 12px !important;
  padding: 9px 12px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--section-color) !important;
  background-image: none !important;
  color: var(--section-ink) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.is-authenticated #appMain .module-section-icon {
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 42px !important;
  border: 2px solid #475569 !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: var(--section-color) !important;
  font-size: 1.08rem !important;
  box-shadow: 0 2px 0 rgba(15, 23, 42, .14) !important;
}

body.is-authenticated #appMain .module-section-copy {
  min-width: 0;
  align-self: center;
}

body.is-authenticated #appMain .module-section-copy h1,
body.is-authenticated #appMain .module-section-copy h2 {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  color: var(--section-ink) !important;
  font-size: clamp(.9rem, 1.2vw, 1.08rem) !important;
  font-weight: 850 !important;
  line-height: 1.12 !important;
  text-align: left !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
}

body.is-authenticated #appMain .module-section-copy p,
body.is-authenticated #appMain .module-section-eyebrow {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 3px 0 0 !important;
  color: var(--section-ink) !important;
  font-size: .66rem !important;
  font-weight: 650 !important;
  line-height: 1.15 !important;
  text-align: left !important;
  white-space: normal !important;
  overflow: visible !important;
  opacity: .9;
}

body.is-authenticated #appMain .module-section-eyebrow {
  margin: 0 0 2px !important;
  font-size: .52rem !important;
  font-weight: 850 !important;
  letter-spacing: .08em;
}

body.is-authenticated #appMain .module-section-count {
  min-width: 30px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: var(--section-ink);
  text-align: center;
  font-size: .7rem;
  font-weight: 850;
}

body.is-authenticated #appMain :is(.modern-tile-grid, .grid-modulos) {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-auto-rows: var(--module-tile-block-size) !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: var(--module-grid-gap) !important;
  overflow: visible !important;
}

body.is-authenticated #appMain .school-module-tile {
  --module-color: var(--tile-blue);
  --module-ink: #fff;
  --sticker-primary: #2563eb;
  --sticker-secondary: #facc15;
  appearance: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: var(--module-icon-box-size) minmax(2.35em, auto) !important;
  place-content: center !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 10px !important;
  padding: 12px 10px !important;
  border: 0 !important;
  border-radius: var(--module-tile-radius) !important;
  background: var(--module-color) !important;
  background-image: none !important;
  color: var(--module-ink) !important;
  text-align: center !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .14) !important;
  cursor: pointer;
  overflow: hidden !important;
  transform: translateY(0);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease !important;
}

body.is-authenticated #appMain .school-module-tile.tile-blue {
  --module-color: var(--tile-blue);
  --sticker-primary: #2563eb;
  --sticker-secondary: #facc15;
}

body.is-authenticated #appMain .school-module-tile.tile-cyan {
  --module-color: var(--tile-cyan);
  --sticker-primary: #0891b2;
  --sticker-secondary: #fb7185;
}

body.is-authenticated #appMain .school-module-tile.tile-turquoise {
  --module-color: var(--tile-turquoise);
  --sticker-primary: #0f766e;
  --sticker-secondary: #f59e0b;
}

body.is-authenticated #appMain .school-module-tile.tile-yellow {
  --module-color: var(--tile-yellow);
  --module-ink: #302400;
  --sticker-primary: #b45309;
  --sticker-secondary: #2563eb;
}

body.is-authenticated #appMain .school-module-tile.tile-green {
  --module-color: var(--tile-green);
  --sticker-primary: #15803d;
  --sticker-secondary: #f97316;
}

body.is-authenticated #appMain .school-module-tile.tile-purple {
  --module-color: var(--tile-purple);
  --sticker-primary: #7c3aed;
  --sticker-secondary: #2dd4bf;
}

body.is-authenticated #appMain .school-module-tile.tile-orange {
  --module-color: var(--tile-orange);
  --sticker-primary: #c2410c;
  --sticker-secondary: #60a5fa;
}

body.is-authenticated #appMain .school-module-tile.tile-navy {
  --module-color: var(--tile-navy);
  --sticker-primary: #1e3a8a;
  --sticker-secondary: #22c55e;
}

body.is-authenticated #appMain .school-module-tile.tile-slate {
  --module-color: var(--tile-slate);
  --sticker-primary: #475569;
  --sticker-secondary: #38bdf8;
}

body.is-authenticated #appMain .school-module-icon {
  position: relative !important;
  isolation: isolate;
  width: var(--module-icon-box-size) !important;
  height: var(--module-icon-box-size) !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 2px solid #475569 !important;
  border-radius: 15px !important;
  background: #fff !important;
  color: var(--sticker-primary) !important;
  box-shadow: 0 2px 0 rgba(51, 65, 85, .18) !important;
  transform: rotate(-1deg);
  transition: transform .16s ease !important;
}

body.is-authenticated #appMain .school-module-icon > i {
  position: relative;
  z-index: 1;
  color: var(--sticker-primary) !important;
  font-size: 1.68rem !important;
  line-height: 1 !important;
  -webkit-text-stroke: .55px #334155;
  paint-order: stroke fill;
  text-shadow: none !important;
}

body.is-authenticated #appMain .school-module-icon::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  z-index: 2;
  width: 11px;
  height: 11px;
  border: 2px solid #475569;
  border-radius: 50%;
  background: var(--sticker-secondary);
}

body.is-authenticated #appMain .school-module-label {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 2.35em;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--module-ink) !important;
  font-size: clamp(.68rem, .76vw, .82rem) !important;
  font-weight: 850 !important;
  line-height: 1.17 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

body.is-authenticated #appMain .school-module-tile:hover {
  filter: brightness(1.04);
  transform: translateY(-2px) !important;
  box-shadow: 0 7px 16px rgba(15, 23, 42, .2) !important;
}

body.is-authenticated #appMain .school-module-tile:hover .school-module-icon {
  transform: translateY(-1px) rotate(1deg);
}

body.is-authenticated #appMain .school-module-tile:focus-visible {
  outline: 3px solid #0f172a !important;
  outline-offset: 3px;
}

/* Category navigation uses the same semantic palette as its section bar. */
body.is-authenticated #mainNav .categoria-menu {
  --category-nav-color: var(--tile-blue);
  border: 1px solid rgba(255, 255, 255, .32) !important;
  border-left: 4px solid rgba(255, 255, 255, .72) !important;
  background: var(--category-nav-color) !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.is-authenticated #mainNav .categoria-menu.category-tone-blue { --category-nav-color: var(--tile-blue); }
body.is-authenticated #mainNav .categoria-menu.category-tone-cyan { --category-nav-color: var(--tile-cyan); }
body.is-authenticated #mainNav .categoria-menu.category-tone-green { --category-nav-color: var(--tile-green); }
body.is-authenticated #mainNav .categoria-menu.category-tone-purple { --category-nav-color: var(--tile-purple); }
body.is-authenticated #mainNav .categoria-menu.category-tone-navy { --category-nav-color: var(--tile-navy); }
body.is-authenticated #mainNav .categoria-menu.category-tone-slate { --category-nav-color: var(--tile-slate); }

body.is-authenticated #mainNav .menu-principal-link {
  --category-nav-color: #102A5C;
}

body.is-authenticated #mainNav .categoria-menu i {
  color: currentColor !important;
}

body.is-authenticated #mainNav .categoria-menu:hover,
body.is-authenticated #mainNav .categoria-menu.activa {
  border-left-color: #facc15 !important;
  background: var(--category-nav-color) !important;
  color: #fff !important;
  filter: brightness(1.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32) !important;
  transform: none !important;
}

body.is-authenticated:not(.guardian-portal-only) .staff-back-to-menu,
body.is-authenticated:not(.report-print-body) #appMain .category-back {
  display: none !important;
}

/* Semantic actions retain one geometry; red remains exclusive to danger. */
body.is-authenticated #appMain button[class*="action-"] {
  min-height: 36px !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 7px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  white-space: normal !important;
  box-shadow: none !important;
}

body.is-authenticated #appMain button.icon-only-btn[class*="action-"] {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
}

body.is-authenticated #appMain button.action-edit { background: var(--action-edit) !important; color: #fff !important; }
body.is-authenticated #appMain button.action-save { background: var(--action-save) !important; color: #fff !important; }
body.is-authenticated #appMain button.action-assign { background: var(--action-assign) !important; color: #fff !important; }
body.is-authenticated #appMain button.action-configure { background: var(--action-configure) !important; color: #302400 !important; }
body.is-authenticated #appMain button.action-deactivate { background: var(--action-deactivate) !important; color: #fff !important; }
body.is-authenticated #appMain button.action-delete { background: var(--action-delete) !important; color: #fff !important; }
body.is-authenticated #appMain button.action-report { background: var(--action-report) !important; color: #fff !important; }

body.is-authenticated #appMain button[class*="action-"]:hover {
  filter: brightness(.94);
  transform: translateY(-1px);
}

/* Tables are the only intentionally horizontal surfaces. */
body.is-authenticated .table-wrap,
body.is-authenticated .achievement-table-scroll,
body.is-authenticated .usuarios-table-desktop {
  max-width: 100%;
  overflow-x: auto !important;
}

@media (max-width: 1499px) and (min-width: 1200px) {
  body.is-authenticated #appMain :is(.modern-tile-grid, .grid-modulos) {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1199px) and (min-width: 981px) {
  body.is-authenticated #appMain :is(.modern-tile-grid, .grid-modulos) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) and (min-width: 701px) {
  body.is-authenticated #appMain :is(.modern-tile-grid, .grid-modulos) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  :root {
    --module-grid-gap: 8px;
    --module-tile-block-size: 120px;
    --module-icon-box-size: 48px;
    --module-section-block-size: 68px;
  }

  .modern-tile-group { padding: 10px; }

  body.is-authenticated #appMain :is(.modern-tile-grid, .grid-modulos) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.is-authenticated #appMain .module-section-bar {
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    padding: 7px 9px !important;
  }

  body.is-authenticated #appMain .module-section-icon {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
    border-radius: 10px !important;
    font-size: .96rem !important;
  }

  body.is-authenticated #appMain .module-section-copy h1,
  body.is-authenticated #appMain .module-section-copy h2 {
    font-size: .82rem !important;
  }

  body.is-authenticated #appMain .module-section-copy p {
    font-size: .57rem !important;
  }

  body.is-authenticated #appMain .school-module-tile {
    gap: 8px !important;
    padding: 9px 6px !important;
  }

  body.is-authenticated #appMain .school-module-icon {
    border-radius: 13px !important;
  }

  body.is-authenticated #appMain .school-module-icon > i {
    font-size: 1.4rem !important;
  }

  body.is-authenticated #appMain .school-module-icon::after {
    right: 2px;
    bottom: 2px;
    width: 9px;
    height: 9px;
  }

  body.is-authenticated #appMain .school-module-label {
    font-size: clamp(.62rem, 3vw, .72rem) !important;
  }
}

@media (max-width: 380px) {
  :root {
    --module-grid-gap: 6px;
    --module-tile-block-size: 116px;
    --module-icon-box-size: 44px;
  }

  body.is-authenticated #appMain .school-module-label {
    font-size: .62rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-authenticated #appMain .school-module-tile,
  body.is-authenticated #appMain .school-module-icon,
  body.is-authenticated #appMain button[class*="action-"] {
    transition: none !important;
  }
}

/* Visual QA final pass 2026-08-05: fixes verified by Playwright screenshots. */
body.is-authenticated #module-libro label:has(input[name="dias"]) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 48px !important;
  width: auto !important;
  white-space: nowrap !important;
  overflow: visible !important;
}
body.is-authenticated #module-libro label:has(input[name="dias"]) span {
  min-width: 24px !important;
  overflow: visible !important;
}
body.is-authenticated #module-configuracion label.check-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow: visible !important;
}
body.is-authenticated #module-configuracion label.check-row input[type="checkbox"] {
  flex: 0 0 auto !important;
}
body.is-authenticated:not(.report-print-body) #module-informes .academic-grade-report {
  width: 100% !important;
  max-width: 816px !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
body.is-authenticated:not(.report-print-body) #module-informes .academic-report-table-scroll {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  overscroll-behavior-inline: contain !important;
  -webkit-overflow-scrolling: touch !important;
}
body.is-authenticated:not(.report-print-body) #module-informes .academic-report-table-scroll .academic-grade-table {
  max-width: none !important;
}
@media (max-width: 900px) {
  body.is-authenticated:not(.report-print-body) #module-informes .academic-grade-report {
    margin-inline: 0 !important;
    padding: clamp(12px, 2.6vw, 18px) !important;
  }
  body.is-authenticated:not(.report-print-body) #module-informes .report-massive-options,
  body.is-authenticated:not(.report-print-body) #module-informes .report-controls,
  body.is-authenticated:not(.report-print-body) #module-informes .report-options {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)) !important;
  }
  body.is-authenticated:not(.report-print-body) #module-informes #reportMassOutput {
    width: 100% !important;
    min-width: 0 !important;
  }
}
@media (max-width: 560px) {
  body.is-authenticated:not(.report-print-body) #module-informes .academic-grade-table.has-semester-average:not(.is-annual) {
    min-width: 560px !important;
  }
  body.is-authenticated:not(.report-print-body) #module-informes .academic-report-table-scroll {
    display: block !important;
  }
  body.is-authenticated #module-configuracion label.check-row {
    align-items: flex-start !important;
  }
}

/* Visual QA final correction: report filters must wrap before tablet overflow. */
body.is-authenticated #module-informes .mini-toolbar.report-filter-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr)) !important;
  align-items: end !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}
body.is-authenticated #module-informes .mini-toolbar.report-filter-grid > label {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
body.is-authenticated #module-informes .mini-toolbar.report-filter-grid :is(select,button) {
  width: 100% !important;
  max-width: 100% !important;
}
body.is-authenticated #module-informes .mini-toolbar.report-filter-grid .btn-soft {
  white-space: normal !important;
}
body.is-authenticated #module-configuracion .config-form label.check-row {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  justify-content: start !important;
  column-gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
body.is-authenticated #module-configuracion .config-form label.check-row input[type="checkbox"] {
  width: 18px !important;
  min-width: 18px !important;
  margin: 0 !important;
}

/* Panel de Gestion Escolar: layout compacto, uniforme y legible. */
body.is-authenticated:not(.guardian-portal-only) #module-inicio {
  --home-panel-gap: 12px;
  --home-card-radius: 10px;
  --home-card-border: #bdd8e8;
  --home-card-bg: #e7f6fb;
  --home-card-ink: #102a5c;
  --home-card-muted: #31527b;
  max-width: 1480px !important;
}
body.is-authenticated:not(.guardian-portal-only) #module-inicio .home-header {
  grid-template-columns: 72px minmax(0, 1fr) minmax(360px, .78fr) !important;
  gap: 16px !important;
  margin: 0 0 14px !important;
  padding: 16px !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 18px rgba(38, 80, 130, .08) !important;
}
body.is-authenticated:not(.guardian-portal-only) #module-inicio .home-header-brand { width: 72px !important; height: 72px !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .home-header-brand img { width: 72px !important; height: 72px !important; padding: 8px !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .home-kicker { margin-bottom: 3px !important; color: #087f87 !important; font-size: .7rem !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .home-header h1 { font-size: clamp(1.45rem, 2.3vw, 2.1rem) !important; letter-spacing: 0 !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .home-header p { margin: 6px 0 5px !important; font-size: .92rem !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .home-header-meta { gap: 6px 12px !important; color: #24496f !important; font-size: .78rem !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .home-header-summary { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .home-summary-item {
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 8px !important;
  min-height: 70px !important;
  padding: 10px !important;
  border-radius: var(--home-card-radius) !important;
  color: var(--home-card-ink) !important;
  font-size: .68rem !important;
  line-height: 1.22 !important;
}
body.is-authenticated:not(.guardian-portal-only) #module-inicio .home-summary-item i { width: 34px !important; height: 34px !important; font-size: .98rem !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .home-summary-item strong { font-size: 1.16rem !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .staff-dashboard-indicators { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important; gap: var(--home-panel-gap) !important; margin: 0 0 16px !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .staff-dashboard-indicators article { grid-template-columns: 26px minmax(0, 1fr) !important; padding: 10px 12px !important; border-radius: var(--home-card-radius) !important; min-height: auto !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .staff-dashboard-indicators article > i { font-size: 1rem !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .staff-dashboard-indicators span { font-size: .68rem !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .staff-dashboard-indicators strong { color: var(--home-card-ink) !important; font-size: .8rem !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .home-module-directory,
body.is-authenticated:not(.guardian-portal-only) #module-inicio .staff-module-directory { gap: 14px !important; margin-top: 0 !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .modern-tile-group { margin: 0 0 16px !important; padding: 0 !important; min-height: 0 !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .module-section-bar { gap: 8px !important; margin: 0 0 8px !important; min-height: auto !important; height: auto !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .module-section-icon { width: 26px !important; height: 26px !important; font-size: .78rem !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .module-section-copy h2 { color: var(--home-card-ink) !important; font-size: clamp(.98rem, 1.3vw, 1.18rem) !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .module-section-count { padding: 3px 8px !important; color: #075e67 !important; background: #d6f1f0 !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .modern-tile-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  grid-auto-rows: auto !important;
  gap: 12px !important;
  align-items: stretch !important;
}
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-tile.modern-module-tile {
  grid-template-columns: 38px minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 118px !important;
  height: auto !important;
  padding: 12px !important;
  border-radius: 12px !important;
  color: var(--home-card-ink) !important;
  background: var(--home-card-bg) !important;
  border-color: var(--home-card-border) !important;
  box-shadow: 0 5px 12px rgba(23, 81, 115, .07) !important;
}
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-tile.modern-module-tile:hover,
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-tile.modern-module-tile:focus-visible { background: #d8f0f7 !important; box-shadow: 0 9px 18px rgba(23, 81, 115, .13) !important; transform: translateY(-2px) !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-icon { width: 38px !important; height: 38px !important; border-radius: 10px !important; font-size: 1rem !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-icon > i { font-size: 1.08rem !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-content { gap: 4px !important; align-content: center !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-label { justify-content: flex-start !important; min-height: 0 !important; color: var(--home-card-ink) !important; font-size: .88rem !important; line-height: 1.2 !important; text-align: left !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-description { color: var(--home-card-muted) !important; font-size: .72rem !important; line-height: 1.28 !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-action { grid-column: 2 !important; margin-top: 0 !important; color: #087f87 !important; font-size: .72rem !important; line-height: 1.1 !important; }
@media (max-width: 1080px) {
  body.is-authenticated:not(.guardian-portal-only) #module-inicio .home-header { grid-template-columns: 64px minmax(0, 1fr) !important; }
  body.is-authenticated:not(.guardian-portal-only) #module-inicio .home-header-summary { grid-column: 1 / -1 !important; margin-left: 0 !important; }
}
@media (max-width: 760px) {
  body.is-authenticated:not(.guardian-portal-only) #module-inicio .home-header { gap: 12px !important; padding: 14px !important; }
  body.is-authenticated:not(.guardian-portal-only) #module-inicio .home-header-summary { grid-template-columns: 1fr !important; }
  body.is-authenticated:not(.guardian-portal-only) #module-inicio .home-summary-item { min-height: 58px !important; }
  body.is-authenticated:not(.guardian-portal-only) #module-inicio .staff-dashboard-indicators,
  body.is-authenticated:not(.guardian-portal-only) #module-inicio .modern-tile-grid { grid-template-columns: 1fr !important; }
  body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-tile.modern-module-tile { min-height: auto !important; padding: 12px !important; }
}

/* Panel de Gestion Escolar: override final contra reglas flex heredadas. */
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-tile.modern-module-tile {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) auto !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  justify-items: stretch !important;
  place-content: stretch !important;
  min-height: 82px !important;
  height: auto !important;
  padding: 10px 12px !important;
}
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-icon {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 34px !important;
  height: 34px !important;
}
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-icon > i { font-size: 1rem !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-content {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  display: grid !important;
  gap: 2px !important;
}
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-description {
  display: none !important;
}
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-label {
  display: block !important;
  align-self: center !important;
  font-size: .86rem !important;
  line-height: 1.18 !important;
  overflow: visible !important;
}
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-action {
  grid-column: 3 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  justify-self: end !important;
  white-space: nowrap !important;
  font-size: .7rem !important;
}
@media (max-width: 760px) {
  body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-tile.modern-module-tile {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    min-height: 76px !important;
  }
  body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-action {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    margin-top: 2px !important;
  }
}

/* KPI Cards globales: tarjetas horizontales, compactas y responsive. */
:root {
  --kpi-card-radius: 10px;
  --kpi-card-border: #bdd8e8;
  --kpi-card-bg: #ffffff;
  --kpi-card-icon-bg: #e5f4ff;
  --kpi-card-accent: #1479d6;
  --kpi-card-ink: #102a43;
  --kpi-card-muted: #4d6686;
}

.kpi-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.kpi-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  min-height: 68px;
  height: auto;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--kpi-card-border);
  border-radius: var(--kpi-card-radius);
  background: var(--kpi-card-bg);
  color: var(--kpi-card-ink);
  box-shadow: 0 6px 14px rgba(18, 63, 96, .07);
}

.kpi-card:has(> i) {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.kpi-card > i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  color: var(--kpi-card-accent);
  background: var(--kpi-card-icon-bg);
  font-size: 1rem;
  line-height: 1;
}

.kpi-card :is(span, small, em) {
  min-width: 0;
  color: var(--kpi-card-muted);
  font-size: .78rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.kpi-card :is(b, strong) {
  justify-self: end;
  color: var(--kpi-card-ink);
  font-size: clamp(1rem, 1.7vw, 1.45rem);
  font-weight: 900;
  line-height: 1.05;
  text-align: right;
  overflow-wrap: anywhere;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.attendance-kpis,.attendance-live-kpis,.achievement-kpis,.academic-report-summary,.academic-report-period-summary,.utp-kpi-grid,.utp-report-kpis,.utp-summary-kpis,.guardian-summary,.guardian-attendance-summary,.head-teacher-kpis,.permission-summary,.config-role-summary,.ficha-kpi-grid,.users-summary-grid,.institution-strip,.portal-metrics,.home-header-summary,.staff-dashboard-indicators,.subject-stats-row) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-block: 0 12px !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.attendance-kpis article,.attendance-live-kpis article,.achievement-kpi,.academic-report-summary article,.academic-report-period-summary article,.utp-kpi,.utp-report-kpis article,.utp-summary-kpis article,.guardian-summary article,.guardian-attendance-summary article,.head-teacher-kpis article,.permission-summary article,.config-role-summary,.ficha-kpi-grid article,.users-summary-grid article,.institution-strip article,.portal-metrics article,.home-summary-item,.staff-dashboard-indicators article,.subject-stats-row > *,.command-kpi) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 6px 12px !important;
  min-height: 68px !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 10px 14px !important;
  border-radius: var(--kpi-card-radius) !important;
  color: var(--kpi-card-ink) !important;
  background: var(--kpi-card-bg) !important;
  border: 1px solid var(--kpi-card-border) !important;
  box-shadow: 0 6px 14px rgba(18, 63, 96, .07) !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.attendance-kpis article,.attendance-live-kpis article,.academic-report-summary article,.academic-report-period-summary article,.utp-kpi,.utp-report-kpis article,.utp-summary-kpis article,.guardian-summary article,.guardian-attendance-summary article,.head-teacher-kpis article,.permission-summary article,.config-role-summary,.ficha-kpi-grid article,.users-summary-grid article,.institution-strip article,.portal-metrics article,.home-summary-item,.staff-dashboard-indicators article,.command-kpi):has(> i) {
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.attendance-kpis article,.attendance-live-kpis article,.academic-report-summary article,.academic-report-period-summary article,.utp-kpi,.utp-report-kpis article,.utp-summary-kpis article,.guardian-summary article,.guardian-attendance-summary article,.head-teacher-kpis article,.permission-summary article,.config-role-summary,.ficha-kpi-grid article,.users-summary-grid article,.institution-strip article,.portal-metrics article,.home-summary-item,.staff-dashboard-indicators article,.command-kpi) > i {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  flex-shrink: 0 !important;
  border-radius: 10px !important;
  color: var(--kpi-card-accent) !important;
  background: var(--kpi-card-icon-bg) !important;
  font-size: 1rem !important;
  line-height: 1 !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.attendance-kpis article,.attendance-live-kpis article,.achievement-kpi,.academic-report-summary article,.academic-report-period-summary article,.utp-kpi,.utp-report-kpis article,.utp-summary-kpis article,.guardian-summary article,.guardian-attendance-summary article,.head-teacher-kpis article,.permission-summary article,.config-role-summary,.ficha-kpi-grid article,.users-summary-grid article,.institution-strip article,.portal-metrics article,.home-summary-item,.staff-dashboard-indicators article,.subject-stats-row > *,.command-kpi) :is(span, small, em) {
  min-width: 0 !important;
  margin: 0 !important;
  color: var(--kpi-card-muted) !important;
  font-size: .78rem !important;
  font-style: normal !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.attendance-kpis article,.attendance-live-kpis article,.achievement-kpi,.academic-report-summary article,.academic-report-period-summary article,.utp-kpi,.utp-report-kpis article,.utp-summary-kpis article,.guardian-summary article,.guardian-attendance-summary article,.head-teacher-kpis article,.permission-summary article,.config-role-summary,.ficha-kpi-grid article,.users-summary-grid article,.institution-strip article,.portal-metrics article,.home-summary-item,.staff-dashboard-indicators article,.subject-stats-row > *,.command-kpi) :is(b, strong) {
  justify-self: end !important;
  margin: 0 !important;
  color: var(--kpi-card-ink) !important;
  font-size: clamp(1rem, 1.7vw, 1.45rem) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  text-align: right !important;
  overflow-wrap: anywhere !important;
}

body.is-authenticated:not(.report-print-body) #appMain .home-summary-item span {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 4px 10px !important;
  align-items: center !important;
}

body.is-authenticated:not(.report-print-body) #appMain .utp-kpi small,
body.is-authenticated:not(.report-print-body) #appMain .utp-kpi em {
  grid-column: 2 / -1 !important;
  justify-self: start !important;
  font-size: .72rem !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.utp-kpi.blue,.home-summary-blue,.command-kpi.blue) { --kpi-card-accent: #1479f6; --kpi-card-icon-bg: #e5f1ff; }
body.is-authenticated:not(.report-print-body) #appMain :is(.utp-kpi.cyan,.home-summary-turquoise) { --kpi-card-accent: #0891b2; --kpi-card-icon-bg: #e2f8fb; }
body.is-authenticated:not(.report-print-body) #appMain :is(.utp-kpi.green,.command-kpi.green,.achievement-kpi.level-a) { --kpi-card-accent: #168a4a; --kpi-card-icon-bg: #e5f7ed; }
body.is-authenticated:not(.report-print-body) #appMain :is(.utp-kpi.yellow,.command-kpi.yellow,.achievement-kpi.level-e) { --kpi-card-accent: #b77905; --kpi-card-icon-bg: #fff6db; }
body.is-authenticated:not(.report-print-body) #appMain :is(.utp-kpi.orange) { --kpi-card-accent: #c05621; --kpi-card-icon-bg: #fff1e7; }
body.is-authenticated:not(.report-print-body) #appMain :is(.utp-kpi.red,.command-kpi.red,.achievement-kpi.level-i,.head-teacher-kpis article.danger) { --kpi-card-accent: #c33f49; --kpi-card-icon-bg: #fff0f1; }

@media (max-width: 900px) {
  body.is-authenticated:not(.report-print-body) #appMain :is(.attendance-kpis,.attendance-live-kpis,.achievement-kpis,.academic-report-summary,.academic-report-period-summary,.utp-kpi-grid,.utp-report-kpis,.utp-summary-kpis,.guardian-summary,.guardian-attendance-summary,.head-teacher-kpis,.permission-summary,.config-role-summary,.ficha-kpi-grid,.users-summary-grid,.institution-strip,.portal-metrics,.home-header-summary,.staff-dashboard-indicators,.subject-stats-row) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  body.is-authenticated:not(.report-print-body) #appMain :is(.attendance-kpis,.attendance-live-kpis,.achievement-kpis,.academic-report-summary,.academic-report-period-summary,.utp-kpi-grid,.utp-report-kpis,.utp-summary-kpis,.guardian-summary,.guardian-attendance-summary,.head-teacher-kpis,.permission-summary,.config-role-summary,.ficha-kpi-grid,.users-summary-grid,.institution-strip,.portal-metrics,.home-header-summary,.staff-dashboard-indicators,.subject-stats-row) {
    grid-template-columns: 1fr !important;
  }
}

/* KPI Cards globales: correccion de estiramiento y subtitulos largos. */
body.is-authenticated:not(.report-print-body) #appMain :is(.attendance-kpis,.attendance-live-kpis,.achievement-kpis,.academic-report-summary,.academic-report-period-summary,.utp-kpi-grid,.utp-report-kpis,.utp-summary-kpis,.guardian-summary,.guardian-attendance-summary,.head-teacher-kpis,.permission-summary,.ficha-kpi-grid,.users-summary-grid,.institution-strip,.portal-metrics,.home-header-summary,.staff-dashboard-indicators,.subject-stats-row) {
  align-items: start !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.attendance-kpis article,.attendance-live-kpis article,.achievement-kpi,.academic-report-summary article,.academic-report-period-summary article,.utp-kpi,.utp-report-kpis article,.utp-summary-kpis article,.guardian-summary article,.guardian-attendance-summary article,.head-teacher-kpis article,.permission-summary article,.ficha-kpi-grid article,.users-summary-grid article,.institution-strip article,.portal-metrics article,.home-summary-item,.staff-dashboard-indicators article,.subject-stats-row > *,.command-kpi) {
  align-self: start !important;
  width: 100% !important;
  max-height: none !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.academic-report-summary article,.academic-report-period-summary article) {
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  align-content: center !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.academic-report-summary article,.academic-report-period-summary article) > span {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.academic-report-summary article,.academic-report-period-summary article) > b {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.academic-report-summary article,.academic-report-period-summary article) > small {
  grid-column: 1 !important;
  grid-row: 2 !important;
  margin-top: 2px !important;
  color: #667b95 !important;
  font-size: .68rem !important;
  font-weight: 750 !important;
  line-height: 1.15 !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-kpi {
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  align-content: center !important;
  min-height: 76px !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-kpi > span {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-kpi > b {
  grid-column: 3 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  min-width: 36px !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-kpi > small {
  grid-column: 2 !important;
  grid-row: 2 !important;
  justify-self: start !important;
  max-width: 100% !important;
  font-size: .67rem !important;
  line-height: 1.12 !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-kpi > em {
  grid-column: 3 !important;
  grid-row: 2 !important;
  justify-self: end !important;
  max-width: 80px !important;
  color: var(--kpi-card-accent) !important;
  font-size: .62rem !important;
  line-height: 1.1 !important;
  text-align: right !important;
}

body.is-authenticated:not(.report-print-body) #module-configuracion .config-role-summary {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
  gap: 8px !important;
  align-items: stretch !important;
  min-height: auto !important;
  height: auto !important;
  padding: 8px !important;
  margin: 0 0 12px !important;
  border: 1px solid var(--kpi-card-border) !important;
  border-radius: var(--kpi-card-radius) !important;
  background: #f7fbff !important;
  box-shadow: none !important;
}

body.is-authenticated:not(.report-print-body) #module-configuracion .config-role-summary > span {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-height: 46px !important;
  padding: 8px 10px !important;
  border: 1px solid #d4e5f2 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--kpi-card-muted) !important;
  font-size: .76rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

body.is-authenticated:not(.report-print-body) #module-configuracion .config-role-summary > span > b {
  order: 2 !important;
  color: var(--kpi-card-ink) !important;
  font-size: 1.15rem !important;
  line-height: 1 !important;
}

/* KPI Cards globales: proporciones estables titulo/valor. */
.kpi-card {
  grid-template-columns: minmax(0, 1fr) minmax(64px, 42%) !important;
}
.kpi-card:has(> i) {
  grid-template-columns: 42px minmax(0, 1fr) minmax(64px, 42%) !important;
}
.kpi-card :is(span, small, em, b, strong) {
  word-break: normal !important;
  overflow-wrap: normal !important;
}
.kpi-card :is(small, em) {
  overflow-wrap: anywhere !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.attendance-kpis article,.attendance-live-kpis article,.achievement-kpi,.academic-report-summary article,.academic-report-period-summary article,.utp-kpi,.utp-report-kpis article,.utp-summary-kpis article,.guardian-summary article,.guardian-attendance-summary article,.head-teacher-kpis article,.permission-summary article,.ficha-kpi-grid article,.users-summary-grid article,.institution-strip article,.portal-metrics article,.home-summary-item,.staff-dashboard-indicators article,.subject-stats-row > *,.command-kpi) {
  grid-template-columns: minmax(0, 1fr) minmax(64px, 42%) !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.attendance-kpis article,.attendance-live-kpis article,.academic-report-summary article,.academic-report-period-summary article,.utp-kpi,.utp-report-kpis article,.utp-summary-kpis article,.guardian-summary article,.guardian-attendance-summary article,.head-teacher-kpis article,.permission-summary article,.ficha-kpi-grid article,.users-summary-grid article,.institution-strip article,.portal-metrics article,.home-summary-item,.staff-dashboard-indicators article,.command-kpi):has(> i) {
  grid-template-columns: 42px minmax(0, 1fr) minmax(64px, 42%) !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.attendance-kpis article,.attendance-live-kpis article,.achievement-kpi,.academic-report-summary article,.academic-report-period-summary article,.utp-kpi,.utp-report-kpis article,.utp-summary-kpis article,.guardian-summary article,.guardian-attendance-summary article,.head-teacher-kpis article,.permission-summary article,.ficha-kpi-grid article,.users-summary-grid article,.institution-strip article,.portal-metrics article,.home-summary-item,.staff-dashboard-indicators article,.subject-stats-row > *,.command-kpi) :is(span, b, strong) {
  word-break: normal !important;
  overflow-wrap: normal !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-kpi {
  grid-template-columns: 42px minmax(0, 1fr) minmax(64px, 38%) !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-kpi > em {
  max-width: 100% !important;
}

/* KPI Cards globales: compactacion final para UTP y roles en movil. */
body.is-authenticated:not(.report-print-body) #module-utp .utp-kpi > small,
body.is-authenticated:not(.report-print-body) #module-utp .utp-kpi > em {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-kpi > span {
  font-size: .74rem !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-kpi > b {
  font-size: clamp(1rem, 1.45vw, 1.22rem) !important;
}

@media (min-width: 901px) {
  body.is-authenticated:not(.report-print-body) #module-utp .utp-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  body.is-authenticated:not(.report-print-body) #module-configuracion .config-role-summary {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  body.is-authenticated:not(.report-print-body) #appMain #module-configuracion .config-card .config-role-summary {
    grid-template-columns: 1fr !important;
  }
  body.is-authenticated:not(.report-print-body) #appMain #module-configuracion .config-card .config-role-summary > span {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Login institucional animado Nombre del Colegio. */
body.is-login:not(.is-authenticated) {
  --plumero-blue: #004fbd;
  --plumero-blue-dark: #071b70;
  --plumero-yellow: #ffc400;
  --plumero-green: #10a85a;
  --plumero-ink: #071866;
}

body.is-login:not(.is-authenticated) .login-screen {
  position: relative !important;
  isolation: isolate !important;
  min-height: 100dvh !important;
  display: grid !important;
  grid-template-columns: minmax(560px, 1.42fr) minmax(390px, 520px) !important;
  align-items: center !important;
  gap: clamp(24px, 3.2vw, 58px) !important;
  padding: clamp(28px, 4vw, 76px) max(36px, calc((100vw - 1640px) / 2 + 36px)) clamp(82px, 8vw, 122px) !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 41% 7%, rgba(36, 127, 255, .95) 0 7px, transparent 8px),
    radial-gradient(circle at 44% 12%, rgba(255, 197, 0, .95) 0 6px, transparent 7px),
    radial-gradient(circle at 91% 5%, rgba(16, 168, 90, .95) 0 7px, transparent 8px),
    radial-gradient(circle at 95% 7%, rgba(255, 197, 0, .95) 0 7px, transparent 8px),
    linear-gradient(90deg, rgba(255,255,255,.94) 0 27%, rgba(255,255,255,.68) 42%, rgba(255,255,255,.08) 72%),
    var(--visual-login-bg, var(--login-bg)) center / cover no-repeat !important;
  animation: plumero-login-parallax 28s ease-in-out infinite alternate !important;
}

body.is-login:not(.is-authenticated) .login-screen::before {
  content: "" !important;
  position: absolute !important;
  inset: auto -6vw -10px -6vw !important;
  z-index: -1 !important;
  width: auto !important;
  height: clamp(170px, 24vw, 310px) !important;
  clip-path: polygon(0 36%, 18% 19%, 36% 14%, 55% 27%, 72% 42%, 88% 50%, 100% 7%, 100% 100%, 0 100%) !important;
  background:
    linear-gradient(176deg, transparent 0 12%, var(--plumero-yellow) 12% 17%, transparent 17% 100%),
    linear-gradient(114deg, #003f9f 0%, #005ed3 58%, #006eff 100%) !important;
  opacity: .98 !important;
  transform-origin: center bottom !important;
  animation: plumero-wave-drift 18s ease-in-out infinite alternate !important;
}

body.is-login:not(.is-authenticated) .login-screen::after {
  content: "" !important;
  position: absolute !important;
  z-index: 1 !important;
  left: clamp(430px, 31vw, 610px) !important;
  bottom: clamp(118px, 10vw, 170px) !important;
  width: clamp(280px, 29vw, 465px) !important;
  aspect-ratio: 720 / 920 !important;
  background: url('../assets/login-plumero-children-20260806.png') center bottom / contain no-repeat !important;
  filter: drop-shadow(0 22px 22px rgba(0, 31, 83, .22)) !important;
  pointer-events: none !important;
  transform-origin: 50% 90% !important;
  animation: plumero-children-greet 5.8s ease-in-out 1.15s infinite !important;
}

body.is-login:not(.is-authenticated) .login-educadmaule-brand {
  position: relative !important;
  z-index: 2 !important;
  grid-column: 1 !important;
  align-self: start !important;
  justify-self: start !important;
  width: min(100%, 720px) !important;
  min-height: 560px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  animation: plumero-fade-rise .78s .08s cubic-bezier(.2,.75,.25,1) both !important;
}

body.is-login:not(.is-authenticated) .login-educadmaule-brand img {
  width: min(100%, 420px) !important;
  max-height: 150px !important;
  object-fit: contain !important;
  object-position: left top !important;
  filter: drop-shadow(0 8px 14px rgba(0, 24, 90, .12)) !important;
}

body.is-login:not(.is-authenticated) .login-educadmaule-brand::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 248px !important;
  width: min(100%, 380px) !important;
  height: 306px !important;
  background:
    linear-gradient(#dbe8fb,#dbe8fb) 0 0 / 54px 54px no-repeat,
    linear-gradient(#d8f5df,#d8f5df) 0 116px / 54px 54px no-repeat,
    linear-gradient(#e4d7ff,#e4d7ff) 0 234px / 54px 54px no-repeat !important;
  border-radius: 12px !important;
  opacity: .98 !important;
  animation: plumero-icons-float 6s ease-in-out infinite !important;
}

body.is-login:not(.is-authenticated) .login-educadmaule-brand::after {
  content: "Gestion Escolar Moderna\A Plataforma integral para la comunidad educativa.\A\A Informacion en Tiempo Real\A Datos actualizados y seguros para una mejor comunicacion.\A\A Facil y Accesible\A Accede desde cualquier dispositivo, cuando lo necesites." !important;
  position: absolute !important;
  left: 82px !important;
  top: 246px !important;
  display: block !important;
  max-width: 360px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--plumero-ink) !important;
  white-space: pre-line !important;
  font-size: clamp(.9rem, .96vw, 1.05rem) !important;
  font-weight: 500 !important;
  line-height: 1.46 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.86) !important;
  animation: plumero-info-cascade 1.1s .72s cubic-bezier(.2,.75,.25,1) both !important;
}

body.is-login:not(.is-authenticated) .login-panel,
body.visual-modern.is-login:not(.is-authenticated) .login-panel,
body.visual-classic.is-login:not(.is-authenticated) .login-panel {
  position: relative !important;
  z-index: 3 !important;
  grid-column: 2 !important;
  justify-self: end !important;
  width: min(100%, 500px) !important;
  max-width: 500px !important;
  min-height: 620px !important;
  padding: clamp(28px, 3vw, 46px) clamp(28px, 3vw, 42px) !important;
  gap: 16px !important;
  border: 1px solid rgba(255,255,255,.74) !important;
  border-radius: 32px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.84), rgba(255,255,255,.62)) !important;
  box-shadow: 0 30px 70px rgba(0, 50, 120, .24), inset 0 1px 0 rgba(255,255,255,.9) !important;
  backdrop-filter: blur(18px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.18) !important;
  text-align: center !important;
  animation: plumero-panel-in .82s .18s cubic-bezier(.2,.75,.25,1) both !important;
}

body.is-login:not(.is-authenticated) #loginLogo {
  width: 84px !important;
  height: 84px !important;
  margin-inline: auto !important;
  border: 8px solid var(--plumero-yellow) !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #006cff, #003fba) !important;
  box-shadow: 0 14px 24px rgba(0, 83, 190, .23) !important;
  overflow: hidden !important;
}

body.is-login:not(.is-authenticated) #loginLogo img {
  width: 78% !important;
  height: 78% !important;
  object-fit: contain !important;
}

body.is-login:not(.is-authenticated) .login-panel h1 {
  position: relative !important;
  width: max-content !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  color: var(--plumero-ink) !important;
  font-size: clamp(1.55rem, 2.15vw, 2.05rem) !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  animation: plumero-type-title 1.15s .62s steps(19, end) both !important;
}

body.is-login:not(.is-authenticated) .login-panel h1::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  right: -2px !important;
  top: .12em !important;
  width: 2px !important;
  height: .9em !important;
  background: var(--plumero-yellow) !important;
  animation: plumero-caret 1s step-end 6 !important;
}

body.is-login:not(.is-authenticated) .login-panel > div > p {
  margin: 8px auto 18px !important;
  color: #1e3977 !important;
  font-size: .95rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  animation: plumero-slogan-words .85s .98s ease both !important;
}

body.is-login:not(.is-authenticated) .login-form {
  gap: 14px !important;
  margin-top: 6px !important;
}

/* UTP: tablero ejecutivo, graficos y alerta de riesgo. */
body.is-authenticated:not(.report-print-body) #module-utp {
  width: 100% !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-exec {
  margin-top: 18px !important;
  padding: clamp(14px, 1.6vw, 22px) !important;
  border: 1px solid rgba(77, 140, 215, .32) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(242,248,255,.88)) !important;
  box-shadow: 0 18px 34px rgba(22, 66, 125, .12) !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-exec-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 150px) !important;
  gap: 18px !important;
  align-items: center !important;
  margin-bottom: 16px !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-exec-header span,
body.is-authenticated:not(.report-print-body) #module-utp .utp-card-title span {
  color: #0a5795 !important;
  font-size: .76rem !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-exec-header h2 {
  margin: 3px 0 6px !important;
  color: #0b2445 !important;
  font-size: clamp(1.35rem, 2vw, 2rem) !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-exec-header p {
  max-width: 980px !important;
  margin: 0 !important;
  color: #35506c !important;
  font-size: .92rem !important;
  line-height: 1.45 !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-gauge {
  position: relative !important;
  width: 132px !important;
  aspect-ratio: 1 !important;
  display: grid !important;
  place-items: center !important;
  justify-self: end !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(#13a36d calc(var(--value) * 1%), #e3edf8 0) !important;
  box-shadow: inset 0 0 0 1px rgba(68, 119, 185, .2), 0 12px 24px rgba(16, 75, 140, .12) !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-gauge b {
  color: #0b2445 !important;
  font-size: 1.45rem !important;
  line-height: 1 !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-gauge span {
  color: #526b86 !important;
  font-size: .74rem !important;
  font-weight: 800 !important;
  margin-top: 30px !important;
  position: absolute !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-decision-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 18px 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-decision-card {
  min-width: 0 !important;
  min-height: 235px !important;
  padding: 16px !important;
  border: 1px solid rgba(109, 168, 224, .34) !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.93) !important;
  box-shadow: 0 10px 22px rgba(35, 76, 125, .08) !important;
  overflow: hidden !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-wide-card {
  grid-column: span 2 !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-card-title {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-card-title b {
  flex: 0 0 auto !important;
  color: #102f53 !important;
  font-size: .95rem !important;
  text-align: right !important;
  white-space: nowrap !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-trend-chart {
  min-height: 174px !important;
  display: grid !important;
  grid-template-rows: minmax(130px, 1fr) auto !important;
  gap: 8px !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-trend-chart svg {
  width: 100% !important;
  height: 132px !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #f8fbff, #edf6ff) !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-trend-chart .grid {
  fill: none !important;
  stroke: rgba(128, 166, 204, .28) !important;
  stroke-width: .7 !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-trend-chart .line {
  fill: none !important;
  stroke: #1868d5 !important;
  stroke-width: 3.4 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-trend-chart > div {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)) !important;
  gap: 4px !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-trend-chart span {
  overflow: hidden !important;
  color: #526b86 !important;
  font-size: .68rem !important;
  font-weight: 750 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-comparison-bars {
  display: grid !important;
  gap: 10px !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-comparison-bars > div {
  display: grid !important;
  grid-template-columns: minmax(78px, 34%) minmax(80px, 1fr) minmax(46px, auto) !important;
  align-items: center !important;
  gap: 9px !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-comparison-bars span {
  overflow: hidden !important;
  color: #123b61 !important;
  font-size: .76rem !important;
  font-weight: 800 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-comparison-bars i {
  height: 11px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: #e8f0f9 !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-comparison-bars i b {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #1d6bd8, #11a77d) !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-comparison-bars strong {
  color: #0b2445 !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
  text-align: right !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-priority-list {
  display: grid !important;
  gap: 9px !important;
  max-height: 176px !important;
  overflow: auto !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-priority-list :is(article, button) {
  display: grid !important;
  width: 100% !important;
  gap: 3px !important;
  padding: 10px 11px !important;
  border: 1px solid rgba(143, 182, 221, .4) !important;
  border-radius: 8px !important;
  background: #f8fbff !important;
  color: #102f53 !important;
  text-align: left !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-priority-list button {
  cursor: pointer !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-priority-list b {
  overflow: hidden !important;
  font-size: .84rem !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-priority-list span,
body.is-authenticated:not(.report-print-body) #module-utp .utp-decision-copy {
  color: #526b86 !important;
  font-size: .77rem !important;
  line-height: 1.35 !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-meeting-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-meeting-list li {
  min-height: 62px !important;
  padding: 12px 12px 12px 40px !important;
  border: 1px solid rgba(40, 152, 118, .2) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #ffffff, #f2fbf7) !important;
  color: #1d425f !important;
  font-size: .84rem !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  position: relative !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-meeting-list li::before {
  content: "\f0eb" !important;
  position: absolute !important;
  left: 13px !important;
  top: 13px !important;
  color: #12936a !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

body.is-authenticated:not(.report-print-body) .utp-risk-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 40000 !important;
  display: grid !important;
  place-items: center !important;
  padding: clamp(14px, 3vw, 34px) !important;
  background: rgba(8, 25, 50, .56) !important;
  backdrop-filter: blur(5px) !important;
}

body.is-authenticated:not(.report-print-body) .utp-risk-modal {
  position: relative !important;
  width: min(920px, 96vw) !important;
  max-height: min(86vh, 760px) !important;
  overflow: auto !important;
  padding: clamp(18px, 2.6vw, 30px) !important;
  border: 1px solid rgba(255,255,255,.78) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #ffffff, #f3f8ff) !important;
  box-shadow: 0 34px 80px rgba(0, 26, 68, .34) !important;
}

body.is-authenticated:not(.report-print-body) .utp-risk-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 36px !important;
  height: 36px !important;
  border: 1px solid rgba(123, 157, 195, .38) !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #153b62 !important;
  cursor: pointer !important;
}

body.is-authenticated:not(.report-print-body) .utp-risk-hero {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: center !important;
  padding-right: 42px !important;
}

body.is-authenticated:not(.report-print-body) .utp-risk-hero > span {
  width: 64px !important;
  height: 64px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 8px !important;
  background: #fff3e6 !important;
  color: #bf4e12 !important;
  font-size: 1.45rem !important;
}

body.is-authenticated:not(.report-print-body) .utp-risk-hero p {
  margin: 0 0 4px !important;
  color: #bf4e12 !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

body.is-authenticated:not(.report-print-body) .utp-risk-hero h2 {
  margin: 0 0 6px !important;
  color: #0b2445 !important;
  font-size: clamp(1.35rem, 2.3vw, 2.15rem) !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
}

body.is-authenticated:not(.report-print-body) .utp-risk-hero small {
  display: block !important;
  color: #526b86 !important;
  line-height: 1.4 !important;
}

body.is-authenticated:not(.report-print-body) .utp-risk-modal-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 20px 0 14px !important;
}

body.is-authenticated:not(.report-print-body) .utp-risk-modal-grid article {
  min-width: 0 !important;
  padding: 13px !important;
  border: 1px solid rgba(215, 95, 76, .18) !important;
  border-radius: 8px !important;
  background: #fffaf6 !important;
}

body.is-authenticated:not(.report-print-body) .utp-risk-modal-grid b,
body.is-authenticated:not(.report-print-body) .utp-risk-modal-grid span,
body.is-authenticated:not(.report-print-body) .utp-risk-modal-grid small {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.is-authenticated:not(.report-print-body) .utp-risk-modal-grid b {
  color: #102f53 !important;
  font-size: .92rem !important;
}

body.is-authenticated:not(.report-print-body) .utp-risk-modal-grid span,
body.is-authenticated:not(.report-print-body) .utp-risk-modal-grid small,
body.is-authenticated:not(.report-print-body) .utp-risk-more {
  color: #5b7088 !important;
  font-size: .78rem !important;
}

body.is-authenticated:not(.report-print-body) .utp-risk-modal-grid i {
  display: block !important;
  height: 9px !important;
  margin-top: 10px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: #f0d8cf !important;
}

body.is-authenticated:not(.report-print-body) .utp-risk-modal-grid i em {
  display: block !important;
  width: var(--risk) !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #f59e0b, #dc2626) !important;
}

body.is-authenticated:not(.report-print-body) .utp-risk-modal-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-top: 18px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(133, 168, 204, .28) !important;
}

body.is-authenticated:not(.report-print-body) .utp-risk-modal-actions label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #294867 !important;
  font-size: .86rem !important;
  font-weight: 700 !important;
}

body.is-authenticated:not(.report-print-body) .utp-risk-modal-actions > div {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
}

@media (max-width: 1180px) {
  body.is-authenticated:not(.report-print-body) #module-utp .utp-decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body.is-authenticated:not(.report-print-body) #module-utp .utp-exec-header,
  body.is-authenticated:not(.report-print-body) #module-utp .utp-decision-grid,
  body.is-authenticated:not(.report-print-body) #module-utp .utp-meeting-list,
  body.is-authenticated:not(.report-print-body) .utp-risk-modal-grid,
  body.is-authenticated:not(.report-print-body) .utp-risk-hero {
    grid-template-columns: 1fr !important;
  }
  body.is-authenticated:not(.report-print-body) #module-utp .utp-wide-card {
    grid-column: auto !important;
  }
  body.is-authenticated:not(.report-print-body) #module-utp .utp-gauge {
    justify-self: start !important;
  }
  body.is-authenticated:not(.report-print-body) .utp-risk-hero {
    padding-right: 42px !important;
  }
  body.is-authenticated:not(.report-print-body) .utp-risk-modal-actions {
    align-items: stretch !important;
    flex-direction: column !important;
  }
  body.is-authenticated:not(.report-print-body) .utp-risk-modal-actions > div {
    justify-content: stretch !important;
  }
body.is-authenticated:not(.report-print-body) .utp-risk-modal-actions button {
    flex: 1 1 160px !important;
  }
}

/* UTP: tarjetas superiores compactas y ordenadas. */
body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-exec {
  margin-top: 14px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-items: stretch !important;
  margin: 0 0 16px !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-kpi {
  --kpi-card-accent: #1479f6;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  grid-template-rows: auto auto minmax(28px, auto) auto !important;
  gap: 6px 8px !important;
  min-width: 0 !important;
  min-height: 116px !important;
  align-self: stretch !important;
  padding: 11px 10px !important;
  border: 1px solid rgba(109, 168, 224, .48) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
  box-shadow: 0 8px 16px rgba(23, 76, 138, .08) !important;
  overflow: hidden !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-kpi > i {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 32px !important;
  height: 32px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 8px !important;
  background: var(--kpi-card-icon-bg, #e8f2ff) !important;
  color: var(--kpi-card-accent) !important;
  font-size: .9rem !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-kpi > span {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  min-width: 0 !important;
  color: #284d75 !important;
  font-size: .62rem !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  white-space: normal !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-kpi > b {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  justify-self: end !important;
  color: #09213e !important;
  font-size: clamp(1.18rem, 1.8vw, 1.65rem) !important;
  font-weight: 950 !important;
  line-height: .95 !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-kpi > small,
body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-kpi > em {
  grid-column: 1 / -1 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  color: #3e5c7b !important;
  font-size: .64rem !important;
  font-style: normal !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-kpi > small {
  grid-row: 3 !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-kpi > em {
  grid-row: 4 !important;
  justify-self: start !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  background: rgba(20, 121, 246, .09) !important;
  color: var(--kpi-card-accent) !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-kpi .utp-mini-spark {
  display: none !important;
}

/* UTP: tabla Semaforo proporcionada y acciones compactas. */
body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro {
  min-width: 0 !important;
  overflow: hidden !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro .table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
  border-radius: 8px !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro table {
  width: 100% !important;
  min-width: 760px !important;
  table-layout: fixed !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro th,
body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro td {
  padding: 8px 9px !important;
  font-size: .72rem !important;
  line-height: 1.22 !important;
  vertical-align: middle !important;
  word-break: normal !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro th:nth-child(1),
body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro td:nth-child(1) {
  width: 24% !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro th:nth-child(2),
body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro td:nth-child(2) {
  width: 11% !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro th:nth-child(3),
body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro td:nth-child(3),
body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro th:nth-child(4),
body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro td:nth-child(4) {
  width: 9% !important;
  text-align: center !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro th:nth-child(5),
body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro td:nth-child(5) {
  width: 23% !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro th:nth-child(6),
body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro td:nth-child(6) {
  width: 11% !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro th:nth-child(7),
body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro td:nth-child(7) {
  width: 12% !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro .utp-student-name {
  color: #0b2445 !important;
  font-weight: 850 !important;
  text-transform: none !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro .utp-subject-list {
  color: #244765 !important;
  font-size: .68rem !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro .utp-badge {
  display: inline-flex !important;
  max-width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 7px !important;
  border-radius: 999px !important;
  font-size: .65rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  white-space: normal !important;
  text-align: center !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  width: 100% !important;
  min-width: 92px !important;
  white-space: nowrap !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-actions button {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 !important;
  border-radius: 7px !important;
  font-size: .76rem !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-actions button i {
  margin: 0 !important;
  font-size: .82rem !important;
}

/* UTP: proporciones de tarjetas y paneles con scroll interno. */
body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-exec-grid {
  align-items: stretch !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-course-report-pro,
body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro {
  height: clamp(360px, 31vw, 430px) !important;
  min-height: 0 !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro .table-wrap {
  max-height: 100% !important;
  overflow: auto !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-course-report-pro {
  overflow: auto !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-center-group:first-child .utp-center-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: 10px !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-center-group:first-child .utp-center-card {
  height: 108px !important;
  min-height: 0 !important;
  padding: 12px !important;
  gap: 10px !important;
  overflow: hidden !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-center-group:first-child .utp-center-card > i {
  width: 34px !important;
  height: 34px !important;
  font-size: .95rem !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-center-group:first-child .utp-center-card h3 {
  margin: 0 0 3px !important;
  font-size: .86rem !important;
  line-height: 1.18 !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-center-group:first-child .utp-center-card p {
  display: -webkit-box !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #49657f !important;
  font-size: .72rem !important;
  line-height: 1.25 !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp #utpRiskStudents,
body.is-authenticated:not(.report-print-body) #appMain #module-utp #utpRiskStudents + .utp-panel {
  height: clamp(260px, 24vw, 340px) !important;
  min-height: 0 !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp #utpRiskStudents {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-utp #utpRiskStudents .insight-list {
  min-height: 0 !important;
  overflow-y: auto !important;
  padding-right: 4px !important;
}

@media (max-width: 760px) {
  body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-course-report-pro,
  body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-risk-pro,
  body.is-authenticated:not(.report-print-body) #appMain #module-utp #utpRiskStudents,
  body.is-authenticated:not(.report-print-body) #appMain #module-utp #utpRiskStudents + .utp-panel {
    height: auto !important;
    max-height: none !important;
  }
}

@media (max-width: 1179px) {
  body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 420px) {
  body.is-authenticated:not(.report-print-body) #appMain #module-utp .utp-kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

body.is-login:not(.is-authenticated) .login-form label {
  color: #183c7d !important;
  font-size: .84rem !important;
  font-weight: 800 !important;
  text-align: left !important;
  animation: plumero-fade-rise .52s ease both !important;
}

body.is-login:not(.is-authenticated) .login-form label:nth-child(1) { animation-delay: 1.08s !important; }
body.is-login:not(.is-authenticated) .login-form label:nth-child(2) { animation-delay: 1.18s !important; }
body.is-login:not(.is-authenticated) .login-form .login-remember { animation-delay: 1.28s !important; }

body.is-login:not(.is-authenticated) .login-form input:not([type=checkbox]) {
  min-height: 54px !important;
  height: 54px !important;
  border: 1px solid rgba(133, 166, 205, .58) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.82) !important;
  color: #173262 !important;
  box-shadow: inset 0 1px 2px rgba(0, 44, 110, .05) !important;
}

body.is-login:not(.is-authenticated) .login-form .password-toggle {
  height: 54px !important;
  border-color: rgba(133, 166, 205, .58) !important;
  background: rgba(255,255,255,.82) !important;
}

body.is-login:not(.is-authenticated) .login-form .btn-primary {
  position: relative !important;
  min-height: 58px !important;
  margin-top: 6px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(100deg, #006cf3, #004fcb 58%, #006ff8) !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 24px rgba(0, 80, 190, .28) !important;
  animation: plumero-fade-rise .52s 1.36s ease both !important;
}

body.is-login:not(.is-authenticated) .login-form .btn-primary::after {
  content: "" !important;
  position: absolute !important;
  inset: -35% auto -35% -45% !important;
  width: 42% !important;
  transform: skewX(-18deg) !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent) !important;
  animation: plumero-button-shine 3.1s 1.9s ease-in-out infinite !important;
}

body.is-login:not(.is-authenticated) .login-form .btn-guardian-access,
body.is-login:not(.is-authenticated) .login-platform-watermark,
body.is-login:not(.is-authenticated) #loginHelp,
body.is-login:not(.is-authenticated) .demo-access-note,
body.is-login:not(.is-authenticated) .guardian-login-notice {
  animation: plumero-fade-rise .52s 1.48s ease both !important;
}

body.is-login:not(.is-authenticated) .login-form .btn-guardian-access {
  min-height: 54px !important;
  border: 1.5px solid #0b6df0 !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.54) !important;
  color: #0055c8 !important;
  font-size: .95rem !important;
  font-weight: 900 !important;
}

body.is-login:not(.is-authenticated) .login-screen .login-platform-watermark {
  opacity: .72 !important;
}

body.is-login:not(.is-authenticated) .login-screen > .login-educadmaule-brand + .login-panel::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -2 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 6% 67%, rgba(255, 122, 20, .95) 0 6px, transparent 7px),
    radial-gradient(circle at 43% 18%, rgba(255, 194, 0, .84) 0 7px, transparent 8px),
    radial-gradient(circle at 41% 8%, rgba(0, 111, 255, .75) 0 8px, transparent 9px),
    radial-gradient(circle at 93% 7%, rgba(255, 194, 0, .92) 0 8px, transparent 9px),
    radial-gradient(circle at 89% 5%, rgba(16, 168, 90, .92) 0 7px, transparent 8px),
    radial-gradient(circle at 34% 31%, rgba(255,255,255,.42) 0 18px, transparent 20px),
    radial-gradient(circle at 40% 16%, rgba(255,255,255,.36) 0 14px, transparent 16px) !important;
  animation: plumero-particles 20s linear infinite alternate !important;
}

@keyframes plumero-login-parallax {
  from { background-position: 40% 7%, 44% 12%, 91% 5%, 95% 7%, center, 48% 50%; }
  to { background-position: 41% 9%, 43% 13%, 90% 7%, 96% 8%, center, 52% 50%; }
}
@keyframes plumero-wave-drift {
  from { transform: translate3d(-1.5%, 0, 0) scaleX(1.01); }
  to { transform: translate3d(1.5%, 0, 0) scaleX(1.03); }
}
@keyframes plumero-children-greet {
  0%, 72%, 100% { transform: translateY(0) rotate(0deg); }
  78% { transform: translateY(-5px) rotate(-1.1deg); }
  84% { transform: translateY(0) rotate(.9deg); }
  90% { transform: translateY(-3px) rotate(-.55deg); }
}
@keyframes plumero-icons-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes plumero-panel-in {
  from { opacity: 0; transform: translate3d(0, 26px, 0) scale(.982); filter: blur(8px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}
@keyframes plumero-fade-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes plumero-type-title {
  from { max-width: 0; }
  to { max-width: 22ch; }
}
@keyframes plumero-caret {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}
@keyframes plumero-slogan-words {
  from { opacity: 0; filter: blur(7px); transform: translateY(8px); word-spacing: .7em; }
  to { opacity: 1; filter: blur(0); transform: translateY(0); word-spacing: normal; }
}
@keyframes plumero-info-cascade {
  from { opacity: 0; transform: translateY(16px); clip-path: inset(0 0 78% 0); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
}
@keyframes plumero-button-shine {
  0%, 42% { left: -45%; }
  66%, 100% { left: 118%; }
}
@keyframes plumero-particles {
  from { transform: translate3d(0, 0, 0); opacity: .9; }
  to { transform: translate3d(18px, -16px, 0); opacity: .72; }
}

@media (max-width: 1180px) {
  body.is-login:not(.is-authenticated) .login-screen {
    grid-template-columns: minmax(410px, 1fr) minmax(370px, 460px) !important;
    padding-inline: 26px !important;
  }
  body.is-login:not(.is-authenticated) .login-screen::after {
    left: clamp(315px, 32vw, 440px) !important;
    width: clamp(240px, 31vw, 360px) !important;
  }
  body.is-login:not(.is-authenticated) .login-educadmaule-brand::after { max-width: 310px !important; }
}

@media (max-width: 860px) {
  body.is-login:not(.is-authenticated) .login-screen {
    grid-template-columns: 1fr !important;
    align-content: center !important;
    padding: 22px 16px 36px !important;
  }
  body.is-login:not(.is-authenticated) .login-screen::after,
  body.is-login:not(.is-authenticated) .login-educadmaule-brand {
    display: none !important;
  }
  body.is-login:not(.is-authenticated) .login-panel,
  body.visual-modern.is-login:not(.is-authenticated) .login-panel,
  body.visual-classic.is-login:not(.is-authenticated) .login-panel {
    grid-column: 1 !important;
    justify-self: center !important;
    width: min(100%, 430px) !important;
    min-height: 0 !important;
    padding: 26px 22px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-login:not(.is-authenticated) .login-screen,
  body.is-login:not(.is-authenticated) .login-screen::before,
  body.is-login:not(.is-authenticated) .login-screen::after,
  body.is-login:not(.is-authenticated) .login-educadmaule-brand,
  body.is-login:not(.is-authenticated) .login-educadmaule-brand::before,
  body.is-login:not(.is-authenticated) .login-educadmaule-brand::after,
  body.is-login:not(.is-authenticated) .login-panel,
  body.is-login:not(.is-authenticated) .login-panel h1,
  body.is-login:not(.is-authenticated) .login-panel h1::after,
  body.is-login:not(.is-authenticated) .login-panel > div > p,
  body.is-login:not(.is-authenticated) .login-form label,
  body.is-login:not(.is-authenticated) .login-form .btn-primary,
  body.is-login:not(.is-authenticated) .login-form .btn-primary::after,
  body.is-login:not(.is-authenticated) .login-form .btn-guardian-access {
    animation: none !important;
    transition: none !important;
  }
}

/* Calificaciones: dashboard compacto y responsive. */
body.is-authenticated:not(.report-print-body) #module-calificaciones {
  --grades-gap: 10px;
  --grades-pad: 12px;
  --grades-border: #c9dced;
  --grades-bg: #f7fbff;
  --grades-card: #ffffff;
  --grades-ink: #0f2a56;
  --grades-muted: #435f82;
  display: grid !important;
  gap: var(--grades-gap) !important;
  align-content: start !important;
  max-width: 1480px !important;
  padding-bottom: 20px !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones > * {
  margin-block: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .module-breadcrumb,
body.is-authenticated:not(.report-print-body) #module-calificaciones .category-back {
  margin-bottom: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .module-hero {
  min-height: auto !important;
  padding: 14px 16px !important;
  gap: 12px !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 18px rgba(19, 58, 105, .08) !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .module-hero-content h1 {
  color: var(--grades-ink) !important;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem) !important;
  line-height: 1.1 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .module-hero-content p {
  max-width: 82ch !important;
  margin-top: 5px !important;
  color: var(--grades-muted) !important;
  font-size: .88rem !important;
  line-height: 1.35 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .module-hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .module-hero-actions :is(button, .btn-soft, .btn-primary),
body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-filter-toolbar :is(button, .pill) {
  min-height: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  font-size: .78rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-dashboard-compact {
  display: grid !important;
  gap: var(--grades-gap) !important;
  padding: var(--grades-pad) !important;
  border: 1px solid var(--grades-border) !important;
  border-radius: 12px !important;
  background: var(--grades-bg) !important;
  box-shadow: 0 8px 18px rgba(19, 58, 105, .06) !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-filters-row {
  display: grid !important;
  grid-template-columns: minmax(260px, .82fr) minmax(420px, 1.18fr) !important;
  gap: var(--grades-gap) !important;
  align-items: stretch !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .course-context,
body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-filter-card {
  min-height: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid var(--grades-border) !important;
  border-radius: 10px !important;
  background: var(--grades-card) !important;
  box-shadow: none !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .course-context-main {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) auto !important;
  gap: 10px !important;
  align-items: end !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .course-context-meta {
  align-self: center !important;
  min-width: 150px !important;
  color: var(--grades-muted) !important;
  font-size: .76rem !important;
  line-height: 1.2 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .course-context-meta b {
  color: var(--grades-ink) !important;
  font-size: .84rem !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-filter-toolbar {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 10px !important;
  align-items: end !important;
  margin: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones :is(.course-context label, .grade-filter-toolbar label) {
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: var(--grades-ink) !important;
  font-size: .78rem !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones :is(.course-context select, .grade-filter-toolbar select) {
  width: 100% !important;
  min-height: 38px !important;
  height: 38px !important;
  min-width: 0 !important;
  padding: 6px 10px !important;
  border: 1px solid #a9c7df !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #102a43 !important;
  font-size: .84rem !important;
  font-weight: 750 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-filter-toolbar .pill {
  width: 100% !important;
  white-space: normal !important;
  text-align: center !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-signal-row .layout-insight-wrap {
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid var(--grades-border) !important;
  border-radius: 10px !important;
  background: var(--grades-card) !important;
  box-shadow: none !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-signal-row .layout-insight-head {
  margin: 0 0 8px !important;
  padding: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-signal-row .layout-insight-head h3 {
  color: var(--grades-ink) !important;
  font-size: .98rem !important;
  line-height: 1.15 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-signal-row .layout-insight-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 8px !important;
  align-items: stretch !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-signal-row .layout-insight {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 6px 10px !important;
  min-height: 64px !important;
  height: auto !important;
  padding: 9px 11px !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-signal-row .layout-insight > i {
  width: 38px !important;
  height: 38px !important;
  border-radius: 9px !important;
  font-size: .95rem !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-signal-row .layout-insight > div {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 2px 8px !important;
  align-items: center !important;
  min-width: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-signal-row .layout-insight span {
  color: var(--grades-muted) !important;
  font-size: .72rem !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-signal-row .layout-insight b {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  justify-self: end !important;
  color: var(--grades-ink) !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
  text-align: right !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-signal-row .layout-insight small {
  color: #56708f !important;
  font-size: .68rem !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-kpi-grid .metric {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) minmax(58px, auto) !important;
  align-items: center !important;
  gap: 6px 12px !important;
  min-height: 68px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid var(--grades-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-kpi-grid .metric .metric-icon {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  color: #0b65c8 !important;
  background: #e5f2ff !important;
  font-size: 1rem !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-kpi-grid .metric span {
  grid-column: 2 !important;
  color: var(--grades-muted) !important;
  font-size: .78rem !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-kpi-grid .metric strong {
  grid-column: 3 !important;
  grid-row: 1 / span 2 !important;
  justify-self: end !important;
  color: var(--grades-ink) !important;
  font-size: clamp(1.05rem, 1.5vw, 1.38rem) !important;
  line-height: 1.05 !important;
  text-align: right !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-sheet-card {
  margin: 0 !important;
  padding: 12px !important;
  border-radius: 12px !important;
  border: 1px solid var(--grades-border) !important;
  box-shadow: 0 8px 18px rgba(19, 58, 105, .06) !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-sheet-card h3 {
  margin: 0 0 8px !important;
  color: var(--grades-ink) !important;
  font-size: 1.05rem !important;
  line-height: 1.15 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-spreadsheet-help {
  margin: 0 0 8px !important;
  color: #405b78 !important;
  font-size: .8rem !important;
  line-height: 1.3 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-table-wrap {
  max-width: 100% !important;
  border-radius: 10px !important;
  border: 1px solid var(--grades-border) !important;
  box-shadow: none !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-table-wrap table {
  min-width: 1040px !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-table-wrap th,
body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-table-wrap td {
  padding: 7px 8px !important;
  font-size: .78rem !important;
  line-height: 1.2 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-table-wrap td.student-cell {
  min-width: 210px !important;
  color: var(--grades-ink) !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-input {
  width: 50px !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 4px !important;
  border-radius: 7px !important;
  font-size: .78rem !important;
}

@media (max-width: 980px) {
  body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-filters-row,
  body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-kpi-grid,
  body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-signal-row .layout-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-filter-card {
    grid-column: span 1 !important;
  }
  body.is-authenticated:not(.report-print-body) #module-calificaciones .course-context-main {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 620px) {
  body.is-authenticated:not(.report-print-body) #module-calificaciones {
    gap: 10px !important;
  }
  body.is-authenticated:not(.report-print-body) #module-calificaciones .module-hero,
  body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-dashboard-compact,
  body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-sheet-card {
    padding: 10px !important;
  }
  body.is-authenticated:not(.report-print-body) #module-calificaciones .module-hero-actions {
    justify-content: stretch !important;
  }
  body.is-authenticated:not(.report-print-body) #module-calificaciones .module-hero-actions :is(button, .btn-soft, .btn-primary) {
    width: 100% !important;
  }
  body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-filters-row,
  body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-filter-toolbar,
  body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-kpi-grid,
  body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-signal-row .layout-insight-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 981px) {
  body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-filter-toolbar {
    grid-template-columns: minmax(240px, 1.35fr) minmax(180px, .75fr) minmax(130px, auto) minmax(130px, auto) !important;
  }
}

/* Usuarios: evitar vista duplicada tabla + tarjetas. */
body.is-authenticated #module-usuarios .usuarios-cards-mobile,
body.is-authenticated #module-registro-usuarios .usuarios-cards-mobile {
  display: none !important;
}

body.is-authenticated #module-usuarios .usuarios-table-desktop,
body.is-authenticated #module-registro-usuarios .usuarios-table-desktop {
  display: block !important;
}

@media (max-width: 700px) {
  body.is-authenticated #module-usuarios .usuarios-table-desktop,
  body.is-authenticated #module-registro-usuarios .usuarios-table-desktop {
    display: none !important;
  }

  body.is-authenticated #module-usuarios .usuarios-cards-mobile,
  body.is-authenticated #module-registro-usuarios .usuarios-cards-mobile {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}
body.is-authenticated #module-usuarios .usuario-card-cargo,
body.is-authenticated #module-registro-usuarios .usuario-card-cargo {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 22px !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  background: #eef6ff !important;
  color: #164777 !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
}
/* Iconos mas visibles estilo Windows 11. */
body.is-authenticated #appMain .module-section-icon {
  width: 42px !important;
  height: 42px !important;
  font-size: 1.2rem !important;
}

body.is-authenticated #appMain .school-module-icon {
  width: 52px !important;
  height: 52px !important;
  font-size: 1.28rem !important;
}

body.is-authenticated #appMain .school-module-icon > i {
  font-size: 1.28rem !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .module-section-icon {
  width: 34px !important;
  height: 34px !important;
  font-size: 1rem !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-icon {
  width: 48px !important;
  height: 48px !important;
  font-size: 1.22rem !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-icon > i {
  font-size: 1.22rem !important;
}

body.is-authenticated #appMain :is(.icon-btn i, .btn-soft i, .btn-primary i, .btn-ghost i, .acciones-usuario i, .role-badge i) {
  font-size: 1.08em !important;
}

/* Inicio: filas funcionales y tarjetas tipo referencia. */
body.is-authenticated:not(.guardian-portal-only) #module-inicio .staff-module-directory {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 28px !important;
  width: 100% !important;
  margin: 4px 0 0 !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .modern-tile-group {
  display: grid !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .module-section-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: max-content !important;
  max-width: 100% !important;
  min-height: 24px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #0d2b63 !important;
  box-shadow: none !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .module-section-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #d9ecff !important;
  color: transparent !important;
  box-shadow: none !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .module-section-icon i {
  display: block !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 999px !important;
  background: #2f86ff !important;
  color: transparent !important;
  font-size: 0 !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .section-tone-green .module-section-icon i { background: #17b26a !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .section-tone-orange .module-section-icon i { background: #ff6a2a !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .section-tone-purple .module-section-icon i { background: #8b5cf6 !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .section-tone-turquoise .module-section-icon i { background: #0ea5a8 !important; }

body.is-authenticated:not(.guardian-portal-only) #module-inicio .module-section-copy {
  display: block !important;
  min-width: 0 !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .module-section-copy h2 {
  margin: 0 !important;
  color: #0c2a61 !important;
  font-size: 1.12rem !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .module-section-copy p {
  display: none !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .module-section-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  height: 24px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #e0f6f2 !important;
  color: #08766f !important;
  font-size: .72rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .module-section-count::after {
  content: " modulos";
  margin-left: 4px;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .modern-tile-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-auto-rows: 164px !important;
  gap: 16px !important;
  width: 100% !important;
  align-items: stretch !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-tile.modern-module-tile {
  --home-tile-color: #2384ff;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 12px 14px !important;
  min-height: 164px !important;
  height: 164px !important;
  padding: 24px 18px 20px !important;
  border: 1px solid #dfe7f1 !important;
  border-top: 3px solid var(--home-tile-color) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #0d2b63 !important;
  text-align: left !important;
  box-shadow: 0 8px 18px rgba(20, 57, 99, .08) !important;
  overflow: hidden !important;
  transform: none !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-tile.tile-blue { --home-tile-color: #2384ff; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-tile.tile-green { --home-tile-color: #18b766; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-tile.tile-orange { --home-tile-color: #ff6a2a; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-tile.tile-purple { --home-tile-color: #8b5cf6; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-tile.tile-turquoise { --home-tile-color: #0ea5a8; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-tile.tile-navy { --home-tile-color: #2563eb; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-tile.tile-slate { --home-tile-color: #64748b; }

body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-tile.modern-module-tile:hover,
body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-tile.modern-module-tile:focus-visible {
  background: #fff !important;
  box-shadow: 0 14px 28px rgba(20, 57, 99, .14) !important;
  outline: none !important;
  transform: translateY(-2px) !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-icon {
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--home-tile-color) 10%, #ffffff) !important;
  color: var(--home-tile-color) !important;
  box-shadow: none !important;
  transform: none !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .tile-blue .school-module-icon { background: #edf6ff !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .tile-green .school-module-icon { background: #eaf9f1 !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .tile-orange .school-module-icon { background: #fff0e8 !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .tile-purple .school-module-icon { background: #f2edff !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .tile-turquoise .school-module-icon { background: #e8f8f8 !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .tile-navy .school-module-icon { background: #eef4ff !important; }
body.is-authenticated:not(.guardian-portal-only) #module-inicio .tile-slate .school-module-icon { background: #f1f5f9 !important; }

body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-icon::after {
  content: none !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-icon > i {
  color: var(--home-tile-color) !important;
  font-size: 1.02rem !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-content {
  display: grid !important;
  gap: 9px !important;
  min-width: 0 !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-label {
  display: block !important;
  min-height: 0 !important;
  color: #0d2b63 !important;
  font-size: .88rem !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  text-align: left !important;
  overflow-wrap: anywhere !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-description {
  display: -webkit-box !important;
  color: #122d5d !important;
  font-size: .68rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  text-align: left !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-action {
  grid-column: 1 / -1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-self: start !important;
  align-self: end !important;
  gap: 14px !important;
  color: var(--home-tile-color) !important;
  font-size: .72rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-action i {
  color: currentColor !important;
  font-size: 1rem !important;
}

@media (max-width: 1320px) {
  body.is-authenticated:not(.guardian-portal-only) #module-inicio .modern-tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1040px) {
  body.is-authenticated:not(.guardian-portal-only) #module-inicio .modern-tile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body.is-authenticated:not(.guardian-portal-only) #module-inicio .modern-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 156px !important;
    gap: 12px !important;
  }

  body.is-authenticated:not(.guardian-portal-only) #module-inicio .school-module-tile.modern-module-tile {
    min-height: 156px !important;
    height: 156px !important;
    padding: 18px 14px 16px !important;
  }
}

@media (max-width: 520px) {
  body.is-authenticated:not(.guardian-portal-only) #module-inicio .module-section-bar {
    width: 100% !important;
  }

  body.is-authenticated:not(.guardian-portal-only) #module-inicio .module-section-count {
    margin-left: auto !important;
  }

  body.is-authenticated:not(.guardian-portal-only) #module-inicio .modern-tile-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Inicio: indicadores superiores parejos en una sola fila. */
body.is-authenticated:not(.guardian-portal-only) #module-inicio .staff-dashboard-indicators {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
  width: 100% !important;
  margin: 0 0 22px !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .staff-dashboard-indicators article {
  display: grid !important;
  grid-template-columns: 42px minmax(76px, max-content) minmax(0, 1fr) !important;
  grid-template-rows: 1fr !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 76px !important;
  min-height: 76px !important;
  max-height: 76px !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  overflow: hidden !important;
  border: 1px solid #b9d7ee !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #062d72 !important;
  box-shadow: none !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .staff-dashboard-indicators article > i {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  margin: 0 !important;
  border-radius: 12px !important;
  color: #1479f6 !important;
  background: #e8f4ff !important;
  font-size: .98rem !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .staff-dashboard-indicators article span {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: #385680 !important;
  font-size: .7rem !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
  text-transform: uppercase !important;
  overflow: hidden !important;
}

body.is-authenticated:not(.guardian-portal-only) #module-inicio .staff-dashboard-indicators article strong {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  color: #001f4f !important;
  font-size: clamp(.82rem, 1.25vw, 1.34rem) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  text-align: right !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

@media (max-width: 1180px) {
  body.is-authenticated:not(.guardian-portal-only) #module-inicio .staff-dashboard-indicators {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  body.is-authenticated:not(.guardian-portal-only) #module-inicio .staff-dashboard-indicators {
    grid-template-columns: 1fr !important;
  }
}

/* Registro de Usuarios: interfaz homogénea para crear y editar. */
body.is-authenticated:not(.report-print-body) #module-registro-usuarios {
  --registro-bg: #f4f8fc;
  --registro-card: #ffffff;
  --registro-line: #cfe0ef;
  --registro-ink: #0b2b5f;
  --registro-muted: #526b88;
  --registro-blue: #1479f6;
  --registro-green: #16a66a;
  display: grid !important;
  gap: 14px !important;
  align-content: start !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .module-head {
  margin-bottom: 0 !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .modulo-registro-usuarios .users-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(118px, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .modulo-registro-usuarios .users-summary-grid article {
  min-width: 0 !important;
  min-height: 68px !important;
  padding: 10px 12px !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .modulo-registro-usuarios .users-summary-grid article span {
  font-size: .72rem !important;
  line-height: 1.1 !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .modulo-registro-usuarios .users-summary-grid article b {
  font-size: clamp(1.15rem, 1.8vw, 1.55rem) !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .panel-listado > .registro-users-table-wrap {
  width: 100% !important;
  margin: 0 !important;
  border-color: #dbe8f3 !important;
  border-radius: 9px !important;
  background: #fff !important;
}

@media (max-width: 1180px) {
  body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .modulo-registro-usuarios .users-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .modulo-registro-usuarios .users-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .modulo-registro-usuarios .users-summary-grid {
    grid-template-columns: 1fr !important;
  }
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios > .module-breadcrumb {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 42px !important;
  margin: 0 0 8px !important;
  padding: 8px 12px !important;
  border: 1px solid var(--registro-line) !important;
  border-left: 4px solid var(--registro-blue) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--registro-muted) !important;
  box-shadow: 0 4px 12px rgba(17, 64, 116, .06) !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios > .module-breadcrumb button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 28px !important;
  width: auto !important;
  padding: 4px 6px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #0f5fc7 !important;
  font-size: .78rem !important;
  font-weight: 850 !important;
  box-shadow: none !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios > .module-breadcrumb button:hover,
body.is-authenticated:not(.report-print-body) #module-registro-usuarios > .module-breadcrumb button:focus-visible {
  background: #e9f4ff !important;
  color: var(--registro-ink) !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios > .module-breadcrumb > i {
  color: #9bb3ca !important;
  font-size: .68rem !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios > .module-breadcrumb b {
  color: var(--registro-ink) !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-user-summary {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-user-summary article {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 64px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--registro-line) !important;
  border-radius: 8px !important;
  background: var(--registro-card) !important;
  color: var(--registro-ink) !important;
  box-shadow: none !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-user-summary i {
  display: grid !important;
  width: 38px !important;
  height: 38px !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: #e9f4ff !important;
  color: var(--registro-blue) !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-user-summary span {
  color: var(--registro-muted) !important;
  font-size: .74rem !important;
  font-weight: 850 !important;
  text-transform: uppercase !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-user-summary b {
  justify-self: end !important;
  color: var(--registro-ink) !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-tabs {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 6px !important;
  border: 1px solid var(--registro-line) !important;
  border-radius: 10px !important;
  background: #eaf3fb !important;
  box-shadow: none !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-tabs button {
  min-height: 40px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #315277 !important;
  font-weight: 850 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-tabs button.active {
  background: #fff !important;
  color: var(--registro-blue) !important;
  box-shadow: 0 4px 10px rgba(20, 70, 125, .1) !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .modulo-registro-usuarios,
body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-user-card,
body.is-authenticated:not(.report-print-body) #module-registro-usuarios .panel-listado {
  width: 100% !important;
  min-width: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-user-card,
body.is-authenticated:not(.report-print-body) #module-registro-usuarios .panel-listado {
  display: grid !important;
  gap: 14px !important;
  padding: 16px !important;
  border: 1px solid var(--registro-line) !important;
  border-radius: 10px !important;
  background: var(--registro-card) !important;
  box-shadow: 0 8px 20px rgba(19, 58, 105, .07) !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-panel-head,
body.is-authenticated:not(.report-print-body) #module-registro-usuarios .drawer-head {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid #e4edf6 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-panel-icon {
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  place-items: center !important;
  border-radius: 12px !important;
  background: #e9f4ff !important;
  color: var(--registro-blue) !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-panel-head h3,
body.is-authenticated:not(.report-print-body) #module-registro-usuarios .drawer-head h3 {
  margin: 0 !important;
  color: var(--registro-ink) !important;
  font-size: 1.05rem !important;
  line-height: 1.15 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-panel-head small,
body.is-authenticated:not(.report-print-body) #module-registro-usuarios .drawer-head small,
body.is-authenticated:not(.report-print-body) #module-registro-usuarios .drawer-head span {
  color: var(--registro-muted) !important;
  font-size: .76rem !important;
  font-weight: 750 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-user-form {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  margin: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-form-section,
body.is-authenticated:not(.report-print-body) #module-registro-usuarios .docente-headship-panel,
body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-permissions {
  display: grid !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 1px solid #dbe8f3 !important;
  border-radius: 9px !important;
  background: #f8fbfe !important;
  box-shadow: none !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-form-section header,
body.is-authenticated:not(.report-print-body) #module-registro-usuarios .docente-headship-panel legend {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  color: var(--registro-ink) !important;
  font-size: .85rem !important;
  font-weight: 900 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-fields {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios label {
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
  color: #24496f !important;
  font-size: .75rem !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios label.full {
  grid-column: 1 / -1 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios :is(input, select, textarea) {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
  border: 1px solid #b8cde0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #102a43 !important;
  font-size: .82rem !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-password-control {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: center !important;
  min-width: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-password-control .btn-soft {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 96px !important;
  min-height: 38px !important;
  padding: 8px 11px !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios textarea {
  min-height: 78px !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios select[multiple] {
  min-height: 96px !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .function-check-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: 8px !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .check-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 38px !important;
  padding: 8px 10px !important;
  border: 1px solid #dbe8f3 !important;
  border-radius: 8px !important;
  background: #fff !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .check-row input {
  width: 16px !important;
  min-height: 16px !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-permissions summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  cursor: pointer !important;
  color: var(--registro-ink) !important;
  font-weight: 900 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-permissions summary small {
  color: var(--registro-muted) !important;
  font-size: .72rem !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .permission-panel {
  margin-top: 10px !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-form-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-form-actions button {
  min-height: 40px !important;
  border-radius: 8px !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .usuarios-table-desktop .table-wrap {
  border: 1px solid #dbe8f3 !important;
  border-radius: 9px !important;
  background: #fff !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .tabla-usuarios th {
  background: #eff6fd !important;
  color: #214365 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .usuario-edit-drawer {
  position: static !important;
  max-width: none !important;
}

@media (max-width: 1180px) {
  body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-fields,
  body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-user-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-tabs,
  body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-fields,
  body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-user-summary {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-panel-head,
  body.is-authenticated:not(.report-print-body) #module-registro-usuarios .drawer-head {
    grid-template-columns: 40px minmax(0, 1fr) !important;
  }
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios > .registro-user-summary.registro-user-summary {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  width: 100% !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios > .registro-user-summary.registro-user-summary > article {
  width: auto !important;
  min-width: 0 !important;
}

@media (max-width: 1180px) {
  body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios > .registro-user-summary.registro-user-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios > .registro-user-summary.registro-user-summary {
    grid-template-columns: 1fr !important;
  }
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios form.form-grid.registro-user-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios form.registro-user-form > :is(.registro-form-section, .docente-headship-panel, .registro-permissions, .registro-form-actions) {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios form.registro-user-form .registro-form-section > .registro-fields {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios form.registro-user-form .registro-fields > label {
  min-width: 0 !important;
}

@media (max-width: 1120px) {
  body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios form.registro-user-form .registro-form-section > .registro-fields {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios form.registro-user-form .registro-form-section > .registro-fields {
    grid-template-columns: 1fr !important;
  }
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-picker-field {
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-picker-label {
  color: #24496f !important;
  font-size: .75rem !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-native-multi {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-select-box {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 24px !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 8px 10px !important;
  border: 1px solid #b8cde0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #102a43 !important;
  text-align: left !important;
  box-shadow: none !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registro-select-box span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios [data-head-course-wrap].is-disabled {
  opacity: .58 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios [data-head-course-wrap].is-disabled select {
  background: #edf3f8 !important;
  cursor: not-allowed !important;
}

.registro-picker-overlay,
.registro-users-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 30000 !important;
  display: grid !important;
  place-items: center !important;
  padding: 22px !important;
  background: rgba(6, 18, 37, .46) !important;
  backdrop-filter: blur(5px) !important;
}

.registro-picker-modal {
  width: min(680px, 96vw) !important;
  max-height: min(720px, 88vh) !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  gap: 12px !important;
  padding: 16px !important;
  border: 1px solid #b9d7ee !important;
  border-radius: 12px !important;
  background: #f8fbff !important;
  box-shadow: 0 24px 60px rgba(1, 19, 45, .28) !important;
}

.registro-picker-modal header,
.registro-users-modal header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

.registro-picker-modal header h3,
.registro-users-modal header h3 {
  margin: 0 !important;
  line-height: 1.1 !important;
}

.registro-picker-modal header span,
.registro-users-modal header span {
  color: #1479f6 !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

.registro-icon-close {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #cfe0ef !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #0b2b5f !important;
}

.registro-picker-search {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 10px !important;
  border: 1px solid #cfe0ef !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.registro-picker-search input {
  min-height: 32px !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
}

.registro-picker-list {
  display: grid !important;
  gap: 8px !important;
  overflow: auto !important;
  padding-right: 4px !important;
}

.registro-picker-option {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 38px !important;
  padding: 8px 10px !important;
  border: 1px solid #dbe8f3 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #14365f !important;
  font-size: .84rem !important;
  font-weight: 760 !important;
}

.registro-picker-option span {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}

.registro-picker-modal footer {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

.registro-users-modal {
  width: min(1180px, 97vw) !important;
  max-height: calc(100vh - 118px) !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  gap: 14px !important;
  padding: 16px !important;
  border: 1px solid rgba(125, 211, 252, .42) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #071827, #102a43 42%, #0f3f4d) !important;
  color: #eef9ff !important;
  box-shadow: 0 28px 70px rgba(0, 14, 32, .42) !important;
}

.registro-users-overlay {
  place-items: start center !important;
  padding-top: 78px !important;
}

.registro-users-modal header h3 {
  color: #fff !important;
}

.registro-users-modal header small {
  color: #b8d9e8 !important;
  font-weight: 750 !important;
}

.registro-users-filters {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  gap: 10px !important;
}

.registro-users-filters label {
  display: grid !important;
  gap: 5px !important;
  color: #cdefff !important;
  font-size: .74rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

.registro-users-filters input {
  min-height: 38px !important;
  width: 100% !important;
  border: 1px solid rgba(190, 235, 255, .32) !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, .96) !important;
  color: #0d2945 !important;
  font-size: .86rem !important;
  text-transform: none !important;
}

.registro-users-table-wrap {
  overflow: auto !important;
  border: 1px solid rgba(190, 235, 255, .2) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .96) !important;
}

.registro-users-table {
  width: 100% !important;
  min-width: 860px !important;
  table-layout: auto !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.registro-users-table th,
.registro-users-table td {
  width: auto !important;
  padding: 10px 12px !important;
  border-bottom: 1px solid #dbe8f3 !important;
  color: #0d2945 !important;
  font-size: .82rem !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

.registro-users-table th {
  position: sticky !important;
  top: 0 !important;
  z-index: 1 !important;
  background: #e8f4ff !important;
  color: #153b66 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

.registro-users-table .registry-name {
  min-width: 220px !important;
  white-space: normal !important;
}

.registro-users-table .registry-name b,
.registro-users-table .registry-name small {
  display: block !important;
}

.registro-users-table .registry-name small {
  color: #5a718d !important;
  font-size: .72rem !important;
}

.registro-users-table code {
  padding: 3px 6px !important;
  border-radius: 7px !important;
  background: #eff6fd !important;
  color: #0b2b5f !important;
  font-family: inherit !important;
  font-weight: 850 !important;
}

.registro-users-table .registry-actions-cell {
  width: 1% !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.registry-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.registry-icon {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 !important;
  border-radius: 8px !important;
  color: #fff !important;
  border: 0 !important;
}

.registry-icon.action-edit { background: #2563eb !important; }
.registry-icon.action-delete { background: #dc2626 !important; }
.registry-icon.action-deactivate { background: #b45309 !important; }

@media (max-width: 720px) {
  .registro-users-overlay {
    padding: 70px 10px 12px !important;
  }

  .registro-users-modal {
    max-height: calc(100vh - 92px) !important;
    padding: 12px !important;
  }

  .registro-users-filters {
    grid-template-columns: 1fr !important;
  }
}

/* Responsive QA 2026-08-10: escritorio, notebook y pantallas medianas. */
body.is-authenticated:not(.report-print-body) {
  overflow-x: hidden !important;
}

body.is-authenticated:not(.report-print-body) #appMain {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding-left: clamp(16px, 2.4vw, 36px) !important;
  padding-right: clamp(16px, 2.4vw, 36px) !important;
}

body.is-authenticated:not(.report-print-body) #appMain .module.active {
  width: 100% !important;
  max-width: 1760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.is-authenticated:not(.report-print-body) #appMain .module > :is(section, .card, .panel-listado, .module-head, .module-breadcrumb, nav) {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.is-authenticated:not(.report-print-body) #appMain .module-head.module-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 14px !important;
}

body.is-authenticated:not(.report-print-body) #appMain .module-actions-inline,
body.is-authenticated:not(.report-print-body) #appMain .module-hero-actions,
body.is-authenticated:not(.report-print-body) #appMain .form-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.is-authenticated:not(.report-print-body) #appMain .module-hero-actions {
  justify-content: flex-end !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.grid, .cards-grid, .dashboard-grid, .report-card-grid, .teacher-dash-grid, .head-teacher-content-grid, .access-suggestion-grid, .function-check-grid, .teacher-check-grid) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.form-grid, .filter-grid, .users-filter-row, .mini-toolbar, .report-controls, .report-options, .report-massive-options, .table-tools) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.form-grid, .filter-grid, .users-filter-row, .mini-toolbar, .report-controls, .report-options, .report-massive-options, .table-tools) > :is(.full, .wide) {
  grid-column: 1 / -1 !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.card, .panel-listado, .registro-user-card, .teacher-assignment-card, .portal-card, .school-module-tile, .modern-tile-group) {
  min-width: 0 !important;
  max-width: 100% !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(.table-wrap, .smart-table, .table-scroll, .permission-table-wrap, .grade-table-wrap, .monthly-attendance-table-wrap, .academic-report-table-scroll, .achievement-table-scroll, .usuarios-table-desktop, .registro-users-table-wrap, .ficha-table-wrapper) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  overscroll-behavior-inline: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(input, select, textarea, button) {
  max-width: 100% !important;
}

body.is-authenticated:not(.report-print-body) #module-inicio .home-header {
  max-width: 100% !important;
  overflow: hidden !important;
}

body.is-authenticated:not(.report-print-body) #module-inicio .home-header-summary {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important;
  gap: 10px !important;
  box-sizing: border-box !important;
}

body.is-authenticated:not(.report-print-body) #module-inicio .home-summary-item {
  min-width: 0 !important;
  max-width: 100% !important;
}

body.is-authenticated:not(.report-print-body) #appMain :is(h1, h2, h3, h4, p, small, span, label, button, th, td) {
  min-width: 0 !important;
}

@media (min-width: 1600px) {
  body.is-authenticated:not(.report-print-body) #appMain {
    padding-left: 42px !important;
    padding-right: 42px !important;
  }

  body.is-authenticated:not(.report-print-body) #appMain .module-head.module-hero {
    min-height: 118px !important;
  }
}

@media (max-width: 1180px) {
  body.is-authenticated:not(.report-print-body) #appMain {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body.is-authenticated:not(.report-print-body) #appMain .module-head.module-hero {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  body.is-authenticated:not(.report-print-body) #appMain .module-hero-actions {
    justify-content: flex-start !important;
  }

  body.is-authenticated:not(.report-print-body) #appMain :is(.grid, .cards-grid, .dashboard-grid, .report-card-grid, .teacher-dash-grid, .head-teacher-content-grid, .access-suggestion-grid) {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body.is-authenticated:not(.report-print-body) #appMain {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.is-authenticated:not(.report-print-body) #appMain .module-actions-inline > :is(button, a),
  body.is-authenticated:not(.report-print-body) #appMain .module-hero-actions > :is(button, a),
  body.is-authenticated:not(.report-print-body) #appMain .form-actions > :is(button, a) {
    flex: 1 1 160px !important;
    justify-content: center !important;
  }
}

@media (max-width: 520px) {
  body.is-authenticated:not(.report-print-body) #appMain {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body.is-authenticated:not(.report-print-body) #appMain :is(.form-grid, .filter-grid, .users-filter-row, .mini-toolbar, .report-controls, .report-options, .report-massive-options, .table-tools, .grid, .cards-grid, .dashboard-grid, .report-card-grid) {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated:not(.report-print-body) #appMain .module-actions-inline,
  body.is-authenticated:not(.report-print-body) #appMain .module-hero-actions,
  body.is-authenticated:not(.report-print-body) #appMain .form-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  body.is-authenticated:not(.report-print-body) #appMain .module-actions-inline > :is(button, a),
  body.is-authenticated:not(.report-print-body) #appMain .module-hero-actions > :is(button, a),
  body.is-authenticated:not(.report-print-body) #appMain .form-actions > :is(button, a) {
    width: 100% !important;
  }
}

/* Registro de Usuarios: listado, roles y seguridad responsivos. */
body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .modulo-registro-usuarios,
body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .modulo-registro-usuarios > .panel-listado {
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: stretch !important;
  justify-self: stretch !important;
  align-self: stretch !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .panel-listado > * {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  grid-column: 1 / -1 !important;
  justify-self: stretch !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .users-filter-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 10px !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .user-toolbar {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 190px) minmax(150px, 190px) minmax(120px, 150px) !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .users-filter-row > button {
  width: auto !important;
  min-width: 118px !important;
  min-height: 38px !important;
  align-self: end !important;
  justify-self: end !important;
  padding: 7px 12px !important;
  border-radius: 8px !important;
  font-size: .78rem !important;
  white-space: nowrap !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .registro-users-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  justify-self: stretch !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .registro-users-table {
  width: 100% !important;
  min-width: max(100%, 860px) !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .user-role-deck {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .user-role-card {
  min-width: 0 !important;
  min-height: 86px !important;
  padding: 10px !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .security-user-panel {
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-self: center !important;
  align-self: start !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .modulo-registro-usuarios > .panel-listado.security-user-panel {
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  justify-self: center !important;
}

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .security-user-panel form {
  grid-template-columns: 1fr !important;
}

@media (max-width: 1280px) {
  body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .user-role-deck {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .users-filter-row {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .user-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .users-filter-row > button {
    justify-self: start !important;
  }

  body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .user-role-deck {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .user-toolbar,
  body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .user-role-deck {
    grid-template-columns: 1fr !important;
  }

body.is-authenticated:not(.report-print-body) #appMain #module-registro-usuarios .users-filter-row > button {
    width: auto !important;
    min-width: 0 !important;
  }
}

/* Informes: organizacion visual de controles sin modificar la cabecera azul. */
body.is-authenticated:not(.report-print-body) #module-informes .report-workspace {
  display: grid !important;
  gap: 14px !important;
  margin: 14px 0 18px !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-config-grid {
  display: grid !important;
  grid-template-columns: minmax(300px, .86fr) minmax(560px, 1.34fr) !important;
  gap: 12px !important;
  align-items: start !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-config-card {
  display: grid !important;
  gap: 12px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 1px solid #bdd8e8 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 18px rgba(23, 81, 115, .08) !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-config-head {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 9px !important;
  align-items: center !important;
  min-width: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-config-head > span {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 9px !important;
  color: #0f5f89 !important;
  background: #e8f6fd !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-config-head h3 {
  margin: 0 !important;
  color: #102a5c !important;
  font-size: .98rem !important;
  line-height: 1.15 !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-config-head small {
  display: block !important;
  margin-top: 2px !important;
  color: #52708f !important;
  font-size: .72rem !important;
  line-height: 1.25 !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-course-card .course-context {
  display: grid !important;
  gap: 10px !important;
  min-height: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-course-card .course-context-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: stretch !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-course-card .course-context-meta {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #d7e8f5 !important;
  border-radius: 9px !important;
  background: #f7fbff !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-course-card .course-context-meta b {
  color: #102a5c !important;
  font-size: .84rem !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-course-card .course-context-meta small {
  color: #5d7894 !important;
  font-size: .7rem !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-course-card .course-context-actions,
body.is-authenticated:not(.report-print-body) #module-informes .report-inline-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-items: end !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-filter-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;
  gap: 9px !important;
  align-items: end !important;
  margin: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-filter-grid label {
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: #24496f !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-filter-grid select,
body.is-authenticated:not(.report-print-body) #module-informes .report-course-card select {
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  border: 1px solid #b8d7ea !important;
  border-radius: 9px !important;
  background-color: #fbfdff !important;
  color: #0f2f57 !important;
  font-size: .78rem !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-inline-actions {
  grid-column: span 2 !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-inline-actions button,
body.is-authenticated:not(.report-print-body) #module-informes .report-course-card .course-context-actions button {
  min-height: 38px !important;
  padding: 8px 10px !important;
  border-radius: 9px !important;
  justify-content: center !important;
  font-size: .76rem !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-type-card {
  padding-bottom: 10px !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .layout-report-actions {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .layout-report-actions button {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-items: start !important;
  min-height: 42px !important;
  padding: 8px 10px !important;
  border-radius: 9px !important;
  font-size: .78rem !important;
  text-align: left !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-observation-editor {
  margin: 0 !important;
  border-color: #bdd8e8 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 18px rgba(23, 81, 115, .07) !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-insights {
  margin: 0 !important;
}

@media (max-width: 1180px) {
  body.is-authenticated:not(.report-print-body) #module-informes .report-config-grid {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated:not(.report-print-body) #module-informes .report-filter-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr)) !important;
  }
}

@media (max-width: 780px) {
  body.is-authenticated:not(.report-print-body) #module-informes .report-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.is-authenticated:not(.report-print-body) #module-informes .report-inline-actions,
  body.is-authenticated:not(.report-print-body) #module-informes .report-course-card .course-context-actions {
    grid-column: 1 / -1 !important;
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 520px) {
  body.is-authenticated:not(.report-print-body) #module-informes .report-filter-grid,
  body.is-authenticated:not(.report-print-body) #module-informes .layout-report-actions {
    grid-template-columns: 1fr !important;
  }
}

body.auth-pending .login-screen,
body.auth-pending .app-shell,
body.auth-pending .statusbar {
  display: none !important;
}

body.auth-pending::before {
  content: "Restaurando sesion...";
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  background: #f3f8fc;
  color: #102a5c;
  font: 800 1rem/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* UTP compacto: organizacion visual sin alterar datos ni calculos */
body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-shell {
  display: grid !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: none !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-height: 48px !important;
  padding: 10px 12px !important;
  border: 1px solid #d8e6f1 !important;
  border-left: 5px solid #0ea5a7 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f2f8ff 100%) !important;
  box-shadow: 0 8px 22px rgba(15, 42, 83, .07) !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-title h2 {
  margin: 0 !important;
  color: #0b2a5b !important;
  font-size: 1.05rem !important;
  line-height: 1.1 !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-title span {
  color: #315777 !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  text-align: right !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-access {
  display: grid !important;
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  gap: 7px !important;
  margin: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-access button {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  min-height: 38px !important;
  padding: 7px 8px !important;
  border: 1px solid #cfe0ef !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #12325c !important;
  box-shadow: 0 5px 14px rgba(15, 42, 83, .06) !important;
  font-size: .73rem !important;
  font-weight: 850 !important;
  text-align: left !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-access button i {
  color: #0ea5a7 !important;
  font-size: .86rem !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-access button span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-access button.active {
  border-color: #0ea5a7 !important;
  background: linear-gradient(135deg, #e9fbfb 0%, #ffffff 100%) !important;
  box-shadow: inset 0 -3px 0 #0ea5a7, 0 8px 18px rgba(14, 165, 167, .12) !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-filter-bar {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 9px !important;
  border: 1px solid #d9e8f2 !important;
  border-radius: 12px !important;
  background: #f8fcff !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-filter-bar label {
  display: grid !important;
  gap: 4px !important;
  margin: 0 !important;
  color: #24496f !important;
  font-size: .72rem !important;
  font-weight: 850 !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-filter-bar select {
  width: 100% !important;
  min-width: 0 !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 6px 9px !important;
  border: 1px solid #b9d4e7 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #0f2f57 !important;
  font-size: .78rem !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-kpis,
body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-kpis article,
body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-summary-grid article {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
  min-height: 58px !important;
  padding: 9px 10px !important;
  border: 1px solid #dbe8f2 !important;
  border-radius: 11px !important;
  background: #fff !important;
  box-shadow: 0 7px 18px rgba(15, 42, 83, .06) !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-kpis article span,
body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-summary-grid article span {
  color: #55718d !important;
  font-size: .68rem !important;
  font-weight: 850 !important;
  text-transform: uppercase !important;
  letter-spacing: .02em !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-kpis article b,
body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-summary-grid article b {
  color: #0b2a5b !important;
  font-size: 1rem !important;
  line-height: 1.1 !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-students-panel,
body.is-authenticated:not(.report-print-body) #module-utp .utp-student-diagnosis-panel,
body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-detail-panel {
  margin: 0 !important;
  padding: 12px !important;
  border-radius: 12px !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-head,
body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-detail-head,
body.is-authenticated:not(.report-print-body) #module-utp .utp-diagnosis-picker {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-head h3,
body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-detail-head h3,
body.is-authenticated:not(.report-print-body) #module-utp .utp-diagnosis-picker h3 {
  margin: 0 !important;
  font-size: .96rem !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-head small,
body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-detail-head small,
body.is-authenticated:not(.report-print-body) #module-utp .utp-diagnosis-picker small {
  color: #5c7893 !important;
  font-size: .72rem !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 0 9px !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-tabs button {
  min-height: 36px !important;
  padding: 7px 10px !important;
  border-radius: 9px !important;
  font-size: .76rem !important;
  justify-content: center !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-summary-cards {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 7px !important;
  margin: 0 0 10px !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-summary-cards span {
  min-height: 42px !important;
  padding: 7px 8px !important;
  border-radius: 9px !important;
  font-size: .7rem !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-summary-cards b {
  font-size: .98rem !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
}

body.is-authenticated:not(.report-print-body) #module-utp table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: auto !important;
}

body.is-authenticated:not(.report-print-body) #module-utp th,
body.is-authenticated:not(.report-print-body) #module-utp td {
  padding: 7px 8px !important;
  font-size: .75rem !important;
  line-height: 1.3 !important;
  vertical-align: top !important;
}

body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-row-btn {
  min-height: 30px !important;
  padding: 5px 8px !important;
  border-radius: 8px !important;
  font-size: .7rem !important;
  white-space: nowrap !important;
}

body.is-authenticated:not(.report-print-body) .utp-student-risk-overlay {
  padding: 14px !important;
  align-items: center !important;
}

body.is-authenticated:not(.report-print-body) .utp-student-risk-modal {
  width: min(1060px, calc(100vw - 28px)) !important;
  max-height: calc(100vh - 28px) !important;
  border-radius: 14px !important;
}

body.is-authenticated:not(.report-print-body) .utp-student-risk-body {
  max-height: calc(100vh - 110px) !important;
  overflow: auto !important;
}

body.is-authenticated:not(.report-print-body) .utp-student-risk-print header,
body.is-authenticated:not(.report-print-body) .utp-risk-print-kpis,
body.is-authenticated:not(.report-print-body) .utp-student-risk-two {
  gap: 8px !important;
}

body.is-authenticated:not(.report-print-body) .utp-risk-print-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 1180px) {
  body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-access {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-kpis,
  body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-summary-grid,
  body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-summary-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-title,
  body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-head,
  body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-detail-head,
  body.is-authenticated:not(.report-print-body) #module-utp .utp-diagnosis-picker {
    display: grid !important;
    text-align: left !important;
  }

  body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-title span {
    text-align: left !important;
  }

  body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-access,
  body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-filter-bar,
  body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-kpis,
  body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-summary-grid,
  body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-summary-cards,
  body.is-authenticated:not(.report-print-body) .utp-risk-print-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-tabs {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 520px) {
  body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-access,
  body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-filter-bar,
  body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-kpis,
  body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-summary-grid,
  body.is-authenticated:not(.report-print-body) #module-utp .utp-risk-summary-cards,
  body.is-authenticated:not(.report-print-body) .utp-risk-print-kpis {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated:not(.report-print-body) #module-utp .utp-compact-access button {
    min-height: 36px !important;
  }

  body.is-authenticated:not(.report-print-body) .utp-student-risk-overlay {
    padding: 8px !important;
  }

  body.is-authenticated:not(.report-print-body) .utp-student-risk-modal {
    width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px) !important;
  }
}

/* Asistencia diaria tipo leccionario: compacto, responsive y sin cambiar datos historicos */
body.is-authenticated:not(.report-print-body) #module-asistencia .attendance-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 0 8px !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .attendance-tabs button {
  min-height: 38px !important;
  border: 1px solid #bdd7c8 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #14532d !important;
  font-size: .8rem !important;
  font-weight: 850 !important;
  box-shadow: 0 6px 16px rgba(20, 83, 45, .07) !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .attendance-tabs button.active {
  border-color: #15803d !important;
  background: linear-gradient(135deg, #e9fbe8 0%, #ffffff 100%) !important;
  box-shadow: inset 0 -3px 0 #15803d, 0 8px 18px rgba(21, 128, 61, .12) !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-panel {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, .55fr) minmax(120px, .55fr) minmax(140px, .65fr) minmax(260px, 1.4fr) !important;
  gap: 8px !important;
  align-items: end !important;
  padding: 10px !important;
  border: 1px solid #d7e7dc !important;
  border-radius: 12px !important;
  background: #f8fcf9 !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-panel label {
  display: grid !important;
  gap: 4px !important;
  color: #244b34 !important;
  font-size: .72rem !important;
  font-weight: 850 !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-panel select {
  height: 36px !important;
  min-height: 36px !important;
  border: 1px solid #bad7c6 !important;
  border-radius: 9px !important;
  background: #fff !important;
  font-size: .78rem !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-actions button {
  min-height: 36px !important;
  padding: 7px 9px !important;
  border-radius: 9px !important;
  font-size: .72rem !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-sheet {
  padding: 10px !important;
  border-color: #cfe3d5 !important;
  background: #fff !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow: auto !important;
  border: 1px solid #d5e4da !important;
  border-radius: 10px !important;
  background: #fff !important;
  max-height: 68vh !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-table {
  width: max-content !important;
  min-width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-table th,
body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-table td {
  min-width: 34px !important;
  width: 34px !important;
  padding: 4px !important;
  border-right: 1px solid #e1ebe5 !important;
  border-bottom: 1px solid #e1ebe5 !important;
  text-align: center !important;
  font-size: .72rem !important;
  line-height: 1.15 !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-table th:first-child,
body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-table td:first-child {
  position: sticky !important;
  left: 0 !important;
  z-index: 4 !important;
  min-width: 44px !important;
  width: 44px !important;
  background: #f1f8f3 !important;
  font-weight: 850 !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-table th:nth-child(2),
body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-table td:nth-child(2) {
  position: sticky !important;
  left: 44px !important;
  z-index: 4 !important;
  min-width: 210px !important;
  width: 210px !important;
  text-align: left !important;
  background: #ffffff !important;
  box-shadow: 1px 0 0 #cfded5 !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 5 !important;
  background: #dff1e6 !important;
  color: #14532d !important;
  font-weight: 900 !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-table thead th:first-child,
body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-table thead th:nth-child(2) {
  z-index: 7 !important;
  background: #cfe9d8 !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-day-head b,
body.is-authenticated:not(.report-print-body) #module-asistencia .daily-day-head small {
  display: block !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-day-head small {
  margin-top: 2px !important;
  color: #52745d !important;
  font-size: .62rem !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-day-head.is-blocked,
body.is-authenticated:not(.report-print-body) #module-asistencia .daily-att-cell.is-blocked {
  background: repeating-linear-gradient(135deg, #edf2ef 0, #edf2ef 5px, #e3e9e5 5px, #e3e9e5 10px) !important;
  color: #7a8b80 !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-input {
  width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  border: 1px solid #cbded1 !important;
  border-radius: 6px !important;
  text-align: center !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-att-cell.is-present .daily-attendance-input {
  border-color: #86c79d !important;
  background: #ecfdf3 !important;
  color: #166534 !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-att-cell.is-absent .daily-attendance-input {
  border-color: #f3a8a8 !important;
  background: #fff1f1 !important;
  color: #b91c1c !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-att-cell.is-simulated .daily-attendance-input {
  border-style: dashed !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-block-mark {
  display: inline-grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 6px !important;
  background: rgba(100, 116, 139, .12) !important;
  color: #64748b !important;
  font-weight: 900 !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-student-name {
  color: #143722 !important;
  font-weight: 850 !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-student-name small {
  display: block !important;
  margin-top: 2px !important;
  color: #a16207 !important;
  font-size: .62rem !important;
  font-weight: 800 !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-total {
  min-width: 62px !important;
  width: 62px !important;
  background: #f7fbf8 !important;
  font-weight: 900 !important;
}

body.is-authenticated:not(.report-print-body) #module-asistencia .daily-total.present { color: #166534 !important; }
body.is-authenticated:not(.report-print-body) #module-asistencia .daily-total.absent { color: #b91c1c !important; }
body.is-authenticated:not(.report-print-body) #module-asistencia .daily-total.percent { color: #0f3d68 !important; }

@media (max-width: 980px) {
  body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-actions {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 560px) {
  body.is-authenticated:not(.report-print-body) #module-asistencia .attendance-tabs,
  body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-panel,
  body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-actions {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-table th:nth-child(2),
  body.is-authenticated:not(.report-print-body) #module-asistencia .daily-attendance-table td:nth-child(2) {
    min-width: 168px !important;
    width: 168px !important;
  }
}

/* Registro/Usuarios: acciones alineadas en una sola fila y con tamano uniforme. */
body.is-authenticated:not(.report-print-body) #module-registro-usuarios .actions-cell,
body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registry-actions-cell,
body.is-authenticated:not(.report-print-body) #module-usuarios .actions-cell,
body.is-authenticated:not(.report-print-body) #module-configuracion .actions-cell {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  width: auto !important;
  min-width: 188px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .actions-cell button,
body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registry-actions-cell button,
body.is-authenticated:not(.report-print-body) #module-usuarios .actions-cell button,
body.is-authenticated:not(.report-print-body) #module-configuracion .actions-cell button {
  flex: 0 0 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 9px !important;
  line-height: 1 !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .actions-cell button i,
body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registry-actions-cell button i,
body.is-authenticated:not(.report-print-body) #module-usuarios .actions-cell button i,
body.is-authenticated:not(.report-print-body) #module-configuracion .actions-cell button i {
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  font-size: 14px !important;
  line-height: 16px !important;
  margin: 0 !important;
  text-align: center !important;
}

body.is-authenticated:not(.report-print-body) #module-registro-usuarios .actions-cell button span,
body.is-authenticated:not(.report-print-body) #module-registro-usuarios .registry-actions-cell button span,
body.is-authenticated:not(.report-print-body) #module-usuarios .actions-cell button span,
body.is-authenticated:not(.report-print-body) #module-configuracion .actions-cell button span {
  display: none !important;
}
/* Estudiantes: tabla compacta con acciones en fila. */
body.is-authenticated:not(.report-print-body) #module-estudiantes .table-wrap {
  overflow-x: auto !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table {
  width: 100% !important;
  min-width: 760px !important;
  table-layout: fixed !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table th,
body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td {
  vertical-align: middle !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table th:nth-child(1),
body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td:nth-child(1) {
  width: 36% !important;
  max-width: 36% !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table th:nth-child(2),
body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td:nth-child(2) {
  width: 14% !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table th:nth-child(3),
body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td:nth-child(3) {
  width: 14% !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table th:nth-child(4),
body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td:nth-child(4) {
  width: 16% !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table th:nth-child(5),
body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td:nth-child(5) {
  width: 20% !important;
  min-width: 210px !important;
  text-align: right !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td:first-child b {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-weight: 700 !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .actions-cell,
body.is-authenticated:not(.report-print-body) #module-estudiantes .student-icon-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  width: 100% !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .student-icon-actions .icon-only-btn,
body.is-authenticated:not(.report-print-body) #module-estudiantes .actions-cell button {
  flex: 0 0 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 9px !important;
  line-height: 1 !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .student-icon-actions .icon-only-btn i,
body.is-authenticated:not(.report-print-body) #module-estudiantes .actions-cell button i {
  width: 15px !important;
  min-width: 15px !important;
  height: 15px !important;
  font-size: 13px !important;
  line-height: 15px !important;
  margin: 0 !important;
  text-align: center !important;
}

@media (max-width: 900px) {
  body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table {
    min-width: 720px !important;
  }

  body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table th:nth-child(1),
  body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td:nth-child(1) {
    width: 32% !important;
    max-width: 32% !important;
  }

  body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table th:nth-child(5),
  body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td:nth-child(5) {
    width: 190px !important;
    min-width: 190px !important;
  }
}
/* Tablas globales: acciones en fila y columnas proporcionadas. */
body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.actions-cell),
body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.registry-actions-cell) {
  width: 100% !important;
  min-width: 780px !important;
  table-layout: fixed !important;
}

body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.actions-cell) th,
body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.actions-cell) td,
body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.registry-actions-cell) th,
body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.registry-actions-cell) td {
  vertical-align: middle !important;
}

body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.actions-cell) th:first-child,
body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.actions-cell) td:first-child,
body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.registry-actions-cell) th:first-child,
body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.registry-actions-cell) td:first-child {
  width: 24% !important;
  max-width: 24% !important;
}

body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.actions-cell) th:last-child,
body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.actions-cell) td:last-child,
body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.registry-actions-cell) th:last-child,
body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.registry-actions-cell) td:last-child {
  width: 230px !important;
  min-width: 230px !important;
  max-width: 230px !important;
  text-align: right !important;
  white-space: nowrap !important;
}

body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.actions-cell) td:first-child :is(b, strong, .nombre-usuario, .registry-name b),
body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.registry-actions-cell) td:first-child :is(b, strong, .nombre-usuario, .registry-name b) {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.is-authenticated:not(.report-print-body) #appMain .actions-cell,
body.is-authenticated:not(.report-print-body) #appMain .registry-actions-cell,
body.is-authenticated:not(.report-print-body) #appMain :is(.student-icon-actions, .staff-icon-actions, .course-icon-actions, .utp-risk-actions, .registry-actions) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

body.is-authenticated:not(.report-print-body) #appMain .actions-cell button,
body.is-authenticated:not(.report-print-body) #appMain .registry-actions-cell button,
body.is-authenticated:not(.report-print-body) #appMain :is(.student-icon-actions, .staff-icon-actions, .course-icon-actions, .utp-risk-actions, .registry-actions) button {
  flex: 0 0 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 9px !important;
  line-height: 1 !important;
  overflow: hidden !important;
}

body.is-authenticated:not(.report-print-body) #appMain .actions-cell button i,
body.is-authenticated:not(.report-print-body) #appMain .registry-actions-cell button i,
body.is-authenticated:not(.report-print-body) #appMain :is(.student-icon-actions, .staff-icon-actions, .course-icon-actions, .utp-risk-actions, .registry-actions) button i {
  width: 15px !important;
  min-width: 15px !important;
  height: 15px !important;
  font-size: 13px !important;
  line-height: 15px !important;
  margin: 0 !important;
  text-align: center !important;
}

body.is-authenticated:not(.report-print-body) #appMain .actions-cell button span,
body.is-authenticated:not(.report-print-body) #appMain .registry-actions-cell button span,
body.is-authenticated:not(.report-print-body) #appMain :is(.student-icon-actions, .staff-icon-actions, .course-icon-actions, .utp-risk-actions, .registry-actions) button span {
  display: none !important;
}

body.is-authenticated:not(.report-print-body) #appMain .course-icon-actions .course-assign-button {
  flex-basis: 42px !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
}

@media (max-width: 900px) {
  body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.actions-cell),
  body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.registry-actions-cell) {
    min-width: 720px !important;
  }

  body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.actions-cell) th:first-child,
  body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.actions-cell) td:first-child,
  body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.registry-actions-cell) th:first-child,
  body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.registry-actions-cell) td:first-child {
    width: 22% !important;
    max-width: 22% !important;
  }

  body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.actions-cell) th:last-child,
  body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.actions-cell) td:last-child,
  body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.registry-actions-cell) th:last-child,
  body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.registry-actions-cell) td:last-child {
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
  }
}
/* Libro Pedagogico: AutoPlanificador integrado y cobertura curricular. */
body.is-authenticated:not(.report-print-body) #module-libro .planner-quick-tabs {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 8px 0 12px !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-quick-tabs a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 7px 10px !important;
  border: 1px solid #c8d9ee !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7fd 100%) !important;
  color: #0f3a6e !important;
  font-size: .78rem !important;
  font-weight: 850 !important;
  text-decoration: none !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-today-panel,
body.is-authenticated:not(.report-print-body) #module-libro .planner-coverage-panel {
  margin: 10px 0 !important;
  padding: 10px !important;
  border: 1px solid #d8e6f4 !important;
  border-radius: 12px !important;
  background: #fbfdff !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-coverage-kpis {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-coverage-kpis article {
  min-height: 66px !important;
  padding: 10px !important;
  border: 1px solid #dbeafe !important;
  border-radius: 11px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(15, 49, 91, .06) !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-coverage-kpis span {
  display: block !important;
  color: #52667c !important;
  font-size: .68rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .03em !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-coverage-kpis b {
  display: block !important;
  margin-top: 4px !important;
  color: #0f3a6e !important;
  font-size: 1.28rem !important;
  font-weight: 900 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-today-panel .table-wrap,
body.is-authenticated:not(.report-print-body) #module-libro .planner-coverage-panel .table-wrap,
body.is-authenticated:not(.report-print-body) #module-libro #plannerHistory .table-wrap {
  overflow-x: auto !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-today-panel table,
body.is-authenticated:not(.report-print-body) #module-libro .planner-coverage-panel table {
  min-width: 720px !important;
  table-layout: fixed !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-official-validation.blocked {
  border-color: #f5c66f !important;
  background: #fff8e6 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-official-validation.ok {
  border-color: #9bd4b2 !important;
  background: #f0fff5 !important;
}

@media (max-width: 900px) {
  body.is-authenticated:not(.report-print-body) #module-libro .planner-quick-tabs,
  body.is-authenticated:not(.report-print-body) #module-libro .planner-coverage-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  body.is-authenticated:not(.report-print-body) #module-libro .planner-quick-tabs,
  body.is-authenticated:not(.report-print-body) #module-libro .planner-coverage-kpis {
    grid-template-columns: 1fr !important;
  }
}
/* AutoPlanificador: vista hoja central similar referencia. */
body.is-authenticated:not(.report-print-body) #module-libro .entity-layout-wide {
  display: block !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .auto-planner.card {
  display: grid !important;
  grid-template-columns: 320px minmax(620px, 920px) !important;
  align-items: start !important;
  justify-content: center !important;
  gap: 34px !important;
  padding: 18px !important;
  border: 0 !important;
  background: linear-gradient(90deg, #eef7fb 0, #f6fbfe 24%, #dce9ef 24%, #dce9ef 100%) !important;
  box-shadow: none !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-hero,
body.is-authenticated:not(.report-print-body) #module-libro .planner-assistant-steps,
body.is-authenticated:not(.report-print-body) #module-libro .planner-secondary-section,
body.is-authenticated:not(.report-print-body) #module-libro .planner-official-validation {
  display: none !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-today-panel,
body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form,
body.is-authenticated:not(.report-print-body) #module-libro .planner-saved {
  grid-column: 1 !important;
  width: 100% !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 1px solid #b9d8e8 !important;
  border-radius: 8px !important;
  background: #f8fdff !important;
  overflow: hidden !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 12px !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form::before {
  content: "Curriculum y calendario" !important;
  grid-column: 1 / -1 !important;
  margin: -12px -12px 4px !important;
  padding: 10px 12px !important;
  background: #dff2fa !important;
  color: #073a4a !important;
  font-weight: 900 !important;
  font-size: .86rem !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form > label,
body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form fieldset {
  min-width: 0 !important;
  margin: 0 !important;
  font-size: .7rem !important;
  font-weight: 900 !important;
  color: #0b4050 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form > label:nth-of-type(1),
body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form > label:nth-of-type(2),
body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form > label:nth-of-type(3),
body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .full,
body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .form-actions {
  grid-column: 1 / -1 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form input,
body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form select {
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 6px 8px !important;
  border: 1px solid #bdd9e8 !important;
  border-radius: 6px !important;
  background: #fff !important;
  font-size: .78rem !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .planner-checks {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 8px !important;
  border: 1px solid #c7dfec !important;
  border-radius: 7px !important;
  background: #f4fbff !important;
  max-height: 210px !important;
  overflow: auto !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .planner-checks.full {
  max-height: 250px !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .planner-checks legend {
  padding: 0 4px !important;
  color: #0b4050 !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .planner-checks label {
  display: flex !important;
  gap: 6px !important;
  align-items: flex-start !important;
  padding: 7px !important;
  border: 1px solid #cae3ef !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  font-size: .7rem !important;
  line-height: 1.2 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .form-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 7px !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .form-actions button {
  min-height: 34px !important;
  padding: 7px 8px !important;
  border-radius: 7px !important;
  font-size: .76rem !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-today-panel {
  padding: 10px !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document {
  grid-column: 2 !important;
  grid-row: 1 / span 20 !important;
  width: min(100%, 820px) !important;
  margin: 0 auto !important;
  padding: 28px 30px !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  color: #19394a !important;
  box-shadow: 0 22px 60px rgba(18, 60, 80, .18) !important;
  border: 1px solid #d6e6ef !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-head {
  display: grid !important;
  grid-template-columns: 118px minmax(0, 1fr) 240px !important;
  gap: 16px !important;
  align-items: center !important;
  padding: 14px !important;
  border: 1px solid #75b9df !important;
  border-radius: 8px !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-logo {
  height: 104px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px dashed #62b7e2 !important;
  border-radius: 8px !important;
  color: #2b82aa !important;
  font-size: .7rem !important;
  font-weight: 900 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-logo img {
  max-width: 92px !important;
  max-height: 92px !important;
  object-fit: contain !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-head h2 {
  margin: 0 !important;
  color: #073a4a !important;
  font-size: 1.2rem !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-head p,
body.is-authenticated:not(.report-print-body) #module-libro .planner-live-head small {
  margin: 3px 0 !important;
  color: #4e6c7b !important;
  font-size: .72rem !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-meta {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  border: 1px solid #c5e3f2 !important;
  border-radius: 7px !important;
  overflow: hidden !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-meta span,
body.is-authenticated:not(.report-print-body) #module-libro .planner-live-meta b {
  padding: 6px !important;
  border-bottom: 1px solid #d7edf7 !important;
  background: #edf8fd !important;
  font-size: .62rem !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-meta b {
  background: #fff !important;
  font-size: .66rem !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-title {
  margin: 14px 0 10px !important;
  border: 1px solid #75b9df !important;
  border-radius: 8px !important;
  text-align: center !important;
  overflow: hidden !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-title span {
  display: block !important;
  padding: 7px !important;
  background: linear-gradient(90deg, #62badd, #1d78ae) !important;
  color: #fff !important;
  font-size: .76rem !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-title h1 {
  margin: 0 !important;
  padding: 12px !important;
  color: #123d4c !important;
  font-size: 1.12rem !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  border: 1px solid #9dcee6 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-grid article {
  min-height: 58px !important;
  padding: 8px !important;
  border-right: 1px solid #cfe6f2 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-grid span,
body.is-authenticated:not(.report-print-body) #module-libro .planner-live-block-head h3,
body.is-authenticated:not(.report-print-body) #module-libro .planner-live-row b {
  color: #0c4657 !important;
  font-size: .72rem !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-grid b {
  display: block !important;
  margin-top: 5px !important;
  font-size: .74rem !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-block {
  margin-top: 12px !important;
  border: 1px solid #9dcee6 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #fff !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-block-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 9px 11px !important;
  background: #dff2fa !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-block-head h3 {
  margin: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-block-head span {
  padding: 4px 9px !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #0c4657 !important;
  font-size: .68rem !important;
  font-weight: 900 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-oa-chip,
body.is-authenticated:not(.report-print-body) #module-libro .planner-alert-box,
body.is-authenticated:not(.report-print-body) #module-libro .planner-live-alert {
  margin: 10px !important;
  padding: 12px !important;
  border-left: 5px solid #46b4e2 !important;
  border-radius: 8px !important;
  background: #f8fdff !important;
  font-size: .78rem !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-curriculum .planner-live-row {
  display: grid !important;
  grid-template-columns: 160px minmax(0, 1fr) !important;
  border-top: 1px solid #d6eaf4 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-curriculum .planner-live-row:first-child {
  border-top: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-row b,
body.is-authenticated:not(.report-print-body) #module-libro .planner-live-row p {
  margin: 0 !important;
  padding: 11px !important;
  font-size: .74rem !important;
  line-height: 1.35 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-row b {
  background: #eef8fd !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document .planner-dua-matrix {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  border: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document .planner-dua-matrix section {
  font-size: .62rem !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document .table-wrap,
body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document .table-wrap {
  overflow-x: auto !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document table {
  min-width: 720px !important;
  table-layout: fixed !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-text-box,
body.is-authenticated:not(.report-print-body) #module-libro .planner-doc-indicator {
  display: block !important;
  margin-top: 8px !important;
  padding: 8px !important;
  border-radius: 7px !important;
  background: #f2fbff !important;
  border-left: 4px solid #43acd8 !important;
  font-size: .72rem !important;
}

body.is-authenticated:not(.report-print-body) #module-libro #plannerHistory {
  margin-top: 14px !important;
}

@media (max-width: 1120px) {
  body.is-authenticated:not(.report-print-body) #module-libro .auto-planner.card {
    grid-template-columns: 1fr !important;
    background: #eef7fb !important;
  }

  body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document,
  body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form,
  body.is-authenticated:not(.report-print-body) #module-libro .planner-today-panel,
  body.is-authenticated:not(.report-print-body) #module-libro .planner-saved {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

@media (max-width: 680px) {
  body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form,
  body.is-authenticated:not(.report-print-body) #module-libro .planner-live-head,
  body.is-authenticated:not(.report-print-body) #module-libro .planner-live-grid,
  body.is-authenticated:not(.report-print-body) #module-libro .planner-live-curriculum .planner-live-row {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document {
    padding: 14px !important;
  }
}
/* Tablas: columnas ajustadas segun contenido textual. */
body.is-authenticated:not(.report-print-body) #appMain :is(.table-wrap, .planner-live-document, .planner-route-document) table {
  table-layout: auto !important;
}

body.is-authenticated:not(.report-print-body) #appMain table th,
body.is-authenticated:not(.report-print-body) #appMain table td {
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

body.is-authenticated:not(.report-print-body) #appMain table :is(th, td):has(.table-subtext),
body.is-authenticated:not(.report-print-body) #appMain table td:has(b) {
  white-space: normal !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document table,
body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document table {
  width: 100% !important;
  min-width: 680px !important;
  table-layout: auto !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document th:nth-child(1),
body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document td:nth-child(1) {
  width: 92px !important;
  min-width: 84px !important;
  max-width: 110px !important;
  white-space: normal !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document th:nth-child(2),
body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document td:nth-child(2) {
  width: 26% !important;
  min-width: 170px !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document th:nth-child(3),
body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document td:nth-child(3) {
  width: auto !important;
  min-width: 330px !important;
}

body.is-authenticated:not(.report-print-body) #module-libro #plannerHistory table th:nth-child(1),
body.is-authenticated:not(.report-print-body) #module-libro #plannerHistory table td:nth-child(1) {
  width: 112px !important;
  min-width: 100px !important;
  max-width: 130px !important;
}

body.is-authenticated:not(.report-print-body) #module-libro #plannerHistory table th:nth-child(2),
body.is-authenticated:not(.report-print-body) #module-libro #plannerHistory table td:nth-child(2),
body.is-authenticated:not(.report-print-body) #module-libro #plannerHistory table th:nth-child(3),
body.is-authenticated:not(.report-print-body) #module-libro #plannerHistory table td:nth-child(3) {
  width: 140px !important;
  min-width: 120px !important;
  max-width: 170px !important;
}

body.is-authenticated:not(.report-print-body) #module-libro #plannerHistory table th:nth-child(4),
body.is-authenticated:not(.report-print-body) #module-libro #plannerHistory table td:nth-child(4),
body.is-authenticated:not(.report-print-body) #module-libro #plannerHistory table th:nth-child(5),
body.is-authenticated:not(.report-print-body) #module-libro #plannerHistory table td:nth-child(5) {
  width: auto !important;
  min-width: 240px !important;
}

body.is-authenticated:not(.report-print-body) #module-libro #plannerHistory table th:last-child,
body.is-authenticated:not(.report-print-body) #module-libro #plannerHistory table td:last-child {
  width: 132px !important;
  min-width: 132px !important;
  max-width: 150px !important;
}

body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.actions-cell) th:last-child,
body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.actions-cell) td:last-child,
body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.registry-actions-cell) th:last-child,
body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.registry-actions-cell) td:last-child {
  width: max-content !important;
  min-width: 132px !important;
  max-width: 230px !important;
}

body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.actions-cell) th:first-child,
body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.actions-cell) td:first-child,
body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.registry-actions-cell) th:first-child,
body.is-authenticated:not(.report-print-body) #appMain .table-wrap table:has(td.registry-actions-cell) td:first-child {
  width: auto !important;
  max-width: 34ch !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table {
  table-layout: auto !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table th:nth-child(1),
body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td:nth-child(1) {
  width: auto !important;
  max-width: 30ch !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table th:nth-child(2),
body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td:nth-child(2),
body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table th:nth-child(3),
body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td:nth-child(3),
body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table th:nth-child(4),
body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td:nth-child(4) {
  width: 1% !important;
  white-space: nowrap !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table th:nth-child(5),
body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td:nth-child(5) {
  width: 188px !important;
  min-width: 188px !important;
  max-width: 210px !important;
}
/* AutoPlanificador: columnas OA y colores DUA tipo referencia. */
body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document table {
  width: 100% !important;
  min-width: 760px !important;
  table-layout: fixed !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document th,
body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document td {
  vertical-align: top !important;
  overflow-wrap: anywhere !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document th:nth-child(1),
body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document td:nth-child(1) {
  width: 15% !important;
  min-width: 95px !important;
  max-width: 120px !important;
  white-space: normal !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document th:nth-child(2),
body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document td:nth-child(2) {
  width: 32% !important;
  min-width: 230px !important;
  white-space: normal !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document th:nth-child(3),
body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document td:nth-child(3) {
  width: 53% !important;
  min-width: 360px !important;
  white-space: normal !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document td:nth-child(2) b,
body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document td:nth-child(2) small,
body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document td:nth-child(2) .planner-doc-indicator,
body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document td:nth-child(1) b,
body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document td:nth-child(1) small {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document .planner-dua-matrix {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  border: 1px solid #8ec7e7 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document .planner-dua-matrix section {
  margin: 0 !important;
  padding: 0 !important;
  border-right: 1px solid #9ecbe4 !important;
  background: #ffffff !important;
  font-size: .66rem !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document .planner-dua-matrix section:last-child {
  border-right: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document .planner-dua-matrix h4 {
  min-height: 52px !important;
  margin: 0 !important;
  padding: 11px 10px !important;
  color: #122b3b !important;
  font-size: .75rem !important;
  line-height: 1.25 !important;
  font-weight: 950 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document .planner-dua-matrix section:nth-child(1) h4 {
  background: #b9abd0 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document .planner-dua-matrix section:nth-child(2) h4 {
  background: #5d9bd6 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document .planner-dua-matrix section:nth-child(3) h4 {
  background: #8bd047 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document .planner-dua-matrix p {
  display: grid !important;
  grid-template-columns: 18px 30px 1fr !important;
  gap: 5px !important;
  align-items: start !important;
  margin: 0 !important;
  padding: 8px 9px !important;
  border-top: 1px solid #d5e4ee !important;
  color: #183247 !important;
  line-height: 1.28 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document .planner-dua-matrix p:nth-child(4n+2) {
  background: #f7fbfd !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document .planner-dua-matrix section:nth-child(1) p:has(b:nth-child(2)) b,
body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document .planner-dua-matrix p b {
  font-weight: 900 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document .planner-dua-matrix p:has(b:first-of-type) {
  min-height: 28px !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document .planner-dua-matrix span {
  color: #64748b !important;
  font-size: .82rem !important;
  line-height: 1 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document .planner-dua-matrix span.checked {
  color: #0d83ff !important;
  font-weight: 900 !important;
}

@media (max-width: 760px) {
  body.is-authenticated:not(.report-print-body) #module-libro .planner-route-document table {
    min-width: 720px !important;
  }

  body.is-authenticated:not(.report-print-body) #module-libro .planner-live-document .planner-dua-matrix {
    min-width: 720px !important;
  }
}
/* AutoPlanificador: OA y dias legibles al ancho de la columna lateral. */
body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .planner-checks.full {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
  max-height: 285px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .planner-checks.full label {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  align-items: start !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .planner-checks.full label span {
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  line-height: 1.25 !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .planner-checks.full label b {
  display: inline-block !important;
  min-width: 44px !important;
  margin-right: 5px !important;
  vertical-align: top !important;
  white-space: nowrap !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .planner-days {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
  overflow: visible !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .planner-days label {
  display: grid !important;
  place-items: center !important;
  min-width: 0 !important;
  padding: 7px 4px !important;
  text-align: center !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .planner-days label input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .planner-days label span {
  display: block !important;
  width: 100% !important;
  white-space: nowrap !important;
  font-weight: 900 !important;
}
/* AutoPlanificador: campos laterales ocupan todo el ancho de la columna. */
body.is-authenticated:not(.report-print-body) #module-libro .auto-planner.card {
  grid-template-columns: minmax(340px, 380px) minmax(620px, 920px) !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form {
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form > label,
body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form fieldset,
body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .full,
body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .form-actions {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form input,
body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form select,
body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .planner-mode {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-sidebar-form .planner-mode label {
  min-width: 0 !important;
}

@media (max-width: 1120px) {
  body.is-authenticated:not(.report-print-body) #module-libro .auto-planner.card {
    grid-template-columns: 1fr !important;
  }
}
/* Portal del Apoderado: boletin familiar amarillo, blanco y azul. */
body.guardian-login.is-login:not(.is-authenticated) .login-screen {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 205, 59, .35), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(16, 83, 160, .20), transparent 30%),
    linear-gradient(135deg, #fff8d8 0%, #ffffff 44%, #eaf4ff 100%) !important;
}

body.guardian-login.is-login:not(.is-authenticated) .login-panel {
  border: 1px solid rgba(235, 179, 0, .55) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf4 100%) !important;
  box-shadow: 0 24px 55px rgba(118, 83, 0, .20) !important;
}

body.guardian-login.is-login:not(.is-authenticated) #loginLogo,
body.guardian-login.is-login:not(.is-authenticated) .login-form .btn-primary {
  background: linear-gradient(135deg, #ffd23f, #b77900) !important;
  color: #082f63 !important;
}

body.guardian-login.is-login:not(.is-authenticated) .login-panel h1 {
  color: #0a3a74 !important;
}

body.guardian-login.is-login:not(.is-authenticated) .login-panel > div > p,
body.guardian-login.is-login:not(.is-authenticated) .login-form label {
  color: #6e4b00 !important;
}

body.guardian-login.is-login:not(.is-authenticated) .login-form input:not([type=checkbox]) {
  border-color: #f0c34d !important;
  background: #fffefa !important;
}

body.guardian-login.is-login:not(.is-authenticated) .login-form input:not([type=checkbox]):focus {
  border-color: #0b5ea8 !important;
  box-shadow: 0 0 0 4px rgba(255, 210, 63, .35) !important;
}

body.guardian-login.is-login:not(.is-authenticated) .login-form .btn-guardian-access {
  border-color: #0a5a9f !important;
  background: #eef7ff !important;
  color: #0a3a74 !important;
}

body.is-authenticated.guardian-portal-only #appMain {
  background: linear-gradient(135deg, #fff8d8 0%, #ffffff 38%, #edf6ff 100%) !important;
}

body.is-authenticated.guardian-portal-only #module-ficha {
  max-width: 1180px !important;
  margin: 0 auto !important;
}

body.is-authenticated.guardian-portal-only #module-ficha > .module-head {
  display: none !important;
}

body.is-authenticated.guardian-portal-only .guardian-portal {
  display: grid !important;
  gap: 14px !important;
  color: #0b2d57 !important;
}

body.is-authenticated.guardian-portal-only .guardian-portal-header {
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 18px !important;
  border: 1px solid #f0c34d !important;
  border-radius: 18px !important;
  background: linear-gradient(115deg, #ffffff 0%, #fff6cf 58%, #e8f4ff 100%) !important;
  box-shadow: 0 16px 38px rgba(29, 78, 130, .10) !important;
}

body.is-authenticated.guardian-portal-only .guardian-portal-header img {
  width: 76px !important;
  height: 76px !important;
  object-fit: contain !important;
  padding: 8px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid rgba(10, 58, 116, .14) !important;
}

body.is-authenticated.guardian-portal-only .guardian-portal-header span {
  color: #9b6b00 !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

body.is-authenticated.guardian-portal-only .guardian-portal-header h2 {
  margin: 2px 0 !important;
  color: #0a3a74 !important;
  font-size: clamp(1.45rem, 2.2vw, 2.25rem) !important;
  font-weight: 950 !important;
}

body.is-authenticated.guardian-portal-only .guardian-portal-header p {
  margin: 0 !important;
  color: #35577c !important;
  font-weight: 750 !important;
}

body.is-authenticated.guardian-portal-only .guardian-readonly-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 9px 12px !important;
  border-radius: 999px !important;
  background: #0a3a74 !important;
  color: #fff8d8 !important;
  font-size: .78rem !important;
  white-space: nowrap !important;
}

body.is-authenticated.guardian-portal-only .guardian-boletin-summary {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body.is-authenticated.guardian-portal-only .guardian-boletin-summary article {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  gap: 2px 9px !important;
  min-height: 78px !important;
  padding: 12px !important;
  border: 1px solid #d9e8f5 !important;
  border-left: 5px solid #ffd23f !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(19, 67, 118, .08) !important;
}

body.is-authenticated.guardian-portal-only .guardian-boletin-summary article i {
  grid-row: 1 / span 2 !important;
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 11px !important;
  background: #fff4c2 !important;
  color: #0a5a9f !important;
}

body.is-authenticated.guardian-portal-only .guardian-boletin-summary article span {
  color: #6e7890 !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

body.is-authenticated.guardian-portal-only .guardian-boletin-summary article b {
  color: #0b2d57 !important;
  font-size: .98rem !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}

body.is-authenticated.guardian-portal-only .guardian-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 8px !important;
  border: 1px solid #d8e9f6 !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.82) !important;
}

body.is-authenticated.guardian-portal-only .guardian-tabs button {
  min-height: 34px !important;
  padding: 7px 12px !important;
  border: 1px solid #c6dff2 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #0a3a74 !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
}

body.is-authenticated.guardian-portal-only .guardian-tabs button.active {
  border-color: #ffd23f !important;
  background: #ffd23f !important;
  color: #082f63 !important;
}

body.is-authenticated.guardian-portal-only .guardian-section {
  padding: 14px !important;
  border: 1px solid #d7e8f5 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 26px rgba(20, 65, 115, .07) !important;
}

body.is-authenticated.guardian-portal-only .guardian-section h3 {
  margin: 0 0 10px !important;
  color: #0a3a74 !important;
  font-size: 1.05rem !important;
}

body.is-authenticated.guardian-portal-only .guardian-section-title {
  display: flex !important;
  justify-content: space-between !important;
  gap: 10px !important;
  align-items: center !important;
  margin-bottom: 10px !important;
}

body.is-authenticated.guardian-portal-only .guardian-section-title span {
  padding: 5px 10px !important;
  border-radius: 999px !important;
  background: #eef7ff !important;
  color: #0a5a9f !important;
  font-size: .74rem !important;
  font-weight: 900 !important;
}

body.is-authenticated.guardian-portal-only .guardian-official-report {
  overflow-x: auto !important;
  padding: 4px !important;
}

body.is-authenticated.guardian-portal-only .guardian-official-report .academic-grade-report {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-shadow: none !important;
  border: 1px solid #d8e8f4 !important;
}

body.is-authenticated.guardian-portal-only .guardian-portal-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body.is-authenticated.guardian-portal-only .guardian-student-selector {
  display: grid !important;
  gap: 6px !important;
  padding: 12px !important;
  border: 1px dashed #e5ba35 !important;
  border-radius: 14px !important;
  background: #fff9de !important;
  color: #6e4b00 !important;
  font-weight: 900 !important;
}

body.is-authenticated.guardian-portal-only .guardian-student-selector select {
  width: 100% !important;
  min-height: 40px !important;
  border: 1px solid #e7c45a !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #0b2d57 !important;
}

@media (max-width: 900px) {
  body.is-authenticated.guardian-portal-only .guardian-portal-header {
    grid-template-columns: 60px minmax(0, 1fr) !important;
  }
  body.is-authenticated.guardian-portal-only .guardian-readonly-badge {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
  }
  body.is-authenticated.guardian-portal-only .guardian-boletin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  body.is-authenticated.guardian-portal-only .guardian-boletin-summary {
    grid-template-columns: 1fr !important;
  }
  body.is-authenticated.guardian-portal-only .guardian-tabs {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
  }
  body.is-authenticated.guardian-portal-only .guardian-tabs button {
    flex: 0 0 auto !important;
  }
}


/* AutoPlanificador: banco curricular local MINEDUC */
body.is-authenticated:not(.report-print-body) #module-libro .planner-curriculum-bank {
  border: 1px solid #b7dcf1;
  background: linear-gradient(135deg, #eef9ff 0%, #ffffff 68%);
  box-shadow: 0 10px 24px rgba(28, 108, 147, .08);
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-curriculum-bank > p {
  margin: 8px 0 10px;
  color: #16425b;
  font-size: .86rem;
  font-weight: 700;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-bank-kpis {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(88px, .55fr));
  gap: 8px;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-bank-kpis article {
  border: 1px solid #c7e4f5;
  border-radius: 10px;
  background: rgba(255, 255, 255, .86);
  padding: 8px 10px;
  min-width: 0;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-bank-kpis span {
  display: block;
  color: #2f6e8d;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.is-authenticated:not(.report-print-body) #module-libro .planner-bank-kpis b {
  display: block;
  color: #07324a;
  font-size: .95rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  body.is-authenticated:not(.report-print-body) #module-libro .planner-bank-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Configuracion: control de semestres */
body.is-authenticated:not(.report-print-body) #module-configuracion .semester-access-card {
  display: grid;
  grid-template-columns: 1.3fr repeat(2, minmax(170px, .7fr));
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

body.is-authenticated:not(.report-print-body) #module-configuracion .semester-access-card b {
  display: block;
  color: #0f2f5f;
  font-size: .95rem;
}

body.is-authenticated:not(.report-print-body) #module-configuracion .semester-access-card small {
  color: #52677d;
  font-size: .76rem;
}

body.is-authenticated:not(.report-print-body) #module-configuracion .semester-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #b8d7f5;
  border-radius: 999px;
  background: #fff;
  color: #113461;
  font-weight: 900;
}

body.is-authenticated:not(.report-print-body) #module-configuracion .semester-switch input {
  width: 18px;
  height: 18px;
  accent-color: #0ea5e9;
}

body.is-authenticated:not(.report-print-body) #module-configuracion .semester-switch:has(input:not(:checked)) {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

body.is-authenticated:not(.report-print-body) #module-configuracion .semester-switch:has(input:disabled) {
  opacity: .65;
  cursor: not-allowed;
}

@media (max-width: 820px) {
  body.is-authenticated:not(.report-print-body) #module-configuracion .semester-access-card {
    grid-template-columns: 1fr;
  }
}

/* UTP: botones de habilitacion de semestres */
body.is-authenticated:not(.report-print-body) #module-utp .semester-management-panel {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef2ff, #ffffff);
  box-shadow: 0 10px 22px rgba(30, 64, 175, .08);
}

body.is-authenticated:not(.report-print-body) #module-utp .semester-management-panel b {
  display: block;
  color: #1e3a8a;
  font-size: .96rem;
}

body.is-authenticated:not(.report-print-body) #module-utp .semester-management-panel small {
  color: #475569;
  font-weight: 700;
}

@media (max-width: 760px) {
  body.is-authenticated:not(.report-print-body) #module-utp .semester-management-panel {
    grid-template-columns: 1fr;
  }
}

/* Asistente visual de carga y descarga */
.assistant-progress {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483000;
  width: min(360px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,255,.96));
  box-shadow: 0 18px 44px rgba(15, 23, 42, .18);
  color: #0f2f5f;
  backdrop-filter: blur(14px);
  animation: assistantProgressIn .24s ease-out both;
}

.assistant-progress[hidden] {
  display: none !important;
}

.assistant-progress-figure {
  width: 68px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: radial-gradient(circle at 35% 22%, #fff7cc 0 16%, transparent 17%), linear-gradient(160deg, #dbeafe, #ffffff 70%);
  border: 1px solid rgba(11, 87, 183, .18);
  overflow: hidden;
}

.assistant-logo-img {
  display: block;
  width: 58px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(15, 23, 42, .18));
  transform-origin: center bottom;
  animation: assistantGirlFloat 1.5s ease-in-out infinite;
}

.assistant-logo-fallback {
  color: #0b57b7;
  font-size: 20px;
  font-weight: 900;
}

.assistant-girl-svg {
  width: 58px;
  height: 70px;
  filter: drop-shadow(0 8px 10px rgba(15, 23, 42, .18));
  transform-origin: center bottom;
  animation: assistantGirlFloat 1.5s ease-in-out infinite;
}

.assistant-progress-content {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.assistant-progress-kicker {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.assistant-progress strong {
  display: block;
  min-width: 0;
  color: #0f2f5f;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assistant-progress-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbeafe;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .12);
}

.assistant-progress-track span {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #2563eb, #facc15);
  box-shadow: 0 0 16px rgba(37, 99, 235, .42);
  transition: width .32s ease;
}

.assistant-progress.is-download .assistant-progress-track span {
  background: linear-gradient(90deg, #22c55e, #0ea5e9, #2563eb);
}

.assistant-progress.is-complete .assistant-progress-track span {
  background: linear-gradient(90deg, #16a34a, #84cc16, #facc15);
}

.assistant-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.assistant-progress-meta b {
  color: #0b57b7;
  font-size: 12px;
}

.assistant-progress.is-complete .assistant-progress-meta b {
  color: #15803d;
}

@keyframes assistantProgressIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes assistantGirlFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (max-width: 520px) {
  .assistant-progress {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 10px;
    border-radius: 18px;
  }

  .assistant-progress-figure {
    width: 54px;
    height: 60px;
    border-radius: 16px;
  }

  .assistant-girl-svg {
    width: 48px;
    height: 58px;
  }

  .assistant-progress strong {
    font-size: 13px;
  }
}

/* Correccion alumnos: evita que acciones se monten sobre RUT/curso/fecha. */
body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table {
  min-width: 1040px !important;
  table-layout: fixed !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table th:nth-child(1),
body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td:nth-child(1) {
  width: auto !important;
  max-width: none !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table th:nth-child(2),
body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td:nth-child(2) {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  white-space: nowrap !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table th:nth-child(3),
body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td:nth-child(3) {
  width: 130px !important;
  min-width: 130px !important;
  max-width: 130px !important;
  white-space: nowrap !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table th:nth-child(4),
body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td:nth-child(4) {
  width: 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
  white-space: nowrap !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table th:nth-child(5),
body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td:nth-child(5) {
  width: 245px !important;
  min-width: 245px !important;
  max-width: 245px !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td.actions-cell {
  display: table-cell !important;
  text-align: right !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

body.is-authenticated:not(.report-print-body) #module-estudiantes .students-table td.actions-cell .student-icon-actions {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  justify-content: flex-end !important;
  vertical-align: middle !important;
}

/* Calificaciones: filtros superiores alineados en una sola fila. */
body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-filters-row {
  display: grid !important;
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .course-context,
body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-filter-card {
  min-height: 0 !important;
  height: auto !important;
  padding: 10px 12px !important;
  align-self: start !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .course-context {
  display: block !important;
  margin: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .course-context-main {
  display: grid !important;
  grid-template-columns: minmax(210px, 1fr) minmax(150px, 190px) !important;
  gap: 10px !important;
  align-items: end !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .course-context-meta {
  min-height: 43px !important;
  height: 43px !important;
  display: grid !important;
  align-content: center !important;
  padding: 6px 10px !important;
  overflow: hidden !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .course-context-meta b,
body.is-authenticated:not(.report-print-body) #module-calificaciones .course-context-meta small {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-filter-toolbar {
  display: grid !important;
  grid-template-columns: minmax(260px, 1.25fr) minmax(190px, .85fr) max-content max-content max-content !important;
  gap: 10px !important;
  align-items: end !important;
  margin: 0 !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-filter-toolbar > :is(label, .pill) {
  min-width: 0 !important;
  align-self: end !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-filter-toolbar .pill {
  width: auto !important;
  min-width: max-content !important;
  height: 43px !important;
  min-height: 43px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  text-align: center !important;
}

body.is-authenticated:not(.report-print-body) #module-calificaciones :is(.course-context select, .grade-filter-toolbar select) {
  height: 43px !important;
  min-height: 43px !important;
}

@media (max-width: 1180px) {
  body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-filters-row {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-filter-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-filter-toolbar .pill {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 620px) {
  body.is-authenticated:not(.report-print-body) #module-calificaciones .course-context-main,
  body.is-authenticated:not(.report-print-body) #module-calificaciones .grade-filter-toolbar {
    grid-template-columns: 1fr !important;
  }
}

/* Informes: panel mas claro y amigable para revisar/exportar. */
body.is-authenticated:not(.report-print-body) #module-informes .report-workspace {
  gap: 12px !important;
  margin-top: 12px !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-config-grid {
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr) !important;
  gap: 12px !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-config-card {
  border-color: #c6dceb !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: 0 10px 22px rgba(20, 68, 112, .08) !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-config-head {
  padding-bottom: 4px !important;
  border-bottom: 1px solid #e2edf6 !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-config-head > span {
  color: #0b57b7 !important;
  background: #eaf3ff !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-config-head h3 {
  font-size: .94rem !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-config-head small {
  color: #5c7189 !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-course-card .course-context-main {
  gap: 10px !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-course-card .course-context-meta {
  min-height: 48px !important;
  align-content: center !important;
  background: #f4fbf7 !important;
  border-color: #cfe8d8 !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-course-card .course-context-actions {
  grid-template-columns: 1fr !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-filter-grid {
  grid-template-columns: minmax(110px, .75fr) minmax(220px, 1.65fr) minmax(150px, 1.05fr) minmax(145px, .95fr) minmax(128px, .85fr) minmax(170px, 1fr) minmax(170px, 1fr) !important;
  gap: 10px !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-filter-grid label {
  color: #183a63 !important;
  font-size: .74rem !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-filter-grid select,
body.is-authenticated:not(.report-print-body) #module-informes .report-course-card select {
  height: 42px !important;
  min-height: 42px !important;
  padding: 7px 10px !important;
  background: #ffffff !important;
  border-color: #abc9df !important;
  font-size: .82rem !important;
  font-weight: 780 !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-inline-actions {
  grid-column: 1 / -1 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  padding-top: 2px !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-inline-actions button,
body.is-authenticated:not(.report-print-body) #module-informes .report-course-card .course-context-actions button {
  min-height: 42px !important;
  gap: 8px !important;
  font-weight: 850 !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-type-card {
  padding: 12px !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .layout-report-actions {
  grid-template-columns: repeat(4, minmax(130px, 1fr)) !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .layout-report-actions button {
  min-height: 46px !important;
  border: 1px solid #cfe0ee !important;
  background: #ffffff !important;
  color: #123a63 !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .layout-report-actions button:hover {
  transform: translateY(-1px) !important;
  border-color: #8bb8dc !important;
  box-shadow: 0 8px 18px rgba(21, 87, 150, .12) !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .layout-report-actions button.active {
  color: #08345f !important;
  border-color: #7fb2d9 !important;
  background: linear-gradient(135deg, #e8f6ff, #fff9d9) !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-insights .layout-insight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.is-authenticated:not(.report-print-body) #module-informes .report-observation-editor textarea {
  min-height: 120px !important;
}

@media (max-width: 1180px) {
  body.is-authenticated:not(.report-print-body) #module-informes .report-config-grid,
  body.is-authenticated:not(.report-print-body) #module-informes .report-filter-grid,
  body.is-authenticated:not(.report-print-body) #module-informes .report-insights .layout-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.is-authenticated:not(.report-print-body) #module-informes .report-course-card,
  body.is-authenticated:not(.report-print-body) #module-informes .report-control-panel,
  body.is-authenticated:not(.report-print-body) #module-informes .report-inline-actions {
    grid-column: 1 / -1 !important;
  }

  body.is-authenticated:not(.report-print-body) #module-informes .layout-report-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body.is-authenticated:not(.report-print-body) #module-informes .report-config-grid,
  body.is-authenticated:not(.report-print-body) #module-informes .report-filter-grid,
  body.is-authenticated:not(.report-print-body) #module-informes .report-inline-actions,
  body.is-authenticated:not(.report-print-body) #module-informes .layout-report-actions,
  body.is-authenticated:not(.report-print-body) #module-informes .report-insights .layout-insight-grid {
    grid-template-columns: 1fr !important;
  }
}
