/* Ganemos Retail POS v3.4.0 - Ultra-Ergonomic Retail Engine & High Visibility */
:root {
    --pos-bg: #070c16;
    --pos-surface: #0e172a;
    --pos-surface-card: #141f36;
    --pos-surface-hover: #1c2b4a;
    --pos-surface-active: #24365d;
    --pos-header-bg: #050811;
    --pos-sidebar-bg: #0a1120;
    --pos-input-bg: #030712;
    
    --pos-emerald: #10b981;
    --pos-emerald-glow: rgba(16, 185, 129, 0.5);
    --pos-emerald-dark: #059669;
    --pos-blue: #3b82f6;
    --pos-blue-glow: rgba(59, 130, 246, 0.5);
    --pos-cyan: #06b6d4;
    --pos-gold: #f59e0b;
    --pos-gold-glow: rgba(245, 158, 11, 0.5);
    --pos-yellow: #facc15;
    --pos-red: #ef4444;
    --pos-purple: #8b5cf6;
    
    --pos-border: #1e293b;
    --pos-border-subtle: #141e30;
    --pos-border-glow: #38bdf8;
    --pos-text-main: #f8fafc;
    --pos-text-muted: #94a3b8;
    --pos-text-subtle: #64748b;
}

html, body.pos-mode {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    background-color: var(--pos-bg) !important;
    color: var(--pos-text-main) !important;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    user-select: none;
    margin: 0 !important;
    padding: 0 !important;
}

#app {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pos-mode main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pos-mode .loteria-page {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 6px !important;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Master Top Navbar */
.pos-top-bar {
    background: var(--pos-header-bg);
    border-bottom: 2px solid var(--pos-border);
    padding: 4px 12px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    flex-shrink: 0;
    z-index: 1040;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.pos-logo-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pos-logo-wrap img {
    height: 30px;
    width: auto;
}

.pos-logo-title {
    font-size: 0.92rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.pos-logo-subtitle {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--pos-gold);
    letter-spacing: 0.8px;
}

.pos-actions-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.pos-action-btn {
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    text-transform: uppercase;
    border: 1px solid #334155 !important;
    background: #1e293b !important;
    color: #e2e8f0 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    transition: all 0.14s ease;
    white-space: nowrap;
}

.pos-action-btn i {
    color: #94a3b8;
    transition: color 0.14s ease;
}

.pos-action-btn:hover {
    background: #334155 !important;
    color: #ffffff !important;
    border-color: #475569 !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.pos-action-btn:hover i {
    color: #38bdf8;
}

.pos-btn-exit {
    padding: 6px 10px !important;
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #94a3b8 !important;
}

.pos-btn-exit:hover {
    background: #7f1d1d !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4) !important;
}

.pos-btn-exit:hover i {
    color: #fca5a5 !important;
}

/* Hide top header currency dropdown in POS mode (now located inside Ticket Slip) */
#lobby-currency-selector,
.lobby-currency-btn {
    display: none !important;
}

/* Master Categories Navigation Tabs (Enlarged & High Visibility) */
.pos-categories-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    height: 52px;
    background: linear-gradient(180deg, #070e1c 0%, #030712 100%);
    border-bottom: 2.5px solid var(--pos-border);
    flex-shrink: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
}

.pos-cat-tab {
    flex: 1 0 auto;
    font-size: 0.94rem !important;
    font-weight: 900 !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
    border: 2px solid #1e293b !important;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    background: #0f172a;
    white-space: nowrap;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.pos-cat-tab i {
    font-size: 1.25rem !important;
}

.pos-cat-tab:hover {
    background: #1e293b;
    color: #ffffff !important;
    border-color: #38bdf8 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
}

.pos-cat-tab.active-parley {
    background: linear-gradient(135deg, #1d4ed8 0%, #172554 100%) !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.65) !important;
    transform: translateY(-1px);
}

.pos-cat-tab.active-animalitos {
    background: linear-gradient(135deg, #059669 0%, #064e3b 100%) !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.7) !important;
    transform: translateY(-1px);
}

.pos-cat-tab.active-loterias {
    background: linear-gradient(135deg, #d97706 0%, #78350f 100%) !important;
    border-color: #fbbf24 !important;
    color: #ffffff !important;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.7) !important;
    transform: translateY(-1px);
}

.pos-cat-tab.active-caballos {
    background: linear-gradient(135deg, #7e22ce 0%, #4c1d95 100%) !important;
    border-color: #c084fc !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.65) !important;
    transform: translateY(-1px);
}

/* High-Legibility Top Bar Marquee Information Ticker */
.pos-top-ticker {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    margin: 0 10px;
    height: 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.pos-top-ticker .cilinder-information {
    width: 100% !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(11, 16, 29, 0.75) !important;
    border: 1px solid rgba(255, 193, 7, 0.25) !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    contain: layout paint !important;
}

.pos-top-ticker .ticker-wrapper {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.pos-top-ticker .ticker-item {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    color: #e2e8f0 !important;
    letter-spacing: 0.3px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 1rem !important;
    gap: 6px !important;
    line-height: 1 !important;
}

.pos-top-ticker .ticker-badge {
    padding: 2px 7px !important;
    font-size: 0.65rem !important;
    font-weight: 900 !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.4px !important;
    margin-right: 0 !important;
}

.pos-top-ticker .ticker-divider {
    color: rgba(255, 193, 7, 0.7) !important;
    font-size: 0.85rem !important;
}

/* POS Responsive Actions Dropdown Menu */
.pos-responsive-menu-wrap {
    position: relative;
}

.pos-responsive-menu-wrap {
    position: relative !important;
}

.pos-responsive-menu-wrap .dropdown-toggle::after {
    margin-left: 0.4em;
    vertical-align: 0.15em;
}

.pos-cashier-dropdown-menu {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.15) !important;
    padding: 6px !important;
    min-width: 220px !important;
    max-width: calc(100vw - 20px) !important;
    z-index: 99999 !important;
    position: absolute !important;
    top: calc(100% + 4px) !important;
    right: 0 !important;
    left: auto !important;
    animation: fadeInMenu 0.15s ease-out;
}

@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.pos-cashier-dropdown-menu .dropdown-item {
    color: #cbd5e1 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.15s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap !important;
}

.pos-cashier-dropdown-menu .dropdown-item:hover,
.pos-cashier-dropdown-menu .dropdown-item:focus {
    background: rgba(255, 193, 7, 0.15) !important;
    color: #ffffff !important;
}

.pos-cashier-dropdown-menu .dropdown-item.text-danger {
    color: #f87171 !important;
}

.pos-cashier-dropdown-menu .dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #fca5a5 !important;
}

@media (max-width: 768px) {
    .pos-top-bar {
        padding: 4px 8px;
        gap: 6px;
    }

    .pos-top-ticker {
        margin: 0 6px;
        height: 28px;
    }

    .pos-top-ticker .cilinder-information {
        height: 28px !important;
    }

    .pos-top-ticker .ticker-item {
        font-size: 0.72rem !important;
        padding: 0 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .pos-top-ticker {
        display: none;
    }
}

/* POS Workspace (Zero Scroll Fixed Box) */
.pos-workspace-container {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.pos-playground-col {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    padding: 4px 10px;
    background: var(--pos-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pos-ticket-col {
    width: 330px;
    min-width: 300px;
    max-width: 360px;
    background: var(--pos-sidebar-bg);
    border-left: 2px solid var(--pos-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    flex-shrink: 0;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

/* Cascading Steps Architecture (1 -> 2 -> 3 -> 4 -> 5) */
.pos-step-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.pos-step-header {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 130px;
    flex-shrink: 0;
}

.pos-step-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.pos-step-title {
    font-size: 0.76rem;
    font-weight: 900;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Step 1: Mode Buttons */
.pos-mode-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-mode-btn {
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    background: var(--pos-surface-card) !important;
    border: 1.5px solid var(--pos-border) !important;
    color: #cbd5e1 !important;
    cursor: pointer;
    transition: all 0.12s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.pos-mode-btn:hover {
    border-color: #64748b !important;
    color: #fff !important;
    background: var(--pos-surface-hover) !important;
    transform: translateY(-1px);
}

.pos-mode-btn.active {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%) !important;
    border-color: var(--pos-emerald) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5) !important;
}

/* Step 2: Single-Line Horizontal Slider for Games */
.pos-games-grid,
.pos-games-slider {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
    padding-bottom: 5px;
    padding-top: 2px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Games slider scrollbars styled in Master Scrollbar Section below */

.pos-game-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1.5px solid #334155;
    border-radius: 7px;
    padding: 5px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.14s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    height: 38px;
    color: #f1f5f9;
}

.pos-game-btn:hover {
    border-color: var(--pos-gold);
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.pos-game-btn.active {
    background: linear-gradient(180deg, #064e3b 0%, #022c22 100%) !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.45) !important;
}

.pos-game-btn-img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.pos-game-btn-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.pos-game-btn-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pos-game-btn-name {
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.3px;
}

.pos-game-btn-badge {
    font-size: 0.64rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.25);
    color: var(--pos-yellow);
    border: 1px solid rgba(245, 158, 11, 0.5);
    letter-spacing: 0.4px;
}

.pos-game-btn.active .pos-game-btn-badge {
    background: rgba(16, 185, 129, 0.25) !important;
    color: #34d399 !important;
    border-color: #10b981 !important;
}

.pos-game-check {
    color: #10b981;
    font-size: 0.82rem;
    margin-left: 2px;
}

.pos-game-btn.closed {
    opacity: 0.65;
    border-color: #1e293b;
    background: #090e17;
}

.pos-game-btn.closed:hover {
    opacity: 0.9;
    border-color: #475569;
}

.pos-game-btn.closed.active {
    opacity: 1 !important;
    border-color: #10b981 !important;
}

.pos-game-btn-status {
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 1px;
    letter-spacing: 0.2px;
}

/* Fast Search Input for Games */
.pos-game-search-box {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.pos-game-search-icon {
    position: absolute;
    left: 9px;
    color: #64748b;
    font-size: 0.74rem;
    pointer-events: none;
}

.pos-game-search-input {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    border-radius: 6px !important;
    color: #f1f5f9 !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    padding: 4px 8px 4px 26px !important;
    width: 130px;
    transition: all 0.15s ease;
}

.pos-game-search-input:focus {
    width: 175px;
    border-color: #10b981 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25) !important;
}

/* Step 3: Single-Line Horizontal Slider for Sorteos / Horas */
.pos-step-sorteos {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-bottom: 6px;
}

.pos-draws-wrap,
.pos-draws-slider,
.pos-draws-slider {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: thin !important;
    scrollbar-color: #f59e0b #080f1d !important;
    padding-bottom: 6px;
    padding-top: 2px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.pos-pill-btn {
    font-size: 0.76rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1.5px solid #334155;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.14s ease;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    height: 30px;
    user-select: none;
}

.pos-pill-btn:hover {
    border-color: #10b981;
    color: #fff;
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.pos-pill-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #34d399 !important;
    color: #fff !important;
    font-weight: 900 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5) !important;
}

.pos-pill-btn.closed,
.pos-pill-btn:disabled {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: #64748b !important;
    cursor: not-allowed !important;
    opacity: 0.55;
    text-decoration: line-through;
    position: relative;
    pointer-events: none;
}

.pos-pill-btn.closed::after {
    content: " 🔒";
    font-size: 0.65rem;
    text-decoration: none;
    display: inline-block;
}

/* =========================================================
   PASO 4: BARRA DE ENTRADA RÁPIDA (Superficie Gris Dos Tonos)
   ========================================================= */
.pos-quick-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    border: 1px solid #334155 !important;
    padding: 8px 14px;
    border-radius: 8px;
    margin-top: 4px;
    margin-bottom: 5px;
    flex-shrink: 0;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.pos-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pos-label {
    font-size: 0.82rem;
    font-weight: 800;
    color: #cbd5e1;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Guided PC Inputs: Subtle Green Glow without Overhead */
.pos-input-prominent {
    background: #09131f !important;
    border: 1.5px solid #334155 !important;
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    outline: none !important;
    transition: all 0.14s ease !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.pos-input-prominent:focus {
    border-color: #10b981 !important;
    background: #06111e !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

/* CSS rule to instantly hide placeholder visual example on focus */
.pos-input-prominent:focus::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

.pos-input-group-animal .pos-input-prominent {
    width: 160px;
}

.pos-input-group-monto .pos-input-prominent {
    width: 105px;
}

.pos-btn-add {
    background: #10b981 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 0.84rem !important;
    padding: 7px 16px !important;
    border-radius: 6px !important;
    border: 1px solid #059669 !important;
    cursor: pointer;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35) !important;
    transition: all 0.14s ease;
}

.pos-btn-add:hover {
    background: #059669 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5) !important;
    color: #ffffff !important;
}

.pos-btn-add:active {
    transform: translateY(1px);
}

.pos-key-hint {
    font-size: 0.68rem;
    font-weight: 700;
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pos-quick-hint {
    color: #94a3b8;
    font-size: 0.74rem;
    font-weight: 700;
}

.pos-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    flex-shrink: 0;
    gap: 8px;
}

.pos-grid-title {
    font-size: 0.76rem;
    font-weight: 900;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Paginador de Tablero Compacto (Solo Flechas + Indicador Central) */
.pos-grid-pagination {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #0b1526;
    border: 1px solid #1e3250;
    border-radius: 8px;
    padding: 2px 4px;
    flex-shrink: 0;
}

.pos-page-arrow-btn {
    width: 28px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #132238 0%, #0b1524 100%);
    border: 1px solid #233b5d;
    color: #38bdf8;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.pos-page-arrow-btn:hover:not(.disabled) {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
    transform: translateY(-1px);
}

.pos-page-arrow-btn:active:not(.disabled) {
    transform: scale(0.92);
}

.pos-page-arrow-btn.disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
    border-color: #1e293b;
    color: #64748b;
}

.pos-page-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 6px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.76rem;
    font-weight: 800;
    color: #f8fafc;
    cursor: pointer;
    user-select: none;
    letter-spacing: 0.5px;
}

.pos-page-indicator:hover {
    color: #38bdf8;
}

.pos-page-cur {
    color: #38bdf8;
    font-weight: 900;
}

.pos-page-sep {
    color: #64748b;
}

.pos-page-total {
    color: #94a3b8;
}

.pos-page-badge {
    background-color: #10b981;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.85);
    line-height: 1.1;
}

.pos-animal-grid-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    position: relative;
    background: #060d1a;
}

.pos-cube-stage {
    position: relative;
    width: 100%;
    min-height: 100%;
}

.pos-animal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 6px;
    box-sizing: border-box;
}

.pos-cube-face {
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    background: #060d1a;
}

/* Transición limpia y sutil en 2D (cero inclinación, 100% estable en cualquier pantalla) */
.pos-face-fade-in {
    animation: posFaceFadeIn 0.12s ease-out forwards;
}

@keyframes posFaceFadeIn {
    0% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.pos-animal-card {
    background: linear-gradient(180deg, #111d33 0%, #0a1120 100%);
    border: 2px solid #1e2e4a;
    border-radius: 8px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.14s ease;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.pos-animal-card:hover {
    border-color: #38bdf8;
    background: linear-gradient(180deg, #1e2f4f 0%, #0f1a2e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.pos-animal-card.selected {
    background: linear-gradient(135deg, #059669 0%, #022c22 100%) !important;
    border-color: #34d399 !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.65) !important;
    transform: scale(1.02);
}

.pos-animal-num {
    font-size: 1.15rem;
    font-weight: 900;
    color: #38bdf8;
    line-height: 1;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.pos-animal-card.selected .pos-animal-num {
    color: #facc15;
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.6);
}

.pos-animal-icon {
    font-size: 1.65rem;
    margin: 2px 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.pos-animal-name {
    font-size: 0.76rem;
    font-weight: 800;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.pos-animal-card.selected .pos-animal-name {
    color: #ffffff;
    font-weight: 900;
}

/* =========================================================
   RIGHT SIDEBAR: TICKET LOTERÍA
   ========================================================= */
.pos-ticket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    background: var(--pos-header-bg);
    border-bottom: 2px solid var(--pos-border);
    flex-shrink: 0;
}

.pos-ticket-title {
    font-size: 0.88rem;
    font-weight: 900;
    color: #f59e0b;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.pos-ticket-count-badge {
    font-size: 0.76rem;
    color: #38bdf8;
    font-weight: 800;
    margin-left: 6px;
}

.pos-ticket-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 10px;
    background: var(--pos-sidebar-bg);
}

.pos-ticket-empty {
    text-align: center;
    color: #64748b;
    padding: 32px 8px;
    font-weight: 600;
    font-size: 0.86rem;
}

.pos-ticket-group-title {
    font-size: 0.74rem;
    font-weight: 900;
    color: #38bdf8;
    margin-top: 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    padding-bottom: 2px;
    letter-spacing: 0.4px;
}

.pos-ticket-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #11192a;
    border: 1px solid #1e293b;
    border-radius: 5px;
    padding: 5px 8px;
    margin-bottom: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.12s ease;
}

.pos-ticket-item:hover {
    border-color: #334155;
    background: #162035;
}

.pos-ticket-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-ticket-item-left span:first-child {
    background: #1e3a8a;
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 0.80rem;
}

.pos-ticket-item-amount {
    color: #10b981;
    font-weight: 900;
    font-size: 0.85rem;
}

.pos-ticket-item-del {
    color: #ef4444;
    cursor: pointer;
    padding: 0 4px;
    font-size: 0.88rem;
    transition: transform 0.1s ease;
}

.pos-ticket-item-del:hover {
    color: #f87171;
    transform: scale(1.2);
}

/* Ticket Footer */
.pos-ticket-footer {
    padding: 8px 12px 10px 12px;
    background: var(--pos-header-bg);
    border-top: 2px solid var(--pos-border);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.pos-bet-input-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.pos-bet-label {
    font-size: 0.74rem;
    font-weight: 800;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pos-bet-fields-row {
    display: grid;
    grid-template-columns: 1fr 115px;
    gap: 6px;
    width: 100%;
    align-items: center;
}

.pos-ticket-amount-field {
    width: 100%;
    height: 40px;
    background: #030712;
    border: 1.5px solid #334155;
    color: #10b981;
    font-size: 1.2rem;
    font-weight: 900;
    border-radius: 6px;
    padding: 4px 10px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.14s ease;
}

.pos-ticket-amount-field:focus {
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.45);
    background: #000;
}

.pos-currency-select {
    width: 100%;
    height: 40px;
    background: #1e293b;
    border: 1.5px solid #334155;
    color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: 6px;
    padding: 4px 6px;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.14s ease;
}

.pos-currency-select:hover, .pos-currency-select:focus {
    border-color: #38bdf8;
    background: #25334a;
}

/* Master Submit Button [F12 / ENTER] */
.pos-btn-submit {
    min-height: 48px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
    border: 2px solid #34d399 !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.14s ease;
    text-transform: uppercase;
}

.pos-btn-submit:hover {
    filter: brightness(1.18);
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.75);
}

.pos-btn-submit-main {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pos-btn-submit-sub {
    font-size: 0.68rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
}

/* Compact 2-Column Actions Row (Repetir / Limpiar) */
.pos-ticket-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 2px;
}

.pos-ticket-actions-row .pos-btn-action {
    height: 36px !important;
    border-radius: 6px !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    padding: 0 8px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-transform: uppercase !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-decoration: none !important;
    outline: none !important;
}

.pos-ticket-actions-row .pos-btn-action-repeat {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border: 1.5px solid #d97706 !important;
    color: #fbbf24 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4) !important;
}

.pos-ticket-actions-row .pos-btn-action-repeat:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    border-color: #fde68a !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.5) !important;
    transform: translateY(-1px);
}

.pos-ticket-actions-row .pos-btn-action-clear {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: 1.5px solid #f87171 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35) !important;
}

.pos-ticket-actions-row .pos-btn-action-clear:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border-color: #fca5a5 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.5) !important;
}

/* Numpad for Triples */
.pos-numpad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.pos-num-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    padding: 10px 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.12s ease;
}

.pos-num-btn:hover {
    background: #334155;
    border-color: #38bdf8;
}

.pos-num-clear {
    background: #7f1d1d !important;
    border-color: #ef4444 !important;
    font-size: 0.82rem !important;
}

.pos-num-enter {
    background: #065f46 !important;
    border-color: #10b981 !important;
    font-size: 0.82rem !important;
}

/* Zodiacal Grid */
.pos-zodiac-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3px;
}

.pos-zodiac-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 5px;
    padding: 5px 2px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #cbd5e1;
    text-align: center;
    cursor: pointer;
}

.pos-zodiac-card:hover {
    border-color: #38bdf8;
}

.pos-zodiac-card.selected {
    background: #1e3a8a;
    border-color: #38bdf8;
    color: #fff;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

/* Print Media Styles for Thermal POS Receipt (58mm / 80mm) */

/* =========================================================
   QUICK AMOUNT CHIPS (FICHAS RÁPIDAS DE MONTO)
   ========================================================= */
.pos-quick-chips-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(14, 23, 42, 0.85);
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    margin-top: 6px;
    margin-bottom: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.pos-chips-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--pos-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.pos-chips-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pos-chip-btn {
    background: #141f36;
    border: 1.5px solid #223354;
    color: #38bdf8;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.86rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    user-select: none;
    touch-action: manipulation;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pos-chip-btn:hover {
    background: #1e2f4f;
    border-color: #38bdf8;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}

.pos-chip-btn.active-chip {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #34d399 !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6) !important;
}

/* =========================================================
   MOBILE FLOATING TICKET BAR & BOTTOM SHEET DRAWER
   ========================================================= */
.pos-mobile-ticket-bar {
    display: none;
}

.pos-mobile-tripletas-btn {
    display: none;
}

.pos-mobile-bet-sheet {
    display: none;
}

.pos-drawer-close-btn {
    display: none;
}

.pos-drawer-backdrop {
    display: none;
}

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
    /* Ocultar buscador, modalidad y barra manual en responsive para ahorrar espacio vertical */
    .pos-game-search-box {
        display: none !important;
    }
    .pos-step-modalidad {
        display: none !important;
    }
    .pos-quick-bar {
        display: none !important;
    }

    /* Botón Flotante Lateral Móvil Desactivado en favor del botón fijo contextual */
    .pos-mobile-tripletas-btn {
        display: none !important;
    }

/* ==========================================================================
   BOTÓN FIJO CONTEXTUAL (TRIPLETAS / ACUMULADO FOCA / ANIMALITOS)
   ========================================================================== */
.pos-context-btn-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


.pos-context-mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
    line-height: 1.2;
    text-transform: uppercase;
}

.pos-context-btn-icon {
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* 1. Verde Foca Acumulado (Estilo exacto de referencia: fondo verde vivo, borde amarillo/dorado, texto blanco conciso) */
.pos-context-mode-btn.pos-context-foca {
    background: #00a651 !important;
    background: linear-gradient(180deg, #05b85a 0%, #009245 100%) !important;
    border: 2px solid #facc15 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.45), 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}
.pos-context-mode-btn.pos-context-foca:hover {
    background: linear-gradient(180deg, #10c868 0%, #05a852 100%) !important;
    border-color: #fef08a !important;
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.75), 0 2px 6px rgba(0, 0, 0, 0.35) !important;
    transform: scale(1.02);
}
.pos-context-mode-btn.pos-context-foca:active {
    transform: scale(0.97);
}

/* 2. Verde Foca Acumulado ACTIVO (Permite volver a Tradicional) */
.pos-context-mode-btn.pos-context-foca-active {
    background: #064e3b !important;
    border: 2px solid #10b981 !important;
    border-radius: 6px !important;
    color: #a7f3d0 !important;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4) !important;
}
.pos-context-mode-btn.pos-context-foca-active:hover {
    background: #047857 !important;
    color: #ffffff !important;
}

/* Botones de Acción de Modo en Verde Esmeralda (Foca Acumulado, Pezcalo Tripleta y Cuadrado) */
.pos-context-green-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    user-select: none;
    line-height: 1.2;
    text-transform: uppercase;
    background: #064e3b !important;
    border: 1.5px solid #10b981 !important;
    color: #ecfdf5 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.pos-context-green-btn:hover {
    background: #047857 !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.45);
}

.pos-context-green-btn:active {
    transform: translateY(0);
}

.pos-context-green-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: 1.5px solid #34d399 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.65), 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}


/* 3. Tripletas Inactivo (Dorado / Ámbar) */
.pos-context-mode-btn.pos-context-tripletas {
    background: #0f172a !important;
    border: 1.5px solid #f59e0b !important;
    border-radius: 6px !important;
    color: #f8fafc !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}
.pos-context-mode-btn.pos-context-tripletas:hover {
    background: #1e293b !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4) !important;
    transform: scale(1.02);
}
.pos-context-mode-btn.pos-context-tripletas:active {
    transform: scale(0.96);
}

/* 4. Tripletas ACTIVO (Permite volver a Tradicional) */
.pos-context-mode-btn.pos-context-tripletas-active {
    background: linear-gradient(135deg, #b45309 0%, #78350f 100%) !important;
    border: 1.5px solid #f59e0b !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6) !important;
}
.pos-context-mode-btn.pos-context-tripletas-active:hover {
    background: #92400e !important;
}

/* Monto Bloqueado no editable para Acumulado (Monto Fijo Oficial) */
.pos-input-locked {
    background: #091220 !important;
    border-color: #059669 !important;
    color: #34d399 !important;
    font-weight: 900 !important;
    cursor: not-allowed !important;
    opacity: 0.95 !important;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3) !important;
    user-select: none !important;
}
.pos-input-locked:focus {
    outline: none !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5) !important;
}

    /* Mobile Quick-Bet Bottom Sheet with Keypad */
    .pos-mobile-bet-sheet {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1065;
        background: #ffffff;
        color: #0f172a;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45);
        padding: 10px 12px 14px 12px;
        flex-direction: column;
        gap: 8px;
        animation: slideUpSheet 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .pos-mobile-bet-sheet.d-none {
        display: none !important;
    }

    @keyframes slideUpSheet {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    /* Selected Chips Row */
    .pos-sheet-chips-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
    }
    .pos-sheet-chips-list {
        display: flex;
        align-items: center;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 2px;
        flex: 1;
        scrollbar-width: none;
    }
    .pos-sheet-chips-list::-webkit-scrollbar {
        display: none;
    }
    .pos-sheet-chip {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: #0284c7;
        color: #ffffff;
        font-size: 0.78rem;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 20px;
        white-space: nowrap;
        cursor: pointer;
        animation: popChip 0.15s ease;
    }
    @keyframes popChip {
        from { transform: scale(0.8); opacity: 0; }
        to { transform: scale(1); opacity: 1; }
    }
    .pos-sheet-chip i {
        font-size: 0.72rem;
        opacity: 0.8;
    }
    .pos-sheet-clear-btn {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: none;
        background: #f1f5f9;
        color: #64748b;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.82rem;
        cursor: pointer;
        flex-shrink: 0;
    }
    .pos-sheet-clear-btn:active {
        background: #e2e8f0;
    }

    /* Input & Action Row */
    .pos-sheet-input-row {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .pos-sheet-amount-box {
        flex: 1;
        display: flex;
        align-items: center;
        background: #ffffff;
        border: 2px solid #0284c7;
        border-radius: 10px;
        padding: 4px 12px;
        height: 42px;
        cursor: pointer;
        transition: all 0.2s ease;
        position: relative;
    }
    .pos-sheet-amount-box:active,
    .pos-sheet-amount-box.is-editing {
        background: #f0f9ff;
        border-color: #0284c7;
        box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
    }
    .pos-sheet-amount-box.pos-amount-locked {
        background: #f8fafc;
        border-color: #10b981;
        cursor: default;
    }
    .pos-sheet-currency-sym {
        font-size: 1.1rem;
        font-weight: 800;
        color: #64748b;
        margin-right: 6px;
    }
    .pos-sheet-amount-input {
        width: 100%;
        border: none;
        outline: none;
        background: transparent;
        font-size: 1.1rem;
        font-weight: 800;
        color: #0f172a;
        cursor: pointer;
    }
    .pos-sheet-amount-input::placeholder {
        color: #94a3b8;
        font-weight: 600;
        font-size: 0.88rem;
    }
    .pos-sheet-amount-edit-icon {
        font-size: 0.9rem;
        color: #0284c7;
        margin-left: 4px;
        opacity: 0.8;
    }
    .pos-sheet-add-btn {
        background: #0284c7;
        color: #ffffff;
        border: none;
        border-radius: 10px;
        height: 42px;
        padding: 0 18px;
        font-size: 0.95rem;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
        box-shadow: 0 3px 8px rgba(2, 132, 199, 0.4);
        flex-shrink: 0;
        transition: transform 0.1s ease;
    }
    .pos-sheet-add-btn:active {
        transform: scale(0.96);
    }

    /* Touch Numeric Keypad (Desplegable bajo demanda) */
    .pos-sheet-keypad {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-top: 4px;
        padding-top: 6px;
        border-top: 1px solid #e2e8f0;
        animation: posKeypadSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .pos-sheet-keypad.d-none {
        display: none !important;
    }
    @keyframes posKeypadSlide {
        from { opacity: 0; transform: translateY(12px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .pos-sheet-keypad-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 2px;
    }
    .pos-sheet-keypad-title {
        font-size: 0.78rem;
        font-weight: 700;
        color: #475569;
    }
    .pos-sheet-keypad-close {
        background: #f1f5f9;
        border: 1px solid #cbd5e1;
        border-radius: 6px;
        padding: 3px 10px;
        font-size: 0.75rem;
        font-weight: 800;
        color: #334155;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
    }
    .pos-sheet-keypad-close:active {
        background: #e2e8f0;
    }
    .pos-sheet-keypad-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .pos-key-btn {
        height: 44px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        font-size: 1.15rem;
        font-weight: 800;
        color: #0f172a;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.08s ease, transform 0.08s ease;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    .pos-key-btn:active {
        background: #e2e8f0;
        transform: scale(0.97);
    }
    .pos-key-btn.pos-key-clear {
        background: #fee2e2;
        border-color: #fecaca;
        color: #dc2626;
        font-weight: 800;
    }
    .pos-key-btn.pos-key-clear:active {
        background: #fca5a5;
    }
    .pos-key-btn.pos-key-backspace {
        grid-column: span 2;
        background: #fef3c7;
        border-color: #fde68a;
        color: #b45309;
        font-weight: 800;
        font-size: 0.95rem;
    }
    .pos-key-btn.pos-key-backspace:active {
        background: #fcd34d;
    }

    html, body.pos-mode {
        height: auto !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    #app {
        height: auto !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        overflow: visible !important;
    }

    .pos-mode main {
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
    }

    .pos-mode .loteria-page {
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
        padding-bottom: 76px !important;
    }

    .pos-workspace-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .pos-playground-col {
        overflow: visible !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 4px 6px !important;
    }

    .pos-animal-grid-wrapper {
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    /* Fixed Floating Bar on Mobile Screen Bottom */
    .pos-mobile-ticket-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 58px;
        background: linear-gradient(180deg, #0e172a 0%, #070c16 100%);
        border-top: 2px solid #223354;
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.75);
        z-index: 1050;
        padding: 6px 12px;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .pos-mobile-bar-info {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex: 1;
        min-width: 0;
    }

    .pos-mobile-badge {
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
        border: 1.5px solid #334155;
        border-radius: 20px;
        padding: 6px 14px;
        font-size: 0.84rem;
        font-weight: 800;
        color: #f8fafc;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .pos-mobile-ticket-bar.has-bets .pos-mobile-badge {
        border-color: #f59e0b;
        background: linear-gradient(180deg, rgba(245, 158, 11, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
        box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
    }

    .pos-btn-mobile-view {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        border: 1.5px solid #38bdf8;
        color: #38bdf8;
        font-size: 0.85rem;
        font-weight: 900;
        padding: 7px 14px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        cursor: pointer;
        transition: all 0.15s ease;
        white-space: nowrap;
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
        flex-shrink: 0;
    }

    .pos-btn-mobile-view:hover,
    .pos-btn-mobile-view:active {
        background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
        color: #fff;
        border-color: #38bdf8;
    }

    .pos-btn-mobile-printer {
        width: 38px;
        height: 38px;
        border-radius: 8px;
        background: #1e293b;
        border: 1px solid #334155;
        color: #38bdf8;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        cursor: pointer;
        flex-shrink: 0;
    }

    .pos-mobile-bar-info {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        flex: 1 1 auto;
        min-width: 0;
    }

    .pos-mobile-badge {
        background: #1e293b;
        border: 1.5px solid #38bdf8;
        border-radius: 8px;
        padding: 4px 8px;
        font-size: 0.85rem;
        font-weight: 800;
        color: #f8fafc;
        display: flex;
        align-items: center;
        gap: 5px;
        flex-shrink: 0;
    }

    .pos-mobile-ticket-bar.has-bets .pos-mobile-badge {
        border-color: #10b981;
        background: rgba(16, 185, 129, 0.18);
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    }

    .pos-mobile-total-wrap {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
    }

    .pos-mobile-total-label {
        font-size: 0.65rem;
        font-weight: 700;
        color: #94a3b8;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        line-height: 1;
    }

    .pos-mobile-total-val {
        font-family: 'Roboto Mono', monospace;
        font-size: 1.05rem;
        font-weight: 900;
        color: #10b981;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pos-mobile-bar-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .pos-btn-mobile-view {
        background: #1e293b;
        border: 1.5px solid #334155;
        color: #f8fafc;
        font-size: 0.82rem;
        font-weight: 800;
        padding: 8px 12px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.15s ease;
        display: flex;
        align-items: center;
        white-space: nowrap;
        touch-action: manipulation;
    }

    .pos-btn-mobile-view:hover,
    .pos-btn-mobile-view:active {
        background: #334155;
        border-color: #38bdf8;
        color: #fff;
    }

    .pos-btn-mobile-submit {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        border: 1.5px solid #34d399;
        color: #fff;
        font-size: 0.86rem;
        font-weight: 900;
        padding: 8px 16px;
        border-radius: 8px;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
        transition: all 0.15s ease;
        display: flex;
        align-items: center;
        white-space: nowrap;
        touch-action: manipulation;
    }

    .pos-btn-mobile-submit:hover,
    .pos-btn-mobile-submit:active {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        box-shadow: 0 4px 14px rgba(16, 185, 129, 0.6);
        transform: translateY(-1px);
    }

    /* Bottom Sheet Drawer for Ticket on Mobile */
    .pos-ticket-col {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 82vh !important;
        max-height: 82vh !important;
        z-index: 1060 !important;
        border-radius: 20px 20px 0 0 !important;
        border: 2px solid var(--pos-border-glow) !important;
        border-bottom: none !important;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.9) !important;
        transform: translateY(105%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        display: flex !important;
        flex-direction: column !important;
        background: #0a1120 !important;
    }

    .pos-workspace-container.drawer-open .pos-ticket-col {
        transform: translateY(0) !important;
    }

    .pos-drawer-backdrop {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        z-index: 1055;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .pos-workspace-container.drawer-open .pos-drawer-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .pos-drawer-close-btn {
        display: flex !important;
        background: rgba(239, 68, 68, 0.15);
        border: 1px solid rgba(239, 68, 68, 0.4);
        color: #ef4444;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1rem;
        transition: all 0.15s ease;
    }

    .pos-drawer-close-btn:hover {
        background: #ef4444;
        color: #fff;
    }
}

@media (max-width: 575.98px) {
    /* Top Bar & Ticker */
    .pos-top-bar {
        padding: 2px 8px;
        height: 40px;
    }
    .pos-logo-title {
        display: none;
    }

    /* Categories Bar */
    .pos-categories-nav {
        height: 44px;
        padding: 4px 8px;
        gap: 6px;
    }
    .pos-cat-tab {
        padding: 5px 10px !important;
        font-size: 0.76rem !important;
        border-radius: 6px !important;
    }
    .pos-cat-tab i {
        font-size: 0.9rem !important;
    }

    /* Step Rows */
    .pos-step-row {
        margin-bottom: 6px;
        padding: 4px 6px;
    }
    .pos-step-badge {
        width: 18px;
        height: 18px;
        font-size: 0.68rem;
    }
    .pos-step-title {
        font-size: 0.76rem;
    }

    /* Modalidad buttons */
    .pos-mode-btn {
        padding: 6px 8px;
        font-size: 0.76rem;
    }

    /* Games buttons - Keep single-line horizontal slider on mobile */
    .pos-games-grid,
    .pos-games-slider {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 6px;
    }

    /* Sorteos / Draws - Keep single-line horizontal slider on mobile */
    .pos-draws-wrap,
.pos-draws-slider,
    .pos-draws-slider {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 5px;
    }
    .pos-game-btn {
        padding: 5px 6px;
    }
    .pos-game-btn-img {
        width: 26px;
        height: 26px;
    }
    .pos-game-btn-name {
        font-size: 0.76rem;
    }

    /* Quick bar */
    .pos-quick-bar {
        flex-wrap: wrap;
        gap: 8px 6px;
        padding: 6px 8px;
    }
    .pos-input-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 3px !important;
        min-width: 0 !important;
    }
    .pos-input-group-animal,
    .pos-input-group-monto {
        flex: 1 1 calc(50% - 4px) !important;
    }
    .pos-label {
        font-size: 0.72rem !important;
        margin-bottom: 0 !important;
        white-space: nowrap;
    }
    .pos-input-group-animal .pos-input-prominent,
    .pos-input-group-monto .pos-input-prominent {
        width: 100% !important;
        max-width: 100% !important;
        padding: 6px 8px !important;
        font-size: 0.95rem !important;
    }
    .pos-btn-add {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 2px;
        padding: 9px 12px;
        font-size: 0.92rem;
        justify-content: center;
    }

    /* Animal grid - 4 Columns on Mobile Phones */
    .pos-animal-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 4px !important;
    }
    .pos-animal-card {
        min-height: 64px;
        padding: 4px 2px;
        border-radius: 6px;
    }
    .pos-animal-num {
        font-size: 0.95rem !important;
    }
    .pos-animal-name {
        font-size: 0.66rem !important;
        line-height: 1.05 !important;
    }
    .pos-animal-icon {
        font-size: 1.35rem !important;
        margin: 1px 0 !important;
    }

    /* Triples Numpad - 4 Columns */
    .pos-numpad-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 4px !important;
    }
    .pos-num-btn {
        font-size: 1.25rem !important;
        padding: 12px 4px !important;
        border-radius: 8px !important;
    }
}

@page {
    margin: 0 !important;
    size: auto;
}

@media print {
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }
    body * {
        visibility: hidden !important;
    }
    #thermalTicketModal, #thermalTicketModal * {
        visibility: visible !important;
    }
    #thermalTicketModal {
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #000 !important;
        z-index: 999999 !important;
    }
    .thermal-receipt {
        width: 100% !important;
        max-width: 80mm !important;
        margin: 0 auto !important;
        font-family: 'Courier New', Courier, monospace !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
        color: #000 !important;
        background: #fff !important;
        padding: 4px 6px !important;
    }
    .thermal-receipt.paper-58mm {
        max-width: 58mm !important;
        font-size: 10px !important;
        padding: 2px 4px !important;
    }
    .thermal-center {
        text-align: center !important;
    }
    .thermal-divider {
        border-top: 1px dashed #000 !important;
        margin: 4px 0 !important;
    }
    .thermal-double-divider {
        border-top: 2px solid #000 !important;
        margin: 4px 0 !important;
    }
}


/* ==========================================================================
   OPTIMIZACIONES DE HARDWARE Y MEMORIA PARA EQUIPOS Y CELULARES OBSOLETOS
   ========================================================================== */
.pos-animal-grid,
.pos-animal-grid-face {
    contain: layout style paint;
    content-visibility: auto;
}

.pos-animal-card {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.pos-btn-action-printer {
    background: #0f1c30 !important;
    border: 1px solid #1e3a5f !important;
    color: #38bdf8 !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    padding: 3px 8px !important;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.pos-btn-action-printer:hover {
    background: #162a47 !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
}

.pos-btn-mobile-printer {
    background: #0f172a;
    border: 1.5px solid #0284c7;
    color: #38bdf8;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.1s ease;
}
.pos-btn-mobile-printer:active {
    transform: scale(0.92);
}
.pos-btn-mobile-printer.connected {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
}

/* Pos Animal Card Illustrated Media (WebP Official & B&W Silhouettes) */
.pos-animal-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
    transition: transform 0.15s ease;
    vertical-align: middle;
    pointer-events: none;
}
.pos-animal-card:hover .pos-animal-img {
    transform: scale(1.08);
}
.pos-animal-card.selected .pos-animal-img {
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.8));
}
@media (max-width: 991.98px) {
    /* Desactivar drop-shadow pesado en móviles de baja gama para fluidez a 60 FPS */
    .pos-animal-img {
        filter: none !important;
        width: 44px;
        height: 44px;
    }
    .pos-animal-card {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    }
}

/* Step 1 V2: Modalidades, Combinaciones & Sub-bar de Terminales */
.pos-step-modalidad-v2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: #090e1a;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    padding: 8px 12px;
}

.pos-modalidad-header-row {
    width: 100%;
}

.pos-mult-tag {
    font-size: 0.72rem;
    opacity: 0.88;
    font-family: monospace;
    margin-left: 2px;
}

.pos-terminal-subbar {
    background: #060a13;
    border: 1px solid #1a2538;
    border-radius: 6px;
    padding: 6px 10px !important;
}

.pos-btn-con-terminal {
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    background: #111a2e !important;
    border: 1.5px solid #28374d !important;
    color: #94a3b8 !important;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.pos-btn-con-terminal:hover {
    border-color: var(--pos-emerald) !important;
    color: #f8fafc !important;
    background: #18253f !important;
}

.pos-btn-con-terminal.active {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%) !important;
    border-color: var(--pos-emerald) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
}

.pos-submode-btn {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    background: #0e1626 !important;
    border: 1px solid #1e2c44 !important;
    color: #cbd5e1 !important;
    cursor: pointer;
    transition: all 0.12s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.pos-submode-btn:hover {
    border-color: var(--pos-emerald) !important;
    color: #fff !important;
    background: #18253f !important;
}

.pos-submode-btn.active {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.45) !important;
}

.pos-terminal-btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}


/* Modalidad V2 Layout Reordered */
.pos-step-modalidad-v2 {
    background: #090e1a;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    padding: 8px 12px;
}
.pos-mode-section-label {
    min-width: 80px;
    letter-spacing: 0.5px;
}
.pos-mult-tag {
    font-size: 0.72rem;
    opacity: 0.88;
    font-family: monospace;
    margin-left: 2px;
}
.pos-btn-con-terminal {
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    background: #111a2e !important;
    border: 1.5px solid #28374d !important;
    color: #94a3b8 !important;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.pos-btn-con-terminal:hover {
    border-color: var(--pos-emerald) !important;
    color: #f8fafc !important;
    background: #18253f !important;
}
.pos-btn-con-terminal.active {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%) !important;
    border-color: var(--pos-emerald) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
}
.pos-submode-btn {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    background: #0e1626 !important;
    border: 1.5px solid #1e2c44 !important;
    color: #cbd5e1 !important;
    cursor: pointer;
    transition: all 0.12s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.pos-submode-btn:hover {
    border-color: var(--pos-emerald) !important;
    color: #fff !important;
    background: #18253f !important;
}
.pos-submode-btn.active {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.45) !important;
}
.pos-terminal-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}


/* ==========================================================================
   MASTER CUSTOM SCROLLBARS & HIGHLIGHTED ARROW BUTTONS (GOLD / DORADO THEME)
   ========================================================================== */

/* 1. Base Firefox scrollbar styling (All Gold / Dorado) */
.pos-animal-grid-wrapper,
.pos-ticket-body,
#posTriplesTicketBody,
.pos-games-grid,
.pos-games-slider,
.pos-tabs-header,
.pos-draws-wrap,
.pos-draws-slider,
.pos-chips-scroll,
.pos-workspace-container * {
    scrollbar-width: thin !important;
    scrollbar-color: #f59e0b #080f1d !important;
}

/* 2. WebKit Scrollbar Sizing */
.pos-animal-grid-wrapper::-webkit-scrollbar,
.pos-ticket-body::-webkit-scrollbar,
#posTriplesTicketBody::-webkit-scrollbar,
.pos-workspace-container *::-webkit-scrollbar:vertical {
    width: 12px !important;
}

.pos-games-grid::-webkit-scrollbar,
.pos-games-slider::-webkit-scrollbar,
.pos-tabs-header::-webkit-scrollbar,
.pos-draws-wrap::-webkit-scrollbar,
.pos-draws-slider::-webkit-scrollbar,
.pos-chips-scroll::-webkit-scrollbar,
.pos-workspace-container *::-webkit-scrollbar:horizontal {
    height: 11px !important;
}

/* Tracks */
.pos-animal-grid-wrapper::-webkit-scrollbar-track,
.pos-ticket-body::-webkit-scrollbar-track,
#posTriplesTicketBody::-webkit-scrollbar-track,
.pos-games-grid::-webkit-scrollbar-track,
.pos-games-slider::-webkit-scrollbar-track,
.pos-tabs-header::-webkit-scrollbar-track,
.pos-draws-wrap::-webkit-scrollbar-track,
.pos-draws-slider::-webkit-scrollbar-track,
.pos-chips-scroll::-webkit-scrollbar-track,
.pos-workspace-container *::-webkit-scrollbar-track {
    background: #080f1d !important;
    border-radius: 4px !important;
    border: 1px solid #131f37 !important;
}

/* Thumbs: Dorado / Gold Accent */
.pos-animal-grid-wrapper::-webkit-scrollbar-thumb,
.pos-ticket-body::-webkit-scrollbar-thumb,
#posTriplesTicketBody::-webkit-scrollbar-thumb,
.pos-workspace-container *::-webkit-scrollbar-thumb:vertical {
    background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%) !important;
    border: 2px solid #080f1d !important;
    border-radius: 6px !important;
}
.pos-animal-grid-wrapper::-webkit-scrollbar-thumb:hover,
.pos-ticket-body::-webkit-scrollbar-thumb:hover,
#posTriplesTicketBody::-webkit-scrollbar-thumb:hover,
.pos-workspace-container *::-webkit-scrollbar-thumb:vertical:hover {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%) !important;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6) !important;
}

.pos-games-grid::-webkit-scrollbar-thumb,
.pos-games-slider::-webkit-scrollbar-thumb,
.pos-tabs-header::-webkit-scrollbar-thumb,
.pos-draws-wrap::-webkit-scrollbar-thumb,
.pos-draws-slider::-webkit-scrollbar-thumb,
.pos-chips-scroll::-webkit-scrollbar-thumb,
.pos-workspace-container *::-webkit-scrollbar-thumb:horizontal {
    background: linear-gradient(90deg, #f59e0b 0%, #b45309 100%) !important;
    border: 2px solid #080f1d !important;
    border-radius: 6px !important;
}
.pos-games-grid::-webkit-scrollbar-thumb:hover,
.pos-games-slider::-webkit-scrollbar-thumb:hover,
.pos-tabs-header::-webkit-scrollbar-thumb:hover,
.pos-draws-wrap::-webkit-scrollbar-thumb:hover,
.pos-draws-slider::-webkit-scrollbar-thumb:hover,
.pos-chips-scroll::-webkit-scrollbar-thumb:hover,
.pos-workspace-container *::-webkit-scrollbar-thumb:horizontal:hover {
    background: linear-gradient(90deg, #fbbf24 0%, #d97706 100%) !important;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6) !important;
}

/* 3. VERTICAL ARROWS: DORADO / AMBAR (#f59e0b) */
.pos-animal-grid-wrapper::-webkit-scrollbar-button,
.pos-ticket-body::-webkit-scrollbar-button,
#posTriplesTicketBody::-webkit-scrollbar-button,
.pos-workspace-container *::-webkit-scrollbar-button:vertical {
    display: block !important;
    width: 12px !important;
    height: 16px !important;
    background-color: #0c1626 !important;
    border: 1px solid #d97706 !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 8px 8px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

/* Flecha Arriba (Decrement) */
.pos-animal-grid-wrapper::-webkit-scrollbar-button:vertical:decrement,
.pos-ticket-body::-webkit-scrollbar-button:vertical:decrement,
#posTriplesTicketBody::-webkit-scrollbar-button:vertical:decrement,
.pos-workspace-container *::-webkit-scrollbar-button:vertical:decrement {
    border-radius: 4px 4px 0 0 !important;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBvbHlnb24gZmlsbD0iI2Y1OWUwYiIgcG9pbnRzPSI4LDMgMTQsMTEgMiwxMSIvPjwvc3ZnPg==') !important;
}

.pos-animal-grid-wrapper::-webkit-scrollbar-button:vertical:decrement:hover,
.pos-ticket-body::-webkit-scrollbar-button:vertical:decrement:hover,
#posTriplesTicketBody::-webkit-scrollbar-button:vertical:decrement:hover,
.pos-workspace-container *::-webkit-scrollbar-button:vertical:decrement:hover {
    background-color: #f59e0b !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.85) !important;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBvbHlnb24gZmlsbD0iIzAwMDAwMCIgcG9pbnRzPSI4LDMgMTQsMTEgMiwxMSIvPjwvc3ZnPg==') !important;
}

/* Flecha Abajo (Increment) */
.pos-animal-grid-wrapper::-webkit-scrollbar-button:vertical:increment,
.pos-ticket-body::-webkit-scrollbar-button:vertical:increment,
#posTriplesTicketBody::-webkit-scrollbar-button:vertical:increment,
.pos-workspace-container *::-webkit-scrollbar-button:vertical:increment {
    border-radius: 0 0 4px 4px !important;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBvbHlnb24gZmlsbD0iI2Y1OWUwYiIgcG9pbnRzPSI4LDEzIDIsNSAxNCw1Ii8+PC9zdmc+') !important;
}

.pos-animal-grid-wrapper::-webkit-scrollbar-button:vertical:increment:hover,
.pos-ticket-body::-webkit-scrollbar-button:vertical:increment:hover,
#posTriplesTicketBody::-webkit-scrollbar-button:vertical:increment:hover,
.pos-workspace-container *::-webkit-scrollbar-button:vertical:increment:hover {
    background-color: #f59e0b !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.85) !important;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBvbHlnb24gZmlsbD0iIzAwMDAwMCIgcG9pbnRzPSI4LDEzIDIsNSAxNCw1Ii8+PC9zdmc+') !important;
}

/* 4. HORIZONTAL ARROWS: DORADO / AMBAR (#f59e0b) */
.pos-games-grid::-webkit-scrollbar-button,
.pos-games-slider::-webkit-scrollbar-button,
.pos-tabs-header::-webkit-scrollbar-button,
.pos-draws-wrap::-webkit-scrollbar-button,
.pos-draws-slider::-webkit-scrollbar-button,
.pos-chips-scroll::-webkit-scrollbar-button,
.pos-workspace-container *::-webkit-scrollbar-button:horizontal {
    display: block !important;
    width: 18px !important;
    height: 11px !important;
    background-color: #0c1626 !important;
    border: 1px solid #d97706 !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 8px 8px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

/* Flecha Izquierda (Decrement) */
.pos-games-grid::-webkit-scrollbar-button:horizontal:decrement,
.pos-games-slider::-webkit-scrollbar-button:horizontal:decrement,
.pos-tabs-header::-webkit-scrollbar-button:horizontal:decrement,
.pos-draws-wrap::-webkit-scrollbar-button:horizontal:decrement,
.pos-draws-slider::-webkit-scrollbar-button:horizontal:decrement,
.pos-chips-scroll::-webkit-scrollbar-button:horizontal:decrement,
.pos-workspace-container *::-webkit-scrollbar-button:horizontal:decrement {
    border-radius: 4px 0 0 4px !important;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBvbHlnb24gZmlsbD0iI2Y1OWUwYiIgcG9pbnRzPSI0LDggMTIsMiAxMiwxNCIvPjwvc3ZnPg==') !important;
}

.pos-games-grid::-webkit-scrollbar-button:horizontal:decrement:hover,
.pos-games-slider::-webkit-scrollbar-button:horizontal:decrement:hover,
.pos-tabs-header::-webkit-scrollbar-button:horizontal:decrement:hover,
.pos-draws-wrap::-webkit-scrollbar-button:horizontal:decrement:hover,
.pos-draws-slider::-webkit-scrollbar-button:horizontal:decrement:hover,
.pos-chips-scroll::-webkit-scrollbar-button:horizontal:decrement:hover,
.pos-workspace-container *::-webkit-scrollbar-button:horizontal:decrement:hover {
    background-color: #f59e0b !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.85) !important;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBvbHlnb24gZmlsbD0iIzAwMDAwMCIgcG9pbnRzPSI0LDggMTIsMiAxMiwxNCIvPjwvc3ZnPg==') !important;
}

/* Flecha Derecha (Increment) */
.pos-games-grid::-webkit-scrollbar-button:horizontal:increment,
.pos-games-slider::-webkit-scrollbar-button:horizontal:increment,
.pos-tabs-header::-webkit-scrollbar-button:horizontal:increment,
.pos-draws-wrap::-webkit-scrollbar-button:horizontal:increment,
.pos-draws-slider::-webkit-scrollbar-button:horizontal:increment,
.pos-chips-scroll::-webkit-scrollbar-button:horizontal:increment,
.pos-workspace-container *::-webkit-scrollbar-button:horizontal:increment {
    border-radius: 0 4px 4px 0 !important;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBvbHlnb24gZmlsbD0iI2Y1OWUwYiIgcG9pbnRzPSIxMiw4IDQsMiA0LDE0Ii8+PC9zdmc+') !important;
}

.pos-games-grid::-webkit-scrollbar-button:horizontal:increment:hover,
.pos-games-slider::-webkit-scrollbar-button:horizontal:increment:hover,
.pos-tabs-header::-webkit-scrollbar-button:horizontal:increment:hover,
.pos-draws-wrap::-webkit-scrollbar-button:horizontal:increment:hover,
.pos-draws-slider::-webkit-scrollbar-button:horizontal:increment:hover,
.pos-chips-scroll::-webkit-scrollbar-button:horizontal:increment:hover,
.pos-workspace-container *::-webkit-scrollbar-button:horizontal:increment:hover {
    background-color: #f59e0b !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.85) !important;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBvbHlnb24gZmlsbD0iIzAwMDAwMCIgcG9pbnRzPSIxMiw4IDQsMiA0LDE0Ii8+PC9zdmc+') !important;
}

/* 5. Highlighted Pagination Arrow Buttons (Gold Accents) */
.pos-page-arrow-btn {
    padding: 5px 14px !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #f59e0b !important;
    background: #131c2e !important;
    border: 1.5px solid #d97706 !important;
    border-radius: 6px !important;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3) !important;
    cursor: pointer;
    transition: all 0.15s ease !important;
}

.pos-page-arrow-btn:hover:not(.disabled) {
    border-color: #fbbf24 !important;
    color: #000000 !important;
    background: #f59e0b !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.7) !important;
    transform: scale(1.05);
}


/* ==========================================================================
   TICKETS CONSULTATION & REPRINT MODAL (HIGH VISIBILITY PRO THEME)
   ========================================================================== */
.pos-recent-tickets-popup {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    border: 1.5px solid #2b3d68 !important;
    box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.95), 0 0 35px rgba(59, 130, 246, 0.25) !important;
    border-radius: 16px !important;
    padding: 1.25rem 1.5rem !important;
    background: #0b1329 !important;
}

.pos-tickets-toolbar {
    background: #111e38 !important;
    border: 1px solid #233557 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.pos-neutral-table {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.pos-neutral-table th {
    white-space: nowrap !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    font-size: 0.76rem !important;
    color: #94a3b8 !important;
    border-color: #1e2e4a !important;
    padding: 10px 12px !important;
}

.pos-neutral-table td {
    border-color: #152238 !important;
    vertical-align: middle !important;
    padding: 8px 12px !important;
}

.pos-ticket-row:hover {
    background-color: #13223f !important;
}

.pos-tickets-table-responsive {
    border: 1px solid #1e2e4a !important;
    border-radius: 10px !important;
    background: #080f1e !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

.pos-tickets-table-responsive::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

.pos-tickets-table-responsive::-webkit-scrollbar-track {
    background: #080f1e !important;
}

.pos-tickets-table-responsive::-webkit-scrollbar-thumb {
    background: #233557 !important;
    border-radius: 4px !important;
}

.pos-tickets-table-responsive::-webkit-scrollbar-thumb:hover {
    background: #f59e0b !important;
}

.pos-currency-tabs-bar {
    display: inline-flex;
    align-items: center;
    background: #080f1d;
    border: 1px solid #233557;
    border-radius: 8px;
    padding: 2px 4px;
    gap: 3px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.pos-cur-pill {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1.25;
    letter-spacing: 0.3px;
    transition: all 0.15s ease-in-out;
    outline: none;
    user-select: none;
}

.pos-cur-pill:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.pos-cur-pill.active {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.thermal-receipt-preview {
    user-select: text;
}

/* ==========================================================================
   INTERACTIVE CURRENCY PILLS (MODAL TICKETS & VISTAS POS)
   ========================================================================== */
.pos-currency-filter-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pos-currency-tabs-bar {
    display: inline-flex;
    align-items: center;
    background: #080f1d;
    border: 1px solid #1e293b;
    border-radius: 7px;
    padding: 2px 3px;
    gap: 2px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.pos-cur-pill {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 5px;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1.25;
    letter-spacing: 0.3px;
    transition: all 0.15s ease-in-out;
    outline: none;
    user-select: none;
}

.pos-cur-pill:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.pos-cur-pill.active {
    background: #059669 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 8px rgba(16, 185, 129, 0.35) !important;
}

/* Non-invasive buttons for ticket emission modal */
.pos-emitted-ticket-popup {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.pos-btn-action-print {
    padding: 7px 14px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    border: 1.5px solid #059669 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    color: #34d399 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    outline: none !important;
}
.pos-btn-action-print:hover {
    background: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
}

.pos-emitted-actions-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 14px !important;
    margin-top: 14px !important;
    width: 100% !important;
}

.pos-modal-btn-print {
    padding: 9px 22px !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    border: 1.5px solid #059669 !important;
    background: rgba(16, 185, 129, 0.16) !important;
    color: #34d399 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.pos-modal-btn-print:hover {
    background: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5) !important;
}

.pos-modal-btn-repeat {
    padding: 9px 22px !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    border: 1.5px solid #d97706 !important;
    background: rgba(245, 158, 11, 0.16) !important;
    color: #fbbf24 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.pos-modal-btn-repeat:hover {
    background: #d97706 !important;
    color: #000000 !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5) !important;
}


/* =========================================================
   MOBILE DRAWER ACTION TRIO (Volver | Agregar | Jugar) & QUICK CHIPS
   ========================================================= */
.pos-drawer-actions-trio {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 6px;
    width: 100%;
}

.pos-drawer-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    min-height: 42px;
}

/* 1. Volver (Amarillo / Dorado) */
.pos-btn-back-yellow {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #0b1120 !important;
    border: 1px solid #fbbf24 !important;
}
.pos-btn-back-yellow:hover,
.pos-btn-back-yellow:active {
    background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45) !important;
}

/* 2. Agregar (Azul / Cian) */
.pos-btn-add-blue {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: 1px solid #60a5fa !important;
}
.pos-btn-add-blue:hover,
.pos-btn-add-blue:active {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.45) !important;
}

/* 3. Jugar (Verde Esmeralda Prominente) */
.pos-btn-play-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: 1px solid #34d399 !important;
    font-size: 0.92rem !important;
    font-weight: 900 !important;
}
.pos-btn-play-green:hover,
.pos-btn-play-green:active {
    background: linear-gradient(135deg, #34d399 0%, #047857 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.55) !important;
}

/* Quick Amount Chips in Drawer */
.pos-quick-chips-row {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.pos-quick-chips-row::-webkit-scrollbar {
    display: none;
}

.pos-quick-chip {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.12s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.pos-quick-chip:hover,
.pos-quick-chip.active {
    background: #3b82f6;
    border-color: #60a5fa;
    color: #fff;
}

.pos-ticket-calc-summary {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
}

.pos-ticket-calc-summary strong {
    color: #10b981;
    font-size: 0.95rem;
    font-family: 'Roboto Mono', monospace;
}


/* =========================================================
   PENDING FIGURES SELECTION IN DRAWER / TICKET
   ========================================================= */
.pos-pending-selection-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.45);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.pos-pending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 800;
    color: #93c5fd;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pos-pending-header small {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: none;
}

.pos-pending-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pos-pending-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 99, 235, 0.22);
    border: 1px solid rgba(96, 165, 250, 0.5);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.8rem;
    color: #f1f5f9;
    font-weight: 700;
    transition: all 0.12s ease;
}

.pos-pending-chip .badge-num {
    background: #2563eb;
    color: #ffffff;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.74rem;
    font-family: 'Roboto Mono', monospace;
    font-weight: 800;
}

.pos-pending-chip .chip-name {
    color: #e2e8f0;
}

.pos-pending-chip .remove-btn {
    cursor: pointer;
    color: #94a3b8;
    margin-left: 2px;
    font-size: 0.75rem;
    padding: 2px;
    border-radius: 3px;
    transition: all 0.12s ease;
}

.pos-pending-chip .remove-btn:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.2);
}

.pos-confirmed-header {
    font-size: 0.76rem;
    font-weight: 800;
    color: #10b981;
    margin-top: 10px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
}

/* =========================================================
   MOBILE DUAL-MODE FLOW (SELECCIÓN -> AGREGAR MONTO -> BOLETO -> JUGAR)
   ========================================================= */

.pos-mobile-bar-action-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.pos-btn-mobile-add-amount {
    width: 100%;
    max-width: 320px;
    height: 44px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0b1120;
    border: 1.5px solid #fbbf24;
    border-radius: 22px;
    font-size: 0.95rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: all 0.15s ease;
}

.pos-btn-mobile-add-amount:hover,
.pos-btn-mobile-add-amount:active {
    background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.6);
}

.pos-btn-mobile-view-cart {
    width: 100%;
    max-width: 320px;
    height: 44px;
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    color: #ffffff;
    border: 1.5px solid #10b981;
    border-radius: 22px;
    font-size: 0.9rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.15s ease;
}

.pos-btn-mobile-view-cart:hover,
.pos-btn-mobile-view-cart:active {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

.pos-mobile-bar-empty-hint {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pos-drawer-actions-amount,
.pos-drawer-actions-ticket {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 6px;
    width: 100%;
}

.pos-btn-add-to-ticket-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: 1px solid #34d399 !important;
    font-size: 0.9rem !important;
    font-weight: 900 !important;
}

.pos-btn-add-to-ticket-green:hover,
.pos-btn-add-to-ticket-green:active {
    background: linear-gradient(135deg, #34d399 0%, #047857 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.55) !important;
}

.pos-drawer-amount-preview {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.pos-drawer-amount-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.pos-drawer-amount-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: 90px;
    overflow-y: auto;
}

.pos-preview-chip {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.78rem;
    color: #f1f5f9;
}

.pos-preview-chip strong {
    color: #fbbf24;
    margin-right: 2px;
}

.pos-ticket-total-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 78, 59, 0.35) 100%);
    border: 1.5px solid #10b981;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pos-ticket-total-banner-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #6ee7b7;
    text-transform: uppercase;
}

.pos-ticket-total-banner-amount {
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
    font-family: 'Roboto Mono', monospace;
}


/* ==========================================================================
   POS CONTAINERS FLEX ARCHITECTURE (ANIMALITOS, TRIPLES, PARLEY IFRAME)
   ========================================================================== */
.pos-mode #posNativeContainer,
.pos-mode #posTriplesContainer,
.pos-mode #posIframeContainer {
    width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: var(--pos-bg) !important;
}

.pos-mode #posNativeContainer.d-none,
.pos-mode #posTriplesContainer.d-none,
.pos-mode #posIframeContainer.d-none {
    display: none !important;
}

.pos-mode #posTriplesContainer #posTriplesWorkspace,
.pos-mode #posNativeContainer #posAnimalitosWorkspace {
    width: 100% !important;
    height: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    overflow: hidden !important;
}

.pos-mode #posIframeContainer #frame-container {
    width: 100% !important;
    height: 100% !important;
    flex: 1 1 auto !important;
    min-height: calc(100vh - 120px) !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--pos-bg) !important;
}

.pos-mode #posIframeContainer iframe#frame {
    width: 100% !important;
    height: 100% !important;
    flex: 1 1 auto !important;
    min-height: calc(100vh - 120px) !important;
    border: none !important;
    background: var(--pos-bg) !important;
}
