
/* assets/css/app.css */

:root {
  --bg-0: #051324;
  --bg-1: #071c33;
  --bg-2: #0c2948;
  --berry: #3b5bdb;
  --berry-2: #4f7cf6;
  --berry-3: #93b4fd;
  --blue: #2563eb;
  --ink: #f0f8ff;
  --ink-soft: #b8aed6;
  --ink-dim: #8d84ab;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-2: rgba(255, 255, 255, 0.2);
  --leaf: #34d399;
  --leaf-bg: rgba(52, 211, 153, 0.14);
  --amber: #fbbf24;
  --amber-ink: #241a02;
  --rose: #fb7185;
  --rose-bg: rgba(251, 113, 133, 0.14);
  --slate: #94a3b8;
  --slate-bg: rgba(148, 163, 184, 0.14);
  --shadow-deep: 0 30px 60px -15px rgba(0, 0, 0, 0.65);
  --glow-berry: 0 0 24px rgba(37, 111, 183, 0.5);
  --grad-berry: linear-gradient(135deg, #1684b8, #2163aa 55%, #174b87);
  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button {
  font-family: inherit;
}
input,
select,
textarea {
  font-family: inherit;
}

/* ============ FONDO 3D NIVEL DIOS: nebulosa azul + aurora + estrellas + cometa + grid ============ */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(
      90% 60% at 50% -10%,
      rgba(37, 99, 235, 0.22) 0%,
      transparent 60%
    ),
    radial-gradient(120% 90% at 50% 0%, #0a2a49 0%, #091d37 38%, #051324 100%);
}
/* ---- Nebulosa azul giratoria ---- */
.nebula {
  position: absolute;
  left: 50%;
  top: -30vmax;
  width: 110vmax;
  height: 110vmax;
  transform: translateX(-50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(37, 111, 183, 0.16) 40deg,
    transparent 90deg,
    rgba(37, 99, 235, 0.2) 150deg,
    transparent 210deg,
    rgba(14, 165, 233, 0.14) 280deg,
    transparent 340deg
  );
  filter: blur(46px);
  animation: nebulaSpin 60s linear infinite;
  will-change: transform;
}
@keyframes nebulaSpin {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}
/* ---- Orbes aurora (ahora dominio azul) ---- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.orb-1 {
  width: 52vmax;
  height: 52vmax;
  left: -16vmax;
  top: -20vmax;
  background: radial-gradient(circle at 35% 35%, #3b82f6, transparent 65%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.orb-2 {
  width: 44vmax;
  height: 44vmax;
  right: -14vmax;
  top: 8vmax;
  background: radial-gradient(circle at 60% 40%, #1d4ed8, transparent 65%);
  animation: drift2 26s ease-in-out infinite alternate;
}
.orb-3 {
  width: 38vmax;
  height: 38vmax;
  left: 22vw;
  bottom: -24vmax;
  background: radial-gradient(circle at 50% 50%, #2563eb, transparent 62%);
  opacity: 0.42;
  animation: drift3 30s ease-in-out infinite alternate;
}
.orb-4 {
  width: 34vmax;
  height: 34vmax;
  right: 6vw;
  bottom: -14vmax;
  background: radial-gradient(circle at 50% 50%, #0ea5e9, transparent 60%);
  opacity: 0.35;
  animation: drift2 24s ease-in-out infinite alternate-reverse;
}
.orb-5 {
  width: 30vmax;
  height: 30vmax;
  left: 2vw;
  top: 22vh;
  background: radial-gradient(circle at 50% 50%, #3386bc, transparent 60%);
  opacity: 0.3;
  animation: drift1 28s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(9vmax, 6vmax) scale(1.15);
  }
}
@keyframes drift2 {
  from {
    transform: translate(0, 0) scale(1.1);
  }
  to {
    transform: translate(-8vmax, 10vmax) scale(0.95);
  }
}
@keyframes drift3 {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-6vmax, -8vmax) scale(1.12);
  }
}
/* ---- Campo de estrellas con parpadeo ---- */
.stars {
  position: absolute;
  inset: 0;
}
.stars i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #dbeafe;
  box-shadow: 0 0 6px 1px rgba(147, 197, 253, 0.9);
  animation: twinkle var(--tw, 3s) ease-in-out var(--twd, 0s) infinite;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}
/* ---- Cometa / estrella fugaz ---- */
.comet {
  position: absolute;
  top: 14%;
  left: -12%;
  width: 130px;
  height: 2px;
  border-radius: 99px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(147, 197, 253, 0.9),
    #fff
  );
  box-shadow: 0 0 12px 2px rgba(37, 111, 183, 0.8);
  opacity: 0;
  transform: rotate(-24deg);
  animation: cometFly 9s linear infinite;
  animation-delay: 2.5s;
}
.comet::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -2.5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px 4px rgba(96, 165, 250, 0.9);
}
@keyframes cometFly {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(-24deg);
  }
  3% {
    opacity: 1;
  }
  14% {
    opacity: 1;
  }
  22% {
    opacity: 0;
    transform: translate(64vw, 26vh) rotate(-24deg);
  }
  100% {
    opacity: 0;
    transform: translate(64vw, 26vh) rotate(-24deg);
  }
}
/* ---- Polvo de estrellas flotante ---- */
.dust {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    #bfdbfe 0%,
    rgba(96, 165, 250, 0.55) 45%,
    transparent 72%
  );
  filter: blur(0.4px);
  animation: rise var(--d, 16s) linear var(--dl, 0s) infinite;
  opacity: 0;
}
@keyframes rise {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  8% {
    opacity: 0.85;
  }
  60% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx, 30px), -108vh) scale(1.15);
  }
}
/* ---- Resplandor del horizonte ---- */
.horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 38%;
  height: 22%;
  pointer-events: none;
  background: radial-gradient(
    60% 100% at 50% 100%,
    rgba(37, 99, 235, 0.35) 0%,
    rgba(14, 165, 233, 0.14) 45%,
    transparent 75%
  );
  filter: blur(14px);
  animation: horizonPulse 7s ease-in-out infinite;
}
@keyframes horizonPulse {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}
/* ---- Grid en perspectiva azul eléctrico con doble brillo ---- */
.grid-floor {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: -6%;
  height: 52%;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.34) 1px, transparent 1px),
    linear-gradient(rgba(37, 111, 183, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 111, 183, 0.16) 1px, transparent 1px);
  background-size:
    56px 56px,
    56px 56px,
    14px 14px,
    14px 14px;
  transform: perspective(620px) rotateX(63deg);
  transform-origin: top center;
  filter: drop-shadow(0 0 10px rgba(37, 111, 183, 0.35));
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 30%,
    black 80%,
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 30%,
    black 80%,
    transparent
  );
  animation: gridmove 3.4s linear infinite;
}
@keyframes gridmove {
  from {
    background-position:
      0 0,
      0 0,
      0 0,
      0 0;
  }
  to {
    background-position:
      0 56px,
      0 56px,
      0 14px,
      0 14px;
  }
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ Arándanos 3D flotantes (esferas CSS puro) ============ */
.berry3d {
  position: fixed;
  z-index: -2;
  pointer-events: none;
  will-change: transform;
}
.berry3d .sphere {
  position: relative;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 28%,
    #dbeafe 0%,
    #60a5fa 26%,
    #2563eb 58%,
    #1e3a8a 100%
  );
  box-shadow:
    inset -10px -14px 26px rgba(0, 0, 0, 0.55),
    inset 6px 8px 18px rgba(255, 255, 255, 0.3),
    0 24px 40px -12px rgba(0, 0, 0, 0.7),
    0 0 34px -6px rgba(37, 111, 183, 0.45);
  animation: berryHue 9s ease-in-out infinite;
}
.berry3d .sphere::before {
  content: "";
  position: absolute;
  left: 16%;
  top: 10%;
  width: 32%;
  height: 20%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.9),
    transparent 70%
  );
  transform: rotate(-18deg);
}
.berry3d .sphere::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: 14%;
  width: 40%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(147, 197, 253, 0.55),
    transparent 70%
  );
  filter: blur(2px);
}
@keyframes berryHue {
  0%,
  100% {
    filter: hue-rotate(0deg) saturate(1);
  }
  50% {
    filter: hue-rotate(-18deg) saturate(1.25);
  }
}
.berry3d .calyx {
  position: absolute;
  left: 50%;
  top: -7%;
  transform: translateX(-50%);
  font-size: 0.9em;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

/* ---------- App shell ---------- */
.app {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

header.top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 16px 14px;
  background: linear-gradient(
    180deg,
    rgba(18, 8, 38, 0.92),
    rgba(18, 8, 38, 0.78)
  );
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}
header.top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(147, 197, 253, 0.7),
    transparent
  );
}
header.top .title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
header.top h1 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff 20%, #93c5fd 55%, #3b82f6 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 12px rgba(37, 111, 183, 0.5));
}
header.top .count-summary {
  font-size: 11.5px;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.date-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}
.date-row button.nav {
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 17px;
  cursor: pointer;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  box-shadow:
    0 6px 14px -6px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform 0.12s ease,
    background 0.15s ease;
}
.date-row button.nav:active {
  transform: scale(0.9);
}
.date-row input[type="date"] {
  flex: 1;
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--ink);
  padding: 9px 10px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  color-scheme: dark;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.date-row .today-btn {
  background: var(--grad-berry);
  color: #fff;
  border: none;
  border-radius: 11px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow:
    0 8px 18px -6px rgba(37, 99, 235, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.12s ease;
}
.date-row .today-btn:active {
  transform: scale(0.94);
}
.date-row button.del-day {
  flex-shrink: 0;
}
.date-row button.del-day.armed {
  background: linear-gradient(135deg, #fb7185, #e11d48);
  border-color: rgba(251, 113, 133, 0.7);
  color: #fff;
  box-shadow: 0 0 18px -2px rgba(251, 113, 133, 0.7);
}

.stats-strip {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  scrollbar-width: none;
}
.stats-strip::-webkit-scrollbar {
  display: none;
}
.stat-chip {
  flex-shrink: 0;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow:
    0 8px 18px -8px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    transform 0.12s ease,
    background 0.15s ease,
    box-shadow 0.2s ease,
    border-color 0.2s;
}
.stat-chip:active {
  transform: scale(0.93);
}
.stat-chip b {
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.stat-chip .ico {
  font-size: 12px;
  opacity: 0.9;
}
.stat-chip.active {
  background: var(--grad-berry);
  border-color: rgba(184, 222, 242, 0.6);
  color: #fff;
  box-shadow:
    0 0 22px rgba(37, 111, 183, 0.55),
    0 10px 22px -8px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ---------- Search ---------- */
.search-wrap {
  padding: 14px 16px 8px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 11px 13px;
  backdrop-filter: blur(14px);
  box-shadow:
    0 10px 24px -10px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.search-box svg {
  flex-shrink: 0;
  opacity: 0.6;
}
.search-box input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 15px;
  color: var(--ink);
}
.search-box input::placeholder {
  color: var(--ink-dim);
}
.filter-row {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar {
  display: none;
}
.search-row {
  display: flex;
  gap: 9px;
  align-items: center;
}
.search-row .search-box {
  flex: 1;
}
.btn-add-person {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: var(--grad-berry);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    0 10px 22px -6px rgba(37, 99, 235, 0.7),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.12s ease;
}
.btn-add-person:active {
  transform: scale(0.9) translateY(2px);
}
.filter-pill {
  flex-shrink: 0;
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
  box-shadow:
    0 6px 14px -6px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.12s ease,
    background 0.15s ease;
}
.filter-pill.active {
  background: var(--grad-berry);
  color: #fff;
  border-color: rgba(184, 222, 242, 0.6);
  box-shadow:
    0 0 18px rgba(37, 111, 183, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.filter-pill:active {
  transform: scale(0.93);
}

/* ---------- List ---------- */
.list {
  padding: 6px 16px 120px;
  flex: 1;
  perspective: 900px;
}
.empty-state {
  text-align: center;
  padding: 70px 20px;
  color: var(--ink-soft);
}
.empty-state .big {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.empty-state .small {
  font-size: 13px;
  line-height: 1.6;
}

.person-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--stroke);
  border-left: 4px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 13px 13px;
  margin-bottom: 10px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 14px 30px -12px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform-style: preserve-3d;
  transition:
    transform 0.18s ease,
    box-shadow 0.25s ease,
    border-color 0.2s;
  will-change: transform;
  content-visibility: auto;
  contain-intrinsic-size: 0 96px;
}
.person-row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(147, 197, 253, 0.16),
    transparent 45%
  );
}
.person-row:hover::before {
  opacity: 1;
}
.person-row:hover {
  border-color: var(--stroke-2);
  box-shadow:
    0 24px 44px -14px rgba(0, 0, 0, 0.75),
    0 0 30px -6px rgba(37, 111, 183, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.person-row.st-presente {
  border-left-color: var(--leaf);
  box-shadow:
    0 14px 30px -12px rgba(0, 0, 0, 0.65),
    0 0 26px -8px rgba(52, 211, 153, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.person-row.st-falta {
  border-left-color: var(--rose);
  box-shadow:
    0 14px 30px -12px rgba(0, 0, 0, 0.65),
    0 0 26px -8px rgba(251, 113, 133, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.person-row.st-permiso,
.person-row.st-descanso,
.person-row.st-vacaciones {
  border-left-color: var(--amber);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #60a5fa, #1d4ed8 65%, #1e3a8a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  box-shadow:
    inset -4px -6px 12px rgba(0, 0, 0, 0.4),
    inset 3px 4px 8px rgba(255, 255, 255, 0.3),
    0 8px 16px -6px rgba(0, 0, 0, 0.6);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.person-info {
  flex: 1;
  min-width: 0;
}
.person-name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.person-meta {
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.person-status {
  flex-shrink: 0;
  text-align: right;
  transform: translateZ(20px);
}
.status-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 8px;
  letter-spacing: 0.03em;
  background: var(--slate-bg);
  color: var(--slate);
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.status-badge.presente {
  background: var(--leaf-bg);
  color: var(--leaf);
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow:
    0 0 14px -2px rgba(52, 211, 153, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.status-badge.falta {
  background: var(--rose-bg);
  color: var(--rose);
  border-color: rgba(251, 113, 133, 0.35);
  box-shadow:
    0 0 14px -2px rgba(251, 113, 133, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.status-badge.permiso,
.status-badge.descanso,
.status-badge.vacaciones {
  background: rgba(251, 191, 36, 0.14);
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.35);
}
.person-labor {
  font-size: 11px;
  color: var(--ink-dim);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

/* ---------- Bottom bar ---------- */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(7, 3, 18, 0.9) 40%);
}
.bottom-bar-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 9px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 -6px 40px -10px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.btn {
  border: none;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink);
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  box-shadow:
    0 10px 20px -8px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition:
    transform 0.12s ease,
    box-shadow 0.2s ease;
}
.btn:active {
  transform: translateY(2px) scale(0.97);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.6);
}
.btn-primary {
  background: var(--grad-berry);
  color: #fff;
  border-color: rgba(184, 222, 242, 0.45);
  box-shadow:
    0 12px 26px -8px rgba(37, 99, 235, 0.7),
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    0 0 22px -4px rgba(37, 111, 183, 0.5);
}
.btn-secondary {
  background: var(--glass-2);
  color: var(--ink);
  flex: 0 0 auto;
}
.btn-cierre {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: var(--amber-ink);
  flex: 0 0 auto;
  border-color: rgba(253, 224, 71, 0.5);
  box-shadow:
    0 12px 26px -8px rgba(251, 191, 36, 0.55),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
}
.bottom-bar .btn {
  font-size: 11px;
  padding: 13px 10px;
}
header.top .btn-secondary {
  padding: 8px 11px;
  font-size: 12px;
  border-radius: 10px;
}

.cierre-box {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  backdrop-filter: blur(8px);
}
.cierre-box b {
  color: var(--ink);
}
.cierre-log {
  margin-top: 8px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(8px);
}
.cierre-log .item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--stroke);
  font-size: 12.5px;
}
.cierre-log .item:last-child {
  border-bottom: none;
}
.cierre-log .item b {
  display: block;
  font-size: 13px;
  color: var(--ink);
}
.cierre-log .item small {
  color: var(--ink-dim);
}
.cierre-log .dl {
  background: var(--grad-berry);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow:
    0 8px 16px -6px rgba(37, 99, 235, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.cierre-badge {
  display: inline-block;
  background: var(--leaf-bg);
  color: var(--leaf);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  margin-left: 6px;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* ---------- Dashboard ---------- */
.dash-section {
  margin-top: 18px;
}
.dash-section:first-child {
  margin-top: 4px;
}
.dash-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  perspective: 700px;
}
.dash-card {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 14px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 14px 30px -12px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform-style: preserve-3d;
  transition:
    transform 0.18s ease,
    box-shadow 0.25s ease;
}
.dash-card:hover {
  box-shadow:
    0 22px 40px -14px rgba(0, 0, 0, 0.7),
    0 0 26px -6px rgba(37, 111, 183, 0.3);
}
.dash-card .n {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #fff, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(37, 111, 183, 0.4));
}
.dash-card .l {
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 3px;
}
.dash-card.wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-resumen-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.dash-resumen-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
}
.dash-resumen-sub {
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 3px;
}
.resp-summary {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 2px 0 2px;
}
.resp-pill {
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 111, 183, 0.15);
  border: 1px solid rgba(37, 111, 183, 0.38);
  color: var(--berry-3);
}
.resp-day {
  margin-top: 16px;
}
.resp-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 2px 8px;
}
.resp-day-head .tag {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--grad-berry);
  color: #fff;
  letter-spacing: 0.03em;
}
.resp-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--stroke);
  border-radius: 13px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  margin-bottom: 7px;
}
.resp-card.actual {
  border-color: rgba(37, 111, 183, 0.6);
  box-shadow: 0 0 18px -6px rgba(37, 111, 183, 0.7);
}
.resp-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke);
  flex-shrink: 0;
}
.resp-info {
  flex: 1;
  min-width: 0;
}
.resp-info b {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}
.resp-info small {
  display: block;
  color: var(--ink-dim);
  font-size: 11.5px;
  margin-top: 2px;
  line-height: 1.4;
}
.resp-card .dl {
  background: var(--grad-berry);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow:
    0 8px 16px -6px rgba(37, 99, 235, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.resp-empty {
  padding: 18px 12px;
  text-align: center;
  color: var(--ink-dim);
  font-size: 12.5px;
  border: 1px dashed var(--stroke);
  border-radius: 13px;
  line-height: 1.6;
}
.dia-bar {
  display: none;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid rgba(37, 111, 183, 0.5);
  background: rgba(37, 111, 183, 0.14);
  color: var(--ink);
  font-weight: 700;
}
.dia-bar.show {
  display: flex;
}
.dia-bar.reabierto {
  border-color: rgba(232, 169, 59, 0.55);
  background: rgba(232, 169, 59, 0.13);
}
.dia-bar .acts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.dia-bar button {
  background: var(--grad-berry);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.dia-bar button.sec {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--stroke);
}
.list.locked .person-row {
  opacity: 0.82;
}
.dash-cerrar-chip {
  background: var(--grad-berry);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow:
    0 10px 20px -6px rgba(37, 99, 235, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.dash-progress {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin: 16px 0 2px;
  border: 1px solid var(--stroke);
}
.dash-progress > div {
  height: 100%;
  background: linear-gradient(90deg, #34d399, #3b82f6);
  border-radius: 99px;
  transition: width 0.4s ease;
  box-shadow: 0 0 14px rgba(37, 111, 183, 0.6);
}
.dash-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.dash-charts > *,
.dash-chart-card {
  min-width: 0;
}
#dashboardContent {
  overflow-x: hidden;
}
/* ---- Graficos propios (sin librerias, siempre se ven) ---- */
.donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.donut-wrap svg {
  width: 100%;
  max-width: 138px;
  height: auto;
  display: block;
}
.leg {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11.5px;
}
.leg-i {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-weight: 700;
}
.leg-i i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}
.leg-i span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leg-i b {
  color: var(--ink);
  font-weight: 800;
}
.vb-cols {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 10px;
  height: 170px;
  padding-top: 4px;
  border-bottom: 1px solid var(--stroke);
}
.vb-col {
  flex: 1;
  max-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.vb-val {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 5px;
}
.vb-bar {
  width: 100%;
  border-radius: 10px 10px 4px 4px;
  transition: height 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow:
    0 0 18px -4px rgba(37, 111, 183, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.vb-lab {
  text-align: center;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-soft);
  margin-top: 7px;
}
.vs-cols {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 8px;
  border-bottom: 1px solid var(--stroke);
}
.vs-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.vs-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.vs-total {
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}
.vs-stack {
  width: 72%;
  max-width: 66px;
  display: flex;
  flex-direction: column-reverse;
  border-radius: 10px 10px 3px 3px;
  overflow: hidden;
  transition: height 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 20px -6px rgba(37, 111, 183, 0.6);
}
.vs-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(9, 11, 30, 0.5);
  min-height: 0;
  overflow: hidden;
}
.vs-stack .vs-seg:last-child {
  border-top: none;
}
.vs-labs {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  margin-top: 7px;
}
.vs-labs span {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-soft);
}
.leg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
  font-size: 11.5px;
}
.leg-row .leg-i {
  width: auto;
}
.dash-chart-card {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 13px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 14px 30px -12px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.dash-chart-card .t {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-dim);
  margin-bottom: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dash-chart-card canvas {
  max-height: 150px;
}
.dl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}
.dl-card {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 13px;
}
.dl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ink);
}
.dl-head .n {
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(37, 111, 183, 0.16);
  border: 1px solid rgba(37, 111, 183, 0.38);
  color: var(--berry-3);
}
.dl-row {
  display: grid;
  grid-template-columns: 112px 1fr 30px;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  margin: 7px 0;
}
.dl-row .lb {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-soft);
  font-weight: 700;
}
.dl-row .ct {
  text-align: right;
  font-weight: 800;
  color: var(--ink);
}
.dl-bar {
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.dl-bar > div {
  height: 100%;
  border-radius: 99px;
}
.dl-vacio {
  font-size: 12px;
  color: var(--ink-dim);
  padding: 2px 0 4px;
}

/* ---------- Modal (registro) 3D ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(3, 16, 31, 0.6);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  perspective: 1100px;
}
.overlay.open {
  display: flex;
  animation: overlayIn 0.2s ease-out;
}
@keyframes overlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.sheet {
  position: relative;
  background: linear-gradient(170deg, #221242 0%, #0a213a 60%, #100722 100%);
  width: 100%;
  max-width: 720px;
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(147, 197, 253, 0.25);
  border-bottom: none;
  padding: 18px 18px calc(20px + env(safe-area-inset-bottom));
  max-height: 88vh;
  overflow-y: auto;
  box-shadow:
    0 -30px 80px -20px rgba(37, 99, 235, 0.4),
    0 -10px 50px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation: sheetup 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  transform-style: preserve-3d;
}
.sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(184, 222, 242, 0.8),
    transparent
  );
}
@keyframes sheetup {
  from {
    transform: translateY(40px) rotateX(8deg);
    opacity: 0;
  }
  to {
    transform: translateY(0) rotateX(0);
    opacity: 1;
  }
}
.sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  margin: 0 auto 14px;
}
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}
.sheet-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(120deg, #fff, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sheet-meta {
  font-size: 13px;
  color: var(--ink-dim);
  margin-top: 3px;
}
.sheet-close {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 6px 11px;
  box-shadow:
    0 6px 14px -6px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.field-group {
  margin-top: 20px;
}
.field-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-dim);
  margin-bottom: 9px;
  letter-spacing: 0.5px;
}
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  perspective: 500px;
}
.status-opt {
  border: 1.5px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  background: var(--glass);
  backdrop-filter: blur(8px);
  box-shadow:
    0 8px 18px -8px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    transform 0.12s ease,
    border-color 0.15s,
    box-shadow 0.2s;
}
.status-opt:active {
  transform: scale(0.95);
}
.status-opt.sel-presente {
  border-color: rgba(52, 211, 153, 0.7);
  background: var(--leaf-bg);
  color: var(--leaf);
  box-shadow:
    0 0 20px -4px rgba(52, 211, 153, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.status-opt.sel-falta {
  border-color: rgba(251, 113, 133, 0.7);
  background: var(--rose-bg);
  color: var(--rose);
  box-shadow:
    0 0 20px -4px rgba(251, 113, 133, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.status-opt.sel-permiso,
.status-opt.sel-descanso,
.status-opt.sel-vacaciones {
  border-color: rgba(251, 191, 36, 0.7);
  background: rgba(251, 191, 36, 0.14);
  color: var(--amber);
  box-shadow:
    0 0 20px -4px rgba(251, 191, 36, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.status-opt.sel-turno {
  border-color: rgba(37, 111, 183, 0.8);
  background: rgba(37, 111, 183, 0.16);
  color: var(--berry-3);
  box-shadow:
    0 0 20px -4px rgba(37, 111, 183, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.turno-hint-auto {
  display: inline-block;
  margin-left: 7px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--berry-3);
  background: rgba(37, 111, 183, 0.15);
  border: 1px solid rgba(37, 111, 183, 0.35);
  padding: 2px 7px;
  border-radius: 6px;
  vertical-align: middle;
  letter-spacing: 0.03em;
}
.person-turno {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-top: 3px;
}
.linea-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.linea-opt {
  flex: 1 1 calc(25% - 6px);
  min-width: 70px;
  text-align: center;
  border: 1.5px solid var(--stroke);
  border-radius: 22px;
  padding: 9px 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-soft);
  cursor: pointer;
  background: var(--glass);
  box-shadow:
    0 6px 14px -6px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.12s ease,
    box-shadow 0.2s,
    border-color 0.15s;
}
.linea-opt:active {
  transform: scale(0.93);
}
.linea-opt.sel {
  border-color: rgba(251, 191, 36, 0.7);
  background: rgba(251, 191, 36, 0.14);
  color: var(--amber);
  box-shadow: 0 0 18px -4px rgba(251, 191, 36, 0.5);
}
.person-linea {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--amber);
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 3px;
}
.cena-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.cena-opt {
  text-align: center;
  border: 1.5px solid var(--stroke);
  border-radius: 13px;
  padding: 11px 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
  cursor: pointer;
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition:
    transform 0.12s ease,
    box-shadow 0.2s,
    border-color 0.15s;
  box-shadow:
    0 6px 14px -6px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.cena-opt:active {
  transform: scale(0.95);
}
.cena-opt.sel {
  border-color: rgba(52, 211, 153, 0.7);
  background: var(--leaf-bg);
  color: var(--leaf);
  box-shadow: 0 0 18px -4px rgba(52, 211, 153, 0.5);
}
.cena-opt.sel.no {
  border-color: rgba(251, 113, 133, 0.7);
  background: var(--rose-bg);
  color: var(--rose);
  box-shadow: 0 0 18px -4px rgba(251, 113, 133, 0.5);
}
.person-cena {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--leaf);
  background: var(--leaf-bg);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 3px;
  margin-left: 6px;
}

.input,
select.input {
  width: 100%;
  border: 1.5px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--glass);
  backdrop-filter: blur(8px);
  outline: none;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  transition:
    border-color 0.15s,
    box-shadow 0.2s;
}
.input:focus {
  border-color: rgba(37, 111, 183, 0.8);
  box-shadow:
    0 0 0 3px rgba(37, 111, 183, 0.2),
    inset 0 2px 8px rgba(0, 0, 0, 0.3);
}
.input::placeholder {
  color: var(--ink-dim);
}
textarea.input {
  resize: vertical;
  min-height: 64px;
}
.input[readonly] {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-dim);
  cursor: not-allowed;
}
datalist option {
  color: #1b2420;
}
.row2 {
  display: flex;
  gap: 10px;
}
.row2 > * {
  flex: 1;
}

.sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.sheet-actions .btn-save {
  background: var(--grad-berry);
  color: #fff;
  flex: 1;
  border-color: rgba(184, 222, 242, 0.45);
  box-shadow:
    0 14px 28px -8px rgba(37, 99, 235, 0.7),
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    0 0 24px -4px rgba(37, 111, 183, 0.5);
}
.sheet-actions .btn-clear {
  background: var(--rose-bg);
  color: var(--rose);
  flex: 0 0 auto;
  padding: 12px 16px;
  border-color: rgba(251, 113, 133, 0.4);
}

/* ---------- Import overlay ---------- */
.import-panel {
  padding: 20px 4px 4px;
}
.import-panel h2 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 7px;
}
.import-panel p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 15px;
}
.dropzone {
  border: 1.5px dashed rgba(37, 111, 183, 0.5);
  border-radius: 14px;
  padding: 24px 14px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13.5px;
  cursor: pointer;
  background: rgba(37, 111, 183, 0.08);
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.15s;
}
.dropzone:hover {
  border-color: rgba(147, 197, 253, 0.8);
  background: rgba(37, 111, 183, 0.14);
}
.dropzone.drag {
  border-color: var(--amber);
  background: rgba(251, 191, 36, 0.12);
  transform: scale(1.02);
}
.col-hint {
  font-size: 11.5px;
  color: var(--ink-dim);
  margin-top: 12px;
  line-height: 1.7;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 11px 13px;
}
.col-hint code {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--stroke);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 11px;
  color: var(--berry-3);
}

/* ---------- Menu overlay ---------- */
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 6px;
  border-bottom: 1px solid var(--stroke);
  cursor: pointer;
  font-size: 14.5px;
  color: var(--ink);
  transition: padding-left 0.15s ease;
}
.menu-item:last-child {
  border-bottom: none;
}
.menu-item .desc {
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 3px;
}
.menu-item span.arrow {
  color: var(--ink-dim);
  font-size: 18px;
}

.toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(184, 222, 242, 0.5);
  box-shadow:
    0 16px 34px -8px rgba(37, 99, 235, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition:
    opacity 0.25s,
    transform 0.25s;
  max-width: 86vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}

.field-hint {
  font-size: 11.5px;
  color: var(--ink-dim);
  margin-top: 7px;
  line-height: 1.5;
}
.person-func {
  font-size: 12px;
  font-weight: 700;
  color: var(--berry-3);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mode-row {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0 0 15px;
}
.mode-opt {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border: 1.5px solid var(--stroke);
  border-radius: 12px;
  padding: 11px 13px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.mode-opt input {
  margin-top: 3px;
  accent-color: var(--berry-2);
  flex-shrink: 0;
}
.mode-opt small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 3px;
  line-height: 1.5;
}
.mode-opt:has(input:checked) {
  border-color: rgba(37, 111, 183, 0.7);
  background: rgba(37, 111, 183, 0.12);
}
.import-result {
  display: none;
  margin: 12px 0 0;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid transparent;
}
.import-result.show {
  display: block;
}
.import-result.err {
  background: var(--rose-bg);
  color: var(--rose);
  border-color: rgba(251, 113, 133, 0.4);
}
.import-result.ok {
  background: var(--leaf-bg);
  color: var(--leaf);
  border-color: rgba(52, 211, 153, 0.4);
}

@media (max-width: 380px) {
  header.top h1 {
    font-size: 17px;
  }
}

/* ---------- Responsive: tablet / desktop ---------- */
@media (min-width: 600px) {
  .app {
    max-width: 680px;
  }
  .bottom-bar {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
    max-width: 680px;
  }
  .bottom-bar-inner {
    max-width: 680px;
  }
  .search-wrap {
    padding-left: 24px;
    padding-right: 24px;
  }
  .list {
    padding: 6px 24px 120px;
  }
  .stats-strip {
    padding-right: 4px;
  }
  .overlay {
    align-items: center;
    padding: 24px;
  }
  .sheet {
    max-width: 480px;
    border-radius: 22px;
    max-height: 85vh;
    border-bottom: 1px solid rgba(147, 197, 253, 0.25);
    box-shadow:
      0 40px 90px -20px rgba(0, 0, 0, 0.85),
      0 0 60px -10px rgba(37, 99, 235, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
    animation: sheetpop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.25);
  }
  @keyframes sheetpop {
    from {
      transform: translateY(30px) scale(0.94) rotateX(6deg);
      opacity: 0;
    }
    to {
      transform: translateY(0) scale(1) rotateX(0);
      opacity: 1;
    }
  }
  .sheet-handle {
    display: none;
  }
  .person-row:hover,
  .dash-card:hover {
    transform: translateY(-3px);
  }
}

@keyframes floaty1 {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-22px) rotate(5deg);
  }
}
@keyframes floaty2 {
  0%,
  100% {
    transform: translateY(0) rotate(6deg);
  }
  50% {
    transform: translateY(18px) rotate(-6deg);
  }
}

/* ============ MODO TRANQUILO: menos movimiento ============ */
.nebula {
  animation-duration: 180s;
}
.orb {
  animation-duration: 70s !important;
}
.comet {
  display: none;
}
.dust {
  animation-duration: 45s !important;
  opacity: 0.6;
}
.stars i {
  animation-duration: 8s !important;
}
.grid-floor {
  animation-duration: 22s;
}
.berry3d {
  animation-duration: 26s !important;
}
.person-row {
  animation: rowIn 0.28s ease backwards;
  animation-delay: calc(var(--i, 0) * 10ms);
}
@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Solo las primeras filas entran animadas; el resto aparece directo (listas largas no se quedan calculando delays) */
.person-row:nth-child(n + 25) {
  animation: none;
}
.person-row::after {
  display: none;
}
.person-row:hover,
.dash-card:hover {
  transform: none;
}
.person-status {
  transform: none;
}
header.top h1 {
  animation: none;
}
@keyframes sheetup {
  from {
    transform: translateY(18px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes sheetpop {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.stat-chip b.tick {
  animation: none;
}
.tilting {
  transition: transform 0.25s ease !important;
}

/* Estabilidad para celulares y pantallas táctiles */
.app button,
.app [role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: none), (pointer: coarse) {
  .app button:active,
  .app .btn:active,
  .app .stat-chip:active,
  .app .filter-pill:active,
  .app .status-opt:active,
  .app .linea-opt:active,
  .app .cena-opt:active,
  .app .btn-add-person:active {
    transform: none !important;
  }

  .app .tilting {
    transform: none !important;
  }

  .app .ripple {
    display: none !important;
  }

  .bottom-bar-inner {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: stretch;
  }

  .bottom-bar .btn {
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    transform: none !important;
  }
}

@media (max-width: 390px) {
  .bottom-bar-inner {
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .bottom-bar .btn {
    font-size: 9.5px;
    padding: 12px 8px;
    letter-spacing: 0.2px;
  }
}

/* ============ RENDIMIENTO EN CELULAR ============
   El desenfoque (blur) que se ve bonito en escritorio es lo que más
   ralentiza a un iPhone cuando hay muchas filas en pantalla: el celular
   tiene que desenfocar cada tarjeta por separado mientras haces scroll.
   Aquí se apaga ese desenfoque solo en pantallas táctiles y se aligera
   el fondo animado, sin cambiar cómo se ve en una computadora. */
@media (hover: none), (pointer: coarse) {
  .person-row,
  .stat-chip,
  .filter-pill,
  .resp-card,
  .dl-card,
  .cierre-box,
  .cierre-log,
  .dia-bar,
  .glass,
  input[type="text"],
  input[type="date"],
  select,
  textarea {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .person-row {
    background: linear-gradient(
      160deg,
      rgba(24, 22, 54, 0.94),
      rgba(18, 17, 46, 0.94)
    );
    will-change: auto;
  }
  .stat-chip,
  .filter-pill,
  .resp-card,
  .dl-card {
    background: rgba(24, 22, 54, 0.92);
  }
  header.top,
  .bottom-bar,
  .sheet {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  /* Fondo: mismos colores, menos costo de GPU */
  .nebula {
    filter: blur(26px);
    animation-duration: 240s;
  }
  .orb {
    filter: blur(38px);
    will-change: auto;
  }
  .orb-4,
  .orb-5 {
    display: none;
  }
  .berry3d {
    will-change: auto;
  }
  .berry-extra {
    display: none;
  }
  .grid-floor {
    animation-duration: 32s;
  }
  .dust {
    display: none;
  }
}

/* V7.2: controles estables en cualquier dispositivo y navegador */
.app button,
.app .btn,
.app .stat-chip,
.app .filter-pill,
.app .status-opt,
.app .linea-opt,
.app .cena-opt,
.app .btn-add-person,
.app .menu-item,
.app .dash-cerrar-chip {
  transform: none !important;
  transform-style: flat !important;
  perspective: none !important;
  contain: layout style;
}

.stats-strip {
  align-items: center;
  min-height: 45px;
}

.stat-chip {
  width: auto !important;
  height: auto !important;
  min-width: max-content;
  min-height: 35px;
  max-height: 40px;
}

.bottom-bar-inner {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(112px, auto) minmax(
      140px,
      1fr
    );
}

@media (max-width: 599px) {
  .bottom-bar-inner {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.05fr) minmax(0, 1.55fr);
  }
}

/* Safari amplía toda la página al enfocar campos con texto menor a 16 px. */
@media (max-width: 599px), (pointer: coarse) {
  .search-box input,
  .date-row input[type="date"],
  .input,
  select.input,
  input[type="text"],
  input[type="search"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px;
  }
}

/* Incluye botones de las ventanas y de la introducción, fuera de .app. */
button,
[role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 3, 18, 0.75);
}
.login-card {
  width: min(100%, 390px);
  padding: 28px;
  border: 1px solid var(--stroke-2);
  border-radius: 22px;
  background: #18112f;
  box-shadow: var(--shadow-deep);
  display: grid;
  gap: 14px;
}
.login-symbol {
  font-size: 36px;
  text-align: center;
}
.login-card h1 {
  font: 800 21px var(--font-display);
  text-align: center;
  margin: 0;
}
.login-card p {
  margin: 0 0 8px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
}
.login-card label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 13px;
}
.login-card input {
  width: 100%;
  padding: 13px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 11px;
  color: white;
  font: inherit;
  font-size: 16px;
}

.pw-wrap {
  position: relative;
  display: block;
}
.pw-wrap input {
  padding-right: 50px !important;
}
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%) !important;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #9fd0ea;
  cursor: pointer;
}
.pw-toggle:hover {
  color: #fff;
  background: rgba(123, 195, 230, 0.15);
}
.pw-toggle:focus-visible {
  outline: 2px solid #7dd9f1;
  outline-offset: 1px;
}
.pw-toggle .pw-shut {
  display: none;
}
.pw-toggle[aria-pressed="true"] .pw-open {
  display: none;
}
.pw-toggle[aria-pressed="true"] .pw-shut {
  display: block;
}
.login-card .btn {
  min-height: 45px;
}
.error {
  color: var(--rose);
  min-height: 18px;
  font-size: 13px;
}
.session-bar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 11px;
  margin: 12px 0 8px;
}
.stats-strip {
  display: flex;
  overflow-x: auto;
  gap: 7px;
  scrollbar-width: none;
}
.stat-chip {
  pointer-events: none;
}
.session-bar {
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0 12px;
}
.session-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 13px 9px 9px;
  border: 1px solid rgba(147, 180, 253, 0.38);
  border-radius: 13px;
  background: rgba(45, 68, 138, 0.22);
}
.session-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #40baf2, #5346de);
  color: white;
  font-weight: 900;
  font-size: 12px;
}
.session-identity div {
  min-width: 0;
}
.session-identity small {
  display: block;
  color: #a9c5ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.session-identity strong {
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.voice-operator {
  margin-top: 12px;
  color: #b9d4ff;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.welcome-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: 13px 15px;
  border: 1px solid rgba(83, 198, 245, 0.65);
  border-radius: 15px;
  background: linear-gradient(
    110deg,
    rgba(19, 121, 179, 0.32),
    rgba(89, 64, 213, 0.26)
  );
  box-shadow: 0 9px 28px rgba(18, 60, 162, 0.15);
  animation: welcomeIn 0.4s ease-out;
}
.welcome-spark {
  color: #79d9ff;
  font-size: 23px;
}
.welcome-banner div {
  flex: 1;
  min-width: 0;
}
.welcome-banner strong {
  display: block;
  color: white;
  font: 800 15px var(--font-display);
  overflow-wrap: anywhere;
}
.welcome-banner p {
  margin: 3px 0 0;
  color: #d6ecff;
  font-size: 12px;
  line-height: 1.45;
}
.welcome-banner button {
  flex: 0 0 auto;
  border: 1px solid rgba(167, 211, 255, 0.4);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  min-width: 34px;
  height: 34px;
  cursor: pointer;
}
.welcome-banner button:hover {
  background: rgba(255, 255, 255, 0.18);
}
@keyframes welcomeIn {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-banner {
    animation: none;
  }
}
.smart-finder {
  margin: 13px 0 6px;
  padding: 13px;
  border: 1px solid rgba(104, 176, 247, 0.36);
  border-radius: 15px;
  background: rgba(30, 47, 100, 0.24);
}
.smart-finder label {
  display: block;
  color: #c3dfff;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 9px;
}
.smart-finder .search-row {
  display: flex;
  gap: 8px;
}
.smart-finder .input {
  min-width: 0;
  flex: 1;
}
.smart-finder .btn {
  flex: 0 0 auto;
  min-height: 42px;
}
.smart-results {
  margin-top: 10px;
  color: #cbd5ef;
  font-size: 12px;
  line-height: 1.5;
}
.smart-result {
  width: 100%;
  display: block;
  text-align: left;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
}
.smart-result strong,
.smart-result span {
  display: block;
}
.smart-result span {
  color: #c4d4f2;
  font-size: 11px;
  margin-top: 3px;
}
.smart-result:hover {
  border-color: #69c6fa;
  background: rgba(47, 114, 188, 0.19);
}
@media (max-width: 430px) {
  .smart-finder .search-row {
    flex-direction: column;
  }
  .smart-finder .btn {
    width: 100%;
  }
}
.jarvis-launch {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 39;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #82d7ff;
  border-radius: 24px;
  background: linear-gradient(120deg, #147bc3, #5341d8);
  color: #fff;
  box-shadow: 0 8px 25px rgba(25, 105, 215, 0.55);
  font-weight: 800;
  cursor: pointer;
}
.jarvis-panel {
  position: fixed;
  right: 18px;
  bottom: 143px;
  z-index: 41;
  width: min(390px, calc(100vw - 28px));
  max-height: min(560px, calc(100dvh - 160px));
  overflow-y: auto;
  padding: 17px;
  border: 1px solid rgba(115, 202, 255, 0.7);
  border-radius: 19px;
  background: #181432;
  box-shadow: 0 22px 60px #080319ee;
  color: #fff;
}
.jarvis-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.jarvis-head strong {
  font: 800 17px var(--font-display);
}
.jarvis-head button {
  border: 1px solid var(--stroke-2);
  border-radius: 9px;
  background: var(--glass);
  color: white;
  min-width: 34px;
  min-height: 34px;
  cursor: pointer;
}
.jarvis-panel p {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.jarvis-reply {
  padding: 13px;
  border: 1px solid rgba(115, 202, 255, 0.35);
  border-radius: 12px;
  background: rgba(39, 96, 165, 0.17);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.jarvis-form {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.jarvis-form .input {
  min-width: 0;
  flex: 1;
}
.jarvis-form .btn {
  padding: 8px;
  min-width: 40px;
  font-size: 12px;
}
@media (max-width: 550px) {
  .jarvis-launch {
    right: 12px;
    bottom: 79px;
  }
  .jarvis-panel {
    right: 10px;
    bottom: 133px;
  }
}
.assistant-live {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 11px 12px;
  border: 1px solid rgba(91, 194, 246, 0.55);
  border-radius: 14px;
  background: linear-gradient(
    110deg,
    rgba(22, 72, 120, 0.32),
    rgba(54, 42, 113, 0.32)
  );
  color: #fff;
}
.assistant-pulse {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2750a8;
  color: #9ee9ff;
  box-shadow: 0 0 17px rgba(74, 173, 251, 0.35);
}
.assistant-live-copy {
  flex: 1;
  min-width: 0;
}
.assistant-live-copy strong {
  display: block;
  font-size: 12px;
}
.assistant-live-copy small {
  font-weight: 600;
  color: #a8cefb;
  margin-left: 5px;
}
.assistant-live-copy p {
  font-size: 12px;
  line-height: 1.45;
  color: #d9e8ff;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.assistant-live button {
  border: 1px solid rgba(166, 205, 249, 0.45);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  min-height: 36px;
  padding: 5px 9px;
  font-weight: 700;
  cursor: pointer;
}
.assistant-live button[aria-pressed="true"] {
  border-color: #39dfa3;
  color: #aeffe1;
  box-shadow: 0 0 12px rgba(57, 223, 163, 0.3);
}
.assistant-ask {
  padding: 12px;
  margin: 0 0 12px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(22, 16, 47, 0.9);
}
.assistant-ask form {
  display: flex;
  gap: 8px;
}
.assistant-ask .input {
  min-width: 0;
  flex: 1;
}
.assistant-ask .btn {
  min-height: 42px;
}
@media (max-width: 500px) {
  .assistant-live {
    flex-wrap: wrap;
  }
  .assistant-live-copy {
    flex-basis: calc(100% - 48px);
  }
  .assistant-ask form {
    flex-direction: column;
  }
}
/* Full-width layouts: single column on phones, two on tablets, three on desktop. */
.app {
  width: 100%;
  max-width: 1440px;
  box-sizing: border-box;
}
header.top {
  position: relative;
}
.app .list {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.bottom-bar {
  width: 100%;
  max-width: none;
  left: 0;
  right: 0;
  transform: none;
  box-sizing: border-box;
}
.bottom-bar-inner {
  width: 100%;
  max-width: 1408px;
  box-sizing: border-box;
}
@media (min-width: 700px) {
  .app {
    max-width: 1440px;
  }
  header.top {
    padding: 22px 28px;
  }
  .staff-tabs {
    padding: 18px 28px 4px;
  }
  .search-wrap {
    padding: 16px 28px 8px;
    position: relative;
  }
  .app .list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 12px;
    padding: 12px 28px 130px;
  }
  .app .person-row {
    min-width: 0;
    min-height: 94px;
    height: 100%;
    margin: 0;
    box-sizing: border-box;
  }
  .bottom-bar {
    padding-inline: 28px;
  }
  .bottom-bar-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  header.top {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 12px 24px;
  }
  header.top .title-row {
    grid-column: 1;
    grid-row: 1;
  }
  header.top .date-row {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }
  header.top .session-bar {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }
  header.top .assistant-live {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }
  header.top .assistant-ask {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
  }
  header.top .notice-banner {
    grid-column: 1/-1;
  }
  header.top .stats-strip {
    grid-column: 1/-1;
    grid-row: 4;
    flex-wrap: wrap;
    overflow: visible;
  }
  .app .list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 699px) {
  .app {
    max-width: none;
  }
  header.top {
    padding: 14px 12px;
  }
  .staff-tabs {
    padding: 12px 12px 2px;
  }
  .search-wrap {
    padding: 12px 12px 7px;
  }
  .app .list {
    display: block;
    padding: 8px 12px 150px;
  }
  .assistant-live {
    padding: 10px;
    gap: 8px;
  }
  .assistant-live-copy {
    flex-basis: calc(100% - 45px);
  }
  .assistant-live button {
    flex: 1;
  }
  .bottom-bar {
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .bottom-bar-inner {
    max-width: none;
  }
}
.notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0;
  padding: 12px 13px;
  border: 1px solid rgba(251, 191, 36, 0.6);
  border-radius: 12px;
  background: #382421;
  color: #fff0d2;
  font-size: 13px;
  line-height: 1.45;
}
.notice-banner span {
  flex: 1;
}
.notice-banner button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
}
.staff-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px 2px;
  scrollbar-width: none;
}
.staff-tab {
  white-space: nowrap;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: 11px;
  background: var(--glass);
  color: var(--ink-soft);
  font: 600 12px var(--font-body);
  cursor: pointer;
}
.staff-tab.active {
  border-color: var(--accent, #a28cff);
  color: var(--ink);
  background: rgba(162, 140, 255, 0.18);
}
.staff-tab span {
  margin-left: 4px;
  color: var(--amber);
}
.app .list {
  padding-top: 10px;
  max-width: 1000px;
  width: 100%;
  margin-inline: auto;
}
.app .person-row {
  width: 100%;
  min-height: 80px;
  text-align: left;
}
.person-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.app .person-name {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.app .person-meta,
.app .person-labor {
  display: block;
  max-width: none;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.person-status {
  white-space: nowrap;
  align-self: center;
}
.person-row.dt {
  border-left-color: var(--amber);
  opacity: 0.92;
}
.person-row.dt .status-badge {
  color: var(--amber);
  background: rgba(251, 191, 36, 0.15);
}
.person-row.locked {
  cursor: default;
}
.person-row:hover {
  transform: none !important;
}
.person-row .status-badge {
  display: inline-block;
}
.person-row .person-meta {
  overflow: hidden;
  text-overflow: ellipsis;
}
.person-row.resigned {
  border-left-color: var(--rose);
  opacity: 0.86;
}
.backend-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
}
.backend-actions .btn {
  min-width: 0;
  font-size: 10px;
  padding: 11px 4px;
  white-space: normal;
  transform: none !important;
}
#workerOverlay .sheet,
#periodOverlay .sheet {
  overflow-y: auto;
}
.dt-panel {
  padding: 10px 0;
  color: var(--amber);
  font-size: 12px;
}
.dt-panel button {
  margin-top: 8px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  color: var(--ink);
  border-radius: 8px;
  padding: 7px 12px;
}
.dt-form {
  border-top: 1px solid var(--stroke);
  margin-top: 22px;
  padding-top: 16px;
  display: grid;
  gap: 12px;
}
.dt-form label {
  color: var(--ink-soft);
  font-size: 12px;
}
.dt-save {
  min-height: 43px;
}
.row2 {
  min-width: 0;
}
.row2 > * {
  min-width: 0;
}
.sheet-actions .btn {
  min-width: 0;
}
.resign-actions {
  border-top: 1px solid var(--stroke);
  margin-top: 22px;
  padding-top: 16px;
}
.resign-actions .field-hint {
  margin: 10px 0;
}
.resign-actions button {
  min-height: 42px;
}
.resign-actions .btn {
  width: 100%;
  background: rgba(251, 113, 133, 0.13);
  color: #ffadc0;
  border-color: rgba(251, 113, 133, 0.45);
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}
.resign-actions .btn:hover {
  background: rgba(251, 113, 133, 0.23);
  box-shadow: 0 0 20px rgba(251, 113, 133, 0.15);
}
.restore-actions {
  border-top: 1px solid var(--stroke);
  margin-top: 22px;
  padding-top: 16px;
}
.restore-actions .field-hint {
  margin: 10px 0;
}
.restore-actions .btn {
  width: 100%;
  min-height: 46px;
  border-color: rgba(52, 211, 153, 0.4);
  background: var(--leaf-bg);
  color: var(--leaf);
}
.restore-actions .btn:hover {
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.2);
}
.dt-panel button {
  min-height: 44px;
  padding: 10px 16px;
  border-color: rgba(52, 211, 153, 0.45);
  background: var(--leaf-bg);
  color: var(--leaf);
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}
.dt-panel button:hover {
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.18);
}
.app .status-badge.renunció {
  color: var(--rose);
  background: var(--rose-bg);
}
.input[readonly] {
  cursor: default;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.025);
  border-style: dashed;
}
.field-group small.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--ink-dim);
  font-size: 11px;
}
.sheet button:focus-visible,
.app button:focus-visible,
.input:focus-visible {
  outline: 2px solid #93b4fd;
  outline-offset: 2px;
}
.attendance-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.attendance-choice {
  min-height: 50px;
  border: 1px solid var(--stroke-2);
  border-radius: 13px;
  background: var(--glass);
  color: var(--ink-soft);
  font: 700 14px var(--font-body);
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}
.attendance-choice[aria-pressed="true"][data-status="presente"] {
  border-color: var(--leaf);
  background: var(--leaf-bg);
  color: var(--leaf);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.14);
}
.attendance-choice[aria-pressed="true"][data-status="falta"] {
  border-color: var(--rose);
  background: var(--rose-bg);
  color: var(--rose);
  box-shadow: 0 0 20px rgba(251, 113, 133, 0.14);
}
.form-error {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--rose);
  border-radius: 10px;
  color: var(--rose);
  font-size: 13px;
  background: var(--rose-bg);
  line-height: 1.45;
}
.confirm-sheet {
  max-width: 420px;
}
.confirm-sheet p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}
.confirm-buttons {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.confirm-buttons .btn {
  min-height: 44px;
}
.confirm-buttons .btn-secondary {
  flex: 1;
}
.confirm-sheet .btn.danger {
  background: var(--rose-bg);
  color: var(--rose);
  border-color: var(--rose);
}
.sheet-name {
  overflow-wrap: anywhere;
}
.save-blocked {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(251, 191, 36, 0.6);
  border-radius: 12px;
  color: #ffe2a3;
  background: rgba(251, 191, 36, 0.1);
  font-size: 13px;
  line-height: 1.45;
}
.save-blocked button {
  display: block;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(251, 191, 36, 0.7);
  border-radius: 9px;
  background: rgba(251, 191, 36, 0.22);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.save-blocked button[hidden] {
  display: none;
}
.sheet-actions .btn-save:disabled {
  opacity: 0.45;
  box-shadow: none;
  filter: grayscale(0.7);
  cursor: not-allowed;
}
.sheet-actions .btn-save:not(:disabled):hover {
  filter: brightness(1.16);
}
.line-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.line-options button,
.dinner-options button {
  min-width: 0;
  min-height: 46px;
  padding: 9px 5px;
  border: 1px solid var(--stroke-2);
  border-radius: 12px;
  color: var(--ink-soft);
  background: var(--glass);
  font: 700 12px var(--font-body);
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}
.line-options button:active,
.dinner-options button:active {
  transform: scale(0.97);
}
.line-options button[aria-pressed="true"] {
  border-color: var(--amber);
  background: rgba(251, 191, 36, 0.16);
  color: #ffe2a3;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.17);
}
.dinner-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dinner-options button {
  font-size: 13px;
  min-height: 49px;
}
.dinner-options button[data-dinner="no"][aria-pressed="true"] {
  border-color: var(--rose);
  background: var(--rose-bg);
  color: #ffb9c7;
}
.dinner-options button[data-dinner="si"][aria-pressed="true"] {
  border-color: var(--leaf);
  background: var(--leaf-bg);
  color: #a1f3cf;
}
.line-options button:hover,
.dinner-options button:hover {
  filter: brightness(1.13);
}
.line-options button:focus-visible,
.dinner-options button:focus-visible {
  outline: 2px solid #93b4fd;
  outline-offset: 2px;
}
@media (max-width: 410px) {
  .line-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 599px), (pointer: coarse) {
  .input,
  .search-box input,
  .date-row input,
  .login-card input,
  select,
  textarea {
    font-size: 16px !important;
  }
  .date-row {
    flex-wrap: wrap;
  }
  .app button,
  .sheet button {
    transform: none !important;
  }
}
#scanVideo {
  display: block;
  width: 100%;
  max-height: 48vh;
  margin: 15px 0 12px;
  border-radius: 14px;
  background: #080714;
  object-fit: cover;
}
#captureScan {
  width: 100%;
  min-height: 45px;
}
#scanDniForm {
  margin-top: 18px;
}
#scanDniForm .search-row {
  display: flex;
  gap: 8px;
}
#scanDniForm .btn {
  flex: 0 0 auto;
}
#scanDniForm .input {
  min-width: 0;
}
@media (max-width: 520px) {
  .app .person-row {
    align-items: flex-start;
    gap: 10px;
  }
  .person-status {
    align-self: flex-start;
  }
  .app .person-name {
    font-size: 13px;
  }
  .app .person-meta {
    font-size: 11px;
  }
  .app .person-labor {
    font-size: 11px;
  }
  .avatar {
    width: 36px;
    height: 36px;
  }
  .status-badge {
    font-size: 10px;
    padding: 4px 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .attendance-choice,
  .app .person-row {
    animation: none !important;
    transition: none !important;
  }
}
.ops-panel {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 18px 16px 145px;
  color: var(--ink);
}
.ops-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 20px;
}
.ops-heading h2 {
  font: 800 clamp(21px, 4vw, 31px) var(--font-display);
  margin: 4px 0 5px;
}
.ops-heading p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.ops-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--berry-3);
}
.ops-heading .btn {
  flex: 0 0 auto;
}
.ops-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 19px;
}
.ops-metric {
  min-width: 0;
  padding: 16px;
  background: linear-gradient(
    150deg,
    rgba(36, 45, 99, 0.6),
    rgba(25, 17, 55, 0.8)
  );
  border: 1px solid var(--stroke-2);
  border-radius: 16px;
}
.ops-metric small,
.ops-metric span {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
}
.ops-metric strong {
  display: block;
  font: 800 26px var(--font-display);
  margin: 7px 0;
  color: #fff;
}
.ops-card {
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background: rgba(22, 15, 50, 0.84);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
.ops-card h3 {
  font: 800 18px var(--font-display);
  margin: 0 0 14px;
}
.ops-card h4 {
  font: 700 14px var(--font-display);
  margin: 4px 0 14px;
}
.ops-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ops-card-heading span {
  color: var(--ink-soft);
  font-size: 12px;
}
.staffing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.staffing-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--stroke);
  border-radius: 13px;
  background: var(--glass);
}
.staffing-card small {
  color: var(--ink-dim);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.staffing-card strong {
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.staffing-card span {
  color: var(--ink-soft);
  font-size: 11px;
}
.staffing-card b {
  color: var(--amber);
  font-size: 12px;
}
.staffing-card.short {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.09);
}
.ops-form {
  border-top: 1px solid var(--stroke);
  margin-top: 20px;
  padding-top: 18px;
  display: grid;
  gap: 12px;
}
.ops-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ops-form label,
.ops-inputs label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 12px;
}
.ops-form .btn {
  min-height: 45px;
  width: 100%;
  max-width: 250px;
}
.lot-passport {
  border: 1px solid var(--stroke);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 13px;
}
.lot-passport .ops-card-heading h4 {
  margin: 0;
  color: var(--ink);
}
.lot-passport .btn {
  width: auto;
  min-height: 39px;
}
.passport-list {
  margin-top: 17px;
}
.passport-list h4 {
  color: var(--ink) !important;
}
.passport-row,
.audit-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--stroke);
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.passport-row.issue {
  color: var(--rose);
}
.audit-item {
  color: var(--ink-soft);
  font-size: 12px;
}
.assignment-panel {
  border-top: 1px solid var(--stroke);
  margin-top: 20px;
  padding-top: 17px;
}
.assignment-row {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}
.assignment-row .input {
  min-width: 0;
}
.assignment-row .btn {
  flex: 0 0 auto;
}
.assistant-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.assistant-prompts button {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(147, 180, 253, 0.4);
  border-radius: 12px;
  background: rgba(37, 111, 183, 0.13);
  color: #d6e6ff;
  font-weight: 700;
  cursor: pointer;
}
.assistant-prompts button:hover {
  background: rgba(37, 111, 183, 0.25);
}
.assistant-answer {
  margin-top: 18px;
  min-height: 70px;
  padding: 17px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: var(--glass);
  color: var(--ink);
  white-space: pre-line;
  line-height: 1.6;
  font-size: 14px;
}
@media (max-width: 720px) {
  .ops-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .staffing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-inputs {
    grid-template-columns: 1fr;
  }
  .ops-panel {
    padding-inline: 12px;
  }
  .ops-card {
    padding: 16px;
  }
  .assignment-row {
    flex-direction: column;
  }
  .assignment-row .btn {
    width: 100%;
  }
}
.voice-sheet {
  max-width: 540px;
}
.voice-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 15px 0;
}
.voice-settings label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  min-width: 0;
}
.voice-settings .input {
  min-width: 0;
}
.voice-status {
  padding: 16px;
  border: 1px solid rgba(97, 194, 255, 0.45);
  border-radius: 13px;
  background: rgba(36, 111, 207, 0.12);
  color: #e0f4ff;
  line-height: 1.5;
  min-height: 72px;
  margin: 15px 0;
}
.voice-listen {
  width: 100%;
  min-height: 54px;
}
.voice-candidate {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(45, 212, 191, 0.6);
  border-radius: 15px;
  background: rgba(13, 148, 136, 0.11);
}
.voice-candidate strong {
  display: block;
  font: 800 18px var(--font-display);
  color: #fff;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.voice-candidate span {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
}
.voice-actions {
  display: flex;
  gap: 9px;
  margin-top: 16px;
}
.voice-actions .btn {
  flex: 1;
  min-height: 47px;
}
.voice-manual {
  border-top: 1px solid var(--stroke);
  margin-top: 20px;
  padding-top: 17px;
}
.voice-manual label {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
  margin-bottom: 8px;
}
.voice-manual .input {
  min-width: 0;
}
.voice-manual .btn {
  flex: 0 0 auto;
}
@media (max-width: 560px) {
  .voice-settings {
    grid-template-columns: 1fr 1fr;
  }
  .voice-settings label:nth-child(2) {
    grid-column: span 2;
    grid-row: 2;
  }
  .voice-actions {
    flex-direction: column;
  }
}

/* Compact company roster: names stay readable without oversized cards. */
.app .list {
  display: block !important;
  max-width: 1408px !important;
  width: 100%;
  margin: 0 auto;
  padding: 12px 28px 145px !important;
  box-sizing: border-box;
}
.roster-heading {
  padding: 14px 19px 0;
  background: #151e34;
  border: 1px solid #34435c;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}
.roster-heading > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.roster-heading strong {
  font: 700 18px var(--font-display);
  color: #f7fafc;
}
.roster-heading small {
  font-size: 12px;
  color: #9eb3c9;
}
.roster-columns,
.app .person-row {
  display: grid !important;
  grid-template-columns:
    minmax(230px, 2.3fr) 105px minmax(105px, 0.9fr) minmax(170px, 1.5fr)
    105px 20px;
  align-items: center;
  column-gap: 14px;
}
.roster-columns {
  padding: 0 0 11px;
  color: #99aec4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.app .person-row {
  width: 100%;
  min-height: 64px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 9px 19px !important;
  border: 1px solid #34435c !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  background: #19243a !important;
  box-shadow: none !important;
  text-align: left;
  transform: none !important;
  animation: none !important;
  transition:
    background 0.15s ease,
    border-color 0.15s ease !important;
  color: #e8eef6;
}
.app .person-row:nth-child(odd) {
  background: #1b2940 !important;
}
.app .person-row:last-child {
  border-radius: 0 0 14px 14px !important;
}
.app .person-row:hover,
.app .person-row:focus-visible {
  background: #25405a !important;
  border-color: #66a5bd !important;
  outline: none;
  position: relative;
  z-index: 1;
}
.app .person-row:focus-visible {
  box-shadow: inset 0 0 0 2px #72d4dc !important;
}
.app .person-row .person-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.app .person-row .avatar {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #294b58;
  color: #b6e8d7;
  font: 700 11px var(--font-body);
  box-shadow: none;
}
.app .person-row .person-name {
  display: block;
  min-width: 0;
  color: #f4f7fb;
  font: 650 14px/1.32 var(--font-body);
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: break-word;
  text-transform: none;
}
.app .person-row .person-dni {
  font-size: 12px;
  color: #c3d1df;
  font-variant-numeric: tabular-nums;
}
.app .person-row .person-dni small {
  display: none;
}
.app .person-row .person-area,
.app .person-row .person-labor {
  min-width: 0;
  color: #b7c7d6;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: break-word;
  max-width: none;
  margin: 0;
}
.app .person-row .person-status {
  justify-self: start;
  align-self: center;
  transform: none;
  text-align: left;
}
.app .person-row .status-badge {
  display: inline-block;
  border-radius: 6px;
  padding: 5px 8px;
  font: 700 10px var(--font-body);
  letter-spacing: 0.01em;
  box-shadow: none;
}
.app .person-row .row-chevron {
  color: #8fb2c1;
  font-size: 23px;
  line-height: 1;
  text-align: right;
}
.app .person-row.dt,
.app .person-row.resigned {
  opacity: 1;
}
@media (max-width: 900px) {
  .app .list {
    padding: 10px 18px 145px !important;
  }
  .roster-columns,
  .app .person-row {
    grid-template-columns: minmax(200px, 2fr) 100px minmax(120px, 1fr) 96px 16px;
  }
  .roster-columns span:nth-child(4),
  .app .person-row .person-labor {
    display: none;
  }
}
@media (max-width: 620px) {
  .app .list {
    padding: 9px 12px 155px !important;
  }
  .roster-heading {
    padding: 14px 14px 3px;
  }
  .roster-heading > div:first-child {
    margin-bottom: 8px;
  }
  .roster-columns {
    display: none !important;
  }
  .app .person-row {
    grid-template-columns: minmax(0, 1fr) auto 13px;
    gap: 3px 8px;
    min-height: 70px !important;
    padding: 11px 14px !important;
  }
  .app .person-row .person-identity {
    grid-column: 1;
    grid-row: 1/3;
    align-items: flex-start;
    gap: 10px;
  }
  .app .person-row .avatar {
    flex-basis: 31px;
    width: 31px;
    height: 31px;
  }
  .app .person-row .person-name {
    font-size: 13px;
    line-height: 1.3;
  }
  .app .person-row .person-dni {
    grid-column: 1;
    grid-row: 3;
    padding-left: 41px;
    color: #9fb4c7;
    font-size: 11px;
  }
  .app .person-row .person-dni small {
    display: inline;
    margin-right: 4px;
    font-size: 10px;
  }
  .app .person-row .person-area {
    grid-column: 1;
    grid-row: 4;
    padding-left: 41px;
    font-size: 11px;
  }
  .app .person-row .person-status {
    grid-column: 2;
    grid-row: 1/3;
    align-self: start;
    justify-self: end;
  }
  .app .person-row .row-chevron {
    grid-column: 3;
    grid-row: 1/3;
    align-self: start;
    font-size: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .app .person-row {
    transition: none !important;
  }
}
/* Cuenta y permisos visibles según el perfil activo. */
.account-menu-wrap {
  position: relative;
  flex: 0 0 auto;
}
.account-menu-wrap #accountToggle {
  min-height: 40px;
  white-space: nowrap;
  border-color: #55718d;
  background: #20324b;
  color: #edf7ff;
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  width: min(270px, calc(100vw - 24px));
  padding: 11px;
  border: 1px solid #526983;
  border-radius: 14px;
  background: #14233a;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.45);
}
.account-menu strong,
.account-menu span {
  display: block;
  overflow-wrap: anywhere;
}
.account-menu strong {
  font-size: 13px;
  color: #fff;
  padding: 4px 7px 2px;
}
.account-menu span {
  font-size: 11px;
  color: #a9c8db;
  padding: 0 7px 10px;
  border-bottom: 1px solid #37516a;
  margin-bottom: 6px;
}
.account-menu button {
  display: block;
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e9f4fa;
  text-align: left;
  font-weight: 650;
  cursor: pointer;
}
.account-menu button:hover,
.account-menu button:focus-visible {
  background: #2b4d66;
  outline: 0;
}
.account-menu button:last-child {
  color: #ffb8c3;
}
.session-identity small#sessionRole {
  color: #91ddc7;
}
@media (max-width: 620px) {
  .account-menu-wrap #accountToggle {
    padding-inline: 10px;
    font-size: 12px;
  }
}
.staff-tabs .resignation-shortcut {
  margin-left: auto;
  border-color: #7292aa;
  background: #244052;
  color: #e4f5f2;
  font-weight: 750;
}
.staff-tabs .resignation-shortcut:hover,
.staff-tabs .resignation-shortcut:focus-visible {
  border-color: #78d2bc;
  background: #315e62;
  outline: none;
}
@media (max-width: 620px) {
  .staff-tabs .resignation-shortcut {
    margin-left: 0;
  }
}
/* The worker's actions stay at the top; the selected task owns the form area. */
.worker-mode {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  margin: 17px 0 15px;
  border: 1px solid #3d536c;
  border-radius: 12px;
  background: #16263d;
}
.worker-mode button {
  min-width: 0;
  min-height: 43px;
  padding: 7px 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #c4d5e4;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.worker-mode button[aria-pressed="true"] {
  background: #2f6274;
  color: #fff;
  border-color: #76cfc7;
  box-shadow: 0 3px 11px rgba(6, 30, 39, 0.26);
}
.worker-mode button:hover,
.worker-mode button:focus-visible {
  color: #fff;
  background: #355370;
  outline: none;
}
.worker-mode button[data-worker-mode="resignation"][aria-pressed="true"] {
  background: #6a3446;
  border-color: #e68fa7;
}
.worker-mode button[data-worker-mode="dt"][aria-pressed="true"] {
  background: #665536;
  border-color: #dec179;
}
#workerOverlay .dt-form,
#workerOverlay .resign-actions {
  margin-top: 13px;
}
#workerOverlay .dt-form .dt-save,
#workerOverlay .resign-actions #resignWorker {
  width: 100%;
  min-height: 47px;
}
@media (max-width: 410px) {
  .worker-mode button {
    font-size: 11px;
  }
}
.staff-tabs .add-worker-shortcut {
  border-color: #72bca6;
  background: #1d514b;
  color: #dcfff0;
  font-weight: 750;
}
.staff-tabs .add-worker-shortcut:hover,
.staff-tabs .add-worker-shortcut:focus-visible {
  border-color: #9cf0cd;
  background: #2a7161;
  outline: none;
}
.add-worker-sheet {
  max-width: 630px;
}
.add-worker-sheet form {
  display: grid;
  gap: 13px;
  margin-top: 17px;
}
.add-worker-sheet .field-group {
  display: grid;
  gap: 7px;
  margin: 0;
  min-width: 0;
}
.add-worker-sheet .field-label {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: #c2d9e5;
}
.add-worker-sheet .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.add-worker-sheet .field-hint {
  margin: 0;
  color: #aec4d2;
  font-size: 11px;
}
.add-worker-sheet .name-preview {
  padding: 12px 14px;
  border: 1px solid #6fbba5;
  border-radius: 10px;
  background: #1a4742;
  color: #e8fff6;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.add-worker-sheet .add-worker-save {
  min-height: 48px;
  width: 100%;
  margin-top: 5px;
}
@media (max-width: 510px) {
  .add-worker-sheet .row2 {
    grid-template-columns: 1fr;
  }
}
/* Alza Perú Packing: a calm, task-focused header and legible controls. */
.bg-scene {
  background: radial-gradient(
    80% 65% at 80% 0%,
    #16394a 0%,
    #0b2335 52%,
    #0a192b 100%
  );
}
.nebula,
.orb,
.grid-floor {
  opacity: 0.1;
}
header.top {
  background: #102638;
  border-bottom: 1px solid #315164;
  box-shadow: 0 9px 26px rgba(4, 17, 28, 0.24);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
header.top::after {
  display: none;
}
header.top h1 {
  font: 750 clamp(19px, 2vw, 25px) / 1.15 var(--font-display);
  letter-spacing: -0.03em;
  color: #f5faf9;
  background: none;
  -webkit-text-fill-color: currentColor;
  filter: none;
}
header.top .title-row {
  min-width: 0;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.brand-lockup > div {
  min-width: 0;
}
.brand-mark,
.login-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background: #1e735f;
  border: 1px solid #6fc3a2;
  color: #f8fffa;
  font: 800 16px var(--font-display);
  letter-spacing: -0.08em;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
}
.login-symbol {
  margin: auto;
  flex-basis: auto;
  width: 54px;
  height: 54px;
  font-size: 19px;
}
header.top .count-summary {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #afd0cd;
  font-weight: 650;
}
.version-label {
  margin-left: 7px;
  color: #83b9ac;
  font-size: 10px;
}
.account-menu-wrap #accountToggle {
  background: #1a3d4d;
  border: 1px solid #547989;
  color: #e5f8f5;
  box-shadow: none;
}
.date-row button.nav,
.date-row input[type="date"] {
  background: #193448;
  border: 1px solid #496779;
  color: #eff8f7;
  box-shadow: none;
}
.date-row .today-btn {
  background: #2b8a70;
  border: 1px solid #58b597;
  color: #fff;
  box-shadow: none;
  min-height: 40px;
}
.date-row button.nav {
  width: 40px;
  height: 40px;
}
.date-row input[type="date"] {
  min-height: 40px;
}
.session-identity {
  background: #18394a;
  border-color: #4b7280;
  box-shadow: none;
}
.session-avatar {
  background: #287960;
  border-radius: 9px;
}
.session-identity small#sessionRole {
  color: #89d5b6;
}
.assistant-live {
  background: #19374a;
  border: 1px solid #446d7a;
  box-shadow: none;
  border-radius: 12px;
}
.assistant-pulse {
  background: #276f62;
  color: #d0fff0;
  box-shadow: none;
  border-radius: 9px;
}
.assistant-live-copy small {
  color: #a8dbc9;
}
.assistant-live button {
  background: #234b5a;
  border-color: #537989;
  color: #e9f9f5;
  box-shadow: none;
  white-space: nowrap;
}
.assistant-live button:hover,
.assistant-live button:focus-visible {
  border-color: #87d9b9;
  background: #326274;
  outline: none;
}
.staff-tabs {
  gap: 7px;
  align-items: center;
}
.staff-tab {
  border-color: #3e6170;
  background: #173549;
  color: #c7dce1;
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 12px;
  box-shadow: none;
}
.staff-tab.active {
  background: #26785f;
  border-color: #73c7a5;
  color: #fff;
  box-shadow: none;
}
.staff-tab.active span {
  color: #ddf8e7;
}
.staff-tab:focus-visible,
.filter-pill:focus-visible,
.btn-add-person:focus-visible {
  outline: 2px solid #91e0ba;
  outline-offset: 2px;
}
.staff-tabs .resignation-shortcut {
  background: #244657;
  border-color: #5c8890;
  color: #e9f9f6;
}
.staff-tabs .add-worker-shortcut {
  background: #25775f;
  border-color: #67c09c;
  color: #fff;
}
.search-wrap {
  background: transparent;
}
.search-box {
  background: #19394c;
  border: 1px solid #557889;
  border-radius: 11px;
  box-shadow: none;
  min-height: 48px;
  color: #9ed5c6;
}
.search-box:focus-within {
  border-color: #83d3b2;
  box-shadow: 0 0 0 3px rgba(70, 168, 127, 0.19);
}
.search-box input {
  font-size: 14px;
  color: #f7fbfb;
  min-width: 0;
}
.search-box input::placeholder {
  color: #a6c2c8;
}
.btn-add-person {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 95px;
  height: 48px;
  padding: 0 13px;
  border: 1px solid #66a998;
  border-radius: 10px;
  background: #1e6359;
  color: #f4fffa;
  font-size: 12px;
  font-weight: 750;
  box-shadow: none;
}
.btn-add-person#scanCard {
  background: #244a5c;
  border-color: #6a8c9b;
  min-width: 124px;
}
.btn-add-person:hover {
  filter: brightness(1.15);
}
.filter-row {
  gap: 6px;
  margin-top: 11px;
}
.filter-pill {
  background: #173549;
  border: 1px solid #3e6170;
  border-radius: 8px;
  color: #c9dce1;
  box-shadow: none;
  min-height: 33px;
}
.filter-pill.active {
  background: #2c7964;
  border-color: #75c5a5;
  color: #fff;
  box-shadow: none;
}
@media (max-width: 700px) {
  header.top {
    padding: 15px 13px;
  }
  .brand-mark {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
    font-size: 14px;
  }
  header.top h1 {
    font-size: 19px;
  }
  .staff-tabs {
    padding: 12px 12px 3px;
  }
  .search-wrap {
    padding: 11px 12px 7px;
  }
}
@media (max-width: 470px) {
  .brand-lockup {
    gap: 9px;
  }
  header.top .count-summary {
    font-size: 9px;
    line-height: 1.3;
  }
  .date-row {
    gap: 5px;
  }
  .date-row input[type="date"] {
    min-width: 0;
    padding: 7px 5px;
    font-size: 13px;
  }
  .date-row .today-btn {
    padding: 7px 9px;
  }
  .btn-add-person {
    min-width: 48px;
    width: 48px;
    padding: 0;
  }
  .btn-add-person#scanCard {
    min-width: 48px;
  }
  .btn-add-person span {
    display: none;
  }
  .search-box {
    padding-inline: 10px;
  }
}
/* Clear work hierarchy: brand, work date, operator, assistant, roster. */
header.top {
  display: block !important;
  padding: 18px 28px 14px;
}
.top-primary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(340px, 1.18fr) minmax(
      300px,
      1fr
    );
  align-items: center;
  gap: 16px 22px;
}
header.top .title-row,
header.top .date-row,
header.top .session-bar {
  grid-column: auto;
  grid-row: auto;
  margin: 0;
  min-width: 0;
}
header.top .title-row {
  justify-content: flex-start;
}
header.top .date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
header.top .date-row input[type="date"] {
  min-width: 120px;
}
.day-state {
  flex: 0 0 100%;
  padding-left: 3px;
  color: #a4cdbd;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
}
header.top .session-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 9px;
}
header.top .session-identity {
  min-width: 0;
  flex: 1;
  max-width: 260px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
}
header.top .session-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}
header.top .session-identity strong {
  font-size: 11px;
  line-height: 1.3;
}
header.top .session-identity small {
  font-size: 9px;
}
header.top .account-menu-wrap {
  flex: 0 0 auto;
}
header.top .account-menu-wrap #accountToggle {
  min-height: 37px;
  padding: 8px 10px;
}
header.top .assistant-live {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  margin: 14px 0 0;
  padding: 11px 14px;
}
header.top .assistant-ask {
  grid-column: auto;
  grid-row: auto;
  margin: 9px 0 0;
}
header.top .notice-banner {
  grid-column: auto;
  grid-row: auto;
}
.staff-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 13px 28px 3px;
  overflow: visible;
  align-items: center;
}
.staff-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}
.staff-actions .staff-tab {
  min-height: 40px;
  margin: 0;
  white-space: nowrap;
}
.staff-tabs > .staff-tab {
  min-height: 40px;
}
.search-wrap {
  padding: 10px 28px 7px;
}
@media (max-width: 1120px) {
  .top-primary {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  }
  header.top .title-row {
    grid-column: 1;
    grid-row: 1;
  }
  header.top .session-bar {
    grid-column: 2;
    grid-row: 1;
  }
  header.top .date-row {
    grid-column: 1/-1;
    grid-row: 2;
    max-width: 520px;
  }
  .day-state {
    flex: 0 0 auto;
    margin-left: 5px;
  }
}
@media (max-width: 700px) {
  header.top {
    padding: 14px 12px 12px;
  }
  .top-primary {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  header.top .title-row,
  header.top .session-bar,
  header.top .date-row {
    grid-column: 1;
    grid-row: auto;
  }
  header.top .session-bar {
    justify-content: space-between;
  }
  header.top .session-identity {
    max-width: none;
  }
  header.top .date-row {
    max-width: none;
  }
  .day-state {
    flex: 0 0 auto;
    margin-left: 4px;
  }
  header.top .assistant-live {
    margin-top: 10px;
  }
  .staff-tabs {
    padding: 12px 12px 4px;
  }
  .staff-actions {
    flex: 0 0 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }
  .staff-actions .staff-tab {
    flex: 1 1 145px;
    min-width: 0;
    text-align: center;
    white-space: normal;
  }
  .search-wrap {
    padding: 10px 12px 7px;
  }
}
@media (max-width: 470px) {
  .day-state {
    flex: 0 0 100%;
    margin-left: 0;
  }
  .staff-actions .staff-tab {
    padding: 9px 6px;
    font-size: 11px;
  }
  .staff-tabs > .staff-tab {
    padding: 9px 8px;
    font-size: 11px;
  }
}
.dt-panel .dt-annul {
  margin-left: 8px;
  border-color: rgba(251, 113, 133, 0.55);
  background: rgba(251, 113, 133, 0.13);
  color: #ffadc0;
}
.dt-panel > div {
  margin-top: 12px;
}
#workerOverlay .resign-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 12px;
}
#workerOverlay .resign-actions #resignWorker {
  width: auto;
  min-width: 170px;
  max-width: 100%;
  min-height: 41px;
  padding: 9px 16px;
}
.absence-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 10px 0 0;
  padding: 11px 15px;
  border: 1px solid rgba(249, 185, 85, 0.48);
  border-radius: 12px;
  background: rgba(132, 78, 27, 0.17);
  color: #ffe6b9;
  font-size: 12px;
}
.absence-alerts strong {
  flex-basis: 100%;
  font-size: 13px;
}
.absence-alerts span,
.absence-alerts small {
  flex-basis: 100%;
  color: #f5cfa3;
}
.absence-alerts button {
  border: 1px solid rgba(249, 185, 85, 0.5);
  border-radius: 9px;
  background: rgba(249, 185, 85, 0.12);
  color: #fff;
  padding: 8px 11px;
  cursor: pointer;
  text-align: left;
}
.absence-alerts button:hover {
  background: rgba(249, 185, 85, 0.23);
}
.name-order-option {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  cursor: pointer;
}
.name-order-option input {
  width: 17px;
  height: 17px;
  accent-color: #38bdf8;
}
.function-picker {
  position: relative;
  isolation: isolate;
}
.field-group:focus-within:has(.function-picker) {
  position: relative;
  z-index: 15;
}
.function-picker .input {
  padding-right: 49px;
}
.function-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 39px;
  height: 36px;
  border: 1px solid rgba(125, 174, 232, 0.3);
  border-radius: 10px;
  background: rgba(95, 144, 218, 0.18);
  color: #d8ecff;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.function-toggle:hover,
.function-toggle:focus-visible {
  background: rgba(95, 144, 218, 0.34);
  outline: 2px solid #78c6ff;
}
.function-options {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: min(250px, 40vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid rgba(127, 178, 232, 0.52);
  border-radius: 13px;
  background: #17213c;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.48);
  scrollbar-color: #6ca9ef #253657;
  scrollbar-width: thin;
}
.function-options[hidden] {
  display: none;
}
.function-option {
  display: block;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #eef6ff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.function-option:hover,
.function-option:focus-visible {
  background: #315286;
  outline: none;
  color: #fff;
}
.function-empty {
  padding: 12px;
  color: #b9c9db;
  font-size: 12px;
}
.assistant-live {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 90px;
  padding: 15px 18px !important;
  background: linear-gradient(110deg, #163e4a, #15394b 54%, #193e52) !important;
  border: 1px solid #568d90 !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 30px rgba(2, 22, 31, 0.17) !important;
}
.assistant-live::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: #56d5ae;
}
.assistant-live .assistant-pulse {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, #28876c, #22607b);
  color: #edfff9;
  font-size: 23px;
}
.assistant-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.assistant-live .assistant-heading strong {
  font-size: 13px;
  letter-spacing: 0.01em;
}
.assistant-ready {
  font-size: 10px;
  color: #91f1c5;
  border: 1px solid rgba(97, 218, 162, 0.36);
  background: rgba(22, 135, 91, 0.2);
  padding: 3px 8px;
  border-radius: 99px;
  font-weight: 800;
}
.assistant-live .assistant-live-copy p {
  font-size: 13px;
  line-height: 1.45;
  color: #e4f4f5;
  margin-top: 7px;
}
.assistant-voice-state:not([hidden]) {
  display: block;
  margin: 6px 0 0 !important;
  color: #d5e9ee !important;
  font-size: 11px;
}
.assistant-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.assistant-live .assistant-actions button {
  min-height: 39px;
  padding: 8px 12px;
  border-radius: 10px;
}
.assistant-live .assistant-actions .assistant-open-worker:not([hidden]) {
  background: #2b9877;
  border-color: #6fdbb3;
  color: white;
}
.assistant-live .assistant-actions .assistant-open-worker:hover {
  background: #35ac88;
}
@media (max-width: 680px) {
  .assistant-live {
    flex-wrap: wrap;
    gap: 10px;
  }
  .assistant-live-copy {
    flex: 1 1 calc(100% - 60px);
  }
  .assistant-actions {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .assistant-actions .assistant-open-worker:not([hidden]) {
    grid-column: 1/-1;
  }
  .assistant-live .assistant-actions button {
    width: 100%;
  }
}
.scan-candidate {
  margin-top: 16px;
  padding: 17px;
  border: 1px solid rgba(72, 207, 164, 0.62);
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(34, 112, 103, 0.23),
    rgba(29, 55, 85, 0.34)
  );
}
.scan-candidate[hidden] {
  display: none;
}
.scan-candidate strong {
  display: block;
  margin: 8px 0 3px;
  font-size: 18px;
  line-height: 1.3;
  color: #fff;
  overflow-wrap: anywhere;
}
.scan-candidate > span:not(.field-label) {
  display: block;
  color: #c5dfdf;
  font-size: 12px;
  line-height: 1.45;
}
.scan-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.scan-settings label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #bed7dc;
  font-size: 11px;
  font-weight: 700;
}
.scan-settings .input {
  min-width: 0;
  width: 100%;
}
.scan-actions {
  display: flex;
  gap: 9px;
}
.scan-actions .btn {
  flex: 1;
  min-height: 46px;
}
@media (max-width: 520px) {
  .scan-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .scan-settings label:nth-child(2) {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .scan-actions {
    flex-direction: column;
  }
}
.worker-ai-status {
  margin: 3px 0 18px;
  padding: 11px 13px;
  border: 1px solid #577c90;
  border-radius: 11px;
  background: rgba(36, 91, 115, 0.24);
  color: #dff3ff;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}
.worker-ai-status[data-state="presente"] {
  border-color: #33b98f;
  background: rgba(20, 131, 100, 0.18);
  color: #aaffdc;
}
.worker-ai-status[data-state="falta"],
.worker-ai-status[data-state="retirado"] {
  border-color: #dd7290;
  background: rgba(159, 49, 83, 0.17);
  color: #ffc0ce;
}
.worker-ai-status[data-state="dt"] {
  border-color: #e1aa54;
  background: rgba(181, 112, 31, 0.17);
  color: #ffe0a3;
}
.shift-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 7px;
}
.shift-choices button {
  min-height: 52px;
  border: 1px solid #63557f;
  border-radius: 12px;
  background: #26203e;
  color: #d9d0e9;
  font: 800 14px var(--font-display);
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
.shift-choices button:hover {
  border-color: #83bddb;
  background: #313a5c;
  transform: translateY(-1px);
}
.shift-choices button:focus-visible {
  outline: 2px solid #78dcf2;
  outline-offset: 2px;
}
.shift-choices button[aria-pressed="true"] {
  background: linear-gradient(115deg, #207f92, #3558b4);
  border-color: #55c7e0;
  color: #fff;
  box-shadow: 0 6px 17px rgba(41, 123, 189, 0.24);
}
.shift-choices button[data-shift="noche"][aria-pressed="true"] {
  background: linear-gradient(115deg, #504394, #334eaf);
  border-color: #aa9af5;
}
.shift-choices button span {
  font-size: 18px;
  margin-right: 5px;
}
.assistant-insights {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -5px 0 13px;
  padding: 9px 14px;
  border: 1px solid rgba(95, 174, 169, 0.38);
  border-radius: 11px;
  background: rgba(20, 69, 77, 0.36);
  color: #d7efeb;
  font-size: 11px;
  font-weight: 750;
}
.assistant-insights[hidden] {
  display: none;
}
.assistant-insights button {
  flex: 0 0 auto;
  border: 1px solid #61bc9c;
  border-radius: 9px;
  padding: 7px 10px;
  background: #226d61;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.assistant-insights button[hidden] {
  display: none;
}
.assistant-insights button:hover {
  background: #328b78;
}
.export-review-sheet {
  max-width: 620px;
}
.export-review-summary {
  padding: 15px;
  margin: 12px 0;
  border: 1px solid #70bba7;
  border-radius: 12px;
  background: rgba(28, 112, 92, 0.17);
  color: #dcfff1;
  font-weight: 800;
  line-height: 1.5;
}
.export-review-issues {
  max-height: 260px;
  overflow: auto;
  padding: 13px 16px;
  margin-bottom: 18px;
  border: 1px solid #657487;
  border-radius: 12px;
  background: rgba(27, 43, 65, 0.58);
  color: #d8e4f1;
  font-size: 12px;
  line-height: 1.6;
}
.export-review-issues ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.export-review-issues li {
  margin-bottom: 5px;
}
@media (max-width: 620px) {
  .assistant-insights {
    flex-wrap: wrap;
  }
  .assistant-insights button {
    width: 100%;
  }
}

/* ============================================================================
   ALZA PERU PACKING · DISENO NIVEL DIOS — TEMA ARANDANO (blueberry premium)
   Override final: paleta arandano violeta-azul, glassmorphism, aurora.
   Todo el JS, voz IA, escaner y logica Supabase permanecen intactos.
   ============================================================================ */
:root {
  --bg-0: #06040f;
  --berry: #246eac;
  --berry-2: #2c82bf;
  --berry-3: #b8def2;
  --blue: #3b82f6;
  --ink: #f0f9ff;
  --ink-soft: #b7d7e8;
  --ink-dim: #91b4cb;
  --stroke: rgba(123, 195, 230, 0.18);
  --stroke-2: rgba(184, 222, 242, 0.32);
  --glass: rgba(44, 130, 191, 0.07);
  --glass-2: rgba(44, 130, 191, 0.13);
  --grad-berry: linear-gradient(135deg, #2c82bf, #2463a4 48%, #2563eb);
}
html {
  scroll-behavior: smooth;
}
::selection {
  background: rgba(44, 130, 191, 0.5);
  color: #fff;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #0a0618;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #225985, #143b6a);
  border-radius: 8px;
  border: 2px solid #0a0618;
}

/* ---------- Fondo aurora arandano ---------- */
.bg-scene {
  background:
    radial-gradient(
      90% 60% at 50% -10%,
      rgba(36, 110, 172, 0.22) 0%,
      transparent 60%
    ),
    radial-gradient(120% 90% at 50% 0%, #160b33 0%, #0d0724 42%, #06040f 100%) !important;
}
.nebula {
  opacity: 0.9;
  filter: blur(42px) saturate(1.2);
}
.orb {
  opacity: 0.55;
}
.orb-1 {
  background: radial-gradient(
    circle at 35% 35%,
    #246eac,
    transparent 65%
  ) !important;
}
.orb-2 {
  background: radial-gradient(
    circle at 60% 40%,
    #2463a4,
    transparent 65%
  ) !important;
}
.orb-3 {
  background: radial-gradient(
    circle at 50% 50%,
    #2563eb,
    transparent 62%
  ) !important;
  opacity: 0.42;
}
.orb-4 {
  background: radial-gradient(
    circle at 50% 50%,
    #38bdf8,
    transparent 60%
  ) !important;
  opacity: 0.35;
}
.orb-5 {
  background: radial-gradient(
    circle at 50% 50%,
    #7bc3e6,
    transparent 60%
  ) !important;
  opacity: 0.3;
}
.grid-floor {
  opacity: 0.9;
  filter: drop-shadow(0 0 12px rgba(44, 130, 191, 0.4)) !important;
  background-image:
    linear-gradient(rgba(123, 195, 230, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 195, 230, 0.3) 1px, transparent 1px),
    linear-gradient(rgba(35, 105, 169, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 105, 169, 0.15) 1px, transparent 1px) !important;
}
.horizon {
  background: radial-gradient(
    60% 100% at 50% 100%,
    rgba(36, 110, 172, 0.34) 0%,
    rgba(37, 111, 183, 0.14) 45%,
    transparent 75%
  ) !important;
}

/* ---------- Header premium ---------- */
header.top {
  background: linear-gradient(
    180deg,
    rgba(7, 30, 53, 0.94),
    rgba(5, 23, 43, 0.82)
  ) !important;
  border-bottom: 1px solid rgba(123, 195, 230, 0.22) !important;
  box-shadow:
    0 18px 44px -18px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
header.top::after {
  display: block !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(184, 222, 242, 0.75),
    rgba(96, 165, 250, 0.75),
    transparent
  );
}
header.top h1 {
  background: linear-gradient(
    115deg,
    #ffffff 10%,
    #b8def2 45%,
    #7cc7ed 75%,
    #60a5fa 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  filter: drop-shadow(0 3px 14px rgba(36, 110, 172, 0.55)) !important;
}
.count-summary {
  color: #adcadf !important;
  font-weight: 650;
}
.version-label {
  color: #8caec8;
}
.brand-mark,
.login-symbol {
  background: radial-gradient(
    circle at 30% 25%,
    #7bc3e6,
    #1f679e 55%,
    #143b6a
  ) !important;
  border: 1px solid rgba(184, 222, 242, 0.55) !important;
  color: #fff !important;
  box-shadow:
    0 8px 22px -6px rgba(31, 103, 158, 0.65),
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    0 0 24px -4px rgba(44, 130, 191, 0.6) !important;
}

/* ---------- Sesion / cuenta ---------- */
.session-identity {
  background: rgba(44, 130, 191, 0.08) !important;
  border-color: rgba(123, 195, 230, 0.3) !important;
}
.session-avatar {
  background: linear-gradient(135deg, #2c82bf, #2463a4) !important;
}
.session-identity small,
.session-identity small#sessionRole {
  color: #b8def2 !important;
}
.account-menu-wrap #accountToggle {
  background: rgba(8, 35, 61, 0.8) !important;
  border: 1px solid rgba(123, 195, 230, 0.3) !important;
  color: #e7f5fc !important;
}
.account-menu {
  background: #0a213a !important;
  border: 1px solid rgba(123, 195, 230, 0.3) !important;
}
.account-menu button:hover,
.account-menu button:focus-visible {
  background: rgba(44, 130, 191, 0.22);
}

/* ---------- Fecha ---------- */
.date-row button.nav,
.date-row input[type="date"] {
  background: rgba(8, 35, 61, 0.75) !important;
  border: 1px solid rgba(123, 195, 230, 0.25) !important;
  color: #f0f9ff !important;
}
.date-row button.nav:hover {
  border-color: rgba(184, 222, 242, 0.55);
}
.date-row .today-btn {
  background: var(--grad-berry) !important;
  border: 1px solid rgba(184, 222, 242, 0.5) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px -6px rgba(31, 103, 158, 0.7) !important;
}
.day-state {
  color: #a4c7df !important;
}

/* ---------- Asistente IA ---------- */
.assistant-live {
  background: linear-gradient(
    110deg,
    rgba(18, 73, 119, 0.38),
    rgba(12, 45, 75, 0.5) 54%,
    rgba(37, 99, 235, 0.28)
  ) !important;
  border: 1px solid rgba(123, 195, 230, 0.38) !important;
  box-shadow:
    0 14px 34px rgba(6, 35, 61, 0.4),
    0 0 32px -8px rgba(44, 130, 191, 0.45) !important;
}
.assistant-live::before {
  background: linear-gradient(180deg, #7bc3e6, #60a5fa);
}
.assistant-live .assistant-pulse {
  background: linear-gradient(145deg, #2c82bf, #2463a4) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(44, 130, 191, 0.55) !important;
}
.assistant-ready {
  color: #d0eafa !important;
  border-color: rgba(184, 222, 242, 0.5) !important;
  background: rgba(31, 103, 158, 0.35) !important;
}
.assistant-live .assistant-live-copy p {
  color: #e7f5fc !important;
}
.assistant-live .assistant-live-copy small,
.assistant-voice-state {
  color: #a4c7df !important;
}
.assistant-live button,
.assistant-live .assistant-actions button {
  background: rgba(8, 35, 61, 0.72) !important;
  border: 1px solid rgba(123, 195, 230, 0.35) !important;
  color: #e7f5fc !important;
}
.assistant-live button:hover,
.assistant-live .assistant-actions button:hover {
  border-color: rgba(184, 222, 242, 0.6) !important;
  background: rgba(18, 73, 119, 0.4) !important;
}
.assistant-live .assistant-actions .assistant-open-worker:not([hidden]) {
  background: var(--grad-berry) !important;
  border-color: rgba(184, 222, 242, 0.55) !important;
  color: #fff !important;
}
.assistant-live button[aria-pressed="true"] {
  border-color: #7bc3e6 !important;
  color: #e9f8ff !important;
  box-shadow: 0 0 14px rgba(44, 130, 191, 0.45) !important;
}
.assistant-insights {
  border-color: rgba(123, 195, 230, 0.38) !important;
  background: rgba(18, 73, 119, 0.25) !important;
  color: #e3d9ff !important;
}
.assistant-insights button {
  background: var(--grad-berry) !important;
  border-color: rgba(184, 222, 242, 0.5) !important;
  color: #fff !important;
}
.smart-result {
  background: rgba(44, 130, 191, 0.08) !important;
  border-color: rgba(123, 195, 230, 0.28) !important;
}
.smart-result:hover {
  border-color: #7bc3e6 !important;
  background: rgba(44, 130, 191, 0.2) !important;
}
.smart-result span {
  color: #a4c7df;
}

/* ---------- Pestañas de personal ---------- */
.staff-tab {
  border-color: rgba(123, 195, 230, 0.24) !important;
  background: rgba(44, 130, 191, 0.08) !important;
  color: #b7d7e8 !important;
}
.staff-tab.active {
  background: var(--grad-berry) !important;
  border-color: rgba(184, 222, 242, 0.55) !important;
  color: #fff !important;
  box-shadow:
    0 8px 22px -8px rgba(31, 103, 158, 0.7),
    0 0 20px -4px rgba(44, 130, 191, 0.5) !important;
}
.staff-tab.active span {
  color: #efe9ff;
}
.staff-tabs .resignation-shortcut {
  background: rgba(251, 113, 133, 0.12) !important;
  border-color: rgba(251, 113, 133, 0.42) !important;
  color: #ffb9c7 !important;
}
.staff-tabs .add-worker-shortcut {
  background: var(--grad-berry) !important;
  border-color: rgba(184, 222, 242, 0.55) !important;
  color: #fff !important;
}

/* ---------- Busqueda / filtros ---------- */
.search-box {
  background: rgba(8, 35, 61, 0.72) !important;
  border: 1px solid rgba(123, 195, 230, 0.26) !important;
  color: #adcadf;
}
.search-box:focus-within {
  border-color: #7bc3e6 !important;
  box-shadow:
    0 0 0 3px rgba(44, 130, 191, 0.22),
    0 0 24px -6px rgba(44, 130, 191, 0.5) !important;
}
.search-box input {
  color: #f0f9ff;
}
.search-box input::placeholder {
  color: #91b4cb;
}
.btn-add-person {
  background: linear-gradient(135deg, #246eac, #2463a4) !important;
  border: 1px solid rgba(184, 222, 242, 0.5) !important;
  color: #fff !important;
  box-shadow:
    0 10px 24px -8px rgba(31, 103, 158, 0.7),
    0 0 18px -4px rgba(44, 130, 191, 0.5) !important;
}
.btn-add-person#scanCard {
  background: linear-gradient(135deg, #2563eb, #2463a4) !important;
  border-color: rgba(147, 197, 253, 0.5) !important;
}
.filter-pill {
  background: rgba(8, 35, 61, 0.72) !important;
  border: 1px solid rgba(123, 195, 230, 0.24) !important;
  color: #b7d7e8 !important;
}
.filter-pill.active {
  background: var(--grad-berry) !important;
  border-color: rgba(184, 222, 242, 0.55) !important;
  color: #fff !important;
  box-shadow: 0 0 18px -2px rgba(44, 130, 191, 0.55) !important;
}

/* ---------- Chips de estadisticas ---------- */
.stat-chip {
  background: rgba(44, 130, 191, 0.1) !important;
  border: 1px solid rgba(123, 195, 230, 0.24) !important;
  color: #b7d7e8;
}
.stat-chip b {
  color: #f0f9ff;
}
.stat-chip.active {
  background: var(--grad-berry) !important;
  border-color: rgba(184, 222, 242, 0.55) !important;
  color: #fff !important;
}
.stat-chip.active b {
  color: #fff;
}

/* ---------- Padrón: filas nivel dios ---------- */
.roster-heading {
  background: linear-gradient(
    160deg,
    rgba(18, 73, 119, 0.4),
    rgba(12, 45, 75, 0.6)
  ) !important;
  border: 1px solid rgba(123, 195, 230, 0.28) !important;
  border-bottom: 0 !important;
}
.roster-heading strong {
  color: #f0f9ff;
}
.roster-heading small {
  color: #9cbcd2;
}
.roster-columns {
  color: #91b4cb !important;
  border-bottom: 1px solid rgba(123, 195, 230, 0.16);
}
.app .person-row {
  background: linear-gradient(
    160deg,
    rgba(44, 130, 191, 0.1),
    rgba(37, 99, 235, 0.04)
  ) !important;
  border: 1px solid rgba(123, 195, 230, 0.17) !important;
  border-top: 0 !important;
  box-shadow:
    0 12px 28px -14px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
.app .person-row:nth-child(odd) {
  background: linear-gradient(
    160deg,
    rgba(35, 105, 169, 0.09),
    rgba(12, 45, 75, 0.38)
  ) !important;
}
.app .person-row:hover,
.app .person-row:focus-visible {
  background: linear-gradient(
    160deg,
    rgba(44, 130, 191, 0.2),
    rgba(37, 99, 235, 0.09)
  ) !important;
  border-color: rgba(184, 222, 242, 0.5) !important;
  box-shadow:
    0 18px 40px -14px rgba(0, 0, 0, 0.7),
    0 0 32px -6px rgba(44, 130, 191, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.app .person-row:focus-visible {
  box-shadow:
    inset 0 0 0 2px #7bc3e6,
    0 0 28px -6px rgba(44, 130, 191, 0.6) !important;
}
.app .person-row.st-presente {
  border-left: 3px solid #34d399 !important;
  box-shadow:
    0 12px 28px -14px rgba(0, 0, 0, 0.6),
    0 0 26px -8px rgba(52, 211, 153, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
.app .person-row.st-falta {
  border-left: 3px solid #fb7185 !important;
  box-shadow:
    0 12px 28px -14px rgba(0, 0, 0, 0.6),
    0 0 26px -8px rgba(251, 113, 133, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
.app .person-row .avatar {
  background: radial-gradient(
    circle at 32% 28%,
    #b8def2,
    #246eac 58%,
    #143b6a
  ) !important;
  color: #fff !important;
  box-shadow:
    inset -4px -6px 12px rgba(0, 0, 0, 0.4),
    inset 3px 4px 8px rgba(255, 255, 255, 0.35),
    0 8px 18px -6px rgba(18, 73, 119, 0.7) !important;
}
.app .person-row .person-name {
  color: #f0f9ff;
}
.app .person-row .person-dni {
  color: #a4c7df !important;
}
.app .person-row .person-area,
.app .person-row .person-labor {
  color: #9cbcd2 !important;
}
.row-chevron {
  color: #7c6fb3 !important;
}

/* ---------- Barra inferior / botones ---------- */
.bottom-bar {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(4, 20, 39, 0.92) 40%
  ) !important;
}
.bottom-bar-inner {
  background: rgba(8, 35, 61, 0.72) !important;
  border: 1px solid rgba(123, 195, 230, 0.26) !important;
  box-shadow:
    0 -6px 40px -10px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.btn {
  background: rgba(44, 130, 191, 0.1) !important;
  border: 1px solid rgba(123, 195, 230, 0.26) !important;
  color: #e7f5fc !important;
}
.btn-primary {
  background: var(--grad-berry) !important;
  border-color: rgba(184, 222, 242, 0.5) !important;
  color: #fff !important;
  box-shadow:
    0 12px 28px -8px rgba(31, 103, 158, 0.75),
    0 0 24px -4px rgba(44, 130, 191, 0.55) !important;
}
.btn-cierre {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  color: #241a02 !important;
}
.btn-secondary {
  background: rgba(44, 130, 191, 0.1) !important;
}

/* ---------- Modales / hojas ---------- */
.overlay {
  background: rgba(3, 16, 31, 0.74) !important;
}
.sheet {
  background: linear-gradient(
    170deg,
    #102e4b 0%,
    #0a213a 60%,
    #07192d 100%
  ) !important;
  border-color: rgba(123, 195, 230, 0.32) !important;
}
.sheet-name {
  background: linear-gradient(120deg, #fff, #b8def2) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.sheet-close {
  background: rgba(44, 130, 191, 0.1) !important;
  border: 1px solid rgba(123, 195, 230, 0.3) !important;
  color: #b7d7e8 !important;
}
.confirm-sheet .btn.danger {
  background: rgba(251, 113, 133, 0.13) !important;
}

/* ---------- Inputs y selectores ---------- */
.input,
select.input {
  background: rgba(8, 35, 61, 0.62) !important;
  border: 1.5px solid rgba(123, 195, 230, 0.24) !important;
  color: #f0f9ff;
}
.input:focus {
  border-color: #7bc3e6 !important;
  box-shadow: 0 0 0 3px rgba(44, 130, 191, 0.22) !important;
}
.input::placeholder {
  color: #91b4cb;
}
.input[readonly] {
  background: rgba(8, 35, 61, 0.4) !important;
}
.function-options {
  background: #0b2844 !important;
  border-color: rgba(123, 195, 230, 0.42) !important;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.55) !important;
}
.function-option:hover,
.function-option:focus-visible {
  background: #194d76 !important;
}
.function-toggle {
  background: rgba(44, 130, 191, 0.18) !important;
  border-color: rgba(123, 195, 230, 0.38) !important;
  color: #d8f1ff !important;
}
.attendance-choice {
  background: rgba(8, 35, 61, 0.62) !important;
  border-color: rgba(123, 195, 230, 0.28) !important;
  color: #b7d7e8 !important;
}
.worker-mode {
  background: rgba(8, 35, 61, 0.72) !important;
  border-color: rgba(123, 195, 230, 0.26) !important;
}
.worker-mode button {
  color: #b7d7e8;
}
.worker-mode button[aria-pressed="true"] {
  background: linear-gradient(115deg, #246eac, #2463a4) !important;
  border-color: #7bc3e6 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(31, 103, 158, 0.35) !important;
}
.worker-mode button[data-worker-mode="resignation"][aria-pressed="true"] {
  background: linear-gradient(115deg, #9d174d, #6b2140) !important;
  border-color: #f472a0 !important;
}
.worker-mode button[data-worker-mode="dt"][aria-pressed="true"] {
  background: linear-gradient(115deg, #92600e, #6b4d16) !important;
  border-color: #e8b45a !important;
}
.line-options button {
  background: rgba(8, 35, 61, 0.62) !important;
  border-color: rgba(123, 195, 230, 0.28) !important;
  color: #b7d7e8 !important;
}
.dinner-options button {
  background: rgba(8, 35, 61, 0.62) !important;
  border-color: rgba(123, 195, 230, 0.28) !important;
  color: #b7d7e8 !important;
}

/* ---------- Voz / escaner / estados ---------- */
.voice-status {
  background: rgba(18, 73, 119, 0.25) !important;
  border-color: rgba(123, 195, 230, 0.42) !important;
  color: #d8ecfb !important;
}
.voice-candidate,
.scan-candidate {
  background: linear-gradient(
    145deg,
    rgba(31, 103, 158, 0.3),
    rgba(37, 99, 235, 0.18)
  ) !important;
  border-color: rgba(123, 195, 230, 0.52) !important;
}
.scan-settings label {
  color: #c0b3ea;
}
.export-review-summary {
  background: rgba(18, 73, 119, 0.28) !important;
  border-color: rgba(123, 195, 230, 0.48) !important;
  color: #d8ecfb !important;
}
.export-review-issues {
  background: rgba(7, 30, 52, 0.72) !important;
  border-color: rgba(123, 195, 230, 0.3) !important;
  color: #d9d0f2;
}
.export-review-issues strong {
  color: #ffe0a0;
}
.dt-panel button {
  background: rgba(52, 211, 153, 0.12) !important;
  border-color: rgba(52, 211, 153, 0.48) !important;
  color: #a7f3d0 !important;
}
.dt-panel .dt-annul {
  background: rgba(251, 113, 133, 0.13) !important;
  border-color: rgba(251, 113, 133, 0.5) !important;
  color: #ffadc0 !important;
}
#scanVideo {
  background: #0b0618;
}

/* ---------- Login (sereno, sin mucho movimiento) ---------- */
.login-screen {
  background: rgba(4, 20, 39, 0.8) !important;
}
.login-card {
  background: linear-gradient(170deg, #102e4b 0%, #071c33 100%) !important;
  border: 1px solid rgba(123, 195, 230, 0.38) !important;
  box-shadow:
    0 40px 90px -20px rgba(0, 0, 0, 0.85),
    0 0 60px -10px rgba(36, 110, 172, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
}
.login-card h1 {
  background: linear-gradient(115deg, #fff, #b8def2 55%, #7cc7ed) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  filter: drop-shadow(0 3px 12px rgba(36, 110, 172, 0.5));
}
.login-card label {
  color: #b7d7e8;
}
.login-card input {
  background: rgba(8, 35, 61, 0.62) !important;
  border: 1px solid rgba(123, 195, 230, 0.26) !important;
  color: #f0f9ff !important;
}
.login-card input:focus {
  border-color: #7bc3e6 !important;
  box-shadow: 0 0 0 3px rgba(44, 130, 191, 0.22) !important;
}
.login-card .error {
  color: #fb7185;
}

/* ---------- Detalles finales ---------- */
.toast {
  background: linear-gradient(135deg, #246eac, #2563eb) !important;
  border-color: rgba(184, 222, 242, 0.5) !important;
  box-shadow:
    0 16px 34px -8px rgba(31, 103, 158, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}
.app button:focus-visible,
.sheet button:focus-visible,
.input:focus-visible {
  outline: 2px solid #7bc3e6 !important;
  outline-offset: 2px;
}
.empty-state {
  color: #b7d7e8;
}
.empty-state .big {
  color: #f0f9ff;
}
.cierre-box,
.cierre-log {
  background: rgba(8, 35, 61, 0.6) !important;
  border-color: rgba(123, 195, 230, 0.26) !important;
}
.cierre-log .dl {
  background: var(--grad-berry) !important;
}
.dash-cerrar-chip {
  background: var(--grad-berry) !important;
}
.resp-card {
  background: rgba(8, 35, 61, 0.6) !important;
  border-color: rgba(123, 195, 230, 0.26) !important;
}
.resp-pill {
  background: rgba(44, 130, 191, 0.14) !important;
  border-color: rgba(123, 195, 230, 0.4) !important;
  color: #d6c8ff !important;
}
.dash-card,
.dash-chart-card,
.dl-card {
  background: linear-gradient(
    160deg,
    rgba(44, 130, 191, 0.1),
    rgba(37, 99, 235, 0.04)
  ) !important;
  border-color: rgba(123, 195, 230, 0.2) !important;
}
.dash-card .n {
  background: linear-gradient(120deg, #fff, #b8def2) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.welcome-banner {
  background: linear-gradient(
    110deg,
    rgba(31, 103, 158, 0.3),
    rgba(59, 60, 190, 0.26)
  ) !important;
  border-color: rgba(123, 195, 230, 0.5) !important;
}
.menu-item:hover {
  padding-left: 10px;
}

/* ============================================================================
   V8 — DISEÑO REFINADO (PC / tablet / móvil)
   Solo capa visual. No toca voz IA, escáner, Supabase, Excel ni lógica.
   ============================================================================ */

/* ================= LOGIN NIVEL DIOS (animado, 100% funcional con Supabase) ================= */
.login-screen {
  overflow: hidden;
  background:
    radial-gradient(
      90% 70% at 12% 8%,
      rgba(36, 110, 172, 0.38) 0%,
      transparent 55%
    ),
    radial-gradient(
      80% 60% at 88% 92%,
      rgba(37, 99, 235, 0.32) 0%,
      transparent 55%
    ),
    radial-gradient(120% 100% at 50% 0%, #170c38 0%, #0b0622 55%, #06040f 100%) !important;
}
/* Arándanos 3D flotantes decorativos (solo CSS) */
.login-screen::before,
.login-screen::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle at 32% 28%,
    #e0d4ff 0%,
    #2c82bf 30%,
    #5b21b6 62%,
    #2e1065 100%
  );
  box-shadow:
    inset -16px -20px 36px rgba(0, 0, 0, 0.6),
    inset 9px 11px 24px rgba(255, 255, 255, 0.4),
    0 34px 64px -18px rgba(18, 73, 119, 0.85),
    0 0 56px -6px rgba(44, 130, 191, 0.6);
}
.login-screen::before {
  width: 210px;
  height: 210px;
  left: -64px;
  top: 9%;
  animation: v8float1 11s ease-in-out infinite;
}
.login-screen::after {
  width: 130px;
  height: 130px;
  right: -34px;
  bottom: 11%;
  animation: v8float2 14s ease-in-out infinite;
}
@keyframes v8float1 {
  0%,
  100% {
    transform: translateY(0) rotate(-7deg);
  }
  50% {
    transform: translateY(-38px) rotate(9deg);
  }
}
@keyframes v8float2 {
  0%,
  100% {
    transform: translateY(0) rotate(10deg);
  }
  50% {
    transform: translateY(30px) rotate(-8deg);
  }
}
/* Brillos de fondo en movimiento */
.login-screen {
  --v8glow: 1;
}
.login-screen .login-card {
  position: relative;
  z-index: 2;
}
.login-card {
  border: 1.5px solid transparent !important;
  background:
    linear-gradient(170deg, rgba(32, 18, 68, 0.92), rgba(13, 7, 30, 0.95))
      padding-box,
    linear-gradient(135deg, #2c82bf, #38bdf8 48%, #2463a4 90%) border-box !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  box-shadow:
    0 44px 100px -24px rgba(0, 0, 0, 0.9),
    0 0 70px -12px rgba(36, 110, 172, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  animation: v8cardIn 0.7s cubic-bezier(0.2, 0.9, 0.28, 1.15) both;
  overflow: hidden;
}
@keyframes v8cardIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Barrido de luz sobre la tarjeta */
.login-card::before {
  content: "";
  position: absolute;
  top: -70%;
  left: -45%;
  width: 55%;
  height: 240%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(18deg);
  animation: v8shine 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes v8shine {
  0%,
  55% {
    left: -45%;
  }
  85%,
  100% {
    left: 130%;
  }
}
.login-symbol {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  font-size: 30px;
  margin: 2px auto 4px;
  background: radial-gradient(
    circle at 32% 26%,
    #ddd0ff,
    #2c82bf 42%,
    #225985 100%
  ) !important;
  border: 1px solid rgba(233, 226, 255, 0.6) !important;
  animation: v8pulse 3s ease-in-out infinite;
}
@keyframes v8pulse {
  0%,
  100% {
    box-shadow:
      0 10px 26px -8px rgba(31, 103, 158, 0.8),
      0 0 0 0 rgba(123, 195, 230, 0.5),
      inset 0 2px 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow:
      0 10px 26px -8px rgba(31, 103, 158, 0.8),
      0 0 0 18px rgba(123, 195, 230, 0),
      inset 0 2px 0 rgba(255, 255, 255, 0.4);
  }
}
.login-card h1 {
  letter-spacing: -0.02em;
}
.login-card p {
  color: #c3b8ec !important;
}
.login-card label {
  font-weight: 700;
}
.login-card input {
  background: rgba(10, 6, 24, 0.72) !important;
  border: 1.5px solid rgba(123, 195, 230, 0.3) !important;
  border-radius: 13px !important;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.login-card input:focus {
  border-color: #7bc3e6 !important;
  box-shadow:
    0 0 0 4px rgba(44, 130, 191, 0.22),
    0 0 26px -6px rgba(44, 130, 191, 0.6) !important;
  transform: translateY(-1px);
}
.login-card .btn-primary {
  position: relative;
  overflow: hidden;
  min-height: 50px;
  font-size: 15px;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #2c82bf, #2463a4 45%, #2563eb) !important;
  border: 1px solid rgba(233, 226, 255, 0.55) !important;
  box-shadow:
    0 16px 34px -10px rgba(31, 103, 158, 0.85),
    0 0 30px -6px rgba(44, 130, 191, 0.65),
    inset 0 2px 0 rgba(255, 255, 255, 0.35) !important;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}
.login-card .btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}
.login-card .btn-primary:active {
  transform: translateY(1px) scale(0.98);
}
.login-card .btn-primary::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -80%;
  width: 45%;
  height: 220%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: rotate(18deg);
  animation: v8shine 3.4s ease-in-out infinite;
  pointer-events: none;
}
.login-card .error {
  text-align: center;
  font-weight: 600;
}

/* ============ SELECTORES: que NUNCA haya duda de cuál está elegido ============ */

/* ---- LÍNEA / SECCIÓN ---- */

/* Función -> líneas permitidas */
.line-options button:disabled {
  opacity: 0.25 !important;
  filter: grayscale(1) brightness(0.7) !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  border-style: dashed !important;
}
.line-options[data-restricted]
  button:not(:disabled):not([aria-pressed="true"]) {
  border-color: #7bc3e6 !important;
  box-shadow:
    0 0 0 1px rgba(123, 195, 230, 0.55),
    0 0 18px -4px rgba(123, 195, 230, 0.7) !important;
  color: #fff !important;
}
.line-rule-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #9fd0ea;
}
.line-rule-hint:empty {
  display: none;
}
.line-options {
  gap: 10px;
}
.line-options button {
  min-height: 56px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  position: relative;
  padding: 10px 32px 10px 12px;
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}
.line-options button:hover {
  filter: brightness(1.22);
  transform: translateY(-2px);
  border-color: rgba(184, 222, 242, 0.6) !important;
}
.line-options button:active {
  transform: scale(0.96);
}
.line-options button[aria-pressed="true"] {
  background: linear-gradient(135deg, #2c82bf, #2463a4 60%, #2563eb) !important;
  border-color: #ffffff !important;
  color: #fff !important;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.85),
    0 14px 30px -8px rgba(31, 103, 158, 0.9),
    0 0 30px -4px rgba(44, 130, 191, 0.75) !important;
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.08);
}
.line-options button[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 7px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: #225985;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* ---- TURNO (Día / Noche) ---- */
.shift-choices {
  gap: 12px;
}
.shift-choices button {
  min-height: 64px;
  font-size: 16px;
  border-radius: 16px;
  position: relative;
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.shift-choices button:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
  border-color: rgba(184, 222, 242, 0.6) !important;
}
.shift-choices button:active {
  transform: scale(0.97);
}
.shift-choices button[aria-pressed="true"] {
  background: linear-gradient(115deg, #2c82bf, #2463a4 55%, #2563eb) !important;
  border-color: #fff !important;
  color: #fff !important;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.9),
    0 16px 36px -10px rgba(31, 103, 158, 0.9),
    0 0 34px -4px rgba(44, 130, 191, 0.8) !important;
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
}
.shift-choices button[aria-pressed="true"] span {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.95));
}
.shift-choices button[aria-pressed="true"]::after {
  content: "SELECCIONADO";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.16em;
  padding: 3px 10px;
  border-radius: 99px;
  background: #fff;
  color: #225985;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

/* ---- ASISTENCIA (Presente / Falta) ---- */
.attendance-choices {
  gap: 12px;
}
.attendance-choice {
  min-height: 60px;
  font-size: 15px;
  border-radius: 14px;
  position: relative;
  transition: all 0.16s ease;
}
.attendance-choice:hover {
  transform: translateY(-2px);
  filter: brightness(1.18);
}
.attendance-choice:active {
  transform: scale(0.97);
}
.attendance-choice[aria-pressed="true"] {
  transform: translateY(-2px) scale(1.02);
}
.attendance-choice[aria-pressed="true"][data-status="presente"] {
  border-color: #a7f3d0 !important;
  color: #6ee7b7 !important;
  background: linear-gradient(
    135deg,
    rgba(52, 211, 153, 0.28),
    rgba(16, 185, 129, 0.14)
  ) !important;
  box-shadow:
    0 0 0 2px rgba(110, 231, 183, 0.85),
    0 14px 32px -10px rgba(16, 185, 129, 0.7),
    0 0 28px -4px rgba(52, 211, 153, 0.6) !important;
}
.attendance-choice[aria-pressed="true"][data-status="falta"] {
  border-color: #fecdd3 !important;
  color: #fda4af !important;
  background: linear-gradient(
    135deg,
    rgba(251, 113, 133, 0.3),
    rgba(225, 29, 72, 0.14)
  ) !important;
  box-shadow:
    0 0 0 2px rgba(254, 205, 211, 0.85),
    0 14px 32px -10px rgba(225, 29, 72, 0.7),
    0 0 28px -4px rgba(251, 113, 133, 0.6) !important;
}
.attendance-choice[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 7px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.attendance-choice[aria-pressed="true"][data-status="presente"]::after {
  color: #059669;
}
.attendance-choice[aria-pressed="true"][data-status="falta"]::after {
  color: #e11d48;
}

/* ---- CENA ---- */
.dinner-options {
  gap: 12px;
}
.dinner-options button {
  min-height: 54px;
  font-size: 14px;
  position: relative;
  border-radius: 14px;
  transition: all 0.16s ease;
}
.dinner-options button:hover {
  transform: translateY(-2px);
  filter: brightness(1.18);
}
.dinner-options button:active {
  transform: scale(0.97);
}
.dinner-options button[aria-pressed="true"] {
  transform: translateY(-2px) scale(1.02);
}
.dinner-options button[data-dinner="si"][aria-pressed="true"] {
  border-color: #a7f3d0 !important;
  color: #6ee7b7 !important;
  background: linear-gradient(
    135deg,
    rgba(52, 211, 153, 0.28),
    rgba(16, 185, 129, 0.14)
  ) !important;
  box-shadow:
    0 0 0 2px rgba(110, 231, 183, 0.85),
    0 12px 28px -10px rgba(16, 185, 129, 0.7) !important;
}
.dinner-options button[data-dinner="no"][aria-pressed="true"] {
  border-color: #fecdd3 !important;
  color: #fda4af !important;
  background: linear-gradient(
    135deg,
    rgba(251, 113, 133, 0.3),
    rgba(225, 29, 72, 0.14)
  ) !important;
  box-shadow:
    0 0 0 2px rgba(254, 205, 211, 0.85),
    0 12px 28px -10px rgba(225, 29, 72, 0.7) !important;
}
.dinner-options button[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  background: #fff;
  color: #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.dinner-selection-hint {
  display: block;
  margin-top: 9px;
  color: #aacbdd;
  font-size: 11px;
  line-height: 1.3;
}
.dinner-selection-hint[data-selected="true"] {
  color: #a1f3cf;
}
.dinner-options button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding-left: 7px !important;
  padding-right: 27px !important;
  text-align: center;
}
.dinner-options button .dinner-sticker {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid currentColor;
  flex: none;
}
.dinner-options button .dinner-sticker svg {
  width: 22px;
  height: 22px;
  display: block;
}
.dinner-options button[data-dinner="no"] .dinner-sticker {
  color: #ff9eb4;
  background: rgba(251, 113, 133, 0.13);
}
.dinner-options button[data-dinner="si"] .dinner-sticker {
  color: #83e5bd;
  background: rgba(52, 211, 153, 0.13);
}
.dinner-options button[aria-pressed="true"] .dinner-sticker {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 1px currentColor;
}

/* ---- Modo trabajador (Asistencia / DT / Renuncia) ---- */
.worker-mode button {
  transition: all 0.16s ease;
}
.worker-mode button:hover {
  filter: brightness(1.25);
}
.worker-mode button[aria-pressed="true"] {
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.75),
    0 10px 24px -8px rgba(0, 0, 0, 0.6) !important;
  transform: translateY(-1px);
}

/* ---- Selector de función ---- */
.function-toggle {
  transition: all 0.16s ease;
}
.function-toggle:hover {
  background: rgba(44, 130, 191, 0.4) !important;
  transform: translateY(-50%) scale(1.08);
}
.function-option {
  transition: background 0.12s ease;
}

/* ============ RESPONSIVE: PC / TABLET / MÓVIL ============ */

/* Tablet: hoja más ancha y cómoda, selectores en 3 columnas ya existe */
@media (min-width: 760px) {
  .sheet {
    max-width: 560px;
  }
  .add-worker-sheet {
    max-width: 640px;
  }
  .voice-sheet {
    max-width: 600px;
  }
  .line-options button {
    min-height: 60px;
    font-size: 13.5px;
  }
}

/* Móvil: dedos grandes y jerarquía clara */
@media (max-width: 620px) {
  .line-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .line-options button {
    min-height: 54px;
    font-size: 12.5px;
    padding: 9px 28px 9px 10px;
  }
  .shift-choices button {
    min-height: 58px;
    font-size: 14.5px;
  }
  .attendance-choice {
    min-height: 56px;
    font-size: 14px;
  }
  .dinner-options button {
    min-height: 50px;
    font-size: 13px;
  }
  .login-screen::before {
    width: 130px;
    height: 130px;
    left: -46px;
    top: 5%;
  }
  .login-screen::after {
    width: 90px;
    height: 90px;
    right: -26px;
    bottom: 7%;
  }
  .login-card {
    padding: 24px 20px;
  }
}
@media (max-width: 380px) {
  .line-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .line-options button {
    min-height: 50px;
    font-size: 11.5px;
  }
}

/* Detalles finales de pulido */
.field-label {
  letter-spacing: 0.08em;
}
.sheet-actions .btn-save {
  min-height: 52px;
  font-size: 13px;
}
.btn-add-person,
.filter-pill,
.staff-tab,
.stat-chip {
  transition: filter 0.15s ease;
}
.filter-pill:hover,
.staff-tab:hover,
.btn-add-person:hover {
  filter: brightness(1.25);
}

.attendance-saved-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  margin: 14px 0 7px;
  padding: 8px 12px;
  border: 1px solid #90795b;
  border-radius: 10px;
  background: rgba(158, 105, 45, 0.16);
  color: #ffe0ab;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}
.attendance-saved-state[data-state="saved"] {
  border-color: #56c79e;
  background: rgba(26, 135, 95, 0.2);
  color: #acffda;
}
.attendance-saved-state[data-state="changed"] {
  border-color: #ecc06e;
  background: rgba(157, 108, 34, 0.21);
  color: #ffe1aa;
}
.attendance-saved-state[data-state="saving"] {
  border-color: #7ab9ec;
  background: rgba(54, 124, 195, 0.18);
  color: #cae9ff;
}
.sheet-actions #saveAttendance[data-state="saved"]:not(:disabled) {
  background: #246f5c;
  border-color: #69d9a7;
  color: #edfff6;
  box-shadow: 0 0 0 2px rgba(84, 209, 153, 0.16);
}
.sheet-actions #saveAttendance[data-state="changed"]:not(:disabled),
.sheet-actions #saveAttendance[data-state="pending"]:not(:disabled) {
  background: linear-gradient(100deg, #289fd6, #4351dc);
  border-color: #85c5fb;
  color: white;
}

/* Controles compactos para la versión de presentación. La selección no equivale a guardado. */
#workerOverlay .attendance-choice,
#workerOverlay .shift-choices button {
  min-height: 46px !important;
  padding: 9px 12px !important;
  font-size: 13px !important;
  border-radius: 11px !important;
}
#workerOverlay .line-options {
  gap: 7px !important;
}
#workerOverlay .line-options button {
  min-height: 43px !important;
  padding: 7px 10px !important;
  font-size: 11.5px !important;
  border-radius: 10px !important;
}
#workerOverlay .dinner-options button {
  min-height: 44px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
}
#workerOverlay .attendance-choices,
#workerOverlay .shift-choices,
#workerOverlay .dinner-options {
  gap: 8px !important;
}
#workerOverlay .attendance-choice[aria-pressed="true"],
#workerOverlay .shift-choices button[aria-pressed="true"],
#workerOverlay .line-options button[aria-pressed="true"],
#workerOverlay .dinner-options button[aria-pressed="true"] {
  transform: none !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 0 10px rgba(44, 130, 191, 0.24) !important;
}
#workerOverlay .shift-choices button[aria-pressed="true"]::after {
  display: none !important;
}
#workerOverlay .shift-choices button span {
  font-size: 15px !important;
}
#workerOverlay .sheet-actions {
  margin-top: 12px !important;
  gap: 8px !important;
}
#workerOverlay .sheet-actions .btn {
  min-height: 44px !important;
  padding: 9px 12px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
}
#workerOverlay .sheet-actions #saveAttendance[data-state="pending"],
#workerOverlay .sheet-actions #saveAttendance[data-state="changed"] {
  background: linear-gradient(110deg, #246eac, #2463a4 58%, #2563eb) !important;
  color: white !important;
  border-color: #7bc3e6 !important;
  box-shadow: 0 5px 16px rgba(79, 70, 229, 0.34) !important;
}
#workerOverlay .sheet-actions #saveAttendance[data-state="saved"] {
  background: linear-gradient(110deg, #168263, #12a87c) !important;
  color: #fff !important;
  border-color: #7bf0bc !important;
  box-shadow: 0 0 0 2px rgba(72, 216, 153, 0.22) !important;
}
#workerOverlay .sheet-actions #saveAttendance[data-state="saving"] {
  background: #315a91 !important;
  color: #e9f5ff !important;
  border-color: #82b9ee !important;
}
#workerOverlay .attendance-saved-state {
  min-height: 34px;
  margin: 10px 0 5px !important;
  padding: 6px 10px !important;
  font-size: 11px !important;
}
@media (max-width: 620px) {
  #workerOverlay .line-options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #workerOverlay .line-options button {
    min-height: 44px !important;
    font-size: 11.5px !important;
  }
  #workerOverlay .attendance-choice,
  #workerOverlay .shift-choices button {
    min-height: 46px !important;
  }
  #workerOverlay .sheet-actions .btn {
    min-height: 44px !important;
  }
}
@media (min-width: 621px) and (max-width: 900px) {
  #workerOverlay .line-options button {
    min-height: 46px !important;
  }
}

/* Video del login: integrado en este mismo HTML */
.login-screen {
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  align-items: center;
  gap: 30px;
  padding: clamp(18px, 5vw, 70px) !important;
  background: #08091d !important;
}
.login-screen::before,
.login-screen::after {
  display: none !important;
}
.login-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  background: #08091d;
}
.login-film-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(7, 5, 21, 0.12) 0%,
      rgba(9, 7, 30, 0.25) 45%,
      rgba(8, 5, 23, 0.78) 100%
    ),
    linear-gradient(
      0deg,
      rgba(6, 4, 19, 0.56),
      transparent 30%,
      rgba(6, 4, 19, 0.3)
    );
}
.login-screen .login-card {
  grid-column: 2;
  justify-self: end;
  width: min(100%, 430px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  z-index: 2;
  background:
    linear-gradient(155deg, rgba(25, 15, 56, 0.83), rgba(9, 8, 28, 0.9))
      padding-box,
    linear-gradient(130deg, #ae8aff, #51b5ea, #2463a4) border-box !important;
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.72),
    0 0 30px rgba(94, 68, 208, 0.25) !important;
}
@media (max-width: 760px) {
  .login-screen {
    grid-template-columns: 1fr;
    place-items: center;
    padding: 18px !important;
  }
  .login-screen .login-card {
    grid-column: 1;
    justify-self: center;
    width: min(100%, 420px);
  }
  .login-film-overlay {
    background: linear-gradient(
      180deg,
      rgba(7, 5, 25, 0.52),
      rgba(7, 5, 25, 0.67)
    );
  }
  .login-video {
    object-position: 50% center;
  }
}
@media (max-width: 420px) {
  .login-screen .login-card {
    padding: 20px 17px !important;
  }
  .login-video {
    object-position: 48% center;
  }
}
.login-symbol,
.brand-mark {
  background: #fff !important;
  border: 1px solid rgba(195, 180, 255, 0.5) !important;
  overflow: hidden;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(8, 5, 37, 0.25) !important;
}
.login-symbol {
  width: 72px !important;
  height: 72px !important;
  border-radius: 17px !important;
}
.login-symbol img,
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.login-video {
  filter: brightness(0.79) saturate(0.88);
}
/* Login inspirado en la línea de arándanos */
.login-screen {
  overflow: hidden !important;
  background: #081625 !important;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px) !important;
}
.login-film-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(3, 16, 32, 0.76) 0%,
      rgba(7, 21, 37, 0.28) 43%,
      rgba(4, 16, 35, 0.68) 100%
    ),
    linear-gradient(
      0deg,
      rgba(2, 13, 30, 0.65),
      transparent 45%,
      rgba(4, 15, 32, 0.28)
    ) !important;
}
.login-story {
  position: relative;
  z-index: 2;
  grid-column: 1;
  align-self: end;
  margin: 0 0 clamp(12px, 5vh, 56px);
  max-width: 560px;
  color: #fff;
  display: grid;
  gap: 14px;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.48);
}
.login-story-tag {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(145, 213, 236, 0.55);
  background: rgba(5, 30, 49, 0.52);
  border-radius: 999px;
  padding: 9px 13px;
  color: #b6eaff;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 800;
}
.login-story strong {
  font-size: clamp(38px, 5.5vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 850;
}
.login-story > span:last-child {
  font-size: clamp(13px, 1.4vw, 17px);
  color: #d7eaf3;
  line-height: 1.45;
}
.login-screen .login-card {
  grid-column: 2;
  box-sizing: border-box;
  width: min(100%, 420px) !important;
  min-width: 0;
  max-height: none !important;
  overflow: visible !important;
  padding: clamp(22px, 2.5vw, 32px) !important;
  gap: 13px !important;
  border: 1px solid rgba(128, 206, 232, 0.42) !important;
  border-radius: 22px !important;
  background: linear-gradient(
    160deg,
    rgba(11, 33, 54, 0.91),
    rgba(6, 20, 42, 0.94)
  ) !important;
  backdrop-filter: blur(22px) saturate(1.2);
  box-shadow:
    0 28px 75px rgba(0, 10, 26, 0.64),
    inset 0 1px 0 rgba(210, 245, 255, 0.14) !important;
  color: #eff9ff;
}
.login-card h1 {
  color: #f7fcff !important;
  font-size: 22px !important;
  letter-spacing: -0.025em;
}
.login-card p {
  color: #b5d0df !important;
}
.login-card label {
  color: #d0e7f2 !important;
  font-weight: 700;
}
.login-card input {
  box-sizing: border-box;
  background: rgba(3, 14, 31, 0.75) !important;
  border: 1px solid rgba(114, 183, 210, 0.38) !important;
  color: #fff !important;
}
.login-card input:focus {
  border-color: #7dd9f1 !important;
  box-shadow: 0 0 0 3px rgba(76, 185, 218, 0.23) !important;
  transform: none !important;
}
.login-card .btn-primary {
  background: linear-gradient(110deg, #126b9b, #197bb3 60%, #194c8c) !important;
  border: 1px solid rgba(165, 230, 247, 0.65) !important;
  box-shadow:
    0 11px 25px rgba(9, 86, 141, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.18) !important;
  border-radius: 12px !important;
}
.login-card .btn-primary::after {
  display: none !important;
}
.login-card .error {
  color: #c1e4ee !important;
  font-size: 12px !important;
  line-height: 1.35;
  min-height: 0 !important;
}
.login-card .error:empty {
  display: none !important;
}
.login-symbol {
  border-color: rgba(178, 230, 243, 0.7) !important;
  box-shadow: 0 9px 26px rgba(4, 28, 47, 0.55) !important;
}
@media (max-width: 760px) {
  .login-screen {
    grid-template-columns: 1fr !important;
    place-items: center;
    padding: 18px !important;
  }
  .login-story {
    display: none;
  }
  .login-screen .login-card {
    grid-column: 1;
    width: min(100%, 420px) !important;
  }
  .login-film-overlay {
    background: linear-gradient(
      180deg,
      rgba(4, 18, 36, 0.48),
      rgba(3, 13, 29, 0.7)
    ) !important;
  }
}
@media (max-width: 420px) {
  .login-screen .login-card {
    padding: 20px !important;
  }
  .login-symbol {
    width: 60px !important;
    height: 60px !important;
  }
  .login-card h1 {
    font-size: 20px !important;
  }
}
@media (max-height: 600px) {
  .login-screen {
    overflow: auto !important;
  }
  .login-screen .login-card {
    margin: 12px 0;
  }
}
/* Identidad azul arándano en la operación */
:root {
  --bg-0: #041426;
  --bg-1: #071e36;
  --bg-2: #103354;
  --ink: #edf8ff;
  --ink-soft: #b9d6e7;
  --ink-dim: #86abc3;
  --grad-berry: linear-gradient(125deg, #1684b8, #2163aa 58%, #174b87);
  --glow-berry: 0 0 20px rgba(35, 141, 198, 0.34);
}
.bg-scene {
  background:
    radial-gradient(
      90% 60% at 50% -10%,
      rgba(26, 124, 181, 0.2),
      transparent 62%
    ),
    radial-gradient(120% 90% at 50% 0%, #0d3357, #0a2443 42%, #041426 100%) !important;
}
.orb-1 {
  background: radial-gradient(
    circle at 35% 35%,
    #146592,
    transparent 65%
  ) !important;
}
.orb-2 {
  background: radial-gradient(
    circle at 60% 40%,
    #1c5084,
    transparent 65%
  ) !important;
}
.orb-5 {
  background: radial-gradient(
    circle at 50% 50%,
    #2184a9,
    transparent 60%
  ) !important;
}
header.top {
  background: linear-gradient(
    180deg,
    rgba(7, 27, 48, 0.96),
    rgba(7, 24, 45, 0.89)
  ) !important;
  border-bottom-color: rgba(118, 194, 229, 0.26) !important;
}
header.top h1 {
  background: linear-gradient(110deg, #fff, #c5ecfa 48%, #77c9ec) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: none !important;
}
.assistant-live {
  background: linear-gradient(
    110deg,
    rgba(11, 56, 88, 0.9),
    rgba(12, 42, 76, 0.84) 58%,
    rgba(20, 85, 129, 0.72)
  ) !important;
  border-color: rgba(124, 203, 234, 0.43) !important;
  box-shadow: 0 12px 30px rgba(0, 19, 37, 0.36) !important;
}
.assistant-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 11px;
}
.assistant-quick button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(124, 203, 234, 0.42);
  border-radius: 9px;
  background: rgba(20, 85, 129, 0.3);
  color: #e7f5fc;
  font:
    700 11px Inter,
    sans-serif;
  cursor: pointer;
}
.assistant-quick button:hover,
.assistant-quick button:focus-visible {
  background: rgba(30, 117, 169, 0.55);
  outline: 2px solid rgba(124, 203, 234, 0.4);
}
.assistant-live .assistant-pulse {
  background: linear-gradient(145deg, #1597c0, #2257a1) !important;
  box-shadow: 0 0 20px rgba(39, 159, 206, 0.3) !important;
}
.roster-heading {
  background: linear-gradient(
    150deg,
    rgba(17, 68, 105, 0.72),
    rgba(9, 39, 69, 0.86)
  ) !important;
  border-color: rgba(123, 195, 230, 0.29) !important;
}
.app .person-row,
.app .person-row:nth-child(odd) {
  background: linear-gradient(
    145deg,
    rgba(13, 46, 78, 0.82),
    rgba(8, 28, 54, 0.91)
  ) !important;
  border-color: rgba(118, 188, 222, 0.2) !important;
}
.app .person-row:hover,
.app .person-row:focus-visible {
  background: linear-gradient(
    145deg,
    rgba(24, 80, 119, 0.9),
    rgba(13, 49, 84, 0.94)
  ) !important;
  border-color: rgba(143, 218, 243, 0.55) !important;
}
.app .person-row .avatar {
  background: radial-gradient(
    circle at 30% 22%,
    #a7def0,
    #3289c0 52%,
    #174a81
  ) !important;
  box-shadow:
    inset -4px -6px 12px rgba(0, 0, 0, 0.33),
    0 6px 16px rgba(6, 47, 85, 0.55) !important;
}
.bottom-bar-inner {
  background: rgba(8, 31, 55, 0.88) !important;
  border-color: rgba(118, 194, 229, 0.34) !important;
}
.sheet {
  background: linear-gradient(170deg, #123b60, #0b2a4b 58%, #071a32) !important;
  border-color: rgba(133, 205, 235, 0.35) !important;
}
.sheet-name {
  background: linear-gradient(115deg, #fff, #b7e5f8) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.search-box,
.filter-pill,
.staff-tab,
.date-row input[type="date"],
.date-row button.nav {
  background: rgba(8, 33, 59, 0.76) !important;
  border-color: rgba(124, 195, 229, 0.32) !important;
}
.filter-pill.active,
.staff-tab.active,
.btn-primary,
.date-row .today-btn {
  background: var(--grad-berry) !important;
  border-color: rgba(163, 227, 248, 0.5) !important;
  box-shadow: 0 8px 20px rgba(12, 89, 151, 0.32) !important;
}
.btn-add-person,
.staff-tabs .add-worker-shortcut {
  background: var(--grad-berry) !important;
  border-color: rgba(163, 227, 248, 0.5) !important;
  box-shadow: 0 8px 20px rgba(12, 89, 151, 0.32) !important;
}
#workerOverlay .sheet-actions #saveAttendance[data-state="pending"],
#workerOverlay .sheet-actions #saveAttendance[data-state="changed"] {
  background: var(--grad-berry) !important;
  border-color: #8dd4ef !important;
  box-shadow: 0 5px 16px rgba(13, 93, 152, 0.33) !important;
}
@media (prefers-reduced-motion: reduce) {
  .login-video {
    display: none;
  }
  .login-screen {
    background: linear-gradient(140deg, #18103a, #09061c) !important;
  }
  .login-screen .login-card {
    animation: none !important;
  }
}

/* Login polish — refined hierarchy, stronger readability, and responsive comfort. */
.login-screen {
  background: #041426 !important;
  padding: clamp(20px, 5.5vw, 88px) !important;
  gap: clamp(28px, 7vw, 110px) !important;
}
.login-video {
  filter: brightness(0.72) saturate(0.82) contrast(1.04) !important;
}
.login-film-overlay {
  background:
    radial-gradient(
      ellipse at 24% 70%,
      rgba(17, 120, 167, 0.21),
      transparent 42%
    ),
    linear-gradient(
      90deg,
      rgba(2, 13, 27, 0.18) 0%,
      rgba(3, 17, 34, 0.32) 42%,
      rgba(3, 16, 34, 0.82) 100%
    ),
    linear-gradient(
      0deg,
      rgba(2, 12, 25, 0.68),
      transparent 45%,
      rgba(3, 13, 25, 0.2)
    ) !important;
}
.login-story {
  max-width: 610px !important;
  gap: 18px !important;
  margin-bottom: clamp(16px, 6vh, 72px) !important;
}
.login-story-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px !important;
  border-color: rgba(134, 218, 241, 0.36) !important;
  background: rgba(3, 25, 43, 0.58) !important;
  color: #c9f1ff !important;
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(0, 10, 25, 0.2);
  letter-spacing: 0.13em !important;
}
.login-story-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #70e2c0;
  box-shadow: 0 0 12px rgba(112, 226, 192, 0.75);
  flex: none;
}
.login-story strong {
  font-size: clamp(46px, 6.5vw, 88px) !important;
  line-height: 0.99 !important;
  letter-spacing: -0.065em !important;
  text-shadow: 0 8px 38px rgba(0, 12, 28, 0.44);
}
.login-story > span:last-child {
  max-width: 410px;
  font-size: clamp(14px, 1.45vw, 18px) !important;
  color: #e0f0fa !important;
}
.login-screen .login-card {
  width: min(100%, 440px) !important;
  padding: clamp(28px, 3.4vw, 40px) !important;
  gap: 16px !important;
  border: 1px solid rgba(157, 222, 243, 0.31) !important;
  border-radius: 26px !important;
  background: linear-gradient(
    150deg,
    rgba(10, 36, 58, 0.93),
    rgba(5, 20, 40, 0.96) 62%,
    rgba(6, 25, 48, 0.95)
  ) !important;
  backdrop-filter: blur(26px) saturate(1.22);
  box-shadow:
    0 34px 90px rgba(0, 9, 24, 0.58),
    0 10px 34px rgba(18, 107, 150, 0.12),
    inset 0 1px 0 rgba(228, 249, 255, 0.13) !important;
  animation: loginCardIn 0.65s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
@keyframes loginCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.login-symbol {
  width: 68px !important;
  height: 68px !important;
  border-radius: 19px !important;
  padding: 7px !important;
  margin-bottom: 2px;
  border: 1px solid rgba(191, 235, 248, 0.78) !important;
  box-shadow:
    0 12px 30px rgba(1, 15, 31, 0.36),
    0 0 26px rgba(73, 172, 204, 0.13) !important;
}
.login-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 1px;
  color: #8fd7ed;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-align: center;
}
.login-kicker i {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #6de0bb;
  box-shadow: 0 0 8px rgba(109, 224, 187, 0.65);
}
.login-card h1 {
  font-size: clamp(22px, 2vw, 25px) !important;
  letter-spacing: -0.04em !important;
}
.login-card p {
  margin: 0 0 3px !important;
  color: #b8d0de !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}
.login-card label {
  gap: 8px !important;
  color: #e0edf4 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}
.login-card input {
  min-height: 51px;
  padding: 14px 15px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(133, 188, 211, 0.29) !important;
  background: rgba(2, 13, 28, 0.56) !important;
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.025);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease !important;
}
.login-card input:hover {
  border-color: rgba(147, 213, 235, 0.49) !important;
  background: rgba(3, 17, 34, 0.72) !important;
}
.login-card input:focus {
  border-color: #74d9f0 !important;
  background: rgba(3, 17, 34, 0.82) !important;
  box-shadow:
    0 0 0 4px rgba(57, 172, 205, 0.17),
    0 0 24px rgba(45, 158, 194, 0.09) !important;
  outline: none;
}
.login-card .btn-primary {
  min-height: 53px !important;
  margin-top: 3px;
  border-radius: 14px !important;
  background: linear-gradient(
    110deg,
    #1688b3 0%,
    #176da7 54%,
    #2153a0 100%
  ) !important;
  border: 1px solid rgba(176, 231, 247, 0.56) !important;
  box-shadow:
    0 13px 28px rgba(6, 75, 121, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.23) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.025em;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease !important;
}
.login-card .btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow:
    0 17px 32px rgba(6, 75, 121, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
.login-card .btn-primary:active {
  transform: translateY(0) scale(0.99);
}
.login-card .error:not(:empty) {
  padding: 10px 12px;
  border: 1px solid rgba(248, 113, 133, 0.28);
  border-radius: 11px;
  background: rgba(127, 29, 48, 0.17);
  color: #ffd1d9 !important;
}
.login-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
  color: #94b3c4;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}
.login-footnote-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55d6ae;
  box-shadow: 0 0 10px rgba(85, 214, 174, 0.55);
  flex: none;
}
.login-card :focus-visible,
.login-screen :focus-visible {
  outline: 2px solid #8be3f4;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .login-screen {
    padding: 18px !important;
  }
  .login-film-overlay {
    background: linear-gradient(
      180deg,
      rgba(3, 17, 34, 0.42),
      rgba(3, 15, 31, 0.78)
    ) !important;
  }
  .login-screen .login-card {
    width: min(100%, 430px) !important;
    padding: clamp(24px, 7vw, 34px) !important;
  }
}
@media (max-width: 420px) {
  .login-screen {
    padding: 14px !important;
  }
  .login-screen .login-card {
    gap: 14px !important;
    border-radius: 22px !important;
  }
  .login-symbol {
    width: 60px !important;
    height: 60px !important;
    border-radius: 16px !important;
  }
  .login-card h1 {
    font-size: 21px !important;
  }
  .login-kicker {
    font-size: 9px;
    letter-spacing: 0.14em;
  }
}
@media (max-height: 620px) {
  .login-screen {
    overflow-y: auto !important;
    align-items: center !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  .login-screen .login-card {
    max-height: calc(100dvh - 32px) !important;
    overflow-y: auto !important;
  }
  .login-story {
    margin-bottom: 18px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .login-screen .login-card {
    animation: none !important;
  }
  .login-card .btn-primary,
  .login-card input {
    transition: none !important;
  }
}
.function-picker .function-options {
  padding: 7px !important;
  max-height: min(300px, 43dvh);
  border: 1px solid rgba(116, 198, 236, 0.58) !important;
  border-radius: 16px !important;
  background: linear-gradient(160deg, #092c4d, #0e3659) !important;
  box-shadow:
    0 20px 45px rgba(0, 13, 32, 0.6),
    inset 0 1px rgba(255, 255, 255, 0.1) !important;
  scrollbar-color: #57aee3 #0b3152;
}
.function-options-head {
  position: sticky;
  top: -7px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: -7px -7px 5px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(151, 207, 236, 0.2);
  background: #0a2d4c;
  color: #ddf4ff;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.function-options-head span {
  color: #9fcee8;
  font-size: 10px;
  white-space: nowrap;
}
.function-picker .function-option {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  margin: 2px 0;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}
.function-picker .function-option::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6dbde4;
  box-shadow: 0 0 8px rgba(109, 189, 228, 0.35);
}
.function-picker .function-option:hover,
.function-picker .function-option:focus-visible {
  border-color: rgba(116, 198, 236, 0.35);
  background: #18517a !important;
}
.function-picker .function-option[aria-selected="true"] {
  border-color: rgba(113, 227, 183, 0.5);
  background: rgba(39, 155, 116, 0.2);
  color: #e4fff3;
}
.function-picker .function-option[aria-selected="true"]::after {
  content: "✓";
  margin-left: auto;
  color: #80e6ba;
  font-size: 15px;
}
@media (max-width: 620px) {
  .function-picker .function-options {
    max-height: min(260px, 38dvh);
  }
  .function-picker .function-option {
    min-height: 45px;
    font-size: 12px;
  }
}
.validation-dashboard {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 20px 18px 120px;
}
.validation-dashboard[hidden] {
  display: none;
}
.vd-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}
.vd-head small {
  font-size: 10px;
  letter-spacing: 0.17em;
  color: #82cee9;
  font-weight: 800;
}
.vd-head h2 {
  margin: 5px 0;
  font: 800 clamp(22px, 3vw, 31px) var(--font-display);
}
.vd-head p,
.vd-note {
  color: #a8c6dc;
  font-size: 12px;
  line-height: 1.5;
  margin: 5px 0;
}
.vd-controls {
  display: flex;
  align-items: end;
  gap: 9px;
  flex-wrap: wrap;
}
.vd-controls label {
  display: grid;
  gap: 4px;
  color: #b6d2e4;
  font-size: 11px;
}
.vd-controls .input {
  min-height: 42px;
  min-width: 150px;
}
.vd-controls .btn {
  min-height: 42px;
}
.vd-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}
.vd-metric,
.vd-card {
  background: linear-gradient(
    145deg,
    rgba(16, 54, 85, 0.88),
    rgba(7, 33, 64, 0.94)
  );
  border: 1px solid rgba(118, 190, 225, 0.27);
  border-radius: 15px;
  box-shadow: 0 12px 32px rgba(0, 13, 31, 0.2);
}
.vd-metric {
  padding: 14px;
  min-width: 0;
}
.vd-metric small {
  display: block;
  color: #adcfe1;
  font-size: 11px;
}
.vd-metric strong {
  display: block;
  font: 800 24px var(--font-display);
  margin-top: 7px;
}
.vd-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}
.vd-card {
  padding: 17px;
  min-width: 0;
}
.vd-card h3 {
  font: 800 15px var(--font-display);
  margin: 0 0 16px;
}
.vd-bar-row {
  display: grid;
  grid-template-columns: minmax(125px, 230px) minmax(50px, 1fr) 32px;
  align-items: center;
  gap: 11px;
  margin: 8px 0;
}
.vd-bar-label {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.vd-bar-label strong {
  font-size: 11px;
  color: #eaf7ff;
}
.vd-bar-label span {
  font-size: 10px;
  color: #a7c7db;
  overflow-wrap: anywhere;
}
.vd-bar-track {
  height: 13px;
  border-radius: 30px;
  background: rgba(8, 27, 50, 0.75);
  overflow: hidden;
}
.vd-bar-track i {
  display: block;
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(90deg, #259cd3, #71d2ed);
}
.vd-bar-row b {
  font-size: 12px;
  text-align: right;
}
.vd-pie-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 220px;
}
.vd-pie {
  --dinner-pct: 0%;
  display: grid;
  place-items: center;
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #103451 0 45%, transparent 46%),
    conic-gradient(#49c7dd 0 var(--dinner-pct), #f2a452 var(--dinner-pct) 100%);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  padding: 37px;
}
.vd-pie-layout #dashboardDinnerLegend {
  display: grid;
  gap: 11px;
  font-size: 12px;
}
.vd-pie-layout #dashboardDinnerLegend div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.vd-pie-layout #dashboardDinnerLegend strong {
  margin-left: auto;
}
.vd-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.vd-dot.yes {
  background: #49c7dd;
}
.vd-dot.no {
  background: #f2a452;
}
.vd-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vd-card-head h3 {
  margin-bottom: 5px;
}
#dashboardValidationStatus {
  font-size: 11px;
  font-weight: 800;
  color: #8ce5bd;
}
#dashboardValidationStatus[data-state="issue"] {
  color: #ffc979;
}
.vd-table-wrap {
  overflow: auto;
  max-height: 420px;
  margin-top: 13px;
  border: 1px solid rgba(128, 192, 224, 0.2);
  border-radius: 10px;
}
.vd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  min-width: 850px;
}
.vd-table th {
  position: sticky;
  top: 0;
  background: #14426b;
  color: #e8f5ff;
  text-align: left;
  z-index: 1;
}
.vd-table th,
.vd-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(134, 191, 220, 0.13);
}
.vd-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}
.vd-issue {
  color: #ffc979;
  font-weight: 700;
}
.vd-ok {
  color: #8ce5bd;
  font-weight: 800;
}
.vd-empty {
  color: #aacbdd;
  font-size: 12px;
}
.vd-note {
  margin: 4px 0;
}
@media (max-width: 850px) {
  .vd-grid {
    grid-template-columns: 1fr;
  }
  .vd-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .vd-head {
    align-items: start;
    flex-direction: column;
  }
  .vd-controls {
    width: 100%;
  }
  .vd-controls .btn {
    flex: 1;
  }
}
@media (max-width: 520px) {
  .validation-dashboard {
    padding: 14px 10px 100px;
  }
  .vd-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vd-card {
    padding: 13px;
  }
  .vd-bar-row {
    grid-template-columns: minmax(85px, 150px) minmax(40px, 1fr) 23px;
    gap: 6px;
  }
  .vd-pie-layout {
    flex-wrap: wrap;
  }
  .vd-controls .btn {
    flex-basis: 100%;
  }
}

/* La vista activa debe ocultar el padrón inmediatamente, incluso con el estilo de lista forzado. */
.app #people[hidden] {
  display: none !important;
}
#workerOverlay .dinner-options button {
  padding-left: 7px !important;
  padding-right: 25px !important;
}
.scan-draft-note {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(105, 217, 167, 0.72);
  border-radius: 12px;
  background: rgba(21, 120, 91, 0.24);
  color: #d9ffef;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}
.scan-draft-note[hidden] {
  display: none !important;
}
@media (min-width: 701px) and (max-width: 1024px) {
  #workerOverlay .function-picker .function-options {
    position: static !important;
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ===== v15 · Reporte de horas ===== */
.hrx[hidden],
.hr-workspace[hidden] {
  display: none !important;
}
.hrx-modes {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin: 0 0 14px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
}
.hrx-modes button,
.hrx-seg button,
.hrx-presets button,
.hrx-actions button,
#hrxCopy {
  font: 600 13px var(--font-body);
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  min-height: 40px;
}
.hrx-modes button[aria-pressed="true"],
.hrx-seg button[aria-pressed="true"] {
  background: var(--grad-berry);
  color: #fff;
  box-shadow: var(--glow-berry);
}
.hrx-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}
.hrx-filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font: 600 11px var(--font-body);
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hrx-filters .input {
  min-height: 42px;
}
.hrx-presets {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hrx-presets button,
.hrx-actions button,
#hrxCopy {
  background: var(--glass-2);
  border-color: var(--stroke);
}
.hrx-presets button:hover,
.hrx-actions button:hover,
#hrxCopy:hover {
  border-color: var(--berry-3);
  color: #fff;
}
.hrx-grow {
  grid-column: span 2;
}
.hrx-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 6px 0 12px;
}
.hrx-seg {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 12px;
}
.hrx-status {
  flex: 1;
  min-width: 160px;
  font-size: 12px;
  color: var(--ink-dim);
}
.hrx-actions {
  display: flex;
  gap: 6px;
}
.hrx-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.hrx-kpi {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px 14px;
}
.hrx-kpi span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hrx-kpi strong {
  font: 700 24px var(--font-display);
  color: var(--ink);
}
.hrx-kpi.warn {
  border-color: var(--amber);
}
.hrx-kpi.warn strong {
  color: var(--amber);
}
.hrx-kpi.ok strong {
  color: var(--leaf);
}
.hrx-table-wrap {
  overflow: auto;
  max-height: 62vh;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: var(--glass);
}
.hrx-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  color: var(--ink);
}
.hrx-table th {
  position: sticky;
  top: 0;
  background: var(--bg-2);
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  z-index: 1;
}
.hrx-table th.sorted {
  color: var(--berry-3);
}
.hrx-table td {
  padding: 9px 12px;
  border-top: 1px solid var(--stroke);
  white-space: nowrap;
}
.hrx-table tbody tr:hover {
  background: var(--glass-2);
}
.hrx-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hrx-table td.warn {
  color: var(--amber);
  font-weight: 700;
}
.hrx-table tfoot td {
  position: sticky;
  bottom: 0;
  background: var(--bg-2);
  font-weight: 700;
}
.hrx-empty {
  text-align: center;
  color: var(--ink-dim);
  padding: 28px !important;
}
.hrx-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-soft);
}
.hrx-summary .warn {
  color: var(--amber);
  font-weight: 700;
}
.hr-line-card.hrx-warn {
  border-color: var(--amber) !important;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35);
}
.hrx-badge {
  font: 700 11px var(--font-body);
  padding: 3px 8px;
  border-radius: 99px;
  margin-left: auto;
}
.hrx-badge[data-s="ok"] {
  background: var(--leaf-bg);
  color: var(--leaf);
}
.hrx-badge[data-s="warn"] {
  background: rgba(251, 191, 36, 0.16);
  color: var(--amber);
}
@media (max-width: 640px) {
  .hrx-grow {
    grid-column: 1/-1;
  }
  .hrx-actions {
    width: 100%;
  }
  .hrx-actions button {
    flex: 1;
  }
}

/* Filtro de áreas del dashboard: selección visible y desplazamiento en móvil. */
#validationDashboard #dashboardArea {
  display: none !important;
}
.vd-area-filter {
  margin: 0 0 18px;
  padding: 15px;
  border: 1px solid rgba(128, 179, 241, 0.28);
  border-radius: 18px;
  background: linear-gradient(120deg, #102746, #101b38);
}
.vd-area-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.vd-area-heading > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #9fd8ff;
}
.vd-area-heading small {
  font-size: 12px;
  color: #b6cce5;
}
.vd-area-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vd-area-buttons button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid #365174;
  border-radius: 13px;
  background: #11233e;
  color: #cbdcf0;
  cursor: pointer;
  font: 600 13px var(--font-body, system-ui);
  white-space: nowrap;
  flex: 0 0 auto;
}
.vd-area-buttons button[aria-pressed="true"] {
  background: linear-gradient(120deg, #4762df, #7354d8);
  border-color: #a4b6ff;
  color: #fff;
  box-shadow: 0 4px 12px #171d5c66;
}
.vd-area-buttons button:focus-visible {
  outline: 2px solid #a4dfff;
  outline-offset: 3px;
}
.vd-area-buttons .vd-area-count {
  min-width: 23px;
  padding: 3px 6px;
  border-radius: 8px;
  background: #ffffff12;
  font-size: 11px;
  text-align: center;
}
.vd-area-buttons button[aria-pressed="true"] .vd-area-count {
  background: #ffffff26;
}
@media (max-width: 700px) {
  .vd-area-filter {
    padding: 12px;
    border-radius: 15px;
  }
  .vd-area-heading {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }
  .vd-area-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 1px 7px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .vd-area-buttons button {
    min-height: 44px;
    font-size: 12px;
  }
}

#areaCompletionControls[hidden],
#areaValidationPanel[hidden] {
  display: none !important;
}
.av-submit {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1240px;
  margin: 0 auto 8px;
  background: #122340;
  border: 1px solid #546ca0;
  border-radius: 14px;
  padding: 10px 14px;
}
.av-submit > div {
  flex: 1;
  min-width: 0;
}
.av-submit strong {
  display: block;
  color: #e6ecff;
  font-size: 13px;
}
.av-submit small {
  display: block;
  color: #bfd0e5;
  font-size: 11px;
  margin-top: 4px;
}
.av-submit small[data-state="ok"] {
  color: #80f0bd;
}
.av-submit label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #cbdcf2;
}
.av-submit select {
  background: #0c1b33;
  color: #fff;
  border: 1px solid #526588;
  border-radius: 10px;
  padding: 8px;
  min-height: 42px;
}
.av-submit .btn {
  min-height: 44px;
  height: auto !important;
  flex: 0 0 auto;
  width: auto !important;
  padding: 10px 16px !important;
}

.av-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}
.av-card {
  padding: 18px;
  border: 1px solid #365575;
  border-radius: 18px;
  background: #10213a;
}
.av-card h3 {
  color: #e4ecff;
  margin: 0 0 12px;
  font-size: 17px;
}
.av-turn {
  padding: 13px;
  border: 1px solid #344764;
  border-radius: 12px;
  margin-top: 9px;
  background: #0b192c;
}
.av-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.av-status span {
  padding: 5px 8px;
  border-radius: 8px;
  background: #26364d;
  color: #c1cede;
}
.av-turn[data-state="complete"] .av-status span {
  background: #123e35;
  color: #8ff5be;
}
.av-turn[data-state="changed"] .av-status span {
  background: #49331b;
  color: #ffcd7d;
}
.av-turn p {
  font-size: 12px;
  color: #b6c9de;
  line-height: 1.5;
  margin: 10px 0 5px;
}
.av-turn small {
  color: #8ba8c4;
  font-size: 11px;
}
@media (max-width: 600px) {
  .av-submit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }
  .av-submit > div {
    grid-column: 1/-1;
  }
  .av-submit .btn {
    width: 100% !important;
    min-width: 0;
    font-size: 12px;
  }
  .av-submit label {
    min-width: 0;
  }
  .av-submit select {
    min-width: 0;
  }
}

html[data-account-role="supervisor"] #viewDt,
html[data-account-role="supervisor"] #startDt,
html[data-account-role="supervisor"] #startResignation {
  display: none !important;
}
#areaCompletionOverlay .sheet {
  max-width: 620px;
}
#areaCompletionOverlay .av-submit {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
#areaCompletionOverlay .av-submit label {
  justify-content: space-between;
}
#areaCompletionOverlay .av-submit select {
  min-width: 140px;
}
#areaCompletionOverlay .av-submit .btn {
  width: 100% !important;
  justify-content: center;
}

/* Horarios por línea */
.hr-input {
  width: 100%;
  min-width: 104px;
  padding: 8px 10px;
}
.hr-count {
  white-space: nowrap;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
#horariosNote[data-live="true"] {
  color: var(--leaf);
}
#scheduleHint {
  display: block;
  margin-top: 8px;
  color: var(--berry-3);
  font-weight: 600;
}
#horariosPanel .vd-table th {
  text-align: center;
}
#horariosPanel .vd-table td:first-child {
  white-space: nowrap;
}
.hr-cell {
  width: 100%;
  min-width: 112px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid rgba(108, 181, 218, 0.45);
  border-radius: 12px;
  background: #0b2945;
  color: #e8f7ff;
  font: 800 14px var(--font-body);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.hr-cell:hover,
.hr-cell:focus-visible {
  background: #15527a;
  border-color: #8cddfa;
  outline: none;
}
.hr-cell.empty {
  font-size: 12px;
  color: #b2cfe0;
  font-weight: 600;
}
.hr-cell.has-time {
  border-color: rgba(102, 224, 180, 0.65);
  background: #103d50;
  color: #a6f2d3;
}
#horariosPanel .vd-table td {
  padding: 7px 9px;
}
#horariosPanel .vd-table {
  min-width: 700px;
}
.hr-editor-sheet {
  max-width: 460px;
}
.hr-editor-header {
  margin-bottom: 18px;
}
.hr-editor-kicker {
  font-size: 11px;
  letter-spacing: 0.13em;
  color: #8fd9f8;
  font-weight: 800;
}
.hr-editor-header h3 {
  font: 800 22px var(--font-display);
  margin: 6px 0;
}
.hr-editor-subtitle {
  color: #b8d5e8;
  font-size: 13px;
}
.hr-editor-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hr-editor-fields > div {
  display: grid;
  gap: 8px;
}
.hr-editor-fields label {
  color: #d0e8f6;
  font-size: 12px;
  font-weight: 800;
}
.hr-editor-fields .input {
  width: 100%;
  min-width: 0;
  height: 54px;
  text-align: center;
  font-size: 19px !important;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.hr-editor-fields .now-button {
  border: 1px solid rgba(124, 201, 239, 0.48);
  border-radius: 10px;
  background: #123954;
  color: #c9ebfc;
  min-height: 40px;
  font-weight: 700;
  cursor: pointer;
}
.hr-editor-note {
  font-size: 12px;
  line-height: 1.5;
  color: #a9ccdf;
  margin: 16px 0;
}
.hr-editor-status {
  min-height: 20px;
  color: #ffd18c;
  font-size: 12px;
  margin: 8px 0;
}
.hr-editor-actions {
  display: flex;
  gap: 10px;
}
.hr-editor-actions .btn {
  flex: 1;
  min-height: 46px;
}
.hr-editor-clear {
  border: 0;
  background: transparent;
  color: #bcd8e8;
  text-decoration: underline;
  cursor: pointer;
  margin: 12px 0 0;
  padding: 8px;
}
@media (max-width: 380px) {
  .hr-editor-fields {
    gap: 8px;
  }
  .hr-editor-fields .input {
    font-size: 17px !important;
  }
  .hr-editor-actions .btn {
    font-size: 12px;
  }
}
#horariosPanel .hr-day-head {
  background: #174c70;
  color: #aee8ff;
  border-bottom: 2px solid #59c8ee;
}
#horariosPanel .hr-night-head {
  background: #332b62;
  color: #e5d5ff;
  border-bottom: 2px solid #b9a3f9;
}
#horariosPanel .hr-cell[data-hs="dia"] {
  border-color: rgba(89, 200, 238, 0.48);
}
#horariosPanel .hr-cell[data-hs="noche"] {
  border-color: rgba(184, 163, 249, 0.52);
  background: #1b2950;
}
#horariosPanel .hr-cell[data-hs="noche"].has-time {
  background: #30345b;
  color: #eee0ff;
  border-color: #b9a3f9;
}
.hr-editor-sheet {
  border-top: 3px solid #60c8ef;
}
.hr-editor-sheet[data-shift="noche"] {
  border-top-color: #b9a3f9;
  background: linear-gradient(160deg, #25244c, #142744 58%, #0b2039) !important;
}
.hr-editor-sheet[data-shift="dia"] {
  background: linear-gradient(160deg, #124365, #123555 58%, #0b2039) !important;
}
.hr-editor-sheet[data-shift="noche"] .hr-editor-kicker {
  color: #d1baff;
}
.hr-editor-sheet[data-shift="noche"] .now-button {
  border-color: #a899e4;
  background: #292d55;
  color: #e9dfff;
}
.hr-editor-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #69c8e8;
  border-radius: 999px;
  background: rgba(46, 170, 210, 0.17);
  color: #b3edff;
  font-weight: 800;
}
.hr-editor-sheet[data-shift="noche"] .hr-editor-subtitle {
  border-color: #b9a3f9;
  background: rgba(144, 114, 222, 0.18);
  color: #ecdcff;
}
.hr-editor-sheet[data-shift="noche"] #saveHorarioEditor {
  background: linear-gradient(100deg, #7050bc, #4d65bb);
  border-color: #bdabff;
}
.hr-workspace {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(155deg, #103c5b, #092842);
  border: 1px solid rgba(99, 207, 244, 0.44);
  box-shadow: 0 16px 34px rgba(0, 13, 31, 0.2);
}
.hr-workspace[data-shift="noche"] {
  background: linear-gradient(155deg, #272951, #102541);
  border-color: rgba(185, 163, 249, 0.55);
}
.hr-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hr-shift-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 15px;
  background: #071f34;
  border: 1px solid rgba(130, 187, 223, 0.3);
}
.hr-shift-tabs button {
  min-width: 105px;
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #aac9df;
  font: 800 14px var(--font-body);
  cursor: pointer;
}
.hr-shift-tabs button[aria-pressed="true"][data-hor-shift="dia"] {
  color: #062439;
  background: #75d9fa;
}
.hr-shift-tabs button[aria-pressed="true"][data-hor-shift="noche"] {
  color: #20173e;
  background: #d4c0ff;
}
.hr-date-pill {
  padding: 9px 13px;
  border: 1px solid rgba(130, 197, 226, 0.45);
  border-radius: 999px;
  color: #d5eefd;
  font-size: 12px;
  font-weight: 800;
}
.hr-workspace-title {
  font: 800 20px var(--font-display);
  margin: 19px 0 13px;
  color: #bdeeff;
}
.hr-workspace[data-shift="noche"] .hr-workspace-title {
  color: #e3d4ff;
}
.hr-line-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.hr-line-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(120, 191, 226, 0.35);
  background: rgba(6, 27, 48, 0.56);
  border-radius: 14px;
}
.hr-workspace[data-shift="noche"] .hr-line-card {
  border-color: rgba(184, 163, 249, 0.38);
}
.hr-line-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.hr-line-card-head strong {
  font-size: 14px;
  color: #edf8ff;
}
.hr-line-card-head small {
  font-size: 11px;
  color: #a9cddd;
  white-space: nowrap;
}
.hr-card-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hr-time-slot {
  min-width: 0;
}
.hr-time-slot span {
  display: block;
  color: #9ebfd4;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.hr-time-slot .hr-cell {
  min-width: 0;
  min-height: 43px;
}
.hr-workspace[data-shift="noche"] .hr-cell {
  border-color: rgba(185, 163, 249, 0.58);
}
.hr-history-open {
  min-height: 42px;
  white-space: nowrap;
}
.hr-history-sheet {
  max-width: 690px;
}
.hr-history-description {
  font-size: 12px;
  color: #b9d3e4;
  margin: 6px 0 18px;
}
.hr-history-date-label {
  display: grid;
  gap: 8px;
  color: #cee8f6;
  font-size: 12px;
  font-weight: 800;
}
.hr-history-date-label .input {
  max-width: 240px;
  min-height: 45px;
}
.hr-history-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin: 14px 0;
  max-height: 48vh;
  overflow: auto;
}
.hr-history-group {
  min-width: 0;
  padding: 13px;
  border: 1px solid #5abddf;
  border-radius: 14px;
  background: rgba(25, 103, 146, 0.15);
}
.hr-history-group.noche {
  border-color: #ae96ea;
  background: rgba(96, 72, 152, 0.19);
}
.hr-history-group h4 {
  margin: 0 0 11px;
  font-size: 15px;
  color: #bdefff;
}
.hr-history-group.noche h4 {
  color: #e4d4ff;
}
.hr-history-item {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(173, 219, 239, 0.2);
  padding: 9px 0;
  font-size: 12px;
}
.hr-history-item strong {
  color: #f1f9ff;
}
.hr-history-item span {
  color: #a8e4cf;
  font-weight: 800;
}
.hr-history-group.noche .hr-history-item span {
  color: #d9c8ff;
}
.hr-history-empty {
  color: #adcadd;
  font-size: 12px;
}
.hr-history-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hr-history-actions button {
  min-height: 50px;
  border-radius: 12px;
  border: 1px solid #75d9fa;
  background: #145275;
  color: #eafaff;
  font-weight: 900;
  cursor: pointer;
}
.hr-history-actions button[data-open-shift="noche"] {
  border-color: #c8b3ff;
  background: #3c356d;
  color: #f4eaff;
}
.hr-history-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 720px) {
  .hr-line-list {
    grid-template-columns: 1fr;
  }
  .hr-history-results {
    grid-template-columns: 1fr;
  }
  .hr-workspace {
    padding: 12px;
  }
  .hr-toolbar {
    align-items: stretch;
  }
  .hr-shift-tabs {
    width: 100%;
  }
  .hr-shift-tabs button {
    flex: 1;
  }
  .hr-history-open {
    width: 100%;
  }
  .hr-history-actions {
    grid-template-columns: 1fr;
  }
}
.hr-editor-banner {
  padding: 11px 13px;
  border-radius: 12px;
  background: #207da5;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.hr-editor-sheet[data-shift="noche"] .hr-editor-banner {
  background: #7152ad;
}
.hr-editor-review {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(136, 205, 238, 0.5);
  background: rgba(3, 21, 37, 0.4);
  margin: 16px 0;
  color: #dbf2ff;
  font-size: 12px;
}
.hr-editor-sheet[data-shift="noche"] .hr-editor-review {
  border-color: rgba(185, 163, 249, 0.55);
}
.hr-editor-review strong {
  font-size: 13px;
  color: #fff;
}
.hr-count-button {
  border: 1px solid rgba(124, 207, 239, 0.52);
  border-radius: 999px;
  background: rgba(40, 135, 176, 0.18);
  color: #c7edff;
  padding: 7px 11px;
  min-height: 34px;
  font: 800 12px var(--font-body);
  cursor: pointer;
  white-space: nowrap;
}
.hr-count-button:hover,
.hr-count-button:focus-visible {
  background: #1a6387;
  outline: 2px solid #8ee7ff;
  outline-offset: 2px;
}
.hr-workspace[data-shift="noche"] .hr-count-button {
  border-color: #ab9be4;
  background: rgba(129, 100, 204, 0.18);
  color: #e9dbff;
}
.hr-roster-sheet {
  max-width: 560px;
}
.hr-roster-summary {
  color: #b8d5e8;
  font-size: 13px;
  margin: 4px 0 16px;
}
.hr-roster-list {
  max-height: min(55vh, 520px);
  overflow: auto;
  display: grid;
  gap: 8px;
}
.hr-roster-person {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  border: 1px solid rgba(121, 191, 226, 0.32);
  border-radius: 13px;
  background: #0c2b47;
  padding: 10px;
}
.hr-roster-avatar {
  height: 42px;
  width: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #1d698d;
  color: #fff;
  font-weight: 900;
}
.hr-roster-person strong {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.35;
  color: #f0faff;
}
.hr-roster-person span {
  display: block;
  margin-top: 4px;
  color: #b4d7eb;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.hr-roster-empty {
  border: 1px dashed #648daa;
  border-radius: 13px;
  padding: 18px;
  color: #bdd8e9;
  text-align: center;
}
.hr-roster-sheet[data-shift="noche"] {
  border-top: 3px solid #b9a3f9;
  background: linear-gradient(160deg, #25244c, #142744 58%, #0b2039) !important;
}
.hr-roster-sheet[data-shift="noche"] .hr-roster-avatar {
  background: #6852a9;
}
.hr-line-name {
  min-height: 34px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #edf8ff;
  text-align: left;
  font: 800 14px var(--font-body);
  cursor: pointer;
  padding: 4px 0;
  overflow-wrap: anywhere;
}
.hr-line-name:hover,
.hr-line-name:focus-visible {
  color: #8ee7ff;
  text-decoration: underline;
  outline-offset: 3px;
}
.hr-workspace[data-shift="noche"] .hr-line-name:hover,
.hr-workspace[data-shift="noche"] .hr-line-name:focus-visible {
  color: #e4d4ff;
}
.hr-pick-panel {
  border: 1px solid #78cfe9;
  border-radius: 14px;
  padding: 12px;
  margin: 14px 0;
  background: rgba(14, 69, 102, 0.42);
}
.hr-pick-panel[data-shift="noche"] {
  border-color: #bba9f0;
  background: rgba(69, 49, 115, 0.42);
}
.hr-pick-panel[hidden] {
  display: none !important;
}
.hr-pick-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #e7f7ff;
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 11px;
}
.hr-pick-back {
  background: transparent;
  border: 1px solid #7fadc8;
  border-radius: 9px;
  color: #d9effa;
  padding: 8px 10px;
  cursor: pointer;
}
.hr-pick-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.hr-pick-lines button {
  min-height: 44px;
  border: 1px solid #69bee1;
  border-radius: 11px;
  background: #104269;
  color: #f1fbff;
  font-weight: 800;
  cursor: pointer;
  padding: 8px;
}
.hr-pick-lines button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.hr-pick-panel[data-shift="noche"] .hr-pick-lines button {
  border-color: #bca9f5;
  background: #343164;
}
.hr-pick-lines button:hover,
.hr-pick-lines button:focus-visible {
  outline: 2px solid #e2f4ff;
  outline-offset: 1px;
}
.hr-pick-status {
  min-height: 17px;
  color: #ffd495;
  font-size: 12px;
  margin-top: 9px;
}
@media (max-width: 450px) {
  .hr-pick-lines {
    grid-template-columns: 1fr;
  }
}
/* assets/css/mobile.css */
/* Ajustes para iPhone y Android. Cargado después del tema principal. */
button,
[role="button"],
.btn,
.staff-tab,
.filter-pill {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  -webkit-appearance: none;
  appearance: none;
}
button:disabled {
  cursor: not-allowed;
}
.bottom-bar-inner.backend-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.bottom-bar-inner.backend-actions .btn {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  margin: 0;
  padding: 8px 10px;
  line-height: 1.15;
  white-space: normal;
  text-align: center;
}
@media (max-width: 700px) {
  .login-video {
    object-position: 42% center;
  }
  .app,
  header.top,
  .search-wrap,
  .list,
  .bottom-bar {
    min-width: 0;
  }
  .date-row {
    min-width: 0;
  }
  .date-row input[type="date"] {
    min-width: 0;
    flex: 1 1 130px;
    font-size: 16px !important;
  }
  .date-row button {
    flex-shrink: 0;
  }
  .search-box input,
  .input,
  .login-card input,
  select,
  textarea {
    font-size: 16px !important;
  }
  .bottom-bar {
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) !important;
  }
  .bottom-bar-inner {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 6px !important;
    max-width: 100% !important;
  }
  .bottom-bar .btn {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 8px 5px !important;
    font-size: clamp(9px, 2.6vw, 11px) !important;
    letter-spacing: 0 !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .sheet {
    max-width: 100% !important;
    max-height: calc(
      100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px
    ) !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sheet-actions {
    min-width: 0;
  }
  .sheet-actions .btn {
    min-width: 0;
    white-space: normal;
  }
  #workerOverlay .line-options button {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 360px) {
  .bottom-bar .btn {
    font-size: 9px !important;
    padding-inline: 3px !important;
  }
  .date-row {
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .login-video {
    display: none !important;
  }
}

/* La barra del tareador solo contiene exportar día y cerrar día. */
.bottom-bar.tareador-mode .bottom-bar-inner {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.bottom-bar.tareador-mode .btn {
  min-width: 0 !important;
}

/* El padrón se dibuja por bloques para no saturar teléfonos modestos. */
.roster-more {
  display: block;
  width: min(360px, 100%);
  min-height: 44px;
  margin: 14px auto 6px;
  padding: 10px 18px;
  border: 1px solid #73b5d0;
  border-radius: 10px;
  background: #183d57;
  color: #eefaff;
  font: 700 13px var(--font-body);
  cursor: pointer;
}
.roster-more:focus-visible {
  outline: 2px solid #91e0ba;
  outline-offset: 2px;
}

/* Las fuentes, filtros y video se simplifican en móviles o con ahorro de datos. */
@media (max-width: 700px) {
  :root {
    --font-display:
      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-body:
      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  }
  .bg-scene,
  .berry3d,
  .grain,
  .stars,
  .dust,
  .comet,
  .horizon {
    display: none !important;
  }
  .login-video {
    object-position: 42% center;
  }
  .app .person-row {
    content-visibility: auto;
    contain-intrinsic-size: 0 70px;
  }
  .sheet,
  .login-card,
  .assistant-live,
  .vd-card,
  .vd-metric,
  .bottom-bar-inner,
  .filter-pill,
  .staff-tab,
  .btn {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .bottom-bar-inner {
    min-width: 0 !important;
  }
  .bottom-bar .btn {
    box-sizing: border-box !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    line-height: 1.15 !important;
  }
  .bottom-bar .btn[hidden],
  .staff-tab[hidden],
  .staff-actions [hidden] {
    display: none !important;
  }
  .staff-tabs > .staff-tab {
    flex: 0 0 auto !important;
    min-height: 40px;
    max-width: 100%;
  }
  .staff-actions .staff-tab {
    box-sizing: border-box;
    min-height: 44px;
    max-height: 48px;
    padding: 7px 9px !important;
    line-height: 1.15;
  }
  #workerOverlay .sheet-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) !important;
  }
  #workerOverlay .sheet-actions .btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 46px !important;
    max-height: 46px !important;
    white-space: normal !important;
  }
  /* El selector de función ocupa espacio real: Línea / sección queda debajo,
     sin superposición ni capas de Safari sobre los botones siguientes. */
  .function-picker .function-options {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    max-height: min(260px, 38dvh) !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .function-picker .function-options[hidden] {
    display: none !important;
  }
}
@media (max-width: 390px) {
  .bottom-bar .btn {
    font-size: 10px !important;
    padding-inline: 3px !important;
  }
  .staff-actions {
    gap: 5px !important;
  }
  .staff-actions .staff-tab {
    font-size: 10.5px !important;
    padding-inline: 5px !important;
  }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .staff-tabs,
  .staff-actions {
    min-width: 0;
  }
  .staff-actions {
    flex-wrap: wrap;
  }
  .bottom-bar-inner .btn {
    min-width: 0;
    max-width: 100%;
  }
}
.lite-mode .bg-scene,
.lite-mode .berry3d,
.lite-mode .grain {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .bg-scene,
  .berry3d,
  .grain {
    display: none !important;
  }
}

/* Descarga del dashboard: el enlace preparado conserva el gesto del usuario en iOS. */
.vd-controls #downloadValidation[hidden],
.vd-controls #downloadHint[hidden] {
  display: none !important;
}
.vd-controls .vd-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #6fe0ae;
  border-radius: 11px;
  background: #12644f;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}
.vd-download-hint {
  flex-basis: 100%;
  color: #b9d8e7;
  line-height: 1.4;
  font-size: 11px;
}
@media (max-width: 700px) {
  .vd-controls {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 9px;
  }
  .vd-controls label,
  .vd-controls select,
  .vd-controls button,
  .vd-controls .vd-download {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .vd-controls .vd-download {
    min-height: 48px;
  }
  .vd-head,
  .validation-dashboard,
  .vd-grid,
  .vd-card {
    min-width: 0;
  }
  .vd-metric {
    overflow: hidden;
  }
}

/* assets/css/platform.css */
/* Una interfaz, tres acabados. La detección solo cambia apariencia, nunca permisos ni datos. */
html[data-platform="ios"] {
  --grad-berry: linear-gradient(135deg, #1484bc, #2464b5);
  --font-display:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-body:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}
html[data-platform="android"] {
  --grad-berry: linear-gradient(135deg, #2377bc, #395fd2);
  --font-display: Roboto, "Noto Sans", Arial, sans-serif;
  --font-body: Roboto, "Noto Sans", Arial, sans-serif;
}

@media (max-width: 1100px) {
  html[data-platform="ios"] header.top {
    background: linear-gradient(180deg, #0a304e, #0a2946) !important;
    border-bottom: 1px solid rgba(174, 219, 243, 0.3) !important;
  }
  html[data-platform="ios"] .sheet {
    border-radius: 26px 26px 0 0 !important;
    background: linear-gradient(
      180deg,
      #113e60,
      #0b294a 64%,
      #081e38
    ) !important;
  }
  html[data-platform="ios"] .login-card,
  html[data-platform="ios"] .vd-card,
  html[data-platform="ios"] .vd-metric {
    border-radius: 22px !important;
  }
  html[data-platform="ios"] .input,
  html[data-platform="ios"] select.input,
  html[data-platform="ios"] .search-box,
  html[data-platform="ios"] .function-options {
    border-radius: 14px !important;
    background-color: #0d2c4b !important;
  }
  html[data-platform="ios"] .staff-tabs {
    gap: 6px !important;
  }
  html[data-platform="ios"] .staff-tabs > .staff-tab,
  html[data-platform="ios"] .filter-pill {
    border-radius: 11px !important;
    font-size: 12px !important;
    min-height: 40px;
  }
  html[data-platform="ios"] .staff-tabs > .staff-tab.active,
  html[data-platform="ios"] .filter-pill.active {
    background: #247bb7 !important;
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.25),
      0 3px 12px rgba(0, 10, 31, 0.24) !important;
  }
  html[data-platform="ios"] .btn,
  html[data-platform="ios"] .btn-add-person,
  html[data-platform="ios"] .attendance-choice,
  html[data-platform="ios"] .shift-choices button,
  html[data-platform="ios"] .line-options button,
  html[data-platform="ios"] .dinner-options button {
    border-radius: 13px !important;
    letter-spacing: 0 !important;
    text-transform: none;
  }
  html[data-platform="ios"] .bottom-bar-inner {
    border-radius: 18px !important;
    background: #0c304f !important;
    box-shadow: 0 -8px 30px rgba(1, 12, 29, 0.3) !important;
  }
  html[data-platform="ios"] .app .person-row,
  html[data-platform="ios"] .assistant-live {
    border-radius: 18px !important;
  }

  html[data-platform="android"] header.top {
    background: linear-gradient(165deg, #0b2b4a, #142e57) !important;
    border-bottom-color: rgba(138, 178, 243, 0.31) !important;
  }
  html[data-platform="android"] .sheet {
    border-radius: 28px 28px 0 0 !important;
    background: linear-gradient(
      180deg,
      #14355b,
      #0a2444 65%,
      #0a1a34
    ) !important;
  }
  html[data-platform="android"] .login-card,
  html[data-platform="android"] .vd-card,
  html[data-platform="android"] .vd-metric {
    border-radius: 24px !important;
  }
  html[data-platform="android"] .input,
  html[data-platform="android"] select.input,
  html[data-platform="android"] .search-box {
    border-radius: 16px !important;
    background-color: #123758 !important;
  }
  html[data-platform="android"] .staff-tab,
  html[data-platform="android"] .filter-pill,
  html[data-platform="android"] .btn-add-person {
    border-radius: 999px !important;
  }
  html[data-platform="android"] .btn,
  html[data-platform="android"] .attendance-choice,
  html[data-platform="android"] .shift-choices button,
  html[data-platform="android"] .line-options button,
  html[data-platform="android"] .dinner-options button {
    border-radius: 17px !important;
    letter-spacing: 0.01em !important;
    text-transform: none;
  }
  html[data-platform="android"] .filter-pill.active,
  html[data-platform="android"] .staff-tab.active {
    background: #3665a8 !important;
    border-color: #8bbcf0 !important;
    box-shadow: inset 0 0 0 1px rgba(178, 214, 255, 0.18) !important;
  }
  html[data-platform="android"] .bottom-bar-inner {
    border-radius: 24px !important;
    background: #102a4b !important;
    border-color: rgba(143, 180, 242, 0.3) !important;
  }
  html[data-platform="android"] .app .person-row,
  html[data-platform="android"] .assistant-live {
    border-radius: 22px !important;
  }
  html[data-platform="android"] button:active {
    filter: brightness(1.14);
  }
}

/* Desplazamiento ligero en teléfonos: superficies opacas y tarjetas sin capas 3D. */
@media (max-width: 700px) {
  html[data-platform="ios"] .login-screen,
  html[data-platform="android"] .login-screen {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    min-height: 100dvh;
    padding: calc(18px + env(safe-area-inset-top)) 16px
      calc(18px + env(safe-area-inset-bottom)) !important;
  }
  html[data-platform="ios"] .login-screen {
    align-items: end !important;
    background-color: #071d35 !important;
  }
  html[data-platform="ios"] .login-film-overlay {
    background: linear-gradient(
      180deg,
      rgba(5, 25, 43, 0.12) 0%,
      rgba(4, 21, 39, 0.42) 32%,
      rgba(4, 20, 38, 0.94) 72%
    ) !important;
  }
  html[data-platform="ios"] .login-screen .login-card {
    width: min(100%, 430px) !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 auto 4px;
    padding: 24px 22px 20px !important;
    gap: 13px !important;
    background: #102f4d !important;
    border: 1px solid rgba(178, 220, 241, 0.4) !important;
    border-radius: 28px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 18px 45px rgba(0, 12, 28, 0.5) !important;
    animation: none !important;
  }
  html[data-platform="ios"] .login-symbol {
    width: 62px !important;
    height: 62px !important;
    margin: 0 auto 3px;
    border-radius: 17px !important;
  }
  html[data-platform="ios"] .login-kicker {
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
    color: #a6d8ee !important;
  }
  html[data-platform="ios"] .login-card h1 {
    font-size: 25px !important;
    letter-spacing: -0.045em !important;
  }
  html[data-platform="ios"] .login-card p {
    font-size: 13px !important;
    margin-bottom: 8px !important;
  }
  html[data-platform="ios"] .login-card label {
    gap: 7px !important;
    font-size: 12px !important;
  }
  html[data-platform="ios"] .login-card input {
    min-height: 52px !important;
    padding: 13px 16px !important;
    font-size: 16px !important;
    border-radius: 13px !important;
    background: #0b2541 !important;
    border: 1px solid #47718d !important;
    box-shadow: none !important;
  }
  html[data-platform="ios"] .login-card input:focus {
    border-color: #8ad9f3 !important;
    box-shadow: 0 0 0 3px rgba(82, 177, 220, 0.25) !important;
  }
  html[data-platform="ios"] .login-card .btn-primary {
    min-height: 52px !important;
    margin-top: 6px !important;
    border-radius: 13px !important;
    background: #2488bd !important;
    box-shadow: none !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-size: 16px !important;
  }
  html[data-platform="ios"] .login-footnote {
    font-size: 11px !important;
    color: #b8d1df !important;
  }

  html[data-platform="android"] .login-screen {
    align-items: center !important;
  }
  html[data-platform="android"] .login-film-overlay {
    background: linear-gradient(
      180deg,
      rgba(8, 20, 51, 0.35),
      rgba(8, 18, 41, 0.79)
    ) !important;
  }
  html[data-platform="android"] .login-screen .login-card {
    width: min(100%, 430px) !important;
    max-height: none !important;
    overflow: visible !important;
    background: #192f50 !important;
    border: 1px solid #5b769f !important;
    border-radius: 30px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 14px 36px rgba(0, 12, 29, 0.43) !important;
    animation: none !important;
  }
  html[data-platform="android"] .login-symbol {
    border-radius: 22px !important;
  }
  html[data-platform="android"] .login-card input {
    min-height: 56px !important;
    font-size: 16px !important;
    background: #223c5f !important;
    border: 1px solid #657da5 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
  }
  html[data-platform="android"] .login-card input:focus {
    border-color: #b0c8ff !important;
    box-shadow: 0 0 0 3px rgba(128, 158, 241, 0.22) !important;
  }
  html[data-platform="android"] .login-card .btn-primary {
    min-height: 54px !important;
    border-radius: 999px !important;
    background: #4a71d4 !important;
    box-shadow: none !important;
    text-transform: none !important;
    font-size: 15px !important;
  }
  html[data-platform="ios"] .app .person-row,
  html[data-platform="android"] .app .person-row {
    transform: none !important;
    transform-style: flat !important;
    filter: none !important;
    box-shadow: none !important;
  }
  html[data-platform="ios"] .person-status,
  html[data-platform="android"] .person-status {
    transform: none !important;
  }
  html[data-platform="ios"] .login-video,
  html[data-platform="android"] .login-video {
    filter: none !important;
  }
  html[data-platform="ios"] .sheet,
  html[data-platform="android"] .sheet {
    transform-style: flat !important;
    box-shadow: 0 -10px 34px rgba(1, 14, 30, 0.38) !important;
  }
  html[data-platform="ios"] .login-card,
  html[data-platform="android"] .login-card {
    box-shadow: 0 14px 38px rgba(0, 12, 29, 0.45) !important;
  }
}
@media (max-width: 700px) and (max-height: 650px) {
  html[data-platform="ios"] .login-screen {
    align-items: start !important;
  }
}

/* Escritorio: controles más precisos y filas legibles en monitores amplios. */
@media (min-width: 701px) {
  html[data-platform="desktop"] header.top {
    background: linear-gradient(180deg, #08243f, #081e36) !important;
  }
  html[data-platform="desktop"] .app .person-row {
    border-radius: 12px !important;
  }
  html[data-platform="desktop"] .staff-tab,
  html[data-platform="desktop"] .filter-pill,
  html[data-platform="desktop"] .btn {
    border-radius: 10px !important;
  }
  html[data-platform="desktop"] .bottom-bar-inner {
    border-radius: 13px !important;
    max-width: 1408px;
  }
  html[data-platform="desktop"] .sheet {
    border-radius: 18px !important;
  }
}

html[data-platform] button:focus-visible,
html[data-platform] a:focus-visible,
html[data-platform] .input:focus-visible {
  outline: 2px solid #a4e5ff !important;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html[data-platform] button,
  html[data-platform] .btn {
    transition: none !important;
  }
}

/* iPhone: pestañas como controles compactos y padrón en una columna. Estas reglas
   van al final para vencer las filas compactas heredadas de escritorio. */
@media (max-width: 700px) {
  html[data-platform="ios"] .app {
    padding-top: env(safe-area-inset-top);
  }
  html[data-platform="ios"] .staff-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 18px 16px 6px !important;
    overflow: visible !important;
  }
  html[data-platform="ios"] .staff-tabs > .staff-tab {
    box-sizing: border-box;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100%;
    min-height: 42px !important;
    height: auto !important;
    padding: 9px 12px !important;
    white-space: normal !important;
    text-align: center;
    line-height: 1.25;
    font-size: 12px !important;
    border-radius: 13px !important;
    background: #103452 !important;
    box-shadow: none !important;
  }
  html[data-platform="ios"] .staff-tabs > .staff-tab.active {
    background: #267cb0 !important;
    border-color: #8ccceb !important;
  }
  html[data-platform="ios"] .staff-actions {
    display: flex !important;
    flex: 0 0 100% !important;
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px !important;
    min-width: 0;
    margin: 3px 0 0 !important;
  }
  html[data-platform="ios"] .staff-actions .staff-tab {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: 100%;
    min-height: 40px !important;
    padding: 8px 13px !important;
    font-size: 11px !important;
    line-height: 1.2;
    border-radius: 11px !important;
    box-shadow: none !important;
  }
  html[data-platform="ios"] .staff-actions .add-worker-shortcut {
    background: #123b5d !important;
    color: #d5f2ff !important;
    border: 1px solid #5799ba !important;
  }
  html[data-platform="ios"] .search-wrap {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
    padding: 12px 16px 8px !important;
  }
  html[data-platform="ios"] .search-row {
    gap: 8px !important;
  }
  html[data-platform="ios"] .search-row .search-box {
    min-width: 0;
    border-radius: 12px !important;
  }
  html[data-platform="ios"] .search-box input {
    min-width: 0;
    text-overflow: ellipsis;
  }
  html[data-platform="ios"] .filter-row {
    gap: 8px !important;
    margin-top: 12px !important;
  }
  html[data-platform="ios"] .filter-pill {
    min-height: 38px !important;
    padding: 8px 12px !important;
    box-shadow: none !important;
  }
  html[data-platform="ios"] .app .list {
    display: block !important;
    padding: 10px 16px calc(155px + env(safe-area-inset-bottom)) !important;
  }
  html[data-platform="ios"] .roster-heading {
    margin: 4px 0 12px !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(135, 194, 228, 0.35) !important;
    border-radius: 18px !important;
    background: #113b5b !important;
  }
  html[data-platform="ios"] .roster-heading > div:first-child {
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 0 !important;
  }
  html[data-platform="ios"] .app .person-row,
  html[data-platform="ios"] .app .person-row:last-child {
    box-sizing: border-box;
    margin: 0 0 12px !important;
    min-height: 92px !important;
    padding: 14px 15px !important;
    row-gap: 4px !important;
    border: 1px solid rgba(133, 185, 215, 0.34) !important;
    border-radius: 18px !important;
    background: #103554 !important;
    box-shadow: none !important;
  }
  html[data-platform="ios"] .app .person-row:nth-child(odd) {
    background: #103554 !important;
  }
  html[data-platform="ios"] .app .person-row.st-presente {
    border-left: 3px solid #34d399 !important;
  }
  html[data-platform="ios"] .app .person-row.st-falta {
    border-left: 3px solid #fb7185 !important;
  }
  html[data-platform="ios"] .app .person-row .person-name {
    font-size: 14px !important;
    line-height: 1.32 !important;
  }
  html[data-platform="ios"] .app .person-row .avatar {
    border-radius: 11px !important;
    box-shadow: none !important;
  }
  html[data-platform="ios"] .app .person-row .person-dni,
  html[data-platform="ios"] .app .person-row .person-area {
    line-height: 1.5;
  }
  html[data-platform="ios"] .bottom-bar {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
    background: linear-gradient(180deg, transparent, #071e36 35%) !important;
  }
  html[data-platform="ios"] .bottom-bar-inner {
    gap: 7px !important;
    padding: 7px !important;
  }
  html[data-platform="ios"] .bottom-bar .btn {
    font-size: 10px !important;
    line-height: 1.2 !important;
    padding: 8px 4px !important;
    border-radius: 11px !important;
  }
  html[data-platform="ios"] .login-screen .login-card {
    border-radius: 26px !important;
    background: #0e304f !important;
    border: 1px solid rgba(179, 222, 239, 0.55) !important;
  }
  html[data-platform="ios"] .login-card input {
    background: #102a44 !important;
  }
}

/* ===== Alza Perú · Enterprise theme (solo capa visual, no toca la lógica) ===== */
:root {
  --bg-0: #0a0f1f;
  --bg-1: #0e1528;
  --bg-2: #141d36;
  --berry: #4c5fd5;
  --berry-2: #6577ff;
  --berry-3: #a9b4ff;
  --blue: #4c5fd5;
  --ink: #f3f5fb;
  --ink-soft: #b4bdd6;
  --ink-dim: #7f8aa8;
  --glass: #121a30;
  --glass-2: #18223e;
  --stroke: rgba(150, 165, 255, 0.14);
  --stroke-2: rgba(150, 165, 255, 0.28);
  --leaf: #3ddc97;
  --leaf-bg: rgba(61, 220, 151, 0.13);
  --amber: #fbbf24;
  --rose: #ff7a90;
  --rose-bg: rgba(255, 122, 144, 0.13);
  --shadow-deep: 0 24px 48px -28px rgba(0, 0, 0, 0.75);
  --glow-berry: none;
  --grad-berry: linear-gradient(180deg, #6577ff, #4c5fd5);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --focus: 0 0 0 3px rgba(101, 119, 255, 0.38);
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg-0);
  color: var(--ink);
  font-feature-settings:
    "tnum" 1,
    "cv11" 1;
  -webkit-font-smoothing: antialiased;
}
.bg-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      1100px 520px at 85% -12%,
      rgba(101, 119, 255, 0.2),
      transparent 62%
    ),
    radial-gradient(
      800px 480px at -8% 108%,
      rgba(61, 220, 151, 0.07),
      transparent 60%
    ),
    var(--bg-0);
}
.bg-scene > * {
  display: none !important;
}
.app,
.login-screen {
  position: relative;
  z-index: 1;
}
.app *,
.login-screen * {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus) !important;
}

/* ---- Encabezado ---- */
.app {
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(10px, 2vw, 24px);
}
.top {
  background: linear-gradient(180deg, #131c35, #0f1730);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    var(--shadow-deep);
  padding: clamp(14px, 2vw, 22px);
}
.brand-mark {
  border-radius: 13px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.top h1,
.brand-lockup h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.count-summary {
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--ink-dim);
  font-size: 13px;
}
.version-label {
  display: none;
}
.date-row input[type="date"],
.date-row .nav,
.today-btn {
  border-radius: var(--r-sm);
  border: 1px solid var(--stroke);
  background: var(--bg-2);
  color: var(--ink);
  min-height: 44px;
}
.today-btn {
  background: var(--grad-berry);
  border-color: transparent;
  font-weight: 700;
  padding-inline: 18px;
}
.day-state {
  color: var(--ink-dim);
  font-size: 12px;
}
.session-bar {
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
}
.session-avatar {
  background: var(--grad-berry);
  border-radius: 11px;
}
.account-menu {
  background: #101830;
  border: 1px solid var(--stroke-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-deep);
}

/* ---- Asistente ---- */
.assistant-live {
  background: rgba(101, 119, 255, 0.07);
  border: 1px solid var(--stroke);
  border-left: 3px solid var(--berry-2);
  border-radius: var(--r-md);
  box-shadow: none;
}
.assistant-pulse {
  background: var(--grad-berry);
  border-radius: 12px;
  box-shadow: none;
}
.assistant-ready {
  color: var(--leaf);
  background: var(--leaf-bg);
  border: 0;
  border-radius: 999px;
  font-weight: 600;
}
.assistant-live p {
  color: var(--ink-soft);
}
.assistant-actions button,
.assistant-quick button {
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--stroke);
  color: var(--ink);
  min-height: 40px;
}
.assistant-insights {
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
}
.assistant-insights button {
  background: var(--grad-berry);
  border: 0;
  border-radius: var(--r-sm);
  font-weight: 700;
}

/* ---- Pestañas ---- */
.staff-tabs {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--stroke);
  margin: 14px 0 6px;
  padding: 0;
}
.staff-tabs::-webkit-scrollbar {
  display: none;
}
.staff-tab {
  flex: none;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: var(--r-sm) var(--r-sm) 0 0 !important;
  color: var(--ink-soft);
  padding: 13px 16px;
  min-height: 46px;
  font-weight: 600;
  box-shadow: none !important;
  transition:
    color 0.15s,
    background 0.15s;
}
.staff-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04) !important;
}
.staff-tab.active {
  color: #fff;
  background: rgba(101, 119, 255, 0.12) !important;
  border-bottom-color: var(--berry-2) !important;
}
.staff-tab span:not(:empty) {
  background: var(--bg-2);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
  font-size: 12px;
  color: var(--berry-3);
}
.staff-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  padding-bottom: 6px;
}
.add-worker-shortcut {
  background: var(--grad-berry) !important;
  color: #fff !important;
  border-radius: var(--r-sm) !important;
  border-bottom: 0 !important;
  white-space: nowrap;
}

/* ---- Búsqueda y filtros ---- */
.search-box,
.input,
.app input:not([type="checkbox"]):not([type="radio"]):not([type="date"]),
.app select,
.app textarea {
  background: #0c1326;
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  color: var(--ink);
}
.search-box {
  min-height: 50px;
}
.search-box input {
  background: transparent !important;
  border: 0 !important;
}
.search-box:focus-within,
.input:focus {
  border-color: var(--berry-2);
  box-shadow: var(--focus);
}
.filter-pill {
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--stroke);
  color: var(--ink-soft);
  min-height: 38px;
  padding-inline: 16px;
  font-weight: 600;
}
.filter-pill.active,
.filter-pill[aria-pressed="true"] {
  background: var(--berry);
  border-color: var(--berry-2);
  color: #fff;
}
.btn {
  border-radius: var(--r-md);
  min-height: 46px;
  font-weight: 700;
  letter-spacing: 0.005em;
  transition:
    transform 0.12s,
    filter 0.15s;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--grad-berry);
  border: 0;
  box-shadow: 0 8px 20px -10px rgba(76, 95, 213, 0.9);
  color: #fff;
}
.btn-secondary {
  background: var(--bg-2);
  border: 1px solid var(--stroke);
  color: var(--ink);
}

/* ---- Padrón ---- */
.roster-heading h2,
.roster-heading h3,
.ops-heading h2 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.roster-columns,
.roster-columns * {
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 600;
}
.person-row {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  box-shadow: none;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.person-row:hover {
  background: var(--glass-2);
  border-color: var(--stroke-2);
}
.person-row:active {
  background: #1c2748;
}
.status-badge,
.person-status {
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  letter-spacing: 0.01em;
}
.row-chevron {
  color: var(--ink-dim);
}
.stat-chip,
.stats-strip > * {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
}

/* ---- Paneles, tablas, dashboard ---- */
.dash-card,
.dash-chart-card,
.vd-card,
.hrx-kpi,
.ops-card,
.hr-line-card,
.staffing-card,
.resp-card,
.cierre-box,
.welcome-banner,
.dt-panel,
.empty-state {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  box-shadow: none;
}
.hrx-kpi strong,
.vd-metric strong,
.ops-metric strong {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.hrx-table th,
.vd-table th {
  background: var(--bg-2);
  color: var(--ink-dim);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
}
.hrx-table td,
.vd-table td {
  border-color: var(--stroke);
}
.hrx-table tr:hover td,
.vd-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* ---- Hojas / modales ---- */
[id$="Overlay"] {
  background: rgba(4, 7, 16, 0.76);
}
.sheet,
.confirm-sheet,
.add-worker-sheet,
.hr-editor-sheet,
.hr-history-sheet,
.hr-roster-sheet,
.export-review-sheet,
.voice-sheet {
  background: #0f1730;
  border: 1px solid var(--stroke-2);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, 0.8);
}
.sheet-handle {
  background: rgba(255, 255, 255, 0.22);
}
.status-opt,
.linea-opt,
.cena-opt,
.mode-opt,
.function-option,
.attendance-choice {
  border-radius: var(--r-md);
  background: var(--bg-2);
  border: 1px solid var(--stroke);
}

/* ---- Barra inferior ---- */
.bottom-bar {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 clamp(10px, 2vw, 24px)
    calc(10px + env(safe-area-inset-bottom, 0px));
}
.bottom-bar-inner {
  max-width: 1240px;
  margin-inline: auto;
  gap: 10px;
  padding: 10px;
  background: #0f1730;
  border: 1px solid var(--stroke-2);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.8);
}
.bottom-bar-inner .btn {
  min-height: 50px;
}

/* ---- Login ---- */
.login-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 450px);
  align-items: center;
  gap: clamp(24px, 6vw, 96px);
  padding: clamp(20px, 5vw, 72px);
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg-0);
}
.login-video {
  object-fit: cover;
}
.login-film-overlay {
  background: linear-gradient(
    100deg,
    rgba(7, 11, 24, 0.92) 8%,
    rgba(7, 11, 24, 0.55) 55%,
    rgba(7, 11, 24, 0.78)
  );
}
.login-film-overlay::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(
    40% 35% at 30% 40%,
    rgba(101, 119, 255, 0.22),
    transparent 70%
  );
  animation: lsDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}
.login-story {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  grid-column: 1;
  max-width: 620px;
  justify-self: start;
  animation: lsRise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.login-story strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 18px 0 14px;
}
.login-story > span:last-child {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.4vw, 19px);
  max-width: 34ch;
  display: block;
}
.login-story-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke-2);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--berry-3);
}
.login-card {
  position: relative !important;
  grid-column: 2;
  margin: 0 !important;
  width: 100%;
  max-width: 450px;
  justify-self: end;
  background: rgba(14, 21, 42, 0.94);
  border: 1px solid var(--stroke-2);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
  animation: lsRise 0.9s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.login-symbol {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
}
.login-symbol img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.login-kicker {
  color: var(--berry-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.login-card h1 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 10px 0 4px;
}
.login-card p {
  color: var(--ink-dim);
}
.login-card label {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 13px;
}
.login-card input {
  min-height: 50px;
  font-size: 16px;
}
.login-card .btn-primary {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}
.login-footnote {
  color: var(--ink-dim);
  font-size: 12px;
}
.login-footnote-dot {
  background: var(--leaf);
  box-shadow: 0 0 0 4px var(--leaf-bg);
}
@keyframes lsRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes lsDrift {
  from {
    transform: translate3d(-6%, -4%, 0);
  }
  to {
    transform: translate3d(10%, 8%, 0);
  }
}

/* ---- Celular ---- */
@media (max-width: 899px) {
  .login-screen {
    grid-template-columns: 1fr;
    align-content: space-between;
    gap: 20px;
    padding: max(20px, env(safe-area-inset-top)) 16px
      max(16px, env(safe-area-inset-bottom));
  }
  .login-story {
    grid-column: 1;
    padding-top: 6vh;
  }
  .login-story strong {
    font-size: clamp(38px, 11vw, 54px);
  }
  .login-card {
    grid-column: 1;
    justify-self: stretch;
    max-width: none;
    border-radius: 24px 24px 18px 18px;
  }
  .login-film-overlay {
    background: linear-gradient(
      180deg,
      rgba(7, 11, 24, 0.55),
      rgba(7, 11, 24, 0.92) 70%
    );
  }
  .login-film-overlay::after {
    animation: none;
  }
}
@media (max-width: 760px) {
  .bg-scene {
    background: var(--bg-0);
  }
  .app {
    padding: 10px 10px 118px;
  }
  .top {
    border-radius: var(--r-md);
    padding: 14px;
  }
  .staff-tabs {
    margin-inline: -10px;
    padding-inline: 10px;
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bg-0);
  }
  .staff-actions {
    margin-left: 8px;
    padding-bottom: 4px;
  }
  .person-row {
    border-radius: 12px;
  }
  .sheet,
  .confirm-sheet,
  .add-worker-sheet,
  .hr-editor-sheet,
  .hr-history-sheet,
  .hr-roster-sheet,
  .export-review-sheet,
  .voice-sheet {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .bottom-bar-inner .btn {
    font-size: 13px;
    padding-inline: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== v18 · Padrón a pantalla completa en PC (solo >=901px). Móvil y tablet NO cambian. ===== */
@media (min-width: 901px) {
  .app {
    max-width: none !important;
    width: 100% !important;
    margin-inline: 0 !important;
    padding: clamp(12px, 1.6vw, 32px) !important;
    box-sizing: border-box;
  }
  .staff-tabs,
  .search-wrap {
    padding-inline: 0 !important;
  }
  .app .list {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 0 150px !important;
  }
  .bottom-bar {
    padding-inline: clamp(12px, 1.6vw, 32px) !important;
  }
  .bottom-bar-inner {
    max-width: none !important;
    width: 100% !important;
  }
  .roster-heading {
    padding-inline: clamp(19px, 1.8vw, 34px) !important;
  }
  .roster-columns,
  .app .person-row {
    grid-template-columns:
      minmax(260px, 2.6fr) minmax(110px, 0.8fr) minmax(130px, 1fr) minmax(
        200px,
        1.8fr
      )
      minmax(104px, 0.7fr) 24px !important;
    column-gap: clamp(14px, 1.7vw, 34px) !important;
  }
  .app .person-row {
    padding-inline: clamp(19px, 1.8vw, 34px) !important;
  }
  .roster-columns span:nth-child(4),
  .app .person-row .person-labor {
    display: block !important;
  }
}
/* Pantallas grandes: más aire y letra un poco mayor para que el panel se vea lleno */
@media (min-width: 1280px) {
  .roster-heading strong {
    font-size: 20px;
  }
  .roster-heading small {
    font-size: 13px;
  }
  .roster-columns,
  .roster-columns * {
    font-size: 13px !important;
  }
  .app .person-row {
    min-height: 70px !important;
  }
  .app .person-row .avatar {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 12px;
  }
  .app .person-row .person-name {
    font-size: 15px;
  }
  .app .person-row .person-dni,
  .app .person-row .person-area,
  .app .person-row .person-labor {
    font-size: 13px;
  }
  .app .person-row .status-badge {
    font-size: 11px;
    padding: 6px 10px;
  }
}
@media (min-width: 1700px) {
  .app .person-row {
    min-height: 76px !important;
  }
  .app .person-row .person-name {
    font-size: 16px;
  }
  .app .person-row .person-dni,
  .app .person-row .person-area,
  .app .person-row .person-labor {
    font-size: 14px;
  }
}

/* ===== v19 · buscador, encabezado y Horarios ===== */
/* Buscador: un solo borde (antes el input mostraba su propio aro dentro de la caja) */
.search-box input,
.search-box input:focus,
.search-box input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
}
.search-box:focus-within {
  border-color: #7f93ff !important;
  box-shadow: 0 0 0 3px rgba(101, 119, 255, 0.28) !important;
}

@media (min-width: 901px) {
  /* Encabezado: bloque de sesión compacto y pegado a la derecha */
  header.top .session-bar {
    width: fit-content;
    margin-left: auto;
    justify-self: end;
    padding: 5px;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    gap: 8px;
    flex-wrap: nowrap;
  }
  header.top .session-identity {
    flex: 0 1 auto;
    max-width: none;
    padding: 6px 14px 6px 8px;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    background: rgba(76, 95, 213, 0.16);
  }
  header.top .session-identity strong {
    font-size: 12.5px;
    white-space: nowrap;
  }
  header.top .session-identity small {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  header.top .date-row input[type="date"] {
    min-width: 170px;
  }
  .search-box {
    min-height: 52px;
  }
  .search-row .btn-add-person {
    height: 52px;
    padding-inline: 22px;
    font-size: 13px;
  }

  /* Paneles Dashboard y Horarios a todo el ancho, igual que el padrón */
  #horariosPanel.validation-dashboard,
  #validationDashboard.validation-dashboard {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 18px 0 150px !important;
  }
  #horariosPanel .vd-head {
    align-items: center;
    margin-bottom: 16px;
  }
  #horariosPanel .vd-head h2 {
    font-size: clamp(26px, 2.2vw, 36px);
  }
  .hrx-modes {
    padding: 5px;
    border-radius: 16px;
  }
  .hrx-modes button {
    padding: 11px 20px;
    font-size: 14px;
  }
  .hr-workspace {
    padding: clamp(18px, 1.8vw, 30px);
    border-radius: 22px;
  }
  .hr-shift-tabs button {
    min-width: 150px;
    min-height: 48px;
    font-size: 15px;
  }
  .hr-date-pill {
    padding: 11px 16px;
    font-size: 13px;
  }
  .hr-workspace-title {
    font-size: clamp(20px, 1.7vw, 26px);
  }

  /* Tarjetas por línea: rejilla fluida, franja de color por turno y estado */
  .hr-line-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
  }
  .hr-line-card {
    position: relative;
    overflow: hidden;
    padding: 16px 16px 16px 22px;
    border-radius: 16px;
    background: linear-gradient(
      160deg,
      rgba(10, 40, 68, 0.8),
      rgba(6, 27, 48, 0.62)
    );
    transition:
      transform 0.15s,
      border-color 0.15s;
  }
  .hr-line-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #59c8ee;
  }
  .hr-workspace[data-shift="noche"] .hr-line-card::before {
    background: #b9a3f9;
  }
  .hr-line-card.hrx-warn::before {
    background: var(--amber);
  }
  .hr-line-card-head {
    flex-wrap: wrap;
    margin-bottom: 14px;
  }
  .hr-line-card-head strong,
  .hr-line-name {
    font-size: 15px;
  }
  .hr-cell {
    min-height: 52px;
    font-size: 17px;
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
  }
  .hr-cell.empty {
    font-size: 13px;
  }
  .hr-time-slot span {
    font-size: 11px;
  }
  .hrx-summary {
    padding: 12px 16px;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    justify-content: space-between;
    font-size: 14px;
  }
  #hrxCopy {
    min-height: 42px;
    padding: 8px 16px;
  }

  /* Reporte de horas */
  .hrx-filters {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    padding: 16px;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
  }
  .hrx-kpi {
    padding: 16px 18px;
  }
  .hrx-kpi strong {
    font-size: 30px;
  }
  .hrx-table-wrap {
    max-height: calc(100vh - 340px);
    min-height: 360px;
  }
  .hrx-table {
    font-size: 14px;
  }
  .hrx-table th {
    padding: 13px 16px;
  }
  .hrx-table td {
    padding: 12px 16px;
  }
}
@media (min-width: 901px) and (hover: hover) {
  .hr-line-card:hover {
    transform: translateY(-2px);
    border-color: rgba(140, 221, 250, 0.65);
  }
}
/* PC ancha: encabezado en 3 columnas (marca · fecha · sesión) */
@media (min-width: 1180px) {
  .top-primary {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  header.top .title-row {
    grid-column: 1;
    grid-row: 1;
  }
  header.top .date-row {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    justify-content: center;
  }
  header.top .session-bar {
    grid-column: 3;
    grid-row: 1;
  }
  .day-state {
    text-align: center;
  }
}
@media (min-width: 1600px) {
  .hr-line-list {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  }
}

/* ===== v21 · Horarios con aspecto de tabla profesional ===== */
#horariosPanel {
  --hs: #6cc4ee;
  --hs-soft: rgba(108, 196, 238, 0.14);
  --hs-line: rgba(108, 196, 238, 0.42);
  --hr-cols: minmax(170px, 1.5fr) 150px minmax(130px, 1fr) minmax(130px, 1fr)
    140px;
}
#horariosPanel .hr-workspace[data-shift="noche"] {
  --hs: #b3a1f5;
  --hs-soft: rgba(179, 161, 245, 0.15);
  --hs-line: rgba(179, 161, 245, 0.45);
}
#horariosPanel svg.ic,
#hrxCopy svg.ic {
  width: 16px;
  height: 16px;
  flex: none;
}
#horariosPanel .vd-head small {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--berry-3);
}
#horariosPanel .vd-head h2 {
  font: 700 clamp(22px, 1.8vw, 28px) var(--font-display);
  letter-spacing: -0.01em;
  margin: 6px 0 4px;
}
#horariosPanel .vd-head p {
  font-size: 13px;
  color: var(--ink-dim);
  margin: 0;
}
#horariosPanel .hr-history-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 13px;
  min-height: 40px;
  background: var(--glass);
  border: 1px solid var(--stroke-2);
  border-radius: 10px;
  box-shadow: none;
}
#horariosPanel .hr-history-open:hover {
  border-color: var(--berry-2);
}
#horariosPanel .hr-save-shift {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(108, 196, 238, 0.55);
  border-radius: 10px;
  background: linear-gradient(135deg, #176fa8, #3359d8);
  color: #fff;
  font: 700 12.5px var(--font-body);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(19, 83, 155, 0.24);
  transition:
    transform 0.12s ease,
    filter 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
#horariosPanel .hr-save-shift:hover {
  filter: brightness(1.08);
  border-color: #8ad9ff;
}
#horariosPanel .hr-save-shift:active {
  transform: translateY(1px);
}
#horariosPanel .hr-save-shift:disabled {
  opacity: 0.58;
  cursor: wait;
  filter: none;
  transform: none;
}
#horariosPanel .hr-workspace[data-shift="noche"] .hr-save-shift {
  background: linear-gradient(135deg, #5d54c7, #7b61d7);
  border-color: rgba(190, 176, 255, 0.58);
}
#horariosPanel .hr-save-state {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  color: var(--ink-dim);
  font: 600 11.5px var(--font-body);
  white-space: nowrap;
}
#horariosPanel .hr-save-state.ok {
  color: #7ee7b7;
}
#horariosPanel .hr-save-state.err {
  color: #ff9baa;
}
@media (max-width: 700px) {
  #horariosPanel .hr-toolbar {
    gap: 8px;
    flex-wrap: wrap;
  }
  #horariosPanel .hr-save-shift {
    order: 3;
    flex: 1 1 170px;
  }
  #horariosPanel .hr-save-state {
    order: 4;
    flex: 1 1 100%;
    min-height: auto;
    padding: 2px 0;
  }
  #horariosPanel .hr-date-pill {
    margin-left: auto;
  }
}

#horariosPanel .hrx-modes {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  border-radius: 12px;
}
#horariosPanel .hrx-modes button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 9px;
  font: 600 13px var(--font-body);
}
#horariosPanel .hrx-modes button[aria-pressed="true"] {
  background: var(--berry);
  color: #fff;
  box-shadow: none;
}
#horariosPanel .hr-shift-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font: 600 13px var(--font-body);
}
.hr-table-head {
  display: none;
}

@media (min-width: 901px) {
  #horariosPanel .vd-head {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--stroke);
  }
  #horariosPanel .hr-workspace {
    padding: 0;
    background: var(--glass) !important;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    box-shadow: none;
    overflow: hidden;
  }
  #horariosPanel .hr-toolbar {
    padding: 14px 18px;
    border-bottom: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.02);
  }
  #horariosPanel .hr-shift-tabs {
    padding: 3px;
    gap: 3px;
    background: #0a1124;
    border: 1px solid var(--stroke);
    border-radius: 11px;
  }
  #horariosPanel .hr-shift-tabs button {
    min-width: 0;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 8px;
    color: var(--ink-soft);
    font-size: 13px;
  }
  #horariosPanel
    .hr-shift-tabs
    button[aria-pressed="true"][data-hor-shift="dia"] {
    background: rgba(108, 196, 238, 0.16);
    color: #c4ebfc;
    box-shadow: inset 0 0 0 1px rgba(108, 196, 238, 0.45);
  }
  #horariosPanel
    .hr-shift-tabs
    button[aria-pressed="true"][data-hor-shift="noche"] {
    background: rgba(179, 161, 245, 0.17);
    color: #e3dbff;
    box-shadow: inset 0 0 0 1px rgba(179, 161, 245, 0.5);
  }
  #horariosPanel .hr-date-pill {
    padding: 8px 12px;
    border: 1px solid var(--stroke);
    border-radius: 8px;
    background: transparent;
    color: var(--ink-soft);
    font: 600 12px var(--font-body);
  }
  #horariosPanel .hr-workspace-title {
    display: flex;
    align-items: center;
    font: 600 15px var(--font-display);
    color: var(--ink);
    margin: 0;
    padding: 18px 18px 2px;
  }
  #horariosPanel .hr-workspace-title::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hs);
    margin-right: 10px;
  }

  #hrxSummary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 18px 14px;
    padding: 0;
    border: 0;
    background: transparent;
    font: 500 13px var(--font-body);
    color: var(--ink-soft);
  }
  #hrxSummary b {
    color: var(--ink);
  }
  #hrxCopy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 14px;
    border-radius: 9px;
    background: var(--glass-2);
    border: 1px solid var(--stroke-2);
    font: 600 13px var(--font-body);
    color: var(--ink);
  }

  .hr-table-head {
    display: grid;
    grid-template-columns: var(--hr-cols);
    column-gap: 20px;
    align-items: center;
    margin: 0 18px;
    padding: 11px 18px 11px 22px;
    border: 1px solid var(--stroke);
    border-radius: 12px 12px 0 0;
    background: #0d1530;
    color: var(--ink-dim);
    font: 600 11.5px var(--font-body);
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }
  #horariosPanel .hr-line-list {
    display: block;
    margin: 0 18px;
    border: 1px solid var(--stroke);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
  }
  #horariosPanel .hr-line-card {
    position: relative;
    display: grid;
    grid-template-columns: var(--hr-cols);
    column-gap: 20px;
    align-items: center;
    min-height: 62px;
    padding: 9px 18px 9px 22px;
    border: 0;
    border-top: 1px solid var(--stroke);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    transition: background 0.12s;
  }
  #horariosPanel .hr-line-card:first-child {
    border-top: 0;
  }
  #horariosPanel .hr-line-card:nth-child(even) {
    background: rgba(255, 255, 255, 0.022);
  }
  #horariosPanel .hr-line-card:hover {
    background: rgba(101, 119, 255, 0.08);
    transform: none;
    border-color: var(--stroke);
  }
  #horariosPanel .hr-line-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--hs);
  }
  #horariosPanel .hr-line-card.hrx-warn {
    box-shadow: none;
  }
  #horariosPanel .hr-line-card.hrx-warn::before {
    background: var(--amber);
  }
  #horariosPanel .hr-line-card-head,
  #horariosPanel .hr-card-times {
    display: contents;
  }
  #horariosPanel .hr-line-name {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    padding: 0;
    min-height: 0;
    font: 600 15px var(--font-body);
    color: var(--ink);
  }
  #horariosPanel .hr-count-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    min-height: 32px;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid var(--stroke-2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink-soft);
    font: 600 12.5px var(--font-body);
  }
  #horariosPanel .hr-count-button:hover,
  #horariosPanel .hr-count-button:focus-visible {
    border-color: var(--hs-line);
    background: var(--hs-soft);
    color: #fff;
    outline: none;
  }
  #horariosPanel .hr-time-slot:nth-child(1) {
    grid-column: 3;
    grid-row: 1;
  }
  #horariosPanel .hr-time-slot:nth-child(2) {
    grid-column: 4;
    grid-row: 1;
  }
  #horariosPanel .hr-time-slot span {
    display: none;
  }
  #horariosPanel .hr-cell {
    width: 100%;
    max-width: 190px;
    min-height: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 9px;
    background: #0b1328;
    border: 1px solid var(--stroke-2);
    color: var(--ink);
    font: 600 15px var(--font-body);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
  }
  #horariosPanel .hr-cell.empty {
    border-style: dashed;
    color: var(--ink-dim);
    font: 500 13px var(--font-body);
    letter-spacing: 0;
  }
  #horariosPanel .hr-cell.has-time {
    background: rgba(61, 220, 151, 0.1);
    border-color: rgba(61, 220, 151, 0.5);
    color: #8cf0c4;
  }
  #horariosPanel .hr-cell:hover,
  #horariosPanel .hr-cell:focus-visible {
    background: var(--hs-soft);
    border-color: var(--hs);
    color: #fff;
  }
  #horariosPanel .hrx-badge {
    grid-column: 5;
    grid-row: 1;
    justify-self: start;
    margin: 0;
    padding: 5px 10px;
    border-radius: 7px;
    font: 600 12px var(--font-body);
  }
  #horariosPanel .hrx-badge:empty {
    background: transparent;
    padding-left: 0;
    color: var(--ink-dim);
  }
  #horariosPanel .hrx-badge:empty::after {
    content: "Sin asignar";
    font-weight: 500;
  }
  #horariosPanel #horariosNote {
    margin: 14px 18px 18px;
    font-size: 12px;
    color: var(--ink-dim);
  }
  #horariosPanel #horariosNote[data-live="true"] {
    color: var(--leaf);
  }

  /* Reporte de horas */
  #horariosPanel .hrx-filters {
    background: var(--glass);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 16px;
  }
  #horariosPanel .hrx-kpi {
    background: var(--glass);
    border-radius: 12px;
  }
  #horariosPanel .hrx-seg button[aria-pressed="true"] {
    background: var(--berry);
    box-shadow: none;
  }
  #horariosPanel .hrx-table-wrap {
    border-radius: 12px;
  }
  #horariosPanel .hrx-table th {
    background: #0d1530;
    color: var(--ink-dim);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  #horariosPanel .hrx-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.022);
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  #horariosPanel {
    --hr-cols: minmax(120px, 1.2fr) 130px minmax(100px, 1fr) minmax(100px, 1fr)
      120px;
  }
}

/* Solo una fuente visual en el login: el video 3D original del paquete FullHD. */
#loginScreen .login-video {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
#loginScreen .login-video + source {
  display: none !important;
}

.login-video {
  filter: brightness(0.88) saturate(0.98) contrast(1.08) !important;
  image-rendering: auto !important;
}
.login-film-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(3, 14, 27, 0.38) 0%,
      rgba(5, 18, 31, 0.16) 44%,
      rgba(3, 12, 24, 0.58) 100%
    ),
    linear-gradient(180deg, rgba(2, 9, 18, 0.08), rgba(2, 9, 18, 0.18)) !important;
}

#loginScreen {
  background: #050b12 !important;
  background-image: none !important;
}
#loginScreen::before,
#loginScreen::after {
  background: none !important;
}
#loginScreen .login-video {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #050b12 !important;
  object-fit: cover !important;
}
@media (prefers-reduced-motion: reduce) {
  #loginScreen .login-video {
    display: block !important;
  }
}

/* LOGIN: una sola fuente visual. Sin poster, sin imagen de fondo, sin escena secundaria. */
#loginScreen {
  background: #000 !important;
  background-image: none !important;
}
#loginScreen .login-video {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 0 !important;
  background: #000 !important;
}
/* Oculta solo la escena decorativa global mientras el login está visible. */
body:has(#loginScreen:not([hidden])) > .bg-scene,
body:has(#loginScreen:not([hidden])) > .berry3d,
body:has(#loginScreen:not([hidden])) > .grain {
  display: none !important;
}
/* Mantiene encima únicamente contenido del login; no añade otra imagen. */
#loginScreen .login-film-overlay,
#loginScreen .login-fade,
#loginScreen .login-grain,
#loginScreen .login-letterbox {
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #loginScreen .login-video {
    display: block !important;
  }
}

#loginScreen {
  background-image: none !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #071523 !important;
}
#loginVideo {
  background: transparent !important;
}
#loginScreen .login-video {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  z-index: 0 !important;
  filter: brightness(0.8) saturate(0.96) contrast(1.04) !important;
  transform: none !important;
  background: transparent !important;
}
#loginScreen .login-film-overlay {
  z-index: 1 !important;
  background:
    linear-gradient(
      90deg,
      rgba(3, 14, 27, 0.2) 0%,
      rgba(3, 15, 28, 0.12) 45%,
      rgba(3, 13, 26, 0.58) 100%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.16)) !important;
}
#loginScreen .login-story,
#loginScreen .login-card {
  position: relative !important;
  z-index: 2 !important;
}

/* Guardar turno: acción principal alineada a la esquina derecha */
#horariosPanel .hr-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}
#horariosPanel .hr-shift-tabs {
  order: 1;
}
#horariosPanel .hr-save-state {
  order: 2;
  margin-left: auto;
  text-align: right;
}
#horariosPanel .hr-date-pill {
  order: 3;
}
#horariosPanel .hr-save-shift {
  order: 4;
  margin-left: 0;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 10px;
  box-shadow:
    0 10px 24px rgba(18, 99, 181, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
#horariosPanel .hr-save-shift .ic {
  width: 17px;
  height: 17px;
}
@media (min-width: 701px) {
  #horariosPanel .hr-save-shift {
    margin-left: 4px;
  }
}
@media (max-width: 700px) {
  #horariosPanel .hr-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px;
  }
  #horariosPanel .hr-shift-tabs {
    grid-column: 1/-1;
    order: 1;
    width: 100%;
  }
  #horariosPanel .hr-date-pill {
    grid-column: 1;
    order: 2;
    justify-self: start;
  }
  #horariosPanel .hr-save-shift {
    grid-column: 2;
    order: 3;
    justify-self: end;
    width: auto;
    min-width: 165px;
  }
  #horariosPanel .hr-save-state {
    grid-column: 1/-1;
    order: 4;
    margin-left: 0;
    text-align: right;
  }
}

#horariosPanel .hr-cell:disabled {
  cursor: not-allowed !important;
  opacity: 0.72 !important;
  background: rgba(17, 31, 55, 0.82) !important;
  border-style: solid !important;
  color: #9db1c8 !important;
}
#horariosPanel .hr-save-shift:disabled {
  cursor: not-allowed !important;
  opacity: 0.65 !important;
}

/* Panel de marcaciones, separado de asistencia. */
.mark-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px 18px 120px;
  color: #eef8ff;
}
.mark-panel[hidden] {
  display: none !important;
}
.mark-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.mark-head small {
  letter-spacing: 0.17em;
  color: #75cbea;
  font-weight: 800;
  font-size: 11px;
}
.mark-head h2 {
  font: 800 clamp(23px, 3vw, 34px) var(--font-display);
  margin: 6px 0;
}
.mark-head p {
  color: #abc9de;
  line-height: 1.5;
  font-size: 13px;
  margin: 0;
}
.mark-online {
  border: 1px solid #3b819e;
  background: #0b3149;
  border-radius: 999px;
  padding: 8px 13px;
  color: #93e9cf;
  font-size: 12px;
}
.mark-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 15px;
}
.mark-card {
  background: linear-gradient(135deg, #143e60, #0b2847);
  border: 1px solid #447b9f;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 16px 35px #0015295c;
  min-width: 0;
}
.mark-card h3 {
  margin: 0 0 7px;
  font-size: 17px;
  color: #fff;
}
.mark-card p {
  color: #acd2e5;
  font-size: 12px;
  line-height: 1.5;
}
.mark-form {
  display: flex;
  gap: 10px;
  align-items: end;
  margin: 20px 0 12px;
  flex-wrap: wrap;
}
.mark-form label {
  display: grid;
  gap: 7px;
  min-width: 190px;
  flex: 1;
  color: #cce6f5;
  font-size: 12px;
  font-weight: 700;
}
.mark-form input {
  width: 100%;
  box-sizing: border-box;
  min-height: 50px;
  font-size: 18px;
  letter-spacing: 0.13em;
}
.mark-form button,
.mark-scan {
  min-height: 50px;
  border-radius: 13px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}
.mark-form button {
  border: 1px solid #75d1ef;
  background: linear-gradient(110deg, #198fcb, #2b59b6);
  color: white;
}
.mark-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.mark-scan {
  border: 1px solid #68cba5;
  background: #124e57;
  color: #e3fff2;
}
.mark-identity {
  font-size: 12px;
  color: #a9d2e6;
  min-height: 20px;
}
.mark-feedback {
  margin-top: 16px;
  padding: 15px;
  border-radius: 13px;
  border: 1px solid #519fba;
  background: #123753;
  color: #e5f8ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}
.mark-feedback[hidden] {
  display: none;
}
.mark-feedback[data-state="entry"],
.mark-feedback[data-state="exit"] {
  border-color: #6ce0af;
  background: #145442;
  color: #effff7;
}
.mark-feedback[data-state="wait"],
.mark-feedback[data-state="complete"] {
  border-color: #e9b766;
  background: #594325;
  color: #fff0cf;
}
.mark-feedback[data-state="error"],
.mark-feedback[data-state="inactive"],
.mark-feedback[data-state="dt"] {
  border-color: #eb8494;
  background: #5b2940;
}
.mark-steps {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}
.mark-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #376489;
  border-radius: 13px;
  background: #0d2c4b;
}
.mark-step b {
  display: grid;
  place-items: center;
  flex: 0 0 33px;
  height: 33px;
  border-radius: 10px;
  background: #176ca2;
  color: white;
}
.mark-step strong {
  display: block;
  color: #e9f9ff;
  font-size: 12px;
}
.mark-step span {
  display: block;
  color: #a8cde2;
  font-size: 11px;
  margin-top: 3px;
  line-height: 1.45;
}
.mark-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 17px 0;
}
.mark-metric {
  border-radius: 14px;
  border: 1px solid #376c92;
  background: #123b5d;
  padding: 13px;
  min-width: 0;
}
.mark-metric small {
  display: block;
  color: #a8d1e4;
  font-size: 11px;
}
.mark-metric strong {
  display: block;
  font-size: 23px;
  margin-top: 5px;
}
.mark-list {
  display: grid;
  gap: 8px;
}
.mark-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #315d7f;
  border-radius: 13px;
  padding: 12px;
  background: #0c2e4d;
}
.mark-row strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.mark-row small {
  display: block;
  color: #9dbfd6;
  font-size: 11px;
  margin-top: 4px;
}
.mark-times {
  display: flex;
  gap: 14px;
  color: #a8cee1;
  font-size: 11px;
}
.mark-times b {
  display: block;
  color: #effbff;
  font-size: 13px;
  margin-top: 3px;
}
.mark-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 7px 9px;
  border-radius: 9px;
  white-space: nowrap;
}
.mark-badge.done {
  background: #145740;
  color: #94eec1;
}
.mark-badge.wait {
  background: #5b4526;
  color: #ffdb92;
}
.mark-badge.ready {
  background: #14516a;
  color: #95dfff;
}
.mark-empty {
  padding: 24px;
  text-align: center;
  color: #a8cde2;
}
@media (max-width: 800px) {
  .mark-grid {
    grid-template-columns: 1fr;
  }
  .mark-panel {
    padding: 16px 11px 105px;
  }
  .mark-card {
    padding: 15px;
  }
  .mark-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .mark-badge {
    grid-column: 1/-1;
    width: max-content;
  }
  .mark-times {
    gap: 8px;
  }
}
@media (max-width: 440px) {
  .mark-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .mark-form label {
    grid-column: 1/-1;
    min-width: 0;
  }
  .mark-form button,
  .mark-scan {
    padding: 9px 6px;
    font-size: 12px;
  }
  .mark-metrics {
    gap: 7px;
  }
  .mark-metric {
    padding: 9px;
  }
  .mark-metric strong {
    font-size: 19px;
  }
}
.mark-badge.exceptional {
  background: #254f77;
  color: #cfeaff;
  border: 1px solid #77b9e7;
}
.mark-badge.early {
  background: #6a4426;
  color: #ffe6ad;
  border: 1px solid #e4b378;
}
.mark-exception-open {
  grid-column: 1/-1;
  width: fit-content;
  border: 1px solid #e5b87b;
  border-radius: 9px;
  background: #624126;
  color: #fff0d6;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}
.mark-exception-box {
  margin-top: 17px;
  padding: 16px;
  border: 1px solid #e3b07a;
  border-radius: 15px;
  background: #503b31;
}
.mark-exception-box[hidden] {
  display: none !important;
}
.mark-exception-box h4 {
  margin: 0 0 5px;
  color: #fff0dc;
}
.mark-exception-box p {
  margin: 4px 0 12px;
  color: #f8dcc4;
}
.mark-exception-box label {
  display: grid;
  gap: 6px;
  color: #fff2dc;
  font-size: 12px;
  font-weight: 800;
}
.mark-exception-box textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 75px;
  resize: vertical;
  border: 1px solid #b89575;
  border-radius: 10px;
  background: #192d3d;
  color: #fff;
  padding: 11px;
  font: inherit;
}
.mark-exception-actions {
  display: flex;
  gap: 9px;
  margin-top: 11px;
  flex-wrap: wrap;
}
.mark-exception-actions button {
  min-height: 42px;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}
#markExceptionSubmit {
  background: #eac084;
  color: #2b2630;
  border: 0;
}
#markExceptionCancel {
  background: #233d57;
  color: #e9f7ff;
  border: 1px solid #5d819e;
}

.dz-panel {
  width: min(1180px, 100%);
}
.dz-banner {
  border: 1px solid #c79e53;
  border-radius: 13px;
  background: #49391e;
  color: #ffe9b8;
  padding: 12px 15px;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 16px;
}
.mark-week-search {
  display: grid;
  gap: 6px;
  max-width: 400px;
  color: #c4ddec;
  font-size: 12px;
  font-weight: 700;
  margin: 14px 0;
}
.mark-week-search input {
  min-height: 42px;
}
.dz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 16px 0;
}
.dz-line-card {
  background: #102f50;
  border: 1px solid #477a9c;
  border-radius: 17px;
  padding: 16px;
  min-width: 0;
}
.dz-line-card h3 {
  margin: 0 0 5px;
  color: #fff;
}
.dz-line-card p {
  color: #a8cde2;
  font-size: 12px;
  margin: 0 0 12px;
}
.dz-line-card label {
  display: grid;
  gap: 7px;
  color: #d8eff9;
  font-size: 12px;
  font-weight: 700;
}
.dz-line-card input {
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #5b90aa;
  border-radius: 10px;
  background: #0c2946;
  color: #fff;
  font: inherit;
  padding: 8px 12px;
}
.dz-roster {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  max-height: 340px;
  overflow: auto;
}
.dz-roster li {
  border-top: 1px solid #345773;
  padding: 8px 2px;
  color: #eff9ff;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.dz-roster small {
  display: block;
  color: #9dc2d8;
  margin-top: 3px;
}
.dz-empty {
  color: #9ec5db;
  font-size: 12px;
}
.dz-recipe textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 110px;
  resize: vertical;
  border: 1px solid #5b90aa;
  border-radius: 11px;
  background: #0c2946;
  color: #fff;
  font: inherit;
  padding: 12px;
}
.dz-recipe label {
  display: grid;
  gap: 7px;
  color: #d8eff9;
  font-size: 12px;
  font-weight: 700;
}
.dz-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
  flex-wrap: wrap;
}
.dz-actions button {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #7ec9ea;
  border-radius: 10px;
  background: #207cb6;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.dz-actions span {
  color: #a8d2e2;
  font-size: 12px;
}
.dz-source {
  margin-bottom: 16px;
}
.dz-source p {
  font-size: 12px;
}
.dz-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
  gap: 9px;
  align-items: end;
}
.dz-map label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 12px;
  color: #d7ecf8;
}
.dz-map select,
.dz-map input {
  min-height: 44px;
  max-width: 100%;
}
.dz-map button {
  min-height: 44px;
  border: 1px solid #7ec9ea;
  border-radius: 10px;
  background: #165a83;
  color: #fff;
  padding: 8px 13px;
  font-weight: 750;
  cursor: pointer;
}
.pk-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.pk-field {
  border: 1px solid #315f80;
  background: #0b2946;
  border-radius: 11px;
  padding: 10px 12px;
  min-width: 0;
}
.pk-field strong {
  display: block;
  color: #f0faff;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.pk-field small {
  display: block;
  color: #acd3e7;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.pk-field.mp {
  border-color: #dcb267;
  background: #473923;
}
#packentraPanel .dz-actions label {
  display: grid;
  gap: 5px;
  color: #d7ecf8;
  font-size: 12px;
}
@media (max-width: 820px) {
  .dz-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .dz-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dz-map label {
    grid-column: 1/-1;
  }
  .pk-fields {
    grid-template-columns: 1fr;
  }
}

.pda-toggle {
  white-space: nowrap;
  background: linear-gradient(135deg, #154f78, #2479aa) !important;
  border-color: #67b8de !important;
}
.pda-toggle[aria-pressed="true"] {
  box-shadow:
    0 0 0 2px #7edcff,
    0 6px 18px #012738 !important;
}
.pda-panel[hidden] {
  display: none !important;
}
.pda-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: end;
  margin: 10px 0 0;
  padding: 13px;
  border: 1px solid #4d9bc1;
  border-radius: 15px;
  background: linear-gradient(140deg, #0c3654, #123c59);
  box-shadow: 0 6px 20px #001b2a50;
}
.pda-panel label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #e5f7ff;
  font-size: 12px;
  font-weight: 800;
}
.pda-panel input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  border: 1px solid #6eaecb;
  border-radius: 11px;
  background: #082842;
  color: #fff;
  font: 600 17px var(--font-body);
  padding: 10px 13px;
}
.pda-panel input:focus-visible {
  outline: 2px solid #8ddaff;
  outline-offset: 2px;
}
.pda-panel button {
  min-height: 44px;
  border: 1px solid #89d4ed;
  border-radius: 11px;
  background: #2678a2;
  color: #fff;
  padding: 9px 15px;
  font-weight: 800;
  cursor: pointer;
}
.pda-panel p {
  grid-column: 1/-1;
  margin: 0;
  color: #bad8e9;
  font-size: 12px;
  line-height: 1.4;
}
.pda-panel [data-state="error"] {
  color: #ffbdab;
}
.pda-panel [data-state="ready"] {
  color: #9ce8c9;
}
@media (max-width: 640px) {
  .pda-toggle {
    min-width: 44px !important;
  }
  .pda-panel {
    grid-template-columns: 1fr;
  }
  .pda-panel button {
    width: 100%;
  }
}

.hr-roster-schedule {
  margin: 0 0 12px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid #5b82a0;
  background: #092c45;
  color: #c9e8f9;
  font-size: 12px;
  line-height: 1.5;
}
.hr-roster-schedule p {
  margin: 0;
}
.hr-roster-lock {
  color: #ffdb98;
  margin-top: 6px !important;
}
.hr-roster-details {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.hr-roster-details span {
  font-size: 12px;
  color: #b8d4e8;
  overflow-wrap: anywhere;
}
.hr-roster-details .hr-roster-labor {
  color: #d6efff;
}
.hr-roster-details .hr-roster-times {
  color: #9be3cb;
  font-weight: 800;
  margin-top: 4px;
}
.hr-roster-person {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: start !important;
}
.hr-roster-edit,
.hr-roster-schedule button {
  min-height: 40px;
  border: 1px solid #7aa9c4;
  background: #1c526f;
  color: #effaff;
  border-radius: 10px;
  padding: 8px 12px;
  font: 700 12px var(--font-body);
  cursor: pointer;
}
.hr-roster-edit:disabled {
  opacity: 0.5;
  cursor: default;
}
.hr-roster-schedule button {
  margin-top: 8px;
}
@media (max-width: 600px) {
  .hr-roster-person {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }
  .hr-roster-edit {
    grid-column: 2;
    width: fit-content;
  }
  .hr-roster-details strong {
    font-size: 14px;
  }
}

.mark-manage-actions {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #365e7a;
  padding-top: 9px;
}
.mark-manage-actions button {
  min-height: 36px;
  border-radius: 9px;
  border: 1px solid #6694b0;
  background: #214c6c;
  color: #e6f8ff;
  padding: 7px 13px;
  font: 700 12px var(--font-body);
  cursor: pointer;
}
.mark-delete-action {
  background: #612f40 !important;
  border-color: #bc697e !important;
  color: #ffe0e6 !important;
}
#markEditTimes[hidden],
#markEditDeleteNote[hidden] {
  display: none !important;
}
.mark-edit-sheet {
  max-width: 570px;
}
.mark-edit-sheet input,
.mark-edit-sheet select,
.mark-edit-sheet textarea {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}
@media (max-width: 600px) {
  .mark-manage-actions {
    justify-content: flex-start;
  }
}

.pda-fast .overlay {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.pda-fast #workerOverlay .sheet {
  animation: none !important;
  transition: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.pda-fast .bg-scene * {
  animation-play-state: paused !important;
}

.pda-fast .bg-scene {
  display: none !important;
}
@media (max-width: 640px) {
  .pda-fast #workerOverlay {
    padding: 0 !important;
    align-items: stretch !important;
  }
  .pda-fast #workerOverlay .sheet {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 12px 12px max(12px, env(safe-area-inset-bottom)) !important;
    background: #0c2e49 !important;
    box-shadow: none !important;
    overflow-y: auto !important;
  }
  .pda-fast #workerOverlay .sheet-header {
    position: sticky;
    top: -12px;
    z-index: 12;
    background: #0c2e49;
    margin: -12px -12px 12px;
    padding: 12px;
    border-bottom: 1px solid #386682;
  }
  .pda-fast #workerTitle {
    font-size: 17px !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere;
  }
  .pda-fast #workerDetail {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }
  .pda-fast #workerOverlay .field-group {
    margin-bottom: 11px !important;
  }
  .pda-fast #workerOverlay .field-label {
    font-size: 11px !important;
    margin-bottom: 6px !important;
  }
  .pda-fast #workerOverlay .input {
    font-size: 16px !important;
    min-height: 44px !important;
    padding: 9px 11px !important;
  }
  .pda-fast #workerOverlay .line-options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .pda-fast #workerOverlay .line-options button {
    min-height: 44px !important;
    padding: 7px 6px !important;
    box-shadow: none !important;
  }
  .pda-fast #workerOverlay .sheet-actions {
    position: sticky;
    bottom: 0;
    z-index: 11;
    background: #0c2e49 !important;
    padding: 9px 0 !important;
    border-top: 1px solid #47718c;
    margin-top: 12px !important;
  }
  .pda-fast #workerOverlay .sheet-actions .btn {
    min-height: 46px !important;
    box-shadow: none !important;
  }
  .pda-fast #workerOverlay .function-options {
    position: static !important;
    max-height: 230px !important;
    box-shadow: none !important;
    overflow-y: auto !important;
  }
  .pda-fast #workerOverlay .function-options[hidden] {
    display: none !important;
  }
  .pda-fast #workerOverlay .sheet,
  .pda-fast #workerOverlay button {
    transition: none !important;
  }
}

.cold-dispatch-filter {
  white-space: nowrap !important;
}
.cold-dispatch-filter span {
  font-size: 11px;
  min-width: 20px;
  border-radius: 8px;
  padding: 2px 5px;
  background: #18435d;
  color: #c7e8f8;
  margin-left: 5px;
}
.cold-dispatch-filter.active span {
  background: #ffffff30;
  color: #fff;
}
@media (max-width: 640px) {
  #filters {
    flex-wrap: wrap !important;
    gap: 7px !important;
  }
  .cold-dispatch-filter {
    min-height: 40px !important;
  }
}

#lineChoices button[hidden] {
  display: none !important;
}
#lineChoices[data-dispatch="true"] {
  grid-template-columns: minmax(0, 1fr) !important;
}
#lineChoices[data-dispatch="true"] button {
  min-height: 44px !important;
  font-size: 14px !important;
}

#saveHorariosShift {
  display: none !important;
}
.hr-roster-person {
  margin-bottom: 10px;
}
.hr-editor-header h3 {
  overflow-wrap: anywhere;
}
.hr-editor-subtitle {
  white-space: normal;
}

@media (min-width: 900px) {
  #horariosPanel {
    --hr-cols: minmax(140px, 1.3fr) minmax(100px, 0.8fr) minmax(120px, 1fr)
      minmax(120px, 1fr);
  }
  #horariosPanel .hr-line-card {
    grid-template-columns: var(--hr-cols);
  }
  #horariosPanel .hr-table-head {
    grid-template-columns: var(--hr-cols);
  }
}
@media (max-width: 900px) {
  #horariosPanel .hr-card-times > span {
    grid-column: 1/-1;
  }
}
#horariosPanel .hr-card-times > span {
  font-size: 12px;
  color: var(--ink-dim);
  padding: 8px 0;
}

#hrxXlsx {
  background: linear-gradient(180deg, #6474ff 0%, #4954db 100%) !important;
  border: 1px solid #96a4ff !important;
  color: #fff !important;
  border-radius: 9px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(67, 76, 205, 0.22) !important;
}
#hrxXlsx:hover {
  background: linear-gradient(180deg, #7683ff, #5660e7) !important;
}
#hrxXlsx:focus-visible {
  outline: 3px solid rgba(157, 169, 255, 0.65);
  outline-offset: 2px;
}
#hrxXlsx:disabled {
  opacity: 0.6;
}
#areaUsersOverlay .sheet {
  max-width: 580px;
}
#areaUsersOverlay li {
  overflow-wrap: anywhere;
  margin: 8px 0;
}
#areaUsersStatus {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

html:not([data-account-role="admin"]) .admin-only {
  display: none !important;
}
html[data-account-role="admin"] .tareador-only {
  display: none !important;
}

/* Keep sizes, colors, video and controls; simplify compositing on touch devices. */
@media (pointer: coarse) {
  .app .person-row {
    animation: none !important;
    transition: background-color 0.12s !important;
    content-visibility: auto;
    contain-intrinsic-size: auto 132px;
  }
  .bg-scene,
  .berry3d,
  .grain,
  .stars,
  .dust,
  .comet,
  .horizon {
    display: none !important;
  }
  #loginScreen .login-film-overlay::after {
    animation: none !important;
    will-change: auto !important;
  }
  #loginScreen .login-video {
    filter: none !important;
  }
  .overlay,
  .sheet,
  .bottom-bar,
  .assistant-live,
  .vd-card,
  .filter-pill {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
.lite-mode .app *,
.lite-mode .app *::before,
.lite-mode .app *::after,
.lite-mode #loginScreen *::before,
.lite-mode #loginScreen *::after {
  animation: none !important;
  will-change: auto !important;
}
.lite-mode .app .person-row,
.lite-mode .vd-card,
.lite-mode .vd-metric {
  box-shadow: none !important;
}
.lite-mode .overlay,
.lite-mode .sheet,
.lite-mode .login-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.lite-mode .overlay.open,
.lite-mode .sheet {
  animation: none !important;
  transition: none !important;
}

#workerAssignedSection[hidden] {
  display: none !important;
}
.area-picker {
  width: 100%;
  min-width: 0;
}
.area-picker-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid #41739a;
  border-radius: 16px;
  background: linear-gradient(120deg, #123b60, #102c4a);
  color: #e6f4ff;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}
.area-picker-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #22558b;
  color: #b9d8ff;
}
.area-picker-icon svg {
  width: 21px;
  height: 21px;
}
.area-picker-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.area-picker-copy small {
  font-size: 10px;
  color: #acd0e6;
  font-weight: 500;
}
.area-picker-copy strong {
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.area-picker-chevron {
  width: 20px;
  height: 20px;
  flex: none;
}
.area-picker-trigger[aria-expanded="true"] {
  border-color: #839ef6;
  background: #163c60;
}
.area-picker-trigger[aria-expanded="true"] .area-picker-chevron {
  transform: rotate(180deg);
}
.area-picker-trigger:focus-visible,
.area-choice:focus-visible {
  outline: 2px solid #aecbff;
  outline-offset: 3px;
}
.area-picker-panel {
  position: relative;
  margin-top: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #426e92;
  background: #0c2742;
  box-sizing: border-box;
}
.area-picker-panel[hidden] {
  display: none !important;
}
.area-search-label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  color: #b4cfe6;
}
#workerAreaSearch {
  width: 100%;
  height: 42px;
  min-height: 42px !important;
  font-size: 16px !important;
  box-sizing: border-box;
}
.area-picker-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(280px, 36dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 10px;
  -webkit-overflow-scrolling: touch;
}
.area-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid #315774;
  border-radius: 11px;
  background: #102f4d;
  color: #d8eafa;
  text-align: left;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  box-sizing: border-box;
}
.area-choice-code {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 8px;
  background: #1c426b;
  color: #baceff;
  font-size: 10px;
  font-weight: 800;
}
.area-choice-name {
  flex: 1;
  line-height: 1.3;
}
.area-choice-check {
  width: 18px;
  font-weight: 800;
  color: #99dfc5;
}
.area-choice[aria-pressed="true"] {
  background: #214879;
  border-color: #839ffa;
  color: #fff;
}
.area-picker-foot {
  display: block;
  margin-top: 9px;
  color: #99b7d0;
  font-size: 10px;
}
@media (max-width: 600px) {
  .area-picker-trigger {
    min-height: 62px;
    padding: 10px 12px;
  }
  .area-picker-panel {
    padding: 10px;
  }
  .area-picker-options {
    max-height: min(240px, 33dvh);
  }
}
.pda-fast .area-picker-trigger,
.lite-mode .area-picker-trigger {
  background: #153b5e;
  box-shadow: none;
}

#loginScreen .login-video {
  filter: none !important;
  transform: none !important;
  box-shadow: none !important;
}
#loginScreen::before,
#loginScreen::after,
#loginScreen .login-film-overlay::after {
  animation: none !important;
  will-change: auto !important;
}
#loginScreen .login-card::before,
#loginScreen .login-card::after {
  animation: none !important;
}

/* Acciones del tareador: dos posiciones estables en cualquier tamaño. */
html[data-account-role="supervisor"]
  .bottom-bar
  .bottom-bar-inner.backend-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
}
html[data-account-role="supervisor"] .bottom-bar #exportDay {
  grid-column: 1 !important;
  grid-row: 1 !important;
}
html[data-account-role="supervisor"] .bottom-bar #openAreaCompletion {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-items: center;
  justify-content: center;
  min-width: 0 !important;
  width: 100% !important;
  background: linear-gradient(120deg, #5865e9, #8257d9) !important;
  border: 1px solid #a6a7ff !important;
  color: #fff !important;
}
html[data-account-role="supervisor"] .bottom-bar #closeDay,
html[data-account-role="supervisor"] .bottom-bar #exportPeriod {
  display: none !important;
}
html:not([data-account-role="supervisor"]) #openAreaCompletion {
  display: none !important;
}

#areaValidationPanel.avr-panel {
  width: 100%;
  max-width: none;
  padding: 22px clamp(10px, 2vw, 28px) 100px;
  box-sizing: border-box;
}
.avr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.avr-eyebrow {
  color: #9daff4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.avr-header h2 {
  margin: 8px 0;
  font: 800 clamp(24px, 3vw, 34px) var(--font-display, system-ui);
  color: #f1f4ff;
  letter-spacing: -0.025em;
}
.avr-header p {
  font-size: 13px;
  color: #a8bed8;
  margin: 0;
}
.avr-header .btn {
  min-height: 44px;
  white-space: nowrap;
  border-radius: 12px;
}
.avr-overview {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.4fr);
  gap: 24px;
  padding: 22px;
  border-radius: 19px;
  border: 1px solid #35476e;
  background: linear-gradient(115deg, #1c294b, #12223c);
  margin-bottom: 22px;
}
.avr-progress > strong {
  display: block;
  font: 700 clamp(17px, 2vw, 23px) var(--font-display, system-ui);
  color: #eef3ff;
  margin: 9px 0 13px;
}
.avr-progress > small {
  font-size: 11px;
  color: #a7bad5;
}
.avr-progress-track {
  height: 7px;
  border-radius: 10px;
  background: #0c1830;
  overflow: hidden;
  margin-bottom: 10px;
}
.avr-progress-track i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6877f6, #8ea4ff);
  border-radius: 10px;
}
.avr-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}
.avr-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 12px;
  border: 1px solid #3b4c6c;
  border-radius: 14px;
  background: #0a193251;
  min-width: 0;
}
.avr-metric-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #b4c5e0;
  background: #263957;
  flex: 0 0 auto;
  font-weight: 800;
}
.avr-metric[data-state="complete"] .avr-metric-icon {
  color: #94e6bd;
  background: #164133;
}
.avr-metric[data-state="changed"] .avr-metric-icon {
  color: #ffd38a;
  background: #493820;
}
.avr-metric small {
  display: block;
  font-size: 11px;
  color: #b2c2d9;
  line-height: 1.4;
}
.avr-metric strong {
  display: block;
  font: 800 26px var(--font-display, system-ui);
  color: #f4f6ff;
  margin-top: 5px;
}
.avr-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.avr-toolbar label {
  display: block;
  margin: 0 0 8px;
  color: #acbdd6;
  font-size: 11px;
  font-weight: 700;
}
.avr-segments,
.avr-states {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #0a1930;
  border: 1px solid #304563;
  border-radius: 12px;
}
.avr-toolbar button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  background: transparent;
  color: #aabed7;
  font: 600 12px var(--font-body, system-ui);
  cursor: pointer;
  white-space: nowrap;
}
.avr-segments button[aria-pressed="true"] {
  background: #5865d9;
  color: #fff;
  box-shadow: 0 2px 8px #0003;
}
.avr-states button[aria-pressed="true"] {
  background: #253b5c;
  color: #edf3ff;
}
.avr-toolbar button:focus-visible {
  outline: 2px solid #a2b6ff;
  outline-offset: 2px;
}
.avr-areas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.avr-area {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 2fr);
  align-items: center;
  gap: 20px;
  background: #10213b;
  border: 1px solid #304762;
  border-radius: 17px;
  padding: 17px 19px;
}
.avr-area-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.avr-area-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #c2caff;
  background: #27375e;
  border: 1px solid #4d5682;
  font-size: 12px;
  font-weight: 800;
}
.avr-area-name h3 {
  font-size: 15px;
  color: #edf2ff;
  margin: 0 0 5px;
  line-height: 1.4;
}
.avr-area-name small {
  font-size: 11px;
  color: #9db2ce;
}
.avr-turns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.avr-turns:has(> .avr-turn:only-child) {
  grid-template-columns: 1fr;
}
.avr-turn {
  min-width: 0;
  padding: 13px 15px;
  border-radius: 12px;
  background: #0a192e;
  border: 1px solid #293e59;
  border-left: 3px solid #586b87;
}
.avr-turn[data-state="complete"] {
  border-left-color: #60d0a2;
}
.avr-turn[data-state="changed"] {
  border-left-color: #f0b85d;
}
.avr-turn-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.avr-turn-top > strong {
  font-size: 12px;
  color: #c6d7ef;
  white-space: nowrap;
}
.avr-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 7px;
  color: #c0d0e6;
  background: #25364d;
  line-height: 1.4;
}
.avr-turn[data-state="complete"] .avr-badge {
  color: #9eedc7;
  background: #153c32;
}
.avr-turn[data-state="changed"] .avr-badge {
  color: #ffd18e;
  background: #48351d;
}
.avr-owner {
  font-size: 12px;
  color: #d0def1;
  line-height: 1.4;
  margin: 11px 0 7px;
  overflow-wrap: anywhere;
}
.avr-awaiting {
  color: #92a9c4;
  margin-bottom: 0;
}
.avr-turn-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  color: #94acc9;
  font-size: 10px;
}
.avr-change-note {
  display: block;
  color: #e5bf84;
  font-size: 10px;
  margin-top: 8px;
  line-height: 1.5;
}
.avr-footnote {
  font-size: 11px;
  line-height: 1.6;
  color: #91a9c8;
  margin: 18px 2px 0;
}
.avr-empty {
  padding: 30px 18px;
  text-align: center;
  border: 1px dashed #405778;
  border-radius: 14px;
  color: #aec2dc;
  font-size: 13px;
}
.avr-error {
  color: #ffbdac;
  font-size: 12px;
  line-height: 1.5;
}
.avr-error:empty {
  display: none;
}
@media (max-width: 1050px) {
  .avr-overview {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .avr-area {
    grid-template-columns: minmax(155px, 0.7fr) minmax(0, 2fr);
    gap: 14px;
  }
  .avr-metric {
    padding: 14px;
  }
  .avr-metric strong {
    font-size: 23px;
  }
}
@media (max-width: 760px) {
  .avr-area {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 15px;
  }
  .avr-header {
    align-items: flex-start;
  }
  .avr-header .btn {
    font-size: 11px;
    padding: 10px;
  }
  .avr-overview {
    padding: 17px;
  }
  .avr-toolbar {
    display: block;
  }
  .avr-toolbar > div + div {
    margin-top: 13px;
  }
  .avr-states {
    overflow-x: auto;
  }
  .avr-states button {
    flex: 1;
  }
  .avr-metric {
    display: block;
    padding: 12px 10px;
  }
  .avr-metric-icon {
    margin-bottom: 8px;
    width: 27px;
    height: 27px;
  }
  .avr-metric small {
    font-size: 10px;
  }
  .avr-metrics {
    gap: 8px;
  }
}
@media (max-width: 460px) {
  .avr-turns {
    grid-template-columns: 1fr;
  }
  .avr-header h2 {
    font-size: 25px;
  }
  .avr-header p {
    font-size: 11px;
  }
  .avr-badge {
    font-size: 10px;
  }
  .avr-toolbar button {
    padding-inline: 12px;
  }
  .avr-turn-meta {
    font-size: 11px;
  }
  .avr-overview {
    border-radius: 15px;
  }
  .avr-area-name h3 {
    font-size: 14px;
  }
}

#validationDashboard .vd-controls {
  min-width: min(100%, 330px);
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
}
.dashboard-day-field {
  width: 100%;
  min-width: 0;
  padding: 12px;
  background: #0c1f39;
  border: 1px solid #3b5477;
  border-radius: 13px;
  box-sizing: border-box;
}
.dashboard-day-field > label {
  display: block !important;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: #b4cbe7;
}
.dashboard-day-control {
  display: grid;
  grid-template-columns: 38px minmax(120px, 1fr) 38px 52px;
  gap: 6px;
  align-items: center;
}
.dashboard-day-control input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  box-sizing: border-box;
  background: #112941;
  color: #edf3ff;
  border: 1px solid #496482;
  border-radius: 9px;
  font: 600 13px var(--font-body, system-ui);
  color-scheme: dark;
}
#validationDashboard .dashboard-day-control button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 7px 8px;
  box-sizing: border-box;
  border: 1px solid #4c5e82;
  border-radius: 9px;
  background: #203654;
  color: #eef1ff;
  font-weight: 700;
  cursor: pointer;
}
#validationDashboard .dashboard-day-control button#dashboardToday {
  background: #5c62d9;
  border-color: #979cfa;
  font-size: 12px;
}
.dashboard-day-field small {
  display: block;
  font-size: 10px;
  color: #9fb9d9;
  margin-top: 8px;
}
.dashboard-day-control :focus-visible {
  outline: 2px solid #9fb9ff;
  outline-offset: 2px;
}
@media (max-width: 700px) {
  #validationDashboard .vd-controls {
    width: 100%;
    max-width: none;
  }
  .dashboard-day-control {
    grid-template-columns: 36px minmax(0, 1fr) 36px 48px;
  }
  .dashboard-day-control input {
    font-size: 16px !important;
    min-height: 44px;
  }
  .dashboard-day-field {
    padding: 10px;
  }
}

#validationDashboard .dashboard-heading {
  margin-bottom: 18px;
  display: block;
  min-height: 0;
}
.dashboard-filter-shell {
  margin-bottom: 20px;
  background: linear-gradient(115deg, #14243f, #102039);
  border: 1px solid #354964;
  border-radius: 18px;
  overflow: hidden;
}
#validationDashboard .vd-controls.dashboard-filter-top {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) minmax(230px, 0.8fr) auto;
  align-items: end;
  gap: 24px;
  max-width: none;
  width: 100%;
  min-width: 0;
  padding: 20px;
  box-sizing: border-box;
}
#validationDashboard .dashboard-day-field {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
}
#validationDashboard .dashboard-day-field > label,
#validationDashboard .dashboard-shift-field > label {
  display: flex !important;
  align-items: center;
  gap: 7px;
  color: #a2b6d3;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
  margin: 0 0 10px;
}
#validationDashboard .dashboard-day-field > label > span {
  color: #a0b4ff;
  font-size: 15px;
  line-height: 10px;
}
#validationDashboard .dashboard-day-control {
  grid-template-columns: 36px minmax(120px, 1fr) 36px 48px;
  gap: 5px;
  background: #091a2f;
  border: 1px solid #3c526e;
  border-radius: 12px;
  padding: 3px;
  box-sizing: border-box;
}
#validationDashboard .dashboard-day-control input {
  background: transparent;
  border: 0;
  border-radius: 7px;
  padding: 8px;
  min-height: 38px;
  font: 650 15px var(--font-body, system-ui);
  color: #eef3ff;
  text-align: center;
}
#validationDashboard .dashboard-day-control button {
  width: 100%;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: #acbfd8;
  padding: 5px;
  border-radius: 8px;
  font-size: 21px;
}
#validationDashboard .dashboard-day-control button:hover {
  background: #20344f;
  color: #fff;
}
#validationDashboard .dashboard-day-control button#dashboardToday {
  background: #2b3561;
  color: #cbd1ff;
  border: 1px solid #5665a1;
  font-size: 11px;
  min-height: 34px;
}
#validationDashboard .dashboard-date-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#validationDashboard #dashboardShift {
  display: none !important;
}
.dashboard-shift-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: #091a2f;
  border: 1px solid #3c526e;
  border-radius: 12px;
}
#validationDashboard .dashboard-shift-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 36px;
  width: 100%;
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9fb5d2;
  font: 650 12px var(--font-body, system-ui);
  cursor: pointer;
  white-space: nowrap;
}
#validationDashboard .dashboard-shift-tabs button[aria-pressed="true"] {
  background: #4558b4;
  color: #fff;
  box-shadow: 0 2px 5px #0002;
}
#validationDashboard .dashboard-shift-tabs button:focus-visible {
  outline: 2px solid #b5c3ff;
  outline-offset: 1px;
}
#validationDashboard .dashboard-export {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  min-height: 46px;
  padding: 10px 19px;
  background: linear-gradient(115deg, #5266df, #7055d2);
  border: 1px solid #939ef5;
  white-space: nowrap;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 5px 15px #1d24504d;
  margin: 0;
}
#validationDashboard #downloadValidation,
#validationDashboard #downloadHint {
  grid-column: 1/-1;
}
#validationDashboard .dashboard-filter-shell .vd-area-filter {
  margin: 0;
  padding: 16px 20px 18px;
  background: #0d1c3140;
  border: 0;
  border-top: 1px solid #30415a;
  border-radius: 0;
}
#validationDashboard .dashboard-filter-shell .vd-area-heading {
  margin-bottom: 10px;
}
#validationDashboard .dashboard-filter-shell .vd-area-heading > span {
  font-size: 10px;
  color: #a2b6d3;
  letter-spacing: 0.09em;
}
#validationDashboard .dashboard-build {
  font-size: 9px;
  color: #758eaf;
  font-weight: 500;
  letter-spacing: 0;
}
#validationDashboard .dashboard-filter-shell .vd-area-heading > small {
  font-size: 11px;
  color: #8da4c3;
}
#validationDashboard .dashboard-filter-shell .vd-area-buttons button {
  border-radius: 10px;
  min-height: 38px;
  padding: 7px 11px;
  font-size: 11px;
  background: #142842;
  border-color: #354d6c;
  box-shadow: none;
}
#validationDashboard
  .dashboard-filter-shell
  .vd-area-buttons
  button[aria-pressed="true"] {
  background: #344b83;
  border-color: #859ce0;
  color: #f5f7ff;
}
@media (max-width: 1000px) {
  #validationDashboard .vd-controls.dashboard-filter-top {
    grid-template-columns: minmax(240px, 1.1fr) minmax(210px, 1fr);
    gap: 16px;
  }
  #validationDashboard .dashboard-export {
    grid-column: 1/-1;
    justify-self: end;
    min-width: 180px;
  }
}
@media (max-width: 600px) {
  #validationDashboard .vd-controls.dashboard-filter-top {
    grid-template-columns: minmax(0, 1fr);
    padding: 15px;
    gap: 17px;
  }
  #validationDashboard .dashboard-export {
    justify-self: stretch;
    width: 100%;
    min-height: 44px;
  }
  #validationDashboard .dashboard-filter-shell .vd-area-filter {
    padding: 14px 15px;
  }
  #validationDashboard .dashboard-day-control {
    grid-template-columns: 34px minmax(0, 1fr) 34px 46px;
  }
  #validationDashboard .dashboard-day-control input {
    font-size: 16px;
    min-height: 38px;
  }
  #validationDashboard .dashboard-day-control button {
    min-height: 40px;
  }
  #validationDashboard .dashboard-shift-tabs button {
    min-height: 38px;
  }
  #validationDashboard .dashboard-filter-shell .vd-area-buttons {
    padding-bottom: 5px;
  }
  #validationDashboard .dashboard-filter-shell .vd-area-heading {
    gap: 5px;
    align-items: flex-start;
  }
  #validationDashboard .dashboard-filter-shell .vd-area-heading > small {
    font-size: 10px;
  }
  .dashboard-filter-shell {
    border-radius: 15px;
  }
}

/* V67: filtros compactos por periodo, como el reporte de horas. */
#validationDashboard .dashboard-range-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 13px;
}
#validationDashboard .dashboard-range-presets button {
  min-height: 38px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--glass-2);
  color: var(--ink-soft);
  font: 600 12px var(--font-body);
  padding: 8px 13px;
  cursor: pointer;
}
#validationDashboard .dashboard-range-presets button[aria-pressed="true"] {
  background: var(--berry-3);
  color: white;
  border-color: #8cb6ff;
}
#validationDashboard .vd-controls.dashboard-filter-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
  align-items: end;
  gap: 12px;
}
#validationDashboard .dashboard-range-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.07em;
  color: var(--ink-dim);
}
#validationDashboard .dashboard-range-field .input {
  min-width: 0;
  width: 100%;
  height: 43px;
  min-height: 43px;
  border-radius: 12px;
  font-size: 13px;
  letter-spacing: normal;
  padding: 9px 12px;
  box-sizing: border-box;
}
#validationDashboard .dashboard-date-status {
  display: block;
  margin: 10px 0 0;
}
@media (max-width: 1000px) {
  #validationDashboard .vd-controls.dashboard-filter-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #validationDashboard .dashboard-export {
    grid-column: 1/-1;
    justify-self: start;
  }
}
@media (max-width: 420px) {
  #validationDashboard .dashboard-range-presets {
    gap: 5px;
  }
  #validationDashboard .dashboard-range-presets button {
    font-size: 11px;
    padding: 8px 9px;
  }
  #validationDashboard .vd-controls.dashboard-filter-top {
    gap: 10px;
  }
}

#validationDashboard #dashboardArea,
#validationDashboard #dashboardShift {
  display: block !important;
}
#validationDashboard .dashboard-range-presets {
  padding: 16px 20px 0;
}

#horariosPanel .hr-cell.has-time {
  height: auto;
  min-height: 42px;
  padding: 10px 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

/* V69: pantallas tactiles, teclado y equipos de pocos recursos. */
#horarioEditorOverlay {
  overscroll-behavior: contain;
}
#horarioEditorOverlay .hr-editor-sheet {
  box-sizing: border-box;
  max-height: calc(var(--hour-viewport, 100dvh) - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-block: 14px 90px;
}
#horarioEditorOverlay .hr-editor-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #102d49;
  padding: 10px 0 max(10px, env(safe-area-inset-bottom));
  gap: 10px;
}
#horarioEditorOverlay .hr-editor-actions .btn {
  min-height: 44px;
  min-width: 0;
  white-space: normal;
  touch-action: manipulation;
}
#horarioEditorOverlay .hr-editor-subtitle {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
}
#horarioStart,
#horarioEnd {
  font-size: 20px !important;
  min-height: 48px;
  scroll-margin-block: 20px;
}
#horariosPanel .hr-cell,
#horariosPanel .hr-count-button,
.hr-roster-edit,
.now-button {
  touch-action: manipulation;
  min-height: 44px;
}
.hr-roster-person {
  content-visibility: auto;
  contain-intrinsic-size: auto 120px;
}
#dashboardMoreRows {
  display: block;
  margin: 14px auto;
  min-height: 44px;
  touch-action: manipulation;
}
#dashboardMoreRows[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  #horarioEditorOverlay {
    padding: 0 8px 8px !important;
    align-items: flex-end !important;
  }
  #horarioEditorOverlay .hr-editor-sheet {
    width: 100% !important;
    max-width: 540px !important;
    margin: 0 auto !important;
    padding: 16px 14px 0 !important;
    border-radius: 18px 18px 10px 10px !important;
  }
  #horarioEditorOverlay .hr-editor-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  #horarioEditorOverlay .hr-editor-fields > div {
    min-width: 0;
  }
  #horarioEditorOverlay .hr-editor-fields input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  #horarioEditorOverlay .now-button {
    width: 100%;
    padding: 8px;
    font-size: 12px;
    white-space: normal;
  }
  #horarioEditorOverlay .hr-editor-header h3 {
    font-size: 19px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  #horarioEditorOverlay .hr-editor-banner {
    font-size: 11px;
    padding: 10px;
  }
  .hr-roster-person {
    contain-intrinsic-size: auto 160px;
  }
}
@media (max-width: 350px) {
  #horarioEditorOverlay .hr-editor-fields {
    grid-template-columns: 1fr;
  }
}
.lite-mode .hr-roster-person,
.lite-mode .hr-line-card,
.lite-mode .hr-cell {
  box-shadow: none !important;
  transition: none !important;
}
@media (pointer: coarse) {
  .sheet input,
  .sheet select,
  .sheet textarea {
    font-size: 16px;
  }
  .overlay .sheet {
    overscroll-behavior: contain;
  }
}

#validationDashboard .dashboard-date-status {
  position: static;
  width: auto;
  height: auto;
  margin: 10px 20px;
  padding: 0;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}

.hr-bulk-box {
  border: 1px solid #5277a4;
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0;
  background: #102c46;
}
.hr-bulk-box[hidden] {
  display: none !important;
}
.hr-bulk-box > p {
  font-size: 12px;
  line-height: 1.45;
  color: #c0d7eb;
}
.hr-bulk-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}
.hr-bulk-picks button {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #456487;
  background: #173955;
  color: #d8e9fa;
  border-radius: 9px;
  font: 600 12px var(--font-body);
  touch-action: manipulation;
}
.hr-bulk-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
}
.hr-bulk-times label {
  min-width: 0;
  color: #c5d9e9;
  font-size: 12px;
}
.hr-bulk-times .input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  font-size: 18px;
  min-height: 46px;
  margin-top: 6px;
}
.hr-bulk-box small {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: #b6cfe2;
}
.hr-bulk-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: #b7dce9;
  font-size: 12px;
  cursor: pointer;
}
.hr-bulk-check[hidden] {
  display: none !important;
}
.hr-bulk-check input {
  width: 21px;
  height: 21px;
  accent-color: #66c7f2;
  margin: 0;
  flex: none;
}
#openBulkHours,
#saveBulkHours {
  min-height: 44px;
  touch-action: manipulation;
  white-space: normal;
}
@media (max-width: 600px) {
  .hr-bulk-box {
    padding: 12px;
  }
  .hr-bulk-picks button {
    flex: 1 1 auto;
  }
  #saveBulkHours {
    width: 100%;
  }
}

.area-lock-banner {
  padding: 13px 16px;
  margin: 12px 0;
  border: 1px solid #c8a349;
  border-radius: 12px;
  color: #f5dfae;
  background: #352d1b;
  font-size: 13px;
  line-height: 1.5;
}
.area-lock-banner[hidden] {
  display: none !important;
}
.av-unlock-button {
  margin-top: 10px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid #dfb25c;
  border-radius: 9px;
  background: #44341f;
  color: #ffe3a1;
  cursor: pointer;
  font: 600 12px var(--font-body);
  touch-action: manipulation;
}
#reopenAreaOverlay .sheet {
  max-width: 520px;
}
#reopenAreaReason {
  box-sizing: border-box;
  width: 100%;
  margin-top: 8px;
  font-size: 16px;
}
#confirmReopenArea {
  min-height: 44px;
  width: 100%;
}

/* V75: pintura ligera y controles estables en pantallas táctiles. */
@media (pointer: coarse) {
  .person-row {
    content-visibility: auto;
    contain-intrinsic-size: auto 150px;
    touch-action: manipulation;
  }
  .avr-area {
    content-visibility: auto;
    contain-intrinsic-size: auto 350px;
  }
  .overlay .sheet {
    max-width: 100%;
    box-sizing: border-box;
    scroll-padding-bottom: 24px;
  }
  .overlay input,
  .overlay select,
  .overlay textarea {
    font-size: 16px !important;
  }
  .overlay button {
    touch-action: manipulation;
  }
  #reopenAreaOverlay .sheet,
  #areaCompletionOverlay .sheet {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 380px) {
  .hr-bulk-times {
    grid-template-columns: 1fr;
  }
  #areaCompletionControls .btn,
  .av-unlock-button {
    white-space: normal;
    max-width: 100%;
    min-height: 44px;
  }
}
.lite-mode .avr-area,
.lite-mode .avr-metric,
.lite-mode .hr-bulk-box {
  box-shadow: none !important;
  transition: none !important;
}

/* Conversación integrada: texto, dictado y respuesta hablada. */
.assistant-chat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  color: #c0d6e9;
  font-size: 12px;
}
.assistant-chat-toolbar > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.assistant-chat-toolbar button {
  border: 1px solid #3b6288;
  background: #10304e;
  color: #d9eafa;
  border-radius: 10px;
  padding: 9px 12px;
  min-height: 40px;
  cursor: pointer;
  font: inherit;
  touch-action: manipulation;
}
.assistant-chat-toolbar button[aria-pressed="true"] {
  background: #1d5279;
  border-color: #64bce8;
}
.assistant-chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 310px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  overflow-wrap: anywhere;
}
.assistant-chat-log:empty {
  display: none;
}
.assistant-chat-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 15px;
  background: #133b5b;
  color: #e1effa;
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 14px;
}
.assistant-chat-message[data-role="user"] {
  align-self: flex-end;
  background: #26578c;
}
.assistant-chat-message small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  color: #b2d7f1;
}
#assistantAskForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-top: 12px;
}
#assistantAskForm .assistant-input-label {
  grid-column: 1/-1;
  color: #b8cee3;
  font-size: 12px;
}
#assistantAskInput {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
}
#assistantSend {
  min-height: 44px;
  white-space: nowrap;
}
#assistantListen {
  min-height: 44px;
}
@media (max-width: 500px) {
  .assistant-chat-message {
    max-width: 94%;
    font-size: 14px;
  }
  .assistant-chat-log {
    max-height: 250px;
  }
  .assistant-chat-toolbar > div {
    width: 100%;
    gap: 5px;
  }
  .assistant-chat-toolbar button {
    flex: 1 1 auto;
    font-size: 11px;
    padding: 8px;
  }
  .assistant-actions {
    flex-wrap: wrap;
  }
  .assistant-chat-toolbar {
    gap: 6px;
  }
}

/* Reduce GPU work, retaining layout, selected states, camera and login video. */
@media (pointer: coarse) {
  #app *,
  #app *::before,
  #app *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  #app .person-row,
  #app .hr-roster-person,
  #app .hr-line-card {
    box-shadow: none !important;
  }
  #app .person-row:hover {
    transform: none !important;
  }
  #app .avatar,
  #app .status-badge {
    box-shadow: none !important;
  }
  #loginScreen .login-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(8, 30, 52, 0.94) !important;
  }
  .hr-roster-person {
    content-visibility: auto;
    contain-intrinsic-size: auto 160px;
  }
}
html.lite-mode #app *,
html.lite-mode #app *::before,
html.lite-mode #app *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  #app *,
  #app *::before,
  #app *::after {
    animation: none !important;
    transition: none !important;
  }
}

#loginScreen.reference-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(900px 500px at 85% 10%, #7b5cf026, transparent 60%),
    radial-gradient(700px 500px at 10% 90%, #b794f926, transparent 55%),
    linear-gradient(150deg, #221546 0%, #170f33 55%, #120b29 100%);
}
.alza-packing-login {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  width: min(1020px, 100%);
  min-height: 600px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 40px 100px #0009,
    0 0 0 1px #ffffff14;
}
.alza-packing-login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 48px;
  background: linear-gradient(155deg, #4a2f9e 0%, #5b3ab8 45%, #2c1a63 100%);
  color: #fff;
  overflow: hidden;
}
.alza-packing-login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 300px at 90% 0%, #ffffff1f, transparent 65%),
    radial-gradient(520px 420px at -10% 110%, #b794f930, transparent 60%);
}
.alza-packing-login-brand::after {
  content: "● ● ●";
  position: absolute;
  right: -40px;
  bottom: -60px;
  font-size: 230px;
  letter-spacing: -40px;
  color: #ffffff0a;
  font-family: serif;
  pointer-events: none;
}
.alza-packing-login-logo-ring {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 32px;
  padding: 7px;
  background: #ffffff1c;
  border: 1px solid #ffffff30;
  box-shadow: 0 16px 40px #0006;
  margin-bottom: 30px;
}
.alza-packing-login-logo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  display: block;
}
.alza-packing-login-brand h2 {
  position: relative;
  margin: 0;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 6px;
  line-height: 1;
}
.alza-packing-login-tag {
  position: relative;
  margin: 12px 0 40px;
  color: #d9ccff;
  font-size: 15px;
  max-width: 340px;
  line-height: 1.6;
}
.alza-packing-login-feats {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.alza-packing-login-feats li {
  display: flex;
  gap: 15px;
  align-items: center;
}
.alza-packing-login-feats li > span {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #ffffff16;
  border: 1px solid #ffffff26;
  font-size: 19px;
  color: #e3d7ff;
}
.alza-packing-login-feats b {
  display: block;
  font-size: 15px;
  letter-spacing: 0.3px;
}
.alza-packing-login-feats small {
  color: #b9a8ef;
  font-size: 12.5px;
}
.alza-packing-login-foot {
  position: relative;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid #ffffff1f;
  color: #b9a8ef;
  font-size: 12.5px;
  letter-spacing: 0.6px;
}
.alza-packing-login-panel {
  display: grid;
  place-items: center;
  padding: 48px 44px;
  background: linear-gradient(160deg, #ffffff, #f6f2ff);
}
.alza-packing-login-form {
  width: 100%;
  max-width: 380px;
}
.alza-packing-login-formhead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.alza-packing-login-mini {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 6px 18px #5533c233;
}
.alza-packing-login-formhead .eyebrow {
  color: #7a5ce0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
}
.alza-packing-login-formhead h1 {
  margin: 3px 0 0;
  font-size: 25px;
  letter-spacing: -0.7px;
  color: #241a44;
}
.alza-packing-login-form .muted {
  margin: 0 0 24px;
  font-size: 14px;
}
.alza-packing-login-form label {
  font-size: 13px;
  font-weight: 600;
  color: #6f678c;
}
.alza-packing-login-form input {
  margin-top: 6px;
  background: #faf8ff;
  border: 1px solid #ddd5f2;
  min-height: 50px;
  font-size: 15px;
  padding: 12px 15px;
  border-radius: 12px;
  transition: all 0.2s;
}
.alza-packing-login-form input:focus {
  outline: 3px solid #7b5cf026;
  border-color: #7b5cf0;
  box-shadow: 0 4px 14px #6c4bd81a;
}
#loginError {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 13.5px;
  color: #c93a5f;
  font-weight: 600;
}
.alza-packing-login-form button {
  width: 100%;
  min-height: 52px;
  font-size: 15.5px;
  border-radius: 13px;
  background: linear-gradient(135deg, #7b5cf0, #5533c2);
  box-shadow: 0 10px 26px #6c4bd84d;
  margin-top: 6px;
}
.alza-packing-login-hint {
  margin: 20px 0 0;
  text-align: center;
  font-size: 12px;
  color: #9a8fc0;
}
@media (max-width: 900px) {
  .alza-packing-login {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .alza-packing-login-brand {
    padding: 38px 30px;
  }
  .alza-packing-login-brand h2 {
    font-size: 36px;
  }
  .alza-packing-login-feats li:nth-child(3) {
    display: none;
  }
  .alza-packing-login-panel {
    padding: 36px 26px;
  }
}
@media screen and (max-width: 760px) {
  .alza-packing-login-form input {
    font-size: 16px;
    min-height: 48px;
    max-width: 100%;
  }
  #loginScreen.reference-login {
    min-height: 100dvh;
    padding: 16px 12px;
  }
  .alza-packing-login {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 22px;
    min-height: 0;
  }
  .alza-packing-login-brand {
    padding: 23px 24px;
  }
  .alza-packing-login-logo-ring {
    width: 62px;
    height: 62px;
    border-radius: 19px;
    margin-bottom: 14px;
    padding: 4px;
  }
  .alza-packing-login-logo-ring img {
    border-radius: 15px;
  }
  .alza-packing-login-brand h2 {
    font-size: 29px;
    letter-spacing: 4px;
  }
  .alza-packing-login-tag {
    margin: 8px 0 0;
    font-size: 13px;
  }
  .alza-packing-login-feats,
  .alza-packing-login-foot {
    display: none;
  }
  .alza-packing-login-panel {
    padding: 26px 20px;
  }
  .alza-packing-login-form {
    max-width: none;
  }
  .alza-packing-login-mini {
    width: 40px;
    height: 40px;
  }
  .alza-packing-login-formhead {
    gap: 10px;
  }
  .alza-packing-login-formhead h1 {
    font-size: 21px;
  }
  .alza-packing-login-form .muted {
    font-size: 13px;
    margin-bottom: 18px;
  }
  .alza-packing-login-hint {
    font-size: 11px;
  }
}
.alza-packing-login-brand {
  background: linear-gradient(150deg, #082b54, #155aa7, #071d3d);
}
.alza-packing-login-brand h2 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: 2px;
}
.alza-packing-login-panel {
  background: linear-gradient(160deg, #fff, #edf5ff);
}
.alza-packing-login-form button {
  background: linear-gradient(135deg, #247ac4, #093672);
}
.alza-packing-login-tag,
.alza-packing-login-foot,
.alza-packing-login-feats small {
  color: #d1e4ff;
}
.alza-packing-login-formhead .eyebrow {
  color: #155aa7;
  font-size: 9px;
  letter-spacing: 1px;
}
.alza-packing-login-form input {
  background: #f7faff;
  border-color: #cadbef;
}
@media (max-width: 760px) {
  .alza-packing-login-brand h2 {
    font-size: 27px;
  }
}
@media screen and (max-width: 760px) {
  #loginScreen.reference-login {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .alza-packing-login-form,
  .alza-packing-login-panel {
    min-width: 0;
  }
  .alza-packing-login-formhead > div {
    min-width: 0;
  }
  .alza-packing-login-hint {
    overflow-wrap: anywhere;
  }
}
@media screen and (max-width: 360px) {
  .alza-packing-login-brand {
    padding: 20px 16px;
  }
  .alza-packing-login-panel {
    padding: 22px 14px;
  }
  .alza-packing-login-formhead h1 {
    font-size: 19px;
  }
  .alza-packing-login-brand h2 {
    font-size: 25px;
  }
}
@media screen and (max-height: 500px) and (pointer: coarse) {
  .alza-packing-login-brand {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .alza-packing-login-logo-ring {
    display: none;
  }
}

.alza-packing-login-logo-ring {
  width: 184px;
  height: 184px;
  padding: 8px;
  background: white;
  border: 1px solid #ffffff80;
  border-radius: 22px;
  box-shadow: 0 12px 35px #0004;
}
.alza-packing-login-logo-ring img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  background: white;
}
.alza-packing-login-mini {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  background: white;
  padding: 3px;
  border: 1px solid #e8e1f1;
}
@media (max-width: 760px) {
  .alza-packing-login-mini {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
  }
  .alza-packing-login-logo-ring {
    width: 144px;
    height: 144px;
    border-radius: 18px;
    margin-bottom: 20px;
  }
}
#loginScreen.reference-login {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  background:
    radial-gradient(ellipse at 12% 12%, #1e6093 0%, transparent 48%),
    radial-gradient(ellipse at 95% 100%, #124f80 0%, transparent 45%), #061d39;
}
.alza-packing-login {
  width: min(1120px, 100%);
  min-height: 680px;
  grid-template-columns: 1.05fr 1fr;
  border-radius: 26px;
  border: 1px solid #ffffff1e;
  box-shadow: 0 28px 90px #0005;
}
.alza-packing-login-brand {
  padding: 30px 34px 20px;
  justify-content: flex-start;
  background: linear-gradient(145deg, #0c345e, #14558b 58%, #092b50);
  isolation: isolate;
}
.alza-packing-login-brand:before {
  background: radial-gradient(ellipse at 58% 48%, #44add238, transparent 68%);
  z-index: -1;
}
.alza-packing-login-brand:after {
  content: none;
}
.alza-welcome-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 15px;
}
.alza-welcome-heading .alza-packing-login-logo-ring {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 16px;
  margin: 0;
  box-shadow: 0 5px 20px #0002;
}
.alza-welcome-heading .alza-packing-login-logo-ring img {
  border-radius: 11px;
  object-fit: contain;
}
.alza-welcome-eyebrow {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #a9d8f7;
  margin-bottom: 5px;
}
.alza-packing-login-brand h2 {
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: 1.5px;
  margin: 0;
}
.alza-packing-login-tag {
  font-size: 13px;
  margin: 14px 0 0;
  max-width: 100%;
  color: #bedaf1;
  line-height: 1.6;
}
.alza-login-figure {
  position: relative;
  flex: 1;
  min-height: 440px;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: end;
}
.alza-login-character {
  position: relative;
  z-index: 2;
  display: block;
  height: 450px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 15px 18px #00132755);
  animation: alza-character-float 6s ease-in-out infinite;
  transform-origin: center bottom;
}
.alza-login-orbit {
  position: absolute;
  z-index: 0;
  width: 330px;
  height: 330px;
  border: 1px solid #d7edff20;
  border-radius: 50%;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #80cce41a, transparent 67%);
  box-shadow:
    0 0 0 28px #ceeaff06,
    0 0 0 56px #ceeaff04;
}
.alza-login-floor {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 255px;
  height: 22px;
  background: radial-gradient(ellipse, #00163075, transparent 70%);
  z-index: 1;
}
.alza-login-modules {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.alza-login-modules span {
  border: 1px solid #e3f3ff2c;
  border-radius: 20px;
  background: #ffffff0a;
  color: #d9efff;
  font-size: 10px;
  letter-spacing: 0.3px;
  padding: 5px 12px;
}
.alza-login-caption {
  text-align: center;
  color: #a5cce8;
  font-size: 11px;
  margin: 10px 0 0;
}
.alza-packing-login-panel {
  padding: 44px 48px;
  background: linear-gradient(145deg, #fff, #f2f7fc);
}
.alza-packing-login-form {
  max-width: 360px;
}
.alza-packing-login-formhead {
  margin-bottom: 22px;
  gap: 13px;
}
.alza-packing-login-formhead h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
  color: #112e52;
}
.alza-packing-login-formhead .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
}
.alza-packing-login-form label {
  color: #4e6580;
  font-size: 12px;
}
.alza-packing-login-form input {
  border-color: #d8e3ee;
  background: #f8fbff;
  min-height: 52px;
  border-radius: 12px;
}
.alza-packing-login-form input:focus {
  border-color: #4b90c6;
  outline: 3px solid #448dca1a;
  box-shadow: none;
}
.alza-packing-login-form button {
  min-height: 54px;
  margin-top: 12px;
  background: linear-gradient(120deg, #267fbd, #124c84) !important;
  box-shadow: 0 8px 20px #1c5d9122;
}
.alza-packing-login-form .muted {
  color: #71839a;
  margin-bottom: 30px;
}
.alza-packing-login-hint {
  font-size: 11px;
  line-height: 1.7;
  color: #8b9bb0;
  margin-top: 24px;
}
@keyframes alza-character-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@media (min-width: 1500px) {
  .alza-packing-login {
    min-height: 720px;
  }
  .alza-login-character {
    height: 490px;
  }
}
@media (max-width: 900px) {
  #loginScreen.reference-login {
    padding: 16px;
  }
  .alza-packing-login {
    grid-template-columns: 1fr;
    max-width: 520px;
    min-height: 0;
    border-radius: 22px;
  }
  .alza-packing-login-brand {
    min-height: 244px;
    padding: 24px 22px;
    display: block;
  }
  .alza-welcome-heading {
    max-width: calc(100% - 120px);
    gap: 10px;
  }
  .alza-welcome-heading .alza-packing-login-logo-ring {
    width: 54px;
    height: 54px;
    border-radius: 13px;
  }
  .alza-packing-login-brand h2 {
    font-size: 23px;
    letter-spacing: 0.4px;
  }
  .alza-welcome-eyebrow {
    font-size: 8px;
    letter-spacing: 1.8px;
  }
  .alza-packing-login-tag {
    max-width: calc(100% - 144px);
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.6;
  }
  .alza-login-figure {
    position: absolute;
    right: 3px;
    bottom: 0;
    width: 155px;
    height: 232px;
    min-height: 0;
    margin: 0;
  }
  .alza-login-character {
    height: 232px;
    max-width: 100%;
    animation: none;
    filter: drop-shadow(0 7px 9px #00132755);
  }
  .alza-login-orbit {
    width: 170px;
    height: 170px;
    top: 30px;
    box-shadow: none;
  }
  .alza-login-floor {
    width: 130px;
    height: 14px;
    bottom: 0;
  }
  .alza-login-modules {
    justify-content: flex-start;
    max-width: calc(100% - 128px);
    gap: 5px;
    margin-top: 17px;
  }
  .alza-login-modules span {
    font-size: 8px;
    padding: 4px 7px;
  }
  .alza-login-caption {
    display: none;
  }
  .alza-packing-login-panel {
    padding: 28px 26px 30px;
  }
  .alza-packing-login-formhead h1 {
    font-size: 28px;
  }
  .alza-packing-login-form .muted {
    margin-bottom: 23px;
  }
}
@media (max-width: 380px) {
  #loginScreen.reference-login {
    padding: 10px;
  }
  .alza-packing-login-brand {
    padding: 19px 16px;
    min-height: 230px;
  }
  .alza-welcome-heading {
    gap: 8px;
    max-width: calc(100% - 105px);
  }
  .alza-welcome-heading .alza-packing-login-logo-ring {
    width: 44px;
    height: 44px;
    display: block;
  }
  .alza-packing-login-brand h2 {
    font-size: 19px;
  }
  .alza-welcome-eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .alza-login-figure {
    width: 128px;
    height: 216px;
    right: 0;
  }
  .alza-login-character {
    height: 216px;
  }
  .alza-packing-login-tag {
    max-width: calc(100% - 115px);
    font-size: 11px;
  }
  .alza-login-modules {
    max-width: calc(100% - 110px);
  }
  .alza-login-modules span {
    padding: 3px 5px;
    font-size: 7px;
  }
  .alza-packing-login-panel {
    padding: 24px 19px;
  }
  .alza-packing-login-formhead h1 {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .alza-login-character {
    animation: none;
  }
}
@media (max-height: 530px) and (pointer: coarse) {
  .alza-packing-login-brand {
    min-height: 190px;
  }
  .alza-login-figure,
  .alza-login-character {
    height: 185px;
  }
  .alza-welcome-heading .alza-packing-login-logo-ring {
    display: block;
  }
}
.alza-packing-login-tag {
  position: relative;
  z-index: 3;
  align-self: flex-start;
  box-sizing: border-box;
  max-width: 100%;
  margin: 22px 0 0;
  padding: 2px 0 2px 15px;
  border-left: 3px solid #66d9e8;
  text-align: left;
  line-height: 1.3;
  text-shadow: none;
}
.alza-packing-login-tag strong {
  display: block;
  color: #fff;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.5px;
  line-height: 1.25;
  text-wrap: balance;
}
.alza-packing-login-tag strong span {
  color: #8ce8ed;
}
.alza-login-tag-detail {
  display: block;
  margin-top: 7px;
  color: #c6deef;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .alza-packing-login-tag {
    max-width: calc(100% - 140px);
    margin-top: 18px;
    padding-left: 11px;
  }
  .alza-packing-login-tag strong {
    font-size: 20px;
    letter-spacing: -0.3px;
  }
  .alza-login-tag-detail {
    font-size: 11px;
    letter-spacing: 0.15px;
    margin-top: 5px;
  }
  .alza-login-modules {
    margin-top: 15px;
  }
  .alza-packing-login-brand {
    min-height: 260px;
  }
}
@media (max-width: 380px) {
  .alza-packing-login-tag {
    max-width: calc(100% - 110px);
    margin-top: 16px;
    padding-left: 9px;
  }
  .alza-packing-login-tag strong {
    font-size: 18px;
  }
  .alza-login-tag-detail {
    font-size: 10px;
    letter-spacing: 0;
  }
  .alza-packing-login-brand {
    min-height: 250px;
  }
}
@media (max-height: 530px) and (pointer: coarse) {
  .alza-packing-login-brand {
    min-height: 240px;
  }
}
#loginScreen.reference-login {
  background:
    radial-gradient(ellipse at 12% 5%, #246695 0%, transparent 47%),
    radial-gradient(ellipse at 95% 95%, #15537e 0%, transparent 45%), #071e37;
}
.alza-packing-login {
  border-color: #d5efff30;
  box-shadow:
    0 32px 100px #0006,
    0 1px 0 #ffffff1a inset;
}
.alza-packing-login-brand {
  background:
    radial-gradient(ellipse at 50% 66%, #2478a3 0%, transparent 57%),
    linear-gradient(145deg, #0c2d51, #124e7c 55%, #092845);
}
.alza-welcome-heading .alza-packing-login-logo-ring {
  box-shadow:
    0 8px 24px #00142c40,
    0 0 0 1px #ffffff30;
}
.alza-welcome-eyebrow {
  color: #9de5ef;
  letter-spacing: 3.2px;
}
.alza-login-orbit {
  border-color: #b3efff35;
  background: radial-gradient(circle, #a4ebef27, transparent 70%);
  box-shadow:
    0 0 0 24px #d4f9ff07,
    0 0 0 48px #d4f9ff04;
}
.alza-login-character {
  filter: drop-shadow(0 14px 18px #00152b55);
}
.alza-login-modules span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(125deg, #ffffff17, #ffffff07);
  border-color: #c1ecff38;
  box-shadow: 0 2px 8px #001a3020;
  color: #edfaff;
}
.alza-login-modules span:before {
  content: "";
  width: 4px;
  height: 4px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #87e8ed;
  box-shadow: 0 0 6px #78e4ea55;
}
.alza-packing-login-panel {
  background:
    radial-gradient(ellipse at 100% 0%, #e8f5fc 0%, transparent 60%),
    linear-gradient(155deg, #fff, #f5f9fd);
}
.alza-packing-login-formhead {
  position: relative;
  padding-bottom: 22px;
  border-bottom: 1px solid #dce8f2;
}
.alza-packing-login-formhead:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1a6caf, #49c2cc);
}
.alza-packing-login-mini {
  box-shadow: 0 5px 16px #143a5712;
  border: 1px solid #dce7f1;
}
.alza-packing-login-form input {
  transition:
    border-color 0.18s,
    background 0.18s,
    box-shadow 0.18s;
}
.alza-packing-login-form input:focus {
  background: #fff;
  border-color: #3b91b9;
  outline: 3px solid #3698b51c;
  box-shadow: 0 2px 8px #13568408;
}
.alza-packing-login-form button {
  border: 1px solid #ffffff25;
  background: linear-gradient(110deg, #237eb6, #155a94 65%, #124776) !important;
  box-shadow:
    0 8px 18px #15558728,
    0 1px 0 #ffffff25 inset;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    filter 0.18s;
}
.alza-packing-login-form button:focus-visible {
  outline: 3px solid #47b8cf;
  outline-offset: 4px;
}
.alza-packing-login-form button:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px #15558728;
}
@media (hover: hover) {
  .alza-packing-login-form button:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
    box-shadow: 0 12px 24px #15558735;
  }
  .alza-packing-login-form input:hover {
    border-color: #a8c5d9;
  }
}
@media (max-width: 900px) {
  .alza-login-orbit {
    box-shadow: none;
  }
  .alza-login-modules span {
    gap: 4px;
  }
  .alza-login-modules span:before {
    width: 3px;
    height: 3px;
  }
  .alza-packing-login-formhead {
    padding-bottom: 18px;
  }
}
@media (max-width: 380px) {
  .alza-login-modules span {
    gap: 3px;
    padding-left: 4px;
    padding-right: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .alza-packing-login-form input,
  .alza-packing-login-form button {
    transition: none;
  }
  .alza-packing-login-form button:hover,
  .alza-packing-login-form button:active {
    transform: none;
  }
}

#loginScreen.reference-login {
  background:
    radial-gradient(ellipse at 12% 5%, #246695 0%, transparent 47%),
    radial-gradient(ellipse at 95% 95%, #15537e 0%, transparent 45%), #071e37 !important;
  position: relative;
  inset: auto;
  z-index: 20;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #132a49;
  overflow: hidden;
}
#loginScreen.reference-login[hidden] {
  display: none !important;
}
#loginScreen.reference-login::before,
#loginScreen.reference-login::after {
  display: none !important;
}
#loginScreen.reference-login *,
#loginScreen.reference-login *::before,
#loginScreen.reference-login *::after {
  box-sizing: border-box;
}
#loginScreen .alza-packing-login-form label {
  display: block;
  letter-spacing: 0;
  text-transform: none;
}
#loginScreen .alza-packing-login-form input {
  display: block;
  width: 100%;
  font-family: inherit;
  color: #132a49;
  font-size: 16px;
}
#loginScreen .alza-packing-login-form > button {
  width: 100%;
  color: #fff;
  font-family: inherit;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
#loginScreen .alza-packing-login-form .pw-wrap {
  display: grid;
  position: relative;
  margin-top: 6px;
}
#loginScreen .alza-packing-login-form #password {
  margin: 0 !important;
  padding-right: 56px;
  min-height: 52px;
}
#loginScreen .alza-packing-login-form #togglePassword {
  position: absolute;
  right: 4px;
  top: 50%;
  bottom: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px;
  background: transparent !important;
  box-shadow: none;
  border: 0;
  border-radius: 9px;
  color: #456784;
  transform: translateY(-50%) !important;
  cursor: pointer;
}
#loginScreen .alza-packing-login-form #togglePassword svg {
  width: 21px;
  height: 21px;
}
#loginScreen .alza-packing-login-form #togglePassword:focus-visible {
  outline: 2px solid #2083b5;
  outline-offset: 0;
}
#loginScreen #loginError {
  min-height: 22px;
  margin: 12px 0;
  color: #b52344;
  font-size: 13px;
  line-height: 1.5;
}
#loginScreen .alza-packing-login-formhead h1 {
  font-family: inherit;
}
@media (pointer: coarse) {
  #loginScreen .alza-login-character {
    filter: none;
    animation: none;
  }
  #loginScreen .alza-login-orbit {
    box-shadow: none;
  }
}

/* Capa visual aislada: conserva intacta la autenticación existente. */
:root {
  --login-cyan: #6ee7f5;
  --login-blue: #2f86ff;
}
#loginScreen.reference-login {
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background:
    radial-gradient(
      55% 70% at 15% 20%,
      rgba(62, 192, 218, 0.32),
      transparent 70%
    ),
    radial-gradient(
      45% 65% at 90% 80%,
      rgba(27, 91, 155, 0.45),
      transparent 72%
    ),
    linear-gradient(135deg, #061627, #0b3150 48%, #062238);
}
#loginScreen.reference-login::before {
  display: block !important;
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  opacity: 0.42;
  background:
    linear-gradient(
      115deg,
      transparent 0 47%,
      rgba(110, 231, 245, 0.12) 47.2% 47.35%,
      transparent 47.5%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 72px,
      rgba(110, 231, 245, 0.06) 73px,
      transparent 74px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 72px,
      rgba(110, 231, 245, 0.055) 73px,
      transparent 74px
    );
  transform: perspective(900px) rotateX(58deg) translateY(30%);
  transform-origin: center bottom;
  animation: tareo-grid 18s linear infinite;
}
#loginScreen.reference-login::after {
  display: block !important;
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 42%,
      transparent 0 22%,
      rgba(110, 231, 245, 0.08) 22.2%,
      transparent 23%
    ),
    linear-gradient(
      120deg,
      transparent 35%,
      rgba(255, 255, 255, 0.08) 50%,
      transparent 65%
    );
  mix-blend-mode: screen;
  animation: tareo-scan 9s ease-in-out infinite;
}
.alza-packing-login {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1400px;
  border: 1px solid rgba(174, 244, 255, 0.28) !important;
  background: rgba(235, 249, 255, 0.92) !important;
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 70px rgba(55, 205, 232, 0.18) !important;
  animation: tareo-card-in 0.8s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.alza-packing-login::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(
    110deg,
    transparent 12%,
    rgba(255, 255, 255, 0.38) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: tareo-sheen 6s ease-in-out 1.2s infinite;
}
.alza-packing-login-brand {
  position: relative;
  transform: translateZ(24px);
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 72%,
      rgba(93, 222, 235, 0.3),
      transparent 38%
    ),
    linear-gradient(145deg, #092340, #0e5676 58%, #082743) !important;
}
.alza-packing-login-brand::before {
  content: "";
  position: absolute;
  width: 56%;
  aspect-ratio: 1;
  left: 22%;
  top: 12%;
  border: 1px solid rgba(110, 231, 245, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 18px rgba(110, 231, 245, 0.07),
    0 0 0 42px rgba(110, 231, 245, 0.045),
    0 0 38px rgba(110, 231, 245, 0.35);
  transform: rotateX(68deg) rotateZ(18deg);
  animation: tareo-orbit 12s linear infinite;
}
.alza-packing-login-brand::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--login-cyan),
    transparent
  );
  box-shadow: 0 0 18px var(--login-cyan);
  opacity: 0.65;
}
.alza-login-figure {
  transform: translateZ(40px);
  filter: drop-shadow(0 24px 22px rgba(0, 0, 0, 0.42));
}
.alza-login-character {
  transform: translateZ(30px) rotateY(-4deg);
  animation: tareo-character 5s ease-in-out infinite;
}
.alza-login-orbit {
  border-color: rgba(110, 231, 245, 0.72) !important;
  box-shadow:
    0 0 0 20px rgba(110, 231, 245, 0.08),
    0 0 38px rgba(110, 231, 245, 0.42) !important;
  animation: tareo-orbit 8s linear infinite !important;
}
.alza-packing-login-panel {
  position: relative;
  z-index: 2;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.98),
    rgba(239, 248, 252, 0.96)
  ) !important;
}
.alza-packing-login-form input {
  border: 1px solid #b9d5e3 !important;
  box-shadow:
    0 5px 16px rgba(25, 87, 117, 0.07),
    inset 0 1px 0 #fff;
}
.alza-packing-login-form input:focus {
  border-color: #219ebc !important;
  box-shadow:
    0 0 0 4px rgba(33, 158, 188, 0.14),
    0 8px 20px rgba(25, 87, 117, 0.12) !important;
  transform: translateY(-1px);
}
.alza-packing-login-form > button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(105deg, #1676a8, #0c527f 60%, #073c68) !important;
}
.alza-packing-login-form > button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  transition: transform 0.55s ease;
}
.alza-packing-login-form > button:hover::after {
  transform: translateX(110%);
}
@keyframes tareo-grid {
  to {
    background-position:
      0 144px,
      72px 0,
      0 72px;
  }
}
@keyframes tareo-scan {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(-3%);
  }
  50% {
    opacity: 0.7;
    transform: translateY(3%);
  }
}
@keyframes tareo-card-in {
  from {
    opacity: 0;
    transform: translateY(18px) rotateX(7deg) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}
@keyframes tareo-sheen {
  0%,
  72%,
  100% {
    transform: translateX(-120%);
  }
  86% {
    transform: translateX(120%);
  }
}
@keyframes tareo-orbit {
  to {
    transform: rotateX(68deg) rotateZ(378deg);
  }
}
@keyframes tareo-character {
  0%,
  100% {
    transform: translateZ(30px) rotateY(-4deg) translateY(0);
  }
  50% {
    transform: translateZ(30px) rotateY(2deg) translateY(-5px);
  }
}
@media (max-width: 760px) {
  #loginScreen.reference-login {
    padding: 14px;
  }
  .alza-packing-login {
    width: min(100%, 440px);
    grid-template-columns: 1fr !important;
  }
  .alza-packing-login-brand {
    min-height: 230px !important;
  }
  .alza-login-character {
    max-height: 185px !important;
  }
  .alza-packing-login-panel {
    padding: 24px !important;
  }
}
@media (max-width: 420px) {
  #loginScreen.reference-login {
    padding: 10px;
  }
  .alza-packing-login-brand {
    min-height: 205px !important;
  }
  .alza-login-character {
    max-height: 160px !important;
  }
  .alza-packing-login-panel {
    padding: 20px !important;
  }
  .alza-welcome-heading {
    transform: scale(0.9);
    transform-origin: left top;
  }
}
@media (prefers-reduced-motion: reduce),
  (update: none),
  (pointer: coarse) and (max-width: 760px) {
  #loginScreen.reference-login::before,
  #loginScreen.reference-login::after,
  .alza-packing-login::before,
  .alza-login-character,
  .alza-login-orbit {
    animation: none !important;
  }
  .alza-packing-login {
    animation: none;
  }
  .alza-packing-login::before {
    display: none;
  }
}

#app > .top {
  padding: 22px 24px 20px !important;
  border: 1px solid #2a5274 !important;
  border-radius: 22px !important;
  background: #09233c !important;
  box-shadow: 0 12px 32px #020d1a38 !important;
  backdrop-filter: none !important;
  max-width: 100%;
  box-sizing: border-box;
}
#app .top-primary {
  display: grid !important;
  grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr) !important;
  align-items: center;
  gap: 20px !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
}
#app .top-primary .date-row {
  justify-content: center;
  gap: 7px !important;
  max-width: 100%;
}
#app .date-row #day {
  font-size: 14px;
  min-height: 42px;
}
#app .top-primary .session-bar {
  justify-self: end;
  margin: 0 !important;
  width: auto !important;
}
#app .brand-lockup h1 {
  font-size: 22px !important;
  letter-spacing: -0.6px;
}
#app .brand-mark {
  box-shadow: none !important;
}
#app .version-label {
  display: none !important;
}
.control-overview {
  margin: 0 0 20px;
  color: #eaf5ff;
}
.control-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.control-eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #88b8d6;
  font-weight: 800;
}
.control-heading h2 {
  font:
    700 clamp(21px, 2.2vw, 29px) system-ui,
    sans-serif;
  letter-spacing: -0.65px;
  margin: 5px 0 0;
}
.control-scope {
  font:
    500 11px system-ui,
    sans-serif;
  color: #a4bfd5;
  max-width: 45%;
  text-align: right;
  line-height: 1.5;
}
.control-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.control-metric {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  text-align: left;
  border: 1px solid #2b4d6c;
  border-radius: 15px;
  background: #0d2b47;
  padding: 17px 18px;
  box-sizing: border-box;
  color: #dcecf9;
  font: inherit;
  box-shadow: none;
  cursor: default;
}
.control-metric-top {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 650;
  color: #abc6dc;
}
.control-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #20435f;
  color: #bcd8ed;
  font-size: 18px;
  flex: none;
}
.control-metric > strong {
  display: block;
  font:
    750 clamp(27px, 3vw, 39px) / 1.15 system-ui,
    sans-serif;
  letter-spacing: -1.4px;
  margin: 11px 0 9px;
  color: #fff;
}
.control-metric > small {
  font-size: 10px;
  line-height: 1.5;
  color: #9bb6cd;
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.control-metric[data-kind="present"] .control-icon {
  background: #174e45;
  color: #83e1b8;
}
.control-metric[data-kind="absent"] .control-icon {
  background: #513245;
  color: #f7afbd;
}
.control-metric[data-kind="pending"] .control-icon {
  background: #50472d;
  color: #f3d88b;
}
.control-metric[data-control-filter] {
  cursor: pointer;
  transition:
    border-color 0.12s,
    background-color 0.12s;
}
.control-metric[data-control-filter]:hover,
.control-metric[aria-pressed="true"] {
  border-color: #70b6ee;
  background: #133753;
}
.control-metric:focus-visible {
  outline: 2px solid #87c9ff;
  outline-offset: 3px;
}
.control-progress {
  margin-top: 15px;
  padding: 0 2px;
}
.control-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: #aac4d9;
}
.control-progress strong {
  color: #dbeaf7;
  font-weight: 650;
  text-align: right;
}
.control-progress-track {
  height: 6px;
  border-radius: 99px;
  background: #173b58;
  overflow: hidden;
  margin-top: 9px;
}
.control-progress-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #3a91d1, #69cfce);
}
.control-progress > small {
  display: block;
  color: #88a9c3;
  font-size: 10px;
  margin-top: 8px;
  line-height: 1.5;
}
#app .assistant-live {
  border-radius: 15px !important;
  padding: 15px !important;
  background: #0d304b !important;
  border: 1px solid #346486 !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}
#app .assistant-live::before,
#app .assistant-live::after {
  display: none !important;
}
#app .assistant-pulse {
  animation: none !important;
  box-shadow: none !important;
}
#app .assistant-insights {
  border: 0 !important;
  background: transparent !important;
  padding: 9px 0 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  justify-content: flex-end;
}
#app #assistantInsightCounts {
  display: none !important;
}
#app .assistant-ask {
  margin-top: 12px;
  border-radius: 15px !important;
  background: #0b253e !important;
}
#app > #staffTabs {
  padding: 13px 0 !important;
  margin: 10px 0 16px !important;
  border-bottom: 1px solid #294761 !important;
  gap: 7px !important;
}
#app #staffTabs .staff-tab {
  border-radius: 10px !important;
  min-height: 42px;
  white-space: nowrap;
  padding: 10px 13px !important;
}
#app #staffTabs .staff-tab.active {
  background: #275d98 !important;
  border-color: #7ca8e2 !important;
  box-shadow: none !important;
}
#app > #searchWrap {
  padding: 17px !important;
  background: #0a243e;
  border: 1px solid #294d6a;
  border-radius: 17px;
  margin-bottom: 18px;
  box-sizing: border-box;
}
#app .search-row {
  margin-bottom: 13px !important;
  gap: 9px !important;
}
#app .search-box {
  border-radius: 12px !important;
  background: #0b2b49 !important;
}
#app #filters {
  gap: 7px !important;
}
#app #filters .filter-pill {
  border-radius: 9px !important;
  min-height: 38px;
  box-shadow: none !important;
}
#app #filters [data-filter="frio_despacho"] {
  margin-left: 12px;
}
@media (max-width: 1100px) {
  #app .top-primary {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 15px !important;
  }
  #app .top-primary .date-row {
    grid-row: 2;
    grid-column: 1/-1;
    justify-self: start;
  }
  #app .brand-lockup h1 {
    font-size: 20px !important;
  }
  .control-metric {
    padding: 14px;
  }
}
@media (max-width: 600px) {
  #app > .top {
    padding: 16px 13px !important;
    border-radius: 17px !important;
  }
  #app .top-primary {
    grid-template-columns: minmax(0, 1fr) !important;
    margin-bottom: 20px !important;
    gap: 13px !important;
  }
  #app .top-primary .session-bar {
    grid-row: 2;
    justify-self: stretch;
    width: 100% !important;
    justify-content: space-between;
  }
  #app .top-primary .date-row {
    grid-row: 3;
    grid-column: 1;
    justify-self: stretch;
    display: flex;
    flex-wrap: wrap;
  }
  #app .date-row #day {
    flex: 1;
    min-width: 110px;
    width: auto !important;
  }
  #app .date-row #closingInfo {
    width: 100%;
    text-align: left;
    margin-top: 3px;
  }
  .control-heading {
    display: block;
  }
  .control-scope {
    display: block;
    max-width: 100%;
    text-align: left;
    margin-top: 9px;
  }
  .control-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .control-metric {
    padding: 12px;
    border-radius: 12px;
  }
  .control-metric-top {
    font-size: 11px;
    gap: 7px;
  }
  .control-icon {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }
  .control-metric > strong {
    font-size: 30px;
    margin: 9px 0 6px;
  }
  .control-metric > small {
    font-size: 9px;
  }
  .control-progress > div:first-child {
    font-size: 10px;
  }
  .control-progress > small {
    font-size: 9px;
  }
  #app .assistant-live {
    flex-wrap: wrap;
    gap: 10px !important;
  }
  #app .assistant-live-copy {
    flex: 1;
    min-width: 0;
  }
  #app .assistant-actions {
    width: 100%;
    justify-content: flex-end;
  }
  #app #staffTabs {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
  }
  #app #staffTabs .staff-tab,
  #app #staffTabs .staff-actions {
    flex-shrink: 0;
  }
  #app #staffTabs .staff-actions {
    display: flex;
    flex-wrap: nowrap;
  }
  #app > #searchWrap {
    padding: 12px !important;
  }
  .control-heading h2 {
    font-size: 23px;
  }
  #app #filters [data-filter="frio_despacho"] {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .control-metric[data-control-filter] {
    transition: none;
  }
}

#app.app {
  margin-left: 258px !important;
  width: calc(100% - 258px) !important;
  max-width: none !important;
  padding: 24px !important;
  box-sizing: border-box;
  min-height: 100dvh;
}
.tareo-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  z-index: 75;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 28px 17px 18px;
  background: linear-gradient(170deg, #103d6b, #0a2949 55%, #071f39);
  border-right: 1px solid #356083;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  color: #eaf5ff;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 7px 28px;
}
.sidebar-logo {
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  flex: 0 0 57px;
  background: #fff;
  border-radius: 15px;
  padding: 7px;
  box-sizing: border-box;
}
.sidebar-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sidebar-brand strong {
  font:
    800 15px/1.2 system-ui,
    sans-serif;
  letter-spacing: 0.35px;
}
.sidebar-brand small {
  display: block;
  font-size: 10px;
  margin-top: 6px;
  color: #bad5ed;
  letter-spacing: 0.35px;
}
.sidebar-label {
  font:
    700 9px system-ui,
    sans-serif;
  letter-spacing: 0.16em;
  color: #93b8d7;
  padding: 2px 12px 15px;
}
#app .tareo-sidebar #staffTabs {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 7px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: visible !important;
  background: none !important;
  box-shadow: none !important;
}
#app .tareo-sidebar #staffTabs .staff-tab {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  width: 100%;
  min-height: 45px;
  padding: 12px 13px !important;
  margin: 0 !important;
  box-sizing: border-box;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left;
  white-space: normal !important;
  font-size: 12px !important;
  font-weight: 650;
  color: #d3e6f6;
  line-height: 1.35;
  transition:
    background-color 0.12s,
    border-color 0.12s;
  cursor: pointer;
}
#app .tareo-sidebar #staffTabs .staff-tab:hover {
  background: #ffffff0a !important;
  border-color: #5b84a44a !important;
  transform: none !important;
}
#app .tareo-sidebar #staffTabs .staff-tab.active {
  background: linear-gradient(110deg, #276da9, #174b80) !important;
  border-color: #5597cd !important;
  color: #fff !important;
  box-shadow: inset 3px 0 #8bd4ed !important;
}
#app .tareo-sidebar #staffTabs .staff-tab[hidden] {
  display: none !important;
}
.side-nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  flex: 0 0 22px;
  font-size: 17px;
  line-height: 1;
  color: #a6ccea;
}
#app .tareo-sidebar #staffTabs .staff-tab > span:not(.side-nav-icon) {
  margin-left: auto;
  font-size: 10px;
  background: #08243e80;
  border: 1px solid #719ac155;
  border-radius: 7px;
  padding: 2px 6px;
  min-width: 20px;
  text-align: center;
  box-sizing: border-box;
}
#app .tareo-sidebar #staffTabs .staff-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  margin: 13px 0 0 !important;
  padding-top: 13px;
  border-top: 1px solid #42678a66;
  width: 100%;
}
#app .tareo-sidebar #staffTabs #addWorker {
  border-color: #4f8db9 !important;
  background: #1b517d !important;
  color: #fff !important;
}
.sidebar-footer {
  margin-top: auto;
  padding: 18px 13px 13px;
  border: 1px solid #3f66854a;
  border-radius: 14px;
  background: #ffffff04;
  font-size: 11px;
  color: #c1dbed;
}
.sidebar-footer strong {
  font-weight: 700;
  color: #edf8ff;
}
.sidebar-footer p {
  font-size: 11px;
  line-height: 1.7;
  color: #a4c3da;
  margin: 9px 0 13px;
}
.sidebar-footer small {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #87aaca;
}
.sidebar-footer-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #80d3cb;
  border-radius: 50%;
  margin-right: 7px;
}
#closeTareoMenu,
.tareo-menu-bar {
  display: none;
}
.tareo-menu-shade[hidden] {
  display: none !important;
}
#app .bottom-bar {
  left: 258px !important;
  width: calc(100% - 258px) !important;
  box-sizing: border-box;
  padding-left: 24px !important;
  padding-right: 24px !important;
}
#app .bottom-bar-inner {
  max-width: none !important;
  width: 100%;
}
.tareo-sidebar button:focus-visible {
  outline: 2px solid #9fd5ff !important;
  outline-offset: 2px;
}
@media (min-width: 1001px) and (max-height: 850px) {
  .sidebar-footer {
    margin-top: 24px;
  }
  .tareo-sidebar {
    padding-top: 21px;
  }
  .sidebar-brand {
    padding-bottom: 20px;
  }
  #app .tareo-sidebar #staffTabs .staff-tab {
    min-height: 41px;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
  }
}
@media (max-width: 1000px) {
  #app.app {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 12px !important;
  }
  .tareo-menu-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    padding: 4px 2px;
    color: #9dbcd4;
    font-size: 10px;
    letter-spacing: 0.09em;
  }
  .tareo-menu-bar button {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    background: #153a5a;
    border: 1px solid #416b8b;
    color: #f0f8ff;
    border-radius: 11px;
    padding: 8px 13px;
    font:
      650 13px system-ui,
      sans-serif;
  }
  .tareo-menu-bar button span {
    font-size: 18px;
  }
  .tareo-sidebar {
    width: min(290px, 86vw);
    z-index: 1601;
    transform: translateX(-100%);
    visibility: hidden;
    transition:
      transform 0.16s ease,
      visibility 0.16s;
    padding: 24px 17px 18px;
  }
  .tareo-sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .tareo-menu-shade {
    position: fixed;
    inset: 0;
    background: #020c1fc2;
    z-index: 1600;
  }
  .sidebar-brand {
    padding-right: 0;
  }
  .sidebar-brand > div:nth-child(2) {
    flex: 1;
  }
  #closeTareoMenu {
    display: block;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    background: #ffffff0b;
    border: 1px solid #577a9b55;
    border-radius: 10px;
    color: #dfefff;
    font-size: 24px;
    cursor: pointer;
  }
  .sidebar-footer {
    margin-top: 24px;
  }
  #app .bottom-bar {
    left: 0 !important;
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  html.tareo-nav-open {
    overflow: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tareo-sidebar,
  #app .tareo-sidebar #staffTabs .staff-tab {
    transition: none !important;
  }
}

#app > .top {
  position: relative !important;
  background:
    radial-gradient(ellipse at 95% 0%, #24548555, transparent 48%),
    linear-gradient(130deg, #102a46, #0a2038 65%) !important;
  border-color: #365c7e !important;
  border-radius: 23px !important;
  padding: 23px !important;
  box-shadow: 0 12px 30px #010f2130 !important;
}
#app .top-primary {
  padding-bottom: 18px !important;
  border-bottom: 1px solid #52769640;
  margin-bottom: 20px !important;
}
#app .top-primary .brand-lockup h1 {
  color: #eff9ff !important;
  font-size: 21px !important;
}
#app .count-summary {
  color: #95b8d3 !important;
  font-size: 10px !important;
}
.control-heading {
  align-items: center;
  margin-bottom: 18px;
}
.control-eyebrow {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid #6194bf55;
  border-radius: 6px;
  color: #b7d9f1;
  letter-spacing: 0.13em;
  font-size: 9px;
  background: #234b6b40;
}
.control-heading h2 {
  font-size: clamp(24px, 2.6vw, 33px);
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1.18;
  margin-top: 11px;
  color: #f3f9ff;
}
.control-scope {
  padding: 9px 13px;
  border-radius: 11px;
  border: 1px solid #6085a450;
  background: #08223a77;
  color: #bfdbed;
  font-size: 11px;
}
.control-metrics {
  gap: 13px;
}
.control-metric {
  position: relative;
  overflow: hidden;
  min-height: 154px;
  border-radius: 17px;
  padding: 18px 19px;
  border: 1px solid #ffffff29;
  box-shadow: 0 5px 12px #0313251c !important;
}
.control-metric::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border: 22px solid #ffffff0b;
  border-radius: 50%;
  right: -65px;
  top: -55px;
  pointer-events: none;
}
.control-metric-top {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: inherit;
  gap: 10px;
}
.control-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #ffffff1c !important;
  color: inherit !important;
}
.control-icon svg {
  width: 22px;
  height: 22px;
}
.control-metric > strong {
  position: relative;
  z-index: 1;
  font-size: clamp(34px, 3.5vw, 47px);
  font-weight: 760;
  letter-spacing: -1.7px;
  margin: 12px 0 9px;
  color: inherit;
}
.control-metric > small {
  position: relative;
  z-index: 1;
  font-size: 10px;
  color: inherit;
  opacity: 0.85;
}
.control-metric > small > span {
  font-size: 15px;
  line-height: 1;
}
.control-metric[data-kind="roster"] {
  background: linear-gradient(125deg, #3c65bf, #284c9f) !important;
  border-color: #7194df !important;
  color: #f5f9ff !important;
}
.control-metric[data-kind="present"] {
  background: linear-gradient(125deg, #197b70, #115d59) !important;
  border-color: #409c8b !important;
  color: #effff9 !important;
}
.control-metric[data-kind="absent"] {
  background: linear-gradient(125deg, #fff6f8, #f2e6ee) !important;
  border-color: #f2cedd !important;
  color: #783c55 !important;
}
.control-metric[data-kind="pending"] {
  background: linear-gradient(125deg, #ffe7a4, #f6d484) !important;
  border-color: #ffe4a4 !important;
  color: #604518 !important;
}
.control-metric[data-kind="absent"] .control-icon {
  background: #a04e7014 !important;
}
.control-metric[data-kind="pending"] .control-icon {
  background: #946c1a14 !important;
}
.control-metric[data-control-filter]:hover {
  filter: brightness(1.04);
  transform: none !important;
}
.control-metric[aria-pressed="true"] {
  outline: 2px solid #a8dbff;
  outline-offset: 3px;
}
.control-metric[data-kind="absent"][aria-pressed="true"],
.control-metric[data-kind="pending"][aria-pressed="true"] {
  outline-color: #e9f6ff;
}
.control-progress {
  margin-top: 19px;
  padding: 0 1px 4px;
}
.control-progress > div:first-child {
  font-size: 11px;
}
.control-progress-track {
  height: 9px;
  background: #34516a80;
  margin-top: 10px;
  border: 1px solid #6e98b127;
}
.control-progress-track i {
  background: linear-gradient(90deg, #6aa7f5, #80d9ca);
  box-shadow: none;
}
.control-progress > small {
  color: #97b3c9;
  font-size: 9px;
  margin-top: 8px;
}
#app .assistant-live {
  background: linear-gradient(110deg, #edf6fd, #e1eff8) !important;
  border: 1px solid #b4d5eb !important;
  border-radius: 17px !important;
  margin-top: 15px !important;
  padding: 16px !important;
  gap: 13px !important;
  color: #163d5c !important;
}
#app .assistant-live-copy {
  min-width: 0;
}
#app .assistant-heading > strong {
  color: #123e66 !important;
  font-size: 14px !important;
}
#app #assistantLiveMessage {
  color: #355671 !important;
  font-size: 12px !important;
  line-height: 1.6;
  margin-top: 6px !important;
}
#app #assistantVoiceState {
  color: #315d7c !important;
}
#app #assistantReady {
  color: #335c80 !important;
  background: #cfe2f3 !important;
  border: 1px solid #b4cfe4 !important;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 9px !important;
}
#app .assistant-pulse {
  width: 43px;
  height: 43px;
  flex-basis: 43px;
  border-radius: 13px;
  background: linear-gradient(130deg, #3a71bc, #244f8f) !important;
  color: #fff !important;
  border: 1px solid #5287bf !important;
}
#app .assistant-actions button {
  border: 1px solid #aac8df !important;
  border-radius: 10px !important;
  min-height: 39px !important;
  padding: 8px 13px !important;
  background: #f6fbff !important;
  color: #1b4d77 !important;
  font-size: 11px !important;
  font-weight: 700;
}
#app .assistant-actions #assistantListen {
  background: #255c96 !important;
  color: #fff !important;
  border-color: #255c96 !important;
}
#app .assistant-actions button:hover {
  box-shadow: none !important;
  transform: none !important;
}
#app .assistant-insights {
  padding-top: 8px !important;
}
#app #assistantNext {
  font-size: 10px !important;
  min-height: 31px !important;
  border-radius: 8px !important;
  background: #214971 !important;
  box-shadow: none !important;
}
#app .assistant-ask {
  padding: 13px !important;
  border: 1px solid #416686 !important;
  border-radius: 15px !important;
  background: #0b2137 !important;
}
#app .assistant-quick {
  gap: 7px;
  margin-bottom: 10px;
}
#app .assistant-quick button {
  padding: 7px 11px !important;
  min-height: 34px !important;
  border-radius: 8px !important;
  background: #1b3a57 !important;
  border-color: #41617c !important;
  font-size: 10px !important;
  color: #cee4f6 !important;
}
#app .assistant-chat-toolbar {
  margin: 8px 0 12px !important;
  padding: 0 !important;
  gap: 10px;
  min-height: 0 !important;
}
#app #assistantChatStatus {
  font-size: 10px;
  color: #a4bfd4;
}
#app .assistant-chat-toolbar > div {
  gap: 6px !important;
}
#app .assistant-chat-toolbar button {
  min-height: 32px !important;
  padding: 6px 9px !important;
  border-radius: 8px !important;
  font-size: 10px !important;
}
#app .assistant-chat-log:empty {
  display: none !important;
}
#app #assistantAskForm {
  margin-top: 0 !important;
  gap: 8px;
}
#app .assistant-input-label {
  font-size: 10px !important;
  margin-bottom: 5px;
}
#app #assistantAskInput {
  min-height: 43px !important;
  font-size: 13px;
  border-radius: 11px !important;
  background: #12304b !important;
  border-color: #4c718f !important;
}
#app #assistantSend {
  min-height: 43px !important;
  padding: 9px 17px !important;
  border-radius: 10px !important;
  background: #386cbc !important;
  border: 1px solid #6591cf !important;
  box-shadow: none !important;
}
@media (max-width: 1100px) {
  .control-metric {
    min-height: 145px;
    padding: 15px;
  }
  .control-metric-top {
    font-size: 11px;
  }
  .control-icon {
    width: 31px;
    height: 31px;
  }
  .control-heading h2 {
    font-size: 27px;
  }
  .control-metric > strong {
    font-size: 38px;
  }
}
@media (max-width: 600px) {
  #app > .top {
    padding: 15px 12px !important;
    border-radius: 17px !important;
  }
  #app .top-primary {
    padding-bottom: 14px !important;
    margin-bottom: 15px !important;
  }
  .control-heading h2 {
    font-size: 25px;
    max-width: 285px;
    line-height: 1.12;
  }
  .control-heading {
    margin-bottom: 14px;
  }
  .control-scope {
    display: inline-block;
    font-size: 10px;
    padding: 6px 9px;
    margin-top: 11px;
  }
  .control-metrics {
    gap: 10px;
  }
  .control-metric {
    padding: 13px 12px;
    min-height: 143px;
    border-radius: 14px;
  }
  .control-metric-top {
    font-size: 11px;
    align-items: flex-start;
    gap: 7px;
    line-height: 1.4;
  }
  .control-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    border-radius: 8px;
  }
  .control-icon svg {
    width: 18px;
    height: 18px;
  }
  .control-metric > strong {
    font-size: 37px;
    margin: 10px 0 8px;
  }
  .control-metric > small {
    font-size: 9px;
  }
  .control-progress {
    margin-top: 16px;
  }
  .control-progress > div:first-child {
    font-size: 10px;
  }
  #app .assistant-live {
    padding: 13px !important;
    gap: 10px !important;
    margin-top: 12px !important;
  }
  #app .assistant-heading {
    flex-wrap: wrap;
    gap: 5px !important;
  }
  #app .assistant-heading > strong {
    font-size: 13px !important;
  }
  #app #assistantLiveMessage {
    font-size: 11px !important;
  }
  #app .assistant-actions {
    gap: 7px;
    justify-content: flex-end;
  }
  #app .assistant-actions button {
    min-height: 40px !important;
    flex: 1;
    padding: 8px !important;
  }
  #app .assistant-ask {
    padding: 11px !important;
  }
  #app .assistant-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #app .assistant-quick button {
    min-height: 38px !important;
    white-space: normal;
  }
  #app .assistant-chat-toolbar {
    align-items: flex-start !important;
  }
  #app .assistant-chat-toolbar > div {
    flex-wrap: wrap !important;
  }
  #app .assistant-chat-toolbar button {
    min-height: 37px !important;
  }
  #app #assistantAskInput {
    font-size: 16px !important;
  }
  #app #assistantSend {
    min-width: 65px;
    padding: 9px 12px !important;
  }
}
@media (hover: none) {
  .control-metric[data-control-filter]:hover {
    filter: none;
  }
}

/* Resumen compacto compartido por administradores y tareadores. */
#app .control-heading {
  margin-bottom: 10px;
  gap: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
#app .control-eyebrow {
  display: none;
}
#app .control-heading h2 {
  font-size: 17px;
  letter-spacing: -0.2px;
  line-height: 1.3;
  margin: 0;
  max-width: none;
}
#app .control-scope {
  padding: 0;
  border: 0;
  background: none;
  font-size: 11px;
  margin: 0;
  text-align: left;
}
#app .control-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
#app .control-metric {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 58px;
  padding: 11px 13px;
  border-radius: 11px;
  background: #102e48 !important;
  border: 1px solid #42627d !important;
  color: #dceafa !important;
  box-shadow: none !important;
  text-align: left;
}
#app .control-metric::after,
#app .control-icon,
#app .control-metric > small {
  display: none;
}
#app .control-metric-top {
  font-size: 12px;
  line-height: 1.3;
  gap: 7px;
}
#app .control-metric-top::before {
  content: "";
  display: block;
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #82b5ed;
}
#app .control-metric[data-kind="present"] .control-metric-top::before {
  background: #55d4a6;
}
#app .control-metric[data-kind="absent"] .control-metric-top::before {
  background: #f296a9;
}
#app .control-metric[data-kind="pending"] .control-metric-top::before {
  background: #f2c96d;
}
#app .control-metric > strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
  color: #f4f8fc;
}
#app .control-metric[data-control-filter]:hover {
  background: #193e5d !important;
  filter: none;
  transform: none !important;
}
#app .control-metric[aria-pressed="true"] {
  border-color: #91c9ff !important;
  outline: 1px solid #91c9ff;
  outline-offset: 0;
  background: #173d5e !important;
}
#app .control-progress {
  margin-top: 10px;
  padding: 0;
}
#app .control-progress > small {
  display: none;
}
#app .control-progress-track {
  height: 4px;
  margin-top: 7px;
  border: 0;
}
@media (max-width: 650px) {
  #app .control-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  #app .control-metric {
    min-height: 54px;
    padding: 10px;
    border-radius: 10px;
  }
  #app .control-metric-top {
    font-size: 11px;
  }
  #app .control-metric > strong {
    font-size: 23px;
  }
  #app .control-heading h2 {
    font-size: 16px;
  }
  #app .control-scope {
    font-size: 10px;
  }
  #app .control-progress > div:first-child {
    font-size: 10px;
    gap: 8px;
    flex-wrap: wrap;
  }
}

/* Una sola franja de jornada, sin tarjetas independientes. */
#app .control-heading {
  margin: 0 0 12px;
  align-items: center;
}
#app .control-heading h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #eaf5ff;
}
#app .control-scope {
  font-size: 11px;
  color: #9cbdd9;
}
#app .control-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 7px 0;
  background: linear-gradient(110deg, #143b60, #102f4e);
  border: 1px solid #355e81;
  border-radius: 15px;
  overflow: hidden;
}
#app .control-metric {
  position: relative;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 14px;
  min-height: 68px;
  padding: 10px 20px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#app .control-metric + .control-metric {
  border-left: 1px solid #47769955 !important;
}
#app .control-metric-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: #b8d2e9;
  font-weight: 500;
}
#app .control-metric-top::before {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  flex: 0 0 3px;
}
#app .control-metric > strong {
  font-size: 30px;
  min-width: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #eef8ff;
  font-variant-numeric: tabular-nums;
}
#app .control-metric[data-kind="present"] > strong {
  color: #86e2c6;
}
#app .control-metric[data-kind="absent"] > strong {
  color: #f5b3c0;
}
#app .control-metric[data-kind="pending"] > strong {
  color: #f7d78f;
}
#app .control-metric[data-control-filter]:hover {
  background: #22517688 !important;
}
#app .control-metric[aria-pressed="true"] {
  background: #214b7188 !important;
  outline: none;
  box-shadow: inset 0 -3px #78bcfa !important;
}
#app .control-metric:focus-visible {
  outline: 2px solid #a8daff;
  outline-offset: -4px;
}
#app .control-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 11px 0 0;
}
#app .control-progress > div:first-child {
  flex: 0 1 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #adc7dc;
  font-size: 10px;
}
#app .control-progress-track {
  flex: 1;
  min-width: 40px;
  margin: 0;
  height: 5px;
  background: #274b69;
}
#app .control-progress-track i {
  background: linear-gradient(90deg, #498cf4, #68cfdd);
}
#app .assistant-live {
  background: linear-gradient(115deg, #153e65, #103253) !important;
  border: 1px solid #3a729b !important;
  border-radius: 15px !important;
  color: #e9f5ff !important;
  padding: 15px !important;
  box-shadow: none !important;
}
#app .assistant-heading > strong {
  color: #eef8ff !important;
}
#app #assistantLiveMessage {
  color: #bcd8ef !important;
}
#app #assistantVoiceState {
  color: #acd3f0 !important;
}
#app #assistantReady {
  color: #a9e8d1 !important;
  background: #174b53 !important;
  border-color: #397b7d !important;
}
#app .assistant-pulse {
  background: linear-gradient(135deg, #326ec2, #214b83) !important;
  border-color: #5c94ce !important;
}
#app .assistant-actions button {
  color: #e0f1ff !important;
  background: #143856 !important;
  border-color: #5183ac !important;
}
#app .assistant-actions #assistantListen {
  background: #2b66ae !important;
  border-color: #6a9ed8 !important;
  color: #fff !important;
}
@media (max-width: 800px) {
  #app .control-metric {
    padding: 10px 13px;
    gap: 10px;
  }
  #app .control-metric > strong {
    font-size: 26px;
    min-width: 31px;
  }
  #app .control-metric-top {
    font-size: 11px;
  }
}
@media (max-width: 650px) {
  #app .control-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    border-radius: 13px;
  }
  #app .control-metric {
    min-height: 67px;
    padding: 12px 14px;
  }
  #app .control-metric:nth-child(3) {
    border-left: 0 !important;
  }
  #app .control-metric:nth-child(n + 3) {
    border-top: 1px solid #47769955 !important;
  }
  #app .control-heading h2 {
    font-size: 17px;
  }
  #app .control-progress {
    display: block;
  }
  #app .control-progress > div:first-child {
    justify-content: space-between;
    gap: 8px;
  }
  #app .control-progress-track {
    margin-top: 7px;
  }
  #app .assistant-live {
    padding: 12px !important;
  }
}

#app #controlOverview[hidden] {
  display: none !important;
}
/* Tema accesible: el modo azul original permanece como predeterminado. */
:root {
  color-scheme: dark;
}
.theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  min-width: 40px;
  padding: 8px 11px;
  border: 1px solid #5683a7;
  border-radius: 10px;
  background: #163c60;
  color: #eaf5ff;
  font:
    650 12px/1.2 system-ui,
    sans-serif;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none;
  touch-action: manipulation;
}
.theme-switch svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.theme-switch:focus-visible {
  outline: 3px solid #69b4ff;
  outline-offset: 3px;
}
#loginScreen > .theme-switch {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 20;
  background: #123657;
  color: #f1f8ff;
  width: auto;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg-0: #eef4fa;
  --bg-1: #fff;
  --bg-2: #edf4fc;
  --ink: #16324e;
  --ink-soft: #425e79;
  --ink-dim: #5b7188;
  --glass: #fff;
  --glass-2: #e8f1fa;
  --stroke: #cbdbea;
  --stroke-2: #9ab9d4;
  --leaf: #087d5b;
  --leaf-bg: #e2f5ed;
  --amber: #926100;
  --amber-ink: #503600;
  --rose: #bb2850;
  --rose-bg: #fdebf0;
  --berry: #225eb4;
  --berry-2: #286bcb;
  --berry-3: #245fa3;
  --blue: #2264bd;
  --shadow-deep: 0 12px 28px #16395b14;
  --focus: 0 0 0 3px #226ccc30;
  --glow-berry: none;
}
html[data-theme="light"] body {
  background: #eef4fa !important;
  color: #16324e !important;
}
html[data-theme="light"] .bg-scene {
  background:
    radial-gradient(ellipse at 80% 0%, #daeaff, transparent 65%), #eef4fa !important;
}
html[data-theme="light"] .theme-switch {
  background: #e6effa !important;
  color: #174d89 !important;
  border-color: #acc7e0 !important;
}
/* Superficies principales y ventanas. No modifica dimensiones ni visibilidad. */
html[data-theme="light"]
  :is(#app, .overlay, #loginScreen)
  :is(
    .top,
    .sheet,
    .confirm-sheet,
    .voice-sheet,
    .add-worker-sheet,
    .mark-edit-sheet,
    .hr-editor-sheet,
    .hr-history-sheet,
    .hr-roster-sheet,
    .export-review-sheet,
    .vd-card,
    .dash-card,
    .mark-panel,
    .dz-panel,
    .dz-recipe,
    .dz-source,
    .hrx,
    .hr-workspace,
    .avr-panel,
    .avr-overview,
    .avr-toolbar,
    .dashboard-filter-shell,
    .dashboard-build,
    .validation-dashboard,
    .pda-panel,
    .area-picker-panel,
    .area-picker-options,
    .function-options,
    .smart-results,
    .account-menu
  ) {
  background: #fff !important;
  color: #16324e !important;
  border-color: #c6d8e8 !important;
  box-shadow: 0 5px 20px #143b6010 !important;
}
html[data-theme="light"] .overlay {
  background: #19324d70 !important;
}
html[data-theme="light"]
  :is(#app, .overlay, #loginScreen)
  :is(
    .sheet-header,
    .sheet-actions,
    .hr-editor-header,
    .hr-editor-review,
    .hr-editor-fields,
    .hr-editor-status,
    .hr-history-results,
    .hr-roster-summary,
    .hr-roster-schedule,
    .hr-pick-panel,
    .hr-pick-head,
    .hr-pick-status,
    .hr-bulk-box,
    .hr-bulk-picks,
    .mark-card,
    .mark-form,
    .mark-metric,
    .mark-identity,
    .mark-scan,
    .mark-week-search,
    .mark-step,
    .dz-banner,
    .vd-metrics,
    .vd-controls,
    .vd-area-filter,
    .vd-table-wrap,
    .hrx-table-wrap,
    .hrx-kpis,
    .hrx-filters,
    .hrx-bar,
    .hrx-modes,
    .avr-metrics,
    .avr-states,
    .avr-segments,
    .avr-areas,
    .export-review-summary,
    .export-review-issues,
    .name-preview,
    .dt-panel,
    .worker-ai-status,
    .voice-status,
    .voice-settings,
    .voice-manual,
    .scan-draft-note,
    .roster-heading,
    .roster-columns,
    .search-wrap,
    .search-box,
    .area-picker-trigger,
    .area-picker-foot,
    .area-picker-icon,
    .field-group,
    .backend-actions,
    .cierre-box,
    .resp-card,
    .dl-card,
    .stat-chip
  ) {
  background: #f3f7fc !important;
  color: #264661 !important;
  border-color: #c6d8e8 !important;
  box-shadow: none !important;
}
html[data-theme="light"] #app :is(#searchWrap, .top-primary, .session-bar) {
  background: #fff !important;
  border-color: #d1dfeb !important;
  color: #16324e !important;
}
html[data-theme="light"]
  :is(#app, .overlay)
  :is(
    h1,
    h2,
    h3,
    h4,
    .person-name,
    .sheet-name,
    .hr-workspace-title,
    .hr-editor-kicker,
    .hr-editor-subtitle,
    .hr-history-description,
    .field-label,
    .field-hint,
    .muted,
    .eyebrow,
    .person-meta,
    .person-area,
    .person-labor,
    .person-dni,
    .person-turno,
    .person-func,
    .row-chevron,
    .count-summary,
    .sheet-meta,
    .sheet-name small,
    .hr-editor-note,
    .hr-history-date-label,
    .hr-roster-summary small,
    .hr-save-state,
    .hr-save-state small,
    .hrx-status,
    .hrx-status small,
    .hrx-kpis small,
    .vd-note,
    .vd-head p,
    .vd-download-hint,
    .dashboard-heading p,
    .dashboard-date-status,
    .dashboard-filter-top,
    .avr-eyebrow,
    .avr-footnote,
    .avr-header p,
    .assistant-input-label,
    .assistant-chat-toolbar,
    .worker-ai-status small,
    .person-info
  ) {
  color: #365770 !important;
  text-shadow: none !important;
}
html[data-theme="light"]
  #app
  :is(
    .brand-lockup h1,
    .control-heading h2,
    .roster-heading strong,
    .person-name
  ) {
  color: #143859 !important;
}
html[data-theme="light"] :is(#app, .overlay) :is(label, legend, th, td) {
  color: #264661 !important;
  border-color: #d2dfeb !important;
}
html[data-theme="light"]
  :is(#app, .overlay)
  :is(input, select, textarea, .input) {
  background: #fff !important;
  color: #173952 !important;
  border-color: #abc6dc !important;
  box-shadow: none !important;
  color-scheme: light;
}
html[data-theme="light"] :is(#app, .overlay) input[readonly],
html[data-theme="light"] :is(#app, .overlay) input:disabled {
  background: #e9eff5 !important;
  color: #536b81 !important;
}
html[data-theme="light"] :is(#app, .overlay) :is(input, textarea)::placeholder {
  color: #71869b !important;
  opacity: 1;
}
html[data-theme="light"] :is(#app, .overlay) option {
  background: #fff;
  color: #16324e;
}
html[data-theme="light"]
  :is(#app, .overlay)
  :is(
    button,
    .btn,
    .filter-pill,
    .attendance-choice,
    .dinner-sticker,
    .shift-choices button,
    .line-options button,
    .function-toggle,
    .now-button,
    .sheet-close,
    .name-order-option
  ) {
  background: #eef4fb !important;
  color: #264d73 !important;
  border-color: #adc6dd !important;
  text-shadow: none !important;
  box-shadow: none !important;
}
html[data-theme="light"] :is(#app, .overlay) :is(button, .btn):hover {
  background: #e0edfb !important;
}
html[data-theme="light"]
  :is(#app, .overlay)
  :is(
    .btn-primary,
    .btn-save,
    .dt-save,
    .add-worker-save,
    .hr-save-shift,
    .dashboard-export,
    .vd-download,
    .av-submit,
    .hrx-primary,
    .today-btn,
    button.active,
    button[aria-pressed="true"],
    button[aria-selected="true"],
    .attendance-choice.selected,
    .dinner-sticker.selected,
    .line-options .selected,
    .shift-choices .selected,
    .name-order-option.active
  ) {
  background: #2364b2 !important;
  color: #fff !important;
  border-color: #2364b2 !important;
  box-shadow: none !important;
}
html[data-theme="light"]
  :is(#app, .overlay)
  :is(
    button[aria-pressed="true"],
    button[aria-selected="true"],
    button.active,
    .selected
  )
  :is(span, small, strong) {
  color: inherit !important;
}
html[data-theme="light"]
  :is(#app, .overlay)
  :is(
    .btn-danger,
    .resign-actions button,
    .dt-panel .danger,
    .restore-actions .danger
  ) {
  background: #fff0f3 !important;
  color: #a92449 !important;
  border-color: #e8aabd !important;
}
html[data-theme="light"] :is(#app, .overlay) :is(button:disabled, .disabled) {
  opacity: 0.5;
}
html[data-theme="light"]
  #app
  :is(
    .person-row,
    .person-row:nth-child(odd),
    .person-row:nth-child(even),
    .hr-roster-list > *,
    .hr-line-list > *,
    .voice-candidate
  ) {
  background: #fff !important;
  border-color: #cedeea !important;
  color: #16324e !important;
  box-shadow: none !important;
}
html[data-theme="light"] #app .person-row:hover {
  background: #edf5ff !important;
}
html[data-theme="light"] #app .person-row.st-presente {
  border-left-color: #138760 !important;
}
html[data-theme="light"] #app .person-row.st-falta {
  border-left-color: #c13358 !important;
}
html[data-theme="light"] :is(#app, .overlay) :is(.avatar, .session-avatar) {
  background: #dbeaf9 !important;
  color: #255784 !important;
  box-shadow: none !important;
}
html[data-theme="light"] :is(#app, .overlay) .status-badge {
  background: #e9eff6 !important;
  color: #45627b !important;
  border-color: #c3d4e4 !important;
}
html[data-theme="light"]
  :is(#app, .overlay)
  :is(
    .st-presente .status-badge,
    .attendance-saved-state.saved,
    .attendance-saved-state.is-saved,
    .mark-online,
    .person-cena
  ) {
  background: #e1f4eb !important;
  color: #086a49 !important;
  border-color: #90ccb3 !important;
}
html[data-theme="light"]
  :is(#app, .overlay)
  :is(.st-falta .status-badge, .form-error, .avr-error) {
  background: #fdebf0 !important;
  color: #ab2345 !important;
  border-color: #e1a6b5 !important;
}
html[data-theme="light"]
  :is(#app, .overlay)
  :is(
    .notice-banner,
    .area-lock-banner,
    .save-blocked,
    .absence-alerts,
    .hr-editor-banner,
    .hr-date-pill,
    .person-linea,
    .attendance-saved-state,
    .mark-feedback,
    .mark-exception-box
  ) {
  background: #fff5dc !important;
  color: #735019 !important;
  border-color: #dec48a !important;
}
html[data-theme="light"] :is(#app, .overlay) :is(table, .vd-table, .hrx-table) {
  background: #fff !important;
  border-color: #c8d8e6 !important;
}
html[data-theme="light"] :is(#app, .overlay) :is(th, thead tr, tfoot tr) {
  background: #e8f1fb !important;
  color: #1c4a70 !important;
}
html[data-theme="light"] :is(#app, .overlay) tbody tr {
  background: #fff !important;
}
html[data-theme="light"] :is(#app, .overlay) tbody tr:nth-child(even) {
  background: #f4f8fc !important;
}
html[data-theme="light"] :is(#app, .overlay) :is(td, th) {
  box-shadow: none !important;
}
html[data-theme="light"] #app .bottom-bar {
  background: #eaf2faed !important;
  border-color: #bed1e3 !important;
}
html[data-theme="light"] #app .bottom-bar-inner {
  background: #fff !important;
  border-color: #bed1e3 !important;
  box-shadow: 0 4px 20px #153f6015 !important;
}
html[data-theme="light"] #app .btn-cierre {
  background: #f8ce65 !important;
  color: #543a0b !important;
  border-color: #dcae3f !important;
}
/* Navegación lateral: azul suave en lugar de negro. */
html[data-theme="light"] #app .tareo-sidebar {
  background: linear-gradient(170deg, #e5f0fc, #f7fbff) !important;
  border-color: #bad2e7 !important;
  color: #194467 !important;
}
html[data-theme="light"] #app .tareo-sidebar #staffTabs .staff-tab {
  background: transparent !important;
  color: #365b7b !important;
}
html[data-theme="light"] #app .tareo-sidebar #staffTabs .staff-tab.active {
  background: #2467b5 !important;
  color: #fff !important;
  border-color: #2467b5 !important;
  box-shadow: inset 3px 0 #b0e4ff !important;
}
html[data-theme="light"]
  #app
  .tareo-sidebar
  #staffTabs
  .staff-tab
  > span:not(.side-nav-icon) {
  background: #dbeafa !important;
  border-color: #b1cce3 !important;
  color: #1b4d7d !important;
}
html[data-theme="light"]
  #app
  .tareo-sidebar
  :is(.sidebar-brand strong, .sidebar-footer strong) {
  color: #1b4d7d !important;
}
html[data-theme="light"]
  #app
  .tareo-sidebar
  :is(
    .sidebar-brand small,
    .sidebar-label,
    .sidebar-footer,
    .sidebar-footer p,
    .sidebar-footer small,
    .side-nav-icon
  ) {
  color: #4a6b87 !important;
}
html[data-theme="light"] #app .tareo-sidebar .staff-tab.active .side-nav-icon {
  color: #fff !important;
}
html[data-theme="light"] #app .sidebar-footer {
  background: #f4f8fd !important;
  border-color: #c4d7e7 !important;
}
html[data-theme="light"] #app .tareo-menu-bar {
  color: #385c7e !important;
}
/* Control de jornada y asistente. */
html[data-theme="light"] #app .control-metrics {
  background: linear-gradient(100deg, #e8f2ff, #f5faff) !important;
  border-color: #bbd2e7 !important;
}
html[data-theme="light"] #app .control-metric {
  background: transparent !important;
  color: #254967 !important;
  border-color: #c3d7e8 !important;
}
html[data-theme="light"] #app .control-metric[aria-pressed="true"] {
  background: #d9eaff !important;
  box-shadow: inset 0 -3px #296ab6 !important;
}
html[data-theme="light"] #app .control-metric-top {
  color: #4b6b86 !important;
}
html[data-theme="light"] #app .control-metric > strong {
  color: #22558a !important;
}
html[data-theme="light"] #app .control-metric[data-kind="present"] > strong {
  color: #087554 !important;
}
html[data-theme="light"] #app .control-metric[data-kind="absent"] > strong {
  color: #b42a4e !important;
}
html[data-theme="light"] #app .control-metric[data-kind="pending"] > strong {
  color: #8b5d0b !important;
}
html[data-theme="light"]
  #app
  :is(
    .control-scope,
    .control-progress > div:first-child,
    .control-progress strong
  ) {
  color: #4a6783 !important;
}
html[data-theme="light"]
  #app
  :is(.control-progress-track, .avr-progress-track) {
  background: #d8e5f2 !important;
}
html[data-theme="light"] #app :is(.assistant-live, .assistant-ask) {
  background: #edf5ff !important;
  border-color: #b6d2eb !important;
  color: #23486a !important;
  box-shadow: none !important;
}
html[data-theme="light"]
  #app
  :is(
    .assistant-heading > strong,
    #assistantLiveMessage,
    #assistantChatStatus,
    #assistantVoiceState
  ) {
  color: #254f75 !important;
}
html[data-theme="light"] #app #assistantReady {
  background: #dff3e9 !important;
  color: #146349 !important;
  border-color: #a9d9c4 !important;
}
html[data-theme="light"] #app #assistantAskInput {
  background: #fff !important;
  color: #173952 !important;
  border-color: #acc8df !important;
}
html[data-theme="light"]
  #app
  :is(
    .assistant-actions button,
    .assistant-quick button,
    .assistant-chat-toolbar button
  ) {
  background: #fff !important;
  color: #24517a !important;
  border-color: #abc7e0 !important;
}
html[data-theme="light"]
  #app
  :is(#assistantListen, #assistantSend, #assistantNext) {
  background: #2467b5 !important;
  color: #fff !important;
  border-color: #2467b5 !important;
}
html[data-theme="light"]
  #app
  :is(
    .assistant-chat-log > *,
    .assistant-chat-log .assistant-message,
    .assistant-chat-log .chat-message
  ) {
  background: #fff !important;
  color: #254761 !important;
  border-color: #c5d9e9 !important;
}
html[data-theme="light"] .toast {
  background: #fff !important;
  color: #163b5b !important;
  border-color: #9fbdd7 !important;
  box-shadow: 0 5px 25px #183e6025 !important;
}
/* Login: conserva sus personajes y animación, adapta el fondo. */
html[data-theme="light"] #loginScreen.reference-login {
  background: radial-gradient(
    ellipse at 20% 10%,
    #cfe8fb,
    #eef5fc 65%
  ) !important;
  color: #16324e !important;
}
html[data-theme="light"]
  #loginScreen
  :is(
    .alza-packing-login-brand,
    .alza-packing-login-tag,
    .alza-login-caption,
    .alza-login-modules
  ) {
  color: #214e75 !important;
  text-shadow: none !important;
}
html[data-theme="light"]
  #loginScreen
  :is(
    .alza-packing-login-brand h1,
    .alza-packing-login-brand h2,
    .alza-packing-login-brand p,
    .alza-welcome-eyebrow,
    .alza-login-caption p,
    .alza-login-caption strong
  ) {
  color: #214e75 !important;
  text-shadow: none !important;
}
html[data-theme="light"] #loginScreen .alza-packing-login-panel {
  background: #ffffffed !important;
  border-color: #b8d5e8 !important;
  box-shadow: 0 12px 40px #153d6018 !important;
}
html[data-theme="light"] #loginScreen .alza-login-modules > * {
  background: #e4f0fb !important;
  border-color: #adcce3 !important;
  color: #24577e !important;
}
@media (max-width: 600px) {
  .theme-switch {
    min-height: 40px;
    padding: 8px;
  }
  .theme-switch span {
    font-size: 11px;
  }
  .session-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  #loginScreen > .theme-switch {
    top: 10px;
    right: 10px;
    min-height: 36px;
    padding: 7px 10px;
  }
}
html[data-theme="light"]
  :is(#app, .overlay)
  :is(
    .hr-line-card,
    .hr-roster-person,
    .hr-cell,
    .hrx-kpi,
    .vd-metric,
    .avr-area-card,
    .avr-card,
    .ops-card,
    .ops-metric,
    .dash-chart-card,
    .staffing-card,
    .empty-state,
    .function-options-head,
    .area-choice,
    .voice-candidate,
    .mark-empty
  ) {
  background: #f4f8fd !important;
  color: #264c6a !important;
  border-color: #bfd3e4 !important;
  box-shadow: none !important;
}
html[data-theme="light"]
  :is(#app, .overlay)
  :is(
    .hr-line-name,
    .hr-line-title,
    .hr-roster-details,
    .hr-roster-details strong,
    .hr-roster-details small,
    .hr-line-meta,
    .hr-roster-hours,
    .hr-table-head,
    .vd-bar-label,
    .vd-metric strong,
    .vd-metric small,
    .function-options-head span,
    .area-choice-copy,
    .area-choice-label,
    .area-choice small,
    .hrx-kpi strong,
    .hrx-kpi span,
    .avr-card strong,
    .avr-card small
  ) {
  color: #335d7f !important;
}
html[data-theme="light"]
  :is(#app, .overlay)
  .attendance-saved-state[data-state="saved"] {
  background: #e1f4eb !important;
  color: #086a49 !important;
  border-color: #90ccb3 !important;
}
html[data-theme="light"]
  :is(#app, .overlay)
  .attendance-saved-state[data-state="saving"] {
  background: #e4f0ff !important;
  color: #245b9c !important;
  border-color: #9fbfe5 !important;
}
html[data-theme="light"] #app .assistant-chat-message[data-role="user"] {
  background: #dcecff !important;
  color: #204e78 !important;
}
html[data-theme="light"] #app .assistant-chat-message small {
  color: #4e718f !important;
}
html[data-theme="light"] #app :is(.vd-card, .dash-chart-card) svg text {
  fill: #365770 !important;
}

/* Correcciones de contraste y acabado del modo claro; sin cambios funcionales. */
html[data-theme="light"] body *,
html[data-theme="light"] body *::before,
html[data-theme="light"] body *::after {
  text-shadow: none !important;
}
html[data-theme="light"] body {
  scrollbar-color: #9bb9d4 #edf3fa;
}
html[data-theme="light"] #app > .top {
  background: #fff !important;
  box-shadow: 0 6px 24px #1b456b0b !important;
  border-color: #cbdbeb !important;
}
html[data-theme="light"] #app #searchWrap {
  background: #fff !important;
  border: 1px solid #c7d9ea !important;
  box-shadow: 0 3px 12px #234d7010 !important;
}
html[data-theme="light"] #app .search-box {
  background: #f2f6fb !important;
  border-color: #bbd1e5 !important;
  color: #3a668b !important;
  box-shadow: none !important;
  align-items: center;
  gap: 10px;
}
html[data-theme="light"] #app .search-box #search {
  display: block;
  align-self: stretch;
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  height: auto;
  padding: 10px 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #203f5c !important;
  line-height: 1.4;
  font-family: inherit;
  box-shadow: none !important;
  outline: 0 !important;
}
html[data-theme="light"] #app .search-box #search::placeholder {
  color: #667f96 !important;
  opacity: 1;
}
html[data-theme="light"] #app .search-box:focus-within {
  background: #fff !important;
  border-color: #377cbf !important;
  box-shadow: 0 0 0 3px #3c86cc1f !important;
}
html[data-theme="light"] #app .search-box svg {
  color: #3e6c94 !important;
  opacity: 1;
  filter: none !important;
}
html[data-theme="light"] #app #filters .filter-pill {
  background: #f4f8fd !important;
  border-color: #bfd3e6 !important;
  color: #325b7f !important;
  box-shadow: none !important;
}
html[data-theme="light"] #app #filters .filter-pill.active {
  background: #2467b5 !important;
  color: #fff !important;
  border-color: #2467b5 !important;
}
html[data-theme="light"] #app #filters .filter-pill > span {
  background: #e0ebf8 !important;
  color: #285582 !important;
  border: 1px solid #bfd3e7 !important;
  box-shadow: none !important;
}
html[data-theme="light"] #app #filters .filter-pill.active > span {
  background: #ffffff24 !important;
  color: #fff !important;
  border-color: #ffffff55 !important;
}
html[data-theme="light"] #app .roster-heading {
  background: #edf4fc !important;
  border-color: #c6d9ea !important;
}
html[data-theme="light"] #app .roster-heading small {
  color: #55738e !important;
}
html[data-theme="light"] #app .roster-columns {
  background: transparent !important;
  color: #4a6a85 !important;
  border-color: #cfdfec !important;
}
html[data-theme="light"] #app .roster-columns span {
  color: #4a6a85 !important;
  font-family: var(--font-body);
  font-weight: 600;
}
html[data-theme="light"]
  #app
  .person-row
  :is(.person-name, .person-dni, .person-area, .person-labor, .row-chevron) {
  text-shadow: none !important;
  filter: none !important;
}
html[data-theme="light"] #app .person-row .person-name {
  color: #183c5d !important;
}
html[data-theme="light"]
  #app
  .person-row
  :is(.person-dni, .person-area, .person-labor) {
  color: #425f77 !important;
}
html[data-theme="light"] #app .person-row .status-badge.presente {
  background: #dff3e8 !important;
  color: #116546 !important;
  border-color: #a2d4bd !important;
}
html[data-theme="light"] #app .person-row .status-badge.falta {
  background: #fbe7ed !important;
  color: #a4294c !important;
  border-color: #e6b2c2 !important;
}
html[data-theme="light"] #app .person-row .status-badge.pendiente {
  background: #eaf0f7 !important;
  color: #506a84 !important;
  border-color: #c4d4e5 !important;
}
html[data-theme="light"] #app .person-row .status-badge.dt {
  background: #fff1d6 !important;
  color: #805a16 !important;
  border-color: #e7cd96 !important;
}
html[data-theme="light"] #app .tareo-sidebar #staffTabs #addWorker {
  background: #e1edfc !important;
  color: #245b92 !important;
  border-color: #a9c9e6 !important;
}
html[data-theme="light"]
  #app
  .tareo-sidebar
  #staffTabs
  .staff-tab.active
  > span:not(.side-nav-icon) {
  background: #ffffffec !important;
  color: #1d5997 !important;
  border-color: #d6e9fa !important;
}
html[data-theme="light"]
  #app
  .tareo-sidebar
  #staffTabs
  .staff-tab.active
  .side-nav-icon {
  background: transparent !important;
  color: #fff !important;
}
html[data-theme="light"]
  #app
  .tareo-sidebar
  #staffTabs
  .staff-tab:hover:not(.active) {
  background: #dfeaf8 !important;
  border-color: #c6d9ec !important;
}
html[data-theme="light"] #app .bottom-bar {
  background: #edf4fbed !important;
}
html[data-theme="light"] #app .bottom-bar #closeDay {
  background: #fff1c9 !important;
  color: #76520a !important;
  border-color: #ddc076 !important;
}
html[data-theme="light"] #app .bottom-bar #exportDay {
  background: #e3effe !important;
  color: #205d9c !important;
  border-color: #a0c3e9 !important;
}
html[data-theme="light"] #app .bottom-bar #exportPeriod {
  background: #2467b5 !important;
  color: #fff !important;
  border-color: #2467b5 !important;
}
html[data-theme="light"]
  #app
  .assistant-ask
  :is(label, .assistant-input-label, #assistantChatStatus) {
  color: #476781 !important;
}
html[data-theme="light"] #app .assistant-chat-message :is(p, small, span) {
  color: inherit !important;
}
html[data-theme="light"]
  :is(#app, .overlay)
  :is(
    .hr-line-head,
    .hr-table-head,
    .hr-line-meta,
    .hr-roster-details,
    .hr-history-results,
    .dashboard-range-field,
    .dashboard-filter-top,
    .avr-header,
    .avr-metrics
  )
  :is(strong, small, span, p) {
  color: inherit !important;
}
html[data-theme="light"]
  :is(#app, .overlay)
  :is(.hr-line-card, .hr-roster-person, .mark-card, .vd-card, .avr-panel) {
  color: #2c5272 !important;
}
html[data-theme="light"]
  :is(#app, .overlay)
  :is(.hr-line-card, .hr-roster-person, .mark-card, .vd-card, .avr-panel)
  :is(input, select, textarea) {
  color: #203e59 !important;
  background: #fff !important;
}
html[data-theme="light"]
  :is(#app, .overlay)
  :is(
    .vd-area-count,
    .hr-count-button,
    .hr-date-pill,
    .hr-history-open,
    .hr-history-actions button
  ) {
  background: #e5effb !important;
  color: #295b88 !important;
  border-color: #b4cee6 !important;
}
html[data-theme="light"]
  :is(#app, .overlay)
  :is(button, input, select, textarea):focus-visible {
  outline: 2px solid #357bbe !important;
  outline-offset: 2px;
}
html[data-theme="light"]
  :is(#app, .overlay)
  :is(button[aria-pressed="true"], button[aria-selected="true"], button.active)
  .vd-area-count {
  background: #ffffff25 !important;
  color: #fff !important;
}

/* El menú conserva el azul institucional también en el modo claro. */
html[data-theme="light"] #app .tareo-sidebar {
  background: linear-gradient(
    165deg,
    #123e6e 0%,
    #0d2e54 58%,
    #092544 100%
  ) !important;
  color: #e5f2ff !important;
  border-right-color: #285c8a !important;
  box-shadow: 4px 0 18px #0b2b4b15 !important;
}
html[data-theme="light"] #app .tareo-sidebar #staffTabs .staff-tab {
  background: transparent !important;
  color: #cce2f7 !important;
  border-color: transparent !important;
}
html[data-theme="light"] #app .tareo-sidebar #staffTabs .staff-tab.active {
  background: linear-gradient(100deg, #327bd0, #215d9d) !important;
  color: #fff !important;
  border-color: #65a4df !important;
  box-shadow: inset 3px 0 #9fe5ff !important;
}
html[data-theme="light"]
  #app
  .tareo-sidebar
  #staffTabs
  .staff-tab:hover:not(.active) {
  background: #24547c !important;
  border-color: #3b739e !important;
}
html[data-theme="light"]
  #app
  .tareo-sidebar
  #staffTabs
  .staff-tab
  > span:not(.side-nav-icon) {
  background: #173c61 !important;
  color: #d9edff !important;
  border-color: #5080a8 !important;
}
html[data-theme="light"]
  #app
  .tareo-sidebar
  #staffTabs
  .staff-tab.active
  > span:not(.side-nav-icon) {
  background: #e7f3ff !important;
  color: #184f87 !important;
  border-color: #b9dcfa !important;
}
html[data-theme="light"]
  #app
  .tareo-sidebar
  :is(.sidebar-brand strong, .sidebar-footer strong) {
  color: #f0f7ff !important;
}
html[data-theme="light"]
  #app
  .tareo-sidebar
  :is(.sidebar-brand small, .sidebar-label, .sidebar-footer small) {
  color: #a8cae8 !important;
}
html[data-theme="light"]
  #app
  .tareo-sidebar
  :is(.sidebar-footer, .sidebar-footer p, .side-nav-icon) {
  color: #c0dcf2 !important;
}
html[data-theme="light"] #app .tareo-sidebar .sidebar-footer {
  background: #123559 !important;
  border-color: #39688f !important;
}
html[data-theme="light"] #app .tareo-sidebar #staffTabs #addWorker {
  background: #285da7 !important;
  color: #fff !important;
  border-color: #5d8bc4 !important;
}
html[data-theme="light"] #app .tareo-sidebar #staffTabs .staff-actions {
  border-top-color: #466d9166 !important;
}
html[data-theme="light"] #app .tareo-sidebar #closeTareoMenu {
  background: #21496c !important;
  color: #eaf6ff !important;
  border-color: #6089ac !important;
}
/* Cabecera legible en fondo claro, incluidos textos con color propio. */
html[data-theme="light"] #app .brand-lockup :is(h1, h1 span, strong) {
  color: #164c7d !important;
}
html[data-theme="light"] #app .brand-lockup :is(p, small, .count-summary) {
  color: #4e6f8c !important;
}
html[data-theme="light"] #app .session-identity {
  background: #edf4fc !important;
  border-color: #b9d2e8 !important;
}
html[data-theme="light"] #app #userInfo {
  color: #173e62 !important;
}
html[data-theme="light"] #app #sessionRole {
  color: #27649a !important;
}
html[data-theme="light"] #app :is(#closingInfo, .day-state) {
  color: #4f718d !important;
}
/* Colores funcionales: azul en acciones, violeta en noche y verde en guardado. */
html[data-theme="light"]
  #app
  :is(.hr-table-head, .hr-line-list > .hr-table-head) {
  background: #20598b !important;
  border-color: #20598b !important;
  color: #f3f8ff !important;
}
html[data-theme="light"] #app .hr-table-head :is(span, strong, small) {
  color: #e6f2ff !important;
}
html[data-theme="light"] #app .hr-shift-tabs {
  background: #e7eff9 !important;
  border-color: #bfd2e6 !important;
  box-shadow: none !important;
}
html[data-theme="light"]
  #app
  .hr-shift-tabs
  button[data-hor-shift="dia"][aria-pressed="true"] {
  background: #236bb7 !important;
  color: #fff !important;
  border-color: #236bb7 !important;
}
html[data-theme="light"]
  #app
  .hr-shift-tabs
  button[data-hor-shift="noche"][aria-pressed="true"] {
  background: #6b50af !important;
  color: #fff !important;
  border-color: #6b50af !important;
}
html[data-theme="light"]
  #app
  .hr-workspace[data-shift="noche"]
  .hr-workspace-title {
  color: #66439a !important;
}
html[data-theme="light"]
  #app
  .hr-workspace[data-shift="dia"]
  .hr-workspace-title {
  color: #226296 !important;
}
html[data-theme="light"] #app .hr-line-card .hr-cell {
  background: #f0f6ff !important;
  border-color: #accbe7 !important;
  color: #215584 !important;
}
html[data-theme="light"] #app .control-metric[data-kind="present"] {
  box-shadow: inset 0 -2px #41a989 !important;
}
html[data-theme="light"] #app .control-metric[data-kind="absent"] {
  box-shadow: inset 0 -2px #d88199 !important;
}
html[data-theme="light"] #app .control-metric[data-kind="pending"] {
  box-shadow: inset 0 -2px #d0a54d !important;
}
html[data-theme="light"] #app .control-metric[aria-pressed="true"] {
  box-shadow: inset 0 -3px #246bb8 !important;
}

/* Campos de acceso blancos en ambos temas, también con autocompletado. */
#loginScreen #email,
#loginScreen #password {
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  color: #183b5b !important;
  -webkit-text-fill-color: #183b5b !important;
  caret-color: #1d5e97 !important;
  color-scheme: light;
  opacity: 1;
}
#loginScreen #email:focus,
#loginScreen #password:focus,
#loginScreen #email:hover,
#loginScreen #password:hover {
  background: #fff !important;
  color: #183b5b !important;
  -webkit-text-fill-color: #183b5b !important;
}
#loginScreen #email:-webkit-autofill,
#loginScreen #password:-webkit-autofill,
#loginScreen #email:-webkit-autofill:focus,
#loginScreen #password:-webkit-autofill:focus {
  background: #fff !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #183b5b !important;
  caret-color: #1d5e97 !important;
}
#loginScreen #email:autofill,
#loginScreen #password:autofill {
  background: #fff !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  color: #183b5b !important;
  -webkit-text-fill-color: #183b5b !important;
}

/* Afinado para pantallas táctiles sin cambiar selecciones ni eventos. */
@media (pointer: coarse) {
  #app .person-row {
    content-visibility: auto;
    contain-intrinsic-size: auto 92px;
  }
  #app :is(.person-row, .hr-line-card, .hr-roster-person, .control-metric) {
    will-change: auto !important;
    filter: none !important;
  }
  .overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  #app :is(button, input, select, textarea),
  .overlay :is(button, input, select, textarea) {
    touch-action: manipulation;
  }
}
html.lite-mode
  #loginScreen
  :is(.alza-login-orbit, .alza-login-character, .alza-login-floor) {
  animation: none !important;
  filter: none !important;
  will-change: auto !important;
}
html.lite-mode #loginScreen .alza-packing-login {
  transform: none !important;
  box-shadow: 0 8px 24px #08244220 !important;
}
html.lite-mode
  #app
  :is(.assistant-live, .control-metrics, .top, .bottom-bar-inner) {
  box-shadow: none !important;
}
@media (max-width: 1000px) {
  #app
    :is(
      .top-primary,
      .session-bar,
      .brand-lockup,
      .search-row,
      .search-box,
      .assistant-live-copy,
      .hr-toolbar,
      .hrx-bar,
      .dashboard-heading,
      .dashboard-filter-shell
    ) {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  #app .brand-lockup h1 {
    overflow-wrap: anywhere;
  }
  #app :is(.vd-table-wrap, .hrx-table-wrap, .hr-history-results) {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  #app :is(.vd-grid, .dz-grid) {
    min-width: 0;
  }
  .overlay .sheet {
    width: 100%;
    box-sizing: border-box;
    max-width: min(640px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
@media (max-width: 600px) {
  #app.app {
    padding: 10px !important;
  }
  #app .session-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  #app .session-identity {
    min-width: 0;
    flex: 1 1 155px;
  }
  #app #userInfo {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  #app .date-row {
    gap: 6px !important;
  }
  #app .date-row #day {
    min-width: 125px;
    max-width: 100%;
    font-size: 16px !important;
  }
  #app .search-row {
    flex-wrap: wrap;
    gap: 7px !important;
  }
  #app .search-row .search-box {
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
  }
  #app .search-row > button {
    flex: 1 1 auto;
    min-width: 44px;
    min-height: 44px;
    max-width: 100%;
  }
  #app #filters {
    gap: 7px !important;
    flex-wrap: wrap;
  }
  #app #filters .filter-pill {
    min-height: 40px;
    padding: 8px 10px !important;
    font-size: 11px !important;
    max-width: 100%;
    white-space: normal;
  }
  #app .person-row .person-name {
    line-height: 1.4 !important;
    overflow-wrap: anywhere;
  }
  #app :is(.vd-grid, .dz-grid) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #app :is(.vd-card, .hrx, .mark-panel, .dz-panel) {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  #app
    :is(
      .hrx-actions,
      .hrx-filters,
      .hr-toolbar,
      .dashboard-heading,
      .vd-controls,
      .avr-toolbar
    ) {
    flex-wrap: wrap;
    gap: 8px;
  }
  #app :is(.hrx-actions, .vd-controls) button {
    min-height: 42px;
    max-width: 100%;
    white-space: normal;
  }
  #app .bottom-bar-inner {
    gap: 6px !important;
    padding: 8px !important;
    padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
  }
  #app .bottom-bar-inner .btn {
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 9px 7px !important;
    font-size: 11px !important;
    white-space: normal !important;
    line-height: 1.25;
  }
  .overlay {
    padding: 8px !important;
  }
  .overlay .sheet {
    max-width: 100%;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    border-radius: 18px !important;
  }
  .overlay
    :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    font-size: 16px !important;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .overlay :is(.sheet-name, .sheet-header h2, .sheet-header h3) {
    overflow-wrap: anywhere;
  }
  .overlay .sheet-actions {
    gap: 7px !important;
  }
  .overlay .sheet-actions .btn {
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 10px !important;
    white-space: normal !important;
  }
  .overlay .function-options {
    position: static !important;
    width: 100% !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    margin-top: 8px;
    box-sizing: border-box;
  }
  .overlay .function-options[hidden] {
    display: none !important;
  }
  #loginScreen .alza-packing-login-form {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 380px) {
  #app .session-identity {
    flex-basis: 100%;
  }
  #app .theme-switch,
  #app .account-menu-wrap {
    flex: 1 1 auto;
  }
  #app #accountToggle {
    width: 100%;
  }
  #app .assistant-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }
  #app .assistant-actions button {
    min-width: 0;
    flex: 1 1 auto;
    white-space: normal;
  }
  .overlay
    :is(.line-options, .attendance-choices, .shift-choices, .dinner-options) {
    gap: 6px !important;
  }
}

#loginScreen .alza-login-character {
  object-fit: contain;
  object-position: center bottom;
}
/* Foto del equipo integrada al panel con profundidad de la tarjeta existente. */
html #loginScreen.reference-login .alza-packing-login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 650px !important;
  padding: 30px !important;
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
  background: #0b2f50 !important;
}
html #loginScreen.reference-login .alza-login-figure {
  position: absolute;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  z-index: -1;
  transform: none !important;
  filter: none !important;
  pointer-events: none;
}
html #loginScreen.reference-login .alza-login-character {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: 50% 35% !important;
  transform: none !important;
  animation: none !important;
  filter: none !important;
}
html #loginScreen.reference-login .alza-login-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #09244105 25%,
    #071b3630 48%,
    #061b38d9 79%,
    #05172bf5 100%
  );
  pointer-events: none;
}
html #loginScreen.reference-login :is(.alza-login-orbit, .alza-login-floor) {
  display: none !important;
}
html #loginScreen.reference-login .alza-welcome-heading {
  position: relative;
  z-index: 2;
  transform: translateZ(22px) !important;
  margin-top: auto;
  gap: 12px;
  align-items: center;
}
html #loginScreen.reference-login .alza-packing-login-logo-ring {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  padding: 6px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 18px #0003;
}
html #loginScreen.reference-login .alza-packing-login-logo-ring img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
html
  #loginScreen.reference-login
  .alza-packing-login-brand
  :is(
    h2,
    h2 span,
    .alza-welcome-eyebrow,
    .alza-packing-login-tag,
    .alza-packing-login-tag strong,
    .alza-login-caption
  ) {
  color: #fff !important;
  text-shadow: 0 2px 8px #06172a66 !important;
}
html #loginScreen.reference-login .alza-welcome-heading h2 {
  font-size: 25px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.2px;
}
html #loginScreen.reference-login .alza-welcome-eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 5px;
}
html #loginScreen.reference-login .alza-packing-login-tag {
  position: relative;
  z-index: 2;
  max-width: 100% !important;
  margin: 17px 0 0 !important;
  padding-left: 0 !important;
  border: 0 !important;
  transform: translateZ(18px);
}
html #loginScreen.reference-login .alza-packing-login-tag strong {
  font-size: 22px;
  line-height: 1.25;
}
html #loginScreen.reference-login .alza-packing-login-tag strong span {
  color: #a1e9ff !important;
}
html #loginScreen.reference-login .alza-login-tag-detail {
  color: #d3e8f7 !important;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 6px;
}
html #loginScreen.reference-login .alza-login-modules {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  transform: translateZ(16px);
  gap: 7px;
}
html #loginScreen.reference-login .alza-login-modules span {
  background: #ffffff13 !important;
  color: #edf8ff !important;
  border-color: #c7e6ff44 !important;
  box-shadow: none !important;
}
html #loginScreen.reference-login .alza-login-caption {
  position: relative;
  z-index: 2;
  font-size: 10px;
  margin: 11px 0 0;
  color: #c9dfef !important;
}
@media (max-width: 1000px) and (min-width: 761px) {
  html #loginScreen.reference-login .alza-packing-login-brand {
    padding: 24px !important;
    min-height: 610px !important;
  }
}
@media (max-width: 760px) {
  html #loginScreen.reference-login .alza-packing-login-brand {
    min-height: 350px !important;
    padding: 20px !important;
  }
  html #loginScreen.reference-login .alza-login-character {
    object-position: 50% 22% !important;
  }
  html #loginScreen.reference-login .alza-login-figure::after {
    background: linear-gradient(
      180deg,
      transparent 25%,
      #071c3640 48%,
      #071c36ef 100%
    );
  }
  html #loginScreen.reference-login .alza-welcome-heading {
    gap: 10px;
    transform: none !important;
  }
  html #loginScreen.reference-login .alza-packing-login-logo-ring {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 10px;
    padding: 5px;
  }
  html #loginScreen.reference-login .alza-welcome-heading h2 {
    font-size: 20px;
  }
  html #loginScreen.reference-login .alza-welcome-eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
    margin-bottom: 4px;
  }
  html #loginScreen.reference-login .alza-packing-login-tag {
    margin-top: 10px !important;
    transform: none;
  }
  html #loginScreen.reference-login .alza-packing-login-tag strong {
    font-size: 18px;
  }
  html #loginScreen.reference-login .alza-login-tag-detail {
    font-size: 10px;
    margin-top: 4px;
  }
  html #loginScreen.reference-login .alza-login-modules {
    margin-top: 10px;
    transform: none;
  }
  html #loginScreen.reference-login .alza-login-modules span {
    font-size: 9px;
    padding: 4px 8px;
  }
  html #loginScreen.reference-login .alza-login-caption {
    display: none;
  }
}
@media (max-width: 380px) {
  html #loginScreen.reference-login .alza-packing-login-brand {
    min-height: 320px !important;
    padding: 16px !important;
  }
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  html
    #loginScreen.reference-login
    :is(.alza-welcome-heading, .alza-packing-login-tag, .alza-login-modules) {
    transform: none !important;
  }
}

/* Navegación compartida, independiente de los permisos de cada cuenta. */
html[data-theme] #app .tareo-sidebar #staffTabs {
  gap: 9px !important;
}
html[data-theme] #app .tareo-sidebar #staffTabs button.staff-tab {
  position: relative;
  min-height: 50px !important;
  padding: 11px 12px !important;
  gap: 12px !important;
  border: 1px solid #7299be22 !important;
  border-radius: 12px !important;
  background: #ffffff05 !important;
  color: #d7e8f7 !important;
  font: 600 13px/1.35 var(--font-body) !important;
  box-shadow: none !important;
  letter-spacing: 0;
  transition:
    background-color 0.12s,
    border-color 0.12s;
  transform: none !important;
  text-align: left;
}
html[data-theme]
  #app
  .tareo-sidebar
  #staffTabs
  button.staff-tab
  .side-nav-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #729cc41a !important;
  color: #b9d9f4 !important;
  border: 1px solid #a8cceb16;
  box-shadow: none !important;
}
html[data-theme] #app .tareo-sidebar #staffTabs .side-nav-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  overflow: visible;
}
html[data-theme] #app .tareo-sidebar #staffTabs button.staff-tab.active {
  background: linear-gradient(105deg, #377dc6, #245d9d) !important;
  border-color: #70a7db !important;
  color: #fff !important;
  box-shadow: 0 3px 9px #031a3222 !important;
}
html[data-theme]
  #app
  .tareo-sidebar
  #staffTabs
  button.staff-tab.active
  .side-nav-icon {
  background: #ffffff20 !important;
  border-color: #ffffff30 !important;
  color: #fff !important;
}
html[data-theme]
  #app
  .tareo-sidebar
  #staffTabs
  button.staff-tab
  > span:not(.side-nav-icon) {
  min-width: 25px;
  padding: 3px 7px !important;
  margin-left: auto;
  border-radius: 7px !important;
  background: #123859 !important;
  color: #c8e3fa !important;
  border: 1px solid #5f89b15c !important;
  font: 650 10px/1.3 var(--font-body) !important;
  font-variant-numeric: tabular-nums;
}
html[data-theme]
  #app
  .tareo-sidebar
  #staffTabs
  button.staff-tab.active
  > span:not(.side-nav-icon) {
  background: #e9f4ff !important;
  color: #255c91 !important;
  border-color: #d0e6fa !important;
}
html[data-theme] #app .tareo-sidebar #staffTabs button.staff-tab:focus-visible {
  outline: 2px solid #b3e0ff !important;
  outline-offset: 2px;
}
html[data-theme] #app .tareo-sidebar #staffTabs .staff-actions {
  padding-top: 17px !important;
  margin-top: 17px !important;
  gap: 9px !important;
  border-top-color: #6389ac44 !important;
}
html[data-theme] #app .tareo-sidebar #staffTabs #addWorker {
  background: #295aa3 !important;
  color: #f1f7ff !important;
  border-color: #658bc45c !important;
}
@media (hover: hover) {
  html[data-theme]
    #app
    .tareo-sidebar
    #staffTabs
    button.staff-tab:hover:not(.active) {
    background: #6b9ec425 !important;
    border-color: #6d9cc06b !important;
  }
}
@media (max-width: 1000px) {
  html[data-theme] #app .tareo-sidebar #staffTabs button.staff-tab {
    min-height: 52px !important;
    font-size: 14px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme] #app .tareo-sidebar #staffTabs button.staff-tab {
    transition: none !important;
  }
}

/* Menú con botones definidos, iconos de color y selección visible. */
html[data-theme] #app .tareo-sidebar {
  background: linear-gradient(165deg, #102e53 0%, #091d35 100%) !important;
  padding-left: 14px;
  padding-right: 14px;
  border-right-color: #34577b !important;
}
html[data-theme] #app .tareo-sidebar .sidebar-brand {
  padding-bottom: 23px;
}
html[data-theme] #app .tareo-sidebar .sidebar-label {
  padding: 0 10px 14px;
  color: #8fafcd !important;
  letter-spacing: 0.12em;
}
html[data-theme] #app .tareo-sidebar #staffTabs {
  gap: 10px !important;
}
html[data-theme] #app .tareo-sidebar #staffTabs button.staff-tab {
  --nav-accent: #9ac5ff;
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 12px !important;
  width: 100%;
  min-height: 60px !important;
  margin: 0;
  padding: 11px 12px !important;
  border-radius: 14px !important;
  background: linear-gradient(120deg, #203f5e, #19344f) !important;
  border: 1px solid #50718e66 !important;
  color: #e9f3ff !important;
  font:
    650 13px/1.35 system-ui,
    sans-serif !important;
  box-shadow:
    inset 0 1px #ffffff0a,
    0 3px 8px #03142522 !important;
  transition:
    background-color 0.12s,
    border-color 0.12s;
  transform: none !important;
  text-align: left;
}
html[data-theme]
  #app
  .tareo-sidebar
  #staffTabs
  button.staff-tab
  .side-nav-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  background: #0c2645 !important;
  border: 1px solid #779abf33 !important;
  color: var(--nav-accent) !important;
  box-shadow: inset 0 1px #ffffff05 !important;
}
html[data-theme] #app .tareo-sidebar #staffTabs .side-nav-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}
html[data-theme]
  #app
  .tareo-sidebar
  #staffTabs
  button.staff-tab[data-tab="dashboard"] {
  --nav-accent: #bca9ff;
}
html[data-theme]
  #app
  .tareo-sidebar
  #staffTabs
  button.staff-tab[data-tab="marcaciones"] {
  --nav-accent: #79ded9;
}
html[data-theme]
  #app
  .tareo-sidebar
  #staffTabs
  button.staff-tab[data-tab="horarios"] {
  --nav-accent: #ffcf84;
}
html[data-theme]
  #app
  .tareo-sidebar
  #staffTabs
  button.staff-tab[data-tab="destajo"] {
  --nav-accent: #9fe0ad;
}
html[data-theme]
  #app
  .tareo-sidebar
  #staffTabs
  button.staff-tab[data-tab="dt"] {
  --nav-accent: #c6aff2;
}
html[data-theme]
  #app
  .tareo-sidebar
  #staffTabs
  button.staff-tab[data-tab="renunciaron"] {
  --nav-accent: #f7b0bc;
}
html[data-theme]
  #app
  .tareo-sidebar
  #staffTabs
  button.staff-tab[data-tab="area_validations"] {
  --nav-accent: #88dbba;
}
html[data-theme] #app .tareo-sidebar #staffTabs button.staff-tab.active {
  background: linear-gradient(115deg, #2678d7, #215ab0) !important;
  border-color: #7fb7f1 !important;
  color: #fff !important;
  box-shadow:
    inset 4px 0 #a9e6ff,
    0 5px 12px #00132c33 !important;
}
html[data-theme]
  #app
  .tareo-sidebar
  #staffTabs
  button.staff-tab.active
  .side-nav-icon {
  background: #ffffff24 !important;
  border-color: #ffffff35 !important;
  color: #fff !important;
}
html[data-theme]
  #app
  .tareo-sidebar
  #staffTabs
  button.staff-tab
  > span:not(.side-nav-icon) {
  min-width: 26px;
  margin-left: auto !important;
  padding: 4px 6px !important;
  border-radius: 8px !important;
  background: #102b47 !important;
  border-color: #6083a555 !important;
  color: #c5ddf3 !important;
  font-size: 10px !important;
}
html[data-theme]
  #app
  .tareo-sidebar
  #staffTabs
  button.staff-tab.active
  > span:not(.side-nav-icon) {
  background: #fff !important;
  color: #245b9a !important;
  border-color: #fff !important;
}
html[data-theme] #app .tareo-sidebar #staffTabs button.staff-tab[hidden] {
  display: none !important;
}
html[data-theme] #app .tareo-sidebar #staffTabs button.staff-tab:focus-visible {
  outline: 3px solid #a6d8ff !important;
  outline-offset: 2px;
}
html[data-theme] #app .tareo-sidebar #staffTabs #addWorker {
  background: #2e4680 !important;
  border-color: #758bc566 !important;
  color: #f5f6ff !important;
  min-height: 48px !important;
  justify-content: center;
  font-size: 12px !important;
}
html[data-theme] #app .tareo-sidebar #staffTabs .staff-actions {
  gap: 9px !important;
  margin-top: 18px !important;
  padding-top: 18px !important;
}
html[data-theme] #app .tareo-sidebar .sidebar-footer {
  margin-top: 24px;
  background: #122d49 !important;
  border-color: #4a6a8944 !important;
}
html[data-theme] #app .tareo-sidebar .sidebar-footer small {
  color: #9bbbd9 !important;
}
@media (hover: hover) {
  html[data-theme]
    #app
    .tareo-sidebar
    #staffTabs
    button.staff-tab:hover:not(.active) {
    background: linear-gradient(120deg, #2b5075, #224564) !important;
    border-color: #81a8cc99 !important;
  }
}
@media (max-width: 1000px) {
  html[data-theme] #app .tareo-sidebar {
    width: min(300px, 88vw);
    padding: 22px 16px;
  }
  html[data-theme] #app .tareo-sidebar #staffTabs button.staff-tab {
    min-height: 60px !important;
    font-size: 14px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme] #app .tareo-sidebar #staffTabs button.staff-tab {
    transition: none !important;
  }
}

html[data-theme] #app .sidebar-account {
  position: relative;
  width: 100%;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid #6389ac44;
}
html[data-theme] #app .sidebar-account #accountToggle {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 50px;
  padding: 11px 13px !important;
  border-radius: 13px !important;
  background: #213f60 !important;
  color: #e8f3ff !important;
  border: 1px solid #5b7f9f77 !important;
  font:
    650 13px/1.3 system-ui,
    sans-serif;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-align: left;
}
html[data-theme] #app .sidebar-account #accountToggle svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  color: #acd2f3;
}
html[data-theme] #app .sidebar-account #accountToggle .account-chevron {
  margin-left: auto;
  color: #b5d6f1;
}
html[data-theme] #app .sidebar-account #accountToggle[aria-expanded="true"] {
  background: #2a5681 !important;
  border-color: #7aa6ca !important;
}
html[data-theme] #app #tareoSidebar #accountMenu {
  position: static;
  inset: auto;
  transform: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 9px 0 0;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 13px;
  background: #102f4d !important;
  color: #deefff !important;
  border: 1px solid #466b8d !important;
  box-shadow: none !important;
}
html[data-theme] #app #tareoSidebar #accountMenu[hidden] {
  display: none !important;
}
html[data-theme] #app #tareoSidebar #accountName {
  display: block;
  color: #f0f7ff !important;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
html[data-theme] #app #tareoSidebar #accountRole {
  display: block;
  color: #a8c6df !important;
  font-size: 11px;
  line-height: 1.5;
  margin: 5px 0 12px;
  overflow-wrap: anywhere;
}
html[data-theme] #app #tareoSidebar #accountMenu button {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px !important;
  margin-top: 6px;
  border-radius: 9px !important;
  background: #1e4466 !important;
  color: #e4f1fe !important;
  border: 1px solid #4a70915c !important;
  font:
    600 12px/1.4 system-ui,
    sans-serif;
  text-align: left;
  box-shadow: none !important;
  white-space: normal;
}
html[data-theme] #app #tareoSidebar #accountMenu button[hidden] {
  display: none !important;
}
html[data-theme] #app #tareoSidebar #accountMenu #logout {
  background: #573448 !important;
  color: #ffe2e9 !important;
  border-color: #8d5a6d88 !important;
}
html[data-theme] #app .sidebar-account :is(button):focus-visible {
  outline: 2px solid #b3e0ff !important;
  outline-offset: 2px;
}
html[data-theme] #app .tareo-sidebar .sidebar-footer {
  margin-top: 20px;
}

html[data-theme] #app #assistantLauncher {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0 !important;
  background: linear-gradient(135deg, #317de0, #6459ce) !important;
  border: 1px solid #8bb3ef !important;
  border-radius: 13px !important;
  color: #fff !important;
  box-shadow: 0 3px 10px #11275025 !important;
  cursor: pointer;
}
#assistantLauncher svg {
  width: 24px;
  height: 24px;
}
#assistantLauncher::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #92e9c6;
  border: 2px solid #365fc0;
}
#assistantLauncher:focus-visible {
  outline: 3px solid #9ad6ff !important;
  outline-offset: 3px;
}
#assistantDrawer[hidden],
#assistantDrawerShade[hidden] {
  display: none !important;
}
html[data-theme] #app #assistantDrawer {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1500;
  width: min(430px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #46759c;
  border-radius: 20px;
  background: #0b2945;
  color: #dfedfa;
  box-shadow: 0 12px 50px #00132855;
  overflow: hidden;
}
#assistantDrawer .assistant-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 17px 18px;
  border-bottom: 1px solid #5a7e9d55;
}
#assistantDrawer .assistant-drawer-head strong {
  font:
    700 16px/1.3 system-ui,
    sans-serif;
  color: inherit;
}
#assistantDrawer .assistant-drawer-head small {
  display: block;
  margin-top: 5px;
  font:
    400 11px/1.4 system-ui,
    sans-serif;
  color: #adc8df;
}
html[data-theme] #app #closeAssistantDrawer {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  border: 1px solid #6486a177 !important;
  border-radius: 10px !important;
  background: #1b405e !important;
  color: #e2f2ff !important;
  padding: 0 !important;
  font-size: 23px;
  box-shadow: none !important;
  cursor: pointer;
}
#assistantDrawer .assistant-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 13px;
  scrollbar-width: thin;
}
html[data-theme] #app #assistantDrawer .assistant-live {
  margin: 0 0 10px !important;
  padding: 12px !important;
  flex-wrap: wrap;
  gap: 9px !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
#assistantDrawer .assistant-live-copy {
  flex: 1;
  min-width: 0;
}
html[data-theme] #app #assistantDrawer .assistant-heading > strong {
  font-size: 12px !important;
}
html[data-theme] #app #assistantDrawer #assistantLiveMessage {
  font-size: 12px !important;
  line-height: 1.5 !important;
}
html[data-theme] #app #assistantDrawer .assistant-pulse {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 10px;
}
#assistantDrawer .assistant-actions {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
#assistantDrawer #assistantAskToggle {
  display: none !important;
}
html[data-theme] #app #assistantDrawer .assistant-actions button {
  min-height: 40px !important;
}
html[data-theme] #app #assistantDrawer .assistant-insights {
  margin-bottom: 10px !important;
}
html[data-theme] #app #assistantDrawer .assistant-ask {
  margin: 0 !important;
  padding: 12px !important;
  border-radius: 13px !important;
}
#assistantDrawer .assistant-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
html[data-theme] #app #assistantDrawer .assistant-quick button {
  min-height: 40px !important;
  white-space: normal !important;
  line-height: 1.35;
}
#assistantDrawer .assistant-chat-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch !important;
  gap: 10px !important;
}
#assistantDrawer .assistant-chat-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px !important;
}
html[data-theme] #app #assistantDrawer .assistant-chat-toolbar button {
  min-height: 37px !important;
  font-size: 10px !important;
  flex: 1 1 auto;
}
#assistantDrawer .assistant-chat-log {
  max-height: none;
  min-height: 0;
}
html[data-theme] #app #assistantDrawer #assistantAskInput {
  font-size: 16px !important;
  min-width: 0;
  min-height: 44px !important;
}
html[data-theme] #app #assistantDrawer #assistantSend {
  min-height: 44px !important;
  padding: 9px 12px !important;
  min-width: 65px;
}
#assistantDrawerShade {
  position: fixed;
  inset: 0;
  z-index: 1499;
  border: 0;
  background: #06162988;
}
html[data-theme="light"] #app #assistantDrawer {
  background: #f5f9ff;
  color: #1d4465;
  border-color: #b8d0e7;
  box-shadow: 0 12px 40px #16375633;
}
html[data-theme="light"] #app #assistantDrawer .assistant-drawer-head {
  background: #fff;
  border-color: #c8d9ea;
}
html[data-theme="light"] #app #assistantDrawer .assistant-drawer-head small {
  color: #59768f;
}
html[data-theme="light"] #app #closeAssistantDrawer {
  background: #e9f1fc !important;
  color: #285c8c !important;
  border-color: #b7cfe5 !important;
}
@media (min-width: 701px) {
  #assistantDrawerShade {
    display: none !important;
  }
}
@media (max-width: 700px) {
  html[data-theme] #app #assistantDrawer {
    inset: max(8px, env(safe-area-inset-top)) 8px
      max(8px, env(safe-area-inset-bottom));
    width: auto;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 17px;
  }
  #assistantDrawer .assistant-drawer-body {
    padding: 10px;
  }
  #assistantDrawer .assistant-drawer-head {
    padding: 13px 14px;
  }
}
@media (pointer: coarse) {
  html[data-theme] #app #assistantDrawer {
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
}

/* Identidad de Packing Assistant; el logo original se comparte entre los iconos. */
html[data-theme] #app #assistantLauncher {
  background: #f4f8ff !important;
  border: 1px solid #86b3ed !important;
  box-shadow: 0 3px 10px #061a3826 !important;
  padding: 5px !important;
  color: #164da3 !important;
}
html[data-theme] #app #assistantLauncher .packing-assistant-mark {
  display: block;
  width: 33px !important;
  height: 33px !important;
  max-width: none;
  pointer-events: none;
}
#app .assistant-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
#app .assistant-drawer-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  background: #f4f8ff;
  border: 1px solid #9abbe6;
  border-radius: 13px;
  padding: 4px;
  box-sizing: border-box;
}
#app .assistant-drawer-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}
html[data-theme] #app #assistantDrawer .assistant-pulse {
  background: #f4f8ff !important;
  border: 1px solid #9abbe6 !important;
  padding: 3px;
  box-sizing: border-box;
  box-shadow: none !important;
  animation: none !important;
}
#app .assistant-pulse .packing-assistant-mark {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@media (max-width: 480px) {
  #app .assistant-drawer-brand {
    gap: 8px;
  }
  #app .assistant-drawer-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 11px;
  }
  html[data-theme] #app #assistantLauncher .packing-assistant-mark {
    width: 30px !important;
    height: 30px !important;
  }
}

/* Ajustes de tamaño y coste visual; no modifica eventos ni datos. */
@media (pointer: coarse) {
  #app :is(.person-row, .hr-line-card, .hr-roster-person) {
    transition: none !important;
    animation: none !important;
  }
  #app :is(.person-row, .hr-roster-person):active {
    transform: none !important;
  }
}
@media (max-width: 1000px) {
  #app :is(.hrx, .vd-card, .dz-panel, .hr-roster-person) {
    min-width: 0;
    box-sizing: border-box;
  }
  .overlay .sheet {
    scroll-padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .overlay :is(input, select, textarea, button) {
    scroll-margin-block: 24px;
  }
}
@media (max-width: 600px) {
  #app :is(.person-name, .hr-roster-person strong) {
    overflow-wrap: anywhere;
  }
  #app :is(.hrx-actions, .hr-toolbar, .vd-controls) button {
    min-height: 44px;
    white-space: normal;
  }
  #app :is(.hrx-table-wrap, .vd-table-wrap) {
    max-width: 100%;
    overflow-x: auto;
  }
  .overlay .sheet-actions {
    flex-wrap: wrap;
  }
  .overlay .sheet-actions .btn {
    flex: 1 1 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #app :is(.person-row, .hr-line-card, .hr-roster-person) {
    animation: none !important;
    transition: none !important;
  }
}

/* El menú lateral no es la barra de pestañas móvil: no debe pegarse ni encogerse. */
html[data-theme] #app #tareoSidebar {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
html[data-theme] #app #tareoSidebar > * {
  flex-shrink: 0;
}
html[data-theme] #app #tareoSidebar #staffTabs {
  position: static !important;
  inset: auto !important;
  flex: 0 0 auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0;
  align-items: stretch !important;
  justify-content: flex-start !important;
  align-self: stretch;
  overflow: visible !important;
  width: 100%;
  box-sizing: border-box;
}
html[data-theme] #app #tareoSidebar #staffTabs > .staff-tab,
html[data-theme] #app #tareoSidebar #staffTabs > .staff-actions {
  flex: 0 0 auto !important;
  align-self: stretch !important;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}
html[data-theme] #app #tareoSidebar .sidebar-account {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 auto !important;
  align-self: stretch;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
html[data-theme] #app #tareoSidebar #accountMenu {
  position: static !important;
  inset: auto !important;
  transform: none !important;
}
@media (max-width: 1000px) {
  html[data-theme] #app #tareoSidebar {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    padding-top: max(18px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    scroll-padding-bottom: 24px;
  }
  html[data-theme] #app #tareoSidebar #accountToggle {
    min-height: 48px;
    touch-action: manipulation;
  }
}

/* Menú táctil uniforme: no hereda el diseño de pestañas de iOS. */
@media (max-width: 1000px) {
  html[data-theme] #app #tareoSidebar {
    width: min(320px, 88vw) !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  html[data-theme] #app #tareoSidebar .sidebar-brand {
    padding-bottom: 20px !important;
  }
  html[data-theme] #app #tareoSidebar .sidebar-label {
    padding: 0 4px 12px !important;
  }
  html[data-theme] #app #tareoSidebar #staffTabs {
    align-items: stretch !important;
    gap: 8px !important;
  }
  html[data-theme] #app #tareoSidebar #staffTabs button.staff-tab {
    display: flex !important;
    flex: 0 0 auto !important;
    align-self: stretch !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    text-align: left !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    border-radius: 12px !important;
    box-sizing: border-box;
    gap: 10px !important;
  }
  html[data-theme]
    #app
    #tareoSidebar
    #staffTabs
    button.staff-tab
    .side-nav-icon {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
    border-radius: 9px !important;
  }
  html[data-theme]
    #app
    #tareoSidebar
    #staffTabs
    button.staff-tab
    .side-nav-icon
    svg {
    width: 20px !important;
    height: 20px !important;
  }
  html[data-theme] #app #tareoSidebar #staffTabs .staff-actions {
    margin-top: 8px !important;
    padding-top: 14px !important;
    align-items: stretch !important;
  }
  html[data-theme] #app #tareoSidebar #staffTabs #addWorker {
    justify-content: center !important;
  }
  html[data-theme] #app #tareoSidebar .sidebar-account {
    margin-top: 16px !important;
    padding-top: 14px !important;
  }
  html[data-theme] #app #tareoSidebar .sidebar-footer {
    margin-top: 16px !important;
    padding: 12px !important;
  }
}
html[data-theme] #app #tareoSidebar #staffTabs button.staff-tab[hidden] {
  display: none !important;
}

/* Solo celulares: botones con ancho uniforme, alineados al borde derecho del menú. */
@media (max-width: 600px) {
  html[data-theme] #app #tareoSidebar #staffTabs {
    align-items: flex-end !important;
  }
  html[data-theme] #app #tareoSidebar #staffTabs > button.staff-tab,
  html[data-theme] #app #tareoSidebar #staffTabs > .staff-actions {
    width: calc(100% - 20px) !important;
    align-self: flex-end !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
  html[data-theme] #app #tareoSidebar #staffTabs > .staff-actions {
    align-items: stretch !important;
  }
  html[data-theme]
    #app
    #tareoSidebar
    #staffTabs
    > .staff-actions
    button.staff-tab {
    width: 100% !important;
  }
  html[data-theme] #app #tareoSidebar .sidebar-account {
    width: calc(100% - 20px) !important;
    align-self: flex-end !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}

#app .gh-panel[hidden],
#app .gh-panel [hidden] {
  display: none !important;
}
#app .gh-panel {
  max-width: 1280px;
  margin: 16px auto 32px;
  color: var(--text, #e5f2ff);
  min-width: 0;
}
.gh-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.gh-heading h2 {
  font-size: 26px;
  margin: 5px 0 8px;
}
.gh-heading h3,
.gh-card h3 {
  margin: 0 0 12px;
}
.gh-heading p {
  margin: 0;
  line-height: 1.6;
}
.gh-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #86bfed;
  font-weight: 700;
}
.gh-readonly {
  padding: 8px 12px;
  border-radius: 20px;
  background: #18483f;
  color: #a1e7ca;
  font-size: 11px;
}
.gh-card {
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: #0e2b47;
  border: 1px solid #355b7b;
  min-width: 0;
  box-sizing: border-box;
}
.gh-note {
  font-size: 12px;
  line-height: 1.65;
  color: #abc4db;
  margin: 12px 0;
}
.gh-upload {
  display: block;
  padding: 18px;
  border: 1px dashed #7199bc;
  border-radius: 12px;
  background: #133653;
  line-height: 1.7;
}
.gh-upload input {
  display: block;
  width: 100%;
  margin-top: 12px;
  max-width: 100%;
  box-sizing: border-box;
}
.gh-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 14px;
  margin: 18px 0;
}
.gh-panel label {
  font-size: 12px;
  font-weight: 650;
  display: block;
  min-width: 0;
}
.gh-panel :is(select, input:not([type="checkbox"])) {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  margin-top: 7px;
  border-radius: 10px;
  padding: 10px;
  background: #09223b;
  color: #e7f4ff;
  border: 1px solid #547795;
  font: inherit;
}
.gh-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  margin: 16px 0;
}
.gh-check input {
  flex: none;
  width: 18px;
  height: 18px;
}
.gh-panel .btn {
  min-height: 44px;
  white-space: normal;
  max-width: 100%;
  margin-bottom: 5px;
}
.gh-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.gh-stat {
  border: 1px solid #365b7c;
  border-radius: 12px;
  padding: 12px;
  background: #12324e;
}
.gh-stat strong {
  display: block;
  font-size: 24px;
  margin: 6px 0;
}
.gh-stat span {
  font-size: 11px;
}
.gh-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.gh-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  min-width: 820px;
}
.gh-table :is(th, td) {
  padding: 12px 10px;
  border-bottom: 1px solid #355573;
  vertical-align: top;
  text-align: left;
  line-height: 1.5;
}
.gh-table th {
  background: #173d5e;
  color: #d7eafe;
}
.gh-table small {
  display: block;
  color: #adc8de;
}
.gh-badge {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 7px;
  background: #533e28;
  color: #ffe0a4;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
.gh-badge.ok {
  background: #164d40;
  color: #a1ebc8;
}
.gh-panel details {
  margin-top: 18px;
}
.gh-panel summary {
  cursor: pointer;
  padding: 12px 0;
}
.gh-panel #ghMessage {
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.gh-panel #ghDownload {
  text-decoration: none;
  display: inline-flex;
}
html[data-theme="light"] #app .gh-panel {
  color: #193b58;
}
html[data-theme="light"] .gh-card {
  background: #fff;
  border-color: #bfd3e5;
}
html[data-theme="light"] :is(.gh-upload, .gh-stat) {
  background: #edf5fc;
  color: #193b58;
  border-color: #bbd1e5;
}
html[data-theme="light"] .gh-panel :is(select, input:not([type="checkbox"])) {
  background: #f8fbff;
  color: #193b58;
  border-color: #9ebedb;
}
html[data-theme="light"] .gh-note,
html[data-theme="light"] .gh-table small {
  color: #4c6f8e;
}
html[data-theme="light"] .gh-table th {
  background: #e1eefb;
  color: #224e73;
}
html[data-theme="light"] .gh-table :is(th, td) {
  border-color: #d0dfec;
}
@media (max-width: 600px) {
  .gh-card {
    padding: 14px;
    border-radius: 14px;
  }
  .gh-heading h2 {
    font-size: 23px;
  }
  .gh-fields {
    grid-template-columns: 1fr;
  }
  .gh-panel :is(select, input:not([type="checkbox"])) {
    font-size: 16px !important;
  }
  .gh-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gh-heading .btn {
    width: 100%;
  }
  .gh-upload {
    padding: 13px;
  }
  .gh-table {
    min-width: 780px;
  }
}

.ag-import-schema {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
.ag-import-schema > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 5px 10px;
  padding: 15px;
  background: #123650;
  border: 1px solid #416988;
  border-radius: 13px;
  min-width: 0;
}
.ag-column-letter {
  grid-row: 1/3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #2d6195;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.ag-import-schema strong {
  font-size: 12px;
  line-height: 1.5;
}
.ag-import-schema small {
  font-size: 11px;
  color: #b1cbe0;
  line-height: 1.5;
}
.ag-source-tag {
  padding: 8px 12px;
  background: #183f62;
  color: #b8dcfa;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 750;
}
.ag-import-options {
  border: 1px solid #406785;
  border-radius: 12px;
  padding: 0 14px;
  background: #102e49;
}
.ag-import-options summary {
  font-size: 13px;
  font-weight: 650;
}
.ag-import-options select:disabled {
  opacity: 1;
  color: #9ec2de;
  background: #10283d;
  border-style: dashed;
  cursor: default;
}
.ag-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.ag-export-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #3b607e;
}
.ag-export-rules > span {
  flex: 1 1 270px;
  font-size: 12px;
  line-height: 1.7;
  color: #b9d1e6;
}
.ag-export-rules strong {
  display: block;
  color: #ebf6ff;
  font-size: 11px;
}
.ag-import-card > .gh-heading .gh-note {
  margin: 0;
}
.ag-import-card #ghMessage {
  padding: 0;
  margin-bottom: 0;
}
html[data-theme="light"] .ag-import-schema > div,
html[data-theme="light"] .ag-import-options {
  background: #f0f6fc;
  border-color: #bcd1e5;
}
html[data-theme="light"] .ag-import-schema small,
html[data-theme="light"] .ag-export-rules > span {
  color: #476984;
}
html[data-theme="light"] .ag-export-rules strong {
  color: #1b466a;
}
html[data-theme="light"] .ag-import-options select:disabled {
  background: #eaf2fa;
  color: #436b8a;
}
html[data-theme="light"] .ag-source-tag {
  background: #deecfa;
  color: #275d8c;
}
@media (max-width: 700px) {
  .ag-import-schema {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ag-import-schema > div {
    padding: 12px;
  }
  .ag-import-actions .btn {
    flex: 1 1 140px;
  }
  .ag-export-rules {
    gap: 10px;
  }
  .ag-source-tag {
    font-size: 10px;
  }
}

/* V133: reduce pintura decorativa en pantallas táctiles sin cambiar controles. */
@media (pointer: coarse) {
  #loginScreen.reference-login::before,
  #loginScreen.reference-login::after,
  #loginScreen .alza-packing-login::before,
  #loginScreen .alza-packing-login-brand::before,
  #loginScreen .alza-login-orbit {
    animation: none !important;
    will-change: auto !important;
  }
  #app :is(.person-row, .hr-line-card, .hr-roster-person) {
    will-change: auto !important;
  }
}
html.lite-mode #loginScreen.reference-login::before,
html.lite-mode #loginScreen.reference-login::after,
html.lite-mode #loginScreen .alza-packing-login::before,
html.lite-mode #loginScreen .alza-packing-login-brand::before {
  animation: none !important;
  will-change: auto !important;
}

#equipmentPanel[hidden],
#equipmentNav[hidden] {
  display: none !important;
}
#equipmentPanel {
  color: var(--text, #e2efff);
  padding: 20px 0;
  min-width: 0;
}
#equipmentPanel h2 {
  margin: 0 0 8px;
}
#equipmentPanel p {
  color: var(--muted, #9db6d0);
}
#equipmentPanel .eq-heading,
#equipmentModal .eq-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
#equipmentPanel .eq-actions,
#equipmentModal .eq-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#equipmentPanel button,
#equipmentModal button {
  min-height: 44px;
  width: auto;
  flex: none;
  font: inherit;
  cursor: pointer;
  border-radius: 12px;
  padding: 10px 14px;
  background: #145a92;
  color: #edf5ff;
  border: 1px solid #497aa0;
}
#equipmentPanel .eq-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
#equipmentPanel .eq-tabs .selected {
  background: #6550aa;
  border-color: #b8a2ef;
  color: white;
}
#equipmentPanel .cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
#equipmentPanel .card,
#equipmentPanel .panel {
  padding: 18px;
  border: 1px solid #355a7a;
  border-radius: 16px;
  background: var(--panel, #0b2843);
}
#equipmentPanel .metric {
  font-size: 28px;
  font-weight: 750;
  margin-top: 8px;
}
#equipmentPanel .filters {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  margin: 20px 0;
}
#equipmentPanel .search {
  flex: 1;
  min-width: 200px;
}
#equipmentPanel label,
#equipmentModal label {
  display: grid;
  gap: 7px;
  font-weight: 600;
}
#equipmentPanel input,
#equipmentModal :is(input, select, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font: inherit;
  font-size: 16px;
  border: 1px solid #4c7394;
  border-radius: 10px;
  background: var(--input-bg, #102d48);
  color: inherit;
  padding: 10px;
}
#equipmentPanel .tablewrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
#equipmentPanel table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
#equipmentPanel th,
#equipmentPanel td {
  padding: 13px 10px;
  border-bottom: 1px solid #42658255;
  vertical-align: top;
  overflow-wrap: anywhere;
}
#equipmentPanel .eq-status {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 8px;
  background: #2f5681;
  color: white;
}
#equipmentPanel .eq-overdue {
  color: #ffbb70;
}
#equipmentModal {
  width: min(680px, calc(100% - 28px));
  box-sizing: border-box;
  max-height: 90vh;
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid #527d9e;
  border-radius: 20px;
  background: var(--panel, #0b2843);
  color: var(--text, #e2efff);
  padding: 24px;
}
#equipmentModal::backdrop {
  background: #04111fcc;
}
#equipmentModal .eq-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
#equipmentModal .wide {
  grid-column: 1/-1;
}
#equipmentModal #inv-error {
  color: #ffb6b6;
}
#equipmentModal button:disabled {
  opacity: 0.5;
  cursor: wait;
}
html[data-theme="light"] #equipmentPanel :is(.card, .panel),
html[data-theme="light"] #equipmentModal {
  background: #fff;
  color: #173955;
}
html[data-theme="light"] #equipmentPanel input,
html[data-theme="light"] #equipmentModal :is(input, select, textarea) {
  background: #f4f8ff;
  color: #173955;
}
html[data-theme="light"] #equipmentPanel p {
  color: #506b81;
}
@media (max-width: 700px) {
  #equipmentPanel .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #equipmentModal .eq-form-fields {
    grid-template-columns: 1fr;
  }
  #equipmentPanel .eq-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  #equipmentPanel .eq-tabs button {
    width: 100%;
  }
  #equipmentPanel .panel {
    padding: 12px;
  }
  #equipmentModal {
    padding: 18px;
  }
  #equipmentPanel .eq-actions {
    width: 100%;
  }
}

#eq-assignment-fields[hidden] {
  display: none !important;
}
#equipmentModal .eq-handover {
  margin: 0;
  padding: 16px;
  border: 1px solid #557a9e;
  border-radius: 14px;
  min-width: 0;
}
#equipmentModal .eq-handover legend {
  padding: 0 8px;
  font-weight: 700;
}
#equipmentModal .eq-signature {
  display: grid;
  gap: 10px;
}
#equipmentModal .eq-signature p,
#equipmentModal .eq-signature small {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
#equipmentModal #eq-signature-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/1;
  min-height: 150px;
  background: white;
  border: 2px dashed #809bb5;
  border-radius: 12px;
  touch-action: none;
  cursor: crosshair;
}
#equipmentModal .eq-proof img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  background: white;
  border-radius: 12px;
  border: 1px solid #7796b3;
}
#equipmentModal .eq-proof dl {
  display: grid;
  gap: 5px;
  margin: 0 0 16px;
}
#equipmentModal .eq-proof dt {
  font-size: 12px;
  opacity: 0.75;
}
#equipmentModal .eq-proof dd {
  margin: 0 0 10px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  #equipmentModal .eq-handover {
    padding: 12px;
  }
  #equipmentModal #eq-signature-canvas {
    min-height: 160px;
  }
}

#equipmentModal .eq-scan-box {
  display: grid;
  gap: 16px;
}
#equipmentModal .eq-scan-box p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
#equipmentModal #eq-ocr-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 160px;
  overflow: auto;
  font-size: 13px;
}
#equipmentModal .eq-scan-box details {
  border-top: 1px solid #527596;
  padding-top: 12px;
}
#equipmentModal #eq-ocr-code {
  text-transform: uppercase;
}

#equipmentModal .eq-camera-preview {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid #527d9e;
  border-radius: 14px;
  background: #04111f;
}
#equipmentModal #eq-live-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #04111f;
}
#equipmentModal .eq-camera-guide {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 29%;
  height: 42%;
  border: 2px solid #60d6b3;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 0 300px #04111f55;
}
#equipmentModal .eq-camera-guide span {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 0;
  right: 0;
  text-align: center;
  color: #ecfff9;
  font-size: 12px;
  text-shadow: 0 1px 3px #000;
}

/* V141: cabecera sin solapamientos y acciones dentro del flujo de la página. */
#app .top-primary {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas: "brand session" "date date";
  gap: 18px 24px !important;
  align-items: center !important;
}
#app .top-primary > .title-row {
  grid-area: brand;
  min-width: 0;
  margin: 0 !important;
}
#app .top-primary > .session-bar {
  grid-area: session;
  position: static !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end;
  align-items: center;
  justify-self: end;
  gap: 8px !important;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
}
#app .top-primary > .date-row {
  grid-area: date;
  grid-row: auto !important;
  grid-column: auto !important;
  display: grid !important;
  grid-template-columns: 40px minmax(140px, 220px) 40px auto minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  justify-self: stretch;
  gap: 8px !important;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
}
#app .top-primary .date-row #day {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  height: 44px;
  box-sizing: border-box;
}
#app .top-primary .date-row :is(.nav, .today-btn) {
  min-height: 44px;
  margin: 0 !important;
  flex: none;
}
#app .top-primary .date-row #closingInfo {
  width: auto !important;
  text-align: right;
  min-width: 0;
  margin: 0 !important;
  overflow-wrap: anywhere;
}
#app .brand-lockup {
  min-width: 0;
  max-width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
}
#app .brand-lockup > div {
  min-width: 0;
}
#app .top-primary .brand-lockup h1 {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  color: #eff9ff !important;
  line-height: 1.25 !important;
  white-space: normal;
  overflow-wrap: anywhere;
}
html[data-theme="light"] #app .top-primary .brand-lockup h1 {
  color: #164c7d !important;
  -webkit-text-fill-color: #164c7d !important;
}
#app .session-identity {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
#app .session-identity strong {
  white-space: normal;
  overflow-wrap: anywhere;
}
#app .session-bar > button {
  flex: none !important;
  min-height: 44px;
}
#app #searchWrap {
  margin-top: 18px !important;
  margin-bottom: 22px !important;
}
#app #filters {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  overflow: visible !important;
  max-width: 100%;
  height: auto !important;
  max-height: none !important;
}
#app #filters > * {
  max-width: 100%;
  box-sizing: border-box;
}
#app .bottom-bar {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 24px 0 0 !important;
  padding: 0 0 max(12px, env(safe-area-inset-bottom)) !important;
  background: none !important;
  z-index: auto !important;
}
#app .bottom-bar-inner {
  position: static !important;
  display: flex;
  flex-wrap: wrap;
  gap: 10px !important;
  padding: 10px !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
}
#app .bottom-bar-inner > .btn {
  flex: 1 1 180px;
  min-width: 0 !important;
  min-height: 44px !important;
  white-space: normal !important;
  line-height: 1.35 !important;
  padding: 12px 14px !important;
}
@media (max-width: 700px) {
  #app .top-primary {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "brand" "session" "date";
    gap: 16px !important;
  }
  #app .top-primary > .session-bar {
    grid-row: auto !important;
    justify-self: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }
  #app .session-identity {
    flex: 1 1 160px !important;
  }
  #app .top-primary > .date-row {
    grid-template-columns: 36px minmax(0, 1fr) 36px auto !important;
  }
  #app .top-primary .date-row #closingInfo {
    grid-column: 1/-1 !important;
    text-align: left !important;
  }
  #app .top-primary .date-row #day {
    font-size: 16px !important;
  }
  #app .bottom-bar-inner > .btn {
    flex: 1 1 120px;
    font-size: 11px !important;
  }
  #app .control-heading {
    display: block !important;
  }
  #app .control-scope {
    display: block !important;
    max-width: 100%;
    text-align: left !important;
    margin-top: 8px;
  }
}
/* Columnas flexibles: el menú lateral también consume ancho en laptops. */
@media (min-width: 901px) {
  #app .roster-columns,
  #app .person-row {
    grid-template-columns:
      minmax(0, 2.6fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.6fr) minmax(
        0,
        0.8fr
      )
      20px !important;
    column-gap: 12px !important;
  }
  #app .person-row {
    padding-inline: 18px !important;
  }
  #app .person-row > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  #app .person-row :is(.person-dni, .person-area, .person-labor) {
    overflow-wrap: anywhere;
  }
  #app .person-status {
    padding-inline: 0 !important;
  }
}
#app .top-primary > .session-bar {
  grid-row: 1 !important;
  grid-column: 2 !important;
}
#app .top-primary > .date-row {
  grid-row: 2 !important;
  grid-column: 1/-1 !important;
}
@media (max-width: 700px) {
  #app .top-primary > .session-bar {
    grid-row: 2 !important;
    grid-column: 1 !important;
  }
  #app .top-primary > .date-row {
    grid-row: 3 !important;
    grid-column: 1 !important;
  }
}
/* Ya no se necesita reservar espacio para una barra fija sobre el padrón. */
#app .list {
  padding-bottom: 20px !important;
}

#equipmentModal .eq-signature {
  margin-top: 18px;
  gap: 10px;
  min-width: 0;
}
#equipmentModal .eq-signature-intro {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
}
#equipmentModal .eq-signature canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/1;
  min-height: 150px;
  background: #fff;
  border: 2px dashed #809bb5;
  border-radius: 12px;
  touch-action: none;
  cursor: crosshair;
  box-sizing: border-box;
}
#equipmentModal .eq-signature button {
  align-self: start;
  font-size: 13px;
  min-height: 44px;
}
#equipmentModal .eq-proof-signature {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid #7796b355;
}
#equipmentModal .eq-proof-signature h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
#equipmentModal .eq-proof-signature p {
  font-size: 14px;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  #equipmentModal .eq-signature canvas {
    min-height: 160px;
  }
  #equipmentModal .eq-signature button {
    width: 100%;
  }
}

/* Datos a la izquierda y dos firmas ordenadas a la derecha. */
#equipmentModal[data-layout="delivery"] {
  width: min(1120px, calc(100vw - 40px));
  max-height: 92vh;
  max-height: 92dvh;
  padding: 0;
  scrollbar-gutter: stable;
}
#equipmentModal[data-layout="delivery"] #equipmentForm > .eq-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 18px 22px;
  background: var(--panel, #0b2843);
  border-bottom: 1px solid #527d9e55;
}
#equipmentModal[data-layout="delivery"] #equipmentForm > .eq-heading h2 {
  font-size: 21px;
  margin: 0;
  line-height: 1.3;
}
#equipmentModal[data-layout="delivery"] #equipmentForm > .eq-form-fields {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.95fr);
  align-items: start;
  gap: 22px;
  margin: 0;
  padding: 20px 22px;
}
#equipmentModal .eq-equipment-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}
#equipmentModal .eq-equipment-details .eq-handover {
  padding: 14px;
}
#equipmentModal .eq-equipment-details .eq-handover > .eq-form-fields {
  margin: 0;
  gap: 12px;
}
#equipmentModal .eq-equipment-details label:has(#iv-responsible) {
  grid-column: 1/-1;
}
#equipmentModal .eq-signatures-column {
  display: grid;
  gap: 14px;
  min-width: 0;
  position: sticky;
  top: 90px;
}
#equipmentModal .eq-signatures-column[hidden] {
  display: none !important;
}
#equipmentModal .eq-signatures-column .eq-signature-intro {
  margin: 0;
  font-size: 12px;
  color: inherit;
  line-height: 1.5;
}
#equipmentModal .eq-signatures-column .eq-signature {
  margin: 0;
  padding: 14px;
  gap: 10px;
  border: 1px solid #527d9e77;
  border-radius: 14px;
  background: #102e49;
}
#equipmentModal .eq-signatures-column .eq-signature label {
  font-size: 14px;
  line-height: 1.4;
}
#equipmentModal .eq-signatures-column .eq-signature p,
#equipmentModal .eq-signatures-column .eq-signature small {
  font-size: 11px;
  line-height: 1.5;
}
#equipmentModal .eq-signatures-column .eq-signature canvas {
  min-height: 128px;
  max-height: none;
  aspect-ratio: 3/1;
  border-radius: 10px;
}
#equipmentModal .eq-signatures-column .eq-signature button {
  font-size: 12px;
  min-height: 40px;
  padding: 8px 12px;
  width: 100%;
  border-radius: 9px;
}
#equipmentModal[data-layout="delivery"] #equipmentForm > .eq-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 14px 22px;
  margin: 0;
  background: var(--panel, #0b2843);
  border-top: 1px solid #527d9e55;
  justify-content: flex-end;
}
#equipmentModal[data-layout="delivery"] #inv-error:not([hidden]) {
  margin: 0;
  padding: 12px 22px;
}
#equipmentModal[data-layout="delivery"]:not(.eq-is-assignment) {
  width: min(720px, calc(100vw - 40px));
}
#equipmentModal[data-layout="delivery"]:not(.eq-is-assignment)
  #equipmentForm
  > .eq-form-fields {
  grid-template-columns: minmax(0, 1fr);
}
html[data-theme="light"]
  #equipmentModal[data-layout="delivery"]
  #equipmentForm
  > :is(.eq-heading, .eq-actions) {
  background: #fff;
}
html[data-theme="light"] #equipmentModal .eq-signatures-column .eq-signature {
  background: #f3f7fc;
  border-color: #b8cee2;
}
@media (max-width: 760px) {
  #equipmentModal[data-layout="delivery"],
  #equipmentModal[data-layout="delivery"]:not(.eq-is-assignment) {
    width: calc(100vw - 20px);
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: 16px;
  }
  #equipmentModal[data-layout="delivery"] #equipmentForm > .eq-form-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
  }
  #equipmentModal[data-layout="delivery"] #equipmentForm > .eq-heading {
    padding: 14px 16px;
    gap: 10px;
  }
  #equipmentModal[data-layout="delivery"] #equipmentForm > .eq-heading h2 {
    font-size: 18px;
  }
  #equipmentModal .eq-equipment-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  #equipmentModal .eq-signatures-column {
    position: static;
  }
  #equipmentModal .eq-signatures-column .eq-signature canvas {
    min-height: 160px;
  }
  #equipmentModal[data-layout="delivery"] #equipmentForm > .eq-actions {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }
  #equipmentModal[data-layout="delivery"] #equipmentForm > .eq-actions button {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    font-size: 13px;
    min-height: 44px;
  }
}
#equipmentModal[data-layout="delivery"] {
  scroll-padding-block: 100px 100px;
}
#equipmentModal[data-layout="delivery"] canvas {
  scroll-margin-block: 100px 100px;
}

/* V145: dashboard por áreas, detalle ligero y avisos */
#validationDashboard {
  --da-surface: rgba(18, 51, 79, 0.62);
  --da-border: rgba(129, 176, 211, 0.22);
}
#validationDashboard .vd-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
#validationDashboard .vd-metric {
  padding: 18px;
  border: 1px solid var(--da-border);
  border-radius: 18px;
  background: var(--da-surface);
  min-width: 0;
}
#validationDashboard .vd-metric strong {
  font-size: 30px;
  display: block;
  margin-top: 7px;
  color: #70d2ff;
}
#validationDashboard .vd-metric[data-metric="1"] strong {
  color: #ffb99c;
}
#validationDashboard .vd-metric[data-metric="3"] strong {
  color: #67ddbe;
}
#validationDashboard .vd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: start;
}
#validationDashboard .vd-card {
  border-radius: 20px;
  padding: 22px;
  min-width: 0;
  border: 1px solid var(--da-border);
}
#validationDashboard .da-subtitle {
  font-size: 13px;
  opacity: 0.75;
  margin: 6px 0 18px;
}
#validationDashboard .vd-bars {
  display: block;
}
#validationDashboard .da-area {
  border-bottom: 1px solid var(--da-border);
  padding: 12px 0;
}
#validationDashboard .da-area:last-child {
  border-bottom: 0;
}
#validationDashboard .da-area summary {
  display: block;
  cursor: pointer;
  list-style: none;
  padding: 5px 0;
}
#validationDashboard .da-area summary::-webkit-details-marker {
  display: none;
}
#validationDashboard .da-area-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
#validationDashboard .da-area-top strong {
  flex: 1;
  min-width: 0;
  font-size: 15px;
}
#validationDashboard .da-area-top b {
  color: var(--area-color);
  font-size: 23px;
  white-space: nowrap;
}
#validationDashboard .da-area-top b small {
  font-size: 11px;
  font-weight: 500;
  color: inherit;
}
#validationDashboard .da-chevron {
  font-size: 22px;
  transition: transform 0.15s;
}
#validationDashboard details[open] .da-chevron {
  transform: rotate(180deg);
}
#validationDashboard .da-track {
  height: 8px;
  border-radius: 10px;
  background: rgba(120, 159, 191, 0.12);
  overflow: hidden;
  margin-bottom: 8px;
}
#validationDashboard .da-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--area-color);
}
#validationDashboard .da-area summary > small {
  font-size: 12px;
  opacity: 0.7;
}
#validationDashboard .da-functions {
  padding: 10px 0 0 12px;
  border-left: 2px solid var(--area-color);
  margin: 12px 0 6px;
}
#validationDashboard .da-functions button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  margin: 4px 0;
  background: var(--da-surface);
  border: 1px solid var(--da-border);
  border-radius: 10px;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
#validationDashboard .da-functions button span:first-child {
  flex: 1;
  font-size: 13px;
}
#validationDashboard .da-functions button b {
  color: var(--area-color);
}
#validationDashboard .da-alerts {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 16px 0;
  margin: 0 0 8px;
  flex-wrap: wrap;
}
#validationDashboard .da-alerts > div {
  flex: 1;
  min-width: 190px;
  align-self: center;
}
#validationDashboard .da-alerts small {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 5px;
}
#validationDashboard .da-alerts button {
  border: 1px solid var(--da-border);
  border-radius: 14px;
  background: var(--da-surface);
  color: inherit;
  padding: 12px 16px;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
#validationDashboard .da-alerts button b {
  color: #ffca79;
  margin-right: 5px;
}
#validationDashboard .da-alerts button span {
  display: block;
  font-size: 11px;
  margin-top: 6px;
  opacity: 0.7;
}
#validationDashboard .da-alerts button:disabled {
  opacity: 0.55;
  cursor: default;
}
#validationDashboard .da-people {
  margin: 18px 0;
  scroll-margin-top: 90px;
}
#validationDashboard .da-people[hidden] {
  display: none;
}
#validationDashboard .da-people-head {
  display: flex;
  align-items: start;
  gap: 12px;
  justify-content: space-between;
}
#validationDashboard .da-people-head small {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 6px;
}
#validationDashboard .da-people-head button {
  flex-shrink: 0;
}
#validationDashboard .da-people ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  max-height: 430px;
  overflow: auto;
}
#validationDashboard .da-people li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--da-border);
}
#validationDashboard .da-people li strong {
  font-size: 14px;
}
#validationDashboard .da-people li small {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 5px;
}
#validationDashboard .da-people li > span {
  text-align: right;
  font-size: 13px;
  max-width: 45%;
}
#validationDashboard .vd-table-wrap {
  max-width: 100%;
  overflow: auto;
}
html[data-theme="light"] #validationDashboard,
body.light-mode #validationDashboard {
  --da-surface: rgba(225, 237, 249, 0.8);
  --da-border: rgba(39, 79, 121, 0.2);
}
@media (max-width: 800px) {
  #validationDashboard .vd-grid {
    grid-template-columns: 1fr;
  }
  #validationDashboard .vd-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #validationDashboard .vd-card {
    padding: 16px;
  }
  #validationDashboard .da-alerts button {
    flex: 1;
  }
  #validationDashboard .da-people li {
    display: block;
  }
  #validationDashboard .da-people li > span {
    display: block;
    text-align: left;
    max-width: none;
    margin-top: 7px;
  }
}
@media (max-width: 420px) {
  #validationDashboard .vd-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  #validationDashboard .vd-metric {
    padding: 13px;
  }
  #validationDashboard .da-area-top b small {
    display: none;
  }
  #validationDashboard .da-alerts > div {
    flex-basis: 100%;
  }
  #validationDashboard .da-alerts button {
    font-size: 12px;
    padding: 11px;
  }
}

/* V146: firmas juntas debajo de los datos de entrega. */
#equipmentModal[data-layout="delivery"].eq-is-assignment
  #equipmentForm
  > .eq-form-fields {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
#equipmentModal[data-layout="delivery"] .eq-signatures-column {
  position: static;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  grid-column: 1/-1;
}
#equipmentModal[data-layout="delivery"] .eq-signature-intro {
  grid-column: 1/-1;
}
#equipmentModal[data-layout="delivery"] .eq-signatures-column .eq-signature {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-self: stretch;
  padding: 16px;
}
#equipmentModal[data-layout="delivery"]
  .eq-signatures-column
  .eq-signature
  label {
  min-height: 40px;
  display: flex;
  align-items: center;
  margin: 0;
}
#equipmentModal[data-layout="delivery"] .eq-signatures-column .eq-signature p {
  order: 4;
  margin: 4px 0 0;
}
#equipmentModal[data-layout="delivery"]
  .eq-signatures-column
  .eq-signature
  canvas {
  display: block;
  width: 100%;
  height: 170px;
  min-height: 170px;
  aspect-ratio: auto;
  touch-action: none;
}
#equipmentModal[data-layout="delivery"]
  .eq-signatures-column
  .eq-signature
  small {
  order: 5;
}
@media (max-width: 600px) {
  #equipmentModal[data-layout="delivery"] .eq-signatures-column {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  #equipmentModal[data-layout="delivery"] .eq-signatures-column .eq-signature {
    padding: 12px;
  }
  #equipmentModal[data-layout="delivery"]
    .eq-signatures-column
    .eq-signature
    label {
    min-height: 0;
    margin-bottom: 5px;
  }
}

/* V147: selectores del dashboard. Mantienen el selector nativo accesible. */
#validationDashboard .dashboard-filter-top label:has(> select) {
  gap: 8px;
}
#validationDashboard .dashboard-filter-top select.input {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  height: 48px;
  border: 1px solid #5d8bab75 !important;
  border-radius: 13px;
  padding: 0 42px 0 14px;
  color: #e8f4ff;
  background-color: #102e49 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Crect x='.5' y='.5' width='27' height='27' rx='8' fill='%231c4262' stroke='%235a83a0' stroke-opacity='.5'/%3E%3Cpath d='m10 12 4 4 4-4' fill='none' stroke='%2399d6ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 9px center !important;
  background-size: 28px 28px !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow:
    inset 0 1px 0 #b7dfff0c,
    0 3px 9px #020d191f;
  outline: none;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}
#validationDashboard .dashboard-filter-top select.input:hover {
  border-color: #79bbeb !important;
  background-color: #153750 !important;
}
#validationDashboard .dashboard-filter-top select.input:focus-visible {
  border-color: #82caff !important;
  outline: none !important;
  box-shadow: 0 0 0 3px #59baff24 !important;
}
#validationDashboard .dashboard-filter-top select.input option {
  background: #102e49;
  color: #e8f4ff;
  font-weight: 500;
}
html[data-theme="light"]
  #validationDashboard
  .dashboard-filter-top
  select.input {
  background-color: #f5f9ff !important;
  color: #183e61 !important;
  border-color: #b3cce0 !important;
  box-shadow: 0 2px 6px #1e4d7710;
}
html[data-theme="light"]
  #validationDashboard
  .dashboard-filter-top
  select.input:hover {
  background-color: #edf5ff !important;
  border-color: #5e9ed0 !important;
}
html[data-theme="light"]
  #validationDashboard
  .dashboard-filter-top
  select.input:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px #3386d323 !important;
  border-color: #3185ca !important;
}
html[data-theme="light"]
  #validationDashboard
  .dashboard-filter-top
  select.input
  option {
  background: #f5f9ff;
  color: #183e61;
}
@media (pointer: coarse) {
  #validationDashboard .dashboard-filter-top select.input {
    height: 50px;
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #validationDashboard .dashboard-filter-top select.input {
    transition: none;
  }
}

/* V148: contraste y jerarquía del dashboard en modo claro. */
html[data-theme="light"] #app #validationDashboard {
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
  color: #204566 !important;
  --da-surface: #f0f6fd;
  --da-border: #cbddea;
}
html[data-theme="light"] #app #validationDashboard .dashboard-heading {
  padding: 22px 24px;
  background: linear-gradient(110deg, #e6f0fc, #f7faff) !important;
  border: 1px solid #c4d9ef;
  border-radius: 18px;
  margin: 18px 0;
  color: #234d76 !important;
}
html[data-theme="light"] #app #validationDashboard .dashboard-heading h2 {
  color: #194d80 !important;
  margin-top: 7px;
}
html[data-theme="light"] #app #validationDashboard .dashboard-heading small {
  color: #376e9b !important;
  font-weight: 700;
}
html[data-theme="light"] #app #validationDashboard .dashboard-heading p {
  color: #456680 !important;
}
html[data-theme="light"] #app #validationDashboard .dashboard-filter-shell {
  overflow: hidden;
  background: #fff !important;
  box-shadow: 0 4px 16px #21496909 !important;
  border: 1px solid #c5d8e9 !important;
}
html[data-theme="light"] #app #validationDashboard .dashboard-filter-top {
  background: #f2f7fd !important;
}
html[data-theme="light"] #app #validationDashboard .vd-area-filter {
  background: #fff !important;
}
html[data-theme="light"] #app #validationDashboard .vd-area-heading,
html[data-theme="light"] #app #validationDashboard #dashboardAreaSummary {
  color: #456a8c !important;
}
html[data-theme="light"] #app #validationDashboard .dashboard-build {
  background: transparent !important;
  box-shadow: none !important;
  color: #607e97 !important;
}
html[data-theme="light"] #app #validationDashboard .vd-metrics {
  background: transparent !important;
  box-shadow: none !important;
}
html[data-theme="light"] #app #validationDashboard .vd-metric {
  background: #fff !important;
  border-color: #c7dceb !important;
  box-shadow: 0 3px 12px #173b5a08 !important;
  border-top: 3px solid #3d83bb !important;
}
html[data-theme="light"] #app #validationDashboard .vd-metric small {
  color: #4b6c89 !important;
  opacity: 1;
}
html[data-theme="light"] #app #validationDashboard .vd-metric strong {
  color: #205d94 !important;
}
html[data-theme="light"] #app #validationDashboard .vd-metric[data-metric="1"] {
  border-top-color: #c6714d !important;
}
html[data-theme="light"]
  #app
  #validationDashboard
  .vd-metric[data-metric="1"]
  strong {
  color: #a04627 !important;
}
html[data-theme="light"] #app #validationDashboard .vd-metric[data-metric="3"] {
  border-top-color: #258363 !important;
}
html[data-theme="light"]
  #app
  #validationDashboard
  .vd-metric[data-metric="3"]
  strong {
  color: #176c50 !important;
}
html[data-theme="light"] #app #validationDashboard .vd-card {
  background: #fff !important;
  border-color: #c7dbea !important;
  box-shadow: 0 4px 16px #21496909 !important;
}
html[data-theme="light"] #app #validationDashboard .vd-card h3 {
  color: #214f78 !important;
}
html[data-theme="light"]
  #app
  #validationDashboard
  :is(
    .da-subtitle,
    .da-area summary > small,
    .da-people-head small,
    .da-people li small,
    .da-alerts small
  ) {
  color: #4e6e88 !important;
  opacity: 1;
}
html[data-theme="light"] #app #validationDashboard .da-area-top strong {
  color: #244b6e !important;
}
html[data-theme="light"]
  #app
  #validationDashboard
  :is(.da-area-top b, .da-functions button b) {
  color: #245d91 !important;
}
html[data-theme="light"] #app #validationDashboard .da-chevron {
  color: #3a739e;
}
html[data-theme="light"] #app #validationDashboard .da-track {
  background: #e5edf5;
}
html[data-theme="light"] #app #validationDashboard .da-alerts {
  color: #254f72;
}
html[data-theme="light"] #app #validationDashboard .da-alerts button b {
  color: #87560e !important;
}
html[data-theme="light"] #app #validationDashboard .da-alerts button span {
  color: #486d8c !important;
  opacity: 1;
}
html[data-theme="light"]
  #app
  #validationDashboard
  :is(.vd-ok, #dashboardValidationStatus[data-state="ok"]) {
  color: #146b4d !important;
}
html[data-theme="light"]
  #app
  #validationDashboard
  :is(.vd-issue, #dashboardValidationStatus[data-state="issue"]) {
  color: #a82d46 !important;
}
html[data-theme="light"] #app #validationDashboard #dashboardPie {
  color: #234d70 !important;
  text-shadow: none;
}
html[data-theme="light"] #app #validationDashboard #dashboardDinnerLegend {
  color: #355c7b !important;
}
html[data-theme="light"]
  #app
  #validationDashboard
  :is(.da-functions button, .da-alerts button):focus-visible {
  outline: 2px solid #297ebd !important;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  html[data-theme="light"] #app #validationDashboard .dashboard-heading {
    padding: 18px 16px;
    margin-top: 12px;
  }
}
html[data-theme="light"] #app #validationDashboard #dashboardPie {
  background:
    radial-gradient(circle at center, #fff 0 45%, transparent 46%),
    conic-gradient(#199eb5 0 var(--dinner-pct), #d58b25 var(--dinner-pct) 100%) !important;
}

/* V149: estación de marcaciones, sin alterar eventos ni reglas de registro. */
#markPanel {
  --mk-surface: #102e49;
  --mk-soft: #0b243c;
  --mk-line: #50779955;
  --mk-muted: #afc9df;
  --mk-ink: #edf6ff;
  max-width: 1280px;
  color: var(--mk-ink);
}
#markPanel .mark-head {
  align-items: center;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--mk-line);
  border-radius: 22px;
  background: linear-gradient(125deg, #173e63, #102741);
  margin: 18px 0;
}
#markPanel .mark-head > div {
  min-width: 0;
}
#markPanel .mark-head small {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #87c4ed;
}
#markPanel .mark-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  margin: 10px 0;
  color: #edf6ff;
}
#markPanel .mark-head p {
  max-width: 680px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--mk-muted);
  margin: 0;
}
#markPanel .mark-online {
  font-size: 11px;
  white-space: normal;
  flex-shrink: 0;
  max-width: 220px;
  border-radius: 12px;
  padding: 11px 14px;
  background: #123e43;
  color: #a6e6d7;
  border: 1px solid #418f8b66;
  line-height: 1.45;
}
#markPanel .mark-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}
#markPanel .mark-metric {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--mk-line);
  border-radius: 16px;
  background: var(--mk-surface);
  box-shadow: none;
  min-width: 0;
  border-top: 3px solid #62b6ed;
}
#markPanel .mark-metric:nth-child(2) {
  border-top-color: #edb569;
}
#markPanel .mark-metric:nth-child(3) {
  border-top-color: #62c9a9;
}
#markPanel .mark-metric small {
  color: var(--mk-muted);
  font-size: 12px;
}
#markPanel .mark-metric strong {
  display: block;
  font-size: 32px;
  line-height: 1.2;
  color: var(--mk-ink);
  margin-top: 7px;
}
#markPanel .mark-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
}
#markPanel .mark-card {
  padding: 24px;
  border: 1px solid var(--mk-line);
  border-radius: 20px;
  background: var(--mk-surface);
  box-shadow: 0 8px 20px #04132612;
  min-width: 0;
  min-height: 0;
}
#markPanel .mark-card h3 {
  margin: 0 0 9px;
  font-size: 17px;
  color: var(--mk-ink);
  line-height: 1.4;
}
#markPanel .mark-card > p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--mk-muted);
  margin: 0 0 18px;
}
#markPanel .mk-station-title {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
#markPanel .mk-station-title h3 {
  margin: 0 0 3px;
}
#markPanel .mk-station-title small {
  color: var(--mk-muted);
  font-size: 12px;
}
#markPanel .mk-scan-symbol {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid #61b5ea55;
  border-radius: 15px;
  background: #19548055;
  color: #9edbff;
  flex-shrink: 0;
}
#markPanel .mk-scan-symbol svg {
  width: 26px;
  height: 26px;
}
#markPanel .mark-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
  background: var(--mk-soft);
  border: 1px solid var(--mk-line);
  border-radius: 16px;
  align-items: end;
  margin-top: 20px;
}
#markPanel .mark-form label {
  grid-column: 1/-1;
  display: grid;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  color: var(--mk-muted);
  letter-spacing: 0.04em;
}
#markPanel #markDni {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 62px;
  padding: 14px 16px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: 0.16em;
  border-radius: 12px;
  background: #0c2136;
  color: #f0f7ff;
  border: 1px solid #6085a4;
  box-shadow: none;
}
#markPanel #markDni::placeholder {
  color: #6c8aa6;
  opacity: 1;
}
#markPanel #markSubmit,
#markPanel #markScan {
  min-height: 46px;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  white-space: normal;
  width: auto;
  max-width: 100%;
  min-width: 0;
}
#markPanel #markSubmit {
  background: #286bc1;
  color: #fff;
  border: 1px solid #75aff0;
  box-shadow: none;
}
#markPanel #markScan {
  background: #183c5c;
  color: #c9e6ff;
  border: 1px solid #5882a5;
}
#markPanel .mark-identity {
  font-size: 12px;
  margin-top: 14px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--mk-muted);
  line-height: 1.6;
}
#markPanel .mark-feedback {
  margin-top: 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
  padding: 14px;
}
#markPanel .mark-step {
  padding: 14px;
  border: 1px solid var(--mk-line);
  background: var(--mk-soft);
  border-radius: 13px;
  gap: 12px;
}
#markPanel .mark-steps {
  gap: 10px;
  margin-top: 18px;
}
#markPanel .mark-step > b {
  width: 30px;
  height: 30px;
  min-width: 30px;
  font-size: 12px;
  border-radius: 10px;
  background: #215986;
  color: #d7efff;
}
#markPanel .mark-step strong {
  font-size: 13px;
  color: var(--mk-ink);
}
#markPanel .mark-step span {
  font-size: 12px;
  line-height: 1.55;
  color: var(--mk-muted);
}
#markPanel .mk-records-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: start;
}
#markPanel .mk-records-grid > .mark-card {
  margin: 0;
}
#markPanel .mark-list {
  max-height: 520px;
  overflow: auto;
  overscroll-behavior: contain;
}
#markPanel .mark-week-search {
  padding: 12px;
  border-radius: 12px;
  background: var(--mk-soft);
  border: 1px solid var(--mk-line);
  font-size: 11px;
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
#markPanel #markWeekSearch {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  font-size: 14px;
  min-height: 44px;
}
#markPanel .mark-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--mk-line);
  background: transparent;
  gap: 12px;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
}
#markPanel .mark-row > div:first-child {
  min-width: 0;
}
#markPanel .mark-row strong {
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#markPanel .mark-row small {
  font-size: 11px;
  line-height: 1.6;
  color: var(--mk-muted);
}
#markPanel .mark-times {
  grid-column: 1/-1;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--mk-soft);
  border-radius: 10px;
  font-size: 11px;
}
#markPanel .mark-manage-actions {
  grid-column: 1/-1;
  justify-content: flex-end;
}
#markPanel .mark-badge {
  font-size: 10px;
  line-height: 1.5;
  max-width: 180px;
  white-space: normal;
}
#markPanel .mark-empty {
  padding: 24px 10px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--mk-muted);
}
html[data-theme="light"] #app #markPanel {
  --mk-surface: #fff;
  --mk-soft: #f0f6fc;
  --mk-line: #c5daeb;
  --mk-muted: #4b6b86;
  --mk-ink: #234e73;
  background: transparent !important;
  color: var(--mk-ink) !important;
}
html[data-theme="light"] #app #markPanel .mark-head {
  background: linear-gradient(115deg, #e3effc, #f6faff) !important;
  border-color: #bdd5ed;
}
html[data-theme="light"] #app #markPanel .mark-head h2 {
  color: #194d80 !important;
}
html[data-theme="light"] #app #markPanel .mark-head small {
  color: #3b709a !important;
}
html[data-theme="light"] #app #markPanel .mark-card {
  background: #fff !important;
  border-color: #c5daeb !important;
}
html[data-theme="light"] #app #markPanel .mark-metric {
  background: #fff !important;
  border-color: #c5daeb !important;
}
html[data-theme="light"] #app #markPanel .mark-metric strong {
  color: #245e92 !important;
}
html[data-theme="light"] #app #markPanel .mark-metric:nth-child(2) {
  border-top-color: #ce923d !important;
}
html[data-theme="light"] #app #markPanel .mark-metric:nth-child(3) {
  border-top-color: #278565 !important;
}
html[data-theme="light"] #app #markPanel .mark-form {
  background: #f0f6fc !important;
}
html[data-theme="light"] #app #markPanel #markSubmit {
  background: #2364b2 !important;
  color: #fff !important;
  border-color: #2364b2 !important;
}
html[data-theme="light"] #app #markPanel .mk-scan-symbol {
  background: #e2effc;
  color: #28699c;
  border-color: #adcbe5;
}
html[data-theme="light"] #app #markPanel .mark-step > b {
  background: #d8eafa;
  color: #255d8a;
}
html[data-theme="light"]
  #app
  #markPanel
  :is(
    .mark-step strong,
    .mark-row strong,
    .mk-station-title small,
    .mark-head p,
    .mark-metric small,
    .mark-identity,
    .mark-empty,
    .mark-step span,
    .mark-row small
  ) {
  color: var(--mk-muted) !important;
}
html[data-theme="light"] #app #markPanel .mark-online {
  background: #e6f5ef !important;
  color: #20664e !important;
  border-color: #a5d2bd !important;
}
@media (max-width: 900px) {
  #markPanel .mark-grid,
  #markPanel .mk-records-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #markPanel .mark-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #markPanel .mark-step {
    display: block;
  }
  #markPanel .mark-step > b {
    display: grid;
    place-items: center;
    margin-bottom: 10px;
  }
  #markPanel .mark-head {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  #markPanel .mark-head {
    padding: 20px 16px;
    border-radius: 17px;
    gap: 14px;
  }
  #markPanel .mark-head h2 {
    font-size: 25px;
  }
  #markPanel .mark-card {
    padding: 18px 16px;
    border-radius: 17px;
  }
  #markPanel .mark-metrics {
    gap: 8px;
  }
  #markPanel .mark-metric {
    padding: 14px 10px;
    border-radius: 12px;
  }
  #markPanel .mark-metric small {
    font-size: 10px;
  }
  #markPanel .mark-metric strong {
    font-size: 27px;
  }
  #markPanel .mark-form {
    padding: 12px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }
  #markPanel #markDni {
    font-size: 24px;
    height: 58px;
  }
  #markPanel #markSubmit,
  #markPanel #markScan {
    font-size: 12px;
    padding: 10px 7px;
  }
  #markPanel .mark-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  #markPanel .mark-step {
    display: flex;
  }
  #markPanel .mark-step > b {
    margin: 0;
  }
  #markPanel .mark-row {
    grid-template-columns: minmax(0, 1fr);
  }
  #markPanel .mark-badge {
    justify-self: start;
  }
  #markPanel .mark-times {
    gap: 10px;
  }
  #markPanel #markWeekSearch {
    font-size: 16px;
  }
}

#validationDashboard select.ds-native {
  display: none !important;
}
#validationDashboard .dashboard-filter-top .ds-trigger {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 9px 10px 9px 14px;
  border: 1px solid #577d9e !important;
  border-radius: 13px;
  background: #102e49 !important;
  color: #e9f5ff !important;
  font: 600 13px var(--font-body, system-ui);
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}
#validationDashboard .ds-trigger-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#validationDashboard .ds-trigger-arrow {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #234a68;
  color: #a2dcff;
  font-size: 20px;
  line-height: 1;
}
#validationDashboard .ds-trigger[aria-expanded="true"] {
  border-color: #7cc8fb !important;
  box-shadow: 0 0 0 3px #51acdf23 !important;
}
#validationDashboard .ds-trigger[aria-expanded="true"] .ds-trigger-arrow {
  transform: rotate(180deg);
}
.ds-popover {
  position: fixed;
  z-index: 12000;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #102d48;
  color: #edf6ff;
  border: 1px solid #5c8db4;
  border-radius: 18px;
  box-shadow: 0 18px 50px #020e27a6;
  font:
    14px system-ui,
    -apple-system,
    sans-serif;
  isolation: isolate;
}
.ds-popover[hidden] {
  display: none !important;
}
.ds-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 9px;
  gap: 10px;
}
.ds-popover-head strong {
  font-size: 14px;
  font-weight: 650;
}
.ds-popover-head button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid #6f97b94d;
  background: #214460;
  color: #d9edff;
  font-size: 21px;
  cursor: pointer;
}
.ds-search {
  padding: 2px 12px 10px;
}
.ds-search[hidden] {
  display: none;
}
.ds-search input {
  box-sizing: border-box;
  width: 100%;
  min-height: 43px;
  border-radius: 11px;
  border: 1px solid #547b9a;
  background: #0a233b;
  color: #eef6ff;
  padding: 10px 12px;
  font: 14px system-ui;
}
.ds-search input::placeholder {
  color: #9cb7cf;
}
.ds-options {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 8px 8px;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #4e789b transparent;
  -webkit-overflow-scrolling: touch;
}
.ds-group {
  padding: 12px 10px 7px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #9cb9d0;
  font-weight: 700;
}
.ds-option {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 11px;
  margin: 3px 0;
  padding: 9px 10px;
  background: transparent;
  color: #d9eafa;
  font: 500 13px system-ui;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}
.ds-option > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ds-option-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #20445f;
  color: #90c5eb;
  font-size: 15px;
}
.ds-option[aria-selected="true"] {
  background: #235a8c;
  border-color: #6ea5d6;
  color: #fff;
}
.ds-option[aria-selected="true"] .ds-option-icon {
  background: #3b76a5;
  color: #fff;
}
.ds-option:hover,
.ds-option[data-highlighted="true"] {
  background: #214761;
  border-color: #6c9fc7;
}
.ds-check {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: #a8dafb;
}
.ds-foot {
  padding: 10px 16px;
  background: #0c263e;
  border-top: 1px solid #537f9b55;
  color: #a4bfd5;
  font-size: 10px;
}
.ds-empty {
  font-size: 13px;
  text-align: center;
  padding: 20px 12px;
  color: #b4cce0;
}
.ds-popover :is(button, input):focus-visible {
  outline: 2px solid #82cdff;
  outline-offset: -2px;
}
html[data-theme="light"] #app #validationDashboard .ds-trigger {
  background: #f8fbff !important;
  color: #214c73 !important;
  border-color: #b4cfe6 !important;
}
html[data-theme="light"] #validationDashboard .ds-trigger-arrow {
  background: #e1edfa;
  color: #3574a1;
}
html[data-theme="light"] .ds-popover {
  background: #fff;
  color: #234e70;
  border-color: #b5cfe5;
  box-shadow: 0 15px 45px #23496828;
}
html[data-theme="light"] .ds-popover-head button {
  background: #edf4fb;
  color: #426b8e;
  border-color: #c4d8e9;
}
html[data-theme="light"] .ds-search input {
  background: #f2f7fc;
  color: #264f70;
  border-color: #bfd3e5;
}
html[data-theme="light"] .ds-search input::placeholder {
  color: #587893;
}
html[data-theme="light"] .ds-group {
  color: #5d7d97;
}
html[data-theme="light"] .ds-option {
  color: #2c5577;
}
html[data-theme="light"] .ds-option-icon {
  background: #edf4fb;
  color: #4a7c9f;
}
html[data-theme="light"] .ds-option[aria-selected="true"] {
  background: #e4f0fd;
  color: #174e7c;
  border-color: #a2c5e8;
}
html[data-theme="light"] .ds-option[aria-selected="true"] .ds-option-icon {
  background: #2e72b7;
  color: #fff;
}
html[data-theme="light"] .ds-option:hover,
html[data-theme="light"] .ds-option[data-highlighted="true"] {
  background: #edf5fd;
  border-color: #a6c6e3;
}
html[data-theme="light"] .ds-check {
  color: #3376ac;
}
html[data-theme="light"] .ds-foot {
  background: #f3f7fc;
  color: #56748f;
  border-color: #d2e0ed;
}
@media (pointer: coarse) {
  #validationDashboard .dashboard-filter-top .ds-trigger {
    height: 50px;
    font-size: 15px;
  }
  .ds-option {
    min-height: 49px;
  }
  .ds-search input {
    font-size: 16px;
  }
  .ds-popover-head button {
    width: 36px;
    height: 36px;
  }
}

/* V151: revisión compacta del tareo. */
#validationDashboard #dashboardAlerts {
  display: grid;
  grid-template-columns: minmax(130px, 0.6fr) repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  padding: 0;
}
#validationDashboard #dashboardAlerts .dr-intro {
  min-width: 0;
}
#validationDashboard #dashboardAlerts .dr-intro > small {
  font-size: 9px;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: #90aec8;
  opacity: 1;
  margin: 0 0 5px;
}
#validationDashboard #dashboardAlerts .dr-intro > strong {
  font-size: 15px;
  line-height: 1.5;
}
#validationDashboard #dashboardAlerts .dr-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  min-height: 80px;
  padding: 15px;
  border: 1px solid #52779766;
  border-radius: 15px;
  background: #102d47;
  color: #e4f2ff;
  text-align: left;
  box-shadow: none;
  box-sizing: border-box;
  cursor: pointer;
}
#validationDashboard #dashboardAlerts .dr-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 23px;
  background: #584a2f;
  color: #ffd08d;
  opacity: 1;
  margin: 0;
}
#validationDashboard #dashboardAlerts .dr-copy {
  display: block;
  flex: 1;
  min-width: 0;
  margin: 0;
  opacity: 1;
}
#validationDashboard #dashboardAlerts .dr-copy > strong {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
  color: inherit;
}
#validationDashboard #dashboardAlerts .dr-copy > small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0;
  margin: 4px 0 0;
  color: #a4c2d9;
  opacity: 1;
}
#validationDashboard #dashboardAlerts .dr-count {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #244660;
  color: #eaf5ff;
  font-size: 18px;
  margin: 0;
}
#validationDashboard #dashboardAlerts .dr-arrow {
  display: block;
  font-size: 22px;
  color: #96bcd8;
  opacity: 1;
  margin: 0;
}
#validationDashboard #dashboardAlerts .dr-data .dr-icon {
  background: #184b43;
  color: #9cdebc;
  font-size: 18px;
}
#validationDashboard #dashboardAlerts .dr-check:disabled {
  opacity: 1;
  cursor: default;
  border-style: dashed;
  background: #102940;
}
#validationDashboard #dashboardAlerts .dr-check:disabled .dr-arrow {
  visibility: hidden;
}
#validationDashboard #dashboardAlerts .dr-check:not(:disabled):hover {
  border-color: #80b9e2;
  background: #173954;
}
#validationDashboard #dashboardAlerts .dr-check:focus-visible {
  outline: 2px solid #81cfff;
  outline-offset: 3px;
}
html[data-theme="light"] #app #validationDashboard #dashboardAlerts .dr-check {
  background: #fff !important;
  color: #295274 !important;
  border-color: #bfd4e7 !important;
}
html[data-theme="light"]
  #app
  #validationDashboard
  #dashboardAlerts
  .dr-copy
  > small {
  color: #54738f !important;
}
html[data-theme="light"]
  #app
  #validationDashboard
  #dashboardAlerts
  .dr-intro
  > small {
  color: #5a7c96 !important;
}
html[data-theme="light"]
  #app
  #validationDashboard
  #dashboardAlerts
  .dr-hours
  .dr-icon {
  background: #fff0d9;
  color: #94601b !important;
}
html[data-theme="light"]
  #app
  #validationDashboard
  #dashboardAlerts
  .dr-data
  .dr-icon {
  background: #e3f4ec;
  color: #236c4f !important;
}
html[data-theme="light"] #app #validationDashboard #dashboardAlerts .dr-count {
  background: #ecf3fa;
  color: #2e5d83 !important;
}
html[data-theme="light"]
  #app
  #validationDashboard
  #dashboardAlerts
  .dr-check:disabled {
  background: #f5f9fd !important;
}
@media (max-width: 1000px) {
  #validationDashboard #dashboardAlerts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #validationDashboard #dashboardAlerts .dr-intro {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  #validationDashboard #dashboardAlerts .dr-intro > small {
    margin: 0;
  }
  #validationDashboard #dashboardAlerts .dr-intro > strong {
    font-size: 13px;
  }
}
@media (max-width: 600px) {
  #validationDashboard #dashboardAlerts {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  #validationDashboard #dashboardAlerts .dr-check {
    min-height: 72px;
    padding: 12px;
  }
  #validationDashboard #dashboardAlerts .dr-copy > strong {
    font-size: 13px;
  }
}

/* V152: calendario con el mismo estilo de los menús del dashboard. */
#validationDashboard .dashboard-filter-top .dc-trigger {
  font-variant-numeric: tabular-nums;
}
#validationDashboard .dc-trigger[aria-expanded="true"] .ds-trigger-arrow {
  transform: none;
  background: #2b5c80;
}
.dc-calendar {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 4px;
}
.dc-calendar .ds-popover-head {
  flex-shrink: 0;
}
.dc-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 14px 10px;
  flex-shrink: 0;
}
.dc-month strong {
  font-size: 14px;
  text-transform: capitalize;
  text-align: center;
}
.dc-month button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #5e87a66b;
  background: #1a3c59;
  color: #c6e8ff;
  font-size: 23px;
  cursor: pointer;
}
.dc-week,
.dc-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  padding: 0 12px;
  flex-shrink: 0;
}
.dc-week {
  padding-top: 5px;
  padding-bottom: 7px;
  color: #9dbad0;
  font-size: 10px;
  text-align: center;
  font-weight: 600;
}
.dc-day {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 35px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #e5f1fc;
  font: 500 12px system-ui;
  cursor: pointer;
  box-sizing: border-box;
}
.dc-day.dc-outside {
  color: #758da4;
}
.dc-day[aria-current="date"] {
  border-color: #71a9d5;
  font-weight: 700;
}
.dc-day[aria-pressed="true"] {
  background: #397fbe;
  border-color: #9bd1ff;
  color: #fff;
  box-shadow: 0 2px 8px #020d221f;
}
.dc-day:hover,
.dc-day:focus-visible {
  background: #285573;
  outline: 2px solid #9dd6ff;
  outline-offset: -2px;
}
.dc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
  margin-top: 10px;
  border-top: 1px solid #527b9d66;
  gap: 10px;
  flex-shrink: 0;
}
.dc-footer small {
  font-size: 10px;
  color: #a8c3d9;
  font-variant-numeric: tabular-nums;
}
.dc-footer button {
  padding: 8px 12px;
  border: 1px solid #6295bc;
  border-radius: 9px;
  background: #1a4568;
  color: #d4ebff;
  font: 600 11px system-ui;
  cursor: pointer;
}
html[data-theme="light"] .dc-month button {
  background: #edf4fc;
  color: #31668f;
  border-color: #bed4e7;
}
html[data-theme="light"] .dc-week {
  color: #5d7a94;
}
html[data-theme="light"] .dc-day {
  color: #2d5374;
}
html[data-theme="light"] .dc-day.dc-outside {
  color: #889caf;
}
html[data-theme="light"] .dc-day[aria-pressed="true"] {
  background: #2e72b7;
  border-color: #2e72b7;
  color: #fff;
}
html[data-theme="light"] .dc-day:hover,
html[data-theme="light"] .dc-day:focus-visible {
  background: #dcecfb;
  outline-color: #3b80b4;
  color: #204d73;
}
html[data-theme="light"] .dc-footer {
  border-color: #cdddeb;
}
html[data-theme="light"] .dc-footer small {
  color: #50718c;
}
html[data-theme="light"] .dc-footer button {
  background: #eaf3fc;
  color: #2d699a;
  border-color: #b7d1e7;
}
@media (pointer: coarse) {
  .dc-day {
    min-height: 39px;
    font-size: 14px;
  }
  .dc-month button {
    height: 38px;
    width: 38px;
  }
}

/* V153: inventario empresarial. Selectores exclusivos del panel de equipos. */
#equipmentPanel {
  --eq-surface: #102d47;
  --eq-soft: #0c253d;
  --eq-line: #527a9a66;
  --eq-ink: #e9f4ff;
  --eq-muted: #a8c2d7;
  color: var(--eq-ink);
  padding-top: 20px;
}
#equipmentPanel > .eq-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 26px;
  border: 1px solid var(--eq-line);
  border-radius: 21px;
  background: linear-gradient(120deg, #173e62, #102840);
  margin-bottom: 20px;
}
#equipmentPanel > .eq-heading > div:first-child {
  flex: 1;
  min-width: 230px;
}
#equipmentPanel .eq-eyebrow {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: #8bc3e9;
  margin-bottom: 9px;
  line-height: 1.6;
}
#equipmentPanel > .eq-heading h2 {
  font-size: clamp(24px, 2.5vw, 31px);
  line-height: 1.2;
  margin: 0;
  color: var(--eq-ink);
}
#equipmentPanel > .eq-heading p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--eq-muted);
  margin: 10px 0 0;
}
#equipmentPanel .eq-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
#equipmentPanel :is(.eq-actions button, .eq-tabs button) {
  min-height: 42px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 11px;
  font: 600 12px system-ui;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
  cursor: pointer;
}
#equipmentPanel .eq-actions .btn-secondary {
  background: #163853;
  color: #d3e8fa;
  border: 1px solid #5b829e80;
}
#equipmentPanel #eq-new {
  background: #3478c7;
  color: #fff;
  border: 1px solid #8abbf2;
}
#equipmentPanel #eq-reload::before {
  content: "↻";
  font-size: 16px;
  margin-right: 7px;
}
#equipmentPanel #eq-export::before {
  content: "↓";
  font-size: 15px;
  margin-right: 7px;
}
#equipmentPanel .eq-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 6px;
  margin: 0 0 20px;
  border: 1px solid var(--eq-line);
  border-radius: 14px;
  background: var(--eq-soft);
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}
#equipmentPanel .eq-tabs button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--eq-muted);
  min-height: 39px;
}
#equipmentPanel .eq-tabs button.selected {
  background: #27577e;
  border-color: #6092bb;
  color: #fff;
}
#equipmentPanel .cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 0 0 20px;
}
#equipmentPanel .card {
  position: relative;
  min-width: 0;
  padding: 19px;
  border-radius: 16px;
  border: 1px solid var(--eq-line);
  border-top: 3px solid #6ab8eb;
  background: var(--eq-surface);
  box-shadow: none;
}
#equipmentPanel .card:nth-child(2) {
  border-top-color: #9e98ef;
}
#equipmentPanel .card:nth-child(3) {
  border-top-color: #e7b466;
}
#equipmentPanel .card:nth-child(4) {
  border-top-color: #d98695;
}
#equipmentPanel .card .label {
  font-size: 11px;
  line-height: 1.5;
  color: var(--eq-muted);
}
#equipmentPanel .card .metric {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--eq-ink);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
#equipmentPanel .filters {
  display: flex;
  align-items: end;
  gap: 20px;
  padding: 18px;
  background: var(--eq-soft);
  border: 1px solid var(--eq-line);
  border-radius: 16px;
  margin: 0 0 20px;
}
#equipmentPanel .filters .search {
  flex: 1;
  min-width: 0;
  max-width: 640px;
}
#equipmentPanel .search label {
  display: block;
  color: var(--eq-muted);
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 9px;
}
#equipmentPanel #eq-search {
  height: 46px;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 14px;
  background: #0c2135;
  color: var(--eq-ink);
  border: 1px solid #5e809c;
}
#equipmentPanel .filters > .muted {
  margin-left: auto;
  font-size: 11px;
  line-height: 1.6;
  color: var(--eq-muted);
  white-space: normal;
  padding-bottom: 10px;
}
#equipmentPanel > .panel {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--eq-surface);
  border: 1px solid var(--eq-line);
  box-shadow: none;
}
#equipmentPanel > .panel > h2 {
  font-size: 16px;
  margin: 0;
  padding: 20px 22px;
  color: var(--eq-ink);
  border-bottom: 1px solid var(--eq-line);
}
#equipmentPanel > .panel > p {
  padding: 12px 22px;
  margin: 0;
  font-size: 12px;
  color: var(--eq-muted);
  line-height: 1.6;
}
#equipmentPanel .tablewrap {
  overflow: auto;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #4d7597 transparent;
}
#equipmentPanel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
#equipmentPanel table thead th {
  padding: 14px 16px;
  background: #0b253e;
  color: #9fbed6;
  font-size: 9px;
  letter-spacing: 0.06em;
  font-weight: 700;
  border-bottom: 1px solid var(--eq-line);
  white-space: nowrap;
}
#equipmentPanel table tbody td {
  padding: 17px 16px;
  line-height: 1.8;
  color: #c5dcee;
  vertical-align: top;
  border-bottom: 1px solid var(--eq-line);
}
#equipmentPanel table tbody tr:last-child td {
  border-bottom: 0;
}
#equipmentPanel table tbody tr:hover {
  background: #2c5e7b14;
}
#equipmentPanel td b {
  color: var(--eq-ink);
  font-weight: 650;
}
#equipmentPanel td small {
  font-size: 10px;
  color: var(--eq-muted);
  line-height: 1.6;
}
#equipmentPanel .eq-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 650;
  background: #284662;
  color: #c2d8e9;
  border: 1px solid #52759266;
  white-space: normal;
}
#equipmentPanel .eq-status::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
#equipmentPanel .eq-status[data-state="Disponible"] {
  background: #17483e;
  color: #9fdcc5;
  border-color: #4c947d66;
}
#equipmentPanel .eq-status[data-state="Asignado"] {
  background: #244374;
  color: #bfd4ff;
  border-color: #6d93ca66;
}
#equipmentPanel .eq-status[data-state="Mantenimiento"] {
  background: #513f25;
  color: #f1d191;
  border-color: #aa895366;
}
#equipmentPanel .eq-status[data-state="Fuera de servicio"] {
  background: #532e39;
  color: #f3b4bf;
  border-color: #b2738266;
}
#equipmentPanel .tiny {
  font: 600 10px system-ui;
  min-height: 32px;
  margin: 3px 3px 3px 0;
  padding: 7px 9px;
  border-radius: 8px;
  white-space: normal;
  max-width: 100%;
  box-shadow: none;
}
#equipmentPanel [data-eq-state="Asignado"] {
  background: #2e689f;
  color: #fff;
  border: 1px solid #6da1ce;
}
#equipmentPanel .eq-empty-state {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 32px 18px;
  gap: 10px;
  text-align: center;
  max-width: 440px;
  margin: auto;
}
#equipmentPanel .eq-empty-symbol {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #1c4463;
  color: #86bce5;
  border: 1px solid #567f9e66;
}
#equipmentPanel .eq-empty-symbol svg {
  width: 30px;
  height: 30px;
}
#equipmentPanel .eq-empty-state strong {
  font-size: 14px;
  color: var(--eq-ink);
}
#equipmentPanel .eq-empty-state p {
  font-size: 12px;
  color: var(--eq-muted);
  line-height: 1.7;
  margin: 0;
}
#equipmentPanel :is(button, input):focus-visible {
  outline: 2px solid #81c6f7;
  outline-offset: 3px;
}
html[data-theme="light"] #app #equipmentPanel {
  --eq-surface: #fff;
  --eq-soft: #f1f6fc;
  --eq-line: #c7dbea;
  --eq-ink: #244e72;
  --eq-muted: #53728c;
}
html[data-theme="light"] #app #equipmentPanel > .eq-heading {
  background: linear-gradient(115deg, #e4effc, #f8fbff);
  border-color: #bfd6ec;
}
html[data-theme="light"] #app #equipmentPanel .eq-eyebrow {
  color: #4a769a;
}
html[data-theme="light"] #app #equipmentPanel .eq-tabs {
  background: #eaf2fb;
  border-color: #c1d6e9;
}
html[data-theme="light"] #app #equipmentPanel .eq-tabs button.selected {
  background: #2a69b1 !important;
  color: #fff !important;
  border-color: #2a69b1 !important;
}
html[data-theme="light"] #app #equipmentPanel #eq-new {
  background: #286ab5 !important;
  color: #fff !important;
  border-color: #286ab5 !important;
}
html[data-theme="light"] #app #equipmentPanel .filters {
  background: #f1f6fc;
}
html[data-theme="light"]
  #app
  #equipmentPanel
  :is(.metric, .eq-empty-state strong) {
  color: #245a89 !important;
}
html[data-theme="light"] #app #equipmentPanel .eq-empty-symbol {
  background: #e7f1fc;
  color: #5187b0;
  border-color: #bfd6e9;
}
html[data-theme="light"]
  #app
  #equipmentPanel
  .eq-status[data-state="Disponible"] {
  background: #e6f4ed;
  color: #266f53;
  border-color: #b8dcca;
}
html[data-theme="light"]
  #app
  #equipmentPanel
  .eq-status[data-state="Asignado"] {
  background: #e9f0fc;
  color: #3567a0;
  border-color: #bdd2ec;
}
html[data-theme="light"]
  #app
  #equipmentPanel
  .eq-status[data-state="Mantenimiento"] {
  background: #fff2dc;
  color: #895f1b;
  border-color: #e9d4ac;
}
html[data-theme="light"]
  #app
  #equipmentPanel
  .eq-status[data-state="Fuera de servicio"] {
  background: #fbe9ee;
  color: #9e425a;
  border-color: #e6bac7;
}
@media (max-width: 1050px) {
  #equipmentPanel > .eq-heading {
    align-items: start;
  }
  #equipmentPanel .eq-actions {
    justify-content: flex-start;
  }
  #equipmentPanel .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  #equipmentPanel > .eq-heading {
    padding: 20px 16px;
    gap: 18px;
  }
  #equipmentPanel > .eq-heading > div:first-child {
    min-width: 0;
    flex-basis: 100%;
  }
  #equipmentPanel .eq-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }
  #equipmentPanel .eq-actions button {
    padding: 10px 8px;
    font-size: 11px;
    width: 100%;
    min-height: 44px;
  }
  #equipmentPanel .eq-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  #equipmentPanel .eq-tabs button {
    font-size: 11px;
    padding: 9px 6px;
  }
  #equipmentPanel .cards {
    gap: 9px;
  }
  #equipmentPanel .card {
    padding: 15px;
  }
  #equipmentPanel .card .metric {
    font-size: 28px;
  }
  #equipmentPanel .filters {
    display: block;
    padding: 15px;
  }
  #equipmentPanel #eq-search {
    font-size: 16px;
  }
  #equipmentPanel .filters > .muted {
    display: block;
    margin-top: 10px;
    padding: 0;
  }
  #equipmentPanel .tablewrap {
    padding: 12px;
    overflow: visible;
  }
  #equipmentPanel table,
  #equipmentPanel table tbody {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }
  #equipmentPanel table thead {
    display: none;
  }
  #equipmentPanel table tbody {
    display: grid;
    gap: 12px;
  }
  #equipmentPanel table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    padding: 14px;
    border: 1px solid var(--eq-line);
    border-radius: 13px;
    background: var(--eq-soft) !important;
  }
  #equipmentPanel table td {
    display: block;
    padding: 9px 0 !important;
    min-width: 0;
    overflow-wrap: anywhere;
    border: 0 !important;
    font-size: 12px;
    color: var(--eq-ink);
  }
  #equipmentPanel table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 9px;
    letter-spacing: 0.03em;
    font-weight: 600;
    color: var(--eq-muted);
    margin-bottom: 5px;
  }
  #equipmentPanel table td:first-child,
  #equipmentPanel table td:last-child,
  #equipmentPanel table td[colspan] {
    grid-column: 1/-1;
  }
  #equipmentPanel table td:first-child {
    border-bottom: 1px solid var(--eq-line) !important;
    padding-bottom: 12px !important;
  }
  #equipmentPanel table td:last-child {
    border-top: 1px solid var(--eq-line) !important;
    padding-top: 12px !important;
    margin-top: 6px;
  }
  #equipmentPanel table td[colspan] {
    border: 0 !important;
  }
  #equipmentPanel > .panel > h2 {
    padding: 17px 16px;
  }
  #equipmentPanel .eq-empty-state {
    padding: 22px 8px;
  }
  #equipmentPanel .tiny {
    min-height: 39px;
    font-size: 11px;
  }
}
#equipmentPanel .eq-tabs button.selected {
  background: #2d6091 !important;
  color: #fff !important;
  border-color: #82b5df !important;
  box-shadow: inset 0 0 0 1px #96c6ee22 !important;
}
#equipmentPanel #eq-scan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
#equipmentPanel .eq-scan-icon {
  display: inline-flex;
  align-items: center;
}
#equipmentPanel :is(.eq-actions button, .eq-tabs button, .tiny) {
  text-transform: none !important;
}
#equipmentPanel td[data-label="ACCIONES"] > button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
}
@media (max-width: 650px) {
  #equipmentPanel td[data-label="ACCIONES"] {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  #equipmentPanel td[data-label="ACCIONES"]::before {
    flex-basis: 100%;
  }
  #equipmentPanel td[data-label="ACCIONES"] > button {
    margin: 0;
  }
}
