.elementor-3181 .elementor-element.elementor-element-9f10ce1{--display:flex;}/* Start custom CSS *//* =========================================================
   HOMECLASS · CSS SOLO PORTAL ADMIN
   Separado desde el CSS maestro. Incluye estilos Admin + agenda Admin con el mismo look del portal Profesor.
========================================================= */

/* =========================================================
   FIX CRÍTICO: BODY + ELEMENTOR CANVAS
   
   El tema (gigantic-education) + elementor_canvas aplican
   overflow:hidden auto al <body>, lo que convierte al body
   en un contenedor de scroll propio y ROMPE position:sticky.
   
   Sticky se ancla al ancestro scrolleable más cercano. Si el
   body scrollea, sticky se ancla contra el body en lugar del
   viewport, y como el body no tiene altura limitada, el
   sticky nunca se activa.
   
   Solución: forzar el scroll al <html> y liberar al <body>.
========================================================= */

html {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
}

body {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  height: auto !important;
  min-height: 100vh !important;
  position: static !important;
  transform: none !important;
  filter: none !important;
}

/* Elementor canvas template - forzamos su body también */
body.page-template-elementor_canvas,
body.elementor-page,
body.elementor-default {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  height: auto !important;
}

/* Ancestros típicos de Elementor que rompen sticky */
.elementor,
.elementor-section,
.elementor-container,
.elementor-row,
.elementor-column,
.elementor-column-wrap,
.elementor-widget-wrap,
.elementor-widget,
.elementor-widget-html,
.elementor-element,
.elementor-inner-section,
.e-con,
.e-con-inner,
.e-con-full,
.e-parent,
.e-child,
.page-content,
.site-content,
.entry-content,
main,
#main,
#page,
#content {
  overflow: visible !important;
}

/* Neutraliza transforms/filters que también rompen sticky */
.elementor-section,
.elementor-column,
.elementor-widget-wrap,
.e-con,
.e-con-inner {
  transform: none !important;
  filter: none !important;
  perspective: none !important;
}

/* Cualquier wrapper que contenga el portal profesor */
body *:has(.hca-prof-shell),
body *:has(#paths-panel) {
  overflow: visible !important;
  transform: none !important;
  filter: none !important;
}

/* =========================================================
   BASE
========================================================= */

:root {
  --primary: #0b3b6e;
  --primary-2: #123f78;
  --primary-light: #3b82f6;
  --accent: #ffb347;
  --accent-2: #fb7185;
  --accent-soft: rgba(255, 179, 71, 0.16);
  --bg: #eef5ff;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.12);
  --info: #38bdf8;
  --info-soft: rgba(56, 189, 248, 0.12);
  --purple: #8b5cf6;
  --purple-soft: rgba(139, 92, 246, 0.12);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.10);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  background:
    radial-gradient(circle at top left, #dbeafe, transparent 26%),
    linear-gradient(180deg, #eff6ff 0%, #f8fbff 40%, #ffffff 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

.glass-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-soft);
}


/* =========================================================
   ADMIN
========================================================= */

.hca-admin-shell {
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  display: block;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  color: var(--text);
  overflow-x: clip;
}

.hca-admin-shell #admin-app-view {
  width: 100vw;
  max-width: none;
  min-height: 100vh;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.10), transparent 24%),
    radial-gradient(circle at top right, rgba(255,179,71,.12), transparent 20%),
    linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
}

.hca-admin-shell .admin-wrapper {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  min-height: calc(100vh - 56px);
}

.hca-admin-shell .admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-xl);
}

.hca-admin-shell .admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hca-admin-shell .admin-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.hca-admin-shell .admin-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hca-admin-shell .admin-title-block {
  display: flex;
  flex-direction: column;
}

.hca-admin-shell .admin-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.hca-admin-shell .admin-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.hca-admin-shell .admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.94);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.hca-admin-shell .admin-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.hca-admin-shell .admin-user-info {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.15;
}

.hca-admin-shell .admin-user-name {
  font-weight: 700;
}

.hca-admin-shell .admin-user-role {
  color: var(--muted);
}

.hca-admin-shell .admin-btn-ghost {
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-size: 12px;
  background: #ffffff;
  cursor: pointer;
  color: var(--muted);
  transition: .18s ease;
}

.hca-admin-shell .admin-btn-ghost:hover {
  background: #f7fafc;
  transform: translateY(-1px);
}

.hca-admin-shell .admin-main {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  width: 100%;
}

.hca-admin-shell .admin-sidebar {
  padding: 18px;
  border-radius: var(--radius-xl);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.hca-admin-shell .admin-sidebar-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}

.hca-admin-shell .admin-sidebar-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  margin-bottom: 14px;
}

.hca-admin-shell .admin-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.hca-admin-shell .admin-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s ease, transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  font-size: 12px;
  background: rgba(255,255,255,.82);
}

.hca-admin-shell .admin-menu-item:hover {
  transform: translateX(6px);
  background: rgba(0, 51, 102, 0.04);
  border-color: rgba(0, 51, 102, 0.18);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.hca-admin-shell .admin-menu-item.active {
  background: linear-gradient(135deg, rgba(59,130,246,.14), rgba(255,179,71,.14));
  border-color: rgba(59,130,246,.30);
}

.hca-admin-shell .admin-menu-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hca-admin-shell .admin-menu-code {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
}

.hca-admin-shell .admin-menu-label {
  font-size: 11px;
  color: var(--muted);
}

.hca-admin-shell .admin-menu-pill {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(49, 130, 206, 0.08);
  color: var(--info);
  border: 1px solid rgba(49, 130, 206, 0.22);
}

.hca-admin-shell .admin-side-box {
  border-radius: var(--radius-md);
  border: 1px dashed rgba(203, 213, 224, 0.9);
  padding: 12px;
  margin-bottom: 14px;
  background: rgba(247, 250, 252, 0.7);
}

.hca-admin-shell .admin-side-box-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.hca-admin-shell .admin-side-box-copy {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
}

.hca-admin-shell .admin-side-box-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(49, 130, 206, 0.08);
  color: var(--info);
  margin-top: 6px;
}

.hca-admin-shell .admin-sidebar-footer {
  font-size: 10px;
  color: var(--muted);
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

.hca-admin-shell .admin-content {
  min-width: 0;
  width: 100%;
}

.hca-admin-shell .admin-panel {
  display: none;
}

.hca-admin-shell .admin-panel.is-visible {
  display: block;
}

.hca-admin-shell .admin-section {
  display: grid;
  gap: 14px;
}

.hca-admin-shell .admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.hca-admin-shell .admin-section-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -.02em;
}

.hca-admin-shell .admin-section-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.hca-admin-shell .admin-chip,
.hca-admin-shell .admin-chip-outline,
.hca-admin-shell .admin-tag {
  font-size: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 800;
}

.hca-admin-shell .admin-chip {
  background: rgba(255,179,71,.18);
  color: #b45309;
}

.hca-admin-shell .admin-chip-outline {
  border: 1px dashed rgba(203, 213, 224, 0.9);
  color: var(--muted);
}

.hca-admin-shell .admin-tag {
  background: rgba(49,130,206,.08);
  color: var(--info);
}

.hca-admin-shell .admin-top-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hca-admin-shell .admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hca-admin-shell .admin-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hca-admin-shell .admin-card {
  background: rgba(255,255,255,.96);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.hca-admin-shell .admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.hca-admin-shell .admin-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.hca-admin-shell .admin-card-subtitle {
  font-size: 11px;
  color: var(--muted);
}

.hca-admin-shell .admin-big-stat {
  font-size: 46px;
  font-weight: 900;
  color: var(--primary);
  margin: 8px 0 12px;
}

.hca-admin-shell .admin-mini-stack,
.hca-admin-shell .admin-feed-list {
  display: grid;
  gap: 8px;
}

.hca-admin-shell .admin-mini-note,
.hca-admin-shell .admin-feed-item {
  border-radius: 12px;
  padding: 10px;
  background: rgba(247, 250, 252, 0.8);
  border: 1px dashed rgba(203, 213, 224, 0.9);
  font-size: 11px;
  color: var(--muted);
}

.hca-admin-shell .admin-feed-item strong {
  color: var(--primary);
}

.hca-admin-shell .admin-feed-list.compact {
  gap: 6px;
}

.hca-admin-shell .admin-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.hca-admin-shell .admin-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hca-admin-shell .admin-action-grid.single-col {
  grid-template-columns: 1fr;
}

.hca-admin-shell .admin-action-card {
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  padding: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  transition: .18s ease;
}

.hca-admin-shell .admin-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 18px rgba(15, 23, 42, 0.06);
  border-color: rgba(59,130,246,.28);
}

.hca-admin-shell .admin-table-like {
  display: grid;
  gap: 8px;
}

.hca-admin-shell .admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
  color: var(--muted);
}

.hca-admin-shell .admin-row:last-child {
  border-bottom: none;
}

.hca-admin-shell .admin-row strong {
  color: var(--primary);
  text-align: right;
}

.hca-admin-shell .admin-inline-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.hca-admin-shell .admin-inline-select {
  width: 100%;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(203, 213, 224, 0.95);
  background: #ffffff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.hca-admin-shell .admin-inline-select:focus {
  outline: none;
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

@media (max-width: 1300px) {
  .hca-admin-shell .admin-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hca-admin-shell .admin-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .hca-admin-shell .admin-main {
    grid-template-columns: 1fr;
  }

  .hca-admin-shell .admin-sidebar {
    position: static;
  }

  .hca-admin-shell .admin-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hca-admin-shell #admin-app-view {
    padding: 14px;
  }

  .hca-admin-shell .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hca-admin-shell .admin-user {
    width: 100%;
    justify-content: space-between;
    border-radius: 18px;
  }

  .hca-admin-shell .admin-top-grid {
    grid-template-columns: 1fr;
  }

  .hca-admin-shell .admin-action-grid {
    grid-template-columns: 1fr;
  }

  .hca-admin-shell .admin-section-title {
    font-size: 24px;
  }

  .hca-admin-shell .admin-inline-select {
    max-width: 100%;
  }
}



/* =========================================================
   ADMIN · LEARNING PATHS (FASE 1)
========================================================= */

.hca-admin-shell .paths-layout-expanded {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 280px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

.hca-admin-shell .base-card {
  background: rgba(255,255,255,.96);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.hca-admin-shell .section-chip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.hca-admin-shell .soft-chip,
.hca-admin-shell .pill {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  align-self: flex-start;
}

.hca-admin-shell .soft-chip {
  background: rgba(255,179,71,.18);
  color: #b45309;
  font-weight: 700;
}

.hca-admin-shell .pill {
  background: rgba(49,130,206,.08);
  color: var(--info);
}

.hca-admin-shell .section-space-top {
  margin-top: 16px;
}

.hca-admin-shell .program-list,
.hca-admin-shell .path-library-detail,
.hca-admin-shell .student-path-list,
.hca-admin-shell .student-list {
  display: grid;
  gap: 10px;
}

.hca-admin-shell .program-pill {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(226,232,240,.9);
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}

.hca-admin-shell .program-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}

.hca-admin-shell .program-pill.active {
  border-color: rgba(59,130,246,.35);
  background: rgba(59,130,246,.05);
}

.hca-admin-shell .placeholder-panel {
  border-radius: 14px;
  border: 1px dashed rgba(203, 213, 224, 0.95);
  background: rgba(247, 250, 252, 0.8);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  padding: 14px;
}

.hca-admin-shell .student-item {
  width: 100%;
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  padding: 12px 14px;
  cursor: pointer;
  transition: .18s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hca-admin-shell .student-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}

.hca-admin-shell .student-item.active {
  border-color: rgba(59,130,246,.35);
  background: rgba(59,130,246,.05);
}

.hca-admin-shell .student-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}

.hca-admin-shell .student-meta {
  font-size: 11px;
  color: var(--muted);
}

.hca-admin-shell .student-body.elementor-page-3181-footer {
  margin-top: 14px;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
}

.hca-admin-shell .student-path-area {
  min-height: 420px;
  border-radius: 18px;
  border: 2px dashed rgba(203, 213, 224, 0.95);
  background: linear-gradient(180deg, rgba(247,250,252,.95), rgba(255,255,255,.95));
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hca-admin-shell .student-path-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hca-admin-shell .student-path-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--primary);
}

.hca-admin-shell .student-path-item {
  border-radius: 14px;
  border: 1px solid rgba(226,232,240,.9);
  background: #fff;
  padding: 12px;
}

.hca-admin-shell .path-item-inner {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.hca-admin-shell .path-item-order {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(59,130,246,.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.hca-admin-shell .path-item-text {
  min-width: 0;
}

.hca-admin-shell .student-path-item-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}

.hca-admin-shell .student-path-item-meta {
  font-size: 11px;
  color: var(--muted);
}

.hca-admin-shell .path-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hca-admin-shell .icon-btn {
  border: 1px solid rgba(226,232,240,.9);
  background: #fff;
  border-radius: 10px;
  padding: 6px 8px;
  cursor: pointer;
  font-weight: 800;
  transition: .18s ease;
}

.hca-admin-shell .icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.06);
}

.hca-admin-shell .icon-btn.danger {
  color: #dc2626;
}

.hca-admin-shell .student-path-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.hca-admin-shell .path-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.hca-admin-shell .cta-soft,
.hca-admin-shell .cta-btn {
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}

.hca-admin-shell .cta-soft {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
}

.hca-admin-shell .cta-soft:hover {
  background: #f7fafc;
  transform: translateY(-1px);
}

.hca-admin-shell .cta-btn {
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.20);
}

.hca-admin-shell .cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(37, 99, 235, 0.24);
}


/* =========================================================
   ADMIN · CONTENT LIBRARY MIRROR OF PROFESSOR
========================================================= */

.hca-admin-shell .admin-panel-title-wrap {
  margin-bottom: 14px;
}

.hca-admin-shell .library-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -.02em;
}

.hca-admin-shell .library-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.hca-admin-shell .card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.hca-admin-shell .card-subtitle {
  font-size: 11px;
  color: var(--muted);
}

.hca-admin-shell .enhanced-browser {
  align-items: start;
}

.hca-admin-shell .library-browser {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 16px;
}

.hca-admin-shell .browser-column {
  min-width: 0;
}

.hca-admin-shell .program-card-btn {
  width: 100%;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  padding: 14px;
  cursor: pointer;
  transition: .18s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  appearance: none;
  -webkit-appearance: none;
}

.hca-admin-shell .program-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 18px rgba(15, 23, 42, 0.06);
}

.hca-admin-shell .program-card-btn.active {
  border-color: rgba(59,130,246,.35);
  background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(255,179,71,.08));
}

.hca-admin-shell .root-card {
  min-height: 88px;
  justify-content: center;
}

.hca-admin-shell .program-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}

.hca-admin-shell .program-card-meta {
  font-size: 11px;
  color: var(--muted);
}

.hca-admin-shell .library-program-content {
  display: grid;
  gap: 12px;
  min-height: 120px;
}

.hca-admin-shell .pill-outline {
  border-radius: 999px;
  border: 1px dashed rgba(203, 213, 224, 0.9);
  padding: 4px 8px;
  font-size: 10px;
  color: var(--muted);
}

.hca-admin-shell .library-unit-card {
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  padding: 0;
}

.hca-admin-shell .library-unit-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin: 0;
  border: none;
  background: transparent;
  text-align: left;
}

.hca-admin-shell .library-unit-toggle {
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
}

.hca-admin-shell .library-unit-toggle:hover {
  background: linear-gradient(135deg, rgba(59,130,246,.06), rgba(255,179,71,.08));
}

.hca-admin-shell .library-unit-toggle::after {
  content: "⌄";
  font-size: 18px;
  line-height: 1;
  color: var(--primary);
  font-weight: 900;
  margin-left: auto;
  transition: transform .18s ease;
  flex-shrink: 0;
}

.hca-admin-shell .library-unit-card.is-open .library-unit-toggle::after {
  transform: rotate(180deg);
}

.hca-admin-shell .library-unit-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: var(--primary);
}

.hca-admin-shell .library-unit-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.hca-admin-shell .library-unit-head .pill-outline {
  margin-left: 10px;
  white-space: nowrap;
}

.hca-admin-shell .library-unit-body {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px dashed rgba(203, 213, 224, 0.95);
  background: rgba(248, 250, 252, 0.48);
}

.hca-admin-shell .library-unit-card.is-open .library-unit-body {
  display: block;
}

.hca-admin-shell .library-lessons-list {
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.hca-admin-shell .lesson-row-card {
  border-radius: 16px;
  border: 1px dashed rgba(203, 213, 224, 0.95);
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, opacity .18s ease;
}

.hca-admin-shell .lesson-row-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
  border-color: rgba(59,130,246,.22);
}

.hca-admin-shell .lesson-row-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.hca-admin-shell .lesson-row-meta {
  font-size: 11px;
  color: var(--muted);
}

.hca-admin-shell .lesson-row-copy {
  font-size: 12px;
  color: var(--text);
  margin-top: 8px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .hca-admin-shell .library-browser {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hca-admin-shell .library-title {
    font-size: 24px;
  }
}

/* =========================================================
   ADMIN · SCHEDULE ASSIGNMENT FLOW (FASE 1)
   Mantiene Students como listado y mueve la asignación al panel Schedule.
========================================================= */

.hca-admin-shell .admin-schedule-assignment-grid {
  align-items: start;
}

.hca-admin-shell .admin-schedule-assignment-card {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 36%),
    rgba(255,255,255,.96);
}

.hca-admin-shell .admin-assignment-box {
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px dashed rgba(147, 197, 253, 0.95);
  background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.98));
  display: grid;
  gap: 14px;
}

.hca-admin-shell .admin-assignment-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.hca-admin-shell .admin-form-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.hca-admin-shell .admin-form-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: .02em;
}

.hca-admin-shell .admin-assignment-select {
  max-width: none !important;
  width: 100% !important;
  min-height: 44px;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  background: #ffffff !important;
  border: 1px solid rgba(147, 197, 253, 0.9) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.hca-admin-shell .admin-assignment-select:focus {
  border-color: rgba(59,130,246,.75) !important;
  box-shadow: 0 0 0 4px rgba(59,130,246,.14) !important;
}

.hca-admin-shell .admin-primary-action {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.20);
  transition: .18s ease;
}

.hca-admin-shell .admin-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(37, 99, 235, 0.26);
}

.hca-admin-shell .admin-assignment-actions {
  margin-top: 0;
  justify-content: flex-start;
}

.hca-admin-shell .admin-assignment-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(59,130,246,.06);
  border: 1px solid rgba(147,197,253,.45);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.hca-admin-shell .admin-assignment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.hca-admin-shell .admin-assignment-item strong {
  display: inline-block;
  margin-bottom: 4px;
}

.hca-admin-shell .admin-assignment-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hca-admin-shell .admin-assignment-actions-row .admin-btn-ghost {
  white-space: nowrap;
  padding: 8px 11px;
  font-size: 11px;
}

@media (max-width: 1100px) {
  .hca-admin-shell .admin-assignment-fields {
    grid-template-columns: 1fr;
  }

  .hca-admin-shell .admin-assignment-item {
    grid-template-columns: 1fr;
  }

  .hca-admin-shell .admin-assignment-actions-row {
    justify-content: flex-start;
  }
}

/* =========================================================
   ADMIN · AGENDA REAL IGUAL AL PORTAL PROFESOR
   Reemplaza el bloque anterior ADMIN · AGENDA VISUAL...
   Scope: solo Portal Admin
========================================================= */

.hca-admin-shell .teacher-agenda-shell,
.hca-admin-shell .admin-teacher-agenda-shell {
  display: grid !important;
  gap: 16px !important;
  overflow: visible !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-radius: var(--radius-xl) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  padding: 18px !important;
  box-shadow: var(--shadow-soft) !important;
}

.hca-admin-shell .teacher-agenda-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.hca-admin-shell .teacher-agenda-topbar-left,
.hca-admin-shell .teacher-agenda-topbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.hca-admin-shell .teacher-agenda-view-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 4px !important;
  border-radius: 999px !important;
  background: rgba(248, 250, 252, 0.92) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
}

.hca-admin-shell .teacher-agenda-view-toggle .cta-soft.is-active,
.hca-admin-shell #admin-agenda-day-btn.is-active,
.hca-admin-shell #admin-agenda-week-btn.is-active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(255, 179, 71, 0.14)) !important;
  border-color: rgba(59, 130, 246, 0.34) !important;
  color: var(--primary) !important;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05) !important;
}

.hca-admin-shell .admin-agenda-teacher-row,
.hca-admin-shell .teacher-agenda-primary-action-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  border: 1px dashed rgba(203, 213, 224, 0.95) !important;
  background: rgba(247, 250, 252, 0.72) !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
}

.hca-admin-shell #admin-agenda-teacher-select,
.hca-admin-shell .admin-agenda-teacher-select {
  width: 100% !important;
  max-width: 360px !important;
  min-width: 260px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(203, 213, 225, 0.95) !important;
  background: #ffffff !important;
  color: var(--primary) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 12px 14px !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04) !important;
}

.hca-admin-shell #admin-agenda-teacher-select:focus,
.hca-admin-shell .admin-agenda-teacher-select:focus {
  border-color: rgba(59, 130, 246, 0.45) !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12) !important;
}

.hca-admin-shell .teacher-agenda-filters {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.hca-admin-shell .teacher-agenda-filter-card {
  border-radius: 16px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  padding: 12px 14px !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04) !important;
}

.hca-admin-shell .teacher-agenda-filter-label {
  font-size: 11px !important;
  color: var(--muted) !important;
  margin-bottom: 4px !important;
  font-weight: 700 !important;
}

.hca-admin-shell .teacher-agenda-filter-value {
  font-size: 15px !important;
  font-weight: 900 !important;
  color: var(--primary) !important;
}

.hca-admin-shell .teacher-agenda-layout {
  display: grid !important;
  grid-template-columns: 320px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

.hca-admin-shell .teacher-agenda-sidebar {
  display: grid !important;
  gap: 12px !important;
  position: sticky !important;
  top: 20px !important;
  align-self: start !important;
}

.hca-admin-shell .teacher-agenda-sidebar-card {
  border-radius: 18px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  padding: 14px !important;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05) !important;
}

.hca-admin-shell .teacher-agenda-sidebar-title {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: var(--primary) !important;
  margin-bottom: 10px !important;
}

.hca-admin-shell .teacher-agenda-main {
  min-width: 0 !important;
  display: grid !important;
  gap: 12px !important;
}

/* =========================
   DAY VIEW igual al profesor
========================= */

.hca-admin-shell .teacher-agenda-grid-header {
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) !important;
  border-radius: 18px 18px 0 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-bottom: none !important;
  background: rgba(248, 250, 252, 0.96) !important;
}

.hca-admin-shell .teacher-agenda-time-head,
.hca-admin-shell .teacher-agenda-teacher-head {
  padding: 12px 14px !important;
}

.hca-admin-shell .teacher-agenda-time-head {
  font-size: 11px !important;
  font-weight: 900 !important;
  color: var(--muted) !important;
  border-right: 1px solid rgba(226, 232, 240, 0.9) !important;
}

.hca-admin-shell .teacher-agenda-teacher-name {
  font-size: 14px !important;
  font-weight: 900 !important;
  color: var(--primary) !important;
}

.hca-admin-shell .teacher-agenda-teacher-sub {
  font-size: 11px !important;
  color: var(--muted) !important;
  margin-top: 2px !important;
}

.hca-admin-shell .teacher-agenda-grid {
  position: relative !important;
  display: block !important;
  min-height: 1088px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 0 0 18px 18px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92)) !important;
}

.hca-admin-shell .teacher-agenda-timeline {
  position: relative !important;
  min-height: 1088px !important;
}

.hca-admin-shell .teacher-agenda-hour-line,
.hca-admin-shell .teacher-agenda-row {
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) !important;
  min-height: 64px !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.72) !important;
}

.hca-admin-shell .teacher-agenda-time-cell {
  padding: 12px 14px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  color: var(--muted) !important;
  border-right: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: rgba(248, 250, 252, 0.72) !important;
}

.hca-admin-shell .teacher-agenda-slot-cell {
  padding: 10px !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.hca-admin-shell .teacher-agenda-events-layer {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) !important;
  pointer-events: none !important;
}

.hca-admin-shell .teacher-agenda-events-spacer {
  border-right: 1px solid rgba(226, 232, 240, 0.9) !important;
}

.hca-admin-shell .teacher-agenda-events-column {
  position: relative !important;
  pointer-events: auto !important;
}

.hca-admin-shell .teacher-agenda-positioned-event {
  position: absolute !important;
  left: 10px !important;
  right: 10px !important;
  z-index: 3 !important;
  border-radius: 14px !important;
  padding: 9px 12px !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  overflow: hidden !important;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.10) !important;
}

.hca-admin-shell .teacher-agenda-positioned-event.class-event,
.hca-admin-shell .teacher-agenda-positioned-event.class,
.hca-admin-shell .teacher-agenda-positioned-event.booked {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.92), rgba(11, 59, 110, 0.92)) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.hca-admin-shell .teacher-agenda-positioned-event.block-event,
.hca-admin-shell .teacher-agenda-positioned-event.blocked {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(153, 27, 27, 0.92)) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

/* =========================
   WEEK VIEW real del profesor
   IMPORTANTE: este bloque usa week-body / week-times / week-columns
========================= */

.hca-admin-shell .teacher-agenda-week-grid-header {
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) !important;
  border-radius: 18px 18px 0 0 !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-bottom: none !important;
  background: rgba(248, 250, 252, 0.96) !important;
  overflow: hidden !important;
}

.hca-admin-shell .teacher-agenda-week-time-head {
  padding: 12px 14px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  color: var(--muted) !important;
  border-right: 1px solid rgba(226, 232, 240, 0.9) !important;
}

.hca-admin-shell .teacher-agenda-week-days-head {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
}

.hca-admin-shell .teacher-agenda-week-day-head {
  padding: 12px 10px !important;
  text-align: center !important;
  border-right: 1px solid rgba(226, 232, 240, 0.75) !important;
  font-size: 11px !important;
  color: var(--primary) !important;
}

.hca-admin-shell .teacher-agenda-week-day-head:last-child {
  border-right: none !important;
}

.hca-admin-shell .teacher-agenda-week-day-head strong,
.hca-admin-shell .teacher-agenda-week-day-name {
  display: block !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  color: var(--primary) !important;
}

.hca-admin-shell .teacher-agenda-week-day-head span,
.hca-admin-shell .teacher-agenda-week-day-date {
  display: block !important;
  font-size: 10px !important;
  color: var(--muted) !important;
  margin-top: 2px !important;
}

.hca-admin-shell .teacher-agenda-week-grid {
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 0 0 18px 18px !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.hca-admin-shell .teacher-agenda-week-body {
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) !important;
  min-height: 1088px !important;
  position: relative !important;
}

.hca-admin-shell .teacher-agenda-week-times {
  display: grid !important;
  grid-template-rows: repeat(17, 64px) !important;
  border-right: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: rgba(248, 250, 252, 0.72) !important;
}

.hca-admin-shell .teacher-agenda-week-time-cell {
  height: 64px !important;
  padding: 12px 14px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  color: var(--muted) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.72) !important;
}

.hca-admin-shell .teacher-agenda-week-columns {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  min-width: 0 !important;
}

.hca-admin-shell .teacher-agenda-week-day-column {
  position: relative !important;
  min-height: 1088px !important;
  border-right: 1px solid rgba(226, 232, 240, 0.72) !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

.hca-admin-shell .teacher-agenda-week-day-column:last-child {
  border-right: none !important;
}

.hca-admin-shell .teacher-agenda-week-slot {
  height: 64px !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.72) !important;
}

.hca-admin-shell .teacher-agenda-week-event {
  position: absolute !important;
  left: 8px !important;
  right: 8px !important;
  z-index: 4 !important;
  border-radius: 14px !important;
  padding: 8px 10px !important;
  font-size: 11px !important;
  line-height: 1.32 !important;
  overflow: hidden !important;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.10) !important;
}

.hca-admin-shell .teacher-agenda-week-event.class-event,
.hca-admin-shell .teacher-agenda-week-event.class,
.hca-admin-shell .teacher-agenda-week-event.booked {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.92), rgba(11, 59, 110, 0.92)) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.hca-admin-shell .teacher-agenda-week-event.block-event,
.hca-admin-shell .teacher-agenda-week-event.blocked {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(153, 27, 27, 0.92)) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

.hca-admin-shell .teacher-agenda-week-event strong,
.hca-admin-shell .teacher-agenda-positioned-event strong {
  color: inherit !important;
  font-weight: 900 !important;
}

/* Compatibilidad: si quedó alguna estructura antigua, no la rompe, pero ya no es la principal */
.hca-admin-shell .teacher-agenda-week-row {
  display: grid !important;
  grid-template-columns: 88px repeat(7, minmax(0, 1fr)) !important;
  min-height: 76px !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.72) !important;
}

.hca-admin-shell .teacher-agenda-week-cell {
  padding: 8px !important;
  border-right: 1px solid rgba(226, 232, 240, 0.72) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  min-width: 0 !important;
}

/* =========================
   Modales agenda Admin
========================= */

.hca-admin-shell .teacher-agenda-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: none;
}

.hca-admin-shell .teacher-agenda-modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.42) !important;
  backdrop-filter: blur(6px) !important;
}

.hca-admin-shell .teacher-agenda-modal-dialog {
  position: relative !important;
  width: min(760px, calc(100vw - 28px)) !important;
  max-height: calc(100vh - 40px) !important;
  overflow-y: auto !important;
  margin: 20px auto !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24) !important;
  padding: 22px !important;
}

.hca-admin-shell .teacher-agenda-modal-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
}

.hca-admin-shell .teacher-agenda-close-btn {
  border: none !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  background: rgba(248, 250, 252, 0.95) !important;
  color: var(--muted) !important;
  font-size: 22px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.hca-admin-shell .teacher-agenda-modal-body {
  display: grid !important;
  gap: 16px !important;
}

.hca-admin-shell .teacher-agenda-form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.hca-admin-shell .teacher-agenda-form-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
}

.hca-admin-shell .teacher-agenda-label {
  font-size: 12px !important;
  font-weight: 900 !important;
  color: var(--primary) !important;
}

.hca-admin-shell .teacher-agenda-time-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

.hca-admin-shell .teacher-agenda-repeat-box {
  border-radius: 18px !important;
  border: 1px dashed rgba(203, 213, 224, 0.95) !important;
  background: rgba(248, 250, 252, 0.82) !important;
  padding: 16px !important;
}

.hca-admin-shell .teacher-agenda-modal-foot {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 18px !important;
  flex-wrap: wrap !important;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1200px) {
  .hca-admin-shell .teacher-agenda-layout {
    grid-template-columns: 1fr !important;
  }

  .hca-admin-shell .teacher-agenda-sidebar {
    position: static !important;
  }
}

@media (max-width: 900px) {
  .hca-admin-shell .teacher-agenda-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hca-admin-shell .teacher-agenda-form-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .hca-admin-shell .teacher-agenda-topbar {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .hca-admin-shell .teacher-agenda-topbar-right {
    justify-content: flex-start !important;
  }

  .hca-admin-shell .teacher-agenda-filters {
    grid-template-columns: 1fr !important;
  }

  .hca-admin-shell .teacher-agenda-grid-header,
  .hca-admin-shell .teacher-agenda-hour-line,
  .hca-admin-shell .teacher-agenda-row,
  .hca-admin-shell .teacher-agenda-events-layer,
  .hca-admin-shell .teacher-agenda-week-grid-header,
  .hca-admin-shell .teacher-agenda-week-body {
    grid-template-columns: 72px minmax(0, 1fr) !important;
  }

  .hca-admin-shell .teacher-agenda-week-grid {
    overflow-x: auto !important;
  }

  .hca-admin-shell .teacher-agenda-week-days-head,
  .hca-admin-shell .teacher-agenda-week-columns {
    grid-template-columns: repeat(7, minmax(110px, 1fr)) !important;
    min-width: 770px !important;
  }

  .hca-admin-shell .teacher-agenda-modal-dialog {
    padding: 16px !important;
  }
}

/* =========================================================
   ADMIN · FORM CONTROLS COMPARTIDOS
   Necesario porque los modales de agenda usan .form-input.
========================================================= */

.hca-admin-shell .form-input,
.hca-admin-shell input.form-input,
.hca-admin-shell select.form-input,
.hca-admin-shell textarea.form-input {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(203,213,225,.95);
  background: rgba(255,255,255,.98);
  padding: 15px 16px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: .18s ease;
}

.hca-admin-shell .form-input:focus,
.hca-admin-shell input.form-input:focus,
.hca-admin-shell select.form-input:focus,
.hca-admin-shell textarea.form-input:focus {
  border-color: rgba(59,130,246,.45);
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}

.hca-admin-shell .metric-mini-list {
  display: grid;
  gap: 8px;
}

.hca-admin-shell .metric-mini-item {
  border-radius: 12px;
  padding: 10px;
  background: rgba(247, 250, 252, 0.8);
  border: 1px dashed rgba(203, 213, 224, 0.9);
  font-size: 11px;
  color: var(--muted);
}

.hca-admin-shell .admin-teacher-agenda-shell {
  background: rgba(255,255,255,.96);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.hca-admin-shell .admin-teacher-agenda-shell .admin-inline-select {
  max-width: none;
  min-height: 46px;
  border-radius: 16px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid rgba(147, 197, 253, 0.9);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}
/* =========================================================
   HCA · PORTAL ADMIN · POPUP CLASE + FICHA FEEDBACK
   Agregar al CSS maestro. No reemplaza estilos existentes.
========================================================= */

.hca-admin-shell .admin-class-popup-dialog,
.hca-admin-shell .admin-class-feedback-dialog {
  max-width: 760px;
}

.hca-admin-shell .teacher-class-popup-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.hca-admin-shell .teacher-class-popup-main {
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(247, 250, 252, 0.82);
  padding: 12px 14px;
}

.hca-admin-shell .teacher-class-popup-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 4px;
}

.hca-admin-shell .teacher-class-popup-value {
  font-size: 14px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.35;
}

.hca-admin-shell .teacher-attendance-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.hca-admin-shell .attendance-color-btn {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  padding: 9px 12px;
  background: #ffffff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: .18s ease;
}

.hca-admin-shell .attendance-color-btn:hover,
.hca-admin-shell .attendance-color-btn.active {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.10);
}

.hca-admin-shell .attendance-color-btn.is-reserved.active,
.hca-admin-shell .attendance-color-btn.is-reserved:hover {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.35);
}

.hca-admin-shell .attendance-color-btn.is-pending.active,
.hca-admin-shell .attendance-color-btn.is-pending:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.36);
}

.hca-admin-shell .attendance-color-btn.is-rescheduled.active,
.hca-admin-shell .attendance-color-btn.is-rescheduled:hover {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.36);
}

.hca-admin-shell .attendance-color-btn.is-cancelled.active,
.hca-admin-shell .attendance-color-btn.is-cancelled:hover {
  background: rgba(148, 163, 184, 0.20);
  border-color: rgba(148, 163, 184, 0.45);
}

.hca-admin-shell .attendance-color-btn.is-no-show.active,
.hca-admin-shell .attendance-color-btn.is-no-show:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
}

.hca-admin-shell .attendance-color-btn.is-completed.active,
.hca-admin-shell .attendance-color-btn.is-completed:hover {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.35);
}

.hca-admin-shell .teacher-feedback-textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .hca-admin-shell .teacher-class-popup-summary {
    grid-template-columns: 1fr;
  }

  .hca-admin-shell .teacher-attendance-colors {
    flex-direction: column;
  }

  .hca-admin-shell .attendance-color-btn {
    width: 100%;
    text-align: center;
  }
}
/* =========================================================
   ADMIN · FIX FINAL · COLORES DE AGENDA POR ESTADO
   Debe ir al FINAL del CSS SOLO ADMIN.
   Corrige choque con reglas antiguas de .teacher-agenda-week-event.class-event
========================================================= */

/* Reservado */
.hca-admin-shell .teacher-agenda-event.class-event.status-reserved,
.hca-admin-shell .teacher-agenda-week-event.class-event.status-reserved,
.hca-admin-shell .teacher-agenda-positioned-event.class-event.status-reserved {
  background: linear-gradient(135deg, #38bdf8, #2563eb) !important;
  border-left: 5px solid #075985 !important;
  border-color: #075985 !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Pendiente */
.hca-admin-shell .teacher-agenda-event.class-event.status-pending,
.hca-admin-shell .teacher-agenda-week-event.class-event.status-pending,
.hca-admin-shell .teacher-agenda-positioned-event.class-event.status-pending {
  background: linear-gradient(135deg, #facc15, #f59e0b) !important;
  border-left: 5px solid #92400e !important;
  border-color: #92400e !important;
  color: #422006 !important;
  opacity: 1 !important;
}

/* Reagendada */
.hca-admin-shell .teacher-agenda-event.class-event.status-rescheduled,
.hca-admin-shell .teacher-agenda-week-event.class-event.status-rescheduled,
.hca-admin-shell .teacher-agenda-positioned-event.class-event.status-rescheduled {
  background: linear-gradient(135deg, #c084fc, #8b5cf6) !important;
  border-left: 5px solid #581c87 !important;
  border-color: #581c87 !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Cancelada */
.hca-admin-shell .teacher-agenda-event.class-event.status-cancelled,
.hca-admin-shell .teacher-agenda-week-event.class-event.status-cancelled,
.hca-admin-shell .teacher-agenda-positioned-event.class-event.status-cancelled {
  background: linear-gradient(135deg, #fecaca, #f87171) !important;
  border-left: 5px solid #991b1b !important;
  border-color: #991b1b !important;
  color: #7f1d1d !important;
  opacity: .86 !important;
}

/* No asistió */
.hca-admin-shell .teacher-agenda-event.class-event.status-no-show,
.hca-admin-shell .teacher-agenda-week-event.class-event.status-no-show,
.hca-admin-shell .teacher-agenda-positioned-event.class-event.status-no-show {
  background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
  border-left: 5px solid #7f1d1d !important;
  border-color: #7f1d1d !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Asistió */
.hca-admin-shell .teacher-agenda-event.class-event.status-completed,
.hca-admin-shell .teacher-agenda-week-event.class-event.status-completed,
.hca-admin-shell .teacher-agenda-positioned-event.class-event.status-completed {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  border-left: 5px solid #166534 !important;
  border-color: #166534 !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Texto interno del bloque */
.hca-admin-shell .teacher-agenda-event.class-event.status-reserved .teacher-agenda-event-label,
.hca-admin-shell .teacher-agenda-event.class-event.status-rescheduled .teacher-agenda-event-label,
.hca-admin-shell .teacher-agenda-event.class-event.status-no-show .teacher-agenda-event-label,
.hca-admin-shell .teacher-agenda-event.class-event.status-completed .teacher-agenda-event-label,
.hca-admin-shell .teacher-agenda-week-event.class-event.status-reserved .teacher-agenda-event-label,
.hca-admin-shell .teacher-agenda-week-event.class-event.status-rescheduled .teacher-agenda-event-label,
.hca-admin-shell .teacher-agenda-week-event.class-event.status-no-show .teacher-agenda-event-label,
.hca-admin-shell .teacher-agenda-week-event.class-event.status-completed .teacher-agenda-event-label,
.hca-admin-shell .teacher-agenda-positioned-event.class-event.status-reserved .teacher-agenda-event-label,
.hca-admin-shell .teacher-agenda-positioned-event.class-event.status-rescheduled .teacher-agenda-event-label,
.hca-admin-shell .teacher-agenda-positioned-event.class-event.status-no-show .teacher-agenda-event-label,
.hca-admin-shell .teacher-agenda-positioned-event.class-event.status-completed .teacher-agenda-event-label {
  color: #ffffff !important;
}

.hca-admin-shell .teacher-agenda-event.class-event.status-reserved .teacher-agenda-event-meta,
.hca-admin-shell .teacher-agenda-event.class-event.status-rescheduled .teacher-agenda-event-meta,
.hca-admin-shell .teacher-agenda-event.class-event.status-no-show .teacher-agenda-event-meta,
.hca-admin-shell .teacher-agenda-event.class-event.status-completed .teacher-agenda-event-meta,
.hca-admin-shell .teacher-agenda-week-event.class-event.status-reserved .teacher-agenda-event-meta,
.hca-admin-shell .teacher-agenda-week-event.class-event.status-rescheduled .teacher-agenda-event-meta,
.hca-admin-shell .teacher-agenda-week-event.class-event.status-no-show .teacher-agenda-event-meta,
.hca-admin-shell .teacher-agenda-week-event.class-event.status-completed .teacher-agenda-event-meta,
.hca-admin-shell .teacher-agenda-positioned-event.class-event.status-reserved .teacher-agenda-event-meta,
.hca-admin-shell .teacher-agenda-positioned-event.class-event.status-rescheduled .teacher-agenda-event-meta,
.hca-admin-shell .teacher-agenda-positioned-event.class-event.status-no-show .teacher-agenda-event-meta,
.hca-admin-shell .teacher-agenda-positioned-event.class-event.status-completed .teacher-agenda-event-meta {
  color: rgba(255, 255, 255, 0.92) !important;
}

.hca-admin-shell .teacher-agenda-event.class-event.status-pending .teacher-agenda-event-label,
.hca-admin-shell .teacher-agenda-event.class-event.status-pending .teacher-agenda-event-meta,
.hca-admin-shell .teacher-agenda-event.class-event.status-cancelled .teacher-agenda-event-label,
.hca-admin-shell .teacher-agenda-event.class-event.status-cancelled .teacher-agenda-event-meta,
.hca-admin-shell .teacher-agenda-week-event.class-event.status-pending .teacher-agenda-event-label,
.hca-admin-shell .teacher-agenda-week-event.class-event.status-pending .teacher-agenda-event-meta,
.hca-admin-shell .teacher-agenda-week-event.class-event.status-cancelled .teacher-agenda-event-label,
.hca-admin-shell .teacher-agenda-week-event.class-event.status-cancelled .teacher-agenda-event-meta,
.hca-admin-shell .teacher-agenda-positioned-event.class-event.status-pending .teacher-agenda-event-label,
.hca-admin-shell .teacher-agenda-positioned-event.class-event.status-pending .teacher-agenda-event-meta,
.hca-admin-shell .teacher-agenda-positioned-event.class-event.status-cancelled .teacher-agenda-event-label,
.hca-admin-shell .teacher-agenda-positioned-event.class-event.status-cancelled .teacher-agenda-event-meta {
  color: inherit !important;
}/* End custom CSS */