/* ==========================================================================
   ESTILOS PERSONALIZADOS DEL SISTEMA BIOMÉTRICO
   ========================================================================== */

body {
    background-color: #f1f5f9;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

/* Tarjetas y contenedores */
.card-custom {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    background-color: #ffffff;
}

/* Contenedor del visor de cámara */
.cam-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 330px;
    margin: 0 auto;
    background-color: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

.cam-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Efecto espejo */
}

.cam-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform: scaleX(-1);
}

/* Tablas con scroll interno */
.table-scroll {
    max-height: 340px;
    overflow-y: auto;
}

/* DESTACADO EN ROJO PARA ATRASOS */
.badge-atraso {
    background-color: #dc3545 !important;
    color: #ffffff !important;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* DESTACADO EN VERDE PARA PUNTUALIDAD */
.badge-puntual {
    background-color: #198754 !important;
    color: #ffffff !important;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
}

/* Fila de tabla con atraso */
tr.fila-atraso {
    background-color: #ffeef0 !important;
}