/* CSS GENERALES MOVIL */
.title-mobil{
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #111111;
}

/* CONTENEDOR GENERAL */
.venta-item {
  padding: 8px 10px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}

/* ESTRUCTURA */
.venta-main {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.venta-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.venta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
}

/* ================================
   TIPOGRAFÍA (ESCALA CHATGPT)
   ================================ */

.venta-cliente {
  font-size: 14px;
  color: #0f172a;
  line-height: 1.35;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px; /* CLAVE */
}

.venta-fecha {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.3;
}

/* ================================
   MONTO (PROTAGONISTA DISCRETO)
   ================================ */

.venta-monto {
  font-size: 13px;
}

.venta-hora {
  font-size: 12px;
  color: #64748b;
}

/* ================================
   FAB
   ================================ */

.fab-venta {
  position: fixed;
  bottom: 20px;
  right: 18px;

  display: flex;
  align-items: center;
  gap: 10px;

  height: 54px;
  padding: 0 18px 0 14px;

  border-radius: 28px;
  border: none;

  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;

  box-shadow:
    0 10px 24px rgba(37, 99, 235, .35),
    0 2px 6px rgba(0, 0, 0, .15);

  z-index: 100;
  cursor: pointer;

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

/* Icono */
.fab-venta .fab-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, .18);
}

/* Texto */
.fab-venta .fab-text {
  white-space: nowrap;
}

/* Feedback táctil */
.fab-venta:active {
  transform: scale(.96);
  box-shadow:
    0 6px 14px rgba(37, 99, 235, .25);
}

/* Hover (desktop, por si acaso) */
@media (hover: hover) {
  .fab-venta:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  }
}


.buscador-wrapper {
  position: relative;
}

.icon-search {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: #94a3b8;
  stroke-width: 2;
  fill: none;
}

.buscador-wrapper input {
  padding-left: 36px;
}


/* VER */
.btn-ver {
  color: #2563eb;
  background: #eff6ff;
  border-color: #dbeafe;
}

.btn-ver svg {
  stroke: #2563eb;
}

/* IMPRIMIR */
.btn-print {
  color: #475569;
  background: #f8fafc;
  border-color: #e5e7eb;
}

.btn-print svg {
  stroke: #475569;
}

/* ELIMINAR */
.btn-delete {
  color: #b91c1c;
  background: #fff5f5;
  border-color: #fecaca;
}

.btn-delete svg {
  stroke: #b91c1c;
}
/* ================================
   PAGINACIÓN MOBILE
   ================================ */

.pagination-mobile {
  position: sticky;
  bottom: 0;
  z-index: 15;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 8px 10px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);

  border-top: 1px solid #e5e7eb;
}

/* info */
.pm-info {
  font-size: 12px;
  color: #64748b;
}

/* controles */
.pm-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pm-controls button {
  width: 32px;
  height: 32px;
  border-radius: 8px;

  border: 1px solid #e5e7eb;
  background: #f8fafc;

  font-size: 18px;
  color: #0f172a;

  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-controls button:disabled {
  opacity: 0.4;
}

.pm-page {
  font-size: 13px;
  color: #0f172a;
  font-weight: 500;
}
.btn-filtros-mobile {
  background: transparent;
  border: none;
  color: #0f172a;
  padding: 6px;
}
/* ================================
   FILTROS MOBILE – BOTTOM SHEET
   ================================ */

.filtros-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.35);
  z-index: 50;
}

.filtros-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 14px;

  max-height: 85vh;
  overflow-y: auto;
}

/* header */
.filtros-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.filtros-header button {
  border: none;
  background: transparent;
  font-size: 18px;
}

/* body */
.filtros-body label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  margin-bottom: 12px;
  color: #0f172a;
}

.filtros-body input,
.filtros-body select {
  margin-top: 6px;
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

/* checkbox row */
.filtro-row {
  flex-direction: row !important;
  justify-content: space-between;
  align-items: center;
}

/* footer */
.filtros-footer {
  margin-top: 12px;
}

.filtros-footer button {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: #fff;
}
.mobile-search-sticky {
  
  margin-top: 30px; /* altura real de tu header */
  z-index: 20;
  padding: 10px 15px;
}
/* Fila buscador + filtro */
.mobile-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* CAJA ESTILO WHATSAPP */
.wa-search{
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;

  background: #e3e3e34f;
  border-radius: 999px;

  padding: 14px 14px;
}

/* ICONO */
.wa-search-icon{
  width: 18px;
  height: 18px;
  stroke: #94a3b8;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

/* Lupa mismo color que el placeholder */
.wa-search .wa-search-icon {
  stroke: #475569;
}


/* INPUT */
.wa-search input{
  border: none;
  outline: none;
  background: transparent;

  width: 100%;
  font-size: 14px;
  color: #0f172a;
}

/* Placeholder más oscuro y legible */
.wa-search input::placeholder {
  color: #475569;        /* gris oscuro elegante */
  opacity: 1;            /* MUY IMPORTANTE (Chrome / Safari) */
  font-weight: 500;
}

/* Compatibilidad extra (Android / navegadores viejos) */
.wa-search input::-webkit-input-placeholder {
  color: #475569;
}

.wa-search input::-moz-placeholder {
  color: #475569;
}

.wa-search input:-ms-input-placeholder {
  color: #475569;
}


/* SIN BORDE AZUL MOLESTO */
.wa-search input:focus{
  outline: none;
  box-shadow: none;
}

/* ===== LOGO MOBILE HEADER ===== */
.header-logo-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;            /* altura controlada */
  max-width: 160px;        /* evita que se estire */
  margin: 0 auto;          /* centrado */
}

.header-logo-mobile a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.header-logo-mobile img {
  max-height: 34px;        /* tamaño visual agradable */
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
/* ===== MOBILE FORM (APP STYLE) ===== */
@media (max-width: 768px) {

  .vm-section {
    background: #ffffff;
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
  }

  .vm-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 10px;
  }

  .vm-field {
    margin-bottom: 10px;
  }

  .vm-row {
    display: flex;
    gap: 10px;
  }

  .vm-input {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 0 12px;
    font-size: 13.5px;
    background: #f9fafb;
    outline: none;
  }

  .vm-input:focus {
    border-color: #3b82f6;
    background: #ffffff;
  }

  .vm-field-action {
    position: relative;
  }

  .vm-icon-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: #2563eb;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .venta-header {
  position: sticky;
  
  z-index: 90;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}

.doc-sep {
  margin: 0 6px;
  color: #9ca3af;
}

.venta-edit {
  border: none;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
}

.venta-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
}

.venta-input {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 0 12px;
  font-size: 14px;
}

.venta-input.muted {
  margin-top: 8px;
  color: #9ca3af;
}

.venta-plus {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  border: none;
  font-size: 20px;
}
.mobile-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
}

.mobile-modal {
  background: #fff;
  width: 100%;
  border-radius: 18px 18px 0 0;
  padding: 16px;
  animation: slideUp .25s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.mobile-modal-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 12px;
}
.mobile-option-group {
  margin: 12px 0;
}

.mobile-option-title {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
}

.mobile-toggle {
  display: flex;
  gap: 8px;
}

.toggle-btn {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #f8f9fb;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  transition: all .2s ease;
}

.toggle-btn.active {
  background: #2a3f6e;
  color: #fff;
  border-color: #2a3f6e;
  box-shadow: 0 6px 14px rgba(42,63,110,.25);
}
.mobile-product-listd {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 160px;
}
.barcode-wrapper-fixed {
  position: fixed;
  bottom: 105px; /* 👈 encima del bottom-sheet */
  left: 16px;
  right: 16px;
  z-index: 40;

  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;

  display: flex;
  align-items: center;
  gap: 10px;

  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.barcode-wrapper-fixed input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
}

.barcode-wrapper-fixed input:focus {
  outline: none;
  box-shadow: none;
}

.mobile-product-cardd {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  animation: aparecer 0.25s ease-out;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CONTENEDOR */
.cliente-buscador {
  padding: 12px 14px;
  background: #f9fafb;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}

/* TEXTAREA ESTILO APP */
.cliente-textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;

  background: transparent;
  font-size: 16px;
  line-height: 1.4;
  color: #111827;

  font-family: inherit;

  /* cursor llamativo */
  caret-color: #ef4444; /* rojo moderno */

  /* elimina estilos mobile raros */
  -webkit-appearance: none;
  appearance: none;
}

/* PLACEHOLDER SUAVE */
.cliente-textarea::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* QUITAR BORDE AZUL EN TODOS LOS NAVEGADORES */
.cliente-textarea:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* EFECTO SUTIL CUANDO ESTÁ ESCRIBIENDO */
.cliente-buscador:focus-within {
  background: #ffffff;
  border-color: #d1d5db;
}
.cliente-selector {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* buscador fijo */
.cliente-buscador-wrapper {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}

/* lista con scroll */
.cliente-resultados {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
  -webkit-overflow-scrolling: touch;
}

/* item cliente */
.cliente-item {
  padding: 14px;
  border-radius: 14px;
  background: #f9fafb;
}

.cliente-item:active {
  background: #e0e7ff;
}


.product-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 12px;
}

.product-stock {
  font-size: 11px;
  color: #e74a4a;
}

.product-meta {
  font-size: 12px;
  color: #777;
  margin: 4px 0 8px;
}

.product-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-control button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #2a3f6e;
  color: #fff;
  font-size: 18px;
}

.qty-control input {
  width: 50px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.price-info {
  font-weight: 600;
  font-size: 14px;
}

.product-subtotal {
  margin-top: 6px;
  font-size: 13px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.btn-lite {
  background: #f1f3f7;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
}

.btn-danger-lite {
  background: #fdeaea;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: #e74a4a;
}
/* CONTENEDOR STICKY REAL */
.mobile-search-bar {
  position: sticky;
  top: 60px; /* AJUSTA según tu header */
  z-index: 100;
  background: #f6f7fb;
  padding: 8px 12px;
}

/* INPUT */
.search-wrapper {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  padding: 10px 42px 10px 38px;
}

/* ICONO */
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a94a6;
  font-size: 16px;
}

/* INPUT */
.search-wrapper input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  color: #333;
}

/* ===== BUSCADOR PRODUCTOS MOBILE ===== */
.mobile-search-product {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 0;
}

/* CARD DEL INPUT */
.search-input-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

/* ICONO IZQUIERDO */
.search-input-card .icon-left {
  font-size: 18px;
  color: #2563eb;
}

/* INPUT */
.search-input-card input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
}

/* BOTÓN ICONO */
.search-input-card .icon-action {
  border: none;
  background: #2563eb;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(37,99,235,.35);
}

/* BOTÓN VER PRODUCTOS */
.btn-ver-productos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #f1f5f9;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}

/* ICONO CATÁLOGO */
.btn-ver-productos i {
  color: #2563eb;
  font-size: 18px;
}

/* FEEDBACK TÁCTIL */
.btn-ver-productos:active,
.search-input-card .icon-action:active {
  transform: scale(0.97);
}
.acciones-busqueda {
  display: flex;
  gap: 12px;
}

.btn-accion {
  background: #e8f0ff;          /* azul suave */
  color: #1e3a8a;
  border-radius: 12px;
  padding: 14px 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-accion:active {
  transform: scale(0.97);
}

.btn-accion.secundaria {
  background: #f1f5f9;
  color: #1f2937;
}

.btn-accion i {
  font-size: 18px;
}


/* BOTÓN LIMPIAR */
.clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #eef1f7;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 14px;
  color: #555;
}

.search-actions {
  display: flex;
  gap: 8px;
}

/* INPUT */
.search-wrapper {
  flex: 1;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  padding: 10px 14px 10px 36px;
}

.search-wrapper input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #2a3f6e;
}

/* BOTÓN PRODUCTOS */
.btn-search-product {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 74px;
  background: #2a3f6e;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 11px;
  box-shadow: 0 6px 16px rgba(42,63,110,.25);
}

.btn-search-product i {
  font-size: 16px;
  margin-bottom: 2px;
}
.mobile-resumen {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 120;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

/* TEXTO */
.resumen-info {
  display: flex;
  flex-direction: column;
}

.resumen-info .label {
  font-size: 11px;
  color: #7b8db0;
}

.resumen-info .importe {
  font-size: 20px;
  font-weight: 700;
  color: #2a3f6e;
  line-height: 1.2;
}

.resumen-info small {
  font-size: 11px;
  color: #999;
}

/* BOTÓN COBRAR */
.btn-cobrar {
  background: linear-gradient(135deg, #25c667, #1fa85a);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(37,198,103,.35);
  touch-action: manipulation;
}

.btn-cobrar:disabled {
  opacity: .4;
  box-shadow: none;
}

@keyframes totalUp {
  0% {
    transform: scale(1);
    color: #2a3f6e;
  }
  40% {
    transform: scale(1.08);
    color: #25c667;
  }
  100% {
    transform: scale(1);
    color: #2a3f6e;
  }
}

@keyframes totalDown {
  0% {
    transform: scale(1);
    color: #2a3f6e;
  }
  40% {
    transform: scale(0.95);
    color: #e74c3c;
  }
  100% {
    transform: scale(1);
    color: #2a3f6e;
  }
}

.total-up {
  animation: totalUp 0.35s ease;
}

.total-down {
  animation: totalDown 0.35s ease;
}
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 0 30px rgba(0,0,0,.1);
  transition: height .25s cubic-bezier(.4,0,.2,1);
  z-index: 999;
  overflow: hidden;
}

.sheet-handle {
  width: 40px;
  height: 5px;
  background: #ccc;
  border-radius: 3px;
  margin: 8px auto;
}

.sheet-resumen {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-resumen .total {
  font-size: 22px;
  font-weight: 700;
}

.btn-principal {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 15px;
}

.fade-slide-enter-active,
.fade-slide-leave-active {
  transition: all .25s ease;
}
.fade-slide-enter,
.fade-slide-leave-to {
  opacity: 0;
  transform: translateY(20px);
}
body {
  padding-bottom: 110px; /* altura del sheet colapsado */
  background-color: #fff !important;
}
.bottom-sheet {
  transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: none;
}
.sheet-detalle {
  padding: 0px 10px 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 82%;
}

/* PRODUCTOS */
.sheet-productos {
  margin-bottom: 12px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 6px;
  touch-action: pan-y;
}

.producto-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.producto-info {
  display: flex;
  flex-direction: column;
}

.producto-nombre {
  font-size: 12.5px;
  font-weight: 600;
  color: #222;
}

.producto-cantidad {
  font-size: 12px;
  color: #777;
}

.producto-total {
  font-weight: 600;
  font-size: 14px;
}

/* SIN PRODUCTOS */
.sin-productos {
  text-align: center;
  font-size: 13px;
  color: #999;
  padding: 20px 0;
}

/* TOTALES */
.sheet-totales {
  border-top: 1px solid #eee;
  padding: 12px 10px;
  margin-bottom: 12px;
}

.sheet-totales .fila {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}

.sheet-totales .total {
  font-weight: 700;
  font-size: 16px;
}

/* BOTÓN */
.btn-confirmar {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  background: #25c667;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
}
.sheet-resumen {
  border-top: 1px solid #eee;
  background: #fff;
}

.resumen-info {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.label {
  font-size: 13px;
  color: #666;
}

/* TOTAL */
.total {
  font-size: 20px;
  font-weight: 700;
  transition: color 0.25s ease, transform 0.25s ease;
}

/* EFECTOS */
.total.sube {
  color: #25c667;
  transform: scale(1.05);
}

.total.baja {
  color: #e5533d;
  transform: scale(0.95);
}
.pagos-app{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pago-info{
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pago-info .nombre{
  font-weight: 600;
  font-size: 15px;
}

.pago-info .detalle{
  font-size: 14px;
  color: #0f172a;
}

.pago-info .muted{
  color: #9ca3af;
}

.pago-extra{
  font-size: 13px;
  font-weight: 600;
  color: #16a34a;
}
.pago-opcion{
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 2px solid transparent;
  transition: all .2s ease;
}

.pago-opcion.activo{
  transform: scale(1.01);
}

.pago-icono{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.pago-cerrar{
  position: absolute;
  right: 12px;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.pago-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  margin-bottom: 12px;
  transition: all .25s ease;
}

.pago-card.activo {
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  transform: scale(1.01);
}

.pago-card .icono {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.pago-card .info {
  flex: 1;
}

.pago-card .titulo {
  font-weight: 600;
}

.pago-card .sub {
  font-size: 13px;
  color: #6b7280;
}

.pago-card .monto {
  font-weight: 700;
}

.pago-card .check {
  font-size: 18px;
  color: #16a34a;
}
.modal-pago-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: flex-end;
  z-index: 9999;
}

.modal-pago {
  width: 100%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  animation: slideUp .25s ease;
}

.modal-pago .titulo {
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
}

.monto-display {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin: 10px 0;
}

.input-monto {
  width: 100%;
  font-size: 22px;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.acciones {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn-cancelar {
  flex: 1;
  background: #f1f5f9;
  color: #334155;
  border-radius: 14px;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  border: none;
  transition: background .15s ease, transform .1s ease;
}

.btn-cancelar:active {
  background: #e2e8f0;
  transform: scale(.97);
}

/* BOTÓN PRINCIPAL */
.btn-confirmarmedio {
  flex: 1;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-radius: 14px;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  border: none;
  box-shadow: 0 6px 14px rgba(37,99,235,.25);
  transition: transform .1s ease, box-shadow .15s ease;
}

.btn-confirmarmedio:active {
  transform: scale(.97);
  box-shadow: 0 3px 8px rgba(37,99,235,.2);
}
.monto-editor {
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  color: #0f172a;
  min-height: 48px;
  outline: none;
  position: relative;
}

/* Cursor parpadeante */
.monto-editor:empty::after {
  content: '|';
  animation: blink 1s infinite;
  color: #2563eb;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}
.hint-monto {
  text-align: center;
  font-size: 13px;
  color: #64748b; /* gris elegante */
  margin-bottom: 8px;
  letter-spacing: .3px;
}
.hint-monto::after {
  content: "•";
  margin-left: 6px;
  color: #22c55e;
}
.error-monto {
  margin-top: 6px;
  font-size: 13px;
  color: #dc2626;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-footer-mobile {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 12px;
  padding: 12px 16px env(safe-area-inset-bottom);
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  z-index: 10;
}

.btn-footer {
  flex: 1;
  height: 52px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-footer:active {
  transform: scale(0.97);
}

/* Volver (acción secundaria) */
.btn-volver {
  background: #f3f4f6;
  color: #374151;
}

/* Guardar / Acción principal */
.btn-guardar {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
}

.btn-guardar:disabled {
  opacity: 0.6;
  box-shadow: none;
}

.modal-pago-mobile {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #f9fafb;
}

.modal-body-mobile {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.modal-footer-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 12px;
  padding: 12px 16px env(safe-area-inset-bottom);
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  z-index: 20;
  height: 80px;
}
.doc-card {
  background: #fff;
  border-radius: 16px;
  padding: 12px 0;
  /*box-shadow: 0 6px 16px rgba(0,0,0,.08);*/
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #e5e7eb;
}

.doc-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.doc-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  font-weight: 500;
}

.doc-btn.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.doc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-chip {
  background: #f3f4f6;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.doc-edit {
  margin-left: auto;
  font-size: 12px;
  color: #2563eb;
  background: none;
  border: none;
}
.cliente-card {
  background: #fff;
  border-radius: 16px;
  padding: 12px 0;
  /*box-shadow: 0 6px 16px rgba(0,0,0,.08);*/
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #e5e7eb;
}

.cliente-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.cliente-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: #f9fafb;
  cursor: pointer;
}

/* DIRECCIÓN */
.cliente-direccion {
  margin-top: 6px;

  display: flex;
  align-items: flex-start;
  gap: 6px;

  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

.cliente-direccion i {
  font-size: 14px;
  color: #2563eb;
  margin-top: 2px;
}

.cliente-direccion.muted i {
  color: #94a3b8;
}

.cliente-direccion.muted {
  color: #94a3b8;
}
/* ===== TRANSICIÓN CLIENTE ===== */
.cliente-fade-enter-active,
.cliente-fade-leave-active {
  transition: all 0.25s ease;
}

.cliente-fade-enter-from {
  opacity: 0;
  transform: translateY(6px);
}

.cliente-fade-enter-to {
  opacity: 1;
  transform: translateY(0);
}

.cliente-fade-leave-from {
  opacity: 1;
  transform: translateY(0);
}

.cliente-fade-leave-to {
  opacity: 0;
  transform: translateY(-6px);
}
.cliente-flash {
  animation: clienteFlash 0.6s ease;
}

@keyframes clienteFlash {
  0% {
    box-shadow: 0 0 0 rgba(37,99,235,0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(37,99,235,0.15);
  }
  100% {
    box-shadow: 0 0 0 rgba(37,99,235,0);
  }
}


.cliente-info span {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
}

.cliente-info small {
  color: #6b7280;
  font-size: 11px;
}

.cliente-action {
  font-size: 12px;
  color: #2563eb;
}

.cliente-actions {
  margin-top: 10px;
}

.cliente-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed #c7d2fe;
  background: #eef2ff;
  font-weight: 600;
  color: #1e40af;
}
.card-condicion-pago {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px 0;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #e5e7eb;
  /*box-shadow: 0 8px 20px rgba(0,0,0,.04);*/
}

.card-condicion-pago .card-header-pago {
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  margin-bottom: 10px;
}

.card-condicion-pago .card-pago {
  display: flex;
  gap: 12px;
}

.card-body{
  
}

.pago-option {
  flex: 1;
  border-radius: 14px;
  padding: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: all .2s ease;
}

.pago-option .icon {
  font-size: 22px;
}

.pago-option .text strong {
  display: block;
  font-size: 14px;
  color: #111827;
}

.pago-option .text small {
  font-size: 11.5px;
  color: #6b7280;
}

/* ACTIVO */
.pago-option.active {
  background: #eef4ff;
  border-color: #dbeafe;
}

.pago-option:active {
  transform: scale(0.97);
}

.pago-option.active strong {
  color: #2563eb;
}
.modal-badoon-titulo {
  padding-left: 1rem;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}
.mobile-product-search {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.producto-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  transition: transform .15s ease;
}

.producto-card:active {
  transform: scale(0.97);
}

.producto-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.producto-nombre {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  max-width: 70%;
}

.producto-precio {
  font-weight: 700;
  font-size: 15px;
  color: #2563eb;
}

.producto-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

.producto-meta .stock.ok {
  color: #16a34a;
}

.producto-meta .stock.bad {
  color: #dc2626;
}

.mobile-product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

 .mobile-product-card {
    display: flex;
    gap: 12px;
    padding: 12px 0px;
    cursor: pointer;
  }

.mobile-product-card:active {
  transform: scale(0.98);
}
.mobile-product-card:has(.badge-stock) {
  opacity: .65;
}
/* IMAGEN */
.thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  position: relative;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: #f1f5f9;
}

/* INFO */
.info {
  flex: 1;
  min-width: 0;
}

.nombre {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* MARCA + UNIDAD */
.detalle {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.dot {
  font-size: 10px;
}

/* STOCK + PRECIO */
.meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 13px;
}

.stock.ok {
  color: #16a34a;
  font-weight: 500;
}

.stock.no {
  color: #dc2626;
  font-weight: 500;
}

.precio {
  color: #0f172a;
  font-weight: 600;
}

/* ACCIÓN */
.accion {
  color: #94a3b8;
  display: flex;
  align-items: center;
}


.sin-resultados {
  text-align: center;
  padding: 20px;
  color: #9ca3af;
}
.espacio{
  margin-left: 0px !important;
    margin-right: 0px !important;
}
.mobile-search-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

/* BUSCADOR */
.search-input-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px 14px 14px 42px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  font-size: 15px;
  outline: none;
}

.search-input:focus {
  border-color: #2563eb;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

/* FILTROS */
.search-actions {
  display: flex;
  gap: 10px;
}

.search-filter {
  flex: 1;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  font-size: 13px;
}

/* CREAR PRODUCTO */
.btn-create-product {
  border-radius: 12px;
  padding: 10px 14px;
  background: #f59e0b;
  color: #fff;
  border: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mobile-product-card {
  transition: transform .15s ease, box-shadow .15s ease;
}

.mobile-product-card.seleccionado {
  transform: scale(0.96);
  box-shadow: 0 6px 18px rgba(37, 99, 235, .25);
}
.badge-stock {
  position: absolute;
  top: -6px;
  left: -6px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55); /* azul oscuro elegante */
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}
.sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90vh;
  background: #ffffff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}
.sheet-header {
  padding: 14px 12px;
  flex-shrink: 0;
  border-bottom: 1px solid #e5e7eb;
}

.sheet-header span {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.sheet-header button {
  background: none;
  border: none;
  font-size: 20px;
  color: #64748b;
  padding: 6px 10px;
  border-radius: 8px;
}

.sheet-header button:active {
  background: #f1f5f9;
}
.sheet-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* evita que todo se mueva */
}
.input-buscador {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-buscador::placeholder {
  color: #94a3b8;
}

.input-buscador:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.lista-clientes {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cliente-item {
  border-radius: 14px;
  background: #f8fafc;
  transition: background 0.2s, transform 0.15s;
}

.cliente-item:active {
  background: #e0ecff;
  transform: scale(0.98);
}
.cliente-item .nombre {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}
.cliente-item .doc {
  font-size: 13px;
  color: #64748b;
}
.lista-clientes small {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #94a3b8;
  font-size: 13px;
}
.mobile-product-actions {
  position: fixed;
  bottom: 100px; /* justo encima del botón Cobrar */
  left: 0;
  right: 0;

  display: flex;
  gap: 10px;
  padding: 10px 14px;

  background: #ffffff;
  border-top: 1px solid #e5e7eb;

  z-index: 40;
  transition: bottom 0.25s ease;
}
.mobile-product-actions.with-barcode {
  bottom: 150px; /* deja espacio exacto para el input */
}

.btn-scan,
.btn-products {
  flex: 1;
  height: 48px;
  border-radius: 14px;
  border: none;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-size: 14px;
  font-weight: 600;
}

.btn-scan {
  background: #f1f5f9;
  color: #334155;
}

.btn-products {
  background: #e8f0ff;          /* azul suave */
  color: #1e3a8a;
  border-radius: 12px;
  padding: 14px 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #dbeafe;
}
.sheet-subtitle{
  font-size:12px;
  color:#64748b;
  margin-top:4px;
}

.field-group{
  margin-bottom:14px;
}

.field-group label{
  display:block;
  font-weight:800;
  font-size:12px;
  color:#475569;
  margin-bottom:6px;
}

.item-resumen{
  margin:16px 0;
  padding:12px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#f8fafc;
}

.res-row{
  display:flex;
  justify-content:space-between;
  font-size:13px;
  margin-bottom:6px;
}

.res-row.total{
  font-size:15px;
  font-weight:900;
  border-top:1px dashed #cbd5e1;
  padding-top:8px;
}

.venta-row {
  display: flex;
  gap: 12px;
  padding: 14px 5px;
  background: #fff;
}

.venta-row:active {
  background: #f9fafb;
}

/* AVATAR */

.venta-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #f4f4f4;
    color: #3f444d;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

/* BOLETA */
.doc-bl {
  background: #e0edff;
  color: #1d4ed8;
}

/* FACTURA */
.doc-fa {
  background: #ede9fe;
  color: #6d28d9;
}

/* NOTA DE VENTA */
.doc-nv {
  background: #e5e7eb;
  color: #374151;
}

/* PENDIENTE SUNAT (sutil, elegante) */
.venta-pendiente .venta-avatar {
  box-shadow: inset 0 0 0 2px #facc15;
}

/* CONTENIDO */
.venta-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* TOP */
.venta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.venta-doc {
  font-weight: 400;
  color: #0f172a;
  font-size: 13px;
}

.venta-monto {
  font-weight: 600;
  color: #0f172a;
}

/*MIDDLE*/

.venta-middle{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* BOTTOM */
.venta-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.venta-pago {
  font-size: 12px;
  font-weight: 600;
}

.venta-pago.contado {
  color: #16a34a;
}

.venta-pago.credito {
  color: #dc2626;
}

/* ESTADOS */
.venta-anulada {
  opacity: 0.45;
}

.venta-pendiente .venta-avatar {
  background: #fef3c7;
  color: #92400e;
}

/* ACCIONES */
.venta-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn-actionv {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  background: #f1f5f9;
}

.btn-actionv.ver { color: #2563eb; }
.btn-actionv.print { color: #0f766e; }
.btn-actionv.delete { color: #dc2626; }

/* TRANSICIÓN */
.fade-enter-active, .fade-leave-active {
  transition: opacity .15s ease;
}
.fade-enter-from, .fade-leave-to {
  opacity: 0;
}
/* ================================
   SCANNER (OVERLAY MOBILE)
================================== */
.scanner-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.4);
}

/* Sheet inferior tipo app */
.scanner-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 75vh; /* CLAVE */
  background: #fff;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
}

/* Header */
.scanner-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid #eef2f7;
}

.scanner-title{
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.scanner-close{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 18px;
  line-height: 1;
}

/* Área donde irá la cámara */

.scanner-viewport {
  flex: 1;
  position: relative;
  background: #000;
}

/* DIV TARGET DE QUAGGA */
.scanner-video {
  position: absolute;
  inset: 0;
}

/* VIDEO QUE QUAGGA CREA */
.scanner-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-placeholder{
  color: rgba(255,255,255,.75);
  font-weight: 600;
  font-size: 14px;
}

/* Guía visual */
.scanner-guide{
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-line{
  width: 78%;
  height: 2px;
  background: rgba(255, 80, 80, .95); /* línea roja */
  box-shadow: 0 0 16px rgba(255, 80, 80, .45);
  animation: scannerMove 1.4s ease-in-out infinite;
}

@keyframes scannerMove {
  0%   { transform: translateY(-110px); opacity: .85; }
  50%  { transform: translateY(110px); opacity: 1; }
  100% { transform: translateY(-110px); opacity: .85; }
}

/* Footer */
.scanner-footer{
  padding: 14px;
  border-top: 1px solid #eef2f7;
}

.scanner-cancel{
  width: 100%;
  height: 44px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 12px;
  font-weight: 800;
  color: #0f172a;
}

.mobile-barcode .card {
  border-radius: 12px;
}

.mobile-barcode input {
  font-size: 1.1rem;
}

.editable-price {
  cursor: pointer;
  font-weight: 600;
}

.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: flex-end;
  z-index: 9999;
}

.bottom-sheet {
  animation: slideUp .2s ease;
}

.sheet-title {
  text-align: center;
  font-weight: 600;
  margin-bottom: 10px;
}

.sheet-input {
  width: 100%;
  font-size: 24px;
  padding: 12px;
  text-align: center;
  margin: 10px 0;
}

.sheet-buttons {
  display: flex;
  gap: 10px;
}

.btn-cancel,
.btn-confirm {
  flex: 1;
  padding: 12px;
  font-size: 16px;
}

.btn-confirm {
  background: #28a745;
  color: #fff;
}

.btn-cancel {
  background: #ddd;
}

/* MINIATURA */
.img-clickable {
  cursor: zoom-in;
}

/* OVERLAY */
.pv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  overflow: hidden;
  touch-action: none;
}

/* WRAPPER */
.pv-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* IMAGEN */
.pv-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.05s linear;
  will-change: transform;
}

/* BOTÓN CERRAR */
.pv-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:20px;
  cursor:pointer;
}

}
@media (max-width: 768px) {
  .mobile-content {
    padding-bottom: 110px; /* espacio para el resumen */
    margin-top: -10px !important;
  }
}
