/* =========================================================
   REPORTES - SISTEMA QR
\========================================================= */
.reportes-content {
    padding-top: 30px;
}
/* =========================================================
   ENCABEZADO
\========================================================= */
.reportes-header {
    background: #ffffff;
    border: 1px solid #e9eaee;
    border-radius: 14px;
    padding: 25px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section-label {
    display: block;
    color: #a0a3aa;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    margin-bottom: 8px;
}
.reportes-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 7px;
}
.reportes-header p {
    color: #777b85;
    font-size: 13px;
}
.reporte-fecha {
    min-width: 190px;
    text-align: right;
}
.reporte-fecha span {
    display: block;
    color: #a0a3aa;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 7px;
}
.reporte-fecha strong {
    font-size: 13px;
    color: #17181c;
}
/* =========================================================
   FILTROS
\========================================================= */
.filtros-panel {
    background: #ffffff;
    border: 1px solid #e9eaee;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}
.filtros-form {
    display: flex;
    align-items: flex-end;
    gap: 13px;
    flex-wrap: wrap;
}
.campo-filtro {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 175px;
}
.campo-filtro label {
    color: #777b85;
    font-size: 11px;
    font-weight: 600;
}
.campo-filtro input,
.campo-filtro select {
    height: 40px;
    border: 1px solid #e1e3e7;
    border-radius: 8px;
    background: #ffffff;
    padding: 0 12px;
    color: #17181c;
    font-size: 12px;
    outline: none;
    transition: 0.2s ease;
}
.campo-filtro input:focus,
.campo-filtro select:focus {
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.05);
}
.btn-filtrar,
.btn-exportar {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
}
.btn-filtrar {
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
}
.btn-filtrar:hover {
    background: #2b2b2b;
}
.btn-exportar {
    border: 1px solid #e1e3e7;
    background: #ffffff;
    color: #17181c;
}
.btn-exportar:hover {
    background: #f7f7f8;
}

/* =========================================================
   BOTONES DE EXPORTACIÓN - PDF Y EXCEL
========================================================= */

.btn-exportar.btn-pdf {
    border-color: #e7caca;
    background: #ffffff;
    color: #c03939;
}

.btn-exportar.btn-pdf:hover {
    background: #fff3f3;
    border-color: #dca7a7;
    color: #a82d2d;
    transform: translateY(-1px);
}

.btn-exportar.btn-excel {
    border-color: #c9e4d2;
    background: #ffffff;
    color: #218447;
}

.btn-exportar.btn-excel:hover {
    background: #effaf3;
    border-color: #a8d2b6;
    color: #176b37;
    transform: translateY(-1px);
}

.btn-exportar:active {
    transform: translateY(0);
}

.btn-exportar svg {
    flex-shrink: 0;
}

.btn-pdf,
.btn-excel {
    white-space: nowrap;
}

/* =========================================================
   BOTÓN LIMPIAR
\========================================================= */
.btn-limpiar {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid #e1e3e7;
    border-radius: 8px;
    background: #ffffff;
    color: #777b85;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
/* HOVER */
.btn-limpiar:hover {
    background: #fff1f1;
    border-color: #f0caca;
    color: #d63b3b;
    transform: translateY(-1px);
}
/* CLICK */
.btn-limpiar:active {
    transform: translateY(0);
}
/* =========================================================
   ICONO DEL BOTÓN LIMPIAR
\========================================================= */
.btn-limpiar svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.btn-limpiar:hover svg {
    transform: rotate(-8deg);
}
/* =========================================================
   ESTADÍSTICAS
\========================================================= */
.estadisticas-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.estadistica-card {
    min-height: 115px;
    background: #ffffff;
    border: 1px solid #e9eaee;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.estadistica-icon {
    width: 47px;
    height: 47px;
    flex-shrink: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.estadistica-icon.total {
    background: #f1f2f4;
    color: #17181c;
}
.estadistica-icon.entrada {
    background: #edf8f1;
    color: #16803c;
}
.estadistica-icon.salida {
    background: #fff1f1;
    color: #d63b3b;
}
.estadistica-icon.dentro {
    background: #f2f0ff;
    color: #6854d9;
}
.estadistica-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.estadistica-info span {
    color: #777b85;
    font-size: 11px;
}
.estadistica-info strong {
    color: #17181c;
    font-size: 25px;
    line-height: 1;
}
.estadistica-info small {
    color: #a0a3aa;
    font-size: 10px;
}
/* =========================================================
   GRID DE REPORTES
\========================================================= */
.reportes-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.reporte-panel {
    background: #ffffff;
    border: 1px solid #e9eaee;
    border-radius: 14px;
    padding: 23px;
}
.reporte-panel-completo {
    margin-bottom: 20px;
}
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.panel-header span {
    color: #a0a3aa;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.1px;
}
.panel-header h3 {
    color: #17181c;
    font-size: 15px;
    font-weight: 700;
    margin-top: 5px;
}
.panel-contador {
    padding: 6px 10px;
    background: #f5f6f7;
    border-radius: 7px;
    color: #777b85 !important;
    font-size: 10px !important;
}
/* =========================================================
   PERSONAS
\========================================================= */
.personas-reporte {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.persona-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
}
.persona-stat-left {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #555960;
    font-size: 12px;
}
.persona-stat strong {
    color: #17181c;
    font-size: 13px;
}
.punto {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.punto.residente {
    background: #111111;
}
.punto.visitante {
    background: #777b85;
}
.punto.personal {
    background: #c5c7cb;
}
.barra-reporte {
    height: 5px;
    background: #f0f1f3;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 7px;
}
.barra-reporte span {
    display: block;
    height: 100%;
    min-width: 2px;
    background: #111111;
    border-radius: 10px;
    transition: width 0.4s ease;
}
/* =========================================================
   MÉTODOS
\========================================================= */
.metodos-reporte {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.metodo-card {
    border: 1px solid #eceef1;
    border-radius: 11px;
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.metodo-card-icon {
    width: 43px;
    height: 43px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.metodo-card-icon.qr {
    background: #f1f2f4;
    color: #17181c;
}
.metodo-card-icon.manual {
    background: #f6f6f7;
    color: #777b85;
}
.metodo-card > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.metodo-card span {
    color: #777b85;
    font-size: 11px;
}
.metodo-card strong {
    color: #17181c;
    font-size: 21px;
}
.metodo-card small {
    color: #a0a3aa;
    font-size: 10px;
}
/* =========================================================
   ACCESOS POR DÍA
\========================================================= */
.dias-reporte {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.dia-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    align-items: center;
    gap: 15px;
}
.dia-fecha {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.dia-fecha strong {
    color: #17181c;
    font-size: 11px;
}
.dia-fecha span {
    color: #a0a3aa;
    font-size: 10px;
}
.dia-barra {
    height: 10px;
    background: #f0f1f3;
    border-radius: 20px;
    overflow: hidden;
}
.dia-barra span {
    display: block;
    height: 100%;
    min-width: 3px;
    background: #111111;
    border-radius: 20px;
    transition: width 0.4s ease;
}
/* =========================================================
   TABLA DE MOVIMIENTOS
\========================================================= */
.movimientos-contenedor {
    width: 100%;
    overflow-x: auto;
}
.movimientos-tabla {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}
.movimientos-tabla th {
    padding: 12px 10px;
    background: #fafafa;
    border-top: 1px solid #eceef1;
    border-bottom: 1px solid #eceef1;
    color: #a0a3aa;
    text-align: left;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.7px;
}
.movimientos-tabla td {
    padding: 13px 10px;
    border-bottom: 1px solid #f0f1f3;
    color: #555960;
    font-size: 11px;
}
.movimientos-tabla tbody tr:hover {
    background: #fafafa;
}
.movimiento-persona {
    display: flex;
    align-items: center;
    gap: 9px;
}
.movimiento-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #111111;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.movimiento-persona > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.movimiento-persona strong {
    color: #17181c;
    font-size: 11px;
    font-weight: 600;
}
.movimiento-persona span {
    color: #a0a3aa;
    font-size: 9px;
}
/* =========================================================
   BADGES
\========================================================= */
.acceso-badge,
.estado-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
}
.acceso-badge.entrada {
    background: #edf8f1;
    color: #16803c;
}
.acceso-badge.salida {
    background: #fff1f1;
    color: #d63b3b;
}
.estado-badge.dentro {
    background: #f2f0ff;
    color: #6854d9;
}
.estado-badge.fuera {
    background: #f3f4f5;
    color: #777b85;
}
.estado-badge.finalizado {
    background: #f3f4f5;
    color: #555960;
}
.metodo-tabla {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #777b85;
    font-size: 10px;
}
/* =========================================================
   SIN DATOS
\========================================================= */
.sin-reporte {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    text-align: center;
}
.sin-reporte-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f5f6f7;
    color: #999da5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
}
.sin-reporte strong {
    color: #555960;
    font-size: 12px;
}
.sin-reporte span {
    color: #a0a3aa;
    font-size: 10px;
}
.tabla-vacia {
    min-height: 190px;
}
/* =========================================================
   RESPONSIVE
\========================================================= */
@media (max-width: 1200px) {
    .estadisticas-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .reportes-grid {
        grid-template-columns: 1fr;
    }
    .reportes-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
    .reporte-fecha {
        text-align: left;
    }
    .filtros-form {
        align-items: stretch;
        flex-direction: column;
    }
    .campo-filtro {
        width: 100%;
    }
    .campo-filtro input,
    .campo-filtro select,
    .btn-filtrar,
    .btn-exportar {
        width: 100%;
    }
}
@media (max-width: 600px) {
    .estadisticas-grid {
        grid-template-columns: 1fr;
    }
    .reportes-content {
        padding: 20px;
    }
    .reportes-header {
        padding: 20px;
    }
    .reporte-panel {
        padding: 18px;
    }
    .metodos-reporte {
        grid-template-columns: 1fr;
    }
    .dia-item {
        grid-template-columns: 1fr;
        gap: 7px;
    }
    .dia-barra {
        height: 8px;
    }
}

/* =========================================================
   ACCESO RESTRINGIDO
   MISMO DISEÑO DE REPORTES
\========================================================= */
.acceso-restringido {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
    background: #f5f5f6;
}
/* =========================================================
   TARJETA
\========================================================= */
.acceso-card {
    width: 100%;
    max-width: 500px;
    padding: 45px 40px;
    box-sizing: border-box;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e9eaee;
    border-radius: 14px;
    box-shadow:
        0 10px 30px rgba(17, 17, 17, 0.06);
}
/* =========================================================
   ICONO
\========================================================= */
.acceso-icono {
    width: 76px;
    height: 76px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f1f2f4;
    color: #17181c;
    border: 1px solid #e9eaee;
}
.acceso-icono svg {
    width: 38px;
    height: 38px;
}
/* =========================================================
   ETIQUETA
\========================================================= */
.acceso-label {
    display: block;
    margin-bottom: 8px;
    color: #a0a3aa;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
}
/* =========================================================
   TITULO
\========================================================= */
.acceso-card h1 {
    margin: 0 0 12px;
    color: #17181c;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
}
/* =========================================================
   TEXTO
\========================================================= */
.acceso-card p {
    max-width: 390px;
    margin: 0 auto;
    color: #777b85;
    font-size: 13px;
    line-height: 1.7;
}
/* =========================================================
   ROL ACTUAL
\========================================================= */
.rol-actual {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f5f6f7;
    border: 1px solid #eceef1;
    color: #555960;
    font-size: 11px;
    font-weight: 600;
}
.rol-actual strong {
    color: #17181c;
    font-weight: 700;
}
.rol-punto {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #111111;
}
/* =========================================================
   SEPARADOR
\========================================================= */
.separador {
    width: 100%;
    height: 1px;
    margin: 25px 0 20px;
    background: #eceef1;
}
/* =========================================================
   MENSAJE DE SEGURIDAD
\========================================================= */
.mensaje-seguridad {
    margin: 0 auto !important;
    color: #a0a3aa !important;
    font-size: 10px !important;
    line-height: 1.6 !important;
}
/* =========================================================
   BOTÓN VOLVER
\========================================================= */
.btn-volver {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    padding: 12px 20px;
    border: 1px solid #111111;
    border-radius: 8px;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: 0.2s ease;
}
.btn-volver:hover {
    background: #2b2b2b;
    border-color: #2b2b2b;
    color: #ffffff;
    transform: translateY(-1px);
}
.btn-volver svg {
    width: 17px;
    height: 17px;
}
/* =========================================================
   RESPONSIVE
\========================================================= */
@media (max-width: 600px) {
    .acceso-restringido {
        padding: 15px;
    }
    .acceso-card {
        padding: 35px 25px;
        border-radius: 14px;
    }
    .acceso-icono {
        width: 68px;
        height: 68px;
    }
    .acceso-icono svg {
        width: 34px;
        height: 34px;
    }
    .acceso-card h1 {
        font-size: 23px;
    }
    .acceso-card p {
        font-size: 12px;
    }
}


.salida-vacia {
    display: inline-block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    left: -40px !important;
    transform: none !important;
    box-sizing: border-box;
}


/* Mover solamente el texto PERSONA */
.movimientos-tabla thead th:nth-child(1) {
    text-indent: 103px;
}


/* Mover solamente el texto PERSONA */
.movimientos-tabla thead th:nth-child(2) {
    text-indent: 13px;
}


/* Mover solamente el texto ENTRADA */
.movimientos-tabla thead th:nth-child(3) {
    text-indent: -6px;
}

/* LOGO */
.logo {
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    margin-bottom: 25px;
    flex-shrink: 0;
    overflow: hidden;
}
.logo-image {
    display: block;
    width: 115px;
    height: 115px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}
