/* P-11 — CSS verbatim de los bloques de estilo de Pages/Ventas/Mobile/POS/POSMovil4Page.razor (los dos bloques: «Pager override styles» y el tema POS Cobalt). Igual que hoy, es global mientras el componente está en pantalla:
   se enlaza con <link> donde estaba el bloque. Cambios: @@ → @. z-index: 9999 → --z-bloqueo (carga) y --z-modal (carrito móvil). */
.custom-pager {
    display: flex !important;
    align-items: center !important;
    min-height: unset !important;
    height: 32px !important;
    padding: 0 5px !important;
    background: #E6F1FB !important;
    border: 0.5px solid #B5D4F4 !important;
    border-radius: 5px !important;
}

    .custom-pager .e-pagercontainer {
        height: 32px !important;
        min-height: unset !important;
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }

        .custom-pager .e-pagercontainer .e-first,
        .custom-pager .e-pagercontainer .e-prev,
        .custom-pager .e-pagercontainer .e-next,
        .custom-pager .e-pagercontainer .e-last,
        .custom-pager .e-pagercontainer .e-numericitem {
            height: 24px !important;
            min-width: 24px !important;
            width: auto !important;
            padding: 0 6px !important;
            border-radius: 4px !important;
            border: 0.5px solid #B5D4F4 !important;
            background: #fff !important;
            color: #185FA5 !important;
            font-size: 11px !important;
            font-weight: 500 !important;
            line-height: 24px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            cursor: pointer !important;
            transition: background 0.14s !important;
            margin: 0 !important;
        }

            .custom-pager .e-pagercontainer .e-numericitem:hover,
            .custom-pager .e-pagercontainer .e-first:hover,
            .custom-pager .e-pagercontainer .e-prev:hover,
            .custom-pager .e-pagercontainer .e-next:hover,
            .custom-pager .e-pagercontainer .e-last:hover {
                background: #B5D4F4 !important;
                border-color: #378ADD !important;
                color: #0C447C !important;
            }

            .custom-pager .e-pagercontainer .e-numericitem.e-currentitem {
                background: #185FA5 !important;
                border-color: #185FA5 !important;
                color: #fff !important;
                font-weight: 600 !important;
            }

                .custom-pager .e-pagercontainer .e-numericitem.e-currentitem:hover {
                    background: #0C447C !important;
                    border-color: #0C447C !important;
                }

        .custom-pager .e-pagercontainer .e-separator {
            display: none !important;
        }

    .custom-pager .e-pagerconstant,
    .custom-pager .e-pagerexternalmsg {
        display: none !important;
    }

    .custom-pager .e-mfirst, .custom-pager .e-mprev,
    .custom-pager .e-mnext, .custom-pager .e-mlast {
        height: 24px !important;
        min-width: 24px !important;
        border-radius: 4px !important;
        border: 0.5px solid #B5D4F4 !important;
        background: #fff !important;
        color: #185FA5 !important;
        font-size: 11px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
/* SfNumericTextBox compacto en carrito */
.numeric-qty-pos1 .e-input-group {
    height: 27px !important;
    font-size: 11px !important;
}

.numeric-qty-pos1 input {
    text-align: center !important;
    font-size: 11px !important;
    color: #185FA5 !important;
    font-weight: 600 !important;
}
/* SfTextBox barcode */
.vvt-barcode-input .e-input {
    border: none !important;
    background: transparent !important;
    font-size: 11.5px !important;
    height: 28px !important;
}
/* SfDropDownList moneda */
.dropdown-currency-rightcolcustom1.e-ddl {
    border-radius: 5px !important;
    height: 30px !important;
    font-size: 11.5px !important;
}
/* ================================================================
   POSMovilPage.razor.css  v3.0
   AUDIMAQ JULIACA · POS Cobalt Professional Theme
   ================================================================ */

/* ----------------------------------------------------------------
   1. Design Tokens — Paleta Azul Cobalto
   ---------------------------------------------------------------- */
:root {
    --pos-bg: #EEF3FB;
    --pos-surface: #FFFFFF;
    --pos-surface-alt: #F8FAFF;
    --pos-primary: #185FA5;
    --pos-primary-hover: #0C447C;
    --pos-primary-deep: #042C53;
    --pos-primary-100: #E6F1FB;
    --pos-primary-200: #B5D4F4;
    --pos-primary-300: #85B7EB;
    --pos-primary-400: #378ADD;
    --pos-success: #16A34A;
    --pos-success-bg: #DCFCE7;
    --pos-danger: #DC2626;
    --pos-danger-bg: #FEE2E2;
    --pos-warning-bg: #FEF3C7;
    --pos-warning-txt: #854D0E;
    --pos-text-1: #1E293B;
    --pos-text-2: #475569;
    --pos-text-3: #94A3B8;
    --pos-border: #DDE6F5;
    --pos-border-mid: #B5D4F4;
    --pos-r: 5px;
    --pos-r-md: 8px;
    --pos-r-lg: 10px;
    --pos-t: all 0.15s ease;
    --pos-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ----------------------------------------------------------------
   2. Base
   ---------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    background-color: var(--pos-bg);
    font-family: var(--pos-font);
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--pos-border-mid);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--pos-primary-400);
    }

/* ----------------------------------------------------------------
   3. Loading Overlay
   ---------------------------------------------------------------- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(238,243,251,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-bloqueo); /* D-51 (era 9999): carga de la página, sobre todo */
    backdrop-filter: blur(3px);
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--pos-border);
    border-top-color: var(--pos-primary);
    border-radius: 50%;
    animation: pos-spin 0.68s linear infinite;
}

@keyframes pos-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ----------------------------------------------------------------
   4. Toolbar / Topbar
   ---------------------------------------------------------------- */
.pos-toolbar-v3 {
    background: #fff;
    border-bottom: 0.5px solid var(--pos-border);
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Breadcrumb */
.vvt-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--pos-text-2);
}

.vvt-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: var(--pos-r);
    text-decoration: none;
    color: var(--pos-text-2);
    font-size: 11.5px;
    transition: var(--pos-t);
}

    .vvt-breadcrumb-item.home {
        color: var(--pos-primary);
        font-weight: 600;
    }

    .vvt-breadcrumb-item:hover {
        background: var(--pos-primary-100);
        color: var(--pos-primary);
    }

    .vvt-breadcrumb-item.active {
        background: var(--pos-primary-100);
        color: var(--pos-primary);
        font-weight: 600;
        cursor: default;
    }

    .vvt-breadcrumb-item i {
        font-size: 12px;
    }

.vvt-separator {
    color: #c3cbd6;
    font-size: 10px;
    margin: 0 1px;
}

/* Toolbar right */
.vvt-toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vvt-info-group {
    display: flex;
    gap: 5px;
}

.vvt-info-box {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--pos-surface-alt);
    border: 0.5px solid var(--pos-border);
    padding: 3px 8px;
    border-radius: var(--pos-r);
    font-size: 10.5px;
    color: var(--pos-text-2);
    transition: var(--pos-t);
}

    .vvt-info-box i {
        color: var(--pos-primary);
        font-size: 12px;
    }

    .vvt-info-box .label {
        font-size: 9.5px;
        color: var(--pos-text-3);
        display: block;
    }

    .vvt-info-box .value {
        font-weight: 600;
        color: var(--pos-primary-hover);
        font-size: 11px;
    }

    .vvt-info-box:hover {
        background: var(--pos-primary-100);
    }

/* Session badge inline */
.sesion-badge-pos1 {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--pos-primary-100);
    border: 0.5px solid var(--pos-primary-200);
    padding: 3px 7px;
    border-radius: var(--pos-r);
    flex-wrap: wrap;
}

.sb-item-pos1 {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 500;
    color: #334155;
    background: #fff;
    border: 0.5px solid var(--pos-border);
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
}

    .sb-item-pos1 i {
        font-size: 10px;
        color: var(--pos-primary);
    }

.sb-highlight-pos1 {
    background: var(--pos-primary);
    color: #fff;
    border-color: var(--pos-primary);
}

    .sb-highlight-pos1 i {
        color: #fff;
    }

/* Action buttons toolbar */
.vvt-actions {
    display: flex;
    gap: 5px;
}

.vvt-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--pos-primary-100);
    color: var(--pos-primary);
    border: 0.5px solid var(--pos-primary-300);
    padding: 5px 10px;
    border-radius: var(--pos-r);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--pos-t);
}

    .vvt-btn i {
        font-size: 12px;
    }

    .vvt-btn:hover {
        background: var(--pos-primary);
        color: #fff;
    }

/* Mobile cart icon */
.topbar {
    background: transparent;
    padding: 4px 8px;
}

.cart-icon-mobile {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.68rem;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 17px;
    text-align: center;
    background-color: var(--pos-danger) !important;
    color: #fff;
    font-weight: 700;
}

/* Mobile cart trigger button */
.btn-cart-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--pos-primary-100);
    border: 0.5px solid var(--pos-primary-300);
    border-radius: var(--pos-r);
    color: var(--pos-primary);
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

/* ----------------------------------------------------------------
   5. Layout Principal
   ---------------------------------------------------------------- */
.pos {
    padding: 0 4px;
}

.left-column {
    display: flex;
    flex-direction: column;
}

.right-column {
    height: 82vh !important;
    overflow: hidden;
}

/* ----------------------------------------------------------------
   6. Tab Bar — nativo sin Syncfusion
   ---------------------------------------------------------------- */
.pos-tab-bar {
    display: flex;
    gap: 3px;
    background: var(--pos-primary-100);
    border: 0.5px solid var(--pos-border);
    border-radius: var(--pos-r-md);
    padding: 3px;
    margin-bottom: 6px;
}

.pos-tab-btn {
    flex: 1;
    padding: 6px 10px;
    border: none;
    background: transparent;
    border-radius: var(--pos-r);
    font-size: 12px;
    font-weight: 500;
    color: var(--pos-primary-hover);
    cursor: pointer;
    transition: var(--pos-t);
}

    .pos-tab-btn.active {
        background: var(--pos-surface);
        color: var(--pos-primary);
        font-weight: 600;
        box-shadow: 0 1px 4px rgba(24,95,165,0.12);
    }

    .pos-tab-btn:hover:not(.active) {
        background: rgba(255,255,255,0.6);
    }

/* ----------------------------------------------------------------
   7. Categorías — Chips horizontales
   ---------------------------------------------------------------- */
.cats-panel {
    background: #EEF3FB;
    border: 0.5px solid var(--pos-border);
    border-radius: var(--pos-r-md);
    padding: 6px 8px;
    margin-bottom: 5px;
}

.cats-panel-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.cats-panel-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--pos-primary-hover);
    white-space: nowrap;
}

.cats-chips-scroll {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    flex: 1;
    padding-bottom: 2px;
}

    .cats-chips-scroll::-webkit-scrollbar {
        height: 3px;
    }

    .cats-chips-scroll::-webkit-scrollbar-thumb {
        background: var(--pos-primary-200);
        border-radius: 3px;
    }

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 27px;
    padding: 0 10px;
    background: var(--pos-surface);
    border: 0.5px solid var(--pos-primary-200);
    border-radius: var(--pos-r);
    font-size: 11px;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--pos-t);
    flex-shrink: 0;
}

    .cat-chip i {
        font-size: 11px;
        color: var(--pos-primary);
    }

    .cat-chip:hover {
        background: var(--pos-primary-100);
        border-color: var(--pos-primary-400);
    }

    .cat-chip.active {
        background: var(--pos-primary);
        color: #fff;
        border-color: var(--pos-primary);
    }

        .cat-chip.active i {
            color: #fff;
        }

/* ----------------------------------------------------------------
   8. Section Header
   ---------------------------------------------------------------- */
.section-header-v3 {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 8px;
    background: var(--pos-surface-alt);
    border-left: 3px solid var(--pos-primary);
    border-radius: 0 var(--pos-r) var(--pos-r) 0;
    margin-bottom: 5px;
}

.section-title-v3 {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--pos-primary);
    margin: 0;
}

.section-count-chip {
    margin-left: auto;
    font-size: 10px;
    color: var(--pos-primary-hover);
    background: var(--pos-primary-100);
    border: 0.5px solid var(--pos-primary-200);
    padding: 1px 7px;
    border-radius: 10px;
}

/* ----------------------------------------------------------------
   9. Product Grid — Cards Tab
   ---------------------------------------------------------------- */
.product-grid-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 310px);
    overflow: hidden;
    padding: 0;
}

.product-list {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 6px;
    padding-right: 3px;
    align-content: start;
}

    .product-list::-webkit-scrollbar {
        width: 4px;
    }

    .product-list::-webkit-scrollbar-thumb {
        background: var(--pos-primary-200);
        border-radius: 4px;
    }

/* Card compacta */
.product-card-item {
    height: 100%;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: var(--pos-surface);
    border: 0.5px solid var(--pos-border);
    border-radius: var(--pos-r-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--pos-t);
}

    .product-card:hover {
        border-color: var(--pos-primary-300);
        box-shadow: 0 3px 10px rgba(24,95,165,0.1);
        transform: translateY(-1px);
    }

    .product-card.added {
        border-color: var(--pos-primary);
        box-shadow: 0 0 0 2px var(--pos-primary-200);
    }

/* Image area — proporción fija */
.product-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%;
    background: linear-gradient(135deg, var(--pos-surface-alt), var(--pos-primary-100));
    overflow: hidden;
    flex-shrink: 0;
}

.product-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

/* Stock badge */
.product-stock-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 1px 5px;
    font-size: 9px;
    font-weight: 700;
    border-radius: var(--pos-r);
    color: #fff;
}

    .product-stock-badge.in-stock {
        background: #16A34A;
    }

    .product-stock-badge.out-of-stock {
        background: #DC2626;
    }

/* Card body */
.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 5px 6px;
    gap: 3px;
    justify-content: space-between;
}

.product-card-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--pos-text-1);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.4em;
    text-align: center;
}

.product-card-price {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--pos-primary);
    display: flex;
    align-items: center;
    gap: 3px;
}

    .product-card-price i {
        font-size: 9px;
        color: var(--pos-text-3);
    }

.product-card-button {
    width: 100%;
    height: 20px;
    border: 0.5px solid var(--pos-primary-200);
    border-radius: var(--pos-r);
    background: var(--pos-primary-100);
    color: var(--pos-primary);
    font-size: 9.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: var(--pos-t);
    margin-top: auto;
}

    .product-card-button:hover {
        background: var(--pos-primary);
        color: #fff;
    }

/* No data */
.no-data-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--pos-text-3);
    padding: 2rem 1rem;
    text-align: center;
}

    .no-data-custom img {
        width: 60px;
        opacity: 0.4;
        margin-bottom: 0.5rem;
    }

    .no-data-custom h4 {
        font-size: 0.88rem;
        font-weight: 500;
        color: var(--pos-text-3);
        margin: 0;
    }

/* Pager */
.pager-container-custom {
    display: flex;
    justify-content: center;
    padding: 5px 0 2px;
}

/* ----------------------------------------------------------------
   10. Custom Pager (SfPager override)
   ---------------------------------------------------------------- */
.custom-pager {
    display: flex !important;
    align-items: center !important;
    min-height: unset !important;
    height: 32px !important;
    padding: 0 5px !important;
    background: var(--pos-primary-100) !important;
    border: 0.5px solid var(--pos-primary-200) !important;
    border-radius: var(--pos-r) !important;
}

    .custom-pager .e-pagercontainer {
        height: 32px !important;
        min-height: unset !important;
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }

        .custom-pager .e-pagercontainer .e-first,
        .custom-pager .e-pagercontainer .e-prev,
        .custom-pager .e-pagercontainer .e-next,
        .custom-pager .e-pagercontainer .e-last,
        .custom-pager .e-pagercontainer .e-numericitem {
            height: 24px !important;
            min-width: 24px !important;
            width: auto !important;
            padding: 0 6px !important;
            border-radius: var(--pos-r) !important;
            border: 0.5px solid var(--pos-primary-200) !important;
            background: #fff !important;
            color: var(--pos-primary) !important;
            font-size: 11px !important;
            font-weight: 500 !important;
            line-height: 24px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            cursor: pointer !important;
            transition: background 0.14s !important;
            margin: 0 !important;
        }

            .custom-pager .e-pagercontainer .e-numericitem:hover,
            .custom-pager .e-pagercontainer .e-first:hover,
            .custom-pager .e-pagercontainer .e-prev:hover,
            .custom-pager .e-pagercontainer .e-next:hover,
            .custom-pager .e-pagercontainer .e-last:hover {
                background: var(--pos-primary-200) !important;
                border-color: var(--pos-primary-400) !important;
                color: var(--pos-primary-hover) !important;
            }

            .custom-pager .e-pagercontainer .e-numericitem.e-currentitem {
                background: var(--pos-primary) !important;
                border-color: var(--pos-primary) !important;
                color: #fff !important;
                font-weight: 600 !important;
            }

                .custom-pager .e-pagercontainer .e-numericitem.e-currentitem:hover {
                    background: var(--pos-primary-hover) !important;
                    border-color: var(--pos-primary-hover) !important;
                }

        .custom-pager .e-pagercontainer .e-separator {
            display: none !important;
        }

    .custom-pager .e-pagerconstant,
    .custom-pager .e-pagerexternalmsg {
        display: none !important;
    }

    .custom-pager .e-mfirst, .custom-pager .e-mprev,
    .custom-pager .e-mnext, .custom-pager .e-mlast {
        height: 24px !important;
        min-width: 24px !important;
        border-radius: var(--pos-r) !important;
        border: 0.5px solid var(--pos-primary-200) !important;
        background: #fff !important;
        color: var(--pos-primary) !important;
        font-size: 11px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

/* ----------------------------------------------------------------
   11. Modo Listado — Tabla nativa
   ---------------------------------------------------------------- */
.vvt-search-bar {
    padding: 0 0 6px;
}

.vvt-search-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vvt-search-native {
    flex: 1;
    height: 30px;
    border: 0.5px solid var(--pos-primary-200);
    border-radius: var(--pos-r);
    padding: 0 10px;
    font-size: 12px;
    color: var(--pos-text-1);
    background: var(--pos-surface);
    outline: none;
    font-family: var(--pos-font);
}

    .vvt-search-native:focus {
        border-color: var(--pos-primary);
    }

    .vvt-search-native::placeholder {
        color: var(--pos-text-3);
    }

.vvt-search-btn {
    height: 30px;
    width: 30px;
    background: var(--pos-primary);
    color: #fff;
    border: none;
    border-radius: var(--pos-r);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--pos-t);
}

    .vvt-search-btn:hover {
        background: var(--pos-primary-hover);
    }

.grid-container {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    padding-right: 2px;
}

    .grid-container::-webkit-scrollbar {
        width: 4px;
    }

    .grid-container::-webkit-scrollbar-thumb {
        background: var(--pos-primary-200);
        border-radius: 4px;
    }

.custom-table-products {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: var(--pos-surface);
    border: 0.5px solid var(--pos-border);
    border-radius: var(--pos-r-md);
    overflow: hidden;
}

    .custom-table-products thead {
        background: var(--pos-primary-100);
    }

        .custom-table-products thead th {
            font-size: 10.5px;
            font-weight: 700;
            color: var(--pos-primary);
            padding: 7px 9px;
            border-bottom: 0.5px solid var(--pos-primary-200);
        }

    .custom-table-products tbody tr {
        transition: background 0.13s;
        cursor: pointer;
    }

        .custom-table-products tbody tr:hover {
            background: var(--pos-primary-100);
        }

    .custom-table-products td {
        padding: 7px 9px;
        font-size: 11px;
        color: var(--pos-text-1);
        vertical-align: middle;
        border-bottom: 0.5px solid var(--pos-border);
    }

    .custom-table-products tbody tr:last-child td {
        border-bottom: none;
    }

.action-buttons {
    display: flex;
    gap: 4px;
}

.btn-action {
    border: none;
    border-radius: var(--pos-r);
    padding: 3px 6px;
    font-size: 11px;
    cursor: pointer;
    transition: var(--pos-t);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 25px;
    width: 25px;
}

.btn-info-soft {
    background: var(--pos-primary-100);
    color: var(--pos-primary);
}

    .btn-info-soft:hover {
        background: var(--pos-primary-200);
    }

.btn-select-soft {
    background: var(--pos-primary);
    color: #fff;
}

    .btn-select-soft:hover {
        background: var(--pos-primary-hover);
    }

.text-truncate {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-end {
    text-align: right;
}

.pager-container {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

/* ----------------------------------------------------------------
   12. Right Column — Cart Panel
   ---------------------------------------------------------------- */
.card-rightcolcustom1 {
    margin-top: 5px;
    border-radius: var(--pos-r-md);
    border: 0.5px solid var(--pos-border);
    background: var(--pos-surface);
    box-shadow: 0 2px 8px rgba(24,95,165,0.06);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Barcode search */
.vvt-barcode-wrapper {
    padding: 6px;
    border-bottom: 0.5px solid var(--pos-border);
    background: var(--pos-surface-alt);
}

.vvt-barcode-container {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--pos-surface);
    border: 0.5px solid var(--pos-primary-200);
    border-radius: var(--pos-r);
    padding: 4px 8px;
    transition: var(--pos-t);
}

    .vvt-barcode-container:focus-within {
        border-color: var(--pos-primary);
    }

.vvt-barcode-icon {
    color: var(--pos-primary);
    font-size: 15px;
}

.vvt-barcode-input {
    border: none !important;
    background: transparent !important;
    font-size: 11.5px;
}

/* Card body */
.card-body-rightcolcustom1 {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    padding: 0 !important;
}

/* Cart container */
.cart-container-pos1 {
    flex: 1;
    overflow-y: auto;
    padding: 5px;
    background: var(--pos-surface-alt);
}

    .cart-container-pos1::-webkit-scrollbar {
        width: 3px;
    }

    .cart-container-pos1::-webkit-scrollbar-thumb {
        background: var(--pos-primary-200);
        border-radius: 3px;
    }

/* Cart header */
.cart-header-pos1 {
    display: grid;
    grid-template-columns: 1fr 80px 88px 55px;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--pos-text-2);
    padding: 4px 8px 2px;
}

    .cart-header-pos1 span:not(:first-child) {
        text-align: center;
    }

/* Cart item */
.cart-item-pos1 {
    display: grid;
    grid-template-columns: 1fr 80px 88px 55px;
    align-items: center;
    gap: 4px;
    padding: 5px 6px;
    margin-bottom: 4px;
    background: var(--pos-surface);
    border-radius: var(--pos-r-md);
    border: 0.5px solid var(--pos-border);
    transition: var(--pos-t);
}

    .cart-item-pos1:hover {
        background: var(--pos-primary-100);
        border-color: var(--pos-primary-200);
    }

/* Cart desc */
.cart-desc-pos1 {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-title-pos1 {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--pos-text-1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-meta-pos1 {
    font-size: 9.5px;
    color: var(--pos-primary);
    font-weight: 500;
    margin-top: 1px;
}

/* Tipo afectación badge */
.afect-badge {
    display: inline-flex;
    align-items: center;
    font-size: 8.5px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    margin-top: 2px;
    width: fit-content;
}

.afect-10 {
    background: var(--pos-success-bg);
    color: #166534;
}

.afect-20 {
    background: var(--pos-warning-bg);
    color: var(--pos-warning-txt);
}

.afect-30 {
    background: var(--pos-danger-bg);
    color: #991B1B;
}

.afect-15 {
    background: #EDE9FE;
    color: #5B21B6;
}

/* Qty input nativo */
.qty-input-native {
    width: 100%;
    height: 27px;
    border: 0.5px solid var(--pos-primary-200);
    border-radius: var(--pos-r);
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--pos-primary);
    background: var(--pos-surface);
    outline: none;
    font-family: var(--pos-font);
    -moz-appearance: textfield;
}

    .qty-input-native::-webkit-inner-spin-button,
    .qty-input-native::-webkit-outer-spin-button {
        -webkit-appearance: none;
    }

    .qty-input-native:focus {
        border-color: var(--pos-primary);
    }

/* Cart total */
.cart-total-pos1 {
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--pos-primary-hover);
    background: var(--pos-primary-100);
    border: 0.5px solid var(--pos-primary-200);
    border-radius: var(--pos-r);
    padding: 3px 4px;
}

/* Cart action buttons */
.cart-actions-pos1 {
    display: flex;
    justify-content: center;
    gap: 3px;
}

.cart-btn-pos1 {
    width: 26px;
    height: 26px;
    border-radius: var(--pos-r);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: var(--pos-t);
}

.cart-btn-edit-pos1 {
    background: var(--pos-primary-100);
    color: var(--pos-primary);
}

    .cart-btn-edit-pos1:hover {
        background: var(--pos-primary-200);
    }

.cart-btn-delete-pos1 {
    background: var(--pos-danger-bg);
    color: var(--pos-danger);
}

    .cart-btn-delete-pos1:hover {
        background: #FECACA;
    }

/* Empty cart */
.cart-empty-v3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--pos-text-3);
    gap: 6px;
}

    .cart-empty-v3 i {
        font-size: 34px;
        color: var(--pos-border);
    }

    .cart-empty-v3 span {
        font-size: 12px;
    }

/* ----------------------------------------------------------------
   13. Summary / Totales
   ---------------------------------------------------------------- */
.calculation-summary-rightcolcustom1 {
    border-top: 0.5px solid var(--pos-border);
    background: var(--pos-surface);
    padding: 6px 8px;
}

.summary-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-line-label {
    font-size: 10.5px;
    color: var(--pos-text-2);
    font-weight: 500;
}

.summary-line-val {
    font-size: 11px;
    font-weight: 600;
    color: var(--pos-text-1);
}

.summary-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

/* Dropdown moneda nativo */
.divisa-select-native {
    height: 30px;
    border: 0.5px solid var(--pos-primary-200);
    border-radius: var(--pos-r);
    font-size: 11.5px;
    color: var(--pos-primary);
    background: var(--pos-surface);
    padding: 0 7px;
    outline: none;
    font-family: var(--pos-font);
    cursor: pointer;
}

    .divisa-select-native:focus {
        border-color: var(--pos-primary);
    }

/* Total box */
.summary-total {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--pos-primary);
    border-radius: var(--pos-r-md);
    padding: 7px 12px;
    cursor: pointer;
    transition: var(--pos-t);
}

    .summary-total:hover {
        background: var(--pos-primary-hover);
    }

.total-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--pos-primary-200);
}

.total-value {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

    .total-value i {
        font-size: 12px;
        opacity: 0.8;
        margin-left: 4px;
    }

/* Bottom buttons */
.bottom-actions-rightcolcustom1 {
    padding: 6px;
}

.btn-action-pos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: var(--pos-r);
    border: 0.5px solid transparent;
    padding: 0 16px;
    height: 34px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--pos-t);
    white-space: nowrap;
    font-family: var(--pos-font);
}

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

    .btn-action-pos i {
        font-size: 13px;
        opacity: 0.88;
    }

.btn-action-next {
    width: 100%;
    background: var(--pos-primary-100);
    border-color: var(--pos-primary-300);
    color: var(--pos-primary);
}

    .btn-action-next:hover {
        background: var(--pos-primary-200);
        border-color: var(--pos-primary-400);
        color: var(--pos-primary-hover);
    }

.btn-action-clear {
    margin-left: 5px;
    background: #EEF2F8;
    border-color: var(--pos-border);
    color: var(--pos-text-2);
}

    .btn-action-clear:hover {
        background: var(--pos-primary-100);
        border-color: var(--pos-primary-200);
        color: var(--pos-primary);
    }

/* Dropdown moneda Syncfusion override */
.dropdown-currency-rightcolcustom1.e-ddl {
    border-radius: var(--pos-r) !important;
    height: 30px !important;
    font-size: 11.5px !important;
}

/* ----------------------------------------------------------------
   14. Mobile Cart Overlay
   ---------------------------------------------------------------- */
.cart-overlay-pos1 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15,23,42,0.50);
    z-index: var(--z-modal); /* D-51 (era 9999): carrito móvil */
    display: flex;
    justify-content: flex-end;
}

.cart-panel-pos1 {
    width: 100vw;
    max-width: 420px;
    height: 100%;
    background: var(--pos-surface);
    display: flex;
    flex-direction: column;
    animation: slideInCart 0.22s ease;
}

.cart-header-mobile-pos1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--pos-primary-100);
    border-bottom: 0.5px solid var(--pos-border);
    font-weight: 600;
    color: var(--pos-primary-hover);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
}

.badge-header {
    background: rgba(0,0,0,0.08);
    font-size: 9.5px;
    padding: 2px 6px;
    border-radius: var(--pos-r);
}

.btn-close-cart-pos1 {
    border: none;
    background: transparent;
    font-size: 17px;
    color: var(--pos-primary);
    cursor: pointer;
}

.cart-body-mobile-pos1 {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-layout-mobilepos1 {
    display: flex;
    flex-direction: column;
    height: 90vh;
}

.cart-container-mobilepos1 {
    flex: 1;
    overflow-y: auto;
}

.calculation-mobilepos1 {
    background: var(--pos-surface);
    border-top: 0.5px solid var(--pos-border);
    flex-shrink: 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

.bottom-actions-rightcolcustom1-mobilepos1 {
    background: var(--pos-surface);
    border-top: 0.5px solid var(--pos-border);
    flex-shrink: 0;
    box-shadow: 0 -1px 6px rgba(0,0,0,0.04);
}

/* Mobile cart items */
.cart-item-mobile1 {
    padding: 9px 12px;
    border-bottom: 0.5px solid var(--pos-border);
}

.cart-title-mobile1 {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pos-text-1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-meta-mobile1 {
    font-size: 11.5px;
    color: var(--pos-text-2);
    margin-top: 2px;
}

.cart-row-mobile1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 7px;
    gap: 6px;
}

.cart-qty-mobile1 {
    width: 90px;
}

.cart-total-mobile1 {
    flex: 1;
    text-align: right;
    background: var(--pos-primary-100);
    color: var(--pos-primary-hover);
    font-weight: 700;
    font-size: 13px;
    padding: 5px 8px;
    border-radius: var(--pos-r);
}

.cart-actions-mobile1 {
    display: flex;
    gap: 4px;
}

    .cart-actions-mobile1 button {
        border: none;
        background: #F3F4F6;
        width: 30px;
        height: 30px;
        border-radius: var(--pos-r);
        color: #374151;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }

        .cart-actions-mobile1 button:hover {
            background: var(--pos-primary-100);
        }

    .cart-actions-mobile1 .fa-trash {
        color: var(--pos-danger);
    }

    .cart-actions-mobile1 .fa-edit {
        color: var(--pos-primary);
    }

/* Header colores tipo doc */
.header-cot {
    background: #fef9c3;
    color: #92400e;
}

.header-ped {
    background: var(--pos-primary-100);
    color: var(--pos-primary-hover);
}

.header-pos {
    background: var(--pos-success-bg);
    color: #166534;
}

@keyframes slideInCart {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* ----------------------------------------------------------------
   15. Responsive
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .vvt-info-group {
        display: none;
    }

    .vvt-btn span {
        display: none;
    }

    .vvt-btn {
        padding: 6px 8px;
    }

    .vvt-toolbar-right {
        gap: 4px;
    }

    .sesion-badge-pos1 {
        display: none;
    }

    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    }

    .product-grid-container {
        height: calc(100vh - 280px);
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (min-width: 992px) and (max-width: 1358px) {
    .cats-chips-scroll {
        gap: 4px;
    }

    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    }
}

@media (min-width: 1359px) {
    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    }
}

@media (max-width: 1024px) {
    .vvt-info-box .label {
        display: none;
    }

    .vvt-btn span {
        display: none;
    }
}
