/* ============================================ */
/* Gestión de Usuarios > Actividad               */
/* (también lo usa la ventana del reporte)       */
/* ============================================ */
.UACT_colSel { width: 2.2rem; text-align: center; }
.UACT_tipo {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
    background: #eef0f3;
    color: #374151;
}
.UACT_t-seccion { background: #e0e7ff; color: #3730a3; }
.UACT_t-clic { background: #f1f5f9; color: #334155; }
.UACT_t-abrir { background: #e0f2fe; color: #075985; }
.UACT_t-cerrar { background: #f1f5f9; color: #475569; }
.UACT_t-guardar { background: #dcfce7; color: #166534; }
.UACT_t-singuardar { background: #ffedd5; color: #9a3412; }
.UACT_t-error { background: #fee2e2; color: #991b1b; }
.UACT_t-exportar { background: #ede9fe; color: #5b21b6; }
.UACT_resumen { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* En vivo */
.UACT_vivo { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem 0.9rem; padding: 0.6rem 0.75rem;
    border: 1px solid var(--bs-border-color); border-radius: 10px; background: var(--bs-tertiary-bg); }
.UACT_vivo-sesion { flex: 1 1 420px; min-width: 0; }
.UACT_vivo-switch { padding-bottom: 0.45rem; }
.UACT_vivo-cada { width: auto; }
.UACT_punto { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #9ca3af; margin-right: 0.4rem; }
.UACT_vivo.activo { border-color: #16a34a; }
.UACT_vivo.activo .UACT_punto { background: #16a34a; animation: UACT_late 1.6s ease-in-out infinite; }
@keyframes UACT_late { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.UACT_fila-nueva td { animation: UACT_nueva 3s ease-out; }
@keyframes UACT_nueva { from { background: rgba(250, 204, 21, 0.45); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .UACT_vivo.activo .UACT_punto, .UACT_fila-nueva td { animation: none; } }
.UACT_accion { font-weight: 600; }
.UACT_detalle { max-width: 420px; overflow-wrap: anywhere; }
.UACT_fila-error td { background: rgba(254, 226, 226, 0.35); }

.UACT_tabla-detalle th { width: 150px; color: var(--bs-secondary-color, #4b5563); font-weight: 600; }
.UACT_tabla-detalle td { white-space: pre-line; overflow-wrap: anywhere; }

/* Línea de tiempo: lo que hizo antes y después */
.UACT_linea { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid #d1d5db; margin-left: 0.4rem; padding-left: 0.7rem; }
.UACT_linea-item { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.3rem 0.4rem; border-radius: 6px; font-size: 0.85rem; }
.UACT_linea-item.marcado { background: #fef9c3; outline: 1px solid #facc15; }
.UACT_linea-hora { font-variant-numeric: tabular-nums; color: #6b7280; min-width: 4.2rem; padding-top: 0.1rem; }
.UACT_linea-texto { min-width: 0; overflow-wrap: anywhere; }

[data-bs-theme="dark"] .UACT_tipo { filter: brightness(0.9); }
[data-bs-theme="dark"] .UACT_linea-item.marcado { background: rgba(250, 204, 21, 0.18); }
