/* ========================================================================== */
/* LOG ACCESOS PAGE - Administración Log Accesos Clientes                     */
/* ========================================================================== */

/* Eliminar padding del main-content para esta página */
.main-content:has(.logaccesos-page) {
    padding: 0 !important;
}

.logaccesos-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 95px);
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Ajuste del camara-panel para que ocupe todo el espacio */
.logaccesos-page .camara-panel {
    margin: 0;
    padding: 0.75rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Ajuste del camara-header */
.logaccesos-page .camara-header {
    margin: 0 0 0.5rem 0;
    padding: 0.25rem 0.5rem;
    flex-shrink: 0;
}

/* Header principal con input de búsqueda y botón de exportar */
.logaccesos-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logaccesos-main-header h4 {
    flex-shrink: 0;
}

/* Override de camara-body para layout horizontal */
.logaccesos-page .camara-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    padding: 0.5rem;
    flex: 1;
    min-height: 0;
}

/* ========================================================================== */
/* GRID DE LOG ACCESOS - 2 Cards horizontales                                 */
/* ========================================================================== */

.logaccesos-grid {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* ========================================================================== */
/* LOG CARD                                                                   */
/* ========================================================================== */

.log-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    min-height: 0;
    height: 100%;
}

/* Card de Clientes - 15% del width */
.log-card.clientes-card {
    flex: 0 0 15%;
    min-width: 150px;
    max-width: 250px;
}

/* Card de Log Usuarios - Resto del width */
.log-card.usuarios-card {
    flex: 1;
    min-width: 0;
}

/* Modo claro - fondo gris para el card */
:root.light-mode .log-card {
    background: #d9d9d9;
}

.light-mode .log-card {
    background: #d9d9d9;
}

/* Card Header con gradiente */
.log-card-header {
    background: linear-gradient(135deg, #F07400, #00b4ff);
    padding: 0.5rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-height: 38px;
    box-sizing: border-box;
}

.log-card-header h3 {
    color: white;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Card Body */
.log-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.65rem;
    gap: 0.5rem;
    overflow: hidden;
    min-height: 0;
}

/* ========================================================================== */
/* SELECT DE AÑO                                                              */
/* ========================================================================== */

.year-select-container {
    padding: 0.5rem 0.25rem 0.75rem 0.25rem;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.year-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-align-last: center;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

.year-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(240, 116, 0, 0.15);
}

.year-select:hover {
    border-color: var(--primary-color);
}

:root.light-mode .year-select,
.light-mode .year-select {
    background-color: #ffffff;
    border-color: #d0d0d0;
}

/* ========================================================================== */
/* LISTA DE CLIENTES                                                          */
/* ========================================================================== */

.logaccesos-page .clientes-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 0.25rem;
}

/* Item de cliente */
.logaccesos-page .cliente-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    background: var(--input-bg);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* Modo claro - fondo blanco para items */
:root.light-mode .logaccesos-page .cliente-item {
    background: #ffffff;
    border-color: #e8e8e8;
}

.light-mode .logaccesos-page .cliente-item {
    background: #ffffff;
    border-color: #e8e8e8;
}

.logaccesos-page .cliente-item:hover:not(.selected) {
    background: linear-gradient(135deg, rgba(240, 116, 0, 0.1), rgba(0, 180, 255, 0.1));
    border-color: var(--primary-color);
}

:root.light-mode .logaccesos-page .cliente-item:hover:not(.selected),
.light-mode .logaccesos-page .cliente-item:hover:not(.selected) {
    background: linear-gradient(135deg, rgba(240, 116, 0, 0.15), rgba(0, 180, 255, 0.15));
    border-color: var(--primary-color);
}

/* Item seleccionado */
.logaccesos-page .cliente-item.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.logaccesos-page .cliente-item.selected .cliente-nombre {
    font-weight: 600;
    color: white;
}

.logaccesos-page .cliente-item.selected:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    filter: brightness(1.1);
    box-shadow: 0 2px 6px rgba(240, 116, 0, 0.4);
}

/* Item "Todos" con estilo especial */
.logaccesos-page .cliente-item.todos-item {
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.15), rgba(240, 116, 0, 0.15));
    border: 1px dashed var(--primary-color);
    font-weight: 500;
}

.logaccesos-page .cliente-item.todos-item.selected {
    background: linear-gradient(135deg, #00b4ff, #F07400);
    border-style: solid;
}

.todos-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    stroke: var(--primary-color);
}

.logaccesos-page .cliente-item.todos-item.selected .todos-icon {
    stroke: white;
}

/* Nombre del cliente */
.logaccesos-page .cliente-nombre {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;
}

/* Mensaje cuando no hay clientes */
.logaccesos-page .clientes-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem 0.5rem;
}

/* ========================================================================== */
/* LOG EMPTY STATE                                                            */
/* ========================================================================== */

.log-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem;
    gap: 1rem;
}

.log-empty svg {
    width: 48px;
    height: 48px;
    stroke: var(--text-secondary);
    opacity: 0.5;
}

/* Spinner de carga */
.log-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================================================== */
/* LOG TABLE - ESPECTACULAR                                                   */
/* ========================================================================== */

.log-table-container {
    flex: 1;
    overflow: auto;
    border-radius: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

:root.light-mode .log-table-container,
.light-mode .log-table-container {
    background: #ffffff;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.08),
        0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

.log-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.82rem;
}

/* ========================================================================== */
/* TABLE HEADER - ESPECTACULAR                                                */
/* ========================================================================== */

.log-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.log-table thead tr {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

:root.light-mode .log-table thead tr,
.light-mode .log-table thead tr {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.log-table th {
    padding: 0.85rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.8px;
    border-bottom: 2px solid rgba(240, 116, 0, 0.5);
    white-space: nowrap;
    position: relative;
}

.log-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #F07400, #00b4ff, #F07400);
    opacity: 0.7;
}

.th-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.th-content svg {
    width: 14px;
    height: 14px;
    stroke: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

/* ========================================================================== */
/* TABLE BODY - ESPECTACULAR                                                  */
/* ========================================================================== */

.log-table tbody tr {
    transition: all 0.2s ease;
}

.log-table tbody tr.row-even {
    background: var(--bg-primary);
}

.log-table tbody tr.row-odd {
    background: rgba(240, 116, 0, 0.03);
}

:root.light-mode .log-table tbody tr.row-even,
.light-mode .log-table tbody tr.row-even {
    background: #ffffff;
}

:root.light-mode .log-table tbody tr.row-odd,
.light-mode .log-table tbody tr.row-odd {
    background: rgba(102, 126, 234, 0.05);
}

.log-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(240, 116, 0, 0.1), rgba(0, 180, 255, 0.1));
    transform: scale(1.002);
    box-shadow: 0 2px 8px rgba(240, 116, 0, 0.15);
}

:root.light-mode .log-table tbody tr:hover,
.light-mode .log-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
}

.log-table td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.log-table tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================================================== */
/* CELDAS ESPECIALES                                                          */
/* ========================================================================== */

/* Celda de Usuario con avatar */
.user-cell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.user-avatar-mini {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F07400, #00b4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(240, 116, 0, 0.3);
}

.user-avatar-mini svg {
    width: 16px;
    height: 16px;
    stroke: white;
}

/* ========================================================================== */
/* BADGES ESPECTACULARES                                                      */
/* ========================================================================== */

/* Badge de Fecha */
.fecha-badge {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 180, 255, 0.1);
    border: 1px solid rgba(0, 180, 255, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    color: #00b4ff;
    font-family: 'Consolas', 'Monaco', monospace;
    white-space: nowrap;
}

:root.light-mode .fecha-badge,
.light-mode .fecha-badge {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: #667eea;
}

/* Badge de IP */
.ip-badge {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    background: rgba(156, 163, 175, 0.15);
    border: 1px solid rgba(156, 163, 175, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'Consolas', 'Monaco', monospace;
}

/* Badge de Monster - Por tipo */
.monster-badge {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.monster-badge.monster-static {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.4);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.2);
}

.monster-badge.monster-screen {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(33, 150, 243, 0.1));
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.4);
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.2);
}

.monster-badge.monster-indoor {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(156, 39, 176, 0.1));
    color: #9C27B0;
    border: 1px solid rgba(156, 39, 176, 0.4);
    box-shadow: 0 0 8px rgba(156, 39, 176, 0.2);
}

.monster-badge.monster-traffic {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(255, 152, 0, 0.1));
    color: #FF9800;
    border: 1px solid rgba(255, 152, 0, 0.4);
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.2);
}

.monster-badge.monster-default {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(156, 163, 175, 0.3);
}

/* Badge de Módulo */
.modulo-badge {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    background: linear-gradient(135deg, rgba(240, 116, 0, 0.15), rgba(0, 180, 255, 0.15));
    border: 1px solid rgba(240, 116, 0, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
}

:root.light-mode .modulo-badge,
.light-mode .modulo-badge {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-color: rgba(102, 126, 234, 0.3);
    color: #667eea;
}

/* Badge de Acción */
.accion-badge {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: capitalize;
}

.accion-badge.accion-login {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2), rgba(40, 167, 69, 0.1));
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.4);
}

.accion-badge.accion-logout {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(220, 53, 69, 0.1));
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.4);
}

.accion-badge.accion-consulta {
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.2), rgba(0, 180, 255, 0.1));
    color: #00b4ff;
    border: 1px solid rgba(0, 180, 255, 0.4);
}

.accion-badge.accion-descarga,
.accion-badge.accion-export {
    background: linear-gradient(135deg, rgba(240, 116, 0, 0.2), rgba(240, 116, 0, 0.1));
    color: #F07400;
    border: 1px solid rgba(240, 116, 0, 0.4);
}

.accion-badge.accion-default {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(156, 163, 175, 0.3);
}

/* ========================================================================== */
/* BADGE DE ACCESOS CON BARRA DE PROGRESO                                     */
/* ========================================================================== */

.accesos-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    overflow: hidden;
    font-weight: 700;
    font-size: 0.85rem;
}

.accesos-badge.accesos-high {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #28a745;
}

.accesos-badge.accesos-medium {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: #ffc107;
}

.accesos-badge.accesos-low {
    background: rgba(0, 180, 255, 0.15);
    border: 1px solid rgba(0, 180, 255, 0.4);
    color: #00b4ff;
}

.accesos-number {
    position: relative;
    z-index: 2;
}

.accesos-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    border-radius: 0 0 8px 8px;
    transition: width 0.5s ease;
}

.accesos-badge.accesos-high .accesos-bar {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.accesos-badge.accesos-medium .accesos-bar {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.accesos-badge.accesos-low .accesos-bar {
    background: linear-gradient(90deg, #00b4ff, #667eea);
}

/* ========================================================================== */
/* LOG FOOTER                                                                 */
/* ========================================================================== */

.log-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    flex-shrink: 0;
}

.log-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.log-count svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary-color);
}

.log-total-accesos {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.log-total-accesos strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* ========================================================================== */
/* ANCHOS DE COLUMNAS ESPECÍFICOS                                             */
/* ========================================================================== */

/* Tabla Resumen */
.log-table-resumen .th-cliente { width: 18%; }
.log-table-resumen .th-grupo { width: 15%; }
.log-table-resumen .th-usuario { width: 20%; }
.log-table-resumen .th-modulo { width: 25%; }
.log-table-resumen .th-accesos { width: 22%; text-align: center; }

.log-table-resumen .td-accesos { text-align: center; }

/* Tabla Detalle */
.log-table-detalle .th-grupo { width: 10%; }
.log-table-detalle .th-usuario { width: 12%; }
.log-table-detalle .th-fecha { width: 14%; }
.log-table-detalle .th-ip { width: 10%; }
.log-table-detalle .th-monster { width: 10%; }
.log-table-detalle .th-modulo { width: 14%; }
.log-table-detalle .th-pagina { width: 18%; }
.log-table-detalle .th-accion { width: 12%; }

.td-pagina {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================================================== */
/* RESPONSIVE                                                                 */
/* ========================================================================== */

@media (max-width: 1200px) {
    .log-card.clientes-card {
        flex: 0 0 18%;
        min-width: 140px;
        max-width: 200px;
    }

    .log-table {
        font-size: 0.78rem;
    }

    .log-table th {
        padding: 0.7rem 0.5rem;
        font-size: 0.68rem;
    }

    .log-table td {
        padding: 0.6rem 0.5rem;
    }

    .th-content svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 1024px) {
    .log-card.clientes-card {
        flex: 0 0 20%;
        min-width: 130px;
        max-width: 180px;
    }

    .log-table-detalle {
        font-size: 0.75rem;
    }

    /* Ocultar columnas menos importantes en detalle */
    .log-table-detalle .th-ip,
    .log-table-detalle .td-ip {
        display: none;
    }

    .user-avatar-mini {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }

    .user-avatar-mini svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 768px) {
    /* Header responsive */
    .logaccesos-main-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .logaccesos-main-header .header-search-container {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        margin: 0.25rem 0 0 0;
    }

    .logaccesos-page {
        height: calc(100vh - 95px);
        min-height: calc(100vh - 95px);
        max-height: calc(100vh - 95px);
        overflow: hidden;
    }

    .logaccesos-page .camara-panel {
        padding: 0.5rem;
    }

    .logaccesos-page .camara-body {
        padding: 0.35rem;
    }

    /* Layout vertical en móvil */
    .logaccesos-grid {
        flex-direction: column;
        gap: 0.5rem;
        overflow-y: auto;
    }

    .log-card.clientes-card {
        flex: 0 0 auto;
        min-width: 100%;
        max-width: 100%;
        max-height: 35%;
    }

    .log-card.usuarios-card {
        flex: 1;
        min-height: 200px;
    }

    .log-card-header {
        padding: 0.4rem 0.65rem;
    }

    .log-card-header h3 {
        font-size: 0.8rem;
    }

    .log-card-body {
        padding: 0.5rem;
    }

    .year-select-container {
        padding: 0.35rem 0.15rem 0.5rem 0.15rem;
    }

    .year-select {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }

    .logaccesos-page .cliente-item {
        padding: 0.4rem 0.55rem;
    }

    .logaccesos-page .cliente-nombre {
        font-size: 0.75rem;
    }

    .todos-icon {
        width: 14px;
        height: 14px;
        min-width: 14px;
    }

    /* Tabla responsive - scroll horizontal */
    .log-table-container {
        border-radius: 8px;
    }

    .log-table {
        font-size: 0.72rem;
        min-width: 600px;
    }

    .log-table th {
        padding: 0.6rem 0.4rem;
        font-size: 0.65rem;
    }

    .log-table td {
        padding: 0.5rem 0.4rem;
    }

    /* Ocultar más columnas en móvil */
    .log-table-detalle .th-monster,
    .log-table-detalle .td-monster,
    .log-table-detalle .th-pagina,
    .log-table-detalle .td-pagina {
        display: none;
    }

    .log-footer {
        padding: 0.6rem 0.75rem;
    }

    .log-count,
    .log-total-accesos {
        font-size: 0.75rem;
    }

    .log-empty {
        padding: 1.5rem;
        font-size: 0.85rem;
    }

    .log-empty svg {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .logaccesos-page {
        height: calc(100vh - 95px);
    }

    .logaccesos-page .camara-panel {
        padding: 0.35rem;
    }

    .log-card.clientes-card {
        max-height: 30%;
    }

    .log-card-header h3 {
        font-size: 0.75rem;
    }

    .logaccesos-page .cliente-item {
        padding: 0.35rem 0.5rem;
    }

    .logaccesos-page .cliente-nombre {
        font-size: 0.7rem;
    }

    .log-table {
        font-size: 0.68rem;
        min-width: 500px;
    }

    .log-table th {
        padding: 0.5rem 0.35rem;
        font-size: 0.6rem;
        letter-spacing: 0.3px;
    }

    .log-table td {
        padding: 0.45rem 0.35rem;
    }

    .th-content {
        gap: 0.3rem;
    }

    .th-content svg {
        width: 10px;
        height: 10px;
    }

    .user-avatar-mini {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    .user-avatar-mini svg {
        width: 12px;
        height: 12px;
    }

    .fecha-badge,
    .ip-badge,
    .monster-badge,
    .modulo-badge,
    .accion-badge {
        padding: 0.15rem 0.4rem;
        font-size: 0.65rem;
    }

    .accesos-badge {
        min-width: 60px;
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .log-footer {
        padding: 0.5rem 0.6rem;
        flex-direction: column;
        gap: 0.35rem;
        align-items: flex-start;
    }

    .log-empty {
        padding: 1.25rem;
        font-size: 0.8rem;
        gap: 0.85rem;
    }

    .log-empty svg {
        width: 38px;
        height: 38px;
    }

    .log-loading-spinner {
        width: 34px;
        height: 34px;
    }
}
