/* =====================================================================================
   pos-global.css — Hoja de estilos LIMPIA y GLOBAL del Punto de Venta (Facturita.Cliente.Pos.UI)
   =====================================================================================
   EXCLUSIVA del POS. NO va en el RCL compartido `Facturita.Cliente.Web.Componentes`
   (ese proyecto solo aporta componentes genéricos con SU propio CSS).

   Aquí vive el sistema de diseño propio del POS: paleta (marca blanca), toolbar de
   productos, chips de categoría, card de producto, carrito vacío, etc. Los estilos
   viejos (MiEstilo.css / app.css / fac-components.css del RCL) se irán retirando
   gradualmente hasta que el look del POS quede 100% definido por este archivo.

   Marca blanca: TODO acento usa var(--primario) (+ derivados). El color se setea en
   runtime via Platform.SetCssVariableAsync(...) en MainLayout sobre :root → vence
   cualquier default de abajo. Fallback de marca = paleta Material (alineada al WebAdmin).
   ===================================================================================== */

/* ===== 1. Paleta / tokens del POS (canónico) ===== */
:root {
    --primario: #1E88E5;          /* Azul marca Facturita.pe — botones/acentos principales */
    --secundario: #E8743B;        /* Naranja marca Facturita.pe — acentos secundarios */
    --analogo: #42A5F5;           /* azul 400 — info/badges */
    --hoverprimario: #1A5FC0;     /* azul hover (manual de marca) */
    --hoversecundario: #CF5E27;   /* naranja prof. (manual de marca) — hover */
    --color_exito: #04AA6D;       /* verde confirmaciones */
    --color_error: #D32F2F;       /* rojo errores */
    --color_fondo: #EDEFF3;       /* fondo general gris azulado del POS */
}

/* =====================================================================================
   2. Panel de productos (PosProductosView) — raíz `.pos-pv2`
   Layout en COLUMNA: barra + categorías (alto fijo) + grid que ocupa el resto.
   Reemplaza el acoplamiento frágil con `calc(100% - 165px)` que solapaba productos.
   ===================================================================================== */
.pos-pv2 {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--color_fondo, #EDEFF3);   /* fondo #EDEFF3 detrás de las cards */
}
    .pos-pv2 .botonestopder {
        flex: 0 0 auto;
        display: flex;            /* toolbar en fila: buscador crece, botones a la derecha */
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
        margin-bottom: 2px;
        padding-right: 10px;
        padding-left: 5px;
    }
    /* El buscador ocupa TODO el espacio libre; los botones (escanear/acciones/view-switch) a la derecha */
    .pos-pv2 .botonestopder .input-group {
        flex: 1 1 auto !important;
        width: auto !important;   /* anula el width:100% inline del markup */
        min-width: 0;
        margin-left: 0 !important; margin-right: 0 !important;
    }
.pos-pv2 .contenedor-pag { flex: 0 0 auto; width: 100%; }   /* paginación fija al pie, ancho completo */
/* La barra de paginado ocupa todo el ancho: registros a la izquierda, chevrons a la derecha
   (en flex-column el item no se estiraba y la barra se encogía a su contenido). */
.pos-pv2 .contenedor-group { width: 100%; align-items: center; }
.pos-pv2 .contenedor-group .registros { margin-top: 0; }
.pos-pv2 .productos-contenedor {
    flex: 1 1 auto;
    height: auto !important;   /* anula el inline `height: calc(100% - 165px)` del markup */
    min-height: 0;
    margin-top: 8px;           /* separación de la barra de categorías */
    row-gap: 14px;             /* más aire vertical entre filas de cards */
    /* Empaca las filas ARRIBA: con pocos productos el grid llenaba el alto y repartía el
       espacio vertical entre filas (separándolas). Con start, las filas se siguen una a otra
       y el espacio sobrante queda abajo. align-items: start evita que las cards se estiren. */
    align-content: start !important;
    align-items: start !important;
    /* Columnas: mínimo 184px y se estiran a 1fr (anula el minmax(AnchoCard) inline del markup).
       184 = ANCHO MÍNIMO, no fijo: caben tantas columnas de ≥184px como quepan y rellenan la fila. */
    grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)) !important;
}

/* ===== 3. Barra de búsqueda + acciones + view-switch ===== */
/* Caja de búsqueda — rectángulo redondeado (~10px), compacta */
.pos-pv2 .botonestopder .input-group {
    border: 1px solid #e3e8ef;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    height: 38px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    flex-wrap: nowrap;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pos-pv2 .botonestopder .input-group:focus-within {
    border-color: var(--primario, #1E88E5);
    box-shadow: 0 0 0 3px rgba(30,136,229,.16);                                  /* fallback */
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primario, #1E88E5) 18%, transparent);
}
.pos-pv2 .botonestopder .input-group-text {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding-left: 12px;
}
.pos-pv2 .botonestopder .form-control {
    border: none;
    background: transparent;
    box-shadow: none !important;
    font-size: 13.5px;
    padding-left: 4px;
    color: #1e293b;
}
.pos-pv2 .botonestopder .form-control:focus { border: none; box-shadow: none !important; }
.pos-pv2 .botonestopder .form-control::placeholder { color: #98a2b3; }

/* Botones de acción (actualizar / edición / escanear) — íconos redondeados ~10px */
.pos-pv2 .botonestopder .btnLight,
.pos-pv2 .botonestopder .btnFacturitaEdicion,
.pos-pv2 .btn-scan-barcode {
    height: 38px !important;
    min-width: 38px;
    border-radius: 10px !important;
    border: 1px solid #e3e8ef !important;
    background: #fff !important;
    color: #475569 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0 !important;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pos-pv2 .botonestopder .btnLight:hover,
.pos-pv2 .botonestopder .btnFacturitaEdicion:hover,
.pos-pv2 .btn-scan-barcode:hover {
    background: var(--primario, #1E88E5) !important;
    border-color: var(--primario, #1E88E5) !important;
    color: #fff !important;
}

/* View-switch segmentado (~10px) */
.pos-pv2 .view-switch {
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e3e8ef;
    margin-left: 0;
    overflow: hidden;
}
.pos-pv2 .vs-btn {
    height: 36px;
    width: 42px;
    background: #fff;
    color: #64748b;
    font-size: 15px;
}
.pos-pv2 .vs-btn:hover { background: #f1f5f9; }
.pos-pv2 .vs-btn.active { background: var(--primario, #1E88E5); color: #fff; }
.pos-pv2 .vs-btn.active i { color: #fff; }
/* el check (✔) que precede al ícono en el botón activo sobra con el fill — se oculta */
.pos-pv2 .vs-btn.active i:first-child { display: none; }

/* =====================================================================================
   4. Chips de categoría — rectángulo redondeado (~10px), blancos / marca activo. Compactos.
   ===================================================================================== */
.pos-pv2 .categorias {
    /* Alto EXACTO de 50px: flex-basis fijo + max-height (techo) evitan que el flex-item
       crezca con su contenido y empuje los productos. NO usar overflow:hidden aquí: con el
       scrollbar reservado, recortaba el borde superior del chip activo. */
    flex: 0 0 50px;
    padding-left: 5px;
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    align-items: center;
    margin: 14px 0 2px;    /* más aire con el buscador arriba; 6px con los productos abajo */
}
.pos-pv2 .categorias .table-responsive,
.pos-pv2 .categorias .menu-container { width: 100%; }
.pos-pv2 .categorias .scrool-categorias { padding: 0; }
.pos-pv2 .categorias .page-title-bar { margin: 0; padding: 0; }
.pos-pv2 .page-title-bar .nav { gap: 6px; padding: 1px 0; }

/* Scrollbar de categorías: el ESPACIO se reserva SIEMPRE (no hay reflow al pasar el cursor);
   solo el thumb aparece en hover. Antes alternaba height 0↔4px → empujaba los productos. */
.pos-pv2 .scrool-categorias {                                                   /* Firefox */
    scrollbar-width: thin;                                                      /* reserva siempre, no reflow */
    scrollbar-color: transparent transparent;                                  /* thumb/track ocultos */
}
.pos-pv2 .scrool-categorias:hover { scrollbar-color: #cbd5e1 transparent; }     /* thumb visible en hover */
.pos-pv2 .scrool-categorias::-webkit-scrollbar { height: 6px; background: transparent; }  /* alto fijo siempre */
.pos-pv2 .scrool-categorias::-webkit-scrollbar-track { background: transparent; }
.pos-pv2 .scrool-categorias::-webkit-scrollbar-thumb { background-color: transparent; border-radius: 4px; }
.pos-pv2 .scrool-categorias:hover::-webkit-scrollbar-thumb { background-color: #cbd5e1; }
.pos-pv2 .page-title-bar .nav-item,
.pos-pv2 .page-title-bar .nav-item.border {
    border: none !important;
    border-radius: 10px;
}
.pos-pv2 .page-title-bar .nav-link2 {
    border-radius: 10px !important;
    background: #fff;
    color: #1f2937;        /* texto de categoría más oscuro (casi negro) */
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #e3e8ef;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pos-pv2 .page-title-bar .nav-link2:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #d6dce5;
}
.pos-pv2 .page-title-bar .nav-link2.active {
    background: var(--primario, #1E88E5) !important;
    color: #fff !important;
    border-color: var(--primario, #1E88E5) !important;
}
.pos-pv2 .page-title-bar .nav-link2.active i { color: #fff; }
/* Estrella del chip Favoritos: dorada inactiva, blanca cuando está activo */
.pos-pv2 .page-title-bar .pos-fav-star { color: #f5a623; margin-right: 2px; }
.pos-pv2 .page-title-bar .nav-link2.active .pos-fav-star { color: #fff; }

/* Badge con el número de productos de la categoría (gris inactivo / translúcido en activo) */
.pos-pv2 .page-title-bar .pos-cat-count {
    display: inline-block;
    margin-left: 6px;
    padding: 0 7px;
    min-width: 20px;
    height: 19px;
    line-height: 19px;
    border-radius: 999px;
    background: #eef2f7;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
}
.pos-pv2 .page-title-bar .nav-link2.active .pos-cat-count {
    background: rgba(255,255,255,.25);
    color: #fff;
}

/* =====================================================================================
   5. Card de producto — estilo mockup
   Banda superior tintada por categoría (rayas + FOTO/imagen + pill + stock) y cuerpo
   con nombre · unidad · precio + botón "+" circular.
   Estructura: <article.productPos.pos-card> > .pos-card-media + .pos-card-body
   ===================================================================================== */
.productPos.pos-card {
    display: flex;
    flex-direction: column;
    min-height: 212px;          /* alto mínimo de la card (gana sobre el height inline de AltoCard) */
    padding: 0 !important;
    text-align: left;
    border: 1px solid #e6e9f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(16,32,64,.06);
    overflow: hidden;
    transition: box-shadow .15s ease, transform .12s ease, border-color .15s ease;
}
.productPos.pos-card:hover {
    box-shadow: 0 7px 18px rgba(16,32,64,.13);
    border-color: #d3d9e6;
    transform: translateY(-2px);
}

/* Banda media (imagen / "FOTO") — tintada por categoría via --cat */
.pos-card-media {
    position: relative;
    flex: 0 0 46%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    --cat: var(--primario, #1E88E5);
    background-color: #f7f9fc;                                   /* fallback navegadores sin color-mix */
    background-color: color-mix(in srgb, var(--cat) 3%, #fff);
    background-image: repeating-linear-gradient(45deg,
        color-mix(in srgb, var(--cat) 7%, transparent) 0 9px,
        transparent 9px 18px);
}
/* Con imagen: banda blanca limpia (sin tinte ni rayas) para que la foto luzca */
    .pos-card-media.has-img {
        background-color: #fff;
        background-image: none;
        border-bottom: 0.5px solid #E3E7EF;
    }
.pos-card-img { max-width: 92%; max-height: 92%; object-fit: contain; }
.pos-card-foto {
    font-size: 10px; font-weight: 800; letter-spacing: .2em;
    color: #aeb8c7;
    color: color-mix(in srgb, var(--cat) 42%, #b9c2d0);
    opacity: .6;
}

/* Pill de categoría (arriba-izq) */
.pos-card-cat {
    position: absolute; top: 6px; left: 6px; z-index: 2;
    max-width: calc(100% - 58px);
    padding: 2px 8px; border-radius: 999px;
    font-size: 9px; font-weight: 800; letter-spacing: .02em;
    text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: #fff;
    background: color-mix(in srgb, var(--cat) 16%, #fff);
    color: #4a5568;
    color: color-mix(in srgb, var(--cat) 70%, #1f2937);
}

/* Iconos (arriba-der): estrella + info */
.pos-card-icons { position: absolute; top: 5px; right: 5px; z-index: 2; display: flex; gap: 3px; }
.pos-card-ic {
    width: 22px; height: 22px; padding: 0; border: none; border-radius: 7px;
    background: rgba(255,255,255,.88); color: #8a96a8;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.08);
    transition: background .15s ease, color .15s ease;
}
.pos-card-ic:hover { background: #fff; color: var(--primario, #1E88E5); }
.pos-card-ic.on { color: #f5a623; }

/* Badge de stock (abajo-izq de la banda) — pill marcado para que SE NOTE */
.pos-card-stock {
    position: absolute; bottom: 6px; left: 6px; z-index: 2;
    padding: 2px 9px; border-radius: 999px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .01em;
    background: #e3f6e9; color: #157a32; border: 1px solid #b7e6c4;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.pos-card-stock.out { background: #fdecea; color: #c62828; border-color: #f3c0bb; }
.pos-card-stock.agotado { background: #fdebd6; color: #d97316; border-color: #f3d3a8; }   /* naranja "Agotado" */

/* Producto AGOTADO (VALIDAR_STOCK activo, sin stock): card "deshabilitada" */
.productPos.pos-card.pos-card-off {
    opacity: .55;
    filter: grayscale(35%);
    cursor: not-allowed;
}
.productPos.pos-card.pos-card-off:hover {
    box-shadow: 0 1px 4px rgba(16,32,64,.06);   /* sin lift al pasar el cursor */
    transform: none;
    border-color: #e6e9f0;
}

/* Badge de PROMOCIÓN: esquina doblada amarilla con "P" (esquina superior-izquierda).
   La card tiene overflow:hidden + border-radius (línea ~254/257), así el triángulo se recorta
   siguiendo el redondeo. Se usa drop-shadow (NO box-shadow) para que la sombra siga la forma
   real del triángulo y no el rectángulo completo del clip-path. */
.productPos.pos-card .estilo-promocion {
    position: absolute; top: 0; left: 0; right: auto; z-index: 4;
    width: 34px; height: 34px;
    background: #FFC400;
    clip-path: polygon(0 0, 100% 0, 0 100%);     /* triángulo: esquina superior-izquierda */
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,.3));
}
.productPos.pos-card .span-promo {
    position: absolute; top: 2px; left: 5px; right: auto;   /* anula el right:3px del CSS viejo */
    font-size: 13px; font-weight: 900; font-style: normal;
    color: #1f2937; line-height: 1;
}
/* En cards con promo, corro la pill de categoría a la derecha para que no choque con el badge */
.productPos.pos-card:has(.estilo-promocion) .pos-card-cat {
    left: 38px;
    max-width: calc(100% - 92px);
}

/* Cuerpo de la card */
.pos-card-body {
    flex: 1 1 auto; min-height: 0;
    display: flex; flex-direction: column;
    padding: 7px 9px 8px;
}
.pos-card-name {
    font-size: 12px; font-weight: 700; color: #111827; line-height: 1.15;   /* nombre más negro */
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pos-card-unit { font-size: 9.5px; color: #6b7280; margin-top: 1px; }
.pos-card-foot {
    margin-top: auto; padding-top: 5px;
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.pos-card-price { font-size: 14px; font-weight: 800; color: #0f172a; }   /* precio más negro */

/* Paleta de categorías (8 hues estables) — define --cat. Standalone para reusar en card Y lista. */
.pos-cat-0 { --cat: #e8743b; }  /* naranja */
.pos-cat-1 { --cat: #e0a82e; }  /* ámbar  */
.pos-cat-2 { --cat: #2fa86a; }  /* verde  */
.pos-cat-3 { --cat: #2f7fe0; }  /* azul   */
.pos-cat-4 { --cat: #d6457f; }  /* rosa   */
.pos-cat-5 { --cat: #8b5cf6; }  /* violeta */
.pos-cat-6 { --cat: #14a4b8; }  /* cyan   */
.pos-cat-7 { --cat: #b06a3a; }  /* marrón */

/* ===== Vista LISTA de productos (VistaProductos==1) — filas modernas ===== */
.pos-pv2 .productos-contenedor.pos-list {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    grid-template-columns: none !important;   /* anula el grid del markup */
    padding: 2px 2px 8px;
    align-content: start;
    /* En lista (flex-column) las filas deben ocupar TODO el ancho. Sin esto, el
       `align-items: start` heredado del modo grid encogía cada fila a su contenido. */
    align-items: stretch !important;
}
.pos-list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e6e9f0;
    border-radius: 12px;
    padding: 8px 14px;
    cursor: pointer;
    transition: box-shadow .12s ease, border-color .12s ease;
}
.pos-list-row:hover { box-shadow: 0 4px 12px rgba(16,32,64,.08); border-color: #d3d9e6; }
.pos-list-row.on {
    border-color: var(--primario, #1E88E5);
    box-shadow: 0 0 0 2px rgba(30,136,229,.15);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primario, #1E88E5) 18%, transparent);
}
.pos-list-row.pos-card-off { opacity: .55; filter: grayscale(35%); cursor: not-allowed; }
.pos-list-row.pos-card-off:hover { box-shadow: none; border-color: #e6e9f0; }

/* Miniatura (imagen o "FOTO" tintada por categoría) */
.pos-list-thumb {
    flex: 0 0 48px; width: 48px; height: 48px;
    border-radius: 10px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    --cat: var(--primario, #1E88E5);
    background-color: #f1f4f8;
    background-color: color-mix(in srgb, var(--cat) 10%, #fff);
    background-image: repeating-linear-gradient(45deg,
        color-mix(in srgb, var(--cat) 15%, transparent) 0 7px, transparent 7px 14px);
}
.pos-list-thumb.has-img { background: #fff; background-image: none; }
.pos-list-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pos-list-foto { font-size: 8px; font-weight: 800; letter-spacing: .12em; color: #aeb8c7; opacity: .6; }

/* Texto */
.pos-list-main { flex: 1 1 auto; min-width: 0; }
.pos-list-name {
    font-size: 14px; font-weight: 700; color: #111827; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pos-list-meta { display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.pos-list-cat {
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
    color: #6b7280;
    color: color-mix(in srgb, var(--cat) 72%, #1f2937);
}
.pos-list-dot { color: #cbd5e1; }
.pos-list-unit { font-size: 11px; color: #6b7280; }

/* Lado derecho: stock + precio + acciones */
.pos-list-end { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.pos-list-stock {
    font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
    background: #e3f6e9; color: #157a32; border: 1px solid #b7e6c4; white-space: nowrap;
}
.pos-list-stock.out { background: #fdecea; color: #c62828; border-color: #f3c0bb; }
.pos-list-price { font-size: 15px; font-weight: 800; color: #0f172a; min-width: 66px; text-align: right; }

/* =====================================================================================
   Multipago (MultiPagoView) — 3 columnas: Formas de pago · Pagos registrados · Calculadora
   ===================================================================================== */
/* Título de cada columna */
.pos-mp-coltitle {
    font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    color: #94a3b8; margin: 0 0 10px 2px;
}

/* Formas de pago — cards apiladas con icono + label */
.pos-mp .buttonformaspago {
    display: flex; align-items: center; gap: 12px;
    width: 100%; text-align: left;
    background: #fff; border: 1px solid #e3e8ef; border-radius: 12px;
    padding: 13px 16px; color: #1f2937; font-size: 15px; font-weight: 600;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pos-mp .buttonformaspago:hover {
    border-color: var(--primario, #1E88E5);
    box-shadow: 0 4px 12px rgba(16,32,64,.08);
}
.pos-mp .buttonformaspago img { height: 34px !important; width: 34px; object-fit: contain; flex: 0 0 auto; border-radius: 9px; }
/* Avatar (primera letra + color) cuando la forma de pago no tiene imagen */
.pos-fp-av {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; color: #fff;
    font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; justify-content: center;
}
.pos-fp-av.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; margin-right: 8px; }
.pos-mp .buttonformaspago .pos-fp-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-mp .buttonformaspago .pos-fp-add {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; margin-left: auto;
    display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--primario, #1E88E5) 10%, #fff); color: var(--primario, #1E88E5); font-size: 13px;
}
.pos-mp .buttonformaspago:hover .pos-fp-add { background: var(--primario, #1E88E5); color: #fff; }

/* Pagos registrados — caja + filas */
.pos-mp .card-oper {
    background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px;
    padding: 8px 10px;
}
.pos-mp .card-nro-ope span { color: var(--primario, #1E88E5); font-weight: 700; font-size: 12px; }
.pos-mp .card-nom-ope { font-weight: 600; color: #1f2937; display: flex; align-items: center; }

/* Calculadora — billetes / monedas */
.pos-mp .row-monedas { display: flex; gap: 8px; margin-bottom: 8px; }
.pos-mp .row-monedas .col-3 { flex: 1; padding: 0; }
.pos-mp .btn-moneda {
    width: 100%; border: 1px solid #e3e8ef; background: #fff; border-radius: 10px;
    padding: 11px 0; font-weight: 700; font-size: 15px;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.pos-mp .btn-moneda:hover:not(:disabled) {
    border-color: var(--primario, #1E88E5); background: #f8fafc;
}
.pos-mp .btn-moneda:disabled { opacity: .5; }
.pos-mp .pos-mp-limpiar { color: #64748b !important; }
.pos-mp .pos-mp-limpiar:hover:not(:disabled) { background: #f1f5f9; color: #0f172a !important; }

/* Inputs Pagó con / Vuelto */
.pos-mp .row-monedas .form-control { border-radius: 8px; border: 1px solid #e3e8ef; }

/* Total / Saldo */
.pos-mp .estilo-total { font-size: 26px; font-weight: 800; color: var(--primario, #1E88E5); margin: 0; }
.pos-mp .estilo-saldo { font-size: 15px; font-weight: 700; color: var(--color_exito, #04AA6D); margin: 0; }

/* =====================================================================================
   Carrito (PuntoVenta inline, desktop) — rediseño estilo mockup
   Orden: cabecera · comprobante · cliente · barra acciones · ítems · totales · cobrar · pie
   ===================================================================================== */
.pos-cart { display: flex; flex-direction: column; height: 100%; padding: 10px 12px; gap: 8px; }
.pos-cart .contenedor-detalle { flex: 1 1 auto; min-height: 0; }   /* los ítems ocupan el resto */
/* Card en flex-column: los ítems flexean y el PIE (totales + cobrar + Guardar/Deshacer) toma su
   alto natural y SIEMPRE se ve. Anula el height fijo `calc(100% - 255px)` del body-detalle que
   cortaba los botones de abajo al crecer el pie. */
.pos-cart .contenedor-detalle .card { display: flex; flex-direction: column; height: 100%; }
.pos-cart .contenedor-detalle .card-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.pos-cart .body-detalle { flex: 1 1 auto !important; height: auto !important; min-height: 0; }

/* Ancho del panel: carrito de ANCHO FIJO (px) — no porcentaje. Antes era 31%: en pantallas
   grandes se agrandaba de más y en chicas se encogía y distorsionaba los botones. Con un ancho
   fijo (flex-shrink:0) el carrito SIEMPRE entra completo a su tamaño normal y el panel de
   productos absorbe el resto. Solo aplica en desktop (≥768px); la vista MÓVIL que el sistema
   autodetecta (_IsPhone) NO se toca.
   OJO: el panel de productos lleva la clase `.pos-pv2` EN LA PROPIA columna (col-md-8 colpad pos-pv2),
   por eso se matchea también con `[class*="col-"].pos-pv2`. */
/* Lado-a-lado desde 600px (antes 768): carrito FIJO 440px + productos toman el resto (flex:1,
   se angostan pero NO desaparecen). Es la MISMA regla que ya funcionaba, solo a un breakpoint
   menor para que en ventanas de escritorio chicas los productos no se apilen/oculten.
   Móvil (_IsPhone) usa su toggle con d-none → no se ve afectada. */
@media (min-width: 600px) {
    [class*="col-"]:has(> .pos-cart), [class*="col-"]:has(.pos-cart), [class*="col-"].pos-cart {
        flex: 0 0 440px !important; width: 440px !important; min-width: 440px !important; max-width: 440px !important;
    }
    [class*="col-"]:has(> .pos-pv2), [class*="col-"]:has(.pos-pv2), [class*="col-"].pos-pv2 {
        /* width:0 (en vez del 66.66% que Bootstrap pone al col-md-8): con flex-grow:1 los productos
           llenan TODO el espacio restante desde 0 → no desbordan ni se apilan en pantallas chicas. */
        flex: 1 1 0 !important; width: 0 !important; min-width: 0 !important; max-width: none !important;
    }
}

/* =====================================================================================
   Color propio del PANEL del carrito — lo diferencia del panel de productos (#EDEFF3).
   Solo desktop: matchea el col que contiene `.pos-cart` (la vista móvil no tiene `.pos-cart`).
   El contenedor de ítems + footer se vuelven transparentes para que el tinte sea UNIFORME;
   las cards internas (ítems, comprobante, cliente, collapse) siguen blancas y resaltan.
   ===================================================================================== */
[class*="col-"]:has(> .pos-cart), [class*="col-"]:has(.pos-cart) {
    background: #fff;
    border-right: 1px solid #e3e8ef;
}
.pos-cart .contenedor-detalle,
.pos-cart .contenedor-detalle .card,
.pos-cart .card-body,
.pos-cart .body-detalle { background: transparent !important; }
.pos-cart .contenedor-detalle .card { border: none !important; box-shadow: none !important; }
/* Footer (totales/cobrar) tenía bg inline #f5f5f5 → transparente para unificar el tinte */
.pos-cart [style*="background-color: #f5f5f5"] { background-color: transparent !important; }

/* Ítems del carrito — filas modernas (card, acento azul al seleccionar, chevron) */
.pos-cart .body-detalle { padding: 2px !important; }
.pos-cart .producto-item {
    position: relative;
    border: 1px solid #eef2f7 !important;
    border-radius: 12px;
    padding: 5px 30px 10px 52px !important;   /* izq: barra acento + badge | der: chevron */
    margin-bottom: 6px;
    background: #fff;
    box-shadow: inset 3px 0 0 0 var(--secundario, #FFA000);   /* barra de acento */
    transition: border-color .12s ease, box-shadow .12s ease;
}
.pos-cart .producto-item:hover { border-color: #d3d9e6 !important; box-shadow: inset 3px 0 0 0 var(--secundario, #FFA000), 0 2px 8px rgba(16,32,64,.06); }
.pos-cart .producto-item.seleccionfila {
    background: #f4f9ff !important;
    border: 1px solid var(--primario, #1E88E5) !important;
    box-shadow: inset 3px 0 0 0 var(--secundario, #FFA000) !important;
    border-radius: 12px !important;
    padding-left: 52px !important;
}
/* Badge de cantidad (lee data-qty del ítem) */
.pos-cart .producto-item::before {
    content: attr(data-qty);
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border-radius: 8px;
    background: #eef2f7; color: #475569;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800;
}
.pos-cart .producto-item.seleccionfila::before {
    background: #e3effb; background: color-mix(in srgb, var(--primario, #1E88E5) 14%, #fff);
    color: var(--primario, #1E88E5);
}
.pos-cart .producto-item > div:first-child { font-size: 13.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-cart .producto-und-imp { margin-top: 2px; align-items: baseline; }
.pos-cart .producto-und-imp > div:first-child { font-size: 11.5px; color: #6b7280; }
.pos-cart .producto-imp { font-size: 14px; font-weight: 800; color: #1f2a3a !important; }
.pos-cart .producto-item::after {
    content: "\f105";              /* FontAwesome angle-right */
    font-family: FontAwesome;
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    color: #cbd5e1; font-size: 17px;
}
/* Ítems NUEVOS (pendientes de enviar) en modo restaurante: identidad VERDE de marca
   (--color_exito) — barra de acento + fondo tintado + badge verdes para distinguirlos a
   simple vista de los ya enviados (que llevan el acento naranja). */
.pos-cart .producto-item.nuevo {
    background: color-mix(in srgb, var(--color_exito, #04AA6D) 10%, #fff) !important;
    border-color: color-mix(in srgb, var(--color_exito, #04AA6D) 40%, #fff) !important;
    box-shadow: inset 4px 0 0 0 var(--color_exito, #04AA6D);
}
.pos-cart .producto-item.nuevo:hover {
    box-shadow: inset 4px 0 0 0 var(--color_exito, #04AA6D), 0 2px 8px rgba(16,32,64,.06);
}
.pos-cart .producto-item.nuevo::before {
    background: color-mix(in srgb, var(--color_exito, #04AA6D) 18%, #fff);
    color: var(--color_exito, #04AA6D);
}
/* Nuevo + seleccionado: mantiene el acento verde pero con borde azul de selección */
.pos-cart .producto-item.nuevo.seleccionfila {
    background: color-mix(in srgb, var(--color_exito, #04AA6D) 14%, #fff) !important;
    border-color: var(--primario, #1E88E5) !important;
    box-shadow: inset 4px 0 0 0 var(--color_exito, #04AA6D) !important;
}

/* Cabecera: "Orden actual" (auto) + Comprobante (se estira) + acciones (auto) */
.pos-cart-head { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.pos-cart-title { flex: 0 0 auto; font-size: 15px; font-weight: 800; color: #111827; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
/* Restaurante: botón mesa (← + nombre de mesa + "volver al salón") en vez de "Orden actual" */
.pos-cart-mesa { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; border: none; background: transparent; cursor: pointer; padding: 0; text-align: left; }
.pos-cart-mesa-ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--primario, #1E88E5) 12%, #fff); color: var(--primario, #1E88E5); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; transition: background .12s ease, color .12s ease; }
.pos-cart-mesa:hover .pos-cart-mesa-ic { background: var(--primario, #1E88E5); color: #fff; }
.pos-cart-mesa-tx { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.pos-cart-mesa-tx strong { font-size: 15px; font-weight: 800; color: #1f2a3a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.pos-cart-mesa-tx span { font-size: 11px; color: #94a3b8; font-weight: 600; white-space: nowrap; }
/* Restaurante: nro de orden + eliminar orden (reemplazan comprobante/congeladas en el header).
   Lado a lado; cada uno con su texto en 2 líneas para aprovechar el alto y no desbordar a lo ancho. */
.pos-cart-rest-mid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: row; align-items: stretch; justify-content: center; gap: 8px; }
.pos-cart-orden { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.12; font-weight: 800; color: var(--primario, #1E88E5); background: color-mix(in srgb, var(--primario, #1E88E5) 10%, #fff); padding: 4px 11px; border-radius: 8px; white-space: nowrap; }
.pos-cart-orden-l1 { font-size: 10.5px; opacity: .85; }
.pos-cart-orden-l1 i { margin-right: 4px; }
.pos-cart-orden-l2 { font-size: 13px; }
.pos-cart-orden.nueva { justify-content: center; color: #94a3b8; background: #f1f4f8; font-size: 12px; }
.pos-cart-elim { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 8px; border: 1px solid #fecaca; background: #fff; color: var(--color_error, #D32F2F); font-weight: 700; font-size: 11.5px; cursor: pointer; }
.pos-cart-elim .pos-cart-elim-tx { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.08; }
.pos-cart-elim:hover { background: #fef2f2; }
/* Variante solo-icono (mas compacta): cuadrada, sin el texto "Eliminar orden" */
.pos-cart-elim.pos-cart-elim-ico { padding: 5px 8px; justify-content: center; gap: 0; font-size: 14px; }
.pos-cart-head .pos-cart-doc { flex: 1 1 auto; }
.pos-cart-head .pos-cart-head-acts { flex: 0 0 auto; }

/* Comprobante como píldora compacta en el header (libera la fila completa de antes) */
.pos-cart-doc {
    position: relative; display: flex; align-items: center; justify-content: center;
    border: 1px solid #e3e8ef; background: #f4f6fa; border-radius: 12px;
    padding: 5px 16px; cursor: pointer; line-height: 1.1; min-width: 130px; min-height: 46px;
}
.pos-cart-doc:hover { border-color: color-mix(in srgb, var(--primario, #1E88E5) 35%, #fff); }
.pos-cart-doc-l { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.pos-cart-doc-lbl { font-size: 9.5px; font-weight: 700; letter-spacing: .6px; color: #94a3b8; }
.pos-cart-doc-val { font-size: 14px; font-weight: 800; color: #111827; white-space: nowrap; }
.pos-cart-doc-chev { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 12px; }
.pos-cart-count {
    display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px;
    padding: 0 7px; border-radius: 999px; font-size: 12px; font-weight: 800;
    background: #e3effb; color: var(--primario, #1E88E5);
    background: color-mix(in srgb, var(--primario, #1E88E5) 14%, #fff);
}
.pos-cart-head-acts { display: flex; align-items: center; gap: 6px; }
.pos-cart-clear {
    border: 1px solid #e3e8ef; background: #fff; border-radius: 9px; padding: 6px 12px;
    font-size: 13px; font-weight: 600; color: #64748b; display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer; line-height: 1; white-space: nowrap;
}
.pos-cart-clear i { font-size: 13px; }
.pos-cart-clear:hover { background: #fef2f2; color: #d32f2f; border-color: #fecaca; }
/* Botones cuadrados solo-icono del header (Órdenes / Congeladas), mismo alto que el comprobante */
.pos-cart-orders, .pos-cart-frz {
    position: relative; flex: 0 0 auto; width: 46px; height: 46px; padding: 0; justify-content: center;
    border-radius: 12px; color: #475569; background: #f4f6fa !important;
}
.pos-cart-orders i, .pos-cart-frz i { font-size: 18px; }
/* No son destructivos: hover azul (color de marca) — no el rojo de "Vaciar" */
.pos-cart-orders:hover, .pos-cart-frz:hover {
    background: color-mix(in srgb, var(--primario, #1E88E5) 8%, #fff);
    color: var(--primario, #1E88E5);
    border-color: color-mix(in srgb, var(--primario, #1E88E5) 35%, #fff);
}

/* Menú desplegable de ventas congeladas */
.pos-cart-frz-wrap { position: relative; display: inline-flex; }
.pos-cart-frz-badge {
    position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 999px; background: var(--secundario, #FFA000); color: #fff;
    font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.pos-cart-frz-back { position: fixed; inset: 0; z-index: 49; background: transparent; }
.pos-cart-frz-menu {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 50; min-width: 200px;
    background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 6px;
    box-shadow: 0 10px 28px rgba(15,23,42,.18); display: flex; flex-direction: column; gap: 2px;
}
.pos-cart-frz-item {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
    border: none; background: transparent; border-radius: 8px; padding: 9px 10px;
    font-size: 13.5px; font-weight: 600; color: #334155; cursor: pointer;
}
.pos-cart-frz-item i { width: 16px; text-align: center; color: #64748b; }
.pos-cart-frz-item:hover { background: #f1f5f9; color: var(--primario, #1E88E5); }
.pos-cart-frz-item:hover i { color: var(--primario, #1E88E5); }
.pos-cart-frz-cnt {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--primario, #1E88E5) 14%, #fff); color: var(--primario, #1E88E5);
}

/* Comprobante + Cliente como cards */
.pos-cart-field {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
    background: #f4f6fa; border: 1px solid #e6e9f0; border-radius: 12px; padding: 8px 14px;
}
.pos-cart-field:hover { border-color: #d3d9e6; }
.pos-cart-field-l { display: flex; flex-direction: column; min-width: 0; }
.pos-cart-field-lbl { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #94a3b8; }
.pos-cart-field-val { font-size: 15px; font-weight: 700; color: #1f2a3a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Card de Cliente con icono tintado (estilo del modelo) */
.pos-cart-cli-l { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; }
.pos-cart-cli-ico {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
    background: color-mix(in srgb, var(--primario, #1E88E5) 12%, #fff);
    color: var(--primario, #1E88E5);
}
.pos-cart-field-chev { margin-left: auto; color: #94a3b8; }
.pos-cart-field-x { margin-left: auto; color: #cbd5e1; cursor: pointer; font-size: 18px; }
.pos-cart-field-x:hover { color: #d32f2f; }

/* Barra de acciones del ítem — clara, alineada al resto del carrito (cards blancas + acento de marca) */
.pos-cart-actions {
    display: flex !important; align-items: center; gap: 8px; padding: 8px; margin: 0;
    background: color-mix(in srgb, var(--primario, #1E88E5) 6%, #eef2f8);
    border: 1px solid #e1e7f0; border-radius: 14px;
}
/* Botones de ícono = cards blancas con ícono de marca (igual que Órdenes / Comprobante) */
.pos-cart-actions .btnAnalogo {
    flex: 0 0 44px; width: 44px; height: 44px; min-width: 0; padding: 0; margin: 0 !important;
    border: 1px solid #e3e8ef !important; border-radius: 11px !important; box-shadow: none !important;
    background: #fff !important; color: var(--primario, #1E88E5) !important;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.pos-cart-actions .btnAnalogo i, .pos-cart-actions .btnAnalogo span { color: var(--primario, #1E88E5) !important; }
.pos-cart-actions .btnAnalogo:hover {
    background: color-mix(in srgb, var(--primario, #1E88E5) 8%, #fff) !important;
    border-color: color-mix(in srgb, var(--primario, #1E88E5) 35%, #fff) !important;
}
/* Eliminar ítem (×) = acento rojo destructivo */
.pos-cart-actions .btnAnalogo:has(.fa-times) i { color: var(--color_error, #D32F2F) !important; }
.pos-cart-actions .btnAnalogo:has(.fa-times):hover {
    background: color-mix(in srgb, var(--color_error, #D32F2F) 8%, #fff) !important;
    border-color: color-mix(in srgb, var(--color_error, #D32F2F) 35%, #fff) !important;
}
/* Cupón (verde) conserva su identidad */
.pos-cart-actions .btn-success.btnAnalogo i { color: var(--color_exito, #04AA6D) !important; }
.pos-cart-actions .btn-success.btnAnalogo:hover {
    background: color-mix(in srgb, var(--color_exito, #04AA6D) 10%, #fff) !important;
    border-color: color-mix(in srgb, var(--color_exito, #04AA6D) 40%, #fff) !important;
}
/* Chip central "CANT · PRECIO" = card blanca con texto oscuro (clic = editar cantidad/precio) */
.pos-cart-act-disp {
    flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 10px;
    border: 1px solid #e3e8ef; border-radius: 11px; cursor: pointer; background: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.1;
    transition: border-color .12s ease, background .12s ease;
}
.pos-cart-act-disp:hover {
    border-color: color-mix(in srgb, var(--primario, #1E88E5) 35%, #fff);
    background: color-mix(in srgb, var(--primario, #1E88E5) 4%, #fff);
}
.pos-cart-act-disp-v { font-size: 15px; font-weight: 800; white-space: nowrap; color: #111827; }
.pos-cart-act-disp-l { font-size: 8.5px; font-weight: 700; letter-spacing: .08em; color: #94a3b8; }
.pos-cart-act-disp-off { cursor: default; opacity: .85; }

/* Ocultar comprobante/cliente VIEJOS (ahora viven arriba) */
.pos-cart .btnFactPri.classBotonTotal { display: none !important; }
.pos-cart .rowpv:has(.classBotonCliente) { display: none !important; }

/* Totales + Cobrar apilados (totales arriba, cobrar abajo, ancho completo) */
.pos-cart .rowpv:has(.totales) { display: flex; flex-direction: column-reverse; gap: 4px; }
/* width:100% es CLAVE: en flex-column el flex-basis afecta la altura, no el ancho; sin esto
   el .col-md-7 de Bootstrap mantiene width:58.33% y los totales salen angostos/desalineados. */
.pos-cart .rowpv:has(.totales) > [class*="col-"] {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
}
.pos-cart .totales { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; font-size: 13px; }
.pos-cart .label-text-totales { color: #64748b; font-size: 13px; font-weight: 500; }
.pos-cart .label-totales { font-weight: 700; color: #1f2a3a; text-align: right; }
.pos-cart .label-totales .form-control { height: 30px; width: 90px; text-align: right; }
/* Fila del Total: divisor arriba + número grande (marca) */
/* Descuento global: visible, input compacto alineado a la derecha */
.pos-cart .pos-cart-dscto .form-control { height: 28px; width: 90px; text-align: right; border-radius: 8px; border: 1px solid #e3e8ef; font-size: 12px; padding: 2px 8px; }
.pos-cart .totales:has(.color-total) { border-top: 1px solid #e6e9f0; margin-top: 5px; padding-top: 8px; }
.pos-cart .color-total { font-size: 26px !important; font-weight: 800 !important; color: var(--primario, #1E88E5) !important; }

/* Botón de cobro principal: Cobrar (azul) full-width, arriba de la fila de pie */
.pos-cart .botonesAT { display: flex; flex-direction: column; gap: 6px; }
/* La fila "Total" ya no se usa: el monto va en el botón de cobro */
.pos-cart .pos-cart-total-row { display: none; }
.pos-cart-pay-main {
    width: 100% !important; height: 46px; border: none !important; border-radius: 12px !important;
    background: var(--primario, #1E88E5) !important; color: #fff !important; font-weight: 700; font-size: 16px;
    display: flex !important; align-items: center; justify-content: space-between; padding: 0 16px !important;
}
.pos-cart-pay-main .pos-pay-l { display: inline-flex; align-items: center; gap: 8px; }
.pos-cart-pay-main .pos-pay-r { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.pos-cart-pay-main .pos-pay-key {
    font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 7px;
    background: rgba(255,255,255,.22); color: #fff;
}

/* Pie en UNA fila: Todo Efectivo (verde) · Guardar Orden · Deshacer — todos iguales */
.pos-cart .pos-cart-bottom { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 8px; margin: 0; }
.pos-cart .pos-cart-bottom > [class*="col-"] { flex: 1 1 0; width: auto !important; max-width: none !important; padding: 0; }
.pos-cart .classBotonBottom {
    border-radius: 10px !important; font-weight: 700; height: 42px; width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; padding: 0 8px;
    white-space: nowrap;
}
/* Restaurante: Enviar / PreCuenta / Dividir en una fila de 3, directamente arriba de Pagar.
   Viven dentro de la fila column-reverse de totales (col-md-12 forzado a width:100%). */
.pos-cart-rest-acts { display: flex; flex-direction: row; gap: 8px; margin-bottom: 4px; }
.pos-cart-rest-acts .pos-cart-rest-act { flex: 1 1 0; min-width: 0; }
/* Verde "Todo Efectivo" alineado a los otros botones del pie */
.pos-cart-pay-cash {
    background: var(--color_exito, #04AA6D) !important; color: #fff !important; border: none !important;
}
.pos-cart-pay-cash i { color: #fff !important; }

/* Espacio vertical compacto entre totales · cobrar · pie */
.pos-cart .rowpv { margin-top: 0 !important; margin-bottom: 3px !important; }
.pos-cart .colpad { padding-top: 0 !important; padding-bottom: 0 !important; }
.pos-cart .rowpv:has(.totales) { margin-bottom: 3px !important; }
.pos-cart .pos-cart-bottom { margin-bottom: 0 !important; }

/* =====================================================================================
   Collapse "Cupones, promos y puntos" — descuentos POR VENTA (cupón, puntos, dscto, sumatoria).
   Va sobre los totales; la sección de totales queda solo con Base imponible + IGV.
   ===================================================================================== */
.pos-cart-disc { margin: 2px 0 6px; border: 1px solid #e6e9f0; border-radius: 12px; background: #f4f6fa; overflow: hidden; }
.pos-cart-disc-head {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    border: none; background: transparent; padding: 10px 14px; cursor: pointer;
    font-size: 13.5px; font-weight: 800; color: #1f2a3a;
}
.pos-cart-disc-head-l { display: inline-flex; align-items: center; gap: 9px; }
.pos-cart-disc-head-l i { color: var(--primario, #1E88E5); font-size: 16px; }
.pos-cart-disc-chev { color: #94a3b8; font-size: 13px; }
.pos-cart-disc-body { padding: 0 14px 12px; display: flex; flex-direction: column; gap: 10px; }
/* Cupón inline */
.pos-cart-disc-cupon { display: flex; gap: 8px; }
.pos-cart-disc-cup-in {
    flex: 1 1 auto; min-width: 0; height: 40px; border: 1px solid #e3e8ef; border-radius: 10px;
    padding: 0 12px; font-size: 13px; text-transform: uppercase; color: #1e293b; background: #fff;
}
.pos-cart-disc-cup-in:focus { outline: none; border-color: var(--primario, #1E88E5); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primario, #1E88E5) 16%, transparent); }
.pos-cart-disc-cup-in::placeholder { color: #98a2b3; letter-spacing: .04em; }
.pos-cart-disc-apply {
    flex: 0 0 auto; height: 40px; padding: 0 18px; border: none; border-radius: 10px;
    background: var(--primario, #1E88E5); color: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer;
}
.pos-cart-disc-apply:hover { background: var(--hoverprimario, #1565C0); }
.pos-cart-disc-apply:disabled { opacity: .6; cursor: default; }
.pos-cart-disc-err { color: var(--color_error, #D32F2F); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
/* Filas (puntos / descuento) */
.pos-cart-disc-row { display: flex; align-items: center; gap: 10px; }
.pos-cart-disc-row-l { flex: 1 1 auto; min-width: 0; }
.pos-cart-disc-row-t { font-size: 13px; font-weight: 700; color: #1f2a3a; }
.pos-cart-disc-row-s { font-size: 11px; color: #94a3b8; }
.pos-cart-disc-btn {
    flex: 0 0 auto; height: 34px; padding: 0 14px; border: 1px solid #e3e8ef; border-radius: 9px;
    background: #fff; color: var(--primario, #1E88E5); font-weight: 700; font-size: 12.5px; cursor: pointer;
}
.pos-cart-disc-btn:hover { background: color-mix(in srgb, var(--primario, #1E88E5) 8%, #fff); border-color: color-mix(in srgb, var(--primario, #1E88E5) 35%, #fff); }
.pos-cart-disc-input {
    flex: 0 0 96px; width: 96px; height: 34px; border: 1px solid #e3e8ef; border-radius: 9px;
    text-align: right; padding: 0 10px; font-size: 13px; font-weight: 700; color: #1f2a3a; background: #fff;
}
.pos-cart-disc-input:focus { outline: none; border-color: var(--primario, #1E88E5); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primario, #1E88E5) 16%, transparent); }
/* Sumatoria dentro del collapse */
.pos-cart-disc-sum { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eef1f6; padding-bottom: 9px; font-size: 13px; }
.pos-cart-disc-sum span:first-child { color: #64748b; font-weight: 500; }
.pos-cart-disc-sum span:last-child { font-weight: 800; color: #1f2a3a; }

/* =====================================================================================
   Toasts del POS: ABAJO al centro + colores SÓLIDOS bien definidos (no el card pálido
   con borde izquierdo del RCL). Menos redondeo (antes 999px = pastilla).
   Override SOLO del POS (pos-global.css carga después del RCL y solo en el POS).
   ===================================================================================== */
.fac-toast-container {
    top: auto !important;
    right: auto !important;
    bottom: 28px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    align-items: center !important;
    max-width: none !important;
}
.fac-toast {
    animation: pos-toast-in .28s ease !important;
    border-radius: 14px !important;       /* definido, no pastilla */
    border-left: none !important;          /* color sólido: sin borde lateral */
    color: #fff !important;
    align-items: center !important;
    box-shadow: 0 10px 28px rgba(15,23,42,.22) !important;
}
.fac-toast-exit { animation: pos-toast-out .28s ease forwards !important; }

/* Texto + ícono + cerrar en blanco sobre el fondo de color */
.fac-toast .fac-toast-summary { color: #fff !important; font-weight: 700 !important; }
.fac-toast .fac-toast-detail { color: #fff !important; opacity: .92; }
.fac-toast .fac-toast-icon { background: rgba(255,255,255,.22) !important; color: #fff !important; }
.fac-toast .fac-toast-close { color: rgba(255,255,255,.9) !important; }
.fac-toast .fac-toast-close:hover { background: rgba(255,255,255,.2) !important; color: #fff !important; }

/* Fondos sólidos por severidad (marca blanca: usa los tokens del POS) */
.fac-toast-success { background: var(--color_exito, #04AA6D) !important; }
.fac-toast-error   { background: var(--color_error, #D32F2F) !important; }
.fac-toast-warning { background: #F59E0B !important; }
.fac-toast-info    { background: var(--primario, #1E88E5) !important; }

@keyframes pos-toast-in {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pos-toast-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(22px); }
}

/* =====================================================================================
   6. Estado "Carrito vacío" (panel de detalle sin items)
   ===================================================================================== */
.pos-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;          /* llena el alto del body-detalle → centrado vertical */
    min-height: 180px;
    padding: 24px 18px;
    gap: 6px;
}
.pos-cart-empty-ico {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.pos-cart-empty-ico i { font-size: 26px; color: #94a3b8; }
.pos-cart-empty-title { font-size: 16px; font-weight: 700; color: #334155; }
.pos-cart-empty-hint { font-size: 12.5px; color: #7c8aa0; line-height: 1.45; max-width: 240px; }

/* =====================================================================================
   7. Multipago DESKTOP reestructurado (.pos-mp2): barra superior (acciones + chips) ·
      franja de opciones · 3 columnas · barra inferior Total/Saldo. La vista móvil usa la
      rama IsPhone (no se toca).
   ===================================================================================== */
/* Espaciado SOLO del multipago (el contenedor principal .pos-mp queda en 0 para reuso) */
.pos-mp2 { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0; box-sizing: border-box; padding: 12px 22px; }
.pos-mp:has(.pos-mp2) { height: 100%; }

/* Barra superior */
.pos-mp2-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pos-mp2-top-l { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pos-mp2-top-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pos-mp2-btn { display: inline-flex; align-items: center; gap: 7px; border: none; border-radius: 11px; padding: 10px 18px; font-weight: 700; font-size: 14px; cursor: pointer; color: #fff; }
.pos-mp2-btn.ghost { background: #fff; color: #475569; border: 1px solid #e3e8ef; }
.pos-mp2-btn.ghost:hover { background: #f1f5f9; }
.pos-mp2-btn.ok { background: var(--color_exito, #04AA6D); }                /* Detallado/Completar: verde de marca (confirmar) */
.pos-mp2-btn.info { background: var(--primario, #1E88E5); }                 /* Consumo: azul de marca (antes #17a2b8 teal fuera de paleta) */
.pos-mp2-btn.info2 { background: var(--analogo, #23ade9); }                 /* Crédito: azul claro análogo */
.pos-mp2-btn:hover { filter: brightness(.96); }
.pos-mp2-btn:disabled { opacity: .7; cursor: default; filter: none; }
.pos-mp2-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e3e8ef; border-radius: 11px; padding: 9px 14px; font-weight: 700; font-size: 14px; color: #1f2a3a; cursor: pointer; max-width: 300px; }
.pos-mp2-chip:hover { border-color: color-mix(in srgb, var(--primario, #1E88E5) 35%, #fff); }
.pos-mp2-chip > i { color: var(--primario, #1E88E5); font-size: 17px; }
.pos-mp2-chip-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-mp2-chip-x { color: #94a3b8; }
.pos-mp2-chip-x:hover { color: var(--color_error, #D32F2F); }

/* Franja de opciones (conserva todas las opciones del POS) */
.pos-mp2-opts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; padding: 12px 14px; background: #f4f6fa; border: 1px solid #e6e9f0; border-radius: 12px; }
.pos-mp2-opt { display: flex; flex-direction: column; gap: 3px; }
.pos-mp2-opt > label { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #94a3b8; }
.pos-mp2-in { height: 36px; border: 1px solid #e3e8ef; border-radius: 9px; padding: 0 10px; font-size: 13px; background: #fff; color: #1e293b; min-width: 130px; }
.pos-mp2-in.wide { min-width: 200px; }
.pos-mp2-in:focus { outline: none; border-color: var(--primario, #1E88E5); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primario, #1E88E5) 16%, transparent); }
.pos-mp2-doc { display: flex; gap: 6px; }
.pos-mp2-mini { height: 36px; min-width: 38px; padding: 0 12px; border: 1px solid #e3e8ef; border-radius: 9px; background: #fff; color: var(--primario, #1E88E5); font-weight: 700; cursor: pointer; }
.pos-mp2-mini.wide { width: 100%; }
.pos-mp2-mini:hover { background: color-mix(in srgb, var(--primario, #1E88E5) 8%, #fff); }
.pos-mp2-ref { font-size: 13px; font-weight: 700; color: #1f2a3a; padding: 7px 0; }
.pos-mp2-canje { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; background: #fef9e6; border: 1px solid #e7bf02; color: #8a6d00; border-radius: 8px; padding: 8px 12px; font-size: 12.5px; font-weight: 600; }
.pos-mp2-canje i { color: var(--primario, #1E88E5); }

/* 3 columnas */
/* Columnas: Formas | Pagos (más ancho) | Calculadora (más angosta). minmax(0,..) = pueden encogerse → no se cortan */
.pos-mp2-cols { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr) minmax(0, 1.05fr); gap: 14px; flex: 1 1 auto; min-height: 360px; }
.pos-mp2-col { display: flex; flex-direction: column; min-height: 0; }
.pos-mp2-col-fp { gap: 10px; }
.pos-mp2-col-fp .buttonformaspago { width: 100%; }
/* "Pagos registrados" = UN solo panel blanco (header + filas + totales adentro) */
.pos-mp2-col-pr { background: #fff; border: 1px solid #e6e9f0; border-radius: 14px; padding: 14px 16px; box-shadow: 0 2px 10px rgba(16,32,64,.04); }
.pos-mp2-pr-box { flex: 1 1 auto; min-height: 160px; overflow-y: auto; border: none; border-radius: 0; padding: 0; background: transparent; }
.pos-mp2-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 180px; gap: 8px; color: #94a3b8; font-weight: 600; }
.pos-mp2-empty i { font-size: 26px; }
/* Header del panel Pagos registrados (título + pill de la forma de pago activa) */
.pos-mp2-pr-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pos-mp2-pr-head .pos-mp-coltitle { margin: 0; }
.pos-mp2-pr-pill { font-size: 12px; font-weight: 700; color: var(--primario, #1E88E5); background: color-mix(in srgb, var(--primario, #1E88E5) 12%, #fff); padding: 4px 12px; border-radius: 999px; }
/* Fila de pago registrado */
.pos-mp2-pago { display: flex; align-items: center; gap: 10px; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.pos-mp2-pago .pos-fp-av.sm { margin-right: 0; }
.pos-mp2-pago-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pos-mp2-pago-nom { font-weight: 700; color: #1f2a3a; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-mp2-pago-nro { font-size: 11px; color: var(--primario, #1E88E5); cursor: pointer; font-weight: 700; }
.pos-mp2-pago-money { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; width: 118px; height: 36px; padding: 0 10px; border: 1px solid #e3e8ef; border-radius: 9px; background: #fff; }
.pos-mp2-pago-money span { font-size: 12px; color: #94a3b8; font-weight: 700; }
.pos-mp2-pago-money input { border: none; outline: none; background: transparent; width: 100%; text-align: right; font-size: 14px; font-weight: 700; color: #1f2a3a; }
.pos-mp2-pago-money:focus-within { border-color: var(--primario, #1E88E5); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primario, #1E88E5) 16%, transparent); }
.pos-mp2-pago-x { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #e3e8ef; background: #fff; color: #94a3b8; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pos-mp2-pago-x:hover { background: #fef2f2; color: var(--color_error, #D32F2F); border-color: #fecaca; }
/* Totales al pie del panel */
.pos-mp2-tot { margin-top: 10px; background: #f4f6fa; border: 1px solid #e6e9f0; border-radius: 12px; padding: 12px 16px; }
.pos-mp2-tot-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.pos-mp2-tot-row + .pos-mp2-tot-row { margin-top: 4px; }
.pos-mp2-tot-row span:first-child { color: #64748b; font-weight: 600; }
.pos-mp2-tot-row span:last-child { color: #1f2a3a; font-weight: 700; }
.pos-mp2-tot-row.total span:first-child { color: #1f2a3a; font-weight: 800; font-size: 15px; }
.pos-mp2-tot-row.total span:last-child { color: var(--primario, #1E88E5); font-weight: 800; font-size: 20px; }
.pos-mp2-tot-row.saldo span { color: var(--secundario, #E8743B); font-weight: 800; }
/* Acciones al pie de la calculadora (Crédito + Completar) */
.pos-mp2-calc-actions { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.pos-mp2-calc-actions .pos-mp2-btn { width: 100%; justify-content: center; }

/* Calculadora de efectivo */
/* Calculadora de efectivo — panel tintado + título con ícono + cajas Pago con / Vuelto */
.pos-mp2-col-calc { background: color-mix(in srgb, var(--primario, #1E88E5) 6%, #f4f6fb); border: 1px solid #e2e8f4; border-radius: 14px; padding: 14px 16px; }
.pos-mp2-calc-title { display: flex; align-items: center; gap: 8px; }
.pos-mp2-calc-title i { color: var(--primario, #1E88E5); font-size: 16px; }
.pos-mp2-pagocon { display: flex; gap: 10px; margin-bottom: 8px; }
.pos-mp2-pc { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pos-mp2-pc label { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #94a3b8; }
.pos-mp2-pc .pos-mp2-in { min-width: 0; width: 100%; }
.pos-mp2-pc-box { display: flex; align-items: baseline; gap: 6px; height: 52px; padding: 0 14px; border: 1px solid #e3e8ef; border-radius: 12px; background: #fff; }
.pos-mp2-pc-box.ro { background: #f8fafc; }
.pos-mp2-pc-box:focus-within { border-color: var(--primario, #1E88E5); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primario, #1E88E5) 16%, transparent); }
.pos-mp2-pc-box .cur { flex: 0 0 auto; font-size: 14px; font-weight: 700; color: #94a3b8; align-self: center; }
.pos-mp2-pc-box input { flex: 1 1 auto; min-width: 0; border: none; outline: none; background: transparent; font-size: 22px; font-weight: 800; color: #1f2a3a; padding: 0; }
.pos-mp2-pc-box.vuelto { background: #fff; }
.pos-mp2-pc-box.vuelto input { color: var(--primario, #1E88E5); }

/* Responsive del MultiPago desktop (NO afecta el móvil que usa otra rama _IsPhone) */
@media (max-width: 1240px) {
    .pos-mp2 { padding: 10px 14px; }
    .pos-mp2-cols { gap: 10px; }
    .pos-mp2-bill { font-size: 14px; padding: 10px 0; }
    .pos-mp2-denoms { gap: 6px; }
    .pos-mp2-opts { gap: 8px 12px; }
    .pos-mp2-pc-box { height: 48px; }
    .pos-mp2-pc-box input { font-size: 19px; }
}
@media (max-width: 1024px) {
    /* La calculadora pasa a una fila completa debajo de Formas + Pagos */
    .pos-mp2-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
    .pos-mp2-col-calc { grid-column: 1 / -1; }
    .pos-mp2-denoms.coins { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.pos-mp2-denom-lbl { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; margin: 6px 0; }
.pos-mp2-denoms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pos-mp2-denoms.coins { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pos-mp2-bill { min-width: 0; border: 1.5px solid currentColor; border-radius: 11px; background: #fff; font-weight: 800; font-size: 15px; padding: 12px 0; cursor: pointer; transition: background .12s ease; }
.pos-mp2-bill:hover { background: color-mix(in srgb, currentColor 10%, #fff); }
.pos-mp2-bill:disabled { opacity: .4; cursor: default; }
.pos-mp2-limpiar { margin-top: 12px; width: 100%; height: 42px; border: 1px solid #e3e8ef; border-radius: 11px; background: #fff; color: #475569; font-weight: 700; cursor: pointer; }
.pos-mp2-limpiar:hover { background: #f1f5f9; }
.pos-mp2-limpiar:disabled { opacity: .5; cursor: default; }

/* Barra inferior Total / Saldo */
/* Barra inferior = barra de acciones: [Atrás][Comprobante] ... Total/Saldo [Crédito][Completar] */
.pos-mp2-foot { border-top: 2px solid #e6e9f0; padding-top: 12px; margin-top: 8px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pos-mp2-foot-l { display: flex; align-items: center; gap: 8px; }
.pos-mp2-foot-tot { display: flex; align-items: center; gap: 20px; }
.pos-mp2-foot-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
/* Botones Atrás / Comprobante dentro de la franja de opciones (alineados a los inputs 36px) */
.pos-mp2-optbtn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid #e3e8ef; background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; color: #475569; }
.pos-mp2-optbtn:hover { border-color: color-mix(in srgb, var(--primario,#1E88E5) 35%, #fff); }
.pos-mp2-optbtn.ghost:hover { background: #f1f5f9; }
.pos-mp2-optbtn.doc { color: #1f2a3a; max-width: 220px; }
.pos-mp2-optbtn.doc > i { color: var(--primario, #1E88E5); font-size: 16px; }
.pos-mp2-optbtn.primary { background: var(--primario, #1E88E5); border-color: var(--primario, #1E88E5); color: #fff; }
.pos-mp2-optbtn.primary:hover { background: var(--hoverprimario, #1565C0); }
/* Select de Documento inline */
.pos-mp2-doc-sel { min-width: 240px; max-width: 290px; padding-right: 6px; cursor: pointer; }
/* Item Fidelización empujado a la derecha + chip Puntos outline */
.pos-mp2-opt-grow { flex: 1 1 auto; min-width: 160px; }
.pos-mp2-opt-fid { margin-left: auto; }
.pos-mp2-pts {
    display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 9px;
    border: 1.5px solid var(--primario, #1E88E5); background: color-mix(in srgb, var(--primario, #1E88E5) 6%, #fff);
    color: var(--primario, #1E88E5); font-weight: 700; font-size: 13px; cursor: pointer;
}
.pos-mp2-pts:hover { background: color-mix(in srgb, var(--primario, #1E88E5) 14%, #fff); }
.pos-mp2-pts i { color: var(--secundario, #F6A623); }
.pos-mp2-foot-row { display: flex; align-items: baseline; gap: 8px; }
.pos-mp2-foot-row span:first-child { font-size: 11px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.pos-mp2-foot-row.total span:last-child { font-size: 26px; font-weight: 800; color: var(--primario, #1E88E5); }
.pos-mp2-foot-row.saldo span:last-child { font-size: 19px; font-weight: 800; color: var(--secundario, #FFA000); }
.pos-mp2-btn.big { padding: 14px 28px; font-size: 16px; border-radius: 13px; }

/* =====================================================================================
   Pantalla de carga (boot inicial + post-login) — anillo girando alrededor del ícono naranja.
   Marca: azul --primario + naranja --secundario. La usan el splash de index.html y el loader
   Blazor del POS (mismas clases; pos-global.css carga en <head> antes del WASM).
   ===================================================================================== */
.pos-ldr { position: fixed; inset: 0; z-index: 99999; background: var(--color_fondo, #EDEFF3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.pos-ldr-stack { display: flex; flex-direction: column; align-items: center; gap: 18px; animation: posLdrPop .55s cubic-bezier(.2,.8,.25,1) both; }
.pos-ldr-ring { position: relative; width: 92px; height: 92px; display: grid; place-items: center; }
.pos-ldr-ring .trk { position: absolute; inset: 0; border-radius: 50%; border: 4px solid #E6EEF6; }
.pos-ldr-ring .arc1 { position: absolute; inset: 0; border-radius: 50%; border: 4px solid transparent; border-top-color: var(--primario, #1E88E5); border-right-color: var(--primario, #1E88E5); animation: posLdrSpin .8s linear infinite; }
.pos-ldr-ring .arc2 { position: absolute; inset: 0; border-radius: 50%; border: 4px solid transparent; border-bottom-color: var(--secundario, #E8743B); animation: posLdrSpin 1.15s linear infinite reverse; }
.pos-ldr-ring img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 30px rgba(20,22,28,.10); }
.pos-ldr-word { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pos-ldr-name { font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--primario, #1E88E5); }
.pos-ldr-name span { color: var(--secundario, #E8743B); }
.pos-ldr-tag { font-weight: 700; color: #6B7280; font-size: 10px; letter-spacing: .22em; }
.pos-ldr-hint { display: flex; align-items: center; gap: 8px; color: #6B7280; font-weight: 700; font-size: 13px; }
.pos-ldr-dots { display: inline-flex; gap: 3px; }
.pos-ldr-dots i { width: 5px; height: 5px; border-radius: 999px; display: block; }
.pos-ldr-dots i:nth-child(1) { background: var(--primario, #1E88E5); animation: posLdrDot 1.2s ease-in-out infinite; }
.pos-ldr-dots i:nth-child(2) { background: var(--secundario, #E8743B); animation: posLdrDot 1.2s ease-in-out .2s infinite; }
.pos-ldr-dots i:nth-child(3) { background: var(--primario, #1E88E5); animation: posLdrDot 1.2s ease-in-out .4s infinite; }
@keyframes posLdrSpin { to { transform: rotate(360deg); } }
@keyframes posLdrDot { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes posLdrPop { 0% { transform: scale(.85); opacity: 0; } 55% { transform: scale(1.03); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pos-ldr-ring .arc1, .pos-ldr-ring .arc2 { animation: none; } .pos-ldr-stack { animation: none; } }

/* ── MARCA BLANCA: loaders SIN marca Facturita ──────────────────────────────────────────
   En un dominio de reseller (pdv.cliente.com) las pantallas de espera no deben mostrar el
   logo naranja ni el wordmark "Facturita.pe" — queda un spinner GENERICO (anillo + texto).
   La clase `fac-marca-blanca` se pone en <html>:
     · WEB  → script de arranque en index.html (por dominio, antes de pintar = sin parpadeo).
     · MAUI → MarcaBlancaService al detectar el codigo semilla (el host siempre es localhost).
   Cubre de una sola vez los 3 loaders con clase .pos-ldr (boot, "Preparando tu caja" de
   PuntoVenta y el de SalonMesasView) + los spinners de pagina legacy. */
html.fac-marca-blanca .pos-ldr-word { display: none; }
html.fac-marca-blanca .pos-ldr-ring img { display: none; }

html.fac-marca-blanca .google-spinner,
html.fac-marca-blanca .spinner-style {
    background-image: none !important;
    box-shadow: none !important;
}

/* Unifica los loaders de PÁGINA legacy (.google-spinner y .spinner-style) al estilo del nuevo
   loader: ícono central estático + anillo doble de marca girando. Override en pos-global (gana
   al legacy app.css/MiEstilo). No toca los spinner-border-sm inline de los botones. */
.google-spinner, .spinner-style {
    width: 58px !important; height: 58px !important;
    border: none !important; border-radius: 50% !important;
    background: #fff url("../icon-512.png") center / cover no-repeat !important;
    box-shadow: 0 8px 24px rgba(20,22,28,.10) !important;
    position: relative !important; animation: none !important; margin: 0 !important; overflow: visible !important;
    color: transparent !important;
}
.loader-container .google-spinner { margin: 0 0 26px !important; }
.google-spinner::before, .spinner-style::before {
    content: ""; position: absolute; inset: -9px; border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--primario, #1E88E5); border-right-color: var(--primario, #1E88E5);
    animation: posLdrSpin .8s linear infinite;
}
.google-spinner::after, .spinner-style::after {
    content: ""; position: absolute; inset: -9px; border-radius: 50%;
    border: 4px solid transparent;
    border-bottom-color: var(--secundario, #E8743B);
    animation: posLdrSpin 1.15s linear infinite reverse;
}

/* Marca + nombre de caja en el topbar.
   Marca propia: icono pequeño + wordmark "Facturita.pe" (HTML) + nombre de caja DEBAJO.
   Marca blanca: imagen del logo + nombre de caja AL COSTADO. */
.pos-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }   /* pegado a la izquierda */
.pos-brand-mark { width: 36px; height: 36px; border-radius: 9px; flex: 0 0 auto; }
.pos-brand-tx { display: flex; flex-direction: column; line-height: 1.04; }
.pos-brand-name { font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: var(--primario, #1E88E5); font-family: Fredoka, 'Segoe UI', Roboto, Arial, sans-serif; }
.pos-brand-name span { color: var(--secundario, #E8743B); }
.pos-brand-caja { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: #94a3b8; text-transform: uppercase; }
/* Marca blanca: chip de fondo blanco para que el logo del reseller resalte sobre el topbar
   (hay logos oscuros/transparentes que se pierden con los colores del tema). Exclusivo de esta
   clase (solo se usa en la rama marca blanca) — el brand Facturita (.pos-brand-mark) no cambia. */
.pos-brand-img { height: 30px; max-height: 30px; max-width: 170px; object-fit: contain; flex: 0 0 auto; background: #fff; padding: 4px 10px; border-radius: 10px; }
.pos-brand-caja-side { font-size: 13px; letter-spacing: .04em; }

/* Reloj del topbar: pegado al grupo derecho, después de la campana/íconos, antes de la empresa.
   Bloque 2 líneas: hora (bold) + fecha (pequeña). */
.topbar-clock { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.1; margin: 0 12px 0 0; white-space: nowrap; }
.topbar-clock-time { font-size: 16px; font-weight: 800; color: #1f6fb2; }
.topbar-clock-date { font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: capitalize; }
.topbar-clock .topbar-offline-tag { margin-top: 2px; }

/* =====================================================================================
   8. Modales del POS (Bootstrap .modal legacy) — restyle limpio y consistente.
   Solo POS (pos-global.css carga únicamente aquí). Cubre todos los modales sin tocar markup.
   ===================================================================================== */
.modal-backdrop.show { opacity: .25; }

/* Capa "por encima de todo" para modales que se abren SOBRE el listado de clientes
   (.pos-cli-ov usa z-index 2000; el default de Bootstrap ~1055 los dejaba debajo,
   imposibles de clickear). Aplicar la clase al .modal y su .modal-backdrop propio. */
.modal.pos-topmost { z-index: 2100; }
.modal-backdrop.pos-topmost-bd { z-index: 2090; }
.modal .modal-content {
    border: none; border-radius: 16px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(15,23,42,.28);
}
.modal .modal-header { align-items: center; padding: 14px 18px; border-bottom: 1px solid #eef1f6; background: #fff; }
.modal .modal-title { font-size: 16px; font-weight: 800; color: #1f2a3a; }
.modal .modal-header .close {
    border: none; background: #f1f4f8; color: #64748b; width: 32px; height: 32px; border-radius: 9px;
    font-size: 20px; line-height: 1; opacity: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.modal .modal-header .close:hover { background: #fee2e2; color: #d32f2f; }
.modal .modal-body { padding: 18px; }
.modal .modal-footer { padding: 12px 18px; border-top: 1px solid #eef1f6; }
.modal .modal-footer .float-right { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
/* Botones del footer */
.modal .modal-footer .btn { border-radius: 10px !important; font-weight: 700; padding: 8px 18px; }
.modal .modal-footer .btn-success, .modal .modal-footer .btnSc { background: var(--color_exito, #04AA6D); border: none; color: #fff; }
.modal .modal-footer .btn-success:hover, .modal .modal-footer .btnSc:hover { filter: brightness(.96); }
.modal .modal-footer .btn-default, .modal .modal-footer .btnDefecto { background: #fff; border: 1px solid #e3e8ef; color: #475569; }
.modal .modal-footer .btn-default:hover, .modal .modal-footer .btnDefecto:hover { background: #f1f5f9; }
/* Inputs / selects / textarea */
.modal .form-control, .modal .form-select, .modal textarea.form-control {
    border-radius: 9px; border: 1px solid #e3e8ef; font-size: 13.5px; box-shadow: none;
}
.modal .form-control:focus, .modal .form-select:focus {
    border-color: var(--primario, #1E88E5);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primario, #1E88E5) 16%, transparent);
}
.modal .col-form-label-sm, .modal .col-form-label { color: #475569; }
/* Tabs (modal Orden / Cotización) */
.modal .modal-header .nav-tabs { border: none; gap: 6px; margin: 0; }
.modal .modal-header .nav-tabs .nav-item { margin: 0; }
.modal .modal-header .nav-tabs a {
    display: inline-block; padding: 7px 16px; border-radius: 9px; font-weight: 700; font-size: 14px;
    color: #64748b; cursor: pointer; border: none !important; background: #f1f4f8;
}
.modal .modal-header .nav-tabs a:hover { background: #e7ecf3; }
.modal .modal-header .nav-tabs a.active { background: var(--primario, #1E88E5) !important; color: #fff !important; }
/* Cards de tipo de documento (modal Seleccionar) — respeta su color de fondo inline */
.modal .card-doc {
    border: 1.5px solid #e3e8ef !important; border-radius: 12px; padding: 14px 16px 16px; min-width: 130px;
    margin: 6px; cursor: pointer; text-align: center; transition: border-color .12s ease, box-shadow .12s ease, transform .1s ease;
}
.modal .card-doc:hover { border-color: color-mix(in srgb, var(--primario, #1E88E5) 45%, #fff) !important; box-shadow: 0 6px 16px rgba(16,32,64,.10); transform: translateY(-1px); }
.modal .card-doc .cont-name-serie > div:first-child { font-weight: 800; font-size: 14px; }
.modal .card-doc .cont-name-serie > div:last-child { font-size: 13px; color: #64748b; }

/* Modal "Tipo de comprobante" — selector con cards (icono + nombre + serie + check) */
.modal-dialog:has(.pos-doc-modal) { max-width: 540px; }
.pos-doc-head { border-bottom: none !important; padding-bottom: 4px !important; }
.pos-doc-head-l { display: flex; align-items: center; gap: 12px; }
.pos-doc-head-ic {
    flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
    background: color-mix(in srgb, var(--primario, #1E88E5) 12%, #fff); color: var(--primario, #1E88E5);
}
.pos-doc-head-tx { display: flex; flex-direction: column; }
.pos-doc-head-tx .modal-title { margin: 0; line-height: 1.2; }
.pos-doc-head-sub { font-size: 12.5px; color: #94a3b8; font-weight: 500; }
.pos-doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pos-doc-card {
    display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; position: relative;
    border: 1.5px solid #e6e9f0; border-radius: 14px; background: #fff; padding: 14px;
    transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.pos-doc-card:hover { border-color: color-mix(in srgb, var(--primario, #1E88E5) 40%, #fff); box-shadow: 0 4px 14px rgba(16,32,64,.07); }
.pos-doc-card-ic {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
    background: #f1f4f8; color: #64748b; transition: background .12s ease, color .12s ease;
}
.pos-doc-card-tx { display: flex; flex-direction: column; min-width: 0; }
.pos-doc-card-name { font-weight: 800; font-size: 14px; color: #1f2a3a; line-height: 1.2; }
.pos-doc-card-serie { font-size: 12px; color: #94a3b8; font-weight: 600; }
.pos-doc-card.on { border-color: var(--primario, #1E88E5); background: color-mix(in srgb, var(--primario, #1E88E5) 7%, #fff); }
.pos-doc-card.on .pos-doc-card-ic { background: var(--primario, #1E88E5); color: #fff; }
.pos-doc-card.on .pos-doc-card-name { color: var(--primario, #1E88E5); }
.pos-doc-card-check {
    position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--primario, #1E88E5); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
}
/* Switches (Mantener Pantalla / Imprimir Ticket) */
.modal .form-switch .form-check-input:checked { background-color: var(--primario, #1E88E5); border-color: var(--primario, #1E88E5); }

/* ===== Modal de Importes (editar cantidad / precio / descuento de un ítem) ===== */
.modal-dialog:has(.pos-imp) { max-width: 470px; }
/* Header: icono tag + título + subtítulo */
.pos-imp-head { border-bottom: 1px solid #eef1f6; }
.pos-imp-head-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pos-imp-head-ic {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
    background: color-mix(in srgb, var(--primario, #1E88E5) 12%, #fff); color: var(--primario, #1E88E5);
}
.pos-imp-head-tx { display: flex; flex-direction: column; min-width: 0; }
.pos-imp-head .modal-title { font-size: 15px; font-weight: 800; color: #1f2a3a; margin: 0; line-height: 1.2; }
.pos-imp-head-sub { font-size: 12px; color: #94a3b8; font-weight: 500; }
.pos-imp-name-in { border: 1px solid #e3e8ef; border-radius: 9px; height: 34px; padding: 0 10px; font-size: 14px; font-weight: 700; color: #1f2a3a; }
.pos-imp-name-in:focus { outline: none; border-color: var(--primario, #1E88E5); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primario, #1E88E5) 16%, transparent); }
.pos-imp-body { padding: 18px 20px; }
/* minmax(0, 1fr) y NO 1fr: en Grid el `1fr` equivale a minmax(auto, 1fr), o sea NO baja del
   min-content de su contenido. Un <input> tiene ancho intrinseco de ~20 caracteres, asi que la
   fila del Importe (fuente 22px) estiraba la columna y la caja se desbordaba del modal. */
.pos-imp-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 12px; }
.pos-imp-row > label { font-size: 14px; font-weight: 700; color: #475569; margin: 0; }
/* Input simple (cantidad, clave) */
.pos-imp-in { height: 42px; border: 1px solid #e3e8ef; border-radius: 10px; padding: 0 12px; font-size: 14px; color: #1f2a3a; background: #fff; width: 100%; text-align: left; }
.pos-imp-in:focus { outline: none; border-color: var(--primario, #1E88E5); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primario, #1E88E5) 16%, transparent); }
.pos-imp-in.center { text-align: center; font-weight: 800; font-size: 16px; }
/* Stepper cantidad: [−][input][+] horizontal */
.pos-imp-stepper { display: flex; align-items: center; gap: 8px; }
.pos-imp-stepper .pos-imp-in { flex: 1 1 0; width: 0; min-width: 0; }
.pos-imp-step {
    flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--primario, #1E88E5) 25%, #fff);
    background: color-mix(in srgb, var(--primario, #1E88E5) 8%, #fff); color: var(--primario, #1E88E5);
    font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    transition: background .12s ease;
}
.pos-imp-step:hover { background: color-mix(in srgb, var(--primario, #1E88E5) 18%, #fff); }
/* Campo de monto: caja con prefijo "S/" + número a la derecha */
.pos-imp-money {
    display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px;
    border: 1px solid #e3e8ef; border-radius: 10px; background: #fff;
}
.pos-imp-money:focus-within { border-color: var(--primario, #1E88E5); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primario, #1E88E5) 16%, transparent); }
.pos-imp-money.ro { background: #eef2f8; border-color: #e3e8ef; }
.pos-imp-cur { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: #94a3b8; }
.pos-imp-money-in {
    /* width:0 + flex-basis 0 → el input NO impone su ancho intrinseco (~20 chars) y solo
       ocupa el espacio que le deja la caja; sin esto la fila del Importe (22px) desbordaba. */
    flex: 1 1 0; width: 0; min-width: 0; border: none; outline: none; background: transparent;
    text-align: right; font-size: 15px; font-weight: 700; color: #1f2a3a; padding: 0;
}
.pos-imp-money.ro .pos-imp-money-in { color: #1f2a3a; }
/* Importe: caja destacada (azul de marca), editable */
.pos-imp-importe-row { margin-top: 4px; margin-bottom: 0; }
.pos-imp-importe-lbl { color: var(--primario, #1E88E5) !important; font-weight: 800 !important; }
.pos-imp-money.importe {
    height: 50px; background: color-mix(in srgb, var(--primario, #1E88E5) 8%, #fff);
    border-color: color-mix(in srgb, var(--primario, #1E88E5) 28%, #fff);
}
.pos-imp-cur.big { font-size: 16px; font-weight: 800; color: var(--primario, #1E88E5); }
.pos-imp-money-in.big { font-size: 22px; font-weight: 800; color: var(--primario, #1E88E5); }
/* Autorización */
.pos-imp-auth { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e6e9f0; }
.pos-imp-aprob { margin-top: 14px; background: #e8f5e9; border: 1px solid #81c784; border-radius: 10px; padding: 10px 12px; font-size: 13px; color: #1b5e20; font-weight: 700; }
.pos-imp-aprob i { margin-right: 4px; }
/* Footer: Aceptar (izquierda, azul) + Cancelar (derecha, ghost) */
.pos-imp-foot { display: flex !important; gap: 10px; }
.pos-imp-ok, .pos-imp-cancel { flex: 1; height: 48px; border-radius: 11px; font-weight: 700; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.pos-imp-ok { border: none; background: var(--primario, #1E88E5); color: #fff; }
.pos-imp-ok:hover { filter: brightness(.96); }
.pos-imp-ok:disabled { opacity: .7; cursor: default; }
.pos-imp-cancel { border: 1px solid #e3e8ef; background: #fff; color: #475569; }
.pos-imp-cancel:hover { background: #f1f5f9; }
/* Mensaje de error */
.modal .msjeError { color: var(--color_error, #D32F2F); font-weight: 600; font-size: 13px; padding: 4px 18px 0; }

/* =====================================================================================
   9. Listado de clientes del POS (ClientesListComponent) — limpio e intuitivo.
   Reemplaza el header naranja legacy por un encabezado claro; selección en color de marca.
   ===================================================================================== */
.pos-clist-head { padding: 6px 6px 12px; }
.pos-clist-head .input-group .form-control {
    border-radius: 10px 0 0 10px !important; border: 1px solid #e3e8ef; height: 40px; font-size: 14px; box-shadow: none;
}
.pos-clist-head .input-group .form-control:focus { border-color: var(--primario, #1E88E5); }
.pos-clist-head .input-group .btn { border-radius: 0 10px 10px 0 !important; height: 40px; }
.pos-clist-head .btn { border-radius: 10px !important; font-weight: 700; }
.pos-clist .card, .pos-clist .card-fluid {
    border: 1px solid #e6e9f0 !important; border-radius: 14px; box-shadow: none; overflow: hidden; background: #fff;
}
.pos-clist .table { margin: 0; }
.pos-clist .table thead th {
    background: #f4f6fa !important; color: #475569 !important; font-weight: 800; font-size: 12px;
    text-transform: uppercase; letter-spacing: .03em;
    border: none !important; border-bottom: 1px solid #e6e9f0 !important;
    padding: 12px 12px !important; position: sticky; top: 0; z-index: 2;
}
.pos-clist .table tbody td {
    padding: 11px 12px !important; border-top: 1px solid #f1f4f8 !important;
    font-size: 13.5px; color: #1f2a3a; vertical-align: middle;
}
.pos-clist .table tbody tr { cursor: pointer; transition: background .1s ease; }
.pos-clist .table tbody tr:hover { background: #eef3fa !important; }
.pos-clist .table tbody tr.seleccionfilatable {
    background: color-mix(in srgb, var(--primario, #1E88E5) 12%, #fff) !important;
    box-shadow: inset 3px 0 0 0 var(--primario, #1E88E5);
}

/* =====================================================================================
   10. Modal de búsqueda de CLIENTES (ClientesListComponent desktop) — tipo selector con lista.
   ===================================================================================== */
.pos-cli-ov {
    position: fixed; inset: 0; z-index: 2000; background: rgba(15,23,42,.22);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.pos-cli {
    width: 100%; max-width: 560px; max-height: 86vh; background: #fff; border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15,23,42,.30); display: flex; flex-direction: column; overflow: hidden;
    animation: posLdrPop .28s ease both;
}
/* Header */
.pos-cli-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; }
.pos-cli-head-l { display: flex; align-items: center; gap: 12px; }
.pos-cli-head-ic {
    flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 19px;
    background: color-mix(in srgb, var(--primario, #1E88E5) 12%, #fff); color: var(--primario, #1E88E5);
}
.pos-cli-head-tx { display: flex; flex-direction: column; }
.pos-cli-head-tx h5 { margin: 0; font-size: 17px; font-weight: 800; color: #1f2a3a; line-height: 1.2; }
.pos-cli-head-tx span { font-size: 12.5px; color: #94a3b8; font-weight: 500; }
.pos-cli-x { width: 34px; height: 34px; border-radius: 10px; border: 1px solid #e3e8ef; background: #fff; color: #64748b; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pos-cli-x:hover { background: #fee2e2; color: #d32f2f; border-color: #fecaca; }
/* Search + Nuevo */
.pos-cli-search { display: flex; gap: 10px; padding: 6px 18px 14px; border-bottom: 1px solid #eef1f6; }
.pos-cli-search-box { flex: 1 1 auto; display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 14px; border: 1px solid #e3e8ef; border-radius: 12px; background: #f4f6fa; }
.pos-cli-search-box:focus-within { border-color: var(--primario, #1E88E5); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primario, #1E88E5) 16%, transparent); }
.pos-cli-search-box i { color: #94a3b8; }
.pos-cli-search-box input { flex: 1; border: none; outline: none; background: transparent; font-size: 14.5px; color: #1e293b; }
.pos-cli-new { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 18px; border: none; border-radius: 12px; background: var(--primario, #1E88E5); color: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.pos-cli-new:hover { background: var(--hoverprimario, #1565C0); }
/* Lista */
.pos-cli-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 7px; }
.pos-cli-row {
    display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; cursor: pointer;
    border: 1px solid #e6edf6; border-radius: 12px; background: #f5f9ff; padding: 8px 11px;
    transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.pos-cli-row:hover { border-color: color-mix(in srgb, var(--primario, #1E88E5) 35%, #fff); box-shadow: 0 4px 14px rgba(16,32,64,.08); }
.pos-cli-row-ev { background: #fff; }
.pos-cli-av {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--primario, #1E88E5); color: #fff; font-weight: 800; font-size: 16px;
}
.pos-cli-av.ev { background: #eef2f7; color: #94a3b8; font-size: 16px; }
.pos-cli-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pos-cli-name { font-size: 14px; font-weight: 800; color: #1f2a3a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-cli-sub { font-size: 12.5px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-cli-sub strong { color: #475569; font-weight: 700; }
.pos-cli-sub i { color: #94a3b8; margin-right: 2px; }
.pos-cli-dot { margin: 0 6px; color: #cbd5e1; }
.pos-cli-addr { font-size: 12px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-cli-addr i { margin-right: 3px; }
/* Aviso cuando el cliente no tiene dirección (obligatoria en factura electrónica) */
.pos-cli-addr.none { color: var(--secundario, #E8743B); font-weight: 600; cursor: pointer; }
.pos-cli-addr.none:hover { text-decoration: underline; }
.pos-cli-acts { flex: 0 0 auto; display: flex; flex-direction: row; gap: 5px; }
.pos-cli-act {
    width: 32px; height: 30px; border-radius: 8px; border: 1px solid #e3e8ef; background: #fff; color: #64748b; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px; transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.pos-cli-act:hover { background: color-mix(in srgb, var(--primario, #1E88E5) 8%, #fff); color: var(--primario, #1E88E5); border-color: color-mix(in srgb, var(--primario, #1E88E5) 35%, #fff); }
.pos-cli-act.star { color: var(--primario, #1E88E5); border-color: color-mix(in srgb, var(--primario, #1E88E5) 30%, #fff); background: color-mix(in srgb, var(--primario, #1E88E5) 8%, #fff); }
.pos-cli-act.del:hover { background: #fef2f2; color: #d32f2f; border-color: #fecaca; }
.pos-cli-loading { display: flex; align-items: center; justify-content: center; padding: 30px 0; }
.pos-cli-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 0; color: #94a3b8; font-weight: 600; font-size: 13.5px; }
.pos-cli-empty i { font-size: 24px; }

/* --- 3 vistas internas del modal de clientes (búsqueda / editar-nuevo / puntos) --- */
.pos-cli-pane { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.pos-cli-back {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; border: 1px solid #e3e8ef; background: #fff; color: #475569;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.pos-cli-back:hover { background: color-mix(in srgb, var(--primario, #1E88E5) 8%, #fff); color: var(--primario, #1E88E5); border-color: color-mix(in srgb, var(--primario, #1E88E5) 35%, #fff); }
.pos-cli-embed { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 18px 16px; }
/* Neutraliza el position:fixed del modal embebido (ModalCliente / ModalInfoPuntos) para que se vea inline */
.pos-cli-embed .modal { position: static !important; z-index: auto !important; overflow: visible !important; width: 100% !important; height: auto !important; padding: 0 !important; background: transparent !important; }
.pos-cli-embed .modal-dialog { margin: 0 !important; max-width: 100% !important; width: 100% !important; }
.pos-cli-embed .modal-content { border: none !important; box-shadow: none !important; border-radius: 0 !important; background: transparent !important; }
.pos-cli-embed .modal-backdrop { display: none !important; }
.pos-cli-embed .modal-header { display: none !important; }   /* el header del modal de clientes ya provee título + volver */
/* Rediseño 2026-08-07 del ModalCliente: ya no usa .modal-content/.modal-header/.modal-body/
   .modal-footer sino la familia `.clif-*` (scoped). Sin estas equivalencias el componente
   embebido dibujaba SU header sobre el del modal de clientes (título duplicado) y una card
   con sombra dentro de otra card. Van con !important porque el bundle de CSS scoped se carga
   DESPUÉS de esta hoja y empataría en especificidad. */
.pos-cli-embed .clif-dialog { margin: 0 !important; max-width: 100% !important; width: 100% !important; }
.pos-cli-embed .clif-card { box-shadow: none !important; border-radius: 0 !important; max-height: none !important; background: transparent !important; }
.pos-cli-embed .clif-head { display: none !important; }      /* idem: el título + volver los pone el padre */
.pos-cli-embed .clif-body { padding: 4px 2px !important; overflow: visible !important; }
.pos-cli-embed .clif-foot { padding: 12px 2px 4px !important; border: none !important; background: transparent !important; }
.pos-cli-embed .modal-body { padding: 4px 2px; }
.pos-cli-embed .modal-footer { padding: 12px 2px 4px; border: none; }

/* --- Header derecha (Editar + cerrar) --- */
.pos-cli-head-r { display: flex; align-items: center; gap: 8px; }
.pos-cli-editbtn {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px;
    border: 1px solid #e3e8ef; background: #fff; color: #475569; font-weight: 700; font-size: 13px; cursor: pointer;
}
.pos-cli-editbtn:hover { background: color-mix(in srgb, var(--primario, #1E88E5) 8%, #fff); color: var(--primario, #1E88E5); border-color: color-mix(in srgb, var(--primario, #1E88E5) 35%, #fff); }

/* --- VISTA PUNTOS (panel rico, imagen 2) --- */
.pos-cli-pts { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px 16px 14px; }
/* Tarjeta degradada */
.pos-cli-pts-card {
    position: relative; overflow: hidden; border-radius: 16px; padding: 13px 16px; color: #fff;
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 60%, #7C7CF5 100%);
    box-shadow: 0 12px 26px rgba(79,70,229,.28);
}
.pos-cli-pts-star { position: absolute; top: 4px; right: 12px; font-size: 80px; color: #fff; opacity: .14; pointer-events: none; }
.pos-cli-pts-top { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.pos-cli-pts-av {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.22); color: #fff; font-weight: 800; font-size: 16px;
}
.pos-cli-pts-idtx { flex: 1 1 auto; min-width: 0; }
.pos-cli-pts-name { font-weight: 800; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-cli-pts-doc { font-size: 12px; opacity: .85; }
.pos-cli-pts-tier {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700;
    background: rgba(255,255,255,.22); padding: 3px 10px; border-radius: 999px;
}
.pos-cli-pts-tier i { font-size: 7px; }
.pos-cli-pts-bot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 10px; position: relative; z-index: 1; }
.pos-cli-pts-disp { display: flex; flex-direction: column; }
.pos-cli-pts-lbl { font-size: 10.5px; letter-spacing: .08em; opacity: .85; font-weight: 700; }
.pos-cli-pts-num { font-size: 30px; font-weight: 800; line-height: 1.05; }
.pos-cli-pts-eq { text-align: right; line-height: 1.2; }
.pos-cli-pts-eq span { display: block; font-size: 10.5px; opacity: .85; }
.pos-cli-pts-eq strong { font-size: 16px; font-weight: 800; }
.pos-cli-pts-valid { position: relative; z-index: 1; margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.92); }
.pos-cli-pts-valid i { opacity: .85; }
/* CTA */
.pos-cli-pts-cta { display: flex; gap: 8px; margin: 10px 0 4px; }
.pos-cli-pts-canjear {
    flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 11px; border: none;
    background: var(--primario, #1E88E5); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
}
.pos-cli-pts-canjear:hover { background: var(--hoverprimario, #1565C0); }
.pos-cli-pts-usar {
    flex: 0 0 auto; padding: 0 18px; height: 42px; border-radius: 11px; border: 1px solid #e3e8ef; background: #fff;
    color: #334155; font-weight: 700; font-size: 14px; cursor: pointer;
}
.pos-cli-pts-usar:hover { background: #f1f5f9; }
/* Secciones */
.pos-cli-pts-sec { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: #94a3b8; margin: 11px 2px 6px; }
/* Filas de contacto */
.pos-cli-pts-row { display: flex; align-items: center; gap: 10px; border: 1px solid #eef1f6; border-radius: 11px; padding: 8px 11px; margin-bottom: 6px; }
.pos-cli-pts-rico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.pos-cli-pts-rico.tel { background: color-mix(in srgb, var(--primario, #1E88E5) 12%, #fff); color: var(--primario, #1E88E5); }
.pos-cli-pts-rico.dir { background: #eef2f7; color: #64748b; }
.pos-cli-pts-rtx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pos-cli-pts-rtx span { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: #94a3b8; }
.pos-cli-pts-rtx strong { font-size: 14px; font-weight: 700; color: #1f2a3a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-cli-pts-rbtn { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e3e8ef; background: #fff; color: #475569; text-decoration: none; }
.pos-cli-pts-rbtn:hover { background: #f1f5f9; }
.pos-cli-pts-rbtn.wa { background: #25D366; border-color: #25D366; color: #fff; }
.pos-cli-pts-rbtn.wa:hover { filter: brightness(.95); }
/* Banner ratio */
.pos-cli-pts-info { display: flex; align-items: flex-start; gap: 8px; background: #eff4fb; border: 1px solid #dde7f4; border-radius: 11px; padding: 8px 11px; margin: 2px 0; font-size: 12.5px; color: #475569; }
.pos-cli-pts-info i { color: var(--primario, #1E88E5); margin-top: 2px; }
.pos-cli-pts-info strong { color: #1f2a3a; }
/* Movimientos */
.pos-cli-pts-mov { display: flex; align-items: center; gap: 10px; border: 1px solid #eef1f6; border-radius: 11px; padding: 7px 11px; margin-bottom: 6px; }
.pos-cli-pts-movic { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.pos-cli-pts-movic.up { background: #e7f7ee; color: #04AA6D; }
.pos-cli-pts-movic.down { background: #fdecec; color: #D32F2F; }
.pos-cli-pts-movtx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pos-cli-pts-movtx strong { font-size: 13.5px; font-weight: 700; color: #1f2a3a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-cli-pts-movtx span { font-size: 11.5px; color: #94a3b8; }
.pos-cli-pts-movpts { flex: 0 0 auto; font-size: 13.5px; font-weight: 800; }
.pos-cli-pts-movpts.up { color: #04AA6D; }
.pos-cli-pts-movpts.down { color: #D32F2F; }

/* Boton "Ver movimientos de puntos" (reemplaza la lista de movimientos recientes) */
.pos-cli-pts-verhist {
    display: flex; align-items: center; gap: 10px; width: 100%;
    border: 1px solid #dde7f4; border-radius: 11px; background: #eff4fb;
    padding: 11px 13px; margin-top: 11px; cursor: pointer;
    font-size: 13.5px; font-weight: 700; color: #1f2a3a; transition: all .12s;
}
.pos-cli-pts-verhist i:first-child { color: var(--primario, #1E88E5); font-size: 15px; }
.pos-cli-pts-verhist span { flex: 1 1 auto; text-align: left; }
.pos-cli-pts-verhist i:last-child { color: #94a3b8; font-size: 12px; }
.pos-cli-pts-verhist:hover { background: #e2edfb; border-color: var(--primario, #1E88E5); }

/* Vista 3 — movimientos de puntos (tabla completa, paridad Admin) */
.pos-cli-ptsmov { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; padding: 12px 14px; overflow: hidden; }
.pos-cli-ptsmov-tots { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pos-cli-ptsmov-tot { flex: 1 1 0; min-width: 84px; border: 1px solid #eef1f6; border-radius: 11px; padding: 7px 10px; text-align: center; }
.pos-cli-ptsmov-tot span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; margin-bottom: 2px; }
.pos-cli-ptsmov-tot strong { font-size: 16px; font-weight: 800; color: #1f2a3a; }
.pos-cli-ptsmov-tot.up { background: #f2fbf6; border-color: #cdeeda; }
.pos-cli-ptsmov-tot.up strong { color: #04AA6D; }
.pos-cli-ptsmov-tot.down { background: #fef5ef; border-color: #f7d9c4; }
.pos-cli-ptsmov-tot.down strong { color: #CF5E27; }
.pos-cli-ptsmov-tot.disp { background: #eff4fb; border-color: #dde7f4; }
.pos-cli-ptsmov-tot.disp strong { color: var(--primario, #1E88E5); }
.pos-cli-ptsmov-tblwrap { flex: 1 1 auto; min-height: 0; overflow-y: auto; border: 1px solid #eef1f6; border-radius: 11px; }
.pos-cli-ptsmov-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.pos-cli-ptsmov-tbl thead th {
    position: sticky; top: 0; z-index: 2; background: #f7fafd; color: #64748b;
    font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    padding: 8px 10px; text-align: left; border-bottom: 1px solid #e7ecf2;
}
.pos-cli-ptsmov-tbl thead th.up { background: #04AA6D; color: #fff; text-align: center; }
.pos-cli-ptsmov-tbl thead th.down { background: #E8743B; color: #fff; text-align: center; }
.pos-cli-ptsmov-tbl thead th.num { text-align: right; }
.pos-cli-ptsmov-tbl tbody td { padding: 7px 10px; border-bottom: 1px solid #f1f4f9; color: #334155; }
.pos-cli-ptsmov-tbl tbody td.doc { font-weight: 600; color: #1f2a3a; }
.pos-cli-ptsmov-tbl tbody td.up, .pos-cli-ptsmov-tbl tbody td.down { text-align: center; }
.pos-cli-ptsmov-tbl tbody td.up.hit { background: #e7f7ee; color: #04794e; font-weight: 700; }
.pos-cli-ptsmov-tbl tbody td.down.hit { background: #fdeee2; color: #b4501f; font-weight: 700; }
.pos-cli-ptsmov-tbl tbody td.num { text-align: right; font-weight: 600; }
.pos-cli-ptsmov-tbl tfoot th { padding: 8px 10px; border-top: 2px solid #e7ecf2; background: #f7fafd; font-size: 12.5px; color: #1f2a3a; position: sticky; bottom: 0; }
.pos-cli-ptsmov-tbl tfoot th.up { text-align: center; color: #04794e; }
.pos-cli-ptsmov-tbl tfoot th.down { text-align: center; color: #b4501f; }

/* =====================================================================================
   11. Modal de CUMPLEAÑOS (ModalViewNotificacionesComponent) — diseño limpio.
   ===================================================================================== */
.modal-dialog.pos-cmp-dialog { max-width: 760px; }
.pos-cmp { border-radius: 18px !important; overflow: hidden; border: none !important; }
/* Header degradado */
.pos-cmp-head {
    display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
    background: linear-gradient(135deg, var(--primario, #1E88E5) 0%, #6366F1 100%); color: #fff;
}
.pos-cmp-head-l { display: flex; align-items: center; gap: 12px; }
.pos-cmp-head-ic { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; }
.pos-cmp-head-tt { font-size: 20px; font-weight: 800; }
.pos-cmp-x { width: 36px; height: 36px; border-radius: 10px; border: none; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.pos-cmp-x:hover { background: rgba(255,255,255,.3); }
/* Toolbar */
.pos-cmp-toolbar { display: flex; align-items: center; gap: 14px; padding: 16px 20px 10px; flex-wrap: wrap; }
.pos-cmp-nav { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.pos-cmp-mes { font-size: 16px; font-weight: 800; color: #1f2a3a; letter-spacing: .02em; margin-right: 4px; }
.pos-cmp-navbtn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid #e3e8ef; background: #fff; color: #475569; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pos-cmp-navbtn:hover { background: color-mix(in srgb, var(--primario, #1E88E5) 8%, #fff); color: var(--primario, #1E88E5); border-color: color-mix(in srgb, var(--primario, #1E88E5) 35%, #fff); }
.pos-cmp-dia { display: inline-flex; align-items: center; gap: 7px; background: #eef2f8; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; color: #475569; }
.pos-cmp-dia b { background: var(--primario, #1E88E5); color: #fff; min-width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.pos-cmp-search { flex: 1 1 auto; min-width: 220px; display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px; border: 1px solid #e3e8ef; border-radius: 12px; background: #f4f6fa; }
.pos-cmp-search:focus-within { border-color: var(--primario, #1E88E5); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primario, #1E88E5) 16%, transparent); }
.pos-cmp-search i { color: #94a3b8; }
.pos-cmp-search input { flex: 1; border: none; outline: none; background: transparent; font-size: 14px; color: #1e293b; }
/* Error */
.pos-cmp-error { margin: 0 20px; background: #fef3e6; border: 1px solid #f6c98a; color: #9a5b09; border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.pos-cmp-error i { margin-right: 5px; color: #E8743B; }
/* Tabla */
.pos-cmp-body { padding: 6px 20px 4px; max-height: 56vh; overflow-y: auto; }
.pos-cmp-table { width: 100%; border-collapse: collapse; }
.pos-cmp-table thead th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #94a3b8; padding: 8px 12px; background: #f8fafc; border-bottom: 1px solid #eef1f6; }
.pos-cmp-table thead th:first-child { border-radius: 10px 0 0 10px; }
.pos-cmp-table thead th:last-child { border-radius: 0 10px 10px 0; }
.pos-cmp-table th.c, .pos-cmp-table td.c { text-align: center; }
.pos-cmp-table tbody td { padding: 11px 12px; border-bottom: 1px solid #f1f4f8; vertical-align: middle; font-size: 13.5px; color: #1f2a3a; }
.pos-cmp-name { display: flex; align-items: center; gap: 11px; }
.pos-cmp-av { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px; }
.pos-cmp-nametx { display: flex; flex-direction: column; min-width: 0; }
.pos-cmp-nametx strong { font-size: 14px; font-weight: 800; color: #1f2a3a; }
.pos-cmp-date { font-size: 12px; color: var(--secundario, #E8743B); font-weight: 600; }
.pos-cmp-date i { margin-right: 3px; }
.pos-cmp-apo { color: #64748b; }
.pos-cmp-edad { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 8px; background: color-mix(in srgb, var(--primario, #1E88E5) 12%, #fff); color: var(--primario, #1E88E5); font-weight: 800; font-size: 13px; }
.pos-cmp-tel { font-weight: 700; color: #1f2a3a; }
.pos-cmp-pick { width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--color_exito, #04AA6D); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.pos-cmp-pick:hover { filter: brightness(.95); }
.pos-cmp-loading { display: flex; align-items: center; justify-content: center; padding: 36px 0; }
.pos-cmp-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 0; color: #94a3b8; font-weight: 600; font-size: 13.5px; }
.pos-cmp-empty i { font-size: 26px; }
/* Footer */
.pos-cmp-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 1px solid #eef1f6; }
.pos-cmp-count { font-size: 13px; font-weight: 700; color: #64748b; }
.pos-cmp-close { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 18px; border-radius: 11px; border: 1px solid #e3e8ef; background: #fff; color: #475569; font-weight: 700; font-size: 14px; cursor: pointer; }
.pos-cmp-close:hover { background: #f1f5f9; }

/* =====================================================================================
   SALÓN / MAPA DE MESAS — rediseño (lienzo con grilla + mesas con forma/color/sillas +
   modo diseño con arrastre y configuración). Reemplaza los botones .mlibre/.mocupada.
   ===================================================================================== */
.pos-salon { padding: 12px; height: 100%; display: flex; flex-direction: column; min-height: 0; box-sizing: border-box; }
.pos-salon-head {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 10px;
}
.pos-salon-head-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pos-salon-h1 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: #13151b; }
.pos-salon-hint { font-size: 12px; color: #6b7280; font-weight: 600; }
.pos-salon-head-r { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pos-salon-count { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 11px; background: #fff; border: 1px solid #e3e8ef; font-weight: 700; font-size: 12.5px; color: #1f2a3a; }
.pos-salon-count .dot { width: 9px; height: 9px; border-radius: 3px; }
.pos-salon-count.libre .dot { background: #16A34A; }
.pos-salon-count.ocupada .dot { background: #DC2626; }
.pos-salon-count.cobrar .dot { background: #D9920A; }
.pos-salon-mode { height: 38px; padding: 0 15px; border-radius: 11px; cursor: pointer; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #1f2a3a; border: 1.5px solid #e3e8ef; transition: background .14s ease, color .14s ease, border-color .14s ease; }
.pos-salon-mode.on { background: var(--primario, #1E88E5); color: #fff; border-color: var(--primario, #1E88E5); }
.pos-salon-snap { height: 38px; padding: 0 13px; border-radius: 11px; cursor: pointer; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #1f2a3a; border: 1.5px solid #e3e8ef; transition: background .14s ease, color .14s ease, border-color .14s ease; }
.pos-salon-snap.on { background: color-mix(in srgb, var(--primario, #1E88E5) 12%, #fff); color: var(--primario, #1E88E5); border-color: var(--primario, #1E88E5); }
.pos-salon-new { height: 38px; padding: 0 15px; border-radius: 11px; cursor: pointer; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; background: var(--color_exito, #04AA6D); color: #fff; border: none; }
.pos-salon-new:hover { filter: brightness(.96); }
/* Tarea 3 "Mis mesas" — mismo look que .pos-salon-mode (solo aparece con operador PIN activo). */
.pos-salon-mineflt { height: 38px; padding: 0 13px; border-radius: 11px; cursor: pointer; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #1f2a3a; border: 1.5px solid #e3e8ef; transition: background .14s ease, color .14s ease, border-color .14s ease; }
.pos-salon-mineflt.on { background: var(--primario, #1E88E5); color: #fff; border-color: var(--primario, #1E88E5); }
.pos-salon-acts { position: relative; }
.pos-salon-actbtn { height: 38px; width: 40px; border-radius: 11px; border: 1.5px solid #e3e8ef; background: #fff; color: #475569; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pos-salon-actbtn:hover { background: #f1f5f9; }
.pos-salon-actmenu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; box-shadow: 0 12px 30px rgba(8,30,60,.16); min-width: 170px; }
.pos-salon-actmenu li { padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: #1f2a3a; cursor: pointer; }
.pos-salon-actmenu li:hover { background: #f1f5f9; }

.pos-salon-zones { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; padding: 5px; flex-shrink: 0; }
.pos-salon-zone { flex: none; white-space: nowrap; cursor: pointer; font-weight: 700; font-size: 13px; height: 40px; padding: 0 16px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #1f2a3a; border: 1.5px solid #e3e8ef; }
.pos-salon-zone.on { background: var(--primario, #1E88E5); color: #fff; border-color: var(--primario, #1E88E5); }
.pos-salon-zone .pill { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #eef2f7; color: #6b7280; }
.pos-salon-zone.on .pill { background: rgba(255,255,255,.22); color: #fff; }

.pos-salon-floor {
    position: relative;
    flex: 1 1 auto;        /* toma el alto RESTANTE (después de header + zonas) */
    min-height: 0;         /* clave en flex para que overflow:auto scrollee adentro */
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e3e8ef;
   /* background-image: radial-gradient(#e3e8ef 1px, transparent 1px);
    background-size: 26px 26px;*/
    overflow: auto;
    transition: border-color .15s ease;
}
.pos-salon-floor.design { border-color: var(--primario, #1E88E5); 
    background-image: radial-gradient(color-mix(in srgb, var(--primario, #1E88E5) 35%, transparent) 1px, transparent 1px); }
.pos-salon-banner { position: absolute; top: 12px; left: 12px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 11px; background: var(--primario, #1E88E5); color: #fff; font-weight: 800; font-size: 12px; box-shadow: 0 8px 22px rgba(8,30,60,.2); }

.pos-salon-table { position: absolute; border: 2px solid; background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px; touch-action: none; user-select: none; transition: box-shadow .12s ease, filter .12s ease; }
.pos-salon-table:hover { filter: brightness(1.02); box-shadow: 0 6px 16px rgba(16,32,64,.12); }
.pos-salon-floor.design .pos-salon-table { border-style: dashed; cursor: grab; }
.pos-salon-table.dragging { cursor: grabbing; box-shadow: 0 12px 28px rgba(16,32,64,.22); z-index: 10; }
.pos-salon-table .move { position: absolute; top: 6px; left: 8px; color: #94a3b8; font-size: 12px; }
.pos-salon-table .nm { font-weight: 800; font-size: 15px; white-space: nowrap; color: #13151b; }
.pos-salon-table .stt { font-size: 11px; font-weight: 700; }
.pos-salon-table .tot { font-weight: 800; font-size: 13px; color: #13151b; }
.pos-salon-table .seats { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: #6b7280; }

/* TELÉFONO: grilla responsiva de mesas (reemplaza el lienzo libre del escritorio).
   Fluye en columnas segun el ancho; nada de posiciones absolutas -> no desborda. */
.pos-salon-grid {
    flex: 1 1 auto; min-height: 0; overflow-y: auto;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px; padding: 4px 2px 14px; align-content: start;
}
.pos-salon-mcard {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 92px; padding: 12px 10px; border-radius: 16px; border: 1.5px solid #e3e8ef;
    background: #fff; cursor: pointer; text-align: center; box-shadow: 0 1px 3px rgba(16,32,64,.06);
    transition: transform .12s ease;
}
.pos-salon-mcard:active { transform: scale(.96); }
.pos-salon-mcard .nm { font-weight: 800; font-size: 15px; color: #13151b; line-height: 1.2; }
.pos-salon-mcard .stt { font-size: 12px; font-weight: 700; }
.pos-salon-mcard .seats { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #6b7280; }
.pos-salon-mcard.st-libre { border-color: #16A34A80; background: #16A34A0f; }
.pos-salon-mcard.st-libre .stt { color: #16A34A; }
.pos-salon-mcard.st-ocupada { border-color: #DC262680; background: #DC26260f; }
.pos-salon-mcard.st-ocupada .stt { color: #DC2626; }
.pos-salon-mcard.st-cobrar { border-color: #D9920A80; background: #D9920A0f; }
.pos-salon-mcard.st-cobrar .stt { color: #D9920A; }

/* Tarea 3 "Mis mesas": destacado de la mesa cuya orden abierta es del operador logueado por
   PIN. Se SUMA al color por estado (libre/ocupada/cobrar de arriba) via box-shadow en vez de
   pisar el border-color, para no romper ese codigo de colores ya existente. */
.pos-salon-mcard.mine, .pos-salon-table.mine {
    box-shadow: 0 0 0 2px var(--primario, #1E88E5), 0 1px 3px rgba(16,32,64,.06);
}
.mine-badge {
    position: absolute; top: -8px; right: -6px;
    display: inline-flex; align-items: center;
    font-size: 10px; font-weight: 800; letter-spacing: .02em;
    color: #fff; background: var(--primario, #1E88E5);
    padding: 2px 8px; border-radius: 999px;
    box-shadow: 0 2px 6px rgba(16,32,64,.25);
    pointer-events: none;
}

/* TELÉFONO: el scroll horizontal de las pestañas de salón dejaba la barra pegada al
   borde y recortaba el bajo de los chips. Espacio extra abajo para que respiren. */
@media (max-width: 768px) {
    .pos-salon-zones { padding: 5px 4px 12px; margin-bottom: 8px; }
}

/* Modal configurar mesa */
.pos-salon-cfg-bg { position: fixed; inset: 0; z-index: 1200; background: rgba(8,11,16,.5); display: flex; align-items: center; justify-content: center; padding: 24px; }
.pos-salon-cfg { width: 400px; max-width: 100%; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.4); }
.pos-salon-cfg-h { display: flex; align-items: center; gap: 11px; padding: 18px 20px 14px; }
.pos-salon-cfg-h .ic { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--primario, #1E88E5) 14%, #fff); color: var(--primario, #1E88E5); display: grid; place-items: center; }
.pos-salon-cfg-h h3 { margin: 0; font-size: 16px; font-weight: 800; color: #13151b; }
.pos-salon-cfg-h p { margin: 0; font-size: 12px; color: #6b7280; font-weight: 600; }
.pos-salon-cfg-h .x { margin-left: auto; width: 32px; height: 32px; border-radius: 9px; border: 1px solid #e3e8ef; background: #fff; color: #6b7280; cursor: pointer; display: grid; place-items: center; }
.pos-salon-cfg-b { padding: 0 20px 18px; display: flex; flex-direction: column; gap: 16px; }
.pos-salon-cfg-b .lbl { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; margin-bottom: 8px; }
.pos-salon-cfg-b .row { display: flex; align-items: center; justify-content: space-between; }
.pos-salon-cfg-b .row .lbl { margin-bottom: 0; }
.pos-salon-cfg-b .shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pos-salon-cfg-b .shape { height: 64px; border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 11px; background: #f4f6fa; color: #1f2a3a; border: 1.5px solid #e3e8ef; }
.pos-salon-cfg-b .shape.on { background: color-mix(in srgb, var(--primario, #1E88E5) 12%, #fff); color: var(--primario, #1E88E5); border-color: var(--primario, #1E88E5); }
.pos-salon-cfg-b .shape .g { border: 2.5px solid currentColor; }
.pos-salon-cfg-b .shape .g.round { width: 24px; height: 24px; border-radius: 999px; }
.pos-salon-cfg-b .shape .g.square { width: 24px; height: 24px; border-radius: 7px; }
.pos-salon-cfg-b .shape .g.rect { width: 32px; height: 20px; border-radius: 6px; }
.pos-salon-cfg-b .pos-salon-cfg-name { width: 100%; height: 44px; border: 1.5px solid #e3e8ef; border-radius: 11px; padding: 0 13px; font-size: 14px; font-weight: 600; color: #1f2a3a; background: #fff; box-sizing: border-box; }
.pos-salon-cfg-b .pos-salon-cfg-name:focus { outline: none; border-color: var(--primario, #1E88E5); }
.pos-salon-cfg-b .aligns { display: grid; grid-template-columns: 1fr; gap: 8px; }
.pos-salon-cfg-b .align { height: 46px; border-radius: 11px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 13px; background: #f4f6fa; color: #1f2a3a; border: 1.5px solid #e3e8ef; }
.pos-salon-cfg-b .align:hover { background: color-mix(in srgb, var(--primario, #1E88E5) 10%, #fff); color: var(--primario, #1E88E5); border-color: var(--primario, #1E88E5); }
.pos-salon-cfg-b .stepper { display: flex; align-items: center; background: #f4f6fa; border: 1px solid #e3e8ef; border-radius: 11px; overflow: hidden; }
.pos-salon-cfg-b .stepper button { width: 42px; height: 42px; border: none; background: transparent; cursor: pointer; font-size: 20px; font-weight: 700; color: #6b7280; }
.pos-salon-cfg-b .stepper .v { min-width: 48px; text-align: center; font-weight: 800; font-size: 19px; color: #13151b; }
.pos-salon-cfg-b .done { height: 50px; border-radius: 13px; border: none; cursor: pointer; background: var(--primario, #1E88E5); color: #fff; font-weight: 800; font-size: 15px; }
.pos-salon-cfg-b .done:hover { filter: brightness(.97); }

/* =====================================================================================
   ASIGNAR MOZO — selector de mozo (header con ícono + grilla de cards con avatar de color)
   ===================================================================================== */
.pos-mozo-dialog { max-width: 560px; }
.pos-mozo { border-radius: 18px !important; overflow: hidden; border: none !important; }
.pos-mozo-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; }
.pos-mozo-head-ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px; background: color-mix(in srgb, var(--primario, #1E88E5) 12%, #fff); color: var(--primario, #1E88E5); display: grid; place-items: center; font-size: 18px; }
.pos-mozo-head-tx { flex: 1 1 auto; min-width: 0; }
.pos-mozo-head-tx h3 { margin: 0; font-size: 18px; font-weight: 800; color: #13151b; }
.pos-mozo-head-tx p { margin: 2px 0 0; font-size: 12.5px; color: #6b7280; font-weight: 600; }
.pos-mozo-x { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; border: 1px solid #e3e8ef; background: #fff; color: #64748b; cursor: pointer; display: grid; place-items: center; font-size: 15px; }
.pos-mozo-x:hover { background: #f1f5f9; }
.pos-mozo-body { padding: 4px 20px 20px; max-height: 62vh; overflow-y: auto; }
.pos-mozo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pos-mozo-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid #eef1f6; background: #f7f9fc; cursor: pointer; text-align: left; transition: border-color .12s ease, box-shadow .12s ease, background .12s ease; }
.pos-mozo-card:hover { background: #fff; border-color: color-mix(in srgb, var(--primario, #1E88E5) 35%, #fff); box-shadow: 0 4px 14px rgba(16,32,64,.08); }
.pos-mozo-av { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 800; }
.pos-mozo-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pos-mozo-nm { font-size: 15px; font-weight: 800; color: #13151b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-mozo-st { font-size: 12px; font-weight: 600; color: #16A34A; }
.pos-mozo-chev { flex: 0 0 auto; color: #cbd5e1; font-size: 18px; }
.pos-mozo-loading { display: flex; justify-content: center; padding: 32px 0; }
.pos-mozo-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 0; color: #94a3b8; font-size: 13.5px; font-weight: 600; }
.pos-mozo-empty i { font-size: 28px; }
.pos-mozo-error { margin: 0 20px 16px; background: #fef3e6; border: 1px solid #f6c98a; color: #9a5b09; border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
@media (max-width: 560px) {
    .pos-mozo-grid { grid-template-columns: 1fr; }
}

/* Chip de carga incremental del catalogo en segundo plano (perf web).
   No bloquea la UI; avisa que el catalogo sigue cargando y se apaga al terminar. */
.pos-bgload-chip {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #16203a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .28);
    animation: pos-bgload-in .18s ease-out;
}
.pos-bgload-chip .spinner-border { width: 15px; height: 15px; border-width: 2px; }
@keyframes pos-bgload-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =====================================================================================
   Campo de CLAVE que el navegador NO debe guardar (claves de supervisor / canje).
   Chrome IGNORA autocomplete="off" en type="password" (heuristica de su gestor de
   contrasenas) → se usa un input de TEXTO enmascarado por CSS: el gestor no lo reconoce
   como credencial, asi que ni autocompleta ni ofrece guardarla. Visualmente identico.
   Soporte: Chromium (Chrome/Edge/Brave/Opera), Safari y Firefox 125+.
   NOTA: NO usar en el login del cajero — ahi guardar la clave propia es deseable.
   ===================================================================================== */
.pos-clave-nosave {
    -webkit-text-security: disc;
    text-security: disc;
    letter-spacing: 2px;
}

.pos-clave-nosave::placeholder {
    -webkit-text-security: none;
    text-security: none;
    letter-spacing: normal;
}

/* =====================================================================================
   Aviso "hay una version nueva" (NuevaVersionBanner) + chip de actualizacion del
   escritorio (ActualizacionChip)  —  Plan 16 F1 / F2.

   Los dos son NO BLOQUEANTES y viven abajo a la derecha, misma familia visual que
   .pos-bgload-chip: el cajero puede estar cobrando y nada les puede robar el foco.
   El de version usa el AZUL de marca; el de escritorio, la tinta.
   ===================================================================================== */
.pos-nueva-version,
.pos-upd-chip {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px 9px 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .28);
    animation: pos-bgload-in .18s ease-out;
    max-width: min(92vw, 520px);
}

.pos-nueva-version { background: #2272D9; }
.pos-upd-chip      { background: #16203a; }

.pos-nueva-version > .fa,
.pos-upd-chip > .fa { font-size: 15px; opacity: .95; }

.pos-nv-txt, .pos-upd-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pos-nv-num, .pos-upd-num {
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: 12px;
    font-weight: 700;
}

.pos-nv-btn, .pos-upd-btn {
    border: 0;
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 12.5px;
    font-weight: 700;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.pos-nv-btn { color: #1A5FC0; }
.pos-upd-btn { color: #16203a; }
.pos-nv-btn:hover, .pos-upd-btn:hover { background: #eef4ff; }
.pos-upd-btn:disabled { opacity: .6; cursor: default; }

.pos-nv-x, .pos-upd-x {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .8);
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
}

.pos-nv-x:hover, .pos-upd-x:hover { color: #fff; }

/* En pantallas chicas (tablet de mozo / caja angosta) el chip no debe tapar el carrito */
@media (max-width: 640px) {
    .pos-nueva-version, .pos-upd-chip { left: 12px; right: 12px; bottom: 12px; max-width: none; }
    .pos-nv-txt, .pos-upd-txt { white-space: normal; }
}

/* Actualizacion OBLIGATORIA (Plan 16 F3): rojo y sin boton de cerrar. El chip normal es
   azul/tinta y se puede posponer; este NO — por eso cambia de color, para que se distinga
   de un vistazo y nadie lo confunda con el aviso de siempre. */
.pos-upd-chip-urgente {
    background: #D32F2F;
    box-shadow: 0 6px 20px rgba(211, 47, 47, .35);
}

.pos-upd-chip-urgente .pos-upd-btn { color: #B71C1C; }
.pos-upd-chip-urgente .pos-upd-btn:hover { background: #ffeaea; }

/* =====================================================================================
   Combo de ALMACEN DE DESPACHO en la barra de busqueda del PV
   (config SELECCIONAR_ALMACEN_DESPACHO_POS — opt-in; con la config apagada estos nodos
   ni se emiten, asi que estas reglas no afectan a ninguna instalacion existente).
   ===================================================================================== */
.pos-almdesp {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;                 /* deja que se comprima antes de desbordar la barra */
}

.pos-almdesp-ico {
    color: #64748b;
    font-size: 15px;
    flex: 0 0 auto;
}

.pos-almdesp-sel {
    /* Misma altura que los botones de la barra (Actualizar / Edicion / view-switch) */
    height: 32px;
    max-width: 210px;
    min-width: 0;
    padding: 0 26px 0 10px;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    background-color: #fff;
    color: #16203A;
    font-size: 13px;
    line-height: 30px;
    cursor: pointer;
    text-overflow: ellipsis;
    /* Chevron propio: el select nativo no se puede alinear con el resto de la barra */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3e%3cpath d='M4.5 6.5 8 10l3.5-3.5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 7px center;
    background-size: 14px 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.pos-almdesp-sel:focus {
    outline: none;
    border-color: var(--primario, #1E88E5);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, .16);
}

.pos-almdesp-sel:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.pos-almdesp-spin {
    color: var(--primario, #1E88E5);
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
}

/* Movil: fila propia debajo del buscador (arriba no queda espacio) y a lo ancho.
   El contenedor .pos-pv2 es flex-column, por eso flex:0 0 auto — sin esto la fila se
   estiraria y le robaria alto a la grilla de productos. */
.pos-almdesp-movil {
    width: 100%;
    flex: 0 0 auto;
    padding: 0 8px 6px 8px;
}

    .pos-almdesp-movil .pos-almdesp-sel {
        flex: 1 1 auto;
        max-width: none;
        height: 36px;             /* target tactil comodo */
        line-height: 34px;
        font-size: 14px;
        border-radius: 10px;
    }
