/* =========================
   POS · BURBUJAS STOCK / ENLACE
========================= */

.pos-stock-bubble {
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 1000;
    line-height: 1;
    color: #fff !important;

    box-shadow: 0 8px 18px rgba(15, 23, 42, .22);
    z-index: 30;
    user-select: none;
}

/* Producto: arriba a la derecha */
.producto {
    position: relative;
}

.producto>.pos-stock-bubble.pos-stock-producto {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* Si también está el badge morado del carrito, lo bajamos un poco */
.producto>.prod-badge+.pos-stock-bubble,
.producto>.pos-stock-bubble+.prod-badge {
    top: 46px;
}

/* Extra: al lado del nombre */
.qty-name .pos-stock-bubble,
.check .pos-stock-bubble,
.extra-row .pos-stock-bubble {
    position: static;
    margin-left: 8px;
    vertical-align: middle;
}

/* Estados */
.pos-stock-bubble.pos-stock-ok {
    background: #16a34a;
}

.pos-stock-bubble.pos-stock-low {
    background: #f59e0b;
}

.pos-stock-bubble.pos-stock-out {
    background: #ef4444;
}

.pos-stock-bubble.pos-stock-nolink {
    background: #6b7280;
}

/* Card producto según estado */
.producto.pos-stock-card-ok {
    border-color: rgba(22, 163, 74, .65) !important;
}

.producto.pos-stock-card-low {
    border-color: rgba(245, 158, 11, .9) !important;
}

.producto.pos-stock-card-out {
    border-color: rgba(239, 68, 68, .9) !important;
}

.producto.pos-stock-card-nolink {
    border-color: rgba(107, 114, 128, .65) !important;
    opacity: .9;
}

/* Extra según estado */
.extra-row.pos-stock-card-ok,
.check.pos-stock-card-ok {
    border-color: rgba(22, 163, 74, .45) !important;
}

.extra-row.pos-stock-card-low,
.check.pos-stock-card-low {
    border-color: rgba(245, 158, 11, .85) !important;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, .3) inset;
}

.extra-row.pos-stock-card-out,
.check.pos-stock-card-out {
    border-color: rgba(239, 68, 68, .85) !important;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, .3) inset;
}

.extra-row.pos-stock-card-nolink,
.check.pos-stock-card-nolink {
    border-color: rgba(107, 114, 128, .55) !important;
}

/* Para que no se aplaste en grilla */
body.view-grid .producto>.pos-stock-bubble.pos-stock-producto {
    top: 10px;
    right: 10px;
}

/* Mobile */
@media (max-width: 760px) {
    .pos-stock-bubble {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
    }
}
/* =========================
   FIX POS · stock sin solaparse
========================= */
.producto>.pos-stock-bubble.pos-stock-producto {
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
}

.producto>.prod-badge {
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
}

.producto.pos-stock-no-seleccionable {
    cursor: not-allowed !important;
    opacity: .72;
    filter: grayscale(.15);
}

.producto.pos-stock-no-seleccionable:hover {
    transform: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06) !important;
}

.producto.pos-stock-no-seleccionable::after {
    content: "Sin stock";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(239, 68, 68, .95);
    color: #fff;
    font-size: 11px;
    font-weight: 1000;
    text-align: center;
    z-index: 35;
}

.extra-row {
    position: relative;
}

.extra-row>.pos-stock-bubble.pos-stock-extra {
    position: absolute !important;
    top: 8px;
    right: 8px;
    margin-left: 0 !important;
}

.extra-row.pos-stock-no-seleccionable {
    opacity: .72;
}

.extra-row.pos-stock-no-seleccionable::after {
    content: "Sin stock";
    position: absolute;
    right: 48px;
    top: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(239, 68, 68, .10);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, .25);
    font-size: 11px;
    font-weight: 900;
    pointer-events: none;
}

.extra-row .qty-left,
.extra-row .qty-name,
.extra-row span {
    padding-right: 72px;
}

.extra-row button:disabled,
.extra-row input:disabled {
    opacity: .45;
    cursor: not-allowed;
}

body.view-grid .producto>.pos-stock-bubble.pos-stock-producto {
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
}

/* =========================================================
   POS · Etiquetas claras de inventario (2026-07-28)
   Reemplaza símbolos crípticos y la franja roja de ancho completo.
========================================================= */
.pos-stock-bubble.pos-stock-bubble-texto {
    width: auto;
    min-width: 0;
    max-width: 180px;
    height: 28px;
    padding: 0 10px;
    white-space: nowrap;
    font-size: 10px;
    letter-spacing: .01em;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .16);
}

.pos-stock-bubble.pos-stock-nolink {
    border: 1px solid rgba(220, 38, 38, .24);
    background: #fff1f2;
    color: #b91c1c !important;
}

.producto > .pos-stock-bubble.pos-stock-producto.pos-stock-nolink,
.producto > .pos-stock-bubble.pos-stock-producto.pos-stock-out {
    top: auto !important;
    right: 8px !important;
    bottom: 8px !important;
    left: auto !important;
}

.producto.pos-stock-no-seleccionable::after {
    content: none !important;
    display: none !important;
}

.producto.pos-stock-no-seleccionable {
    opacity: .78;
}

.extra-row > .pos-stock-bubble.pos-stock-extra.pos-stock-bubble-texto {
    max-width: 145px;
}

.extra-row.pos-stock-no-seleccionable::after {
    content: none !important;
    display: none !important;
}

.extra-row:has(> .pos-stock-bubble.pos-stock-bubble-texto) .qty-left,
.extra-row:has(> .pos-stock-bubble.pos-stock-bubble-texto) .qty-name,
.extra-row:has(> .pos-stock-bubble.pos-stock-bubble-texto) span {
    padding-right: 155px;
}

@media (max-width: 760px) {
    .pos-stock-bubble.pos-stock-bubble-texto {
        height: 26px;
        padding: 0 8px;
        font-size: 9px;
    }
}


/* POS · Aviso de inventario contenido y legible 2026-07-29 */
/* Evita que el padding destinado al contenido se aplique también a la etiqueta. */
.extra-row > .qty-left,
.extra-row.check > span:not(.pos-stock-bubble) {
    padding-right: 190px !important;
}

.extra-row > .pos-stock-bubble.pos-stock-extra.pos-stock-bubble-texto {
    top: 50% !important;
    right: 10px !important;
    bottom: auto !important;
    left: auto !important;
    transform: translateY(-50%);
    width: auto !important;
    min-width: 160px !important;
    max-width: 180px !important;
    height: 30px !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111827 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-align: center;
}

.extra-row > .pos-stock-bubble.pos-stock-extra.pos-stock-nolink {
    border: 1px solid #fca5a5 !important;
    background: #fff1f2 !important;
    color: #111827 !important;
    font-weight: 500 !important;
}

/* Anula reglas antiguas demasiado generales que ensanchaban el texto del aviso. */
.extra-row > .pos-stock-bubble,
.extra-row:has(> .pos-stock-bubble.pos-stock-bubble-texto) > .pos-stock-bubble {
    padding-right: 10px !important;
}

@media (max-width: 760px) {
    .extra-row > .qty-left,
    .extra-row.check > span:not(.pos-stock-bubble) {
        padding-right: 150px !important;
    }

    .extra-row > .pos-stock-bubble.pos-stock-extra.pos-stock-bubble-texto {
        min-width: 132px !important;
        max-width: 142px !important;
        height: 28px !important;
        font-size: 10px !important;
    }
}

/* POS · aviso "No enlazado a inventario" más discreto */
.pos-stock-bubble.pos-stock-nolink.pos-stock-bubble-texto {
    height: 22px !important;
    padding: 0 7px !important;
    font-size: 9px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    color: #6b7280 !important;
    letter-spacing: 0 !important;
}


/* POS · etiquetas de inventario compactas y sin negrita */
.extra-row > .pos-stock-bubble.pos-stock-extra.pos-stock-nolink.pos-stock-bubble-texto,
.producto > .pos-stock-bubble.pos-stock-producto.pos-stock-nolink.pos-stock-bubble-texto {
    width: auto !important;
    min-width: 0 !important;
    max-width: 138px !important;
    height: 20px !important;
    padding: 0 6px !important;
    font-size: 8px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: #9f1239 !important;
    letter-spacing: 0 !important;
}

.extra-row > .pos-stock-bubble.pos-stock-extra.pos-stock-directo.pos-stock-bubble-texto,
.producto > .pos-stock-bubble.pos-stock-producto.pos-stock-directo.pos-stock-bubble-texto {
    width: auto !important;
    min-width: 0 !important;
    max-width: 150px !important;
    height: 22px !important;
    padding: 0 7px !important;
    border: 1px solid #6ee7b7 !important;
    background: #ecfdf5 !important;
    color: #047857 !important;
    font-size: 8px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

@media (max-width: 760px) {
    .extra-row > .pos-stock-bubble.pos-stock-extra.pos-stock-nolink.pos-stock-bubble-texto,
    .producto > .pos-stock-bubble.pos-stock-producto.pos-stock-nolink.pos-stock-bubble-texto,
    .extra-row > .pos-stock-bubble.pos-stock-extra.pos-stock-directo.pos-stock-bubble-texto,
    .producto > .pos-stock-bubble.pos-stock-producto.pos-stock-directo.pos-stock-bubble-texto {
        font-size: 7px !important;
        font-weight: 400 !important;
    }
}

/* POS · corrección definitiva: etiquetas de inventario pequeñas y sin texto negro */
.extra-row > .pos-stock-bubble.pos-stock-extra.pos-stock-bubble-texto,
.producto > .pos-stock-bubble.pos-stock-producto.pos-stock-bubble-texto {
    width: auto !important;
    min-width: 0 !important;
    max-width: 138px !important;
    height: 20px !important;
    padding: 0 6px !important;
    font-size: 8px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
}

.extra-row > .pos-stock-bubble.pos-stock-extra.pos-stock-nolink.pos-stock-bubble-texto,
.producto > .pos-stock-bubble.pos-stock-producto.pos-stock-nolink.pos-stock-bubble-texto {
    color: #9f1239 !important;
}

.extra-row > .pos-stock-bubble.pos-stock-extra.pos-stock-ok.pos-stock-bubble-texto,
.producto > .pos-stock-bubble.pos-stock-producto.pos-stock-ok.pos-stock-bubble-texto,
.extra-row > .pos-stock-bubble.pos-stock-extra.pos-stock-directo.pos-stock-bubble-texto,
.producto > .pos-stock-bubble.pos-stock-producto.pos-stock-directo.pos-stock-bubble-texto {
    color: #047857 !important;
}

@media (max-width: 760px) {
    .extra-row > .pos-stock-bubble.pos-stock-extra.pos-stock-bubble-texto,
    .producto > .pos-stock-bubble.pos-stock-producto.pos-stock-bubble-texto {
        font-size: 7px !important;
        font-weight: 400 !important;
    }
}

/* =========================================================
   POS · corrección final de etiquetas de inventario
   - Todas las etiquetas largas quedan pequeñas y sin negrita.
   - Control de stock directo usa la misma posición inferior derecha.
========================================================= */

/* Producto: "Control de stock directo" exactamente donde aparece "No enlazado". */
.producto > .pos-stock-bubble.pos-stock-producto.pos-stock-directo,
body.view-grid .producto > .pos-stock-bubble.pos-stock-producto.pos-stock-directo {
    position: absolute !important;
    top: auto !important;
    right: 8px !important;
    bottom: 8px !important;
    left: auto !important;
    transform: none !important;
}

/* El selector con #modal vence las reglas generales del modal que ponían 16px y negrita. */
#modal .check,
#modal .qty-row,
#modal .extra-row {
    position: relative !important;
}

#modal .check > span.pos-stock-bubble.pos-stock-extra,
#modal .qty-row > span.pos-stock-bubble.pos-stock-extra,
#modal .extra-row > span.pos-stock-bubble.pos-stock-extra {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    bottom: auto !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 20px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    white-space: nowrap !important;
    text-overflow: clip !important;
    font-family: inherit !important;
    font-size: 8px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-transform: none !important;
    text-shadow: none !important;
}

#modal .check > span.pos-stock-bubble.pos-stock-nolink,
#modal .qty-row > span.pos-stock-bubble.pos-stock-nolink,
#modal .extra-row > span.pos-stock-bubble.pos-stock-nolink {
    border-color: #fda4af !important;
    background: #fff1f2 !important;
    color: #9f1239 !important;
}

#modal .check > span.pos-stock-bubble.pos-stock-ok,
#modal .qty-row > span.pos-stock-bubble.pos-stock-ok,
#modal .extra-row > span.pos-stock-bubble.pos-stock-ok,
#modal .check > span.pos-stock-bubble.pos-stock-directo,
#modal .qty-row > span.pos-stock-bubble.pos-stock-directo,
#modal .extra-row > span.pos-stock-bubble.pos-stock-directo {
    border-color: #6ee7b7 !important;
    background: #ecfdf5 !important;
    color: #047857 !important;
}

#modal .check > span.pos-stock-bubble.pos-stock-low,
#modal .qty-row > span.pos-stock-bubble.pos-stock-low,
#modal .extra-row > span.pos-stock-bubble.pos-stock-low {
    border-color: #fcd34d !important;
    background: #fffbeb !important;
    color: #92400e !important;
}

/* Reserva espacio solo para la etiqueta; no agranda ni pone negrita al nombre del extra. */
#modal .check > span:not(.pos-stock-bubble),
#modal .qty-row .qty-name,
#modal .extra-row .qty-name {
    padding-right: 145px !important;
}

@media (max-width: 760px) {
    #modal .check > span.pos-stock-bubble.pos-stock-extra,
    #modal .qty-row > span.pos-stock-bubble.pos-stock-extra,
    #modal .extra-row > span.pos-stock-bubble.pos-stock-extra {
        right: 7px !important;
        height: 18px !important;
        padding: 0 5px !important;
        font-size: 7px !important;
        font-weight: 400 !important;
        line-height: 18px !important;
    }

    #modal .check > span:not(.pos-stock-bubble),
    #modal .qty-row .qty-name,
    #modal .extra-row .qty-name {
        padding-right: 125px !important;
    }
}



/* =========================================================
   POS · Tooltip de detalle para “Sin stock”
   Muestra el insumo exacto, stock disponible y consumo requerido.
========================================================= */
.pos-stock-tooltip {
    position: fixed;
    z-index: 999999;
    display: none;
    width: max-content;
    max-width: min(430px, calc(100vw - 24px));
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, .14);
    border-radius: 10px;
    background: #111827;
    color: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .28);
    white-space: pre-line;
    overflow-wrap: anywhere;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    pointer-events: none;
}

.pos-stock-tooltip.is-visible {
    display: block;
}

.pos-stock-bubble[data-stock-tooltip] {
    cursor: help;
}

.pos-stock-bubble[data-stock-tooltip]:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* =========================================================
   POS · ESTADO DE INVENTARIO DEBAJO DEL PRECIO · 2026-08-05
========================================================= */
.producto .prod-stock-status {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
}

.producto .prod-stock-status:empty {
    display: none;
}

.producto .prod-stock-status > .pos-stock-bubble.pos-stock-producto,
body.view-grid .producto .prod-stock-status > .pos-stock-bubble.pos-stock-producto {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 21px;
    margin: 0 !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    text-align: left;
    box-shadow: none !important;
    z-index: auto !important;
}

body.view-grid .producto .prod-stock-status {
    justify-content: center;
    margin-top: auto;
    padding-top: 6px;
}

body.view-grid .producto .prod-stock-status > .pos-stock-bubble.pos-stock-producto {
    text-align: center;
}

.producto.pos-stock-no-seleccionable {
    opacity: .82;
}

@media (max-width: 760px) {
    .producto .prod-stock-status > .pos-stock-bubble.pos-stock-producto,
    body.view-grid .producto .prod-stock-status > .pos-stock-bubble.pos-stock-producto {
        min-height: 20px;
        padding: 4px 6px !important;
        font-size: 8px !important;
    }
}


/* =========================================================
   POS · ESPACIO FIJO PARA ESTADO DE INVENTARIO · 2026-08-05
   La etiqueta queda debajo del precio sin cambiar el tamaño de la tarjeta.
========================================================= */
body.view-grid .producto .prod-stock-status,
body.view-grid .producto .prod-stock-status:empty {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    width: 100% !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.view-grid .producto .prod-stock-status:empty {
    visibility: hidden !important;
}

body.view-grid .producto .prod-stock-status > .pos-stock-bubble.pos-stock-producto {
    max-width: 100% !important;
    min-height: 18px !important;
    max-height: 18px !important;
    padding: 3px 6px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 8px !important;
    line-height: 1 !important;
}

@media (max-width: 760px) {
    body.view-grid .producto .prod-stock-status,
    body.view-grid .producto .prod-stock-status:empty {
        height: 18px !important;
        min-height: 18px !important;
        max-height: 18px !important;
    }

    body.view-grid .producto .prod-stock-status > .pos-stock-bubble.pos-stock-producto {
        min-height: 17px !important;
        max-height: 17px !important;
        padding: 3px 5px !important;
        font-size: 7px !important;
    }
}

/* =========================================================
   POS · AVISO “SIN STOCK” MÁS COMPLETO Y LEGIBLE · 2026-08-05
========================================================= */
.producto .prod-stock-status > .pos-stock-bubble.pos-stock-agotado,
body.view-grid .producto .prod-stock-status > .pos-stock-bubble.pos-stock-agotado {
    min-width: 116px !important;
    max-width: 100% !important;
    border: 1px solid #dc2626 !important;
    background: #ef4444 !important;
    color: #fff !important;
    padding-right: 9px !important;
    padding-left: 9px !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    letter-spacing: .01em !important;
    text-align: center !important;
    box-shadow: 0 3px 8px rgba(220, 38, 38, .20) !important;
}

.producto .prod-stock-status > .pos-stock-bubble.pos-stock-agotado::before {
    content: "!";
    display: inline-grid;
    place-items: center;
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    margin-right: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .23);
    color: #fff;
    font-size: 9px;
    font-weight: 1000;
    line-height: 1;
}

@media (max-width: 760px) {
    .producto .prod-stock-status > .pos-stock-bubble.pos-stock-agotado,
    body.view-grid .producto .prod-stock-status > .pos-stock-bubble.pos-stock-agotado {
        min-width: 108px !important;
        padding-right: 7px !important;
        padding-left: 7px !important;
        font-size: 8px !important;
    }
}

/* =========================================================
   POS · estado de inventario en flujo (sin tapar nombre/precio)
   Fecha: 2026-08-09
========================================================= */
.producto .prod-stock-status > .pos-stock-bubble.pos-stock-producto,
body.view-grid .producto .prod-stock-status > .pos-stock-bubble.pos-stock-producto {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 8px) !important;
    height: 22px !important;
    margin: 0 auto !important;
    padding: 0 8px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    font-size: 9px !important;
    font-weight: 650 !important;
    line-height: 22px !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
}

/* En las opciones del modal el estado deja de ser absoluto: queda al final de la fila. */
#modal .check.extra-row,
#modal .qty-row.extra-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

#modal .check.extra-row > .pos-stock-bubble.pos-stock-extra,
#modal .qty-row.extra-row > .pos-stock-bubble.pos-stock-extra,
#modal .extra-row > .pos-stock-bubble.pos-stock-extra {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    order: 30 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 155px !important;
    height: 22px !important;
    margin: 0 0 0 auto !important;
    padding: 0 7px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    font-size: 8px !important;
    font-weight: 500 !important;
    line-height: 22px !important;
    box-shadow: none !important;
}

#modal .check.extra-row > input[type="checkbox"] {
    order: 1 !important;
}

#modal .check.extra-row > span:not(.pos-stock-bubble) {
    order: 2 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding-right: 0 !important;
}

#modal .qty-row.extra-row > .qty-left {
    order: 1 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding-right: 0 !important;
}

#modal .qty-row.extra-row > .qty-right {
    order: 2 !important;
    flex: 0 0 auto !important;
}

#modal .check > span:not(.pos-stock-bubble),
#modal .qty-row .qty-name,
#modal .extra-row .qty-name {
    padding-right: 0 !important;
}

@media (max-width: 620px) {
    #modal .check.extra-row,
    #modal .qty-row.extra-row {
        flex-wrap: wrap !important;
    }

    #modal .check.extra-row > .pos-stock-bubble.pos-stock-extra,
    #modal .qty-row.extra-row > .pos-stock-bubble.pos-stock-extra {
        flex-basis: auto !important;
        max-width: 100% !important;
        margin-left: 28px !important;
    }
}

.producto .prod-stock-status > .pos-stock-bubble.pos-stock-combo {
    border: 1px solid #bfdbfe !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

/* =========================================================
   POS · LISTA: estado de inventario siempre debajo del precio
   Fecha: 2026-08-13
========================================================= */
body:not(.view-grid) .producto .prod-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    min-width: 0 !important;
}

body:not(.view-grid) .producto .prod-precio {
    width: 100% !important;
    margin-bottom: 0 !important;
}

body:not(.view-grid) .producto .prod-stock-status {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-self: stretch !important;
    width: 100% !important;
    min-height: 22px !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

body:not(.view-grid) .producto .prod-stock-status > .pos-stock-bubble.pos-stock-producto {
    margin: 0 !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

/* La grilla conserva el diseño centrado que ya funciona bien. */
body.view-grid .producto .prod-stock-status {
    justify-content: center !important;
}
body.view-grid .producto .prod-stock-status > .pos-stock-bubble.pos-stock-producto {
    margin: 0 auto !important;
    justify-content: center !important;
    text-align: center !important;
}
