
.contenedor-icbper-linea {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.contenedor-icbper-linea input {
  margin-left: 5px;
}

.form-items-pos .form-group {
  margin: 3px;
}
.form-items-pos .col-md-6 {
  padding: 2px;
}
#formVentaPos .form-group {
  margin: 3px;
  width: 100%;
}
#formVentaPos legend {
  margin: 3px;
}
#formVentaPos .col-md-6 {
  padding: 2px;
}
#formVentaPos .tabla-descuentos legend {
  border-style: none !important;
}
#formVentaPos #docIdentidad,
#formVentaPos #email {
  z-index: 0;
}
.contenedor-totales-ventas-pos .col-md-5,
.contenedor-totales-ventas-pos .col-md-7 {
  padding: 0;
}

.super-contenedor-herramientas-pos {
  position: fixed;
  display: flex;
  flex-direction: column;
  z-index: 3;
  right: -35px;
  top: 3px;
  width: 40px;
  height: 40px;
  background-color: rgba(240, 230, 140, 0);
}
.contenedor-herramientas-pos {
  position: fixed;
  display: flex;
  flex-direction: column;
  z-index: 1;
  right: 0;
  top: 4%;
  transform: translateX(100%);
  transition: all 0.2s;
}
#btnMenuHerramientas {
  display: none;
}

.super-contenedor-herramientas-pos .btn-h-pos {
  width: 25px;
  height: 25px;
  background-color: #00000000 !important;
  position: absolute;
  top: 0px;
  left: -22px;
  z-index: 2;
  cursor: pointer;
  border-radius: 50%;
  padding: 3px;
  padding-left: 5px;
  color: #fbfbfb;
  font-size: 1.2em;
}
.super-contenedor-herramientas-pos .btn-h-pos i {
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: #494949 !important;
  padding: 7px;
  border-radius: 50%;
  right: 0px;
  top: 0;
}
#btnMenuHerramientas:checked ~ .contenedor-herramientas-pos {
  transform: translateX(0%);
}

.contenedor-herramientas-pos label:nth-of-type(1) {
  border-radius: 7px 0px 0px 0px !important;
}
.contenedor-herramientas-pos label:nth-of-type(7) {
  border-radius: 0px 0px 0px 7px !important;
  text-align: center;
  background-color: #3f3f3f;
  display: flex;
  justify-content: space-around;
}
.contenedor-herramientas-pos label {
  padding: 10px;
  background-color: #343434;
  z-index: 1;
  color: #f5f5f5;
  font-weight: 600;
  border-radius: 0;
  border-bottom: 1px solid #4e4e4e;
  letter-spacing: 1px;
  /* font-family: Arial, Helvetica, sans-serif; */
}
.contenedor-herramientas-pos label:hover {
  color: #e2e2e2;
  background-color: #3a3a3a;
}
.contenedor-herramientas-pos .herramientas_pos {
  display: none;
}
.activar-envio-sunat {
  background-color: #52a422 !important;
}
/* .seccion-fechas-moneda-correlativo {
  box-sizing: border-box;
  position: absolute;
  z-index: 999;
  background-color: #383838;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}
.seccion-coreo-cuotas {
  color: #ffffff;
  box-sizing: border-box;
  position: fixed;
  z-index: 999;
  background-color: #383838;
  height: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}
.seccion-observacion {
  color: #ffffff;
  box-sizing: border-box;
  position: fixed;
  z-index: 999;
  background-color: #383838;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  top: 200px;
} */
/* @media (min-width: 992px) {
  .col-md-5 {
    padding: 0 !important;
  }
} */

.container-comprobants-pos {
  display: flex;
  flex-flow: row;
  justify-content: stretch;
  width: 250px;
  z-index: 1;
  margin: 0 auto;
  background-color: #4a4a4a;
  color: #f6f6f6;
  border-radius: 0px 0px 8px 8px;
  height: 28px;
}
.container-comprobants-pos .tipo_comprobante {
  display: none;
}
.container-comprobants-pos label {
  flex: 1;
  font-size: 0.7em;
  margin: 0 auto;
  background-color: #4a4a4a00;
  color: #f6f6f6;
  height: 28px;
  font-weight: 700;
  border-radius: 0px 0px 8px 8px;
  letter-spacing: 1px;
}
.container-comprobants-pos label:hover {
  background-color: rgb(62, 62, 62);
  color: #efefef;
}

.factura {
  background-color: #6fad28 !important;
  border-radius: 0px 0px 0px 8px !important;
}
.boleta {
  background-color: #5b39d6 !important;
}
.nota {
  background-color: #f14a4a !important;
  border-radius: 0px 0px 8px 0px !important;
}

/* @media (max-width: 545px){
    .rounded-pos{
        margin-top: 50px;
    }
  } */
@media (max-width: 388px) {
  .productos-pos {
    height: 63vh;
    z-index: 0;
  }
  .productos-pos .productos-pos-venta {
    width: 99%;
  }
}
#formVentaPos .cantidaditempos {
  outline: none !important;
  border-style: none !important;
  padding: 0px 10px 0px 10px !important;
  text-align: center !important;
  width: 80px;
  height: 28px !important;
  border: 1px solid rgba(116, 101, 252, 0.7) !important;
}

#formVentaPos .preciounitariopos {
  outline: none !important;
  border-style: none !important;
  padding: 0px 10px 0px 10px !important;
  text-align: center !important;
  width: 100px;
  height: 28px !important;
  border: 1px solid rgba(116, 101, 252, 0.7) !important;
}
#formVentaPos #descuentoGlobalpos,
#formVentaPos #descuentoGlobalPpos {
  border-radius: 0px 5px 5px 0px !important;
}
#formVentaPos .tabla-items thead {
  font-size: 0.85em !important;
}
#formVentaPos .tabla-totales tbody tr td:nth-child(1) {
  width: 60% !important;
  font-size: 1em;
  padding-bottom: 0;
}
.super-contenedor-formulario-pos .tabla-totales tbody tr td:nth-child(2) {
  width: 40% !important;
  font-size: 1.2em;
  padding-bottom: 0 !important;
}
.super-contenedor-productos-pos {
  height: calc(100vh - 60px) !important;
  overflow-y: auto !important;
  margin-left: 0;
  overflow-x: hidden;
  padding-right: 5px !important;
}
.super-contenedor-formulario-pos {
  padding-left: 0 !important;
  height: calc(100vh - 60px) !important;
  overflow-y: auto !important;
  margin-left: 0;
  overflow-x: hidden;
}
.contenedor-productos-ventas .col-md-2,
.contenedor-productos-ventas .col-md-3,
.contenedor-productos-ventas .col-md-7 {
  padding: 5px !important;
}
@media (max-width: 992px) {
  .pos-contenedor-fluido{
    height: 100vh !important;
    overflow-y: auto !important;
  }
  .super-contenedor-formulario-pos {
    padding: 20px !important;
  }
  .contenedor-productos-ventas .form-group {
    margin: 5px !important;
  }
  .contenedor-productos-ventas .col-md-2,
  .contenedor-productos-ventas .col-md-3,
  .contenedor-productos-ventas .col-md-7 {
    padding: 0 !important;
  }
}





.radio-envio-pos #no {
  display: none;
}

.inicio-pos {
  outline: none;
  border-style: none;
  position: fixed !important;
  top: 0;
  left: 0;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding-right: 6px;
  text-align: center;
  background-color: #323232d8;
}

.inicio-pos i {
  color: #ffffff !important;
}
.super-contenedor-formulario-pos .nuevoProducto {
  padding: 2px !important;
}

.contenedor-cuotas {
  display: none;
}

.contenedor-productos-ventas
  .select2-container--default
  .select2-selection--single,
.contenedor-productos-ventas .select2-selection .select2-selection--single {
  border: 1px solid rgba(170, 160, 255, 0.7) !important;
  padding: 8px 12px;
  height: 33px;
  border-radius: 5px;
  cursor: pointer;
}
/* AQUI */

/* =========================================
   NUEVO DISEÑO PREMIUM PARA PRODUCTOS POS
   ========================================= */

/* Contenedor principal de la grilla (Responsivo al 100%) */
.productos-pos {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
    gap: 20px !important;
    padding: 10px !important;
    background: transparent !important;
    overflow-y: auto !important;;
}

/* Tarjeta individual */
.productos-pos-venta {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    height: 100% !important;
    float: none !important; /* Desactiva floats antiguos */
    width: auto !important;
    margin: 0 !important;
}

.productos-pos-venta:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12) !important;
    border-color: #cbd5e1 !important;
}

/* Contenedor de la Imagen */
.pos-img-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 180px !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.pos-img-wrapper .img-ps {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 5px !important;
    transition: transform 0.4s ease !important;
}

.productos-pos-venta:hover .pos-img-wrapper .img-ps {
    transform: scale(1.08) !important;
}

/* Botón de Agregar (Superpuesto y con animación) */
.btn-agregar-ps-pos {
    position: absolute !important;
    bottom: 15px !important;
    top: auto !important;      /* Anula el top antiguo */
    width: auto !important;    /* Anula el width antiguo */
    height: auto !important;   /* Anula el height antiguo */
    left: 50% !important;
    transform: translateX(-50%) translateY(15px) !important;
    background: linear-gradient(135deg, #28137a 0%, #5044f8 100%) !important;
    color: #ffffff !important;
    padding: 8px 24px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(60, 35, 203, 0.4) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    z-index: 10 !important;
}

.productos-pos-venta:hover .btn-agregar-ps-pos {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

.btn-agregar-ps-pos:hover {
    background: #341973 !important;
    box-shadow: 0 6px 12px rgba(57, 53, 241, 0.6) !important;
}

/* Etiqueta Sin Stock */
.sin-stock {
    position: absolute !important;
    top: 0px !important;
    right: 0px !important;
    background: #ef4444a1 !important;
    color: #ffffff !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3) !important;
    z-index: 5 !important;
    text-align: center !important;
}

/* Contenedor de Información (Texto, Precio y Cantidad) */
.pos-info-wrapper {
    padding: 16px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.descripcion-pos {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
    
    /* Truncar texto muy largo a 2 líneas para mantener alineación */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 39px !important; 
}

.precio-uni-pos {
    margin-bottom: 16px !important;
}

.precio-unitario {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #3b82f6 !important;
}

/* Controles de Cantidad Elegantes (+ / -) */
.btn-mas-menos {
    margin: 0 !important;
}

.btn-mas-menos .input-group {
    display: flex !important;
    align-items: center !important;
    background: #f1f5f9 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #e2e8f0 !important;
}

.btn-pos-menos, .btn-pos-mas, .btn-pos-menos-disabled, .btn-pos-mas-disabled {  
  width: 50px !important;
  height: auto !important;
  border-radius: 20% !important;
    background: transparent !important;
    color: #64748b !important;
    border: none !important;
    padding: 8px 15px!important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-pos-menos:hover, .btn-pos-mas:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.cantidad-number {
    border: none !important;
    text-align: center !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    background: transparent !important;
    box-shadow: none !important;
    height: 38px !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Ocultar las incómodas flechas numéricas nativas de Chrome/Firefox */
.cantidad-number::-webkit-outer-spin-button,
.cantidad-number::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Footer / Herramientas Ocultas (Cámara y Editar) */
.formFotoPos {
    margin: 0 !important;
    border-top: 1px solid #f1f5f9 !important;
    background: #f8fafc !important;
}

.contenedor-menu-pos {
    margin: 0 !important;
    padding: 10px 16px !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 16px !important;
}

.foto-pos, .edit-pos {
    color: #94a3b8 !important;
    cursor: pointer !important;
    font-size: 15px !important;
    transition: color 0.2s ease !important;
    margin: 0 !important;
}

.foto-pos:hover { color: #3b82f6 !important; }
.edit-pos:hover { color: #f59e0b !important; }

/* Ocultar forzosamente el input de file original (el ícono ya hace la acción) */
.fotoPos { display: none !important; }




.paginador-pos {
  width: 100% !important;
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: center !important;
  padding: 15px 0 !important;
}

/* Estilo moderno para los botones del paginador */
.paginador-pos .pagination {
  display: flex !important;
  gap: 6px !important;
  margin: 0 !important;
}

.paginador-pos .pagination > li > a,
.paginador-pos .pagination > li > span {
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  background-color: #f1f5f9 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.paginador-pos .pagination > li > a:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.paginador-pos .pagination > .active > a,
.paginador-pos .pagination > .active > span {
  background: linear-gradient(135deg, #28137a 0%, #5044f8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(80, 68, 248, 0.35) !important;
}

.paginador-pos .pagination > .disabled > a,
.paginador-pos .pagination > .disabled > span {
  background-color: #f8fafc !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.super-contenedor-productos-pos {
  scrollbar-width: thin;
  scrollbar-color: rgb(245, 245, 245) rgb(255, 255, 255);
}

/* Works on Chrome, Edge, and Safari */
.super-contenedor-productos-pos::-webkit-scrollbar {
  width: 7px !important;
}

.super-contenedor-productos-pos::-webkit-scrollbar-track {
  background: rgb(248, 248, 248) !important;
}

.super-contenedor-productos-pos::-webkit-scrollbar-thumb {
  background-color: rgb(200, 200, 200) !important;
  border-radius: 20px !important;
  border: 3px solid rgb(248, 248, 248) !important;
}



.super-contenedor-formulario-pos{
  scrollbar-width: thin;
  scrollbar-color: rgb(240, 240, 240) rgb(255, 255, 255);
}
/* Works on Chrome, Edge, and Safari */
.super-contenedor-formulario-pos::-webkit-scrollbar {
  width: 5px !important;
}

.super-contenedor-formulario-pos::-webkit-scrollbar-track {
  background: rgb(248, 248, 248) !important;
}

.super-contenedor-formulario-pos::-webkit-scrollbar-thumb {
  background-color: rgb(200, 200, 200) !important;
  border-radius: 20px !important;
  border: 3px solid rgb(248, 248, 248) !important;
}

.rounded-pos{
  margin-bottom: 0 !important;

}

/* =========================================
   PRELOADER HERMOSO PARA POS
   ========================================= */
#pos-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
 background: #1f2052;
background: linear-gradient(115deg,rgba(31, 32, 82, 1) 60%, rgba(45, 43, 117, 1) 100%);/* Fondo blanco moderno */
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  overflow: hidden !important;
}

.pos-preloader-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(103, 93, 248, 0.15); /* Color de pista suave */
  border-top-color: #aea8ff; /* Azul principal */
  border-radius: 50%;
  animation: pos-spin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
  margin-bottom: 20px;
}

.pos-preloader-text {
  color: #b2adff;
  font-family: "Quicksand", sans-serif;
  font-size: 1.2em;
  font-weight: 700;
  letter-spacing: 3px;
  animation: pos-pulse 1.5s ease-in-out infinite;
}

@keyframes pos-spin {
  to { transform: rotate(360deg); }
}

@keyframes pos-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}