/* Actividad: la línea de tiempo con carriles */
.ac-resumen { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; font-size: 13px; margin: 2px 0 12px; }
.ac-l { display: inline-block; width: 10px; height: 10px; border-radius: 1px; margin-right: 6px; vertical-align: -1px; }
.ac-l-mal { background: var(--mal); }

.ac-barra { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-bottom: 10px; }
.ac-grupo { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.ac-capa { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--tinta-2); cursor: pointer; }
.ac-capa input { accent-color: var(--acento); margin: 0 2px 0 0; }
.ac-filtros { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 10px; font-size: 12.5px; }

/* la caja de la línea de tiempo: lo ancho se desplaza dentro, nunca la página */
.ac-caja { overflow-x: auto; border: 1px solid var(--raya); border-radius: var(--r); background: var(--hoja); max-width: 100%; }
.ac-linea { --lab: 196px; --der: 128px; position: relative; min-width: 760px; }
.ac-rejilla { position: absolute; left: var(--lab); right: var(--der); top: 0; bottom: 0; pointer-events: none; z-index: 0; }
.ac-gl { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--raya-2); }
.ac-gl.es-dia { border-left: 1px dashed var(--tinta-3); }
.ac-ahora { position: absolute; right: 0; top: 0; bottom: 0; border-right: 2px solid var(--tinta); }
.ac-fila { position: relative; z-index: 1; display: grid; grid-template-columns: var(--lab) minmax(0, 1fr) var(--der); align-items: stretch; border-top: 1px solid var(--raya-2); }
.ac-fila > * { min-width: 0; }
.ac-lab { padding: 6px 8px 6px 12px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; font-size: 12.5px; }
.ac-nombre { font-weight: 500; }
.ac-sub { font-size: 11px; line-height: 1.3; }
.ac-quien { display: flex; align-items: center; gap: 2px; min-width: 0; max-width: 100%; }
.ac-quien > .chip { min-width: 0; }
.ac-solo { width: 20px; height: 20px; font-size: 13px; color: var(--tinta-3); }
.ac-der { padding: 6px 10px 6px 8px; display: flex; flex-direction: column; justify-content: center; gap: 0; font-size: 11.5px; line-height: 1.35; text-align: right; white-space: nowrap; }
.ac-t-mal { color: var(--mal); font-weight: 500; }

.ac-eje { border-top: 0; border-bottom: 1px solid var(--raya); background: var(--hoja-2); }
.ac-eje .ac-lab { padding-top: 4px; padding-bottom: 4px; }
.ac-pista { position: relative; min-height: 32px; }
.ac-pista-eje { height: 30px; min-height: 30px; }
.ac-tick { position: absolute; top: 8px; transform: translateX(-50%); font: 11px/1 var(--cifra); color: var(--tinta-3); white-space: nowrap; }
.ac-tick.es-dia { top: 8px; color: var(--tinta); font-weight: 500; transform: none; padding-left: 4px; }
.ac-tick.ac-fin { left: auto; right: 4px; transform: none; color: var(--tinta); font-weight: 600; top: 8px; background: var(--hoja-2); padding-left: 3px; }
.ac-grupo-fila { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 10px; padding: 7px 12px; border-top: 1px solid var(--raya); background: var(--hoja-2); font: 600 12.5px/1.3 var(--titulo); }
.ac-grupo-fila .tenue { font: 400 12px/1.3 var(--texto); }
.ac-vacia { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; background: var(--hoja); padding: 0 4px; border-radius: 2px; }

/* carriles de quien actúa: un bloque por ejecución */
.ac-carril .ac-pista { min-height: 34px; }
.ac-carril.es-alto .ac-pista { min-height: 78px; }
.ac-ej { position: absolute; top: 7px; bottom: 7px; min-width: 4px; padding: 0; border: 1px solid var(--hoja); border-radius: 2px; background: var(--nada); cursor: pointer; }
.ac-carril.es-alto .ac-ej { top: 10px; bottom: 28px; }
.ac-ej.e-bien { background: var(--bien); }
.ac-ej.e-atencion { background: var(--atencion); }
.ac-ej.e-mal { background: var(--mal); }
.ac-ej.e-nada { background: var(--nada); }
.ac-ej.e-esperado { border-color: var(--esperado); }
.ac-ej:hover { outline: 1.5px solid var(--tinta); z-index: 3; }
.ac-ej.es-sel { outline: 2px solid var(--acento); outline-offset: 2px; z-index: 4; }
.ac-hora { position: absolute; bottom: 8px; transform: translateX(-50%); font: 10.5px/1 var(--cifra); color: var(--tinta-3); }
.ac-hueco { position: absolute; top: 7px; bottom: 7px; width: 11px; margin-left: -5px; border: 1.5px dashed var(--mal); border-radius: 2px; background: var(--hoja); z-index: 2; }
.ac-carril.es-alto .ac-hueco { top: 10px; bottom: 28px; }

/* carriles de llamadas por hora */
.ac-barra-h { position: absolute; top: 5px; bottom: 5px; padding: 0 1px; display: flex; align-items: flex-end; z-index: 2; }
.ac-carril.es-alto .ac-barra-h { top: 8px; bottom: 8px; }
.ac-pila { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.ac-pila i { display: block; width: 100%; min-height: 2px; }
.ac-b-bien { background: var(--pulso); }
.ac-b-mal { background: var(--mal); }
.ac-sistema .ac-pista { min-height: 40px; }
.ac-sistema .ac-barra-h { top: 10px; }
.ac-fuera { position: absolute; top: 0; bottom: 0; opacity: .38; z-index: 1; }
.ac-racha { position: absolute; top: 4px; height: 4px; border-radius: 2px; z-index: 3; }
.ac-racha.es-mal { background: var(--mal); }
.ac-racha.es-esp { border: 1px solid var(--esperado); height: 6px; top: 3px; }

/* cambios y avisos */
.ac-cambio { position: absolute; top: 5px; bottom: 5px; width: 0; border-left: 2px solid var(--tinta-2); z-index: 2; }
.ac-cambio.c-publicar { border-left-color: var(--acento); }
.ac-cambio.c-aviso { border-left-color: var(--atencion); }
.ac-cambio.c-acceso { border-left-color: var(--tinta-3); border-left-style: dotted; }
.ac-aviso { position: absolute; top: 50%; width: 11px; height: 11px; margin: -6px 0 0 -6px; padding: 0; border: 0; transform: rotate(45deg); background: var(--tinta-2); z-index: 2; }
.ac-aviso.g-severe, .ac-aviso.g-critical { background: var(--mal); }
.ac-aviso.g-alert { background: var(--atencion); }

.ac-leyenda { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 11.5px; color: var(--tinta-3); }
.ac-lg { display: inline-block; width: 11px; height: 9px; margin-right: 5px; border-radius: 1px; vertical-align: -1px; }
.ac-lg.e-bien { background: var(--bien); } .ac-lg.e-atencion { background: var(--atencion); } .ac-lg.e-mal { background: var(--mal); } .ac-lg.e-nada { background: var(--nada); }
.ac-lg-hueco { border: 1.5px dashed var(--mal); background: none; }
.ac-nota { font-size: 12px; margin: 8px 0 0; }

/* el detalle de una ejecución */
.ac-run-caja { padding: 14px 16px 16px; }
.ac-run-cab { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 8px; }
.ac-por-largo { margin: 0 0 10px; color: var(--tinta-2); }
.ac-run-datos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 14px; margin-bottom: 4px; }
.ac-run-datos dt { grid-column: auto; }
.ac-sub-t { font-size: 13.5px; margin: 16px 0 8px; padding-top: 12px; border-top: 1px solid var(--raya-2); }
.ac-texto { margin: 0 0 10px; max-width: 80ch; }
.ac-cascada-caja { overflow-x: auto; border: 1px solid var(--raya-2); border-radius: var(--r); }
.ac-cascada { min-width: 720px; }
.ac-c-fila { display: grid; grid-template-columns: minmax(150px, 230px) minmax(220px, 1fr) 110px 56px minmax(100px, 170px); gap: 0 12px; align-items: center; padding: 5px 10px; border-top: 1px solid var(--raya-2); font-size: 12.5px; }
.ac-c-fila:first-child { border-top: 0; }
.ac-c-cab { color: var(--tinta-3); font-size: 11.5px; background: var(--hoja-2); }
.ac-c-fila .d { text-align: right; }
.ac-c-eje { position: relative; height: 14px; }
.ac-c-t { position: absolute; top: 0; transform: translateX(-50%); font: 10.5px/14px var(--cifra); }
.ac-c-t:first-child { transform: none; }
.ac-c-t:last-child { transform: translateX(-100%); }
.ac-c-pista { position: relative; height: 20px; background: linear-gradient(var(--raya-2), var(--raya-2)) 0 50% / 100% 1px no-repeat; }
.ac-c-bar { position: absolute; top: 5px; height: 10px; min-width: 3px; border-radius: 2px; background: var(--nada); }
.ac-c-bar.e-bien { background: var(--bien); } .ac-c-bar.e-mal { background: var(--mal); } .ac-c-bar.e-atencion { background: var(--atencion); }
.ac-c-ms { position: absolute; top: 3px; font-size: 10.5px; color: var(--tinta-3); padding: 0 4px; white-space: nowrap; }
.ac-c-tool { min-width: 0; }

.ac-lista .ac-clic { cursor: pointer; }
.ac-lista .ac-clic:hover td { background: var(--hoja-2); }
.ac-lista .ac-clic.es-sel td { background: var(--acento-suave); }
.ac-por { font-size: 11.5px; }
.ac-tabla td { max-width: 60ch; }

@media (max-width: 900px) {
  .ac-linea { --lab: 132px; --der: 100px; min-width: 900px; }
  .ac-resumen { gap: 4px 14px; }
}

.ac-tools { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 10px; font-size: 12.5px; }
.ac-tool { display: inline-flex; align-items: center; gap: 6px; }
.ac-tick, .ac-c-t { white-space: nowrap; }
.ac-carril.es-alto .ac-ej { min-width: 7px; }
.v-actividad .vacio { margin-bottom: 12px; }
.ac-eje .ac-lab { white-space: nowrap; overflow: hidden; }

/* el tramo de la ruta (desde, hasta): una banda sobre la rejilla */
.ac-tramo { position: absolute; top: 0; bottom: 0; min-width: 3px; background: var(--acento-suave); border-left: 1px solid var(--acento); border-right: 1px solid var(--acento); opacity: .7; z-index: 0; pointer-events: none; }

/* buscador de carriles */
.ac-buscador { flex: 0 1 auto; }
.ac-buscar { width: 190px; max-width: 100%; min-height: 32px; padding: 4px 8px; font: 13px var(--texto); color: var(--tinta); background: var(--hoja); border: 1px solid var(--raya); border-radius: var(--r); }
.ac-acciones { flex-wrap: wrap; }

/* las llamadas, una a una */
.ac-llamadas { display: flex; flex-direction: column; border: 1px solid var(--raya-2); border-radius: var(--r); background: var(--hoja); }
.ac-llamada { border-top: 1px solid var(--raya-2); padding: 0 10px; }
.ac-llamada:first-child { border-top: 0; }
.ac-llamada > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 32px; padding: 4px 0; cursor: pointer; font-size: 12.5px; }
.ac-ll-datos { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 14px; margin: 2px 0 10px; }
.ac-ll-datos dt { grid-column: auto; }

/* lo que baja una exportación: el contenido, por si el navegador no deja descargar */
.ac-descarga p { margin: 0 0 6px; }
.ac-fichero { width: 100%; font: 11.5px/1.4 var(--cifra); resize: vertical; }
@media (max-width: 700px) {
  .ac-buscador { flex: 1 1 100%; }
  .ac-buscar { width: 100%; }
}

.ac-pedido { max-height: 18em; overflow: auto; white-space: pre-wrap; }
.ac-salientes { margin: 4px 0 0; padding-left: 18px; }
.ac-salientes li { margin-bottom: 6px; }
