/* Cabecera fija (Ariel 17/11/2026). Dos clases reutilizables:
   .sticky-resumen  -> bloque de resumen (empresa, CUIT, estado, totales, filtros) que queda fijo arriba al bajar la página.
   .tabla-sticky    -> caja que envuelve una tabla larga/ancha: scrollea ADENTRO (vertical y horizontal), así la fila de
                       encabezados (thead) queda fija y el scroll horizontal no rompe el sticky (sticky no funciona
                       dentro de un contenedor con overflow si el encabezado no es hijo de ese mismo contenedor).
   La altura de la caja y el 'top' los calcula /static/js/sticky_cabecera.js (barra superior no es fija; en pantallas DDJJ
   hay una barra de botones fija: se le suma su alto). En celular (<=760px) o ventana baja (<=520px) todo vuelve a la normalidad. */
.sticky-resumen{position:sticky;top:var(--sr-top,0);z-index:30;background:var(--bg,#f4f6f9);box-shadow:0 4px 6px -4px rgba(15,23,42,.35);padding:6px 0 8px;margin-bottom:8px}
.sticky-resumen>h1:first-child{margin-top:0}
.sticky-resumen.card,.sticky-resumen.totals-bar{background:#fff}
.sticky-resumen.totals-bar{margin-top:0}
.sticky-resumen.card{margin-bottom:8px}
.sticky-resumen.sr-off{position:static;box-shadow:none}
.tabla-sticky{overflow:auto;max-height:70vh;border:1px solid var(--line,#e5e7eb);border-radius:8px;background:#fff}
.tabla-sticky table.grid,.tabla-sticky table.dp{border-radius:0;overflow:visible;border:0}
.tabla-sticky thead th{position:sticky;top:var(--th-off,0px);z-index:3;background:#f8fafc;box-shadow:inset 0 -1px 0 var(--line,#e5e7eb)}
.tabla-sticky thead tr:nth-child(2) th{top:calc(var(--th1-h,30px) + var(--th-off,0px))}
.tabla-sticky thead th:first-child{z-index:4}
.tabla-sticky tbody td:first-child{z-index:1}
@media (max-width:760px),(max-height:520px){
  .sticky-resumen{position:static;box-shadow:none}
  .tabla-sticky{max-height:none}
  .tabla-sticky thead th{position:static;box-shadow:none}
  .tabla-sticky thead th:first-child{z-index:auto}
}
@media print{
  .sticky-resumen{position:static;box-shadow:none}
  .tabla-sticky{max-height:none !important;overflow:visible;border:0}
  .tabla-sticky thead th{position:static;box-shadow:none}
}
/* Tabla del control OSTACC (16 columnas): compacta para entrar en pantalla sin scroll horizontal en monitores comunes */
.tabla-sticky .ac-tabla{font-size:12px}
.tabla-sticky .ac-tabla th{white-space:normal;line-height:1.15;padding:5px 6px;vertical-align:bottom}
.tabla-sticky .ac-tabla td{padding:4px 6px}
