
:root {
  --sidebar-blue: #0d47a1;
  --sidebar-blue-dark: #08306b;
  --sidebar-blue-hover: rgba(255,255,255,.16);
}

body { background: #f4f6f9; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 260px; min-height: 100vh; position: fixed; left: 0; top: 0; z-index: 10; }
.sidebar-blue { background: linear-gradient(180deg, var(--sidebar-blue) 0%, var(--sidebar-blue-dark) 100%); }
.sidebar-border { border-color: rgba(255,255,255,.20) !important; }
.sidebar-divider { border-color: rgba(255,255,255,.25); opacity: 1; }
.sidebar .nav-link { border-radius: .5rem; margin-bottom: .25rem; font-weight: 500; transition: background .15s ease-in-out; }
.sidebar .nav-link:hover, .sidebar .nav-link:focus { background: var(--sidebar-blue-hover); }
.content { margin-left: 260px; width: calc(100% - 260px); }
.card-kpi { border: 0; border-radius: 1rem; box-shadow: 0 .25rem 1rem rgba(0,0,0,.06); }
.video-box { width: 100%; max-width: 480px; border-radius: 1rem; overflow: hidden; background: #111; }
.video-box video, .video-box canvas { width: 100%; display: block; }
@media (max-width: 767px) {
  .sidebar { transform: translateX(-100%); transition: .2s; }
  .sidebar.open { transform: translateX(0); }
  .content { margin-left: 0; width: 100%; }
}

.dashboard-table { max-height: 62vh; overflow: auto; }
.dashboard-list { max-height: 38vh; overflow: auto; }
.table td, .table th { vertical-align: middle; }

.avatar-empleado {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,.12);
  flex: 0 0 34px;
  display: inline-block;
}
.dashboard-list .avatar-empleado {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}
.table .avatar-empleado {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}
.avatar-empleado-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e9ecef;
  color: #495057;
  font-weight: 700;
  font-size: .85rem;
}
.sidebar-nav { overflow-y: auto; }
.sidebar-user-photo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.35);
  flex: 0 0 38px;
  display: inline-block;
}
.sidebar-user-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-weight: 700;
}
.sidebar-user-name,
.sidebar-user-role {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 168px;
}

/* AJUSTE: fuerza fotos compactas en dashboard/sidebar */
img.avatar-empleado,
.avatar-empleado {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: cover !important;
  display: inline-block !important;
  border-radius: 8px !important;
}
.table img.avatar-empleado,
.table .avatar-empleado {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
}
.dashboard-list img.avatar-empleado,
.dashboard-list .avatar-empleado {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
}
img.sidebar-user-photo,
.sidebar-user-photo {
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  object-fit: cover !important;
  display: inline-block !important;
}

/* POST 013: sidebar/icons/modal/foto definitiva */
.sidebar .nav-link i { width: 1.25rem; text-align: center; }
.sidebar-user { overflow: hidden; }
.sidebar-user-row { min-width: 0; max-width: 100%; }
.sidebar-user img.sidebar-user-photo,
.sidebar-user .sidebar-user-photo,
aside.sidebar img.sidebar-user-photo {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  display: inline-flex !important;
  border-radius: 8px !important;
  flex: 0 0 38px !important;
}
.checador-status-inline { min-height: 42px; }
.modal-resultado-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.modal-resultado-ok { background: #d1e7dd; color: #0f5132; }
.modal-resultado-error { background: #f8d7da; color: #842029; }


/* POST 015: checador continuo sin recargar, cámara visible */
.video-box video {
  min-height: 150px;
  max-height: 260px;
  object-fit: cover;
  background: #111;
}

/* POST 016: dashboard por sucursal y semáforo */
.semaforo-dot {
  width: .85rem;
  height: .85rem;
  border-radius: 999px;
  display: inline-block;
  vertical-align: middle;
  margin-right: .35rem;
  border: 1px solid rgba(0,0,0,.12);
}
.semaforo-green { background: #198754; }
.semaforo-yellow { background: #ffc107; }
.semaforo-red { background: #dc3545; }
.dashboard-employee-table tbody tr.dashboard-row-green > td { background: rgba(25,135,84,.08); }
.dashboard-employee-table tbody tr.dashboard-row-yellow > td { background: rgba(255,193,7,.18); }
.dashboard-employee-table tbody tr.dashboard-row-red > td { background: rgba(220,53,69,.10); }
.dashboard-sucursales .accordion-button { background: #fff; }
.dashboard-sucursales .accordion-button:not(.collapsed) { background: #f8fbff; box-shadow: none; }
.chart-row { margin-bottom: .85rem; }
.chart-track {
  width: 100%;
  height: 14px;
  background: #e9ecef;
  border-radius: 999px;
  overflow: hidden;
}
.chart-bar { height: 100%; border-radius: 999px; }
.chart-green { background: #198754; }
.chart-yellow { background: #ffc107; }
.chart-red { background: #dc3545; }
.top-absence-card {
  border: 1px solid #dee2e6;
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
  height: 100%;
}
.top-absence-rank {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #f8d7da;
  color: #842029;
  margin-bottom: .5rem;
}


.biometria-panel{border-color:#d8e0ea!important}
.biometria-foto-base{width:46px!important;height:46px!important;max-width:46px!important;max-height:46px!important;object-fit:cover!important;border-radius:10px!important;border:1px solid #cfd8e3!important;flex:0 0 46px!important;background:#fff}
.biometria-foto-placeholder{display:inline-flex;align-items:center;justify-content:center;color:#dc3545;background:#fff5f5!important}

/* POST 019: login biométrico */
.login-bio-panel {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 1rem;
  background: #f8f9fa;
  padding: .75rem;
}
.login-bio-video {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  border-radius: .75rem;
  background: #111;
  display: block;
}

/* POST 020: login alineado al estilo del sistema */
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 32%),
    linear-gradient(135deg, var(--sidebar-blue-dark) 0%, var(--sidebar-blue) 48%, #1976d2 100%);
}
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.login-card {
  width: 100%;
  max-width: 430px;
  border-radius: 1.5rem;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
}
.login-logo {
  width: 210px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto .65rem;
}
.login-title {
  font-weight: 800;
  color: #12213f;
}
.login-subtitle {
  color: #64748b;
  font-size: .95rem;
}
.login-input-group .input-group-text {
  background: #fff;
  color: var(--sidebar-blue);
  border-right: 0;
}
.login-input-group .form-control {
  border-left: 0;
}
.login-input-group .form-control:focus {
  box-shadow: none;
  border-color: #86b7fe;
}
.login-bio-panel {
  border: 1px solid rgba(13,71,161,.18);
  border-radius: 1rem;
  background: #f8fbff;
  padding: .75rem;
}
.login-bio-video {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  border-radius: .75rem;
  background: #111;
  display: block;
}


/* POST 021: cámara de checador con tamaño controlado */
.checador-video-box {
  width: 360px !important;
  max-width: 100% !important;
  height: 220px !important;
  max-height: 220px !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;
  background: #111 !important;
  border-radius: 1rem !important;
}
.checador-video-box video#video,
.checador-video-box .checador-video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 220px !important;
  object-fit: cover !important;
  display: block !important;
  position: static !important;
  transform: none !important;
  inset: auto !important;
}
.checador-video-box canvas {
  max-width: 100% !important;
  max-height: 220px !important;
}
@media (max-width: 575.98px) {
  .checador-video-box {
    width: 100% !important;
    height: 210px !important;
    max-height: 210px !important;
  }
}


/* POST 022: foto/evidencia de checador compacta; la cámara conserva su tamaño */
.checador-foto-evidencia,
img.checador-foto-evidencia {
  width: 72px !important;
  height: 54px !important;
  max-width: 72px !important;
  max-height: 54px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  border: 1px solid #d8dee6 !important;
  display: inline-block !important;
  background: #f8f9fa !important;
}
.checador-foto-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
.checador-foto-preview,
img.checador-foto-preview {
  width: 100% !important;
  max-width: 360px !important;
  max-height: 260px !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  border: 1px solid #d8dee6 !important;
  background: #f8f9fa !important;
  display: block !important;
}


/* POST 023: login compacto definitivo */
body.login-page{min-height:100vh;margin:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0f4c97 0%,#1458ad 55%,#1976d2 100%)!important;overflow-x:hidden;}
.login-page .login-shell{width:100%;min-height:100vh;display:flex!important;align-items:center!important;justify-content:center!important;padding:24px!important;}
.login-page .login-card{width:100%!important;max-width:430px!important;border-radius:24px!important;background:#fff!important;box-shadow:0 18px 46px rgba(15,76,151,.28)!important;overflow:hidden!important;}
.login-page .login-card .card-body{padding:32px!important;}
.login-page .login-logo{width:150px!important;max-width:150px!important;height:auto!important;max-height:86px!important;object-fit:contain!important;display:block!important;margin:0 auto 12px!important;}
.login-page .login-title{font-size:1.35rem!important;font-weight:800!important;color:#12213f!important;}
.login-page .login-subtitle{font-size:.9rem!important;color:#64748b!important;}
.login-page .login-input-group .form-control,.login-page .login-input-group .input-group-text{height:48px!important;font-size:.95rem!important;}
.login-page .login-bio-panel{display:none;border:1px solid rgba(13,71,161,.18);border-radius:14px;background:#f8fbff;padding:10px;margin-bottom:12px;}
.login-page .login-bio-panel.is-active{display:block!important;}
.login-page .login-bio-video{width:100%!important;height:190px!important;max-height:190px!important;object-fit:cover!important;border-radius:12px!important;background:#111!important;display:block!important;}
.login-page #btnBioLogin,.login-page #btnPasswordLogin{height:48px!important;font-weight:700!important;}
.login-page #btnMostrarPassword{height:38px!important;}
@media(max-width:575px){.login-page .login-shell{padding:14px!important}.login-page .login-card .card-body{padding:24px 18px!important}.login-page .login-logo{width:128px!important;max-width:128px!important}.login-page .login-bio-video{height:170px!important}}


/* POST 024: fix definitivo de foto base del expediente en checador */
.checador-foto-base-expediente,
img.checador-foto-base-expediente,
.biometria-panel .biometria-foto-base,
.biometria-panel img.biometria-foto-base {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  flex: 0 0 46px !important;
  display: block !important;
}
.biometria-panel { overflow: hidden !important; }
.biometria-panel .d-flex { align-items: center !important; }
.checador-camara-error-action { display: inline-flex; align-items: center; gap: .35rem; }


/* POST 025 - credenciales */
.sidebar-nav .nav-link i{width:18px;text-align:center;}
@media print{
  .sidebar,.navbar,.app-shell>.content>.container-fluid>nav{display:none!important;}
}

/* POST 026 - Checador visual mejorado */
.checador-page-head{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;
}
.checador-live-pill{
  display:inline-flex;align-items:center;gap:.5rem;background:#e8f1ff;color:#0f4c97;border:1px solid #bfdbfe;border-radius:999px;padding:.45rem .75rem;font-weight:700;font-size:.86rem;
}
.checador-main-card{border:0!important;border-radius:22px!important;box-shadow:0 14px 34px rgba(15,76,151,.10)!important;overflow:hidden;}
.checador-main-card .card-body{padding:1.15rem!important;}
.checador-hero{display:grid;grid-template-columns:1fr 210px;gap:1rem;align-items:stretch;margin-bottom:1rem;}
.checador-hero-main{display:flex;align-items:center;gap:.85rem;padding:1rem;border-radius:18px;background:linear-gradient(135deg,#f8fbff,#edf5ff);border:1px solid #dbeafe;}
.checador-hero-icon{width:52px;height:52px;border-radius:16px;background:#0f4c97;color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.35rem;box-shadow:0 10px 20px rgba(15,76,151,.24);}
.checador-live-card{border-radius:18px;background:linear-gradient(135deg,#0f4c97,#1976d2);color:#fff;padding:1rem;display:flex;flex-direction:column;justify-content:center;box-shadow:0 14px 28px rgba(15,76,151,.22);}
.checador-clock{font-size:1.65rem;line-height:1;font-weight:800;letter-spacing:.02em;}
.checador-date{font-size:.82rem;opacity:.9;text-transform:capitalize;margin-top:.25rem;}
.checador-location{font-size:.78rem;margin-top:.65rem;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.20);border-radius:999px;padding:.35rem .55rem;white-space:normal;}
.checador-location.is-ok{background:rgba(25,135,84,.25);}
.checador-camera-panel{display:grid;grid-template-columns:360px 1fr;gap:1rem;align-items:stretch;border:1px solid #dbeafe;border-radius:18px;background:#f8fbff;padding:.85rem;}
.checador-camera-panel .checador-video-box{margin:0!important;}
.checador-camera-panel .biometria-panel{margin:0!important;height:100%;display:flex;flex-direction:column;justify-content:center;border-radius:16px!important;background:#fff!important;}
.checador-info-strip{display:flex;align-items:flex-start;gap:.65rem;border-radius:14px;background:#e7f8ff;border:1px solid #9ee7ff;color:#055160;padding:.85rem 1rem;font-size:.93rem;}
.checador-info-strip i{margin-top:.15rem;}
.checador-action-card{height:100%;border:1px solid #dce6f2;border-radius:18px;background:#fff;padding:1rem;box-shadow:0 6px 20px rgba(15,23,42,.045);transition:.18s ease;position:relative;overflow:hidden;}
.checador-action-card:before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:#0d6efd;}
.checador-action-card:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(15,23,42,.075);}
.checador-action-title{display:flex;align-items:center;gap:.65rem;font-weight:800;margin-bottom:.55rem;color:#172033;}
.checador-action-icon{width:38px;height:38px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:#e8f1ff;color:#0f4c97;font-size:1.05rem;}
.checador-action-yellow:before{background:#ffc107}.checador-action-yellow .checador-action-icon{background:#fff7db;color:#946200;}
.checador-action-cyan:before{background:#0dcaf0}.checador-action-cyan .checador-action-icon{background:#dff9ff;color:#087990;}
.checador-action-red:before{background:#dc3545}.checador-action-red .checador-action-icon{background:#fff0f1;color:#b02a37;}
.checador-action-card .btn{border-radius:11px;font-weight:700;min-width:142px;}
.checador-status-inline .alert{border-radius:14px;margin-bottom:0;}
.checador-side-card{border:0!important;border-radius:18px!important;box-shadow:0 10px 26px rgba(15,23,42,.07)!important;}
.checador-side-card .card-body{padding:1rem!important;}
@media(max-width:991.98px){.checador-hero{grid-template-columns:1fr}.checador-live-card{min-height:110px}.checador-camera-panel{grid-template-columns:1fr}.checador-camera-panel .checador-video-box{width:100%!important}}
@media(max-width:575.98px){.checador-main-card .card-body{padding:.85rem!important}.checador-hero-main{align-items:flex-start}.checador-clock{font-size:1.35rem}.checador-action-card{padding:.85rem}.checador-action-card .btn{width:100%;}}


/* POST 029: privacidad login y no traducción */
.login-autofill-decoy{position:absolute!important;left:-9999px!important;top:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;}
input[data-lpignore="true"]::-ms-reveal,input[data-lpignore="true"]::-ms-clear{display:none!important;}
.notranslate{translate:no;}

/* POST 030: usuarios/números siempre en mayúsculas */
#loginUsuario, .login-input-uppercase { text-transform: uppercase !important; }

.btnChecadaTipo[data-registrada="1"] {
  font-weight: 700;
  box-shadow: 0 0 0 .18rem rgba(13,110,253,.12);
}

/* POST 050/051: corrección de tiempos, logs y footer fijo */
.config-icon{width:46px;height:46px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:#eef4ff;color:#0d47a1;font-size:1.35rem}
.content{padding-bottom:86px;}
.app-footer{position:fixed;left:260px;right:0;bottom:0;z-index:1020;background:rgba(255,255,255,.96);border-top:1px solid #dee2e6;padding:10px 16px;color:#1f2937;box-shadow:0 -8px 24px rgba(15,23,42,.08);backdrop-filter:blur(8px)}
.app-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.app-footer-logo{width:36px;height:36px;border-radius:10px;object-fit:contain;border:1px solid #e5e7eb;background:#fff}
.reporte-dia{cursor:pointer;min-width:28px;min-height:26px}
.reporte-dia:hover{filter:brightness(.96);box-shadow:0 0 0 2px rgba(13,71,161,.14)}
@media(max-width:767px){.app-footer{left:0}.content{padding-bottom:112px}}
@media(max-width:575px){.app-footer{padding:8px 12px}.app-footer-inner{align-items:flex-start}.app-footer .text-end{text-align:left!important}}
@media print{.app-footer{display:none!important}.content{padding-bottom:0!important}}


/* POST 052: semáforo visual para Corrección de tiempos */
.reporte-dias{display:flex;flex-wrap:wrap;gap:4px;min-width:220px}
.reporte-dia{width:28px;height:26px;border-radius:8px;font-size:.72rem;font-weight:800;display:inline-flex;align-items:center;justify-content:center;line-height:1;text-decoration:none;transition:.12s ease-in-out}
.reporte-dia.success{background:#bbf7d0!important;color:#166534!important;border:1px solid #86efac!important}
.reporte-dia.warning{background:#fde68a!important;color:#92400e!important;border:1px solid #facc15!important}
.reporte-dia.danger{background:#fecaca!important;color:#991b1b!important;border:1px solid #fca5a5!important}
.reporte-dia.secondary{background:#e5e7eb!important;color:#374151!important;border:1px solid #d1d5db!important}
.reporte-dia:hover{transform:translateY(-1px);filter:brightness(.98);box-shadow:0 0 0 3px rgba(13,71,161,.13)}
.correccion-tiempos-table tbody tr:hover td{background:#f8fbff}

/* POST 054: rediseño Checador, datos del día junto a biometría y botones al final */
.checador-workspace{display:grid;grid-template-columns:minmax(280px,380px) 1fr;gap:1rem;align-items:stretch;border:1px solid #dbeafe;border-radius:18px;background:#f8fbff;padding:.9rem}
.checador-workspace .checador-video-box{margin:0!important;width:100%!important;height:240px!important;max-height:240px!important;border-radius:16px!important;background:#0f172a!important}
.checador-workspace .checador-video{height:100%!important;max-height:240px!important}
.checador-verificacion-col{display:grid;grid-template-columns:1fr 1fr;gap:.9rem;align-items:stretch}
.checador-verificacion-col .biometria-panel,.checador-day-panel{height:100%;border-radius:16px!important;background:#fff!important;border:1px solid #dbeafe!important;box-shadow:0 6px 18px rgba(15,23,42,.04);padding:.85rem!important}
.checador-day-panel{font-size:.88rem;line-height:1.35;color:#172033}
.checador-day-panel div{margin-bottom:.25rem}
.checador-actions-bottom{margin-top:.25rem;padding-top:.9rem;border-top:1px solid #dbeafe}
.checador-actions-bottom .checador-action-card{min-height:150px}
.btnChecadaTipo[data-bloqueada="1"]{opacity:.72;cursor:not-allowed;box-shadow:none!important}
@media(max-width:1199.98px){.checador-workspace{grid-template-columns:1fr}.checador-verificacion-col{grid-template-columns:1fr 1fr}}
@media(max-width:767.98px){.checador-verificacion-col{grid-template-columns:1fr}.checador-workspace .checador-video-box{height:220px!important}}


/* POST 069: botones de checada en el área derecha de cámara */
.checador-actions-panel{
  min-height:240px;
  border:1px solid #dbeafe;
  border-radius:18px;
  background:#fff;
  padding:1rem;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}
.checador-actions-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.75rem;
}
.checador-actions-en-panel{
  margin-top:0;
  padding-top:.75rem;
  border-top:1px solid #edf2f7;
}
.checador-actions-en-panel .checador-action-card{
  min-height:132px;
  padding:.85rem;
}
.checador-actions-en-panel .checador-action-card .btn{
  width:100%;
}
.checador-workspace{
  grid-template-columns:minmax(280px,360px) minmax(420px,1fr);
  align-items:stretch;
}
.checador-verificacion-col{
  grid-template-columns:minmax(280px,.8fr) minmax(420px,1.2fr);
}
@media(max-width:1199.98px){
  .checador-workspace{grid-template-columns:1fr}
  .checador-actions-panel{min-height:auto}
}
@media(max-width:767.98px){
  .checador-verificacion-col{grid-template-columns:1fr}
}


/* POST 072: ajuste checador sin óvalo ni botón tomar foto; cámara centrada al alto de acciones */
.checador-workspace-pro{
  display:grid!important;
  grid-template-columns:minmax(360px,520px) minmax(420px,1fr)!important;
  gap:1.2rem!important;
  align-items:stretch!important;
  border:0!important;
  border-radius:22px!important;
  background:transparent!important;
  padding:0!important;
}
.checador-face-card,.checador-actions-panel-pro{
  border:1px solid #dbeafe!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:0 14px 34px rgba(15,23,42,.08)!important;
  overflow:hidden!important;
}
.checador-face-head{
  display:flex;align-items:center;gap:.85rem;
  background:linear-gradient(135deg,#0d47a1,#0d6efd)!important;
  color:#fff!important;padding:1rem 1.15rem!important;
}
.checador-face-head-icon{width:42px;height:42px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.16);font-size:1.25rem;flex:0 0 42px;}
.checador-face-head h2{font-weight:900;letter-spacing:.01em;color:#fff!important;}
.checador-face-head .small{color:rgba(255,255,255,.88)!important;font-weight:600;}
.checador-video-frame{
  position:relative!important;margin:0!important;width:100%!important;height:560px!important;max-height:none!important;border-radius:0!important;
  background:#0f172a!important;overflow:hidden!important;border:0!important;
}
.checador-video-frame .checador-video{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;object-position:center center!important;display:block!important;}
.checador-face-badge{position:absolute;left:1rem;top:1rem;background:#16a34a;color:#fff;border-radius:11px;padding:.38rem .7rem;font-size:.78rem;font-weight:800;box-shadow:0 8px 18px rgba(22,163,74,.28);}
.checador-face-tip{display:flex;align-items:center;gap:.5rem;padding:.8rem 1rem;background:#f8fbff;color:#475569;font-size:.86rem;font-weight:600;border-top:1px solid #e6eef8;}
.checador-face-tip i{color:#0d6efd;}
.checador-actions-panel-pro{padding:1.05rem!important;}
.checador-actions-panel-pro .checador-actions-head{margin-bottom:.85rem!important;}
.checador-actions-panel-pro .checador-actions-head h2{font-weight:900;color:#172033;}
.checador-actions-en-panel{border-top:0!important;padding-top:0!important;}
.checador-actions-en-panel .row{display:grid!important;grid-template-columns:1fr!important;gap:.85rem!important;margin:0!important;}
.checador-actions-en-panel .col-12{width:100%!important;padding:0!important;}
.checador-actions-en-panel .checador-action-card{display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center!important;gap:1rem!important;min-height:106px!important;padding:1rem 1.1rem!important;border-radius:18px!important;background:linear-gradient(135deg,#fff,#f8fbff)!important;}
.checador-actions-en-panel .checador-action-card:before{display:none!important;}
.checador-actions-en-panel .checador-action-title{margin:0!important;font-size:1.04rem!important;}
.checador-actions-en-panel .checador-action-icon{width:58px!important;height:58px!important;border-radius:50%!important;font-size:1.45rem!important;}
.checador-actions-en-panel .checador-action-card .small{margin:0!important;}
.checador-actions-en-panel .checador-action-card .btn{grid-column:3!important;grid-row:1 / span 2!important;width:auto!important;min-width:168px!important;border-radius:13px!important;padding:.72rem .9rem!important;}
.checador-actions-en-panel .checador-action-blue{border-color:#93c5fd!important;}
.checador-actions-en-panel .checador-action-yellow{border-color:#fdba74!important;}
.checador-actions-en-panel .checador-action-cyan{border-color:#67e8f9!important;}
.checador-actions-en-panel .checador-action-red{border-color:#fca5a5!important;}
.checador-actions-panel-pro .checador-status-inline .alert{font-size:.9rem;}
@media(max-width:1199.98px){.checador-workspace-pro{grid-template-columns:1fr!important}.checador-video-frame{height:460px!important}}
@media(max-width:767.98px){.checador-video-frame{height:340px!important}.checador-actions-en-panel .checador-action-card{grid-template-columns:auto 1fr!important}.checador-actions-en-panel .checador-action-card .btn{grid-column:1 / -1!important;grid-row:auto!important;width:100%!important;min-width:0!important}.checador-actions-panel-pro{padding:.85rem!important}}

/* POST 072B: checador sin overlay; cámara centrada + expediente y coincidencia */
.checador-video-frame{
  height:420px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#0f172a!important;
}
.checador-video-frame .checador-video{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
}
.checador-face-badge,
.checador-face-guide,
.checador-capture-btn,
#btnCamara{
  display:none!important;
}
.checador-expediente-panel{
  margin:0!important;
  padding:1rem!important;
  background:#fff!important;
  border-top:1px solid #e6eef8!important;
}
.checador-expediente-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:.75rem!important;
  margin-bottom:.75rem!important;
}
.checador-match-pill{
  flex:0 0 auto!important;
  border-radius:999px!important;
  background:#e8f1ff!important;
  color:#0d47a1!important;
  border:1px solid #bfdbfe!important;
  padding:.42rem .7rem!important;
  font-size:.82rem!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
.checador-match-pill.is-ok{background:#dcfce7!important;color:#166534!important;border-color:#86efac!important;}
.checador-match-pill.is-low{background:#fee2e2!important;color:#991b1b!important;border-color:#fca5a5!important;}
.checador-expediente-img{
  width:100%!important;
  height:220px!important;
  max-height:220px!important;
  object-fit:cover!important;
  object-position:center center!important;
  border-radius:16px!important;
  border:1px solid #dbeafe!important;
  background:#f8fbff!important;
  display:block!important;
}
.checador-expediente-empty{
  width:100%!important;
  height:220px!important;
  border-radius:16px!important;
  border:1px dashed #cbd5e1!important;
  background:#f8fafc!important;
  color:#64748b!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:.5rem!important;
  font-weight:800!important;
}
.checador-expediente-empty i{font-size:2rem!important;color:#dc3545!important;}
.checador-actions-en-panel .checador-action-card{
  min-height:96px!important;
}
@media(max-width:1199.98px){
  .checador-video-frame{height:380px!important;}
  .checador-expediente-img,.checador-expediente-empty{height:200px!important;}
}
@media(max-width:767.98px){
  .checador-video-frame{height:320px!important;}
  .checador-expediente-img,.checador-expediente-empty{height:180px!important;}
  .checador-expediente-head{align-items:flex-start!important;flex-direction:column!important;}
}

/* POST078 semana operativa, modales y alertas RH */
.checador-delay-alert{border-radius:16px;box-shadow:0 8px 24px rgba(245,158,11,.12)}
.checador-resultado-imagen{border:1px solid #dbeafe;border-radius:16px;background:#f8fbff;padding:12px}
.checador-resultado-img{width:100%;max-height:220px;object-fit:contain;border-radius:14px;border:1px solid #e5e7eb;background:#fff}
.checador-resultado-placeholder{min-height:88px;display:flex;align-items:center;justify-content:center;text-align:center;color:#64748b;background:#fff;border:1px dashed #cbd5e1;border-radius:14px;padding:12px}
.modal-resultado-warning{background:#f59e0b;color:#fff;box-shadow:0 10px 24px rgba(245,158,11,.28)}
.sistema-modal-content{border:0;border-radius:20px;box-shadow:0 24px 60px rgba(15,23,42,.18)}
.dashboard-week-card{border-left:5px solid #2563eb}
.alerta-rh-critica{animation:pulseRh 1.4s ease-in-out infinite}
@keyframes pulseRh{0%,100%{box-shadow:0 0 0 rgba(220,38,38,0)}50%{box-shadow:0 0 0 8px rgba(220,38,38,.12)}}

/* POST132 - Checador visual refresh: biometría + GPS */
:root{--checador-navy:#0b2f6b;--checador-blue:#1268f3;--checador-soft:#eef6ff;--checador-border:#dbe7f5;--checador-green:#16a34a;--checador-amber:#f59e0b;--checador-red:#ef4444;}
body{background:linear-gradient(135deg,#f7fbff 0%,#eef5ff 45%,#ffffff 100%);}
.sidebar-blue{background:linear-gradient(180deg,#082f73 0%,#0b438f 55%,#07245a 100%)!important;box-shadow:8px 0 26px rgba(8,47,115,.16);}
.sidebar-brand-logo{width:38px;height:38px;border-radius:11px;box-shadow:0 8px 18px rgba(0,0,0,.20);background:#073b91;object-fit:cover;}
.sidebar-brand-text{font-size:1.1rem;letter-spacing:.2px}.navbar-brand-logo{width:28px;height:28px;border-radius:8px;object-fit:cover}.navbar{backdrop-filter:blur(14px);background:rgba(255,255,255,.88)!important;border-bottom:1px solid rgba(219,231,245,.9)}
.dashboard-hero{background:linear-gradient(135deg,#082f73 0%,#1268f3 64%,#13b8a6 100%);color:#fff;border:0;border-radius:24px;overflow:hidden;position:relative}.dashboard-hero:after{content:"";position:absolute;right:-80px;top:-90px;width:300px;height:300px;border-radius:50%;background:rgba(255,255,255,.13)}.dashboard-hero .card-body{position:relative;z-index:2}.dashboard-hero-logo{width:68px;height:68px;border-radius:18px;background:#073b91;box-shadow:0 18px 45px rgba(0,0,0,.25)}.dashboard-chip{display:inline-flex;align-items:center;gap:.4rem;padding:.45rem .75rem;border-radius:999px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.22);font-size:.85rem;color:#fff}.card-kpi{border:0;border-radius:20px;box-shadow:0 12px 32px rgba(12,53,114,.09);overflow:hidden}.card-kpi .display-6{font-weight:700}.biometric-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.bio-pill{border-radius:18px;background:#fff;border:1px solid var(--checador-border);box-shadow:0 8px 22px rgba(12,53,114,.07);padding:14px 16px;display:flex;align-items:center;gap:12px}.bio-pill i{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;color:#fff}.bio-pill .label{font-size:.78rem;color:#64748b}.bio-pill .value{font-weight:800;color:#0f172a}.bio-gps i{background:linear-gradient(135deg,#16a34a,#22c55e)}.bio-face i{background:linear-gradient(135deg,#1268f3,#0ea5e9)}.bio-sync i{background:linear-gradient(135deg,#0f766e,#14b8a6)}.bio-alert i{background:linear-gradient(135deg,#f59e0b,#ef4444)}
@media(max-width:992px){.biometric-strip{grid-template-columns:repeat(2,minmax(0,1fr));}}@media(max-width:576px){.biometric-strip{grid-template-columns:1fr}.dashboard-hero-logo{width:54px;height:54px}}


/* POST149 - visual base logo */
.login-page .login-logo{width:132px!important;height:132px!important;max-width:132px!important;max-height:132px!important;object-fit:contain!important;border-radius:28px!important;background:#fff!important;padding:4px!important;box-shadow:0 12px 32px rgba(6,30,77,.14)!important;}
.login-page .login-title{color:#061E4D!important;}
.login-page .login-subtitle{color:#64748B!important;}


/* POST154 - logo oficial consistente */
.login-logo,.sidebar-brand-logo,.navbar-brand-logo,.dashboard-hero-logo,.cred-logo{
  object-fit:contain!important;
  background:#fff!important;
}
