/* MEDHUB INDEX v2.5 — sombreado vertical por asignatura.
   Se aplica solo a columnas de notas; nombres, promedios y acciones no cambian. */
.table-wrap table { border-collapse: separate; border-spacing: 0; }
.table-wrap table[data-subject-view="all"] :is(th,td):nth-child(2),
.table-wrap table[data-subject-view="0"] :is(th,td):nth-child(2) { background-color: rgba(189, 117, 84, .115); box-shadow: inset 1px 0 rgba(174,106,76,.13), inset -1px 0 rgba(174,106,76,.13); }
.table-wrap table[data-subject-view="all"] :is(th,td):nth-child(3),
.table-wrap table[data-subject-view="1"] :is(th,td):nth-child(2) { background-color: rgba(116, 153, 128, .125); box-shadow: inset 1px 0 rgba(95,135,108,.13), inset -1px 0 rgba(95,135,108,.13); }
.table-wrap table[data-subject-view="all"] :is(th,td):nth-child(4),
.table-wrap table[data-subject-view="2"] :is(th,td):nth-child(2) { background-color: rgba(101, 151, 187, .125); box-shadow: inset 1px 0 rgba(81,133,171,.13), inset -1px 0 rgba(81,133,171,.13); }
.table-wrap table[data-subject-view="all"] :is(th,td):nth-child(5),
.table-wrap table[data-subject-view="3"] :is(th,td):nth-child(2) { background-color: rgba(158, 116, 161, .125); box-shadow: inset 1px 0 rgba(143,102,147,.13), inset -1px 0 rgba(143,102,147,.13); }
/* Encabezados más definidos; tonalidades vinculadas a los gráficos superiores. */
.table-wrap table[data-subject-view="all"] th:nth-child(2),.table-wrap table[data-subject-view="0"] th:nth-child(2) { background: #b98168; color: white; }
.table-wrap table[data-subject-view="all"] th:nth-child(3),.table-wrap table[data-subject-view="1"] th:nth-child(2) { background: #7b9c89; color: white; }
.table-wrap table[data-subject-view="all"] th:nth-child(4),.table-wrap table[data-subject-view="2"] th:nth-child(2) { background: #729bb7; color: white; }
.table-wrap table[data-subject-view="all"] th:nth-child(5),.table-wrap table[data-subject-view="3"] th:nth-child(2) { background: #9b7d9f; color: white; }
/* Conservar contraste y funcionalidad de inputs en todas las vistas. */
.table-wrap table td input.grade { position: relative; z-index: 1; }
