.table-activos-nombre{
	text-transform:capitalize;
}
.table-activos-cama-uc{
	text-transform:uppercase;
}
.table-activos-intervencion{
	text-transform:capitalize;
}
.table-activos-residente{
	text-transform:capitalize;
}
@media screen and (max-width: 450px) {
	.table-activos-residente{
		display:none;
	}
}

.paciente_nombre{
	text-transform:capitalize;
}
.paciente_cama{
	text-transform:uppercase;
}

.firstletteruptd:first-letter{
	text-transform:uppercase;
}

.firstletterup{
	display:inline-block;
}
.firstletterup:first-letter{
	text-transform:uppercase;
}
.firstletterup2:first-letter{
	text-transform:uppercase;
}
.nombreresidente{
	text-transform:capitalize;
}

.capitalize{
	text-transform:capitalize;
}

.card-counter{
    margin: 5px;
    padding: 20px 10px;
    background-color: #fff;
    height: 100px;
    border-radius: 5px;
    transition: .3s linear all;
  }

  .card-counter:hover{
    transition: .3s linear all;
  }

  .card-counter.primary{
    background-color: #426fae;
    color: #FFF;
  }

  .card-counter.danger{
    background-color: #ef5350;
    color: #FFF;
  }  

  .card-counter.success{
    background-color: #66bb6a;
    color: #FFF;
  }  

  .card-counter.info{
    background-color: #26c6da;
    color: #FFF;
  }  

  .card-counter i{
    font-size: 5em;
    opacity: 0.2;
  }

  .card-counter .count-text{
	display: inline-block;
	padding-right: 15px;
	float: right;
	margin-top:10px;
  }

  .card-counter .count-numbers{
    font-size: 32px;
    display: flex; 
	justify-content: flex-end;
  }

  .card-counter .count-name{
    font-style: italic;
    text-transform: capitalize;
    opacity: 0.5;
    display: flex; 
	justify-content: flex-end;
    font-size: 18px;
  }
  
  
  /* TIMELINE VERTICAL */
.timeline2 {
	list-style: none;
	padding: 0;
}

.timeline2-item {
	display: flex;
	margin-top: 15px;
}

.timeline2-time {
	flex: 1;
	font-weight: bold;
}

.timeline2-content {
	flex: 5;
	border-left: 2px solid #40aa93;
	padding-left: 20px;
}




.boton_estadisticas{
    margin: 30px 0px 30px 0px;
    padding: 10px 20px 10px;
    background-color: #dfdfdf;
    height: 100px;
    border-radius: 5px;
	border-color: #cecece;
	border-width: 2px;
	border-style: solid;
	box-shadow: 0px 0px 5px #dfdfdf;
    transition: .1s linear all;
	cursor: pointer; /* Cambia el cursor al pasar por encima */
	color: #666;
  }

.boton_estadisticas:hover {
  background-color: #fff; /* Cambia el color al pasar el ratón por encima */
}

.boton_estadisticas:active {
  background-color: #f1f1f1; /* Cambia el color cuando se hace clic */
}

  .boton_estadisticas i{
    font-size: 5em;
    opacity: 0.4;
  }

  .boton_estadisticas .count-text{
	display: inline-block;
	padding-right: 15px;
	float: right;
	margin-top:20px;
  }

  .boton_estadisticas .count-numbers{
    font-size: 20px;
    display: flex; 
	justify-content: flex-end;
  }

  .boton_estadisticas .count-name{
    font-style: italic;
    opacity: 0.5;
    display: flex; 
	justify-content: flex-end;
    font-size: 13px;
	margin-top:-5px;
  }
  
/* TABLA SEGUIMIENTO PROCEDIMIENTOS */
 .tabla_seguimiento{
	background-color: #f9f9f9;
 }
 
 .tabla_seguimiento tr{
	 height:4rem; 
	 vertical-align:middle;
 }
 
 .tabla_seguimiento td:first-letter{
	text-transform: uppercase;
 }
 
 .tabla_seguimiento th{
	font-size: 1.6em;
 }
  
.tabla_seguimiento tbody tr:hover {
	background-color: #f5f5f5;
}

.tabla_seguimiento tbody tr:active {
	background-color: #77a3c4;
	color: #fff;
}

/* TABLA PACIENTES */
 .tabla_pacientes tbody tr{
	 height:72px; 
	 vertical-align:middle;
 }
.tabla_pacientes tbody tr:hover {
	background-color: #f5f5f5;
}

.tabla_pacientes tbody tr:active {
	background-color: #77a3c4;
	color: #fff;
}





/* styles.css */
.chart-container {
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

/* CONTEXTO ACADÉMICO — Subtítulo en header */
.appHeader .pageTitle .appHeader-subtitle {
    font-size: 0.62em;
    font-weight: 400;
    opacity: 0.82;
    display: block;
    line-height: 1;
    margin-top: 1px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* SELECCIÓN MODO / CONTEXTO — Botones grandes */
.seleccion-modo-btn {
    background: #fff;
    border: 1.5px solid #dee2e6;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: border-color 0.15s, box-shadow 0.15s;
    color: #212529;
}
.seleccion-modo-btn:hover,
.seleccion-modo-btn:focus {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13,110,253,0.12);
    background: #f8f9ff;
    color: #212529;
}
.seleccion-modo-btn:active {
    background: #e8edff;
}


/* ── TOMA CHECKLIST (Stage 11) ───────────────────────────────────────────── */

/* Barra de progreso */
.tc-progress-wrap {
    background: #f4f6fb;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

/* Tarjeta de ítem */
.tc-item-card {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    transition: border-color 0.15s, background-color 0.15s;
}
.tc-item-card.tc-resp-logrado {
    border-color: #a5d6a7;
    background: #f1f8f1;
}
.tc-item-card.tc-resp-no_logrado {
    border-color: #ef9a9a;
    background: #fff5f5;
}
.tc-item-card.tc-resp-no_evaluado {
    border-color: #bdbdbd;
    background: #fafafa;
}
.tc-item-card.tc-sin-resp {
    border-color: #ff9800 !important;
    background: #fff8e1 !important;
}

/* Botones de respuesta dentro del ítem */
.tc-btn-resp {
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 6px;
    font-size: 0.8em;
    background: #f8f9fa;
    color: #555;
    cursor: pointer;
    flex: 1;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.1s;
    text-align: center;
    line-height: 1.2;
}
.tc-btn-resp:active {
    transform: scale(0.96);
}
.tc-item-card.tc-resp-logrado .tc-btn-resp[data-val="logrado"] {
    background: #43a047;
    color: #fff;
    border-color: #43a047;
}
.tc-item-card.tc-resp-no_logrado .tc-btn-resp[data-val="no_logrado"] {
    background: #e53935;
    color: #fff;
    border-color: #e53935;
}
.tc-item-card.tc-resp-no_evaluado .tc-btn-resp[data-val="no_evaluado"] {
    background: #757575;
    color: #fff;
    border-color: #757575;
}

/* Barra de acciones fija en la parte inferior */
.tc-action-bar {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 10px 0 22px;
    display: flex;
    gap: 10px;
    z-index: 100;
    margin-top: 8px;
}
.tc-action-bar .btn {
    flex: 1;
    min-height: 48px;
    font-weight: 600;
}

/* Vista resultado */
.tc-result-card {
    border-radius: 16px;
    padding: 24px 16px 20px;
    text-align: center;
    margin-bottom: 14px;
}
.tc-result-aprobado {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 1.5px solid #a5d6a7;
}
.tc-result-reprobado {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border: 1.5px solid #ef9a9a;
}
.tc-result-icon {
    font-size: 3em;
    line-height: 1;
    margin-bottom: 4px;
}
.tc-result-aprobado .tc-result-icon { color: #43a047; }
.tc-result-reprobado .tc-result-icon { color: #e53935; }
.tc-result-label {
    font-size: 1.5em;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin: 4px 0 6px;
}
.tc-result-aprobado .tc-result-label { color: #2e7d32; }
.tc-result-reprobado .tc-result-label { color: #c62828; }
.tc-result-pct {
    font-size: 2.2em;
    font-weight: 700;
    color: #333;
    line-height: 1.1;
}

/* Estadísticas de resultado */
.tc-stats-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.tc-stat {
    flex: 1;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
}
.tc-stat-num {
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
    line-height: 1;
}
.tc-stat-label {
    font-size: 0.68em;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 3px;
}

/* Detalle de ítems en resultado */
.tc-item-result {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.tc-item-result:last-child {
    border-bottom: none;
}
.tc-item-result-icon {
    font-size: 1.25em;
    flex-shrink: 0;
    margin-top: 1px;
    line-height: 1;
}
.tc-item-result-body {
    flex: 1;
    min-width: 0;
}
.tc-item-result-texto {
    font-size: 0.85em;
    color: #333;
    font-weight: 500;
    line-height: 1.35;
}
.tc-item-result-aptitud {
    font-size: 0.74em;
    color: #aaa;
    margin-top: 2px;
}
.tc-item-result-estado {
    font-size: 0.78em;
    font-weight: 600;
    flex-shrink: 0;
    padding-top: 2px;
}

/* === Stage 12: Toma Mini-CEX === */
.mx-domain-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    border-left: 4px solid #e0e0e0;
    background: #fff;
}
.mx-domain-card.mx-valorado    { border-left-color: #43a047; }
.mx-domain-card.mx-no-eval-set { border-left-color: #9e9e9e; }
.mx-domain-card.mx-sin-val     { border-left-color: #e53935; background: #fff8f8; }

.mx-scale-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.mx-scale-chip {
    min-width: 38px; min-height: 38px;
    border: 1.5px solid #90a4ae;
    border-radius: 7px;
    background: #f5f7fa; color: #546e7a;
    font-weight: 700; font-size: 0.88em;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.mx-scale-chip:hover:not(.mx-scale-selected) { border-color: #1976d2; color: #1976d2; }
.mx-scale-chip.mx-scale-selected { background: #1976d2; border-color: #1976d2; color: #fff; }

.mx-no-eval-btn {
    font-size: 0.78em; color: #9e9e9e;
    border: 1px dashed #ccc; border-radius: 6px;
    padding: 4px 10px; background: transparent; cursor: pointer;
}
.mx-no-eval-btn.mx-no-eval-active { border-color: #9e9e9e; color: #555; background: #f5f5f5; }

.mx-action-bar { display: flex; justify-content: space-between; gap: 10px; padding: 14px 0 8px; margin-top: 12px; }
.mx-action-bar .btn { flex: 1; min-height: 44px; }

.mx-result-card { text-align: center; padding: 24px 16px; border-radius: 12px; margin-bottom: 16px; }
.mx-result-numerico  { background: #e8f5e9; }
.mx-result-aprobado  { background: #e8f5e9; }
.mx-result-reprobado { background: #ffebee; }
.mx-result-icon { font-size: 2.8em; margin-bottom: 4px; }
.mx-result-score { font-size: 2em; font-weight: 800; letter-spacing: -1px; }
.mx-result-label { font-size: 1.1em; font-weight: 700; margin-top: 4px; }

.mx-stats-row { display: flex; justify-content: space-around; margin-bottom: 14px; }
.mx-stat { text-align: center; }
.mx-stat-num { font-size: 1.4em; font-weight: 700; }
.mx-stat-label { font-size: 0.72em; color: #888; }

.mx-domain-result { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.mx-domain-result-score { font-weight: 700; font-size: 0.88em; min-width: 52px; text-align: right; flex-shrink: 0; }

/* === Stage 13: Historial de evaluaciones === */
.eh-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
}

/* === Detalle de evaluación read-only (Etapa 14) === */
.ed-aptitudes-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 16px;
}
.ed-apt-chip {
    font-size: 0.75em;
    background: #e8eaf6;
    color: #3949ab;
    border-radius: 12px;
    padding: 3px 10px;
    font-weight: 500;
    white-space: nowrap;
}
.ed-badge-sin-resp {
    display: inline-block;
    font-size: 0.78em;
    background: #fff8e1;
    color: #e65100;
    border-radius: 4px;
    padding: 1px 6px;
    font-weight: 500;
}
.ed-badge-no-eval {
    display: inline-block;
    font-size: 0.78em;
    background: #f5f5f5;
    color: #757575;
    border-radius: 4px;
    padding: 1px 6px;
    font-weight: 500;
}

/* === Etapa 15: Vista personal del residente === */
.er-summary-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.er-summary-box {
    flex: 1;
    min-width: 80px;
    text-align: center;
    background: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 8px;
}
.er-summary-num {
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
}
.er-summary-label {
    font-size: 0.72em;
    color: #888;
}

/* === Etapa 16: Lectura académica individual del residente === */
.eri-selector-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.eri-selector-info {
    flex: 1;
}
.eri-selector-nombre {
    font-weight: 600;
    font-size: 0.92em;
    color: #222;
    margin-bottom: 2px;
}
.eri-selector-meta {
    font-size: 0.76em;
    color: #888;
}
.eri-residente-card {
    background: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.eri-residente-nombre {
    font-weight: 700;
    font-size: 1em;
    color: #222;
    margin-bottom: 4px;
}
.eri-residente-meta {
    font-size: 0.78em;
    color: #888;
    line-height: 1.5;
}
.eri-summary-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.eri-summary-box {
    flex: 1;
    min-width: 80px;
    text-align: center;
    background: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 8px;
}
.eri-summary-num {
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
    display: block;
}
.eri-summary-label {
    font-size: 0.72em;
    color: #888;
}
.eri-apt-section-title {
    font-weight: 700;
    font-size: 0.88em;
    color: #444;
    margin: 0 0 2px;
}
.eri-apt-section-sub {
    font-size: 0.75em;
    color: #999;
    margin: 0 0 12px;
}
.eri-apt-row {
    margin-bottom: 12px;
}
.eri-apt-nombre {
    font-size: 0.85em;
    color: #333;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}
.eri-apt-bar-wrap {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2px;
}
.eri-apt-bar-fill {
    height: 100%;
    border-radius: 4px;
}
.eri-apt-bar-fill.eri-bar-alto   { background: #28a745; }
.eri-apt-bar-fill.eri-bar-medio  { background: #ffc107; }
.eri-apt-bar-fill.eri-bar-bajo   { background: #dc3545; }
.eri-apt-bar-fill.eri-bar-nd     { background: #ced4da; }
.eri-apt-meta {
    font-size: 0.72em;
    color: #aaa;
    display: flex;
    justify-content: space-between;
}
.eri-apt-critico-badge {
    font-size: 0.65em;
    color: #dc3545;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ─── Etapa 17: Resumen Grupal del Programa (.egrp-*) ─── */

.egrp-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.egrp-summary-box {
    flex: 1 1 calc(50% - 6px);
    min-width: 130px;
    background: #fff;
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.egrp-summary-num {
    font-size: 2rem;
    font-weight: 700;
    color: #4a4a4a;
    line-height: 1;
    display: block;
}
.egrp-summary-label {
    font-size: .75rem;
    color: #888;
    margin-top: 4px;
    display: block;
}
.egrp-meta-row {
    font-size: .8rem;
    color: #aaa;
    margin-bottom: 8px;
}
.egrp-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    margin: 20px 0 4px;
}
.egrp-section-sub {
    font-size: .78rem;
    color: #999;
    margin-bottom: 12px;
}
.egrp-tipo-row {
    margin-bottom: 10px;
}
.egrp-tipo-label {
    font-size: .85rem;
    color: #555;
    margin-bottom: 2px;
}
.egrp-anio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.egrp-anio-card {
    flex: 1 1 90px;
    min-width: 80px;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
.egrp-anio-titulo {
    font-size: .8rem;
    font-weight: 600;
    color: #555;
}
.egrp-anio-dato {
    font-size: .75rem;
    color: #888;
    margin-top: 2px;
}
.egrp-apt-row {
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
}
.egrp-apt-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.egrp-apt-nombre {
    flex: 1;
    font-size: .88rem;
    font-weight: 600;
    color: #444;
}
.egrp-apt-score {
    margin-left: 8px;
    font-size: .9rem;
    font-weight: 700;
    color: #333;
}
.egrp-apt-bar-wrap {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin: 5px 0;
    overflow: hidden;
}
.egrp-apt-bar-fill {
    height: 100%;
    border-radius: 4px;
}
.egrp-bar-alto  { background-color: #28a745; }
.egrp-bar-medio { background-color: #ffc107; }
.egrp-bar-bajo  { background-color: #dc3545; }
.egrp-apt-meta {
    font-size: .75rem;
    color: #999;
}
.egrp-badge-nd {
    font-size: .72rem;
    background: #f0f0f0;
    color: #999;
    border-radius: 4px;
    padding: 2px 6px;
    display: inline-block;
}
.egrp-reciente-card {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
}

/* === Etapa 18: Informes avanzados === */
.ia-bar-wrap {
    background: #e9ecef;
    border-radius: 4px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 4px;
}
.ia-bar-fill {
    height: 12px;
    border-radius: 4px;
    background: #0d6efd;
}
.ia-bar-fill-success { background: #198754; }
.ia-bar-fill-warning { background: #ffc107; }
.ia-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ia-metric-number {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}
.ia-metric-label {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}
.ia-section-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 20px 0 10px;
    color: #222;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 6px;
}
.ia-apt-row {
    margin-bottom: 10px;
}
.ia-apt-name {
    font-size: 0.82rem;
    color: #444;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.ia-apt-meta {
    font-size: 0.72rem;
    color: #888;
}
.ia-export-btn {
    display: block;
    width: 100%;
    margin-bottom: .5rem;
}
.ia-empty-state {
    text-align: center;
    padding: 20px 10px;
    color: #888;
    font-size: 0.85rem;
}
.ia-periodo-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.82rem;
}
.ia-periodo-label {
    min-width: 54px;
    font-weight: 600;
    color: #555;
}
.ia-periodo-bar {
    flex: 1;
}
.ia-periodo-count {
    min-width: 28px;
    text-align: right;
    color: #333;
}
.ia-participacion-bar {
    height: 18px;
    border-radius: 4px;
    overflow: hidden;
    background: #e9ecef;
    margin-bottom: 4px;
}
.ia-participacion-fill {
    height: 18px;
    background: #198754;
    border-radius: 4px;
}
@media (min-width: 576px) {
    .ia-export-btn {
        display: inline-block;
        width: auto;
        margin-right: .5rem;
        margin-bottom: 0;
    }
}
.ia-limitada-badge {
    font-size: .65rem;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 3px;
    padding: 1px 4px;
    margin-left: 4px;
    vertical-align: middle;
    white-space: nowrap;
}
.ia-resumen-bloque {
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #426fae;
    padding: 10px 12px;
}

/* === Sidebar — subitems de Evaluaciones Prácticas (.lm-*) === */
.lm-subitem {
    padding-left: 52px !important;
}
.lm-subitem-icon {
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1rem;
    margin-right: 8px;
    flex-shrink: 0;
}
.lm-subitem .in {
    font-size: 0.88em;
    color: #555;
}
.lm-subitem.active .in { color: #426fae; font-weight: 600; }
.lm-subitem.active .lm-subitem-icon { color: #426fae; }

/* Bloque de contexto compacto al final del menú */
.lm-context-block {
    border-top: 1px solid #f0f0f0;
    padding: 10px 16px 4px;
}
.lm-context-modo { margin-bottom: 6px; }
.lm-mode-chip {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 999px;
}
.lm-mode-academico { background: #e8f4fd; color: #1565c0; }
.lm-mode-admin     { background: #f3f3f3; color: #555; }
.lm-context-info { margin-bottom: 4px; }
.lm-context-line {
    font-size: 0.78rem;
    color: #444;
    line-height: 1.35;
}
.lm-context-prog { color: #888; }
.lm-context-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; padding-bottom: 6px; }
.lm-context-link { font-size: 0.75rem; color: #426fae; text-decoration: none; }
.lm-context-link:hover { text-decoration: underline; }

/* === Home dashboard (.hm-*) === */
.hm-saludo {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 2px;
}
.hm-contexto-label {
    font-size: 0.82rem;
    color: #888;
    margin: 0 0 16px;
}
.hm-metrics-row {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.hm-metric-box {
    flex: 1;
    min-width: 80px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.hm-metric-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    display: block;
    line-height: 1;
}
.hm-metric-lbl {
    font-size: 0.68rem;
    color: #aaa;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.hm-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9ca3af;
    margin: 0 0 10px;
}
.hm-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hm-card {
    flex: 1 1 calc(50% - 5px);
    min-width: 120px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 12px;
    text-decoration: none;
    color: #222;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: border-color .15s, box-shadow .15s;
}
.hm-card:active { background: #f8f9ff; border-color: #426fae; }
.hm-card-icon  { font-size: 1.5rem; color: #426fae; }
.hm-card-label { font-size: 0.85rem; font-weight: 600; color: #333; }
.hm-feed-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.84rem;
}
.hm-feed-item:last-child { border-bottom: none; }
.hm-feed-icon  { font-size: 1.2rem; flex-shrink: 0; color: #9ca3af; margin-top: 1px; }
.hm-feed-body  { flex: 1; }
.hm-feed-title { font-weight: 600; color: #333; }
.hm-feed-meta  { font-size: 0.76rem; color: #aaa; }
.hm-cta-block {
    text-align: center;
    padding: 32px 16px;
}
.hm-cta-icon { font-size: 3rem; color: #d1d5db; margin-bottom: 12px; }

/* === Evaluaciones prácticas (.ep-*) === */

/* eval_aptitudes — botón eliminar definitivo */
.aptitudes-native-btn-delete {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fff5f5;
}
.aptitudes-native-btn-delete:active {
    background: #fee2e2;
}

/* eval_instrumentos — cabecera de sección (checklist / mini-CEX) */
.ep-instrumento-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    padding: 8px 0 6px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 10px;
}

/* eval_historial — badge numérico de filtros activos */
.ep-filtros-badge {
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 999px;
    background: #3b82f6;
    color: #fff;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}
