/* CPROT Control de Asistencia — composición equilibrada, responsive y accesible.
   Esta hoja se carga DESPUÉS de theme-cprot.css. No modifica la lógica ni datos. */
.kiosk{
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  min-height:100svh;
  padding:clamp(16px,2svh,30px) clamp(18px,3vw,60px);
}
.kiosk-header{
  width:100%;
  min-width:0;
  padding-bottom:clamp(10px,1.3svh,18px);
}
.kiosk .brand img{
  width:clamp(56px,4.5vw,78px);
  height:clamp(56px,4.5vw,78px);
}
.kiosk-content{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:center;
  justify-items:center;
  column-gap:clamp(26px,3.2vw,64px);
  width:100%;
  max-width:1440px;
  min-width:0;
  margin:0 auto;
  padding:clamp(14px,2.8svh,42px) 0;
}
.kiosk-content>div{
  min-width:0;
  width:100%;
  max-width:660px;
}
.clock{
  margin:0 0 clamp(20px,2.6svh,32px);
  text-align:center;
}
.clock .time{
  font-size:clamp(74px,6.1vw,116px);
  line-height:1;
  letter-spacing:-.065em;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.clock .date{
  font-size:clamp(16px,1.35vw,22px);
  line-height:1.35;
  margin-top:9px;
}
.kiosk-form{
  width:100%;
  max-width:none;
  margin:0;
  padding:clamp(21px,1.9vw,32px);
  border-radius:22px;
}
.kiosk-form h2{
  font-size:clamp(24px,1.75vw,30px);
  line-height:1.16;
  margin:0 0 10px;
}
.kiosk-form p{
  font-size:clamp(13px,.95vw,15px);
  line-height:1.5;
  margin:0 0 16px;
}
.kiosk-form .terminal-empty{
  display:flex;
  align-items:flex-start;
  gap:10px;
  border-color:#377aa2;
  background:#10314a;
  color:#daefff;
  padding:11px 13px;
  margin:0 0 16px;
  line-height:1.4;
  font-size:13px;
}
.kiosk-form .terminal-empty .ui-icon{
  flex:0 0 18px;
  color:#72d2ff;
  margin-top:1px;
}
.terminal-auto-status{margin:0 0 16px;}
.terminal-auto-status .auto-punch-label{
  margin:0;
  width:max-content;
  max-width:100%;
  padding:10px 13px;
  min-height:42px;
  line-height:1.3;
}
.kiosk-form #check-form{gap:13px}
.kiosk-form input{
  min-height:51px;
  padding:13px 15px;
}
.kiosk-form label{margin-bottom:8px}
.kiosk-form button.primary{
  min-height:56px;
  padding:13px 18px;
  font-size:clamp(16px,1.08vw,19px);
}
.kiosk-form #check-form+p{
  margin:15px 0 0!important;
  font-size:12px!important;
  line-height:1.4;
  color:#aacbdf!important;
}
.camera-side{
  width:100%;
  min-width:0;
  max-width:660px;
}
.camera-frame{
  position:relative;
  height:clamp(360px,46svh,525px);
  aspect-ratio:auto;
  max-height:none;
  border-radius:23px;
}
.camera-frame video{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#030b13;
}
.camera-empty{max-width:100%;padding:24px}
.camera-empty-icon{margin-bottom:14px}
.camera-empty-icon .ui-icon{width:48px;height:48px;min-width:48px}
.camera-empty h3{font-size:clamp(18px,1.3vw,22px);margin:10px 0 6px!important}
.camera-empty p{font-size:14px!important;line-height:1.4}
.camera-cta{min-height:46px;margin-top:14px}
.camera-label{left:16px;top:16px}
.last-checkin{
  min-height:89px;
  margin-top:14px;
  padding:13px 16px;
  gap:14px;
}
.last-checkin img{width:59px;height:59px}
.last-checkin strong{font-size:16px}
.last-checkin small{font-size:13px;line-height:1.4}
.last-checkin-icon{width:55px;height:55px;min-width:55px}
.last-checkin-icon .ui-icon{width:33px;height:33px;min-width:33px}
#directory-updated{
  margin:11px 0 0;
  font-size:12px!important;
  line-height:1.4;
  text-align:center;
  color:#a8d0e8!important;
}

/* Televisores / laptops 16:9 con altura CSS entre 741 y 900 px.
   Moderar tamaños, pero nunca comprimir todo en una franja superior. */
@media (min-width:951px) and (max-height:900px){
  .kiosk{padding-top:14px;padding-bottom:14px}
  .kiosk-header{padding-bottom:10px}
  .kiosk .brand img{width:58px;height:58px}
  .kiosk-content{column-gap:clamp(22px,2.8vw,47px);padding:15px 0}
  .clock{margin-bottom:18px}
  .clock .time{font-size:clamp(72px,5.9vw,96px)}
  .clock .date{font-size:clamp(15px,1.3vw,19px);margin-top:6px}
  .kiosk-form{padding:21px 23px}
  .kiosk-form h2{font-size:25px;margin-bottom:8px}
  .kiosk-form p{font-size:13px;margin-bottom:12px}
  .kiosk-form .terminal-empty{padding:10px 12px;margin-bottom:12px;font-size:12px}
  .terminal-auto-status{margin-bottom:11px}
  .terminal-auto-status .auto-punch-label{min-height:40px;padding:9px 12px}
  .kiosk-form #check-form{gap:11px}
  .kiosk-form input{min-height:48px;padding:12px 14px}
  .kiosk-form button.primary{min-height:52px;padding:12px}
  .kiosk-form #check-form+p{margin-top:12px!important}
  .camera-frame{height:clamp(330px,48svh,410px)}
  .last-checkin{min-height:78px;padding:11px 14px;margin-top:11px}
  .last-checkin img{width:52px;height:52px}
  .last-checkin-icon{width:48px;height:48px;min-width:48px}
  #directory-updated{margin-top:8px}
}
/* Laptops más bajas y ventanas divididas, sin forzar alturas que causen recortes. */
@media (min-width:951px) and (max-height:740px){
  .kiosk{padding-top:10px;padding-bottom:10px}
  .kiosk-header{padding-bottom:7px}
  .kiosk .brand img{width:49px;height:49px}
  .kiosk-content{padding:9px 0}
  .clock{margin-bottom:11px}
  .clock .time{font-size:clamp(58px,5vw,77px)}
  .clock .date{font-size:14px;margin-top:4px}
  .kiosk-form{padding:16px 19px}
  .kiosk-form h2{font-size:22px;margin-bottom:5px}
  .kiosk-form p{font-size:12px;margin-bottom:8px}
  .kiosk-form .terminal-empty{padding:8px 10px;margin-bottom:9px;font-size:11px}
  .terminal-auto-status{margin-bottom:8px}
  .terminal-auto-status .auto-punch-label{min-height:35px;padding:7px 11px}
  .kiosk-form #check-form{gap:9px}
  .kiosk-form input{min-height:44px;padding:10px 12px}
  .kiosk-form button.primary{min-height:49px;padding:10px}
  .kiosk-form #check-form+p{margin-top:9px!important}
  .camera-frame{height:clamp(275px,46svh,350px)}
  .camera-empty-icon .ui-icon{width:39px;height:39px;min-width:39px}
  .last-checkin{min-height:67px;padding:8px 11px;margin-top:9px}
  .last-checkin img{width:45px;height:45px}
  .last-checkin-icon{width:43px;height:43px;min-width:43px}
  #directory-updated{margin-top:6px;font-size:11px!important}
}

/* TV 4K a escala real: proporciones constantes y tipografía legible a distancia. */
@media (min-width:2000px) and (min-height:1150px){
  .kiosk{padding:clamp(35px,2.2svh,65px) clamp(55px,4vw,110px)}
  .kiosk-content{max-width:2040px;column-gap:clamp(55px,4vw,100px);padding:50px 0}
  .kiosk-content>div,.camera-side{max-width:960px}
  .kiosk .brand img{width:98px;height:98px}
  .kiosk .brand b{font-size:26px}
  .kiosk .brand span{font-size:16px}
  .clock .time{font-size:clamp(145px,7vw,215px)}
  .clock .date{font-size:clamp(25px,1.5vw,38px)}
  .clock{margin-bottom:36px}
  .kiosk-form{padding:clamp(35px,2.2vw,55px)}
  .kiosk-form h2{font-size:clamp(34px,1.7vw,46px)}
  .kiosk-form p,.kiosk-form label{font-size:clamp(18px,1vw,24px)}
  .kiosk-form input{min-height:70px;font-size:22px}
  .kiosk-form button.primary{min-height:74px;font-size:24px}
  .camera-frame{height:clamp(530px,44svh,820px)}
  .last-checkin{min-height:116px;padding:18px}
  .last-checkin strong{font-size:24px}
  .last-checkin small{font-size:19px}
}

/* Pantallas intermedias, tablets y teléfonos: formulario siempre antes de cámara. */
@media (max-width:950px){
  .kiosk{
    display:block;
    padding:clamp(13px,2.2vw,22px) clamp(12px,3vw,25px) 24px;
  }
  .kiosk-header{padding-bottom:12px}
  .kiosk-content{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:20px;
    max-width:720px;
    padding:16px 0 0;
    margin:0 auto;
  }
  .kiosk-content>div,.camera-side{width:100%;max-width:none}
  .clock{margin-bottom:18px}
  .clock .time{font-size:clamp(54px,9vw,85px)}
  .clock .date{font-size:clamp(15px,2.4vw,19px)}
  .kiosk-form{padding:clamp(20px,3vw,27px)}
  .camera-side{order:0}
  .camera-frame{height:clamp(270px,38svh,420px)}
  .last-checkin{min-height:78px}
}
@media (max-width:620px){
  .kiosk{padding:12px 12px 24px}
  .kiosk .brand img{width:45px;height:45px}
  .kiosk-content{gap:16px;padding-top:12px}
  .clock{margin-bottom:14px}
  .clock .time{font-size:clamp(45px,12vw,67px)}
  .clock .date{font-size:14px}
  .kiosk-form{padding:19px 17px;border-radius:18px}
  .kiosk-form h2{font-size:23px}
  .kiosk-form p{font-size:13px}
  .kiosk-form .terminal-empty{padding:10px}
  .terminal-auto-status .auto-punch-label{width:auto;font-size:12px}
  .kiosk-form input{min-height:50px}
  .kiosk-form button.primary{min-height:53px;font-size:16px}
  .camera-frame{height:clamp(220px,31svh,300px)}
  .camera-empty h3{font-size:17px}
}
@media (max-width:380px){
  .kiosk .brand img{width:40px;height:40px}
  .clock .time{font-size:clamp(41px,11.7vw,51px)}
  .kiosk-form h2{font-size:22px}
  .kiosk-top-right{gap:5px}
}
/* No recortar contenido si el sistema operativo amplía fuentes/accesibilidad. */
@media (prefers-reduced-motion:reduce){
  .kiosk *{scroll-behavior:auto}
}

/* Pulido final del panel administrativo: scroll estable y foco accesible. */
.sidebar{overflow-anchor:none;scroll-behavior:auto}
.sidebar nav{scroll-behavior:auto;overflow-anchor:none}
.sidebar nav button:focus-visible{outline:2px solid #5cd3ff;outline-offset:-2px}
.sidebar nav button[aria-current="page"]{font-weight:800}
/* Cámaras: permite elegir entre webcam física o cámara virtual (OBS), si existen varias. */
.camera-frame{background:linear-gradient(145deg,#091c30,#030b13)}
.camera-frame video{background:linear-gradient(145deg,#091c30,#030b13)}
.camera-source{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px}
.camera-source[hidden]{display:none!important}
.camera-source label{margin:0;color:#b7d7ec;font-size:12px;white-space:nowrap}
.camera-source select{width:min(100%,270px);min-width:0;font-size:13px;padding:8px 10px}
.confirmation-card{text-align:center}
.confirmation-card .confirmation-title{margin:4px 0 4px;font-size:clamp(22px,3vw,29px)}
.confirmation-person{margin:4px 0 8px}
.confirmation-card .confirm-photo{max-width:100%;width:190px;height:190px;margin:11px auto;object-fit:cover}
.confirmation-card .confirm-time{font-size:clamp(27px,4vw,35px)}
.confirmation-sync{margin:16px 0 15px;padding:11px 13px;border:1px solid #396787;background:#122b42;color:#a9d7ef;border-radius:12px;font-size:13px;line-height:1.45}
.confirmation-sync.synced{border-color:#267d75;color:#a3f0dc;background:#113e3a}
@media (max-width:950px){
  .camera-source{justify-content:flex-start;flex-wrap:wrap}
  .camera-source select{width:100%;max-width:100%}
}
@media (max-height:760px){
  .confirmation-card .confirm-photo{width:145px;height:145px}
  .confirmation-card .confirm-time{font-size:29px}
  .confirmation-sync{margin:10px 0;padding:9px 11px}
}

/* Expediente y vista mensual: mantener tablas legibles en todas las pantallas. */
.report-filter{margin-bottom:20px}
.report-filter .form-grid{align-items:end}
.report-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 22px}
.report-metrics .stat{padding:16px}
.report-metrics .stat strong{font-size:31px;margin:5px 0}
.report-employee h3{margin:20px 0 10px}
.report-employee .toolbar h3{margin:0}
.report-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:10px 0 22px}
.report-tiles>div{display:grid;align-content:center;gap:6px;border:1px solid #2c4b69;border-radius:14px;padding:15px;background:#0c2034}
.report-tiles strong{font-size:23px;color:#ebfaff}
.report-tiles small{font-size:12px;color:#a7c4da}
.report-table{overflow-x:auto;scrollbar-color:#42779a #0c1c2c}
.report-table table{min-width:900px}
.report-table td,.report-table th{white-space:nowrap}
.report-note{font-size:12px;line-height:1.6;margin-top:12px}
.report-aguinaldo{border:1px solid #377496;border-radius:16px;background:#10314a;padding:20px}
.report-aguinaldo>strong{font-size:26px;color:#bdeeff}
.report-aguinaldo p{margin:10px 0 0;line-height:1.5}
.report-empty{padding:16px}
@media(max-width:1200px){.report-metrics,.report-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.report-metrics,.report-tiles{grid-template-columns:1fr 1fr;gap:8px}.report-metrics .stat,.report-tiles>div{padding:12px}.report-metrics .stat strong{font-size:24px}.report-tiles strong{font-size:19px}.report-filter .form-grid{grid-template-columns:1fr}}
@media(max-width:380px){.report-metrics,.report-tiles{grid-template-columns:1fr}}

/* Reloj 12/24: la etiqueta a. m./p. m. ocupa su propio espacio,
   para mantener la simetría de las dos columnas. */
.clock-readout{display:flex;justify-content:center;align-items:baseline;gap:clamp(8px,.8vw,14px);white-space:nowrap}
.clock-period{color:#85d5ff;font-size:clamp(15px,1.4vw,23px);font-weight:800;letter-spacing:0;flex-shrink:0}
.clock-24h .clock-period{display:none}
.clock-12h .clock .time{font-size:clamp(64px,5.1vw,102px)}
@media (min-width:951px) and (max-height:900px){.clock-12h .clock .time{font-size:clamp(62px,4.8vw,83px)}}
@media (min-width:951px) and (max-height:740px){.clock-12h .clock .time{font-size:clamp(52px,4.45vw,68px)}}
@media (max-width:950px){.clock-12h .clock .time{font-size:clamp(51px,7vw,72px)}}
@media (max-width:620px){.clock-12h .clock .time{font-size:clamp(38px,9.6vw,55px)}.clock-period{font-size:14px}}
@media (max-width:380px){.clock-12h .clock .time{font-size:clamp(34px,9vw,47px)}.clock-period{font-size:12px}}
