/* ==========================================================================
   KEIZAC TECH — panel.css (solo paneles: admin, cliente, empleado)
   Fase 1 del rediseño: doble tema (oscuro/claro) + sidebar responsive.
   Se carga DESPUÉS de styles.css y redefine sus variables bajo body.panel,
   así todos los componentes existentes (panelbox, tbl, kpi, pill, chips…)
   cambian de tema sin tocar su lógica ni su marcado interno.
   ========================================================================== */

/* ---- Tokens: tema oscuro (por defecto) ---- */
body.panel {
  --bg: #17171b;
  --bg-soft: #1b1b20;
  --panel: #212127;
  --panel-2: #2a2a31;
  --line: rgba(244, 247, 251, 0.08);
  --line-strong: rgba(244, 247, 251, 0.15);
  --text: #f2f2f7;
  --muted: #9b9ba6;
  --muted-2: #6d6d78;
  --lila: #a5a6f6;
  --naranja: #e8a87c;
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.28);
  background: var(--bg);
  color: var(--text);
}

/* ---- Tokens: tema claro ---- */
body.panel[data-theme="light"] {
  --bg: #f6f6f8;
  --bg-soft: #efeff3;
  --panel: #ffffff;
  --panel-2: #f3f3f7;
  --line: rgba(23, 23, 35, 0.09);
  --line-strong: rgba(23, 23, 35, 0.18);
  --text: #1c1c24;
  --muted: #5c5c6b;
  --muted-2: #8e8e9c;
  --lila: #7678e8;
  --naranja: #d98a55;
  --blue-ghost: rgba(12, 123, 235, 0.08);
  --shadow-card: 0 2px 12px rgba(23, 23, 35, 0.07);
}
body.panel[data-theme="light"] .form-msg.is-error { color: #c23a3d; }
body.panel[data-theme="light"] .pill--err { color: #c23a3d; }

/* transición suave al cambiar de tema */
body.panel, body.panel .panelbox, body.panel .kpi, body.panel .sbar,
body.panel .tbl td, body.panel .tbl th, body.panel .chip {
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

/* ---- Layout general: sidebar + contenido ---- */
.pwrap { display: flex; min-height: 100vh; min-height: 100svh; }

.sbar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  z-index: 60;
  overflow-y: auto;
}
.pmain {
  flex: 1;
  margin-left: 248px;
  padding: 26px clamp(16px, 3vw, 40px) 70px;
  min-width: 0;
}

/* ---- Marca ---- */
.sbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.sbar__brand img { width: 34px; height: 34px; }
.sbar__brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: 0.02em;
}
.sbar__brand em { font-style: normal; color: var(--blue-bright); }

/* ---- Navegación ---- */
.sbar__nav { display: grid; gap: 3px; }
.sbar__nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 160ms ease, background 160ms ease;
}
.sbar__nav a:hover { color: var(--text); background: var(--panel-2); }
.sbar__nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 4px 14px rgba(12, 123, 235, 0.35);
}
.sbar__nav a svg {
  width: 17px; height: 17px; flex: none;
  stroke: currentColor; stroke-width: 1.9; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.sbar__nav .dtabs__count { margin-left: auto; }
.sbar__nav a.is-active .dtabs__count { background: rgba(255, 255, 255, 0.18); border-color: transparent; color: #fff; }

/* ---- Pie de la sidebar: tema, idioma, usuario, salir ---- */
.sbar__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.sbar__utils { display: flex; gap: 8px; }
.sbar__util {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.sbar__util:hover { color: var(--text); border-color: var(--line-strong); }
.sbar__util svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
body.panel .sbar .lang-toggle {
  width: 100%;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 8px 10px;
}
.sbar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  background: var(--panel-2);
}
.sbar__user strong { display: block; font-size: 13px; line-height: 1.25; word-break: break-word; }
.sbar__user .pill { margin-top: 3px; }
.avatar {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  text-transform: uppercase;
}
.sbar__logout {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 160ms ease, border-color 160ms ease;
}
.sbar__logout:hover { color: #ff8080; border-color: rgba(241, 96, 99, 0.4); }
.sbar__logout svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Barra superior (solo móvil) ---- */
.ptop { display: none; }

/* ---- Cabecera del contenido ---- */
.phead { margin-bottom: 22px; }
.phead h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 2.4vw, 28px);
  letter-spacing: -0.02em;
}
.phead p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* ---- Componentes existentes: pulido rounded-2xl ---- */
body.panel .panelbox { border-radius: 18px; box-shadow: var(--shadow-card); }
body.panel .kpi { border-radius: 16px; box-shadow: var(--shadow-card); }
body.panel .dashb { padding: 0; min-height: 0; }
body.panel .dashb .container { max-width: none; padding: 0; }
body.panel .dtabs { display: none; } /* la navegación vive en la sidebar */
body.panel .field input, body.panel .field textarea, body.panel .field select { border-radius: 12px; }
body.panel .btn { border-radius: 12px; }

/* ---- Stat cards (Resumen) ---- */
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 17px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 160ms ease, border-color 160ms ease;
}
.stat:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.stat__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat__icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--lila) 14%, transparent);
  color: var(--lila);
  flex: none;
}
.stat__icon svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.stat__delta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  color: var(--muted-2);
  background: var(--panel-2);
  white-space: nowrap;
}
.stat__delta.is-up { color: var(--green); background: rgba(43, 213, 118, 0.09); border-color: rgba(43, 213, 118, 0.3); }
.stat__delta.is-down { color: var(--red); background: rgba(241, 96, 99, 0.09); border-color: rgba(241, 96, 99, 0.3); }
.stat__value { font-family: var(--font-mono); font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; line-height: 1; }
.stat__label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.stat__meta { font-size: 11.5px; color: var(--muted-2); }

/* ---- Skeleton loaders ---- */
.skel {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: var(--panel-2);
  height: 13px;
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 7%, transparent), transparent);
  animation: skel-slide 1.3s infinite;
}
@keyframes skel-slide { to { transform: translateX(100%); } }
.skel--lg { height: 26px; width: 60%; }
@media (prefers-reduced-motion: reduce) { .skel::after { animation: none; } }

/* ---- Estados vacíos ---- */
.empty { text-align: center; padding: 36px 16px; color: var(--muted-2); }
.empty svg {
  width: 38px; height: 38px;
  stroke: var(--muted-2); stroke-width: 1.4; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.75;
}
.empty p { margin-top: 10px; font-size: 13.5px; line-height: 1.6; max-width: 340px; margin-left: auto; margin-right: auto; }

/* ---- Gráficos ---- */
.chartbox { position: relative; height: 250px; }
.chartbox--donut { height: 220px; }
.dashb__grid--charts { display: grid; gap: 20px; grid-template-columns: 1fr; margin-bottom: 20px; }
@media (min-width: 1024px) { .dashb__grid--charts { grid-template-columns: 1.45fr 0.55fr; align-items: stretch; } }
@media (max-width: 640px) { .chartbox { height: 200px; } .chartbox--donut { height: 190px; } }

/* ---- Mi perfil (Fase 3) ---- */
.pf-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.pf-head .avatar { width: 76px; height: 76px; font-size: 26px; }
.pf-head__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-head input[type="file"] { display: none; }
.pf-email { color: var(--muted); font-size: 13px; margin-top: 4px; word-break: break-all; }

/* ---- Chat de soporte (Fase 4) ---- */
.chat { display: flex; flex-direction: column; height: 420px; }
.chat__msgs {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 2px;
  scroll-behavior: smooth;
}
.chat__bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 14px 14px 14px 4px;
  font-size: 13.5px;
  line-height: 1.45;
  background: var(--panel-2);
  border: 1px solid var(--line);
  align-self: flex-start;
  word-break: break-word;
}
.chat__bubble.is-mine {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
}
.chat__meta { font-size: 10.5px; color: var(--muted-2); margin-top: 4px; }
.chat__bubble.is-mine .chat__meta { color: rgba(255, 255, 255, 0.75); }
.chat__form { display: flex; gap: 8px; margin-top: 12px; }
.chat__form input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13.5px;
}
.chat__form input:focus { outline: none; border-color: var(--blue); }
.chat__day { text-align: center; font-size: 11px; color: var(--muted-2); margin: 4px 0; }
@media (max-width: 640px) { .chat { height: 340px; } }

/* historial expandible de "Mis Automatizaciones" */
.tbl tr.wf-hist > td { background: var(--panel-2); padding: 10px 14px; }
.tbl tr.wf-hist .tbl td, .tbl tr.wf-hist .tbl th { font-size: 12.5px; padding: 6px 10px; }

/* scrim del drawer móvil */
.sbar__scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 55;
  opacity: 0;
  transition: opacity 200ms ease;
}

/* ---- Móvil: drawer ---- */
@media (max-width: 900px) {
  .sbar {
    transform: translateX(-104%);
    transition: transform 220ms cubic-bezier(0.22, 0.8, 0.3, 1);
    width: min(290px, 84vw);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
  }
  body.panel.sbar-open .sbar { transform: translateX(0); }
  body.panel.sbar-open .sbar__scrim { display: block; opacity: 1; }
  .pmain { margin-left: 0; padding: 14px 16px 60px; }
  .ptop {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }
  .ptop__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
  }
  .ptop__burger svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
  .ptop__brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 14.5px; }
  .ptop__brand img { width: 28px; height: 28px; }
  .ptop__brand em { font-style: normal; color: var(--blue-bright); }
  .phead { margin-bottom: 14px; }
}

/* accesibilidad: sin animación si el usuario lo pide */
@media (prefers-reduced-motion: reduce) {
  .sbar, .sbar__scrim { transition: none; }
}

/* ==========================================================================
   Time & Attendance (Fase 5) — empleados, horarios, timecards, IP
   ========================================================================== */

/* barra de herramientas de cada sección: filtros, navegación de semana… */
.tm-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.tm-toolbar .field { margin: 0; min-width: 0; }
.tm-toolbar .field input, .tm-toolbar .field select { min-height: 40px; padding: 6px 12px; font-size: 13px; }
.tm-spacer { flex: 1; }
.tm-note { font-size: 12px; color: var(--muted-2); }
.tm-hide { display: none !important; }

/* navegación de semana / mes: ‹ rango › */
.weeknav { display: inline-flex; align-items: center; gap: 6px; }
.weeknav button {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.weeknav button:hover { border-color: var(--line-strong); }
.weeknav strong {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  padding: 0 6px;
  white-space: nowrap;
}

/* banner rojo "Acceso denegado" (estilo ADP) */
.ipban {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(241, 96, 99, 0.1);
  border: 1px solid rgba(241, 96, 99, 0.5);
  border-left: 4px solid var(--red);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.ipban svg { width: 26px; height: 26px; flex: none; stroke: var(--red); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.ipban strong { display: block; color: var(--red); font-size: 14.5px; margin-bottom: 4px; }
.ipban p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.ipban code { font-family: var(--font-mono); font-size: 12px; color: var(--text); }

/* botón grande de marcaje (pensado para el celular) */
.clockwrap { text-align: center; padding: 8px 0 2px; }
.clocktime { font-family: var(--font-mono); font-size: clamp(30px, 7vw, 40px); font-weight: 500; letter-spacing: 0.02em; }
.clockdate { color: var(--muted); font-size: 13px; margin-bottom: 18px; text-transform: capitalize; }
.clockbtn {
  width: 172px; height: 172px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 10px 34px rgba(12, 123, 235, 0.4);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.clockbtn:hover { transform: translateY(-2px); }
.clockbtn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.clockbtn.is-out { background: linear-gradient(135deg, #f16063, #b93235); box-shadow: 0 10px 34px rgba(241, 96, 99, 0.35); }
.clockbtn svg { width: 30px; height: 30px; stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.clockbtn small { font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; opacity: 0.85; }
.clockstate { margin-top: 16px; font-size: 13px; color: var(--muted); }
.clockstate .pill { margin-left: 6px; }

/* ── Impresión de horarios (B/N, independiente del tema) ── */
#kzPrint { position: fixed; left: -10000px; top: 0; width: 1px; overflow: hidden; }
@media print {
  body.panel > *:not(#kzPrint) { display: none !important; }
  #kzPrint {
    position: static; left: auto; width: auto; overflow: visible;
    color: #000; font-family: Inter, Arial, sans-serif;
  }
  #kzPrint h1 { font-size: 18px; margin: 0 0 4px; color: #000; }
  #kzPrint .kzp-meta { font-size: 11px; color: #000; margin-bottom: 14px; }
  #kzPrint h2 {
    font-size: 13px; margin: 16px 0 6px; padding-bottom: 3px;
    border-bottom: 1px solid #000; color: #000;
  }
  #kzPrint table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
  #kzPrint th, #kzPrint td {
    border: 1px solid #000; padding: 5px 7px; font-size: 11.5px;
    text-align: left; color: #000; vertical-align: top;
  }
  #kzPrint th { background: #eee; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #kzPrint tr, #kzPrint h2 { page-break-inside: avoid; }
  @page { margin: 14mm; }
}

/* chip de turno dentro de cuadrículas y calendarios */
.shiftchip {
  display: block;
  width: 100%;
  text-align: left;
  margin: 2px 0;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(59, 157, 255, 0.35);
  background: rgba(12, 123, 235, 0.13);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.35;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shiftchip small { display: block; font-size: 10px; color: var(--muted); font-family: var(--font-body); }
.shiftchip.is-static { cursor: default; }

/* calendario mensual */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__head {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: center;
  padding: 4px 0;
}
.cal__day {
  min-height: 88px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 5px;
  font-size: 11px;
  overflow: hidden;
}
.cal__day.is-out { opacity: 0.35; }
.cal__day.is-today { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.cal__num { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.cal__more { font-size: 10px; color: var(--muted-2); padding-left: 2px; }
@media (max-width: 700px) {
  .cal { gap: 3px; }
  .cal__day { min-height: 62px; padding: 3px; }
  .shiftchip { font-size: 9.5px; padding: 2px 4px; }
  .shiftchip small { display: none; }
}

/* punto de excepción en celdas */
.exdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-left: 5px; vertical-align: 1px; }

/* modal / hoja inferior (móvil primero) */
.tmodal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}
.tmodal.is-open { display: flex; }
.tmodal__card {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 18px 18px 0 0;
  padding: 20px;
  box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.5);
}
@media (min-width: 641px) {
  .tmodal { align-items: center; padding: 20px; }
  .tmodal__card { border-radius: 18px; }
}
.tmodal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tmodal__head h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.tmodal__close { background: none; border: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.tmodal__close:hover { color: var(--text); }
.tmodal .field { margin-top: 10px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .frow { grid-template-columns: 1fr; } }

/* interruptor (restricción por IP) */
.tswitch { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.tswitch input { position: absolute; opacity: 0; width: 0; height: 0; }
.tswitch__track {
  width: 46px; height: 26px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  transition: background 160ms ease, border-color 160ms ease;
  flex: none;
}
.tswitch__track::after {
  content: "";
  display: block;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--muted);
  margin: 2px;
  transition: transform 160ms ease, background 160ms ease;
}
.tswitch input:checked + .tswitch__track { background: rgba(43, 213, 118, 0.25); border-color: rgba(43, 213, 118, 0.5); }
.tswitch input:checked + .tswitch__track::after { transform: translateX(20px); background: var(--green); }
.tswitch input:focus-visible + .tswitch__track { outline: 2px solid var(--blue); outline-offset: 2px; }

/* avatar chico para tablas */
.avatar--sm { width: 28px; height: 28px; font-size: 11px; }

/* selector de empresa (owner/admin) */
.tm-company { display: flex; align-items: center; gap: 8px; }
.tm-company select {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  max-width: 240px;
}

/* lista de empleados: foto + nombre clicable */
.emplink { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.emplink strong { font-size: 13.5px; }
.emplink span { display: block; font-size: 11.5px; color: var(--muted-2); }

/* resumen semanal del timecard */
.tc-tot { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.tc-tot div { min-width: 110px; }
.tc-tot dt { font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-2); }
.tc-tot dd { font-family: var(--font-mono); font-size: 20px; margin-top: 3px; }
.tc-tot dd.is-ot { color: var(--naranja); }

/* ── matriz de roles y permisos (RBAC) ── */
.pm-cell { text-align: center; }
.pm-cell .tswitch { vertical-align: middle; }
.pm-full { color: var(--muted); font-size: 11px; font-weight: 400; }
.pm-mod td {
  background: var(--panel-2);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.tswitch input:disabled + .tswitch__track { opacity: 0.45; cursor: not-allowed; }

/* ── kiosco de ponchar (pantalla táctil) ── */
.kpad__display {
  font-family: var(--font-mono);
  font-size: 34px;
  text-align: center;
  letter-spacing: 0.08em;
  padding: 14px;
  min-height: 66px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  margin-top: 6px;
  background: var(--panel-2);
}
.kpad__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 320px;
  margin: 14px auto 0;
}
.kpad__key {
  font-size: 22px;
  padding: 16px 0;
  min-height: 58px;
  border-radius: 14px;
  transition: transform 120ms ease, background 120ms ease;
}
.kpad__key--alt { font-size: 18px; }
.kpad__key:active { transform: scale(0.96); }
.kpad__result { margin-top: 14px; min-height: 20px; text-align: center; }
.kpad__ok {
  font-size: 46px;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--green);
}
@media (prefers-reduced-motion: reduce) { .kpad__key:active { transform: none; } }
