/* Estilos de Mezcal 11 Tradiciones (antes dentro de index.html) */
        .custom-scrollbar::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        .custom-scrollbar::-webkit-scrollbar-track {
            background: #121212;
        }
        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: #d4af37;
            border-radius: 4px;
        }
        .bg-gold { background-color: #d4af37; }
        .text-gold { color: #d4af37; }
        .border-gold { border-color: #d4af37; }
        .hover\:bg-gold-dark:hover { background-color: #b8952b; }
        /* Móvil: evita el zoom automático al escribir en campos */
        @media (max-width: 640px) {
            input, select, textarea { font-size: 16px !important; }
        }

        /* ===== Botones de método de pago (se sombrea el seleccionado) ===== */
        .pay-input { position: absolute; opacity: 0; pointer-events: none; }
        .pay-btn {
            padding: .7rem .5rem; text-align: center; border-radius: .6rem;
            border: 1px solid #3f3f46; background: #000; color: #a1a1aa;
            font-size: .8rem; font-weight: 700; transition: all .15s ease;
        }
        .pay-btn:hover { border-color: #d4af37; color: #fff; }
        .pay-input:checked + .pay-btn {
            background: #d4af37; color: #000; border-color: #d4af37;
            box-shadow: 0 0 0 3px rgba(212,175,55,.35), 0 4px 14px rgba(212,175,55,.25);
        }
        .pay-input:focus-visible + .pay-btn { outline: 2px solid #fff; outline-offset: 2px; }
        .pay-error .pay-btn { border-color: #fff; animation: payshake .3s; }
        @keyframes payshake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

        /* ===== Calendario mensual ===== */
        .cal-day { aspect-ratio: 1 / 1; font-size: 12px; font-weight: 600; border-radius: 10px; color: #3f3f46; background: transparent;
            display: flex; align-items: center; justify-content: center; transition: all .12s ease; }
        .cal-day:hover { background: #f1efe8; }
        .cal-has { background: #d4af37; color: #000; font-weight: 800; }
        .cal-has:hover { background: #b8952b; }
        .cal-today { box-shadow: inset 0 0 0 2px #111; }
        .cal-sel { outline: 2px solid #111; outline-offset: 1px; }

        /* ===== TEMA CLARO (blanco, negro y dorado) ===== */
        body { background: #f6f5f1; color: #111; }

        /* ===== Tarjetas que no crecen: toman la altura de su vecina y la lista hace scroll adentro ===== */
        .fill-card { display: flex; flex-direction: column; overflow: hidden; height: 24rem; }
        .fill-card > h3, .fill-card > div:not(.fill-scroll) { flex-shrink: 0; }
        .fill-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
        .fill-scroll > table { min-height: 100%; }
        .fill-scroll thead th { position: sticky; top: 0; z-index: 1; background: #f0eee6; }
        .fill-card.hidden { display: none; }
        .fill-card-scroll { overflow-y: auto; max-height: 28rem; display: flex; flex-direction: column; }
        .fill-card-scroll > * { flex-shrink: 0; }
        .fill-card-scroll > .vacio-centrado { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .8rem; color: #8a8478; min-height: 6rem; }
        @media (min-width: 1024px) {
            .fill-card { height: auto; contain: size; }
            .fill-card-scroll { max-height: none; contain: size; }
        }
        .app-zone .bg-black { background: #f7f6f2; }
        .app-zone .bg-zinc-900, .app-zone .bg-zinc-900\/60 { background: #fff; }
        .app-zone .bg-zinc-800 { background: #eceae3; }
        .app-zone .hover\:bg-zinc-800:hover, .app-zone .hover\:bg-zinc-700:hover { background: #e2dfd5; }
        .app-zone thead.bg-zinc-900, .app-zone thead.bg-black { background: #f1efe8; }
        .app-zone .text-white { color: #111; }
        .app-zone .hover\:text-white:hover { color: #000; }
        .app-zone .text-zinc-300 { color: #3f3f46; }
        .app-zone .text-zinc-400 { color: #52525b; }
        .app-zone .text-zinc-500 { color: #6b6b73; }
        .app-zone .text-zinc-600 { color: #8a8a92; }
        .app-zone .text-gold { color: #8a6d0f; }
        .app-zone .bg-gold, .app-zone .bg-gold * { color: #000; }
        .app-zone .border-zinc-800 { border-color: #e7e4db; }
        .app-zone .border-zinc-700 { border-color: #d3cfc2; }
        .app-zone .divide-zinc-800 > * + * { border-color: #ece9e0; }
        .app-zone input, .app-zone select, .app-zone textarea { background: #fff; color: #111; border-color: #d3cfc2; }
        .app-zone input:focus, .app-zone select:focus, .app-zone textarea:focus { outline: none; border-color: #d4af37; box-shadow: 0 0 0 3px rgba(212,175,55,.25); }
        .app-zone .pay-btn { background: #fff; color: #52525b; border-color: #d3cfc2; }
        .app-zone .pay-input:checked + .pay-btn { background: #d4af37; color: #000; border-color: #d4af37; }
        .app-zone .pay-btn:hover { border-color: #d4af37; color: #000; }
        .app-zone .rounded-xl { border-radius: 1rem; }
        .app-zone [class*="bg-zinc-900"][class*="rounded"] { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(0,0,0,.05); }
        header.app-zone h1 { color: #111; }
        header.app-zone { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-color: #e7e4db; }
        .custom-scrollbar::-webkit-scrollbar-thumb { background: #cfcabb; }

        /* ===== Móvil / tablet ===== */
        #pos-bar { display: none; }
        @media (max-width: 1023px) {
            main.app-zone { padding-bottom: 6.5rem; }
            #admin-nav-tabs { position: relative !important; width: 100% !important; margin: 0; flex-wrap: nowrap !important; justify-content: flex-start !important;
                gap: .35rem; padding: .3rem; border-radius: .9rem !important; border: 1px solid #e7e4db; background: #f7f6f2 !important;
                overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
            #admin-nav-tabs::-webkit-scrollbar { display: none; }
            #admin-nav-tabs button { flex: 0 0 auto !important; display: flex; flex-direction: row; align-items: center; gap: 6px; margin: 0 !important; white-space: nowrap;
                font-size: 12px; padding: .5rem .9rem !important; border-radius: .7rem !important; scroll-snap-align: center; }
            #admin-nav-tabs button i { font-size: 14px; margin: 0 !important; }
            #pos-bar { display: flex; position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); z-index: 45;
                align-items: center; justify-content: space-between; background: #111; color: #fff; border-radius: 1rem; padding: .85rem 1.1rem;
                box-shadow: 0 8px 24px rgba(0,0,0,.25); font-weight: 700; }
            #pos-bar.vacia { display: none; }
            #pos-bar { background: #d4af37 !important; }
            #pos-bar, #pos-bar * { color: #000 !important; }
            .app-zone input, .app-zone select, .app-zone textarea { font-size: 16px; }
            .app-zone button, .app-zone .pay-btn { min-height: 40px; }
            .app-zone table th, .app-zone table td { padding: .55rem .5rem; }
        }
        @media (max-width: 640px) { .app-zone h2 { font-size: 1rem; } }
    

/* Lector de códigos */
#scan-reader { max-height: 42vh; overflow: hidden; } #scan-reader video { max-height: 42vh; width: 100%; object-fit: cover; }

/* Asignación de vendedores: tarjetas del mismo tamaño que se reparten todo el ancho (sin huecos) */
.asig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1rem; align-items: stretch; }
.asig-card { display: flex; flex-direction: column; gap: 0.85rem; height: 100%; }
.asig-lista { flex: 1 1 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.5rem; align-content: stretch; min-height: 6.5rem; }
.asig-lista > .asig-pv { display: flex; flex-direction: column; justify-content: center; }
.asig-vacio { display: flex; align-items: center; justify-content: center; text-align: center; padding: 0.75rem; grid-column: 1 / -1; }
/* Lista de puntos de venta: se reparte el ancho disponible */
.pv-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 0.5rem; }
