/* seguimiento-matriz.css — lienzo de la vista temporal:
   · la portada de Lexia (pantalla de entrada) vive en expediente.css
   · matriz situación × informe con un solo caso (.sm-*), docs 09 §2.3
   · aviso «un solo caso» sobre el Gantt de situaciones (.sm-aviso)
   Los colores de estado llegan en línea como --sm-c desde core/situaciones.js
   (COLOR): aquí solo se aclaran u oscurecen, no se definen colores nuevos. */

/* La entrada y la matriz no usan el eje de fechas: se oculta su barra.
   timeline/index.js pone la clase en el lienzo; !important gana al display
   en línea que fija filters.js. */
.zona-temporal:has(> .lienzo-sin-eje) > .eje-x-bar { display: none !important; }

/* ── Aviso sobre el Gantt de situaciones con varios casos ────────────────── */
.sm-aviso { font-size: 11.5px; color: #777; padding: 2px 0 6px; }

/* ── Matriz situación × informe ──────────────────────────────────────────── */
.sm-matriz { color: #3a3a3a; font-size: 12px; padding: 2px 0 16px; }

.sm-cabecera { margin-bottom: 10px; }
.sm-caso {
  font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: #9a9a94;
}
.sm-titulo { font-size: 13.5px; font-weight: 600; color: #1a1a1a; margin: 1px 0 0; }
.sm-cuenta { font-size: 11.5px; color: var(--tinta-3); margin: 0 0 6px; }
.sm-leyenda {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  font-size: 11px; color: #777;
}
.sm-ley-item { display: inline-flex; align-items: center; cursor: default; }
.sm-ley-nota { color: var(--tinta-3); margin-left: 6px; }
.sm-vacio { font-size: 12px; color: #777; padding: 10px 0; }

/* Pastilla de estado: fondo y borde aclarados del color oficial, texto oscurecido. */
.sm-pill {
  display: inline-block; vertical-align: middle;
  font-size: 11px; line-height: 1.25; font-weight: 500; white-space: nowrap;
  padding: 1px 7px; border-radius: 9px;
  color: color-mix(in srgb, var(--sm-c) 68%, #000);
  background: color-mix(in srgb, var(--sm-c) 14%, #fff);
  border: 0.5px solid color-mix(in srgb, var(--sm-c) 50%, #fff);
}
/* «no figura»: gris claro, sin pastilla. */
.sm-nofigura {
  display: inline-block; vertical-align: middle;
  font-size: 11px; line-height: 1.25; white-space: nowrap;
  color: var(--sm-c, #9aa0a6);
}

.sm-tabla {
  width: 100%; table-layout: fixed;
  border-collapse: separate; border-spacing: 0;
}
.sm-tabla th, .sm-tabla td {
  text-align: left; vertical-align: top; font-weight: 400;
  padding: 6px 8px;
  border-bottom: 0.5px solid #efefea;
}

/* Cabecera fija al hacer scroll en el lienzo. La sombra blanca tapa el
   relleno superior del lienzo, por donde asomaban las filas. */
.sm-tabla thead th {
  position: sticky; top: 0; z-index: 2;
  background: #fff; vertical-align: bottom;
  border-bottom: 1px solid #dcdcd6;
  box-shadow: 0 -8px 0 #fff;
}
.sm-th-sit {
  font-size: 10px !important; font-weight: 600 !important;
  letter-spacing: .06em; text-transform: uppercase; color: #999;
}
.sm-hito { cursor: pointer; }
.sm-hito:hover .sm-hito-nom { color: #1a1a1a; text-decoration: underline; text-decoration-color: #c8c8c2; }
.sm-hito:focus-visible { outline: 2px solid #2563c9; outline-offset: -2px; }
.sm-hito-nom { font-size: 11.5px; font-weight: 600; color: #3a3a3a; line-height: 1.3; overflow-wrap: anywhere; }
/* «Informe 5708-2026-CG/GRAR-SCC» baja de línea si no cabe tras «H1». */
.sm-hito-inf { display: inline-block; max-width: 100%; vertical-align: bottom; font-weight: 500; overflow-wrap: anywhere; }
.sm-hito-res { font-size: 10.5px; color: var(--tinta-3); line-height: 1.3; margin-top: 2px; }

/* Columna «Último informe», apenas sombreada. */
.sm-tabla thead .sm-th-final { background: #fafaf8; box-shadow: 0 -8px 0 #fff; }
.sm-final { background: #fafaf8; }
.sm-final-nota {
  display: inline-block; white-space: nowrap; vertical-align: middle;
  font-size: 10.5px; color: var(--tinta-3); line-height: 1.3; margin-left: 6px;
}

/* Encabezado de cada grupo de filas. */
.sm-grupo th {
  font-size: 10px; font-weight: 600 !important; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tinta-3); padding: 12px 8px 4px;
  border-bottom: 1px solid #e6e6e0;
}
.sm-grupo-n { color: #b5b5ae; margin-left: 3px; }

/* Nombre de la situación: título (≤100 car.); clic despliega el texto completo. */
.sm-sit-titulo, .sm-sit-texto { font-size: 12px; color: #3a3a3a; line-height: 1.4; overflow-wrap: anywhere; }
.sm-sit-texto { display: none; }
.sm-abierta .sm-sit-texto { display: block; }
.sm-abierta .sm-sit-titulo { display: none; }
.sm-sit-expandible { cursor: pointer; }
.sm-sit-expandible:hover .sm-sit-titulo { color: #1a1a1a; }
.sm-sit-nota { font-size: 10.5px; color: var(--tinta-3); line-height: 1.35; margin-top: 2px; }

/* Celdas por informe. Las que tienen fuente abren el PDF ([data-pdf]). */
.sm-celda { line-height: 1.4; }
.sm-pag { font-size: 10px; color: #a3a39d; margin-left: 5px; vertical-align: middle; white-space: nowrap; }
.sm-con-pdf { cursor: pointer; }
.sm-con-pdf:hover { background: #f5f7fb; }
.sm-con-pdf:hover .sm-pag { color: #2563c9; text-decoration: underline; }

.sm-fila:hover > th, .sm-fila:hover > td:not(.sm-con-pdf:hover) { background: #fbfbf9; }
.sm-fila:hover > .sm-final { background: #f6f6f3; }

/* Enlace declarado por el informe: el propio informe dice que esta situación
   es la de un informe anterior redactada de otra forma. La nota es breve; el
   motivo va en el title y se lee al desplegar la fila. */
.sm-sit-nota { font-size: 12px; }
.sm-enlace {
  color: var(--tinta-2, #4A5567); cursor: help;
  text-decoration: underline dotted; text-underline-offset: 2px;
  text-decoration-color: var(--tinta-3, #5F6B7D);
}
.sm-enlace-motivo {
  display: none; margin-top: 4px; padding-left: 8px;
  border-left: 2px solid var(--regla, #C9D0D9);
  font-family: var(--sans, Seravek, "Avenir Next", system-ui, sans-serif);
  font-size: 12px; line-height: 1.45; color: var(--tinta-2, #4A5567);
  white-space: normal; overflow-wrap: anywhere;
}
.sm-abierta .sm-enlace-motivo { display: block; }

/* Número de vigentes dentro de la marca del hito (línea de tiempo, por hito). */
.lh-num { font-weight: 700; pointer-events: none; font-variant-numeric: tabular-nums; }

/* Cabecera de cada hito: número y fecha; debajo el informe y el desglose. */
.sm-hito-nom { font-size: 12px; font-weight: 700; color: var(--tinta); }
.sm-hito-inf { display: block; font-size: 10.5px; font-weight: 500; color: var(--tinta-3); margin-top: 1px; }
