/* yaestaa.com - Professional Enterprise Light Theme & Cashier POS Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: #f8fafc;
  color: #0f172a;
  user-select: none;
}

.font-mono-nums {
  font-family: var(--font-mono);
}

/* Base Light Theme Cards */
.glass-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
}

.glass-card-hover:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.07);
}

/* Modern Navigation Pills */
.tab-btn-pill {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  color: #475569;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  user-select: none;
  cursor: pointer;
}

.tab-btn-pill:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.tab-btn-active {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.15), 0 2px 4px -2px rgba(15, 23, 42, 0.1) !important;
}

.tab-btn-active i,
.tab-btn-active svg {
  color: #38bdf8 !important;
}

.tab-btn-inactive {
  background-color: #ffffff;
  color: #475569;
  border-color: #e2e8f0;
}

/* Sticky Headers & Data Table Design System */
.sticky-table-header {
  position: sticky;
  top: 0;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 15;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.empty-state-box {
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.empty-state-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}


/* =================================================================== */
/* DROPDOWN MENUS (FUNCIONALES & ESTILIZADOS EN BLANCO CORPORATIVO)    */
/* =================================================================== */
.dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  z-index: 60;
  padding: 0.4rem;
  display: none;
  animation: fadeInDropdown 0.15s ease-out;
}

.dropdown-menu.dropdown-menu-right {
  left: auto;
  right: 0;
}

.dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
}

@keyframes fadeInDropdown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #334155;
  border-radius: 0.5rem;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  user-select: none;
}

.dropdown-item:hover {
  background-color: #f1f5f9;
  color: #2563eb;
}

.dropdown-item.active {
  background-color: #eff6ff;
  color: #2563eb;
  font-weight: 700;
}

/* =================================================================== */
/* AISLAMIENTO DE LA TAQUILLA POS (CONSERVA TEMA OSCURO DE ALTO CONTRASTE) */
/* =================================================================== */
#section-pos {
  background-color: #0b0f19;
  color: #f1f5f9;
  border-radius: 1.25rem;
  padding: 0.75rem;
  border: 1px solid #1e293b;
}

#modalPayout .glass-card,
#modalVoid .glass-card,
#modalCashierPosSettings .glass-card,
#modalPosOfficialResults .glass-card,
#modalCameraScanner .glass-card,
#section-pos .glass-card {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(51, 65, 85, 0.8);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  color: #f1f5f9;
}

#section-pos .text-white {
  color: #ffffff !important;
}

#section-pos .text-slate-400 {
  color: #94a3b8 !important;
}

#section-pos .text-slate-300 {
  color: #cbd5e1 !important;
}

#section-pos .bg-slate-950 {
  background-color: #020617 !important;
}

#section-pos .border-slate-800 {
  border-color: #1e293b !important;
}

/* Saddle Cloth Official Colors */
.saddle-1 { background-color: #dc2626; color: #ffffff; } /* Red */
.saddle-2 { background-color: #ffffff; color: #000000; border: 1px solid #cbd5e1; } /* White */
.saddle-3 { background-color: #2563eb; color: #ffffff; } /* Blue */
.saddle-4 { background-color: #eab308; color: #000000; } /* Yellow */
.saddle-5 { background-color: #16a34a; color: #ffffff; } /* Green */
.saddle-6 { background-color: #000000; color: #eab308; border: 1px solid #ca8a04; } /* Black / Gold */
.saddle-7 { background-color: #ea580c; color: #ffffff; } /* Orange */
.saddle-8 { background-color: #ec4899; color: #ffffff; } /* Pink */
.saddle-9 { background-color: #06b6d4; color: #000000; } /* Turquoise */

/* Touch Target Runner Button */
.runner-touch-btn {
  min-height: 56px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.runner-touch-btn:hover {
  border-color: rgba(16, 185, 129, 0.6);
  background-color: rgba(30, 41, 59, 0.8);
}

.runner-touch-btn.selected {
  border-color: #10b981 !important;
  background-color: rgba(6, 78, 59, 0.35) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Pantalla aislada estricta */
.hidden-screen {
  display: none !important;
}

/* Badges de Roles Jerárquicos en Tonos Claros Profesionales */
.badge-role-superadmin { background-color: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-role-tenant_operator { background-color: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.badge-role-admin { background-color: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-role-sub_admin { background-color: #cffafe; color: #0e7490; border: 1px solid #a5f3fc; }
.badge-role-agency { background-color: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.badge-role-cashier { background-color: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }
.badge-role-client { background-color: #ecfccb; color: #4d7c0f; border: 1px solid #d9f99d; }

/* Utilidad para renderizado offscreen sin parpadeo visual */
.offscreen-render {
  position: fixed !important;
  left: -99999px !important;
  top: -99999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -9999 !important;
  display: flex !important;
}

/* Reglas Oficiales de Impresión Térmica POS */
@media print {
  @page {
    margin: 0 !important;
    size: auto;
  }
  html, body {
    background-color: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  /* Poda radical del DOM para ultra-velocidad en terminales lentos:
     display:none descarta instantáneamente el árbol de layout de miles de nodos */
  body > *:not(#modalReceipt):not(#reportPrintContainer):not(#printRoot) {
    display: none !important;
    visibility: hidden !important;
  }

  /* Impresión directa del ticket térmico (ahorro máximo de papel y layout natural) */
  body.is-printing-ticket #modalReceipt,
  body:not(.is-printing-ticket) #modalReceipt:not(.hidden),
  #reportPrintContainer:not(.hidden) {
    visibility: visible !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    display: block !important;
  }
  #receiptPrintActions,
  #receiptTemplateBar,
  .receipt-template-bar,
  body.is-printing-ticket #modalReceipt .hidden,
  body:not(.is-printing-ticket) #modalReceipt.hidden,
  #reportPrintContainer.hidden {
    display: none !important;
    visibility: hidden !important;
  }
  #modalReceipt > div {
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0.5mm 1mm !important;
    margin: 0 auto !important;
    line-height: 1.15 !important;
  }
  #modalReceipt.paper-58mm > div,
  body.is-printing-58mm #modalReceipt > div,
  #modalReceipt:not(.paper-80mm) > div {
    max-width: 48mm !important;
    font-size: 9.5pt !important;
  }
  #modalReceipt.paper-80mm > div,
  body.is-printing-80mm #modalReceipt > div {
    max-width: 72mm !important;
    font-size: 11pt !important;
  }
  /* Estilos de alta legibilidad y ahorro de papel térmico (Negro Puro 100% Cero Tramado) */
  #modalReceipt, #modalReceipt *:not(#receiptQrContainer):not(#receiptQrContainer *) {
    color: #000000 !important;
    text-shadow: none !important;
    background-color: transparent !important;
  }
  #receiptQrContainer {
    background-color: #ffffff !important;
  }
  .receipt-total-large {
    font-size: 13pt !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    color: #000000 !important;
    white-space: nowrap !important;
  }
  .receipt-payout-large {
    font-size: 12pt !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.01em !important;
    color: #000000 !important;
    white-space: nowrap !important;
  }
  #modalReceipt.paper-58mm .receipt-total-large,
  body.is-printing-58mm .receipt-total-large,
  #modalReceipt:not(.paper-80mm) .receipt-total-large {
    font-size: 11pt !important;
    white-space: nowrap !important;
  }
  #modalReceipt.paper-58mm .receipt-payout-large,
  body.is-printing-58mm .receipt-payout-large,
  #modalReceipt:not(.paper-80mm) .receipt-payout-large {
    font-size: 10pt !important;
    white-space: nowrap !important;
  }
  /* REGLAS ESPECÍFICAS DE PLANTILLAS EN IMPRESIÓN */
  .receipt-template-eco #modalReceipt > div,
  body.is-template-eco #modalReceipt > div {
    padding: 0.1mm 0.3mm !important;
    line-height: 1.05 !important;
  }
  .receipt-template-eco #receiptQrContainer,
  body.is-template-eco #receiptQrContainer {
    min-height: 38px !important;
    min-width: 38px !important;
  }
  .receipt-template-eco #receiptQrContainer svg,
  body.is-template-eco #receiptQrContainer svg {
    max-height: 38px !important;
    max-width: 38px !important;
  }
  .receipt-code-highlight {
    font-size: 12pt !important;
    font-weight: 900 !important;
    letter-spacing: 0.03em !important;
    color: #000000 !important;
  }
  .receipt-pick-large {
    font-size: 11pt !important;
    font-weight: 800 !important;
    color: #000000 !important;
    line-height: 1.2 !important;
  }
  .receipt-pick-number {
    font-size: 14pt !important;
    font-weight: 900 !important;
    color: #000000 !important;
  }
  .receipt-runner-name {
    font-size: 11pt !important;
    font-weight: 800 !important;
    color: #000000 !important;
  }
  #modalReceipt p, #modalReceipt div {
    margin-top: 0 !important;
    margin-bottom: 0.3mm !important;
  }
  #modalReceipt hr, #modalReceipt .border-dashed, #modalReceipt .border-dotted, #modalReceipt .border-b, #modalReceipt .border-t, #modalReceipt .border {
    border-color: #000000 !important;
  }
  #receiptPrintActions,
  #modalReceipt .hidden {
    display: none !important;
    visibility: hidden !important;
  }

  /* Impresión Oficial de Reportes y Liquidaciones Operativas */
  #reportPrintContainer:not(.hidden) {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 10mm !important;
    margin: 0 !important;
    display: block !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  }
  #reportPrintContainer table {
    width: 100% !important;
    border-collapse: collapse !important;
  }
  #reportPrintContainer th, #reportPrintContainer td {
    border: 1px solid #cbd5e1 !important;
    padding: 6px 8px !important;
    font-size: 10pt !important;
  }
  #reportPrintContainer th {
    background-color: #f1f5f9 !important;
    font-weight: bold !important;
  }
}

/* =================================================================== */
/* UTILIDADES RESPONSIVAS & TÁCTILES MÓVILES (WCAG & MOBILE FIRST)     */
/* =================================================================== */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Suavizado de scroll táctil en iOS y Android */
.touch-momentum {
  -webkit-overflow-scrolling: touch;
}

/* Botoneras táctiles con área de toque ergonómica mínima (44px) */
.touch-target {
  min-height: 44px;
  min-width: 44px;
}

/* Transiciones fluidas para cajones deslizantes (Drawers) */
.mobile-drawer {
  will-change: transform;
}

/* =================================================================== */
/* GABINETE FÍSICO CASINO REAL - FIRE 777 DELUXE (SLOTS VERTICAL)     */
/* =================================================================== */

/* Fondo atmósfera de casino con luces bokeh y alfombra de lujo */
.casino-room-bg {
  background: radial-gradient(circle at 50% 20%, rgba(180, 83, 9, 0.25) 0%, rgba(15, 23, 42, 0.95) 60%, #030712 100%),
              radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.2) 0%, transparent 50%);
  background-color: #030712;
}

/* Chasis del Gabinete Físico de Lujo */
.slot-cabinet-chassis {
  background: linear-gradient(180deg, #1f2937 0%, #111827 40%, #030712 100%);
  border: 4px solid #b45309;
  border-radius: 28px;
  box-shadow: 0 0 0 2px #d97706, 
              0 0 35px rgba(245, 158, 11, 0.35), 
              0 30px 60px -12px rgba(0, 0, 0, 0.9),
              inset 0 2px 4px rgba(255, 255, 255, 0.2);
  position: relative;
}

/* Columnas de Fuego Laterales (Flame Lightbars) */
@keyframes flameFlicker {
  0% { opacity: 0.85; filter: drop-shadow(0 0 8px #f97316); }
  50% { opacity: 1; filter: drop-shadow(0 0 16px #ef4444); }
  100% { opacity: 0.85; filter: drop-shadow(0 0 8px #f97316); }
}

.flame-lightbar-left, .flame-lightbar-right {
  width: 22px;
  background: linear-gradient(180deg, #dc2626 0%, #ea580c 25%, #f59e0b 50%, #ea580c 75%, #dc2626 100%);
  border-radius: 12px;
  animation: flameFlicker 1.8s infinite ease-in-out;
  border: 1px solid rgba(254, 240, 138, 0.6);
  box-shadow: inset 0 0 10px #fef08a, 0 0 15px rgba(234, 88, 12, 0.6);
}

/* Marquesina Topper en Llamas con 3D Chrome Fire 777 Deluxe */
.topper-flame-banner {
  background: radial-gradient(ellipse at 50% 80%, rgba(234, 88, 12, 0.9) 0%, rgba(185, 28, 28, 0.8) 40%, rgba(15, 23, 42, 0.95) 100%);
  border: 2px solid #f59e0b;
  border-radius: 20px;
  box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.6), 0 8px 25px rgba(0, 0, 0, 0.8);
}

.fire777-3d-title {
  font-family: 'Impact', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #ffffff 0%, #fef08a 25%, #f59e0b 60%, #b45309 85%, #78350f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.9)) drop-shadow(0 0 12px #ea580c);
}

@keyframes fireMarqueeFlame {
  0% { filter: drop-shadow(0 0 12px #f97316) drop-shadow(0 -4px 18px #ef4444); transform: scale(1); }
  50% { filter: drop-shadow(0 0 24px #ea580c) drop-shadow(0 -8px 30px #dc2626); transform: scale(1.02); }
  100% { filter: drop-shadow(0 0 12px #f97316) drop-shadow(0 -4px 18px #ef4444); transform: scale(1); }
}

.fire-marquee-glow {
  animation: fireMarqueeFlame 2s infinite ease-in-out;
}

.slot-reel-strip {
  background: linear-gradient(180deg, #18181b 0%, #09090b 50%, #18181b 100%);
  border-left: 1px solid rgba(245, 158, 11, 0.4);
  border-right: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: inset 0 12px 16px -6px rgba(0,0,0,0.95), inset 0 -12px 16px -6px rgba(0,0,0,0.95);
  border-radius: 8px;
}

@keyframes winPulse {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.08); filter: brightness(1.35) drop-shadow(0 0 10px #f59e0b); }
}

.win-display-active {
  color: #fef08a !important;
  animation: winPulse 0.7s infinite alternate ease-in-out;
}


/* Bisel de Oro alrededor de los Rodillos (Reels Bezel) */
.reels-bezel-frame {
  background: linear-gradient(135deg, #78350f 0%, #d97706 20%, #fef08a 40%, #b45309 60%, #78350f 100%);
  padding: 6px;
  border-radius: 18px;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.reels-screen-window {
  background: radial-gradient(circle at 50% 50%, #1c1917 0%, #0c0a09 100%);
  border-radius: 14px;
  border: 2px solid #451a03;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9);
}

/* Indicadores de Líneas de Pago (1, 2, 3...) */
.payline-tag-left, .payline-tag-right {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #b45309 0%, #78350f 100%);
  color: #fef08a;
  border: 1px solid #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* Panel Digital LED con Bisel Metálico Dorado */
.slot-led-meters-panel {
  background: linear-gradient(180deg, #1c1917 0%, #0c0a09 100%);
  border: 2px solid #b45309;
  border-radius: 14px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.meter-box-led {
  background: #030712;
  border: 1px solid #78350f;
  border-radius: 8px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.95);
}

/* Consola de Control de Gabinete (Botonera Física Inclinada) */
.arcade-console-deck {
  background: linear-gradient(180deg, #27272a 0%, #18181b 30%, #09090b 100%);
  border: 3px solid #71717a;
  border-radius: 20px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.8), 
              inset 0 2px 4px rgba(255, 255, 255, 0.2), 
              0 15px 30px rgba(0, 0, 0, 0.9);
  position: relative;
}

/* El icónico Botón Gigante Circular SPIN en Verde Neón */
.giant-spin-dome-btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #86efac 0%, #22c55e 35%, #15803d 75%, #14532d 100%);
  border: 5px solid #d4d4d8;
  outline: 4px solid #166534;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.8), 
              0 12px 20px rgba(0, 0, 0, 0.8),
              inset 0 4px 8px rgba(255, 255, 255, 0.7);
  transition: all 0.08s ease;
  cursor: pointer;
}

.giant-spin-dome-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 35px rgba(34, 197, 94, 1), 0 14px 25px rgba(0, 0, 0, 0.9);
}

.giant-spin-dome-btn:active {
  transform: translateY(4px) scale(0.97);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.5), 0 4px 8px rgba(0, 0, 0, 0.9);
}

/* Botón Mecánico CASH OUT (Rojo Iluminado) */
.btn-arcade-cashout {
  background: linear-gradient(180deg, #f87171 0%, #ef4444 40%, #b91c1c 85%, #991b1b 100%);
  border: 2px solid #fca5a5;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.6), 0 4px 8px rgba(0, 0, 0, 0.7), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.btn-arcade-cashout:active {
  transform: translateY(2px);
  box-shadow: 0 0 5px rgba(239, 68, 68, 0.4), 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Botón Mecánico GAMBLE x2 (Amarillo Iluminado) */
.btn-arcade-gamble {
  background: linear-gradient(180deg, #fde047 0%, #eab308 40%, #ca8a04 85%, #a16207 100%);
  border: 2px solid #fef08a;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.6), 0 4px 8px rgba(0, 0, 0, 0.7), inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

/* Palanca Lateral Mecánica de Tragamonedas (Mechanical Arm Lever) */
.mechanical-slot-lever {
  position: absolute;
  right: -52px;
  top: 35%;
  width: 48px;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 40;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: bottom center;
}

.lever-ball-knob {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #fde047 30%, #eab308 70%, #854d0e 100%);
  border: 2px solid #ca8a04;
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.8), 0 8px 12px rgba(0, 0, 0, 0.6), inset 0 2px 5px rgba(255, 255, 255, 0.8);
}

.lever-metal-rod {
  width: 14px;
  height: 120px;
  background: linear-gradient(90deg, #71717a 0%, #f4f4f5 45%, #e4e4e7 65%, #52525b 100%);
  border-radius: 7px;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
}

.lever-base-socket {
  width: 36px;
  height: 44px;
  background: linear-gradient(180deg, #3f3f46 0%, #18181b 100%);
  border-radius: 10px;
  border: 2px solid #71717a;
}

.lever-pulled-animation {
  transform: rotate(40deg) translateY(30px);
}

/* Animación de rodillo girando */
@keyframes reelBlurMotion {
  0% { transform: translateY(0); filter: blur(0px); }
  50% { transform: translateY(-8px); filter: blur(3px); }
  100% { transform: translateY(0); filter: blur(0px); }
}

.spinning-reel-blur {
  animation: reelBlurMotion 0.18s infinite linear;
}

@keyframes spinDomePulse {
  0% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.7), 0 10px 20px rgba(0, 0, 0, 0.8); }
  50% { box-shadow: 0 0 35px rgba(74, 222, 128, 1), 0 12px 25px rgba(0, 0, 0, 0.9); }
  100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.7), 0 10px 20px rgba(0, 0, 0, 0.8); }
}

.giant-spin-dome-btn {
  animation: spinDomePulse 2s infinite ease-in-out;
}

@keyframes ticketSlideOut {
  0% { transform: translateY(-15px) scaleY(0.2); opacity: 0; }
  60% { transform: translateY(0) scaleY(1); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

.ticket-dispensing-anim {
  animation: ticketSlideOut 0.8s ease-out forwards;
}

.slot-reel-cell {
  background: radial-gradient(circle at 50% 50%, #1c1917 0%, #0a0a0a 100%);
  border: 1px solid rgba(180, 83, 9, 0.3);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.95);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.slot-reel-cell::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
  pointer-events-none;
  border-radius: 12px 12px 0 0;
}

/* =================================================================== */
/* FÍSICA MECÁNICA REAL: REBOTE Y OVERSHOOT DE FRENADO (REEL BOUNCE)   */
/* =================================================================== */
@keyframes reelBounceLand {
  0% { transform: translateY(-24px) scaleY(1.04); }
  40% { transform: translateY(12px) scaleY(0.97); }
  70% { transform: translateY(-5px) scaleY(1.01); }
  88% { transform: translateY(2px) scaleY(0.99); }
  100% { transform: translateY(0) scaleY(1.0); }
}

.reel-bounce-land {
  animation: reelBounceLand 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* EFECTO TAMBOR CILÍNDRICO 3D (CYLINDRICAL DRUM CURVATURE) */
.reels-screen-window {
  position: relative;
  background: radial-gradient(circle at 50% 50%, #1c1917 0%, #0c0a09 100%);
  border-radius: 14px;
  box-shadow: 
    inset 0 45px 35px -15px rgba(0, 0, 0, 0.98),
    inset 0 -45px 35px -15px rgba(0, 0, 0, 0.98),
    inset 0 0 50px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

/* Sombra de Curvatura de Tambor Cilíndrico Superior e Inferior */
.drum-cylinder-curv-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 42px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
  pointer-events-none;
  z-index: 14;
}

.drum-cylinder-curv-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 42px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
  pointer-events-none;
  z-index: 14;
}

/* Reflejo de Vidrio Templado del Gabinete */
.cabinet-glass-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, 
    rgba(255, 255, 255, 0.14) 0%, 
    rgba(255, 255, 255, 0.03) 28%, 
    transparent 42%, 
    rgba(255, 255, 255, 0.07) 75%, 
    transparent 100%
  );
  pointer-events-none;
  z-index: 15;
}

/* =================================================================== */
/* BOMBILLOS LED CHASER PERIMETRALES (MARQUEE CHASER LIGHTS)          */
/* =================================================================== */
.chaser-bulbs-track {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 2px 4px;
  pointer-events-none;
}

.chaser-bulb {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #78350f;
  border: 1px solid #b45309;
  display: inline-block;
  transition: all 0.12s ease;
}

@keyframes chaserSpinCycle {
  0%, 100% { 
    background: #451a03; 
    box-shadow: none; 
    transform: scale(0.85); 
  }
  50% { 
    background: #fef08a; 
    box-shadow: 0 0 10px #f59e0b, 0 0 16px #eab308; 
    transform: scale(1.3); 
  }
}

.chaser-bulb-running {
  animation: chaserSpinCycle 0.45s infinite ease-in-out;
}

.chaser-bulb-win {
  background: #38bdf8 !important;
  box-shadow: 0 0 12px #38bdf8, 0 0 20px #60a5fa !important;
  animation: chaserSpinCycle 0.18s infinite ease-in-out !important;
}

/* =================================================================== */
/* LÍNEAS DE PAGO LÁSER/NEÓN (PAYLINE LASER OVERLAY)                   */
/* =================================================================== */
.payline-laser-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events-none;
  z-index: 20;
}

@keyframes laserDashMove {
  0% { stroke-dashoffset: 0; filter: drop-shadow(0 0 5px currentColor); }
  50% { filter: drop-shadow(0 0 14px currentColor); }
  100% { stroke-dashoffset: -30; filter: drop-shadow(0 0 5px currentColor); }
}

.payline-glow-line {
  stroke-dasharray: 8 4;
  animation: laserDashMove 0.8s infinite linear;
}

/* =================================================================== */
/* IGNICIÓN 3D Y RÁFAGA EN CELDAS GANADORAS                            */
/* =================================================================== */
@keyframes winFlameBurst {
  0% { transform: scale(1); filter: brightness(1) drop-shadow(0 0 6px #f59e0b); }
  50% { transform: scale(1.09); filter: brightness(1.35) drop-shadow(0 0 25px #ea580c); }
  100% { transform: scale(1); filter: brightness(1) drop-shadow(0 0 6px #f59e0b); }
}

.winning-cell-ignited {
  animation: winFlameBurst 0.9s infinite ease-in-out !important;
  border-color: #fef08a !important;
  z-index: 16 !important;
}

/* BRILLO VFD / LED DE MARCADORES */
.vfd-led-glow {
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.9), 0 0 20px rgba(16, 185, 129, 0.6);
  letter-spacing: 0.06em;
}

.vfd-led-gold-glow {
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.95), 0 0 22px rgba(234, 179, 8, 0.7);
  letter-spacing: 0.06em;
}

@media print {
  /* Impresión Genérica Solo Texto (Generic / Text Only) */
  body.is-printing-plain-text #receiptPlainTextPrint {
    visibility: visible !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 9.5pt !important;
    line-height: 1.15 !important;
    white-space: pre-wrap !important;
  }
  body.is-printing-plain-text #modalReceipt,
  body.is-printing-plain-text #reportPrintContainer {
    display: none !important;
    visibility: hidden !important;
  }
}

/* =================================================================== */
/* OPTIMIZACIÓN RESPONSIVE Y ERGONÓMICA MÓVIL (< 640px y < 1024px)     */
/* =================================================================== */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.touch-momentum {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 639px) {
  .runner-touch-btn {
    min-height: 50px;
    padding: 0.45rem 0.5rem !important;
  }
  #section-pos {
    padding: 0.5rem;
    border-radius: 1rem;
  }
  .tab-btn-pill {
    padding: 0.4rem 0.65rem;
    font-size: 0.72rem;
    gap: 0.35rem;
  }
}

/* =================================================================== */
/* SISTEMA GLOBAL DE COLOR CLARO / OSCURO (ACCESIBILIDAD WCAG AAA)    */
/* APLICA A TODAS LAS VERTICALES AUTORIZADAS:                         */
/* HIPISMO, DEPORTES, LOTERÍAS, VIRTUALES, SLOTS, REPORTES Y MODALES  */
/* =================================================================== */
body.pos-theme-light,
#appWorkspace.pos-theme-light {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

/* 1. Transformación armónica de contenedores oscuros a blanco puro */
body.pos-theme-light #section-pos .bg-slate-900,
body.pos-theme-light #section-pos .bg-slate-950,
body.pos-theme-light #section-sports .bg-slate-900,
body.pos-theme-light #section-sports .bg-slate-950,
body.pos-theme-light #section-lottery .bg-slate-900,
body.pos-theme-light #section-lottery .bg-slate-950,
body.pos-theme-light #section-virtuals .bg-slate-900,
body.pos-theme-light #section-virtuals .bg-slate-950,
body.pos-theme-light #section-slots .bg-slate-900,
body.pos-theme-light #section-slots .bg-slate-950,
body.pos-theme-light #section-tickets .bg-slate-900,
body.pos-theme-light #section-tickets .bg-slate-950,
body.pos-theme-light #section-arqueo .bg-slate-900,
body.pos-theme-light #section-arqueo .bg-slate-950,
body.pos-theme-light #section-finance .bg-slate-900,
body.pos-theme-light #section-finance .bg-slate-950,
body.pos-theme-light #section-hierarchy .bg-slate-900,
body.pos-theme-light #section-hierarchy .bg-slate-950,
body.pos-theme-light #section-live-monitor .bg-slate-900,
body.pos-theme-light #section-live-monitor .bg-slate-950,
body.pos-theme-light .modal-content-dark {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.04) !important;
}

/* 2. Fondos secundarios tenues (paneles anidados, selectores de fichas) */
body.pos-theme-light .bg-slate-900\/80,
body.pos-theme-light .bg-slate-900\/60,
body.pos-theme-light .bg-slate-900\/90,
body.pos-theme-light .bg-slate-950\/90,
body.pos-theme-light .bg-slate-950\/70 {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* 3. Inversión tipográfica de alto contraste WCAG AAA (Negro nítido) */
body.pos-theme-light #section-lottery .text-white,
body.pos-theme-light #section-pos .text-white,
body.pos-theme-light #section-sports .text-white,
body.pos-theme-light #section-virtuals .text-white,
body.pos-theme-light #section-slots .text-white,
body.pos-theme-light #section-tickets .text-white,
body.pos-theme-light #section-arqueo .text-white,
body.pos-theme-light #section-finance .text-white,
body.pos-theme-light #section-hierarchy .text-white {
  color: #0f172a !important;
}

body.pos-theme-light #section-lottery .text-slate-400,
body.pos-theme-light #section-lottery .text-slate-300,
body.pos-theme-light #section-pos .text-slate-400,
body.pos-theme-light #section-sports .text-slate-400,
body.pos-theme-light #section-virtuals .text-slate-400,
body.pos-theme-light #section-slots .text-slate-400 {
  color: #475569 !important;
}

/* 4. Bordes limpios en toda la interfaz */
body.pos-theme-light .border-slate-800,
body.pos-theme-light .border-slate-700,
body.pos-theme-light .border-slate-800\/80 {
  border-color: #cbd5e1 !important;
}

/* 5. Inputs y Consolas de Teclado de Alta Legibilidad */
body.pos-theme-light input[type="text"],
body.pos-theme-light input[type="number"],
body.pos-theme-light select {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

body.pos-theme-light input::placeholder {
  color: #64748b !important;
}

/* 6. Tarjetas de 38 Animalitos en Modo Claro */
body.pos-theme-light .lottery-animal-card {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.pos-theme-light .lottery-animal-card:hover {
  background-color: #f8fafc !important;
  border-color: #f59e0b !important;
}

body.pos-theme-light .lottery-animal-card .animal-number {
  color: #000000 !important;
  font-weight: 900 !important;
}

body.pos-theme-light .lottery-animal-card .animal-name {
  color: #1e293b !important;
  font-weight: 700 !important;
}

/* 7. Cupones de Apuesta (Bet Slips en todas las verticales) */
body.pos-theme-light #posBetSlipColumn,
body.pos-theme-light #sportsBetSlipColumn,
body.pos-theme-light #lotteryBetSlipColumn,
body.pos-theme-light #virtualBetSlipColumn,
body.pos-theme-light #slotsCashierSubView {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.pos-theme-light #lotteryCartItemsContainer,
body.pos-theme-light #sportsCartItemsContainer,
body.pos-theme-light #posCartItemsContainer {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

body.pos-theme-light #lotteryCartTotalStake,
body.pos-theme-light #sportsCartTotalStake,
body.pos-theme-light #posCartTotalStake {
  color: #047857 !important; /* Verde esmeralda profundo visible */
  font-weight: 900 !important;
}

/* 8. Recalibración Cromática de Badges Semánticos */
body.pos-theme-light .bg-emerald-950 {
  background-color: #dcfce7 !important;
  color: #14532d !important;
  border-color: #86efac !important;
  font-weight: 800 !important;
}

body.pos-theme-light .bg-amber-950 {
  background-color: #fef3c7 !important;
  color: #78350f !important;
  border-color: #fcd34d !important;
  font-weight: 800 !important;
}

body.pos-theme-light .bg-red-950,
body.pos-theme-light .bg-rose-950 {
  background-color: #ffe4e6 !important;
  color: #881337 !important;
  border-color: #fca5a5 !important;
  font-weight: 800 !important;
}

body.pos-theme-light .bg-blue-950,
body.pos-theme-light .bg-sky-950 {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
  border-color: #7dd3fc !important;
  font-weight: 800 !important;
}

/* 9. Botones de Operadoras y Sorteos no seleccionados */
body.pos-theme-light #lotteryOperatorsNav button.bg-slate-950,
body.pos-theme-light #lotteryDrawsList button.bg-slate-950\/70,
body.pos-theme-light #lotteryModalitiesNav button.bg-slate-950 {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

body.pos-theme-light #lotteryOperatorsNav button.bg-slate-950:hover,
body.pos-theme-light #lotteryDrawsList button.bg-slate-950\/70:hover,
body.pos-theme-light #lotteryModalitiesNav button.bg-slate-950:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}




