#sindist-cifras { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
#sindist-motivos { margin-block: var(--s-4); max-width: 640px; }
/* La tabla global exige 720px: el resumen de dos columnas debe caber en su caja. */
#sindist-motivos table { min-width: 0; }
#sindist-motivos th:first-child, #sindist-motivos td:first-child { white-space: normal; overflow-wrap: anywhere; }
#sindist-motivos th:last-child, #sindist-motivos td:last-child { width: 1%; white-space: nowrap; text-align: right; }
#sindist-tabla .tabla-scroll { max-height: 65vh; }
#sindist-tabla table { min-width: 1080px; }
#sindist-tabla th { position: sticky; top: 0; background: var(--color-paper); z-index: 1; }
#sindist-tabla td { vertical-align: top; }
.sindist__ceco { display: block; color: var(--color-muted); margin-top: 4px; }
#vista-sindistribuir a { text-underline-offset: .2em; }
#vista-sindistribuir a:focus-visible { outline: 2px solid var(--color-aviso); outline-offset: 3px; }

/* La capa no cambia el fondo ni la sombra del tema (neumorfismo impone sombras
   !important en las tablas). Desaparece con la clase y no intercepta el puntero. */
.origen-resaltado:not(tr), .origen-resaltado > td, .origen-resaltado > th {
  position: relative;
  --origen-amarillo: color-mix(in oklch, var(--color-aviso) 50%, #ffe600);
}
.origen-resaltado:not(tr)::after, .origen-resaltado > td::after, .origen-resaltado > th::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: var(--origen-amarillo);
  animation: origen-brillo 2.6s ease-out both;
}
@keyframes origen-brillo {
  0%, 15% { opacity: .55; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .origen-resaltado:not(tr)::after, .origen-resaltado > td::after, .origen-resaltado > th::after {
    animation: none;
    opacity: .4;
  }
}
