/* Estructura muy similar al POS "pedidos" (3 columnas + modal) :contentReference[oaicite:2]{index=2} */

* {
    box-sizing: border-box;
    font-family: Inter, system-ui, sans-serif;
}

body {
    background: #f4f5f7;
}



.pos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid #ddd;
}

.tipo-pedido button {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: white;
    margin-left: 6px;
    cursor: pointer;
}

.tipo-pedido .active {
    background: #7c3aed;
    color: white;
    border-color: #7c3aed;
}

.pos-main {
    display: grid;
    grid-template-columns: 180px 1fr 380px;
    height: calc(100vh - 70px);
}

/* CATEGORÍAS */
.categorias {
    background: white;
    padding: 12px;
    border-right: 1px solid #ddd;
}

.side-title {
    font-weight: 900;
    margin-bottom: 10px;
}

.categorias button {
    width: 100%;
    margin-bottom: 6px;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: #eee;
    cursor: pointer;
}

.categorias .active {
    background: #7c3aed;
    color: white;
}

/* PRODUCTOS */
.productos {
    padding: 16px;
}

.prod-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: white;
    outline: none;
    color: #000;
    /* NUEVO */
}

.input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}

.pill {
    white-space: nowrap;
    background: #111827;
    color: white;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
}

.producto {
    background: white;
    padding: 14px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.btn-add {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #22c55e;
    color: white;
    font-size: 22px;
    cursor: pointer;
}



.pedido-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-clear {
    border: 1px solid #ddd;
    background: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
}


.item-pedido {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 10px;

    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
}

.item-pedido:hover {
    transform: translateY(-2px);

    /* REEMPLAZO: glow celeste como categorías */
    box-shadow:
        0 0 0 2px rgba(53, 184, 199, .45),
        0 0 10px rgba(53, 184, 199, .35),
        0 0 20px rgba(53, 184, 199, .25);
}

.item-pedido small {
    display: block;
    color: #6b7280;
    margin-top: 4px;
}

/* ✅ NUEVO: título del producto en negrita negra */
.item-pedido strong {
    font-weight: 1000;
    color: #000;
    font-size: 15px;
}

/* contenedor izquierdo */
.item-left {
    display: flex;
    flex-direction: column;
}

.item-pedido .right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-x {
    border: none;
    background: #ef4444;
    /* rojo */
    color: white;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-x:hover {
    background: #dc2626;
    /* rojo más oscuro */
}



.line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #000 !important;
    /* texto negro */
}

.total {
    font-size: 18px;
    color: #000 !important;
    /* total negro */
}

/* asegura que los montos sean negros */
#subtotal,
#total {
    color: #000 !important;
    font-weight: 900;
}

.lbl {
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 6px;
}

.pagos {
    margin-top: 12px;
}

.pago-box {
    margin-bottom: 10px;
}

.btn-finalizar {
    margin-top: 12px;
    padding: 14px;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 900;
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal.hidden {
    display: none;
}

.modal-box {
    background: white;
    width: 760px;
    max-height: 80vh;
    overflow: auto;
    padding: 18px;
    border-radius: 14px;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 12px;
}

.btn-close {
    border: none;
    background: #ef4444 !important;
    /* ✅ rojo */
    color: #fff !important;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s ease, transform .08s ease;
}

.btn-close:hover {
    background: #dc2626 !important;
    /* rojo más oscuro */
}

.btn-close:active {
    transform: scale(0.98);
}

.grupo {
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
}

/* ✅ NUEVO: borde rojo/verde según MIN requerido */
.grupo.min-bad {
    border: 2px solid #f59e0b !important;
    /* naranjo */
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.grupo.min-ok {
    border: 2px solid #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.grupo-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.grupo h4 {
    margin: 0;
}

.tag {
    margin-left: 8px;
    background: #111827;
    color: white;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.grupo-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;

    /* NUEVO */
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: #fff;
    padding-bottom: 12px;
}

.precio-modal {
    font-size: 20px;
    font-weight: 1000;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.btn {
    border: 1px solid #ddd;
    background: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 900;
}

.btn.primary {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}

/* TOAST */
.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: #111827;
    color: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all .2s ease;
    z-index: 99999;
    max-width: 520px;
    font-weight: 900;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.ok {
    background: #16a34a;
}

.toast.bad {
    background: #dc2626;
}

.empty {
    border: 1px dashed #ddd;
    border-radius: 14px;
    padding: 12px;
    color: #6b7280;
    text-align: center;
    background: #fff;
}

@media (max-width: 1200px) {
    .pos-main {
        grid-template-columns: 1fr;
        height: auto;
    }

    .categorias {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .pedido {
        border-left: none;
        border-top: 1px solid #ddd;
    }

    .modal-box {
        width: 92vw;
    }
}


.pos-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-top {
    border: 1px solid #ddd;
    background: #111827;
    color: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 900;
}

.btn-top:hover {
    filter: brightness(1.05);
}


.voyager .page-title,
.voyager .breadcrumb-container,
.voyager .breadcrumb {
    display: none !important;
}

.breadcrumb,
.breadcrumb-container {
    display: none !important;
}

.btn-switch {
    width: 100%;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #4f46e5;
    padding: 12px 14px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 900;
}

.btn-switch:hover {
    filter: brightness(0.98);
}

.btn-switch.is-save-order {
    background: #16a34a;
    border-color: #15803d;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(22, 163, 74, .28);
}

.btn-switch.is-save-order:hover {
    background: #15803d;
    filter: none;
}

.hidden {
    display: none !important;
}


/* =========================
   VISTA PRODUCTOS: LISTA/GRILLA
========================= */

/* default: lista (no cambiamos nada) */

/* GRILLA: el contenedor se vuelve grid */
body.view-grid #prodList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

/* GRILLA: la tarjeta producto cambia a vertical */
body.view-grid .producto {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
    /* porque el gap del grid ya separa */
}

/* GRILLA: imagen más grande y sin margin-right */
body.view-grid .producto img {
    width: 100% !important;
    height: 120px !important;
    margin-right: 0 !important;
    border-radius: 12px !important;
}

/* GRILLA: botón + al ancho completo (estilo tile) */
body.view-grid .producto .btn-add {
    width: 100%;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
}


.cat-section {
    margin-bottom: 28px;
}

.cat-title {
    margin: 18px 0 12px;
    font-size: 20px;
    font-weight: 1000;
}

/* por defecto (lista): cat-products es columna */
.cat-products {
    display: flex;
    flex-direction: column;
}

/* en grilla: cat-products se vuelve grid */
body.view-grid .cat-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

/* IMPORTANTE: ya no uses el grid en #prodList */
body.view-grid #prodList {
    display: block;
    /* para que no rompa secciones */
}

.producto {
    cursor: pointer;
}

.producto .btn-add {
    cursor: pointer;
}

/* ===================================
   ✨ HOVER NEON VERDE PARA PRODUCTOS
=================================== */

.producto {
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

/* efecto hover */
.producto:hover {
    transform: translateY(-3px);

    /* glow verde */
    box-shadow:
        0 0 0 2px rgba(34, 197, 94, .7),
        0 0 8px rgba(34, 197, 94, .7),
        0 0 20px rgba(34, 197, 94, .55),
        0 0 35px rgba(34, 197, 94, .35);
}

/* borde degradado neon */
.producto::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(45deg,
            #0da5e0,
            #1387d4,
            #16a34a,
            #22c55e);

    /* truco para que sea SOLO borde */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.producto:hover::before {
    opacity: 1;
}

/* ===================================
   ✨ NEON VERDE PARA CATEGORIAS
=================================== */

/* ===================================
   CATEGORIAS ESTILO CELESTE
=================================== */

.categorias button {
    width: 100%;
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 12px;
    border: none;

    /* color base celeste */
    background: #35b8c7;
    color: #fff;
    font-weight: 900;

    cursor: pointer;
    transition: all .25s ease;
}

/* hover */
.categorias button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 2px rgba(53, 184, 199, .45),
        0 0 10px rgba(53, 184, 199, .35),
        0 0 20px rgba(53, 184, 199, .25);
}

/* categoria activa */
.categorias .active {
    background: #2fa9b8 !important;
    color: #fff !important;
    box-shadow:
        0 0 0 2px rgba(53, 184, 199, .65),
        0 0 14px rgba(53, 184, 199, .45),
        0 0 28px rgba(53, 184, 199, .30);
}

.prod-info {
    flex: 1;
}




.voyager footer,
.voyager .app-footer {
    display: none !important;
}

/* ✅ Arreglo layout dentro de Voyager */
html,
body {
    height: 100%;
    margin: 0;
}

/* Voyager mete padding que deja todo “en la mitad” */
.voyager .page-content {
    padding: 0 !important;
}

/* si te queda un padding raro abajo por footer viejo */
.voyager .content-container {
    padding-bottom: 0 !important;
}

/* contenedor general del POS */
.pos-wrap {
    /* ajusta el 60px si tu topbar es más alto */
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

/* header fijo/pegado arriba (opcional pero queda pro) */
.pos-header {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* ✅ la magia: el main ocupa todo lo que sobra */
.pos-main {
    flex: 1 1 auto;
    min-height: 0;

    /* reemplaza tu height viejo */
    height: auto !important;
}

/* ✅ Que NO scrollee el body (así el Pedido no se “pierde”) */
html,
body {
    height: 100%;
}

body {
    margin: 0;
    overflow-y: auto;
}

/* ✅ Voyager mete paddings raros */
.voyager .page-content {
    padding: 0 !important;
}

.voyager .content-container {
    padding-bottom: 0 !important;
}

/* ✅ Estructura: header arriba + main ocupa el resto */
.pos-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

.pos-main {
    /* OJO: cambia esto (pisa tu height viejo) */
    height: calc(100vh - 70px) !important;
    overflow: hidden;
    /* el scroll NO es de la página */
    display: grid;
    grid-template-columns: 180px 1fr 380px;
}

/* ✅ Scroll interno por columna */
.categorias,
.productos,
.pedido {
    overflow: auto;
    min-height: 0;
}

/* ✅ El pedido siempre al lado y visible */
.pedido {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100%;
}

/* ✅ (opcional) deja el listado del pedido scrolleable y totales pegados abajo */
.lista-pedido {
    flex: 1 1 auto;
    overflow: auto;
    min-height: 0;
}

.totales {
    flex: 0 0 auto;
}

/* ✅ altura típica navbar Voyager (ajusta si tu barra es más alta) */
:root {
    --voyager-topbar: 60px;
}

/* deja espacio arriba para la navbar */
.pos-wrap {
    padding-top: var(--voyager-topbar);
}

/* tu header sticky ahora parte bajo la navbar */
.pos-header {
    top: var(--voyager-topbar) !important;
    z-index: 40;
}

/* la navbar de voyager arriba de todo */
.voyager .navbar {
    z-index: 9999 !important;
}

/* =========================
   📱 RESPONSIVE FIX POS
========================= */
@media (max-width: 1024px) {

    .pos-main {
        display: flex;
        flex-direction: column;
        height: auto !important;
        overflow: visible;
    }

    .categorias,
    .productos,
    .pedido {
        width: 100%;
        height: auto;
        overflow: visible;
        position: relative;
    }

    .pedido {
        border-left: none;
        border-top: 1px solid #ddd;
        position: relative;
    }

    .lista-pedido {
        max-height: none;
        overflow: visible;
    }
}







/* ================================
   🟢 CARD POS ESTILO LIMPIO PRO
================================ */

.producto {
    display: flex;
    flex-direction: column;
    /* vertical */
    align-items: center;
    /* centra TODO */
    text-align: center;

    background: #fff;
    border-radius: 14px;

    /* mismo feeling que categorías */
    border: 2px solid rgba(53, 184, 199, .35);

    padding: 12px;
    gap: 8px;

    transition: all .25s ease;
}

/* hover igual que categorias */
.producto:hover {
    transform: translateY(-3px);
    border-color: #35b8c7;

    box-shadow:
        0 0 0 2px rgba(53, 184, 199, .45),
        0 0 10px rgba(53, 184, 199, .35),
        0 0 20px rgba(53, 184, 199, .25);
}

/* ❌ quitamos el neon raro viejo */
.producto::before {
    display: none !important;
}

.producto img {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 !important;
}

.prod-info {
    width: 100%;
    text-align: center;
}




.cat-title {
    font-weight: 1000;
    font-size: 30px;
}


/* =========================
   ✅ LISTA (DEFAULT)
   Card horizontal, NO banner gigante
========================= */

.producto {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;

    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;

    /* borde suave (coherente con categorías) */
    border: 2px solid rgba(53, 184, 199, .25);

    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.producto:hover {
    transform: translateY(-2px);
    border-color: rgba(53, 184, 199, .75);
    box-shadow:
        0 0 0 2px rgba(53, 184, 199, .20),
        0 8px 18px rgba(0, 0, 0, .10);
}

/* ⚠️ mata el borde neon viejo si aún existe */
.producto::before {
    display: none !important;
}

/* imagen chica en LISTA */
.producto img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 !important;
    border: 1px solid #e5e7eb;
    flex: 0 0 auto;
}

/* texto alineado bonito en LISTA */
.prod-info {
    flex: 1;
    text-align: left;
}





/* =========================
   ✅ GRILLA (cuando body.view-grid)
   Card vertical + texto centrado
========================= */

body.view-grid .cat-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

/* card vertical */
body.view-grid .producto {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

/* imagen grande SOLO en grilla */
body.view-grid .producto img {
    width: 100% !important;
    height: 130px !important;
    border-radius: 12px;
}

/* texto centrado SOLO en grilla */
body.view-grid .prod-info {
    width: 100%;
    text-align: center;
}


/* =========================
   ✅ MODAL: RESUMEN A LA DERECHA SIEMPRE
========================= */

#modal .modal-box {
    width: 1100px !important;
    max-width: 96vw !important;
    max-height: 86vh !important;

    /* REEMPLAZO */
    overflow: hidden !important;
    padding: 18px !important;
    display: flex;
    /* NUEVO */
    flex-direction: column;
    /* NUEVO */
}

/* 2 columnas reales */
#modal .modal-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 14px !important;
    align-items: start !important;

    /* NUEVO */
    min-height: 0;
    flex: 1 1 auto;
}

/* ✅ SOLO la izquierda scrollea */
#modal .modal-left {
    min-width: 0;
    max-height: calc(86vh - 160px);
    overflow: auto;
    padding-right: 6px;

    /* NUEVO */
    min-height: 0;
    padding-bottom: 110px;
}


/* ✅ resumen pegado a la derecha */
/* ✅ resumen pegado a la derecha */
#modal .modal-right {
    position: sticky;
    top: 10px;
    align-self: start;

    /* NUEVO */
    max-height: calc(86vh - 160px);
    overflow: auto;
    padding-right: 6px;
    padding-bottom: 110px;
    min-height: 0;
}

/* en pantallas chicas sí se apila */
@media (max-width: 900px) {
    #modal .modal-box {
        overflow: auto !important;
    }

    #modal .modal-grid {
        grid-template-columns: 1fr !important;
    }

    #modal .modal-left {
        max-height: none;
        overflow: visible;
    }

    #modal .modal-right {
        position: relative;
        top: auto;
    }
}


/* =========================
   RESUMEN MODAL (LADO DERECHO)
========================= */

/* título producto */
#modal .res-title {
    font-size: 18px;
    font-weight: 1000;
    color: #111;
    /* negro real */
    margin-bottom: 2px;
}



/* titulo "Seleccionado" */
#modal .res-section-title {
    font-size: 14px;
    font-weight: 900;
    color: #111;
    margin-bottom: 10px;
}

/* bloque de cada categoría BA */
#modal .res-ba {
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 10px;
    background: #fafafa;
}

/* nombre categoría */
#modal .res-ba-head {
    font-size: 14px;
    font-weight: 1000;
    color: #111;
    /* NEGRO */
    margin-bottom: 6px;
}

/* pill código BA */
#modal .res-pill {
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

/* cada extra */
#modal .res-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 13px;
    font-weight: 900;
    /* NEGRITA */
    color: #000;
    /* NEGRO */

    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;

    padding: 6px 8px;
    margin-top: 6px;
}

/* texto vacio */
#modal .res-empty {
    font-size: 13px;
    font-weight: 800;
    color: #6b7280;
}

/* totales */
#modal .res-line {
    font-size: 14px;
    font-weight: 900;
    color: #111;
}

#modal .res-grand {
    font-size: 18px;
    font-weight: 1000;
    color: #000;
}


/* ✅ SOLO limpia cosas visuales de Voyager (sin romper layout) */
.voyager .page-title,
.voyager .breadcrumb,
.voyager .breadcrumb-container,
.voyager footer,
.voyager .app-footer {
    display: none !important;
}

/* deja el POS con aire (no empuja ni tapa menús) */
.pos-header {
    padding: 10px 24px !important;
    margin-top: 0 !important;
    /* quita el -40px */
}


/* =========================
   🔧 RESET: DESHACER CAMBIOS QUE ROMPEN VOYAGER
   (pegar al FINAL del pos.css)
========================= */

/* si ocultaste la barra superior en algún lado */
.navbar,
.top_nav,
.navbar-fixed-top,
.app-container .navbar {
    display: block !important;
}

/* si “fijaste” el sidebar */
.sidebar,
.app-container .sidebar {
    position: relative !important;
    top: auto !important;
    height: auto !important;
}

/* si dejaste márgenes/paddings raros */
.app-container,
.content-container,
.side-body {
    margin-top: initial !important;
    padding-top: initial !important;
}

/* si moviste el header del POS hacia arriba */
.pos-header {
    margin-top: 0 !important;
}



/* =========================
   ✅ SUBIR POS Y TAPAR BARRA VOYAGER (SIN ROMPER MENÚ)
   Pegar AL FINAL del pos.css
========================= */

/* 1) QUITAR el espacio que tú mismo dejaste para la barra */
.pos-wrap {
    padding-top: 0 !important;
    min-height: 100vh !important;
}

/* 2) Header del POS arriba de todo */
.pos-header {
    position: sticky !important;
    top: 0 !important;
    /* antes lo tenías en var(--voyager-topbar) */
    z-index: 2000 !important;
    background: #fff !important;
}

/* 3) Main ocupa pantalla completa bajo el header */
.pos-main {
    height: calc(100vh - 70px) !important;
    /* ajusta si tu header mide distinto */
}

/* 4) No toques navbar/sidebars de voyager */
.voyager .navbar {
    z-index: 1000 !important;
    /* queda abajo del header del POS */
}


/* ===== MULTI EXTRAS: fila con cantidad ===== */
.qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background: #fff;
}

.qty-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qty-name {
    font-weight: 900;
    color: #111;
}

.qty-price {
    font-size: 12px;
}

.qty-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* ✅ NUEVO: estilo cuando está desactivado */
.qty-btn:disabled {
    background: #f1f3f5;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.qty-num {
    min-width: 26px;
    text-align: center;
    font-weight: 1000;
    color: #111;
}

/* ===== badge cantidad en card producto ===== */
/* ===== Badge cantidad en la card ===== */
.producto {
    position: relative;
}

.prod-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;

    background: #4f46e5;
    color: #fff;
    font-weight: 1000;
    font-size: 13px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
    z-index: 10;
}


/* contenedor general de extras */
.pedido-extras {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* cada grupo (Ingredientes básicos, Premium, etc) */
.pedido-extras-grupo {
    padding: 6px 10px;
    border-left: 3px solid #c7b6ff;
    background: #f8f7ff;
    border-radius: 6px;
}

/* titulo del grupo */
.pedido-extras-titulo {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    /* negro */
    margin-bottom: 3px;
}

/* cada extra */
.pedido-extras-item {
    font-size: 13px;
    color: #000;
    /* negro */
    padding-left: 10px;
    position: relative;
}

/* flechita decorativa */
.pedido-extras-item::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #7c6cff;
    font-weight: bold;
}

/* cantidad */
.pedido-extras-item small {
    color: #000;
    font-weight: 600;
    margin-left: 3px;
}


.prod-nombre {
    font-size: 18px;
    font-weight: 500;
    /* 👈 más delgada */
    line-height: 1.25;
    color: #111;
    letter-spacing: 0.2px;

    /* 👇 ayuda a que no se vea “chorreada/gruesa” */
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;

    /* 👇 evita que caiga en una Inter “rara” si no está cargada */
    font-family: system-ui, "Segoe UI", Arial, sans-serif;
}

.prod-precio {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 600;
    /* 👈 menos grueso que 1000 */
    color: #000;

    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    font-family: system-ui, "Segoe UI", Arial, sans-serif;
}


/* ✅ NUEVO: TODO el texto del modal en NEGRO (pegar al FINAL del pos.css) */
#modal,
#modal * {
    color: #000 !important;
}

/* ✅ NUEVO: incluso los "muted" dentro del modal deben ser negros */
#modal .muted,
#modal small,
#modal .qty-price {
    color: #000 !important;
}


/* ✅ NUEVO: encabezado "Método de Pago" con botón + */
.pago-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0 10px 0;
}

.pago-title {
    font-weight: 700;
    color: #111827;
}

.btn-add-pago {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #111827;
}

.btn-add-pago:hover {
    background: #e5e7eb;
}

/* ✅ NUEVO: resumen "Efectivo" y "Vuelto" */
.pago-resumen {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.pago-resumen div {
    color: #000;
    /* REEMPLAZO */
}

.pago-res-line {
    flex: 1;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
    color: #111827;
}

.pago-res-vuelto {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ✅ NUEVO: lista de pagos agregados */
.pagos-lista {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pago-row {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pago-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pago-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pago-right span {
    font-weight: 800;
    color: #111827;
}


/* ✅ NUEVO: tarjeta de pago estilo “bloque separado” */
.pago-card {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    margin-top: 10px;
}

.pago-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 10px;
}

.pago-card-title {
    font-weight: 700;
    color: #111827;
}

.pago-card-x {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    cursor: pointer;
    color: #111827;
}

.pago-card-x:hover {
    background: #eef2f7;
}

/* ✅ Ajuste: resumen efectivo/vuelto dentro del card */
.pago-resumen {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.pago-res-line {
    flex: 1;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
    color: #111827;
}

/* ✅ Lista de métodos agregados (cada uno es un card) */
.pagos-lista {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pago-row {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pago-left strong {
    color: #111827;
}

.pago-right span {
    font-weight: 800;
    color: #111827;
}




/* ✅ FIX: que el scroll sea de TODO el panel derecho (pedido + totales + pagos) */
/* Pegar ESTE BLOQUE AL FINAL del pos.css para que pise lo anterior */

.pedido {
    overflow-y: auto !important;
    /* ahora puedes bajar hasta pagos */
    overflow-x: hidden !important;
}

/* el listado ya NO scrollea solo; se muestra completo */
.lista-pedido {
    flex: 0 0 auto !important;
    min-height: auto !important;
    overflow: visible !important;
}

/* totales + pagos ya no quedan “pegados” abajo ocultando contenido */
.totales {
    margin-top: 12px !important;
}


/* REEMPLAZO */
.grupo.min-bad,
.extra-row.min-bad {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 1px #f59e0b inset;
}

/* REEMPLAZO */
.grupo.min-ok,
.extra-row.min-ok {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 1px #22c55e inset;
}


/* NUEVO: métodos de pago agregados iguales al editor principal */
.pagos-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pagos-lista .pago-card-editable {
    display: block;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    padding: 14px;
}

.pagos-lista .pago-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.pagos-lista .pago-card-title {
    font-weight: 900;
    color: #111827;
}

.pagos-lista .pago-box {
    display: block;
    width: 100%;
    margin-bottom: 12px;
}

.pagos-lista .pago-box:last-child {
    margin-bottom: 0;
}

.pagos-lista .pago-item-monto,
.pagos-lista .pago-item-metodo,
.pagos-lista .pago-item-ref {
    display: block;
    width: 100%;
    min-width: 0;
}

.pagos-lista .pago-card-x {
    border: none;
    background: #ef4444;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    cursor: pointer;
    flex: 0 0 auto;
}


.pos-lock-modal {
    /* NUEVO */
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pos-lock-modal.hidden {
    /* NUEVO */
    display: none;
}

.pos-lock-modal__backdrop {
    /* NUEVO */
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(2px);
}

.pos-lock-modal__dialog {
    /* NUEVO */
    position: relative;
    width: min(92vw, 460px);
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    text-align: center;
    z-index: 1;
}

.pos-lock-modal__icon {
    /* NUEVO */
    font-size: 42px;
    line-height: 1;
    margin-bottom: 12px;
}

.pos-lock-modal__title {
    /* NUEVO */
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.pos-lock-modal__text {
    /* NUEVO */
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #6b7280;
}

.pos-lock-modal__actions {
    /* NUEVO */
    margin-top: 22px;
}

.pos-lock-modal__btn {
    /* NUEVO */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #f97316;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: transform .18s ease, opacity .18s ease;
}

.pos-lock-modal__btn:hover {
    /* NUEVO */
    color: #ffffff;
    text-decoration: none;
    opacity: .95;
    transform: translateY(-1px);
}


body.modo-orden-productos .producto {
    /* NUEVO */
    cursor: grab;
    user-select: none;
}

body.modo-orden-productos .producto:hover {
    /* NUEVO */
    transform: none;
}

.producto-ordenable.dragging {
    /* NUEVO */
    opacity: 0.45;
    transform: scale(0.98);
}

.producto-ordenable.drag-over {
    /* NUEVO */
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

body.modo-orden-productos .producto::after {
    /* NUEVO */
    content: "↕ Arrastrar para ordenar";
    position: absolute;
    left: 10px;
    bottom: 8px;
    font-size: 11px;
    font-weight: 900;
    background: rgba(17, 24, 39, 0.88);
    color: #fff;
    padding: 4px 8px;
    border-radius: 999px;
    pointer-events: none;
}


body.modo-orden-productos .cat-item {
    /* NUEVO */
    cursor: grab;
}

.cat-ordenable.dragging {
    /* NUEVO */
    opacity: 0.45;
    transform: scale(0.98);
}

.cat-ordenable.drag-over {
    /* NUEVO */
    outline: 3px solid rgba(124, 58, 237, 0.20);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.10);
}

#metodoPago,
.pago-edit-metodo {
    background: #fff !important;
    color: #0f172a;
}

#pagosLista .pago-box {
    background: #fff;
}

/* ==========================================================
   ✅ POS: Pedido con pagos abajo fijos + tarjetas tipo Rolodex
   Pegar al FINAL de pos.css para que pise reglas anteriores.
========================================================== */
.pedido {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    padding: 10px 12px 12px !important;
}

.pedido-head {
    flex: 0 0 auto !important;
    position: relative !important;
    z-index: 5 !important;
    background: #ffffff !important;
    padding-bottom: 8px !important;
}

/* El pedido scrollea solo aquí. Así los productos NO empujan los métodos de pago. */
.lista-pedido {
    flex: 1 1 auto !important;
    min-height: 135px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 6px 8px 18px 2px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    perspective: 900px !important;
    scroll-snap-type: y proximity !important;
}

/* Totales + pago quedan en la parte baja del panel, estáticos. */
.totales {
    flex: 0 0 auto !important;
    margin-top: auto !important;
    padding: 12px 0 0 !important;
    background: linear-gradient(180deg, rgba(255,255,255,.92), #ffffff 18%) !important;
    border-top: 1px solid #edf2f7 !important;
    box-shadow: 0 -18px 28px rgba(255, 255, 255, .92) !important;
    position: relative !important;
    z-index: 6 !important;
    max-height: 52vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.pagos {
    margin-top: 12px !important;
}

/* Tarjeta del carrito con marca de agua del producto */
.item-pedido {
    position: relative !important;
    overflow: hidden !important;
    min-height: 82px !important;
    border: 1px solid rgba(53, 184, 199, .28) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .08) !important;
    scroll-snap-align: start !important;
    transform-origin: center top !important;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}

.item-pedido.has-watermark::before {
    content: "";
    position: absolute;
    inset: -16px;
    background-image: var(--pedido-img);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: min(180px, 68%) auto;
    opacity: .13;
    filter: saturate(1.15) contrast(1.06);
    transform: rotate(-4deg) scale(1.08);
    pointer-events: none;
    z-index: 0;
}

.item-pedido.has-watermark::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 54%, rgba(255,255,255,.54) 100%);
    pointer-events: none;
    z-index: 1;
}

.item-pedido > * {
    position: relative !important;
    z-index: 2 !important;
}

.item-pedido:nth-child(odd) {
    transform: rotate(-0.35deg);
}

.item-pedido:nth-child(even) {
    transform: rotate(0.35deg);
}

.item-pedido:hover {
    transform: translateY(-3px) rotate(0deg) scale(1.01) !important;
    border-color: rgba(53, 184, 199, .75) !important;
    box-shadow:
        0 0 0 2px rgba(53, 184, 199, .18),
        0 16px 30px rgba(15, 23, 42, .14) !important;
}

.item-left {
    min-width: 0 !important;
}

.item-right,
.item-pedido .right {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.item-precio {
    font-weight: 900 !important;
    color: #6b63d9 !important;
    white-space: nowrap !important;
}

/* Detalles/extras quedan sobre la marca de agua y legibles */
.pedido-extras {
    max-width: 100% !important;
}

.pedido-extras-grupo {
    background: rgba(248, 247, 255, .86) !important;
    backdrop-filter: blur(1px) !important;
}

/* Scroll más limpio del pedido */
.lista-pedido::-webkit-scrollbar,
.totales::-webkit-scrollbar {
    width: 8px;
}

.lista-pedido::-webkit-scrollbar-thumb,
.totales::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, .28);
    border-radius: 999px;
}

@media (max-width: 1024px) {
    .pedido {
        height: auto !important;
        overflow: visible !important;
    }

    .lista-pedido {
        max-height: 46vh !important;
        overflow-y: auto !important;
    }

    .totales {
        max-height: none !important;
        overflow: visible !important;
    }
}

/* ==========================================================
   ✅ FIX EXTRA: extras visibles + marca de agua 15% más fuerte
   Pegar al FINAL para pisar reglas anteriores.
========================================================== */
.item-pedido {
    align-items: stretch !important;
    padding: 12px 12px !important;
}

.item-pedido.has-watermark::before {
    opacity: .16 !important; /* antes .13: aprox. 15% más visible */
    background-size: min(205px, 76%) auto !important;
    filter: saturate(1.22) contrast(1.08) !important;
}

.item-pedido.has-watermark::after {
    background: linear-gradient(90deg,
        rgba(255,255,255,.96) 0%,
        rgba(255,255,255,.82) 50%,
        rgba(255,255,255,.38) 100%) !important;
}

.item-left {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding-right: 6px !important;
}

.item-right,
.item-pedido .right {
    align-self: flex-start !important;
    margin-left: auto !important;
}

.pedido-extras {
    margin-top: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    max-width: 100% !important;
}

.pedido-extras-grupo {
    padding: 7px 8px !important;
    border-left: 3px solid #7c6cff !important;
    background: rgba(248, 247, 255, .92) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .05) !important;
}

.pedido-extras-titulo {
    margin-bottom: 5px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    font-weight: 1000 !important;
    color: #4f46e5 !important;
    text-transform: uppercase !important;
    letter-spacing: .03em !important;
}

.pedido-extras-lista {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
}

.pedido-extra-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    max-width: 100% !important;
    padding: 4px 7px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.9) !important;
    border: 1px solid rgba(124, 108, 255, .24) !important;
    color: #111827 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

.pedido-extra-chip span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.pedido-extra-chip small {
    display: inline-flex !important;
    margin: 0 !important;
    color: #4f46e5 !important;
    font-size: 10px !important;
    font-weight: 1000 !important;
}

/* Mensajes del POS más legibles */
.toast {
    white-space: pre-line;
    line-height: 1.35;
    font-weight: 800;
}

#ventaEstado.pos-error-amigable {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 800;
    white-space: pre-line;
}

#ventaEstado.pos-ok-amigable {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 800;
}

/* ==========================================================
   POS · descuentos ordenados y bonitos
   Fecha: 2026-07-03
========================================================== */
:root {
    --vase-navy: #17365d;
    --vase-navy-2: #244f7f;
    --vase-cyan: #35b8c7;
    --vase-green: #22c55e;
    --vase-green-dark: #16a34a;
    --vase-soft: #f4f9fc;
    --vase-border: #d9e7f3;
    --vase-danger: #ef4444;
}

.discount-line strong,
.discount-line span {
    color: var(--vase-green-dark) !important;
}

.discount-bar {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 10px 0 12px !important;
    flex-wrap: wrap !important;
}

.btn-descuento {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border: 1px solid rgba(53, 184, 199, .35) !important;
    background: linear-gradient(135deg, #e9fbfd, #ffffff) !important;
    color: var(--vase-navy) !important;
    border-radius: 14px !important;
    padding: 9px 12px !important;
    font-weight: 1000 !important;
    cursor: pointer !important;
    box-shadow: 0 8px 20px rgba(53, 184, 199, .12) !important;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease !important;
}

.btn-descuento:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(34, 197, 94, .55) !important;
    box-shadow: 0 12px 26px rgba(34, 197, 94, .16) !important;
}

.discount-active {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    max-width: 100% !important;
    padding: 7px 9px !important;
    border-radius: 999px !important;
    background: #f0fdf4 !important;
    border: 1px solid rgba(22, 163, 74, .24) !important;
    color: #166534 !important;
    font-size: 12px !important;
    font-weight: 1000 !important;
    box-shadow: 0 8px 18px rgba(22, 163, 74, .08) !important;
}

.discount-active span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.discount-active button {
    flex: 0 0 auto !important;
    width: 22px !important;
    height: 22px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #dcfce7 !important;
    color: #166534 !important;
    font-weight: 1000 !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

.descuento-modal-box {
    width: min(980px, calc(100vw - 28px)) !important;
    max-height: min(780px, calc(100vh - 28px)) !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    border: 1px solid rgba(217, 231, 243, .95) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%) !important;
    box-shadow: 0 26px 70px rgba(15, 35, 66, .24) !important;
}

.descuento-modal-head {
    margin: 0 !important;
    padding: 20px 22px 16px !important;
    background: linear-gradient(135deg, #ffffff, #f2fbfd) !important;
    border-bottom: 1px solid var(--vase-border) !important;
}

.descuento-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
}

.descuento-title-icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, rgba(53, 184, 199, .16), rgba(34, 197, 94, .18)) !important;
    border: 1px solid rgba(53, 184, 199, .25) !important;
    box-shadow: 0 10px 22px rgba(53, 184, 199, .10) !important;
    font-size: 22px !important;
}

.descuento-title-wrap h3 {
    margin: 0 !important;
    color: var(--vase-navy) !important;
    font-size: 26px !important;
    line-height: 1.05 !important;
    font-weight: 1000 !important;
    letter-spacing: -.02em !important;
}

.descuento-title-wrap small {
    display: block !important;
    margin-top: 4px !important;
    color: #58708d !important;
    font-weight: 700 !important;
}

.descuento-grid {
    display: grid !important;
    grid-template-columns: minmax(320px, .95fr) minmax(360px, 1.25fr) !important;
    gap: 16px !important;
    padding: 18px !important;
    max-height: calc(100vh - 140px) !important;
    overflow: auto !important;
}

.descuento-panel {
    min-width: 0 !important;
    border: 1px solid var(--vase-border) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, .94) !important;
    padding: 16px !important;
    box-shadow: 0 14px 34px rgba(23, 54, 93, .08) !important;
}

.descuento-panel-manual {
    align-self: start !important;
}

.descuento-panel-lista {
    display: flex !important;
    flex-direction: column !important;
    min-height: 460px !important;
}

.descuento-section-head,
.descuento-list-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
}

.descuento-section-title {
    color: var(--vase-navy) !important;
    font-size: 17px !important;
    font-weight: 1000 !important;
    line-height: 1.15 !important;
}

.descuento-section-subtitle {
    margin-top: 3px !important;
    color: #6b7d93 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.descuento-count {
    min-width: 34px !important;
    height: 30px !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: var(--vase-navy) !important;
    color: #fff !important;
    font-weight: 1000 !important;
    box-shadow: 0 8px 18px rgba(23, 54, 93, .18) !important;
}

.descuento-form-group {
    margin-bottom: 12px !important;
}

.descuento-form-group .lbl,
.descuento-panel .lbl {
    display: block !important;
    margin-bottom: 6px !important;
    color: #263c57 !important;
    font-size: 12px !important;
    font-weight: 1000 !important;
}

.descuento-panel .input {
    width: 100% !important;
    min-height: 44px !important;
    border-radius: 14px !important;
    border: 1px solid #d6e2ee !important;
    background: #fff !important;
    color: #172033 !important;
    font-weight: 800 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75) !important;
}

.descuento-panel .input:focus {
    border-color: var(--vase-cyan) !important;
    box-shadow: 0 0 0 4px rgba(53, 184, 199, .15) !important;
    outline: none !important;
}

.descuento-two-cols {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}

.descuento-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 14px !important;
}

.descuento-actions .btn {
    min-height: 42px !important;
    border-radius: 14px !important;
    font-weight: 1000 !important;
}

.descuento-btn-aplicar {
    background: linear-gradient(135deg, var(--vase-green), var(--vase-green-dark)) !important;
    border-color: var(--vase-green) !important;
    box-shadow: 0 10px 20px rgba(34, 197, 94, .18) !important;
}

.descuento-btn-guardar {
    background: #f1fbfd !important;
    color: var(--vase-navy) !important;
    border-color: rgba(53, 184, 199, .35) !important;
}

.danger-soft {
    grid-column: 1 / -1 !important;
    background: #fff1f2 !important;
    color: #be123c !important;
    border-color: #fecdd3 !important;
}

.descuento-help {
    margin-top: 12px !important;
    padding: 11px 12px !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
}

.descuento-search-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    padding: 0 12px !important;
    border: 1px solid #d6e2ee !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(23, 54, 93, .06) !important;
}

.descuento-search-wrap span {
    flex: 0 0 auto !important;
    opacity: .72 !important;
}

.descuento-search-wrap .input,
.descuento-search-wrap .descuento-search {
    min-height: 44px !important;
    padding-left: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.descuentos-lista {
    display: grid !important;
    gap: 10px !important;
    align-content: start !important;
    max-height: 430px !important;
    overflow-y: auto !important;
    padding: 2px 6px 4px 2px !important;
    scrollbar-width: thin !important;
}

.descuentos-lista::-webkit-scrollbar {
    width: 9px !important;
}

.descuentos-lista::-webkit-scrollbar-thumb {
    background: #c9d8e7 !important;
    border-radius: 999px !important;
}

.descuento-card,
.descuento-row {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr 42px !important;
    gap: 8px !important;
    align-items: stretch !important;
}

.descuento-card-main,
.descuento-row-main {
    min-width: 0 !important;
    width: 100% !important;
    border: 1px solid #e1eaf3 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%) !important;
    border-radius: 17px !important;
    padding: 12px !important;
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    color: #0f1f33 !important;
    cursor: pointer !important;
    text-align: left !important;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease !important;
    box-shadow: 0 7px 18px rgba(15, 35, 66, .05) !important;
}

.descuento-card-main:hover,
.descuento-row-main:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(53, 184, 199, .55) !important;
    box-shadow: 0 12px 26px rgba(53, 184, 199, .14) !important;
}

.descuento-card.is-active .descuento-card-main,
.descuento-card.is-active .descuento-row-main,
.descuento-row.is-active .descuento-card-main,
.descuento-row.is-active .descuento-row-main {
    border-color: rgba(34, 197, 94, .62) !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .12), 0 12px 26px rgba(34, 197, 94, .12) !important;
}

.descuento-card-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, rgba(53, 184, 199, .16), rgba(34, 197, 94, .16)) !important;
    color: var(--vase-navy) !important;
    font-size: 17px !important;
    font-weight: 1000 !important;
}

.descuento-card-content {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.descuento-card-content strong,
.descuento-row-main strong {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: #14263d !important;
    font-weight: 1000 !important;
    line-height: 1.15 !important;
}

.descuento-card-content small {
    color: #6b7d93 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

.descuento-card-value,
.descuento-row-main span {
    justify-self: end !important;
    white-space: nowrap !important;
    padding: 6px 9px !important;
    border-radius: 999px !important;
    background: #eef8fb !important;
    color: var(--vase-navy-2) !important;
    font-size: 13px !important;
    font-weight: 1000 !important;
}

.descuento-card-delete,
.descuento-row-del {
    width: 42px !important;
    border: 1px solid #fecdd3 !important;
    background: #fff5f6 !important;
    color: #be123c !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    font-size: 17px !important;
    font-weight: 1000 !important;
    transition: transform .14s ease, background .14s ease !important;
}

.descuento-card-delete:hover,
.descuento-row-del:hover {
    transform: translateY(-1px) !important;
    background: #ffe4e6 !important;
}

.descuento-empty {
    min-height: 120px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 18px !important;
    border-radius: 18px !important;
    border: 1px dashed #cbd5e1 !important;
    background: #f8fafc !important;
    color: #64748b !important;
    text-align: center !important;
    font-weight: 800 !important;
}

.descuento-empty strong {
    color: var(--vase-navy) !important;
    font-size: 14px !important;
}

.descuento-empty.error {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #be123c !important;
}

@media (max-width: 980px) {
    .descuento-grid {
        grid-template-columns: 1fr !important;
    }

    .descuento-panel-lista {
        min-height: 320px !important;
    }
}

@media (max-width: 620px) {
    .descuento-modal-box {
        width: calc(100vw - 14px) !important;
        max-height: calc(100vh - 14px) !important;
    }

    .descuento-modal-head {
        padding: 16px !important;
    }

    .descuento-title-wrap h3 {
        font-size: 21px !important;
    }

    .descuento-grid {
        padding: 12px !important;
        max-height: calc(100vh - 112px) !important;
    }

    .descuento-two-cols,
    .descuento-actions {
        grid-template-columns: 1fr !important;
    }

    .danger-soft {
        grid-column: auto !important;
    }

    .descuento-card-main,
    .descuento-row-main {
        grid-template-columns: 34px minmax(0, 1fr) !important;
    }

    .descuento-card-value,
    .descuento-row-main span {
        grid-column: 2 !important;
        justify-self: start !important;
    }

    .descuento-card-icon {
        width: 34px !important;
        height: 34px !important;
    }
}

/* ==========================================================
   POS · Pedido tipo Rolodex sin tarjetas recortadas
   Fecha: 2026-07-20
   - Cada producto conserva su altura completa.
   - Rueda del ratón y gesto táctil avanzan tarjeta por tarjeta.
   - La tarjeta activa queda delante; las demás solo asoman.
========================================================== */
.lista-pedido {
    align-content: flex-start !important;
    scroll-snap-type: y proximity !important;
    scroll-padding-top: 8px !important;
    overscroll-behavior-y: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
}

/* Evita el problema principal: Flexbox ya no puede achicar una tarjeta
   cuando existen dos o más productos dentro del pedido. */
.lista-pedido .item-pedido {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: max-content !important;
    max-height: none !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    z-index: 2;
}

/* Efecto Rolodex: la tarjeta activa queda completa por delante y la
   siguiente asoma suavemente sin tapar la información de la activa. */
.lista-pedido--multiple .item-pedido + .item-pedido {
    margin-top: -10px !important;
}

.lista-pedido--multiple .item-pedido:not(.is-pedido-active) {
    transform: scale(.985) !important;
    transform-origin: center top !important;
    opacity: .96;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .07) !important;
}

.lista-pedido .item-pedido.is-pedido-active {
    position: relative !important;
    z-index: 20 !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) rotate(0deg) !important;
    border-color: rgba(53, 184, 199, .72) !important;
    box-shadow:
        0 0 0 2px rgba(53, 184, 199, .14),
        0 16px 30px rgba(15, 23, 42, .14) !important;
}

.lista-pedido .item-pedido.is-pedido-before {
    z-index: 3 !important;
}

.lista-pedido .item-pedido.is-pedido-after {
    z-index: 1 !important;
}

/* Mantiene completos los bloques de extras y evita que una línea larga
   fuerce un alto incorrecto o se salga de la tarjeta. */
.lista-pedido .item-left,
.lista-pedido .pedido-extras,
.lista-pedido .pedido-extras-grupo,
.lista-pedido .pedido-extras-lista {
    min-height: 0 !important;
    height: auto !important;
}

.lista-pedido .pedido-extra-chip span {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
}

/* Accesibilidad: al navegar con teclado se muestra claramente la tarjeta. */
.lista-pedido .item-pedido:focus-visible {
    outline: 3px solid rgba(53, 184, 199, .34) !important;
    outline-offset: 2px !important;
}

@media (hover: none), (pointer: coarse) {
    .lista-pedido--multiple .item-pedido + .item-pedido {
        margin-top: -8px !important;
    }

    .lista-pedido .item-pedido {
        scroll-snap-align: start !important;
    }
}



/* ==========================================================
   POS · Pedido minimalista, grande y legible
   Fecha: 2026-07-21
   Mantiene el desplazamiento por tarjetas, pero elimina cajas,
   giros y superposiciones que recargaban la información.
========================================================== */
.lista-pedido {
    gap: 10px !important;
    padding: 8px 6px 18px 2px !important;
    perspective: none !important;
}

.lista-pedido--multiple .item-pedido + .item-pedido {
    margin-top: 0 !important;
}

.lista-pedido .item-pedido,
.lista-pedido .item-pedido:nth-child(odd),
.lista-pedido .item-pedido:nth-child(even) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 16px !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #35b8c7 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .07) !important;
    opacity: 1 !important;
    transform: none !important;
}

.lista-pedido .item-pedido:hover,
.lista-pedido .item-pedido.is-pedido-active,
.lista-pedido .item-pedido.is-pedido-before,
.lista-pedido .item-pedido.is-pedido-after {
    opacity: 1 !important;
    transform: none !important;
}

.lista-pedido .item-pedido:hover,
.lista-pedido .item-pedido.is-pedido-active {
    border-color: #35b8c7 !important;
    border-left-color: #1597a7 !important;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .10) !important;
}

.lista-pedido .item-pedido.has-watermark::before {
    inset: 0 !important;
    background-position: right 12px center !important;
    background-size: min(150px, 45%) auto !important;
    opacity: .045 !important;
    filter: none !important;
    transform: none !important;
}

.lista-pedido .item-pedido.has-watermark::after {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,.995) 0%,
        rgba(255,255,255,.97) 63%,
        rgba(255,255,255,.82) 100%
    ) !important;
}

.lista-pedido .item-left {
    min-width: 0 !important;
    padding: 0 !important;
}

.pedido-producto-cabecera {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

.pedido-producto-nombre {
    min-width: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.24;
    overflow-wrap: anywhere;
}

.pedido-cantidad {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 25px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e9fbfd;
    color: #0f7e8c;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.lista-pedido .item-right,
.lista-pedido .item-pedido .right {
    align-self: start !important;
    display: grid !important;
    grid-template-columns: auto 34px !important;
    align-items: center !important;
    justify-items: end !important;
    gap: 7px !important;
    margin: 0 !important;
}

.lista-pedido .item-precio {
    grid-column: 1 !important;
    grid-row: 1 !important;
    color: #5b52d6 !important;
    font-size: 19px !important;
    font-weight: 950 !important;
    line-height: 1.15 !important;
}

.lista-pedido .item-descuento-chip {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: end;
    margin: 0 !important;
    padding: 3px 7px !important;
    border-radius: 999px !important;
    background: #ecfdf5 !important;
    color: #047857 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
}

.lista-pedido .btn-x {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    border: 1px solid #fecaca !important;
    border-radius: 10px !important;
    background: #fff7f7 !important;
    color: #dc2626 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    box-shadow: none !important;
}

.lista-pedido .btn-x:hover {
    border-color: #ef4444 !important;
    background: #ef4444 !important;
    color: #ffffff !important;
}

.lista-pedido .pedido-extras {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    margin-top: 13px !important;
}

.lista-pedido .pedido-extras-grupo {
    padding: 9px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid #eef2f7 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.lista-pedido .pedido-extras-titulo {
    margin: 0 0 6px !important;
    color: #645bd8 !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    line-height: 1.2 !important;
    letter-spacing: .045em !important;
    text-transform: uppercase !important;
}

.lista-pedido .pedido-extras-lista {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 5px !important;
}

.lista-pedido .pedido-extra-chip {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 7px !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #273449 !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1.3 !important;
}

.lista-pedido .pedido-extra-signo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 17px !important;
    height: 17px !important;
    border-radius: 999px !important;
    background: #f0efff !important;
    color: #5b52d6 !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
}

.lista-pedido .pedido-extra-nombre {
    min-width: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
}

.lista-pedido .pedido-extra-chip small {
    margin: 0 !important;
    color: #5b52d6 !important;
    font-size: 11px !important;
    font-weight: 950 !important;
}

@media (max-width: 430px) {
    .lista-pedido .item-pedido {
        gap: 10px !important;
        padding: 14px 12px !important;
    }

    .pedido-producto-nombre {
        font-size: 17px;
    }

    .lista-pedido .item-precio {
        font-size: 17px !important;
    }
}

/* ==========================================================
   POS · Selector de extras y pedido más minimalistas
   Fecha: 2026-07-24
   - Reduce recuadros anidados en el modal.
   - Aumenta la legibilidad.
   - Da mayor protagonismo a los extras que a sus categorías.
========================================================== */

/* Encabezado y estructura general del selector */
#modal .modal-head h3 {
    font-size: 27px !important;
    line-height: 1.15 !important;
    font-weight: 850 !important;
}

#modal .modal-grid {
    grid-template-columns: minmax(0, 1fr) 335px !important;
    gap: 24px !important;
}

#modal .modal-left {
    padding-right: 12px !important;
}

#modal .modal-right {
    padding: 2px 8px 110px 22px !important;
    border-left: 1px solid #e5e7eb !important;
}

/* Cada categoría queda como una sección, no como una caja dentro de otra */
#modal #modal-contenido .grupo {
    margin: 0 !important;
    padding: 17px 4px !important;
    border: 0 !important;
    border-bottom: 1px solid #e8edf3 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#modal #modal-contenido .grupo:first-child {
    padding-top: 4px !important;
}

#modal #modal-contenido .grupo:last-child {
    border-bottom: 0 !important;
}

#modal #modal-contenido .grupo.min-bad {
    padding-left: 13px !important;
    border-left: 4px solid #f59e0b !important;
    background: linear-gradient(90deg, rgba(245, 158, 11, .06), transparent 45%) !important;
}

#modal #modal-contenido .grupo.min-ok {
    padding-left: 13px !important;
    border-left: 4px solid #22c55e !important;
    background: linear-gradient(90deg, rgba(34, 197, 94, .055), transparent 45%) !important;
}

#modal .grupo-head {
    align-items: center !important;
    margin-bottom: 8px !important;
}

#modal .grupo h4 {
    font-size: 21px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
}

#modal .grupo-head > :last-child,
#modal .grupo-head small {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

#modal .grupo-items {
    gap: 0 !important;
}

/* Los extras son líneas limpias, sin un recuadro por cada opción */
#modal .check,
#modal .qty-row {
    min-height: 50px !important;
    margin: 0 !important;
    padding: 12px 5px !important;
    border: 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#modal .grupo-items > .check:last-child,
#modal .grupo-items > .qty-row:last-child {
    border-bottom: 0 !important;
}

#modal .check:hover,
#modal .qty-row:hover {
    background: #f8fafc !important;
}

#modal .check input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
}

#modal .check > span,
#modal .qty-name {
    font-size: 16px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

#modal .check small,
#modal .qty-price {
    font-size: 13px !important;
    font-weight: 550 !important;
    color: #475569 !important;
}

#modal .qty-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
}

/* Resumen derecho: sin cajas anidadas */
#modal .res-card {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#modal .res-title {
    margin: 0 0 3px !important;
    font-size: 21px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
}

#modal .res-section-title {
    margin: 0 0 9px !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 750 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}

#modal .res-sep {
    height: 1px !important;
    margin: 13px 0 !important;
    background: #e5e7eb !important;
}

#modal .res-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

#modal .res-ba {
    margin: 0 !important;
    padding: 11px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e9edf2 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#modal .res-ba:first-child {
    padding-top: 2px !important;
}

#modal .res-ba:last-child {
    border-bottom: 0 !important;
}

/* La categoría pasa a segundo plano */
#modal .res-ba-head {
    margin: 0 0 5px !important;
    color: #7c8494 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 750 !important;
    letter-spacing: .035em !important;
    text-transform: uppercase !important;
}

/* El nombre del extra es la información principal */
#modal .res-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 7px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #111827 !important;
    font-size: 15.5px !important;
    line-height: 1.28 !important;
    font-weight: 850 !important;
}

#modal .res-item > span:last-child {
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
}

#modal .res-item small {
    color: #5b52d6 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
}

#modal .res-tot {
    padding-top: 2px !important;
}

#modal .res-line {
    font-size: 15px !important;
    line-height: 1.3 !important;
}

#modal .res-grand {
    margin-top: 5px !important;
    font-size: 20px !important;
}

/* Pedido: extras grandes; categoría pequeña y secundaria */
.lista-pedido .pedido-extras {
    gap: 11px !important;
    margin-top: 14px !important;
}

.lista-pedido .pedido-extras-grupo {
    padding: 8px 0 0 !important;
    border-top-color: #edf1f5 !important;
}

.lista-pedido .pedido-extras-titulo {
    margin: 0 0 5px !important;
    color: #8991a0 !important;
    font-size: 10px !important;
    font-weight: 750 !important;
    letter-spacing: .055em !important;
}

.lista-pedido .pedido-extras-lista {
    gap: 7px !important;
}

.lista-pedido .pedido-extra-chip {
    grid-template-columns: 16px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    color: #172033 !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    font-weight: 900 !important;
}

.lista-pedido .pedido-extra-signo {
    width: 16px !important;
    height: 16px !important;
    background: #f1f0ff !important;
    color: #6b63d9 !important;
    font-size: 12px !important;
}

.lista-pedido .pedido-extra-chip small {
    color: #5b52d6 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

@media (max-width: 900px) {
    #modal .modal-grid {
        gap: 12px !important;
    }

    #modal .modal-right {
        padding: 18px 4px 100px !important;
        border-left: 0 !important;
        border-top: 1px solid #e5e7eb !important;
    }
}


/* =========================================================
   POS · Accesibilidad táctil y presentación de combos
   ========================================================= */
#modal .grupo-items {
    gap: 9px !important;
}

/* Cada extra vuelve a ser una opción táctil claramente delimitada. */
#modal .check,
#modal .qty-row {
    min-height: 54px !important;
    margin: 0 !important;
    padding: 11px 12px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05) !important;
}

#modal .grupo-items > .check:last-child,
#modal .grupo-items > .qty-row:last-child {
    border: 1px solid #cbd5e1 !important;
}

#modal .check:hover,
#modal .qty-row:hover,
#modal .check:focus-within,
#modal .qty-row:focus-within {
    border-color: #94a3b8 !important;
    background: #f8fafc !important;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, .14) !important;
}

#modal .check:has(input:checked),
#modal .qty-row.is-selected {
    border-color: var(--primary, #7c3aed) !important;
    background: color-mix(in srgb, var(--primary, #7c3aed) 6%, #ffffff) !important;
}

#modal .grupo-title-wrap {
    min-width: 0;
}

#modal .grupo-componente {
    display: block;
    margin: 0 0 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.pedido-combo-componentes {
    margin-top: 9px;
}

.pedido-combo-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.pedido-componente-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 5px 8px;
    border: 1px solid #dbe4ee;
    border-radius: 9px;
    background: rgba(248, 250, 252, .92);
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
}

.pedido-componente-nombre {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pedido-componente-chip small {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}


/* Combo: validaciones cumplidas sin resalte verde. Formato conserva su estado visual. */
#modal #modal-contenido .grupo-combo.min-ok:not(.grupo-formato) {
    padding-left: 4px !important;
    border-left: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}


/* ==========================================================
   POS · Pedido completo y totales debajo
   Fecha: 2026-07-26
   La tarjeta crece con todos sus componentes y extras.
========================================================== */
.pedido {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    align-self: stretch !important;
}

.lista-pedido {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
}

.lista-pedido .item-pedido {
    min-height: max-content !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.lista-pedido .item-left,
.lista-pedido .pedido-combo-componentes,
.lista-pedido .pedido-combo-lista,
.lista-pedido .pedido-extras,
.lista-pedido .pedido-extras-grupo,
.lista-pedido .pedido-extras-lista {
    max-height: none !important;
    overflow: visible !important;
}

.pedido-componente-nombre {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.totales {
    flex: 0 0 auto !important;
    margin-top: 14px !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
}

#btnOrdenProductos.is-save-order {
    border-color: #16a34a !important;
    background: #16a34a !important;
    color: #ffffff !important;
    font-weight: 900 !important;
}

/* =========================================================
   POS · Ajustes acumulados 2026-07-28
========================================================= */
.pos-config-floating {
    position: fixed !important;
    left: 18px !important;
    right: auto !important;
    top: auto !important;
    bottom: 18px !important;
    z-index: 1250 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 14px !important;
    border-radius: 13px !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .22) !important;
}

/* En un pedido vacío los totales y el pago quedan al pie, sin un mensaje
   intermedio que empuje o desordene el carro. */
body.pos-cart-empty .lista-pedido {
    flex: 1 1 auto !important;
    min-height: clamp(180px, 34vh, 420px) !important;
}

body.pos-cart-empty .pedido .totales {
    display: block !important;
    margin-top: auto !important;
}

/* Los componentes del combo se muestran como una lista limpia, no como etiquetas encerradas. */
.lista-pedido .pedido-combo-lista {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px !important;
    margin-top: 3px !important;
}

.lista-pedido .pedido-componente-chip {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: baseline !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: none !important;
    padding: 2px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #334155 !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
}

.lista-pedido .pedido-componente-chip small {
    margin: 0 !important;
    color: #64748b !important;
}

/* Reglas obligatorias de categorías del combo. */
#modal .grupo-categoria-combo.combo-regla-pendiente {
    padding: 12px !important;
    border: 2px solid #f59e0b !important;
    border-radius: 14px !important;
    background: #fffbeb !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .11) !important;
}

#modal .grupo-categoria-combo.combo-regla-pendiente .grupo-head small {
    color: #92400e !important;
    font-weight: 900 !important;
}

#modal .grupo-categoria-combo.combo-regla-completa {
    padding: 12px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
}

#modal .combo-extra-categoria-producto.hidden {
    display: none !important;
}

/* Evita que los mensajes toast queden detrás de modales o del carro. */
.toast,
#toast,
.toast-container,
.vase-toast-container {
    z-index: 10000 !important;
}

@media (max-width: 760px) {
    body.pos-cart-empty .lista-pedido {
        min-height: 145px !important;
    }

    .pos-config-floating {
        left: 10px !important;
        bottom: 10px !important;
        min-height: 40px;
        padding: 8px 11px !important;
        font-size: 12px !important;
    }
}

/* =========================================================
   POS · Orden de categorías, configuración lateral y combos
========================================================= */
.categorias {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#catList {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

.pos-category-actions {
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.categorias .pos-config-sidebar {
    position: static !important;
    width: 100% !important;
    min-height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #0f172a !important;
    border-radius: 12px !important;
    background: #0f172a !important;
    color: #fff !important;
    box-shadow: none !important;
    font-weight: 900;
}

.categorias .pos-config-sidebar:hover {
    transform: none !important;
    background: #1e293b !important;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .18) !important;
}

.cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
}

.cat-item-label {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.18;
}

.cat-drag-handle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
}

body.modo-orden-productos .cat-item {
    cursor: grab;
    user-select: none;
}

body.modo-orden-productos .cat-item:active {
    cursor: grabbing;
}

/* Los extras del producto escogido en una categoría del combo aparecen
   inmediatamente debajo de esa opción. */
.combo-producto-opcion-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.combo-producto-extras-host {
    margin: 0 0 6px 26px;
    padding: 10px 10px 2px;
    border-left: 3px solid #38bdf8;
    border-radius: 0 12px 12px 0;
    background: #f8fbff;
}

.combo-producto-extras-host.hidden {
    display: none !important;
}

.combo-producto-extras-host .grupo {
    margin-bottom: 9px;
    background: #fff;
}

.combo-producto-extras-host .grupo-componente {
    color: #0369a1;
}

@media (max-width: 760px) {
    .combo-producto-extras-host {
        margin-left: 10px;
    }
}

/* =========================================================
   POS · AJUSTE VISUAL RESPONSIVE Y SCROLLBARS · 2026-08-05
========================================================= */
.pos-page-wrap,
.pos-wrap,
.pos-main,
.productos,
#prodList,
.cat-section,
.cat-products {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.pos-page-wrap,
#modal,
#modalDescuento,
#modalTop {
    scrollbar-width: thin;
    scrollbar-color: rgba(47, 169, 184, .72) rgba(226, 232, 240, .42);
}

.pos-page-wrap *::-webkit-scrollbar,
#modal *::-webkit-scrollbar,
#modalDescuento *::-webkit-scrollbar,
#modalTop *::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.pos-page-wrap *::-webkit-scrollbar-track,
#modal *::-webkit-scrollbar-track,
#modalDescuento *::-webkit-scrollbar-track,
#modalTop *::-webkit-scrollbar-track {
    margin: 4px;
    border-radius: 999px;
    background: rgba(226, 232, 240, .42);
}

.pos-page-wrap *::-webkit-scrollbar-thumb,
#modal *::-webkit-scrollbar-thumb,
#modalDescuento *::-webkit-scrollbar-thumb,
#modalTop *::-webkit-scrollbar-thumb {
    min-height: 38px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(53, 184, 199, .88), rgba(47, 169, 184, .62));
    background-clip: padding-box;
}

.pos-page-wrap *::-webkit-scrollbar-thumb:hover,
#modal *::-webkit-scrollbar-thumb:hover,
#modalDescuento *::-webkit-scrollbar-thumb:hover,
#modalTop *::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2fa9b8, #238895);
    background-clip: padding-box;
}

.pos-main {
    grid-template-columns:
        clamp(112px, 10vw, 160px)
        minmax(0, 1fr)
        clamp(300px, 25vw, 390px) !important;
}

.categorias,
.productos,
.pedido {
    min-width: 0;
}

.productos {
    padding: clamp(10px, 1.25vw, 18px) !important;
}

.prod-toolbar {
    position: sticky;
    top: 0;
    z-index: 18;
    flex-wrap: wrap;
    padding: 2px 0 10px;
    background: #f4f5f7;
}

.prod-toolbar .input {
    min-width: min(100%, 240px);
    min-height: 46px;
}

.cat-section {
    margin-bottom: clamp(22px, 2vw, 34px) !important;
}

.cat-title {
    margin: clamp(14px, 1.4vw, 22px) 0 12px !important;
    font-size: clamp(23px, 2vw, 31px) !important;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.producto {
    min-width: 0;
}

.producto .prod-media {
    flex: 0 0 auto;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
}

.producto img.prod-imagen,
.producto .prod-media img {
    display: block;
    width: 88px !important;
    height: 88px !important;
    margin: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    object-fit: cover !important;
}

.prod-info {
    min-width: 0;
}

.prod-nombre,
.prod-precio {
    overflow-wrap: anywhere;
}

body.view-grid .cat-products {
    display: grid !important;
    grid-template-columns: repeat(
        auto-fill,
        minmax(clamp(145px, 11vw, 170px), clamp(180px, 14vw, 210px))
    ) !important;
    justify-content: start;
    align-items: stretch;
    gap: clamp(12px, 1.2vw, 16px) !important;
}

body.view-grid .producto {
    width: 100%;
    height: 100%;
    min-height: 246px;
    align-items: stretch !important;
    justify-content: flex-start;
    padding: clamp(10px, 1vw, 13px) !important;
}

body.view-grid .producto .prod-media {
    width: 100%;
}

body.view-grid .producto img.prod-imagen,
body.view-grid .producto .prod-media img {
    width: 100% !important;
    height: clamp(145px, 13vw, 180px) !important;
    aspect-ratio: 4 / 3;
}

body.view-grid .prod-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center !important;
}

body.view-grid .prod-nombre {
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modal .modal-box {
    width: min(1120px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: min(90vh, 920px) !important;
}

#modal .modal-grid {
    grid-template-columns: minmax(0, 1fr) clamp(270px, 29vw, 335px) !important;
}

.combo-producto-extras-host:not(.has-visible-extras) {
    display: none !important;
}

@media (max-width: 1280px) and (min-width: 1081px) {
    .pos-main {
        grid-template-columns: 122px minmax(0, 1fr) 320px !important;
    }

    body.view-grid .cat-products {
        grid-template-columns: repeat(auto-fill, minmax(140px, 185px)) !important;
    }
}

@media (max-width: 1080px) and (min-width: 761px) {
    .pos-main {
        display: grid !important;
        grid-template-areas:
            "categorias categorias"
            "productos pedido";
        grid-template-columns: minmax(0, 1fr) clamp(290px, 34vw, 340px) !important;
        grid-template-rows: auto minmax(0, 1fr);
        height: calc(100vh - var(--voyager-topbar, 60px)) !important;
        overflow: hidden !important;
    }

    .categorias {
        grid-area: categorias;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        width: auto !important;
        height: auto !important;
        min-height: 64px;
        padding: 8px 10px !important;
        overflow: hidden !important;
        border-right: 0 !important;
        border-bottom: 1px solid #dbe4ea;
    }

    .categorias > .side-title {
        display: none;
    }

    #catList {
        display: flex;
        flex: 1 1 auto;
        gap: 8px;
        width: auto;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 2px 2px 4px;
    }

    #catList .cat-item {
        flex: 0 0 auto;
        width: auto !important;
        min-width: 120px;
        max-width: 210px;
        margin: 0 !important;
        white-space: normal;
    }

    #catList .cat-item-label {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .pos-category-actions {
        flex: 0 0 118px;
        margin: 0 0 0 8px !important;
        padding: 0 0 0 8px !important;
        border-top: 0 !important;
        border-left: 1px solid #e2e8f0;
    }

    .productos {
        grid-area: productos;
        width: auto !important;
        height: 100% !important;
        overflow: auto !important;
    }

    .pedido {
        grid-area: pedido;
        width: auto !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        position: relative !important;
    }

    body.view-grid .cat-products {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    }

    body.view-grid .producto img.prod-imagen,
    body.view-grid .producto .prod-media img {
        height: clamp(132px, 16vw, 165px) !important;
    }
}

@media (max-width: 900px) {
    #modal .modal-grid {
        grid-template-columns: 1fr !important;
    }

    #modal .modal-right {
        max-height: 34vh !important;
        overflow: auto !important;
        border-left: 0 !important;
        border-top: 1px solid #e2e8f0;
        padding-top: 12px;
    }
}

@media (max-width: 760px) {
    .pos-main {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .categorias {
        position: sticky !important;
        top: var(--voyager-topbar, 60px);
        z-index: 25;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        width: 100% !important;
        height: auto !important;
        padding: 8px !important;
        overflow: hidden !important;
        border-right: 0 !important;
        border-bottom: 1px solid #dbe4ea;
    }

    .categorias > .side-title {
        display: none;
    }

    #catList {
        display: flex;
        flex: 1 1 auto;
        gap: 7px;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 2px 2px 4px;
    }

    #catList .cat-item {
        flex: 0 0 auto;
        width: auto !important;
        min-width: 108px;
        max-width: 180px;
        margin: 0 !important;
        padding: 9px 11px !important;
        white-space: normal;
    }

    #catList .cat-item-label {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .pos-category-actions {
        flex: 0 0 48px;
        margin: 0 0 0 7px !important;
        padding: 0 0 0 7px !important;
        border-top: 0 !important;
        border-left: 1px solid #e2e8f0;
    }

    .categorias .pos-config-sidebar {
        min-height: 42px;
        padding: 8px !important;
    }

    .categorias .pos-config-sidebar span {
        display: none;
    }

    .productos,
    .pedido {
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        position: relative !important;
    }

    .prod-toolbar {
        top: calc(var(--voyager-topbar, 60px) + 58px);
    }

    .prod-toolbar .pill {
        display: none;
    }

    body.view-grid .cat-products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.view-grid .producto {
        min-height: 226px;
    }

    body.view-grid .producto img.prod-imagen,
    body.view-grid .producto .prod-media img {
        height: clamp(118px, 36vw, 155px) !important;
    }

    .producto img.prod-imagen,
    .producto .prod-media img {
        width: 78px !important;
        height: 78px !important;
    }

    #modal .modal-box {
        width: calc(100vw - 12px) !important;
        max-width: calc(100vw - 12px) !important;
        max-height: calc(100vh - 12px) !important;
        padding: 12px !important;
        border-radius: 16px !important;
    }
}

@media (max-width: 390px) {
    body.view-grid .cat-products {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
   POS · TARJETAS COMPACTAS Y MEJOR APROVECHADAS · 2026-08-05
   Conserva el alto estándar, pero dedica más superficie a la imagen,
   aumenta la legibilidad y elimina el espacio vertical desperdiciado.
========================================================= */
body.view-grid .cat-products {
    grid-auto-rows: 276px !important;
    align-items: start !important;
}

body.view-grid .producto {
    width: 100% !important;
    height: 276px !important;
    min-height: 276px !important;
    max-height: 276px !important;
    padding: 6px !important;
    gap: 4px !important;
    overflow: hidden !important;
}

body.view-grid .producto .prod-media {
    flex: 0 0 178px !important;
    width: 100% !important;
    height: 178px !important;
    min-height: 178px !important;
    max-height: 178px !important;
    overflow: hidden !important;
}

body.view-grid .producto img.prod-imagen,
body.view-grid .producto .prod-media img {
    width: 100% !important;
    height: 178px !important;
    min-height: 178px !important;
    max-height: 178px !important;
    object-fit: cover !important;
    transform: scale(1.04);
    transform-origin: center;
    transition: transform .2s ease;
}

body.view-grid .producto:hover img.prod-imagen,
body.view-grid .producto:hover .prod-media img {
    transform: scale(1.075);
}

body.view-grid .producto .prod-info {
    display: grid !important;
    grid-template-rows: 38px 20px 20px !important;
    row-gap: 2px !important;
    flex: 1 1 auto !important;
    align-content: start !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.view-grid .producto .prod-nombre {
    display: -webkit-box !important;
    min-height: 0 !important;
    max-height: 38px !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    align-self: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
}

body.view-grid .producto .prod-precio {
    align-self: center !important;
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

/* El buscador ocupa todo el ancho ahora que se eliminó la píldora "Todos". */
.prod-toolbar .input {
    flex: 1 1 100% !important;
}

@media (max-width: 1080px) and (min-width: 761px) {
    body.view-grid .cat-products {
        grid-auto-rows: 256px !important;
    }

    body.view-grid .producto {
        height: 256px !important;
        min-height: 256px !important;
        max-height: 256px !important;
    }

    body.view-grid .producto .prod-media,
    body.view-grid .producto img.prod-imagen,
    body.view-grid .producto .prod-media img {
        flex-basis: 158px !important;
        height: 158px !important;
        min-height: 158px !important;
        max-height: 158px !important;
    }
}

@media (max-width: 760px) {
    body.view-grid .cat-products {
        grid-auto-rows: 224px !important;
    }

    body.view-grid .producto {
        height: 224px !important;
        min-height: 224px !important;
        max-height: 224px !important;
        padding: 6px !important;
        gap: 4px !important;
    }

    body.view-grid .producto .prod-media,
    body.view-grid .producto img.prod-imagen,
    body.view-grid .producto .prod-media img {
        flex-basis: 134px !important;
        height: 134px !important;
        min-height: 134px !important;
        max-height: 134px !important;
    }

    body.view-grid .producto .prod-info {
        grid-template-rows: 34px 18px 18px !important;
        row-gap: 2px !important;
    }

    body.view-grid .producto .prod-nombre {
        max-height: 34px !important;
        font-size: 16px !important;
        line-height: 1.05 !important;
    }

    body.view-grid .producto .prod-precio {
        font-size: 15px !important;
    }
}

/* =========================================================
   POS · ACCIÓN + TECLADO NUMÉRICO TÁCTIL · 2026-08-05
========================================================= */
.pos-action-options {
    display: grid;
    gap: 10px;
    padding: 14px 2px;
}

.pos-action-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
    padding: 14px;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background: #f8fafc;
}

.pos-action-setting__text {
    min-width: 0;
}

.pos-action-setting__text strong,
.pos-action-setting__text small {
    display: block;
}

.pos-action-setting__text strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.pos-action-setting__text small {
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
}

.pos-action-toggle {
    display: grid;
    flex: 0 0 auto;
    justify-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
}

.pos-action-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pos-action-toggle__track {
    position: relative;
    display: block;
    width: 52px;
    height: 30px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #e2e8f0;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.pos-action-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 7px rgba(15, 23, 42, .24);
    transition: transform .18s ease;
}

.pos-action-toggle input:checked + .pos-action-toggle__track {
    border-color: #2fa9b8;
    background: #2fa9b8;
    box-shadow: 0 0 0 3px rgba(47, 169, 184, .13);
}

.pos-action-toggle input:checked + .pos-action-toggle__track .pos-action-toggle__thumb {
    transform: translateX(22px);
}

.pos-action-toggle input:focus-visible + .pos-action-toggle__track {
    outline: 3px solid rgba(37, 99, 235, .28);
    outline-offset: 2px;
}

.pos-action-toggle__state {
    color: #475569;
    font-size: 10px;
    font-weight: 800;
}

.pos-monto-input--numpad {
    cursor: pointer;
}

.pos-monto-input--numpad:focus {
    border-color: #2fa9b8 !important;
    box-shadow: 0 0 0 3px rgba(47, 169, 184, .16) !important;
}

.pos-monto-numpad {
    position: fixed;
    z-index: 10040;
    width: 318px;
    max-width: calc(100vw - 16px);
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, .14);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .30);
    animation: posNumpadIn .16s ease-out;
}

@keyframes posNumpadIn {
    from { opacity: 0; transform: translateY(6px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pos-monto-numpad__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.pos-monto-numpad__eyebrow {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pos-monto-numpad__title {
    margin-top: 2px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 1000;
    line-height: 1.1;
}

.pos-monto-numpad__close {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

.pos-monto-numpad__display {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 58px;
    margin-bottom: 12px;
    padding: 10px 14px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 15px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 28px;
    font-weight: 1000;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-monto-numpad__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.pos-monto-numpad__grid button {
    min-width: 0;
    min-height: 54px;
    padding: 6px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 2px 5px rgba(15, 23, 42, .06);
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform .08s ease, background .12s ease, border-color .12s ease;
}

.pos-monto-numpad__grid button:hover {
    border-color: #9bdce4;
    background: #ecfeff;
}

.pos-monto-numpad__grid button:active {
    transform: scale(.96);
}

.pos-monto-numpad__grid button.is-action {
    background: #f1f5f9;
    color: #334155;
}

.pos-monto-numpad__grid button.is-danger {
    border-color: #fecaca;
    background: #fff1f2;
    color: #be123c;
}

.pos-monto-numpad__grid button.is-wide {
    grid-column: span 2;
}

.pos-monto-numpad__grid button.is-total {
    border-color: #bae6fd;
    background: #e0f2fe;
    color: #075985;
    font-size: 14px;
}

.pos-monto-numpad__grid button.is-done {
    border-color: #2fa9b8;
    background: #2fa9b8;
    color: #fff;
    font-size: 14px;
}

@media (max-width: 760px) {
    .pos-action-setting {
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }

    .pos-monto-numpad {
        top: auto !important;
        right: 8px !important;
        bottom: max(8px, env(safe-area-inset-bottom)) !important;
        left: 8px !important;
        width: auto;
        max-width: none;
        padding: 12px;
        border-radius: 18px;
    }

    .pos-monto-numpad__display {
        min-height: 50px;
        margin-bottom: 9px;
        font-size: 24px;
    }

    .pos-monto-numpad__grid {
        gap: 6px;
    }

    .pos-monto-numpad__grid button {
        min-height: 48px;
        border-radius: 12px;
        font-size: 18px;
    }
}

/* ==========================================================
   POS · Validación visible de extras obligatorios
   Fecha: 2026-08-06
========================================================== */
#modal .grupo-regla {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 32px !important;
    padding: 6px 10px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06) !important;
}

#modal .grupo-regla span {
    font-size: 10px !important;
    font-weight: 950 !important;
    letter-spacing: .045em !important;
    text-transform: uppercase !important;
}

#modal .grupo-regla.is-required {
    border-color: #f59e0b !important;
    background: #fef3c7 !important;
    color: #92400e !important;
}

#modal .grupo-regla.is-optional {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
    color: #475569 !important;
}

/* El grupo obligatorio debe verse amarillo desde que se abre el modal. */
#modal #modal-contenido .grupo.min-bad {
    margin-bottom: 10px !important;
    padding: 14px !important;
    border: 2px solid #f59e0b !important;
    border-radius: 14px !important;
    background: #fffbeb !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .11) !important;
}

#modal #modal-contenido .grupo.min-bad .grupo-regla.is-required {
    border-color: #d97706 !important;
    background: #f59e0b !important;
    color: #ffffff !important;
}

#modal #modal-contenido .grupo.min-ok .grupo-regla.is-required {
    border-color: #22c55e !important;
    background: #dcfce7 !important;
    color: #166534 !important;
}

#modal .modal-footer {
    display: grid !important;
    grid-template-columns: auto minmax(260px, 1fr) auto !important;
    align-items: center !important;
    gap: 14px !important;
}

#modal .modal-total-item {
    min-width: 115px;
}

#modal .modal-validation {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #f59e0b;
    border-radius: 12px;
    background: #fffbeb;
    color: #78350f;
    font-size: 12px;
    line-height: 1.35;
    box-shadow: 0 2px 8px rgba(146, 64, 14, .08);
}

#modal .modal-validation.hidden {
    display: none !important;
}

#modal .modal-validation-icon {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    font-weight: 950;
}

#modal .modal-validation strong {
    display: block;
    margin-bottom: 3px;
    color: #78350f;
    font-size: 12px;
    font-weight: 950;
}

#modal .modal-validation ul {
    margin: 0;
    padding-left: 17px;
}

#modal .modal-validation li + li {
    margin-top: 2px;
}

#modal .modal-validation-more {
    margin-top: 3px;
    font-weight: 800;
}

#modal #aceptar.is-blocked {
    border-color: #9ca3af !important;
    background: #9ca3af !important;
    color: #ffffff !important;
    opacity: .82 !important;
    filter: none !important;
    cursor: not-allowed !important;
    pointer-events: auto !important;
}

#modal #aceptar.is-blocked:hover,
#modal #aceptar.is-blocked:focus {
    border-color: #6b7280 !important;
    background: #6b7280 !important;
}

#modal #aceptar.is-ready {
    border-color: #22c55e !important;
    background: #22c55e !important;
    color: #ffffff !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

/* El botón principal queda siempre a la izquierda de Cancelar y ambos conservan
   el mismo ancho para que no cambien de posición al aparecer mensajes. */
#modal .modal-actions {
    justify-content: flex-end !important;
    align-self: end !important;
    min-width: 206px;
}

#modal .modal-actions > .btn {
    flex: 0 0 98px;
    width: 98px;
    min-width: 98px;
}

#modal #aceptar {
    order: 1;
}

#modal #cancelar {
    order: 2;
}

/* Los mensajes deben quedar siempre por encima del modal. */
.toast,
#toast {
    z-index: 30000 !important;
}

@media (max-width: 900px) {
    #modal .modal-footer {
        grid-template-columns: 1fr auto !important;
    }

    #modal .modal-validation {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    #modal .modal-total-item {
        grid-column: 1;
        grid-row: 2;
    }

    #modal .modal-actions {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 560px) {
    #modal .grupo-head {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    #modal .grupo-regla {
        align-self: flex-start;
    }

    #modal .modal-footer {
        grid-template-columns: 1fr !important;
    }

    #modal .modal-validation,
    #modal .modal-total-item,
    #modal .modal-actions {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    #modal .modal-actions {
        justify-content: flex-end;
    }
}

/* ==========================================================
   POS · reglas compactas y tarjetas ordenadas
   Fecha: 2026-08-09
========================================================== */

/* En pantalla solo se muestra si el grupo es Opcional o Requerido.
   El detalle técnico de mínimos, máximos e inventario se informa por consola. */
#modal .grupo-head {
    align-items: flex-start !important;
    gap: 14px !important;
}

#modal .grupo-title-wrap {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

#modal .grupo-regla {
    flex: 0 0 auto !important;
    justify-content: center !important;
    max-width: none !important;
    min-height: 28px !important;
    padding: 5px 10px !important;
    white-space: nowrap !important;
    text-align: center !important;
    line-height: 1 !important;
}

#modal .grupo-regla span {
    flex: 0 0 auto !important;
}

/* Mantiene espacio suficiente para el resumen sin restárselo al contenido principal. */
#modal .modal-grid {
    grid-template-columns: minmax(0, 1fr) clamp(300px, 28vw, 360px) !important;
}

/* Tarjeta de producto: nombre, precio y estado ocupan filas propias y no se pisan. */
body.view-grid .producto {
    height: 282px !important;
    min-height: 282px !important;
    max-height: 282px !important;
}

body.view-grid .cat-products {
    grid-auto-rows: 282px !important;
}

body.view-grid .producto .prod-media,
body.view-grid .producto img.prod-imagen,
body.view-grid .producto .prod-media img {
    height: 174px !important;
    min-height: 174px !important;
    max-height: 174px !important;
}

body.view-grid .producto .prod-info {
    grid-template-rows: minmax(38px, auto) 22px 28px !important;
    row-gap: 3px !important;
    overflow: visible !important;
}

body.view-grid .producto .prod-nombre {
    align-self: end !important;
}

body.view-grid .producto .prod-precio {
    align-self: center !important;
}

.producto .prod-stock-status {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 26px !important;
    margin: 0 !important;
    overflow: visible !important;
}

@media (max-width: 900px) {
    #modal .modal-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 700px) {
    #modal .grupo-head {
        flex-direction: column !important;
    }

    #modal .grupo-regla {
        max-width: none !important;
        align-self: flex-start !important;
    }
}

/* ============================================================
   POS · compra en curso + notificaciones discretas
   ============================================================ */
#toast.toast {
    top: 18px !important;
    right: 18px !important;
    bottom: auto !important;
    max-width: min(360px, calc(100vw - 36px)) !important;
    padding: 9px 12px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .18) !important;
    transform: translateY(-8px) !important;
    pointer-events: none;
}

#toast.toast.show {
    transform: translateY(0) !important;
}

.pos-draft-modal {
    position: fixed;
    inset: 0;
    z-index: 32000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.pos-draft-modal.hidden {
    display: none !important;
}

.pos-draft-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(2px);
}

.pos-draft-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px 16px;
    padding: 22px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.pos-draft-modal__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 22px;
}

.pos-draft-modal__dialog h3 {
    margin: 0 0 5px;
    font-size: 19px;
}

.pos-draft-modal__dialog p {
    margin: 0;
    color: #64748b;
    line-height: 1.45;
}

.pos-draft-modal__actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

@media (max-width: 560px) {
    .pos-draft-modal__dialog {
        grid-template-columns: 1fr;
    }

    .pos-draft-modal__actions {
        flex-direction: column;
    }

    .pos-draft-modal__actions .btn {
        width: 100%;
    }
}

/* Disponibilidad POS: los registros no disponibles siguen visibles, pero no se pueden seleccionar. */
.producto.producto-no-disponible {
    filter: grayscale(1);
    opacity: .48;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.producto.producto-no-disponible:hover {
    transform: none !important;
}

.producto.producto-no-disponible .prod-media,
.producto.producto-no-disponible .prod-info {
    pointer-events: none;
}

.prod-disponibilidad-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #5f6670;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

#modal .extra-row.extra-no-disponible,
#modal .combo-producto-categoria.extra-no-disponible {
    filter: grayscale(1);
    opacity: .48;
    cursor: not-allowed;
    background: #f3f4f6 !important;
}

#modal .extra-row.extra-no-disponible input,
#modal .extra-row.extra-no-disponible button,
#modal .combo-producto-categoria.extra-no-disponible input {
    cursor: not-allowed !important;
}

.pos-no-disponible-text {
    color: #6b7280;
    font-weight: 800;
}

/* =========================================================
   VASE · RECUPERACIÓN BOTÓN ACCIÓN DEL POS · 2026-10-05
   El botón ya existía en el HTML, pero podía quedar detrás del botón
   flotante "Menú" al ocultarse el sidebar. Se fija abajo sin superponerlos.
========================================================= */
body.liud-pos-screen .pos-category-actions {
    position: fixed !important;
    left: 88px !important;
    bottom: 14px !important;
    width: 118px !important;
    min-width: 118px !important;
    z-index: 100020 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}

body.liud-pos-screen.liud-sidebar-hidden .pos-category-actions {
    left: 12px !important;
}

body.liud-pos-screen .pos-category-actions #btnAbrirModalTop {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 118px !important;
    min-width: 118px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #0f172a !important;
    border-radius: 12px !important;
    background: #0f172a !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(15,23,42,.18) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.liud-pos-screen .pos-category-actions #btnAbrirModalTop span {
    display: inline !important;
}

body.liud-pos-screen .pos-category-actions #btnAbrirModalTop:hover {
    background: #1e293b !important;
    border-color: #1e293b !important;
    transform: translateY(-1px) !important;
}

/* Menú queda arriba; Acción queda abajo. */
body.liud-pos-screen .admin-sidebar-reopen {
    bottom: 78px !important;
}

@media (max-width: 992px) {
    body.liud-pos-screen .pos-category-actions,
    body.liud-pos-screen.liud-sidebar-hidden .pos-category-actions {
        left: 12px !important;
        bottom: 14px !important;
    }
}


/* =========================================================
   AJUSTE FINO · POS toma el color del menú lateral configurado
   ========================================================= */
body.liud-pos-screen .categorias button:not(.pos-config-sidebar),
body.liud-pos-screen .tipo-pedido .active,
body.liud-pos-screen .btn-finalizar {
    border-color: var(--liud-sidebar, #166b52) !important;
    background: var(--liud-sidebar, #166b52) !important;
    color: var(--liud-sidebar-text, #fff) !important;
}

body.liud-pos-screen .categorias button:not(.pos-config-sidebar):hover,
body.liud-pos-screen .categorias .active,
body.liud-pos-screen .btn-finalizar:hover {
    border-color: color-mix(in srgb, var(--liud-sidebar, #166b52) 82%, #000) !important;
    background: color-mix(in srgb, var(--liud-sidebar, #166b52) 88%, #000) !important;
    color: var(--liud-sidebar-text, #fff) !important;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--liud-sidebar, #166b52) 22%, transparent) !important;
}

body.liud-pos-screen .categorias .active {
    box-shadow:
        inset 0 0 0 2px color-mix(in srgb, var(--vase-menu-accent, #39e58c) 74%, #fff),
        0 8px 20px color-mix(in srgb, var(--liud-sidebar, #166b52) 22%, transparent) !important;
}

body.liud-pos-screen .input:focus {
    border-color: var(--liud-sidebar, #166b52) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--liud-sidebar, #166b52) 14%, transparent) !important;
}

/* POS 13-10-2026 · Descuento + agregar método de pago en una sola fila.
   Compacta el bloque para hacer visible Finalizar Venta más arriba sin tocar los pagos. */
.pago-acciones {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    margin: 8px 0 6px;
}

.pago-acciones .btn-descuento,
.pago-acciones .btn-add-pago {
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    box-sizing: border-box;
    min-height: 40px;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    font-size: 13px;
    line-height: 1.2;
}

.pago-acciones .btn-descuento {
    flex: 0 0 auto;
}

.pago-acciones .btn-add-pago {
    flex: 0 1 auto;
    width: auto;
    height: auto;
    min-width: 0;
    border: 1px solid #97d6b5;
    background: linear-gradient(135deg, #e8f8ef, #ffffff);
    color: #145b3c;
    font-size: 12.5px;
    font-weight: 800;
    white-space: normal;
    text-align: center;
}

.pago-acciones .btn-add-pago:hover {
    border-color: #16865b;
    background: #e1f6ea;
}

.pago-acciones .btn-add-pago .pago-add-icon {
    font-size: 19px;
    line-height: 1;
    font-weight: 800;
    flex: 0 0 auto;
}

/* Menos márgenes internos, conservando campos cómodos de usar. */
.pago-acciones + .pago-card {
    margin-top: 5px;
    padding: 10px;
}
.pago-acciones + .pago-card .pago-card-head {
    padding-bottom: 5px;
    margin-bottom: 8px;
}
.pago-acciones + .pago-card .pago-box {
    margin-bottom: 8px;
}
.pago-acciones + .pago-card .lbl {
    margin-bottom: 4px;
}
.pago-acciones ~ .btn-finalizar {
    margin-top: 8px;
}

@media (max-width: 420px) {
    .pago-acciones .btn-descuento,
    .pago-acciones .btn-add-pago {
        padding: 8px !important;
        font-size: 12px;
    }
}

/* POS: aviso de dinero faltante durante pagos divididos */
.pos-pago-insuficiente {
    padding: 10px 12px;
    margin-top: 8px;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    background: #fff1f2;
    color: #991b1b;
    font-weight: 750;
    line-height: 1.35;
}

/* Selector de cantidad de unidades idénticas: modal POS. */
#modal .modal-right {
    display: flex !important;
    flex-direction: column !important;
    min-height: min(560px, calc(86vh - 165px));
    padding-bottom: 12px !important;
}
#modal .pos-modal-cantidad {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding: 14px 12px;
    border: 1px solid #dce5ec;
    border-radius: 13px;
    background: #f8fafc;
}
#modal .pos-modal-cantidad-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
#modal .pos-modal-cantidad-label strong {
    font-size: 15px;
    color: #142233;
}
#modal .pos-modal-cantidad-label small {
    font-size: 11px;
    color: #64748b;
    max-width: 150px;
    line-height: 1.3;
}
#modal .pos-modal-cantidad-controles {
    display: flex;
    align-items: center;
    gap: 7px;
}
#modal .pos-modal-cantidad-btn {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1px solid #b8cfbf;
    background: #e9f8ef;
    color: #12633b;
    font-size: 23px;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
}
#modal .pos-modal-cantidad-btn:disabled {
    opacity: .4;
    cursor: default;
}
#modal .pos-modal-cantidad-btn:not(:disabled):active {
    transform: scale(.96);
}
#modal #posCantidadValor {
    min-width: 34px;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: #142233;
}
@media (max-width: 900px) {
    #modal .modal-right {
        min-height: 0 !important;
        padding-bottom: 0 !important;
        gap: 16px;
    }
    #modal .pos-modal-cantidad {
        margin-top: 0;
    }
}
