/* SIGNATURE — versión operativa PARA REVISIÓN, no desplegada.
   Fuente estética: diseno/fuentes-html/01_Signature.html (HTML original).
   El DOM de trabajador, PIN, teclado, botones, estado y cola sigue siendo el
   original de attendance-ui.js. Esta hoja NO toca otros temas. */
html[data-pc-theme="signature"] body[data-pc-mode="terminal"]{
  color-scheme:light;
  background:radial-gradient(circle at 20% 12%,#fff 0,transparent 56%),#f2f4f1;
  color:#19303c;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .main{
  max-width:1480px;
  padding:0 20px 35px;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTerminal{
  width:100%;max-width:1440px;margin:0 auto;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletShell{
  color-scheme:light;position:relative;overflow:visible;border:0;border-radius:0;
  background:#f2f4f1;box-shadow:none;color:#19303c;min-height:0;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletShell::before{content:none}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletTop{
  position:relative;z-index:2;background:transparent;border-bottom:1px solid #d4ddda;
  padding:20px clamp(19px,4.4vw,64px);min-height:112px;color:#19303c;
  display:flex;align-items:center;justify-content:space-between;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletIdentity{
  display:flex;align-items:center;gap:13px;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletIdentity img{
  width:64px;height:64px;object-fit:contain;background:#fff;border:2px solid #101820;
  padding:2px;border-radius:18px;box-shadow:0 5px 13px #0002;filter:none;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletIdentity strong{
  font-size:clamp(21px,2.6vw,28px);font-weight:850;letter-spacing:-.8px;color:#19303c;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletIdentity span{
  color:#61757b;font-size:11px;letter-spacing:1px;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletCaption{
  color:#287a66;font-size:12px;font-weight:800;letter-spacing:.45px;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcOnlineLight{
  background:#289678;box-shadow:none;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletMain{
  display:grid;grid-template-columns:minmax(0,55fr) minmax(0,45fr);
  gap:25px;padding:26px clamp(16px,3.8vw,55px) 22px;min-height:0;
  color:#19303c;align-items:stretch;
}
/* Panel izquierdo: geometría y acabados tomados del HTML original Signature. */
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletClockSide{
  display:flex;justify-content:center;align-items:center;min-width:0;
  min-height:730px;padding:30px 16px;
  border:1px solid #dae0da;border-radius:36px;
  background:linear-gradient(138deg,#edf0ef,#fff 45%,#dfe5e4);
  box-shadow:0 24px 55px #31414f19,inset 0 2px #fff;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcClockFace{
  width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;
  gap:19px;text-align:center;min-width:0;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] #pcDialHost{
  display:grid;place-items:center;width:100%;min-width:0;
}
/* Esfera NUEVA, generada desde el HTML fuente .sig .dial silver.
   No depende de .analog.pcKioskDial ni sus índices antiguos. */
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcSignatureDial{
  width:340px;height:340px;max-width:100%;aspect-ratio:1;
  border-radius:50%;position:relative;flex:none;overflow:visible;
  background:radial-gradient(circle at 38% 30%,#fff,#d6e1e3 76%);
  border:15px solid #c2d0d7;
  box-shadow:inset 0 0 20px #6477863b,0 16px 28px #34435030,0 0 0 7px #fefefe;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcSignatureDial .n{
  position:absolute;transform:translate(-50%,-50%);
  font-size:19px;font-weight:700;color:#19303c;line-height:1;
  text-shadow:none;
}
.pcSignatureDial .n12{top:11%;left:50%}
.pcSignatureDial .n1{top:16%;left:70%}
.pcSignatureDial .n2{top:30%;left:84%}
.pcSignatureDial .n3{top:50%;left:90%}
.pcSignatureDial .n4{top:70%;left:84%}
.pcSignatureDial .n5{top:84%;left:70%}
.pcSignatureDial .n6{top:89%;left:50%}
.pcSignatureDial .n7{top:84%;left:30%}
.pcSignatureDial .n8{top:70%;left:16%}
.pcSignatureDial .n9{top:50%;left:10%}
.pcSignatureDial .n10{top:30%;left:16%}
.pcSignatureDial .n11{top:16%;left:30%}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcSignatureHand{
  position:absolute;left:50%;bottom:50%;transform-origin:bottom center;
  background:#253c4e;border-radius:5px;z-index:5;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcSignatureHand.hour{
  width:5px;height:27%;margin-left:-2.5px;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcSignatureHand.minute{
  width:4px;height:36%;margin-left:-2px;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcSignatureHand.second{
  width:2px;height:41%;margin-left:-1px;background:#da9238;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcSignatureHub{
  position:absolute;z-index:6;top:50%;left:50%;transform:translate(-50%,-50%);
  width:15px;height:15px;background:#d99d58;border:2px solid white;border-radius:50%;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletDigital{
  display:grid;justify-items:center;gap:6px;color:#19303c;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletDigital>span:first-child{
  font-size:11px;letter-spacing:2.5px;color:#78949b;font-weight:900;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletDigital strong{
  color:#19303c;text-shadow:none;font-size:clamp(38px,4.2vw,53px);
  font-weight:800;letter-spacing:-2px;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletDigital .pcTabletDate{
  color:#61757b;font-size:11px;text-transform:uppercase;letter-spacing:1px;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcThemeMicro{
  font-size:10px;color:#647881;border:0;background:#e1e8e6;opacity:.85;
  border-radius:100px;padding:6px 13px;letter-spacing:1.7px;text-transform:uppercase;
}
/* Panel derecho: misma jerarquía del HTML de referencia,
   con PIN y teclado reales (no estaban en el prototipo estático). */
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletEntrySide{
  min-width:0;padding:22px 10px 18px;background:transparent;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcMarkCard{
  display:grid;gap:14px;align-content:center;min-height:100%;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcKioskEyebrow{
  font-size:11px;color:#547078;letter-spacing:2px;font-weight:900;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcCompanyFace{min-height:62px;gap:12px}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcCompanyFace h2{
  font-size:clamp(31px,3.5vw,49px);line-height:1.07;
  font-weight:830;letter-spacing:-1.4px;color:#19303c;overflow-wrap:anywhere;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcCompanyFace #pcLogo{
  max-width:86px;width:86px;max-height:70px;border-radius:12px;background:#fff;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletEntrySide label{
  color:#506975;font-size:11px;letter-spacing:1px;text-transform:uppercase;
  font-weight:850;display:grid;gap:7px;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletEntrySide :is(select,input){
  width:100%;min-height:58px;border-radius:15px;border:1px solid #d2dedb;
  box-shadow:0 8px 14px #334d4c0c;background:white;color:#19303c;
  padding:12px 16px;font-size:17px;letter-spacing:normal;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletEntrySide input::placeholder{color:#8b9da2}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcPinField{grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcPinClear{
  color:#244755;background:#f6f8f5;border:1px solid #d2dedb;
  border-radius:13px;min-height:58px;font-size:12px;letter-spacing:.7px;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcKeypad{
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));
  gap:7px;max-width:none;width:100%;margin:0;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcKeypad button{
  background:#fff;border:1px solid #cfdad7;border-radius:10px;color:#274350;
  min-width:0;min-height:46px;font-size:17px;box-shadow:0 2px 5px #23353c13;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcKeypad button[data-pc-key]{
  font-size:11px;background:#edf1ee;color:#26444c;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcButtons{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;
  grid-template-areas:"entrada comida" "regreso salida";
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcButtons button[data-pc-action="entry"]{grid-area:entrada}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcButtons button[data-pc-action="meal_out"]{grid-area:comida}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcButtons button[data-pc-action="meal_return"]{grid-area:regreso}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcButtons button[data-pc-action="exit"]{grid-area:salida}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcButtons button{
  min-height:64px;display:flex;justify-content:center;gap:10px;align-items:center;
  border:0;border-radius:16px;padding:9px 10px;
  color:#fff;box-shadow:0 5px 11px #0b263219;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcButtons button strong{font-size:14px}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcButtons button small{display:none}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcButtons button .pcButtonSymbol{font-size:25px}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcButtons button[data-pc-action="entry"]{background:#14815d}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcButtons button[data-pc-action="exit"]{background:#bf4660}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcButtons button[data-pc-action="meal_out"]{background:#bd791d}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcButtons button[data-pc-action="meal_return"]{background:#1778ba}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcButtons button:disabled{
  opacity:.56;filter:none;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcStatus{
  color:#28564e;background:#ecf5f1;border:1px solid #c1dcd2;border-left:4px solid #249172;
  border-radius:13px;padding:9px 12px;font-size:12px;line-height:1.35;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcQueueBar{
  border-top:1px solid #d4ddda;gap:8px;padding-top:10px;
}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] #pcPending{color:#587179;font-size:11px}
html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcQueueBar .outline{
  color:#27444a;background:#fff;border:1px solid #cad8d2;min-height:40px;
}
/* Distribución adaptable: una sola esfera completa y todos los controles. */
@media(max-width:1140px){
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletMain{
   grid-template-columns:minmax(0,50fr) minmax(0,50fr);gap:18px;padding:22px 24px;
 }
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletClockSide{min-height:650px;padding:20px 12px}
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcSignatureDial{width:min(30vw,310px);height:auto}
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletEntrySide{padding:13px 0}
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcKeypad{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media(max-width:850px){
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletMain{
   display:flex;flex-direction:column;padding:18px;gap:18px;
 }
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletTop{
   min-height:90px;padding:15px 22px;
 }
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletClockSide{
   min-height:420px;order:0;padding:26px 12px;max-width:none;
 }
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcClockFace{display:flex;gap:16px}
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcSignatureDial{width:min(48vw,285px);height:auto}
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletEntrySide{
   display:block;width:100%;order:1;padding:10px 7px;
 }
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcMarkCard{display:grid}
}
@media(max-width:530px){
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .main{padding:0 6px 28px}
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletTop{
   padding:13px 16px;min-height:79px;gap:10px;
 }
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletIdentity img{width:48px;height:48px;border-radius:13px}
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletIdentity strong{font-size:20px}
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletIdentity span{font-size:9px}
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletCaption{font-size:9px;letter-spacing:0}
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletMain{padding:14px;gap:11px}
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletClockSide{
   min-height:0;padding:26px 10px 19px;border-radius:24px;
 }
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcSignatureDial{
   width:min(61vw,255px);height:auto;border-width:12px;
 }
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcSignatureDial .n{font-size:clamp(12px,3.5vw,16px)}
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletDigital strong{font-size:39px}
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcCompanyFace h2{font-size:clamp(29px,8vw,42px)}
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcTabletEntrySide{padding:7px 0}
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcKeypad{grid-template-columns:repeat(3,minmax(0,1fr))}
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcButtons button{min-height:60px;padding:6px 5px;gap:6px}
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcButtons button strong{font-size:11px}
 html[data-pc-theme="signature"] body[data-pc-mode="terminal"] .pcButtons button .pcButtonSymbol{font-size:18px}
}
