
.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; }
}
/* =========================================================
   ACTUALIZACIÓN 04 · POS FERRETERO ROCASELVA
   Mostrador rápido, stock por unidad base y presentaciones
   ========================================================= */
:root {
  --rs-pos-green-950: #082d23;
  --rs-pos-green-900: #0d3b2e;
  --rs-pos-green-800: #124b39;
  --rs-pos-green-700: #1b6048;
  --rs-pos-green-100: #e9f3ee;
  --rs-pos-gold: #f2b84b;
  --rs-pos-gold-soft: #fff4dc;
  --rs-pos-bg: #f4f6f4;
  --rs-pos-card: #ffffff;
  --rs-pos-border: #dfe6e1;
  --rs-pos-text: #173229;
  --rs-pos-muted: #6e7f77;
  --rs-pos-danger: #c94444;
  --rs-pos-warning: #b77716;
}

.rs-pos-ferreteria,
.rs-pos-ferreteria .box,
.rs-pos-ferreteria .box-body {
  background: var(--rs-pos-bg) !important;
}

.rs-pos-ferreteria .box.rounded-pos {
  border: 0 !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}

.rs-pos-ferreteria .box-body {
  padding: 10px 12px 0 !important;
}

/* Topbar */
.rs-pos-topbar {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  background: linear-gradient(115deg, var(--rs-pos-green-950), var(--rs-pos-green-800));
  border-bottom: 3px solid var(--rs-pos-gold);
  box-shadow: 0 5px 18px rgba(8, 45, 35, .16);
  position: relative;
  z-index: 20;
}

.rs-pos-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.rs-pos-brand .inicio-pos {
  position: static !important;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.09) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  transition: .2s ease;
}

.rs-pos-brand .inicio-pos:hover {
  background: rgba(255,255,255,.18) !important;
  transform: translateX(-2px);
}

.rs-pos-brand-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rs-pos-green-950);
  background: var(--rs-pos-gold);
  border-radius: 11px;
  font-size: 17px;
}

.rs-pos-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.rs-pos-brand-copy strong {
  color: #fff;
  font-size: 16px;
  letter-spacing: 1.4px;
  font-weight: 800;
}

.rs-pos-brand-copy span {
  color: rgba(255,255,255,.72);
  font-size: 11px;
  margin-top: 5px;
  font-weight: 600;
}

/* Selector de comprobante */
.rs-pos-topbar .container-comprobants-pos {
  width: auto;
  min-width: 430px;
  height: 42px;
  margin: 0;
  padding: 4px;
  gap: 3px;
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.09);
  color: #fff;
}

.rs-pos-topbar .container-comprobants-pos label {
  height: 32px;
  min-width: 128px;
  border-radius: 8px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  color: rgba(255,255,255,.75);
  font-size: 10px;
  letter-spacing: .3px;
  font-weight: 800;
  border: 1px solid transparent;
  margin: 0;
  cursor: pointer;
  transition: .2s ease;
}

.rs-pos-topbar .container-comprobants-pos label:hover {
  background: rgba(255,255,255,.10) !important;
  color: #fff;
}

.rs-pos-topbar .container-comprobants-pos .tipo_comprobante:checked + label,
.rs-pos-topbar .container-comprobants-pos label.factura,
.rs-pos-topbar .container-comprobants-pos label.boleta,
.rs-pos-topbar .container-comprobants-pos label.nota {
  background: var(--rs-pos-gold) !important;
  color: var(--rs-pos-green-950) !important;
  box-shadow: 0 3px 9px rgba(0,0,0,.17);
}

.rs-pos-top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 7px;
}

.rs-pos-top-actions button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 9px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 700;
  outline: none;
  transition: .2s ease;
}

.rs-pos-top-actions button:hover,
.rs-pos-top-actions button:focus {
  background: rgba(255,255,255,.17);
}

.rs-pos-top-actions kbd,
.rs-pos-footer-actions kbd,
.rs-pos-search-hint,
.rs-pos-scan-key {
  background: rgba(8,45,35,.9);
  color: var(--rs-pos-gold);
  border: 1px solid rgba(242,184,75,.4);
  box-shadow: none;
  font-family: inherit;
  font-size: 9px;
  line-height: 1;
  border-radius: 5px;
  padding: 4px 5px;
}

/* Dos áreas de trabajo */
.rs-pos-ferreteria .super-contenedor-productos-pos,
.rs-pos-ferreteria .super-contenedor-formulario-pos {
  height: calc(100vh - 91px) !important;
  scrollbar-color: #b8c8bf transparent;
}

.rs-pos-ferreteria .super-contenedor-productos-pos {
  padding: 0 8px 14px 0 !important;
}

.rs-pos-ferreteria .super-contenedor-formulario-pos {
  padding: 0 0 14px 8px !important;
}

/* Filtros */
.rs-pos-filtros {
  position: sticky;
  top: 0;
  z-index: 14;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px !important;
  margin: 0 0 8px !important;
  background: rgba(244,246,244,.96) !important;
  border: 1px solid var(--rs-pos-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(13,59,46,.05) !important;
  backdrop-filter: blur(6px);
}

.rs-pos-filtro-secundario {
  display: flex;
  gap: 7px;
  align-items: center;
}

.rs-pos-filtros .form-group {
  margin: 0 !important;
}

.rs-pos-filtros .rs-pos-search-wrapper {
  position: relative;
}

.rs-pos-filtros input[type="search"] {
  height: 44px !important;
  border-radius: 10px !important;
  border: 1px solid var(--rs-pos-border) !important;
  background: #fff !important;
  color: var(--rs-pos-text) !important;
  padding-left: 40px !important;
  padding-right: 44px !important;
  font-size: 13px !important;
}

.rs-pos-filtros input[type="search"]:focus,
.rs-pos-filtros select.form-control:focus {
  border-color: var(--rs-pos-green-700) !important;
  box-shadow: 0 0 0 3px rgba(27,96,72,.10) !important;
}

.rs-pos-filtros .search-icon {
  color: var(--rs-pos-green-700) !important;
}

.rs-pos-search-hint {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.rs-pos-filtros select.form-control,
.rs-pos-filtros .select2-container .select2-selection--single {
  height: 44px !important;
  min-width: 145px;
  border-radius: 10px !important;
  background: #fff !important;
  border-color: var(--rs-pos-border) !important;
}

/* Grilla de productos */
.rs-pos-ferreteria .productos-pos {
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)) !important;
  gap: 10px !important;
  padding: 0 2px 16px !important;
  overflow: visible !important;
}

.rs-pos-ferreteria .productos-pos-venta {
  min-height: 302px;
  border: 1px solid var(--rs-pos-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(13,59,46,.05) !important;
}

.rs-pos-ferreteria .productos-pos-venta:hover {
  border-color: #aac3b5 !important;
  box-shadow: 0 9px 22px rgba(13,59,46,.13) !important;
  transform: translateY(-2px) !important;
}

.rs-pos-ferreteria .pos-img-wrapper {
  height: 120px !important;
  background: #f9fbfa !important;
  border-bottom: 1px solid #edf1ee;
}

.rs-pos-ferreteria .pos-img-wrapper .img-ps {
  padding: 8px !important;
}

.rs-pos-ferreteria .btn-agregar-ps-pos {
  bottom: 8px !important;
  background: var(--rs-pos-green-800) !important;
  padding: 7px 15px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 9px rgba(13,59,46,.25) !important;
  font-size: 10px !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) !important;
}

.rs-pos-ferreteria .btn-agregar-ps-pos:hover {
  background: var(--rs-pos-green-950) !important;
}

.rs-pos-ferreteria .rs-pos-add-disabled {
  background: #8a9690 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.rs-pos-ferreteria .pos-info-wrapper {
  padding: 9px 10px 8px !important;
}

.rs-pos-ferreteria .descripcion-pos {
  min-height: 35px;
  color: var(--rs-pos-text) !important;
  font-size: 12px !important;
  line-height: 1.35;
  font-weight: 800 !important;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rs-pos-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 38px;
  margin: 6px 0;
}

.rs-pos-product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 5px;
  background: #f1f5f2;
  color: #61736a;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-pos-product-meta .rs-pos-meta-code {
  color: var(--rs-pos-green-800);
  background: var(--rs-pos-green-100);
}

.rs-pos-product-meta .rs-pos-meta-location {
  color: #755610;
  background: var(--rs-pos-gold-soft);
}

.rs-pos-stock-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin: 3px 0 7px;
  padding: 5px 6px;
  border-radius: 6px;
  background: #f7f9f7;
  color: var(--rs-pos-muted);
  font-size: 9px;
}

.rs-pos-stock-line strong {
  color: var(--rs-pos-green-800);
  font-size: 10px;
}

.rs-pos-stock-line.is-critical {
  background: #fff4e4;
  color: #8a5a12;
}

.rs-pos-stock-line.is-critical strong {
  color: #a56505;
}

.rs-pos-ferreteria .precio-uni-pos {
  margin: 4px 0 !important;
}

.rs-pos-ferreteria .precio-unitario {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  color: var(--rs-pos-green-950) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.rs-pos-presentation-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  border-radius: 5px;
  background: var(--rs-pos-gold-soft);
  color: #875d0c;
  font-size: 9px;
  font-weight: 800;
}

.rs-pos-ferreteria .btn-mas-menos .input-group {
  width: 100%;
}

.rs-pos-ferreteria .btn-mas-menos .input-group-addon {
  width: 34px;
  border-color: var(--rs-pos-border) !important;
  color: var(--rs-pos-green-800);
  background: #f3f7f4 !important;
  cursor: pointer;
}

.rs-pos-ferreteria .btn-mas-menos .cantidad-number {
  height: 32px !important;
  text-align: center;
  border-color: var(--rs-pos-border) !important;
  font-weight: 800;
  color: var(--rs-pos-text);
}

.rs-pos-badge-stock {
  top: 7px !important;
  right: 7px !important;
  border-radius: 6px !important;
  opacity: .96;
}

.rs-pos-badge-reponer {
  background: #d88c18 !important;
}

.rs-pos-badge-agotado,
.rs-pos-badge-vencido {
  background: var(--rs-pos-danger) !important;
}

.rs-pos-card-no-stock {
  opacity: .78;
}

/* Panel derecho / carrito */
.rs-pos-ferreteria .super-contenedor-formulario-pos > .box,
.rs-pos-ferreteria .contenedor-totales-ventas-pos {
  border: 1px solid var(--rs-pos-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 3px 10px rgba(13,59,46,.05) !important;
}

.rs-pos-ferreteria .super-contenedor-formulario-pos .box,
.rs-pos-ferreteria .super-contenedor-formulario-pos .box-body,
.rs-pos-ferreteria .super-contenedor-formulario-pos .box-footer {
  background: #fff !important;
}

.rs-pos-ferreteria .super-contenedor-formulario-pos .form-control,
.rs-pos-ferreteria .super-contenedor-formulario-pos .select2-selection {
  border-color: var(--rs-pos-border) !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

.rs-pos-ferreteria .super-contenedor-formulario-pos .form-control:focus {
  border-color: var(--rs-pos-green-700) !important;
  box-shadow: 0 0 0 2px rgba(27,96,72,.08) !important;
}

.rs-pos-scanbar {
  display: grid;
  grid-template-columns: 38px auto minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 3px 2px 8px;
  padding: 7px 9px;
  border: 1px dashed #a8beb1;
  border-radius: 10px;
  background: #f6faf7;
}

.rs-pos-scan-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--rs-pos-green-100);
  color: var(--rs-pos-green-800);
  font-size: 15px;
}

.rs-pos-scan-copy {
  display: flex;
  flex-direction: column;
  min-width: 112px;
}

.rs-pos-scan-copy strong {
  color: var(--rs-pos-text);
  font-size: 10px;
}

.rs-pos-scan-copy span {
  color: var(--rs-pos-muted);
  font-size: 9px;
}

.rs-pos-scanbar #searchpcPos {
  width: 100%;
  height: 35px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--rs-pos-border);
  background: #fff;
  color: var(--rs-pos-text);
  outline: none;
}

.rs-pos-scanbar #searchpcPos:focus {
  border-color: var(--rs-pos-green-700);
  box-shadow: 0 0 0 3px rgba(27,96,72,.09);
}

.rs-pos-ferreteria .items-c {
  border: 1px solid #e7ece8;
  border-radius: 9px;
  overflow: auto;
  margin: 0 2px 7px;
}

.rs-pos-ferreteria .tabla-items {
  margin-bottom: 0 !important;
  background: #fff;
}

.rs-pos-ferreteria .tabla-items thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eef4f0;
  color: #41584d;
  border-bottom: 1px solid #d8e3dc !important;
  font-size: 9px !important;
  text-transform: uppercase;
  letter-spacing: .2px;
  white-space: nowrap;
}

.rs-pos-ferreteria .tabla-items tbody td {
  vertical-align: middle !important;
  border-top-color: #eef2ef !important;
  color: #3c5147;
  font-size: 10px;
}

.rs-pos-ferreteria #formVentaPos .cantidaditempos,
.rs-pos-ferreteria #formVentaPos .preciounitariopos {
  border: 1px solid #c9d7cf !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--rs-pos-text) !important;
  font-weight: 800;
}

.rs-pos-ferreteria #formVentaPos .cantidaditempos:focus,
.rs-pos-ferreteria #formVentaPos .preciounitariopos:focus {
  border-color: var(--rs-pos-green-700) !important;
  box-shadow: 0 0 0 2px rgba(27,96,72,.09) !important;
}

.rs-pos-footer-actions {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 9px !important;
  margin: 0 !important;
  border-top: 1px solid var(--rs-pos-border) !important;
  background: rgba(255,255,255,.97) !important;
  backdrop-filter: blur(5px);
}

.rs-pos-footer-actions .btnGuardarVentaPos {
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(110deg, var(--rs-pos-green-800), var(--rs-pos-green-950));
  color: #fff;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 7px 10px;
  text-align: left;
  box-shadow: 0 6px 14px rgba(13,59,46,.20);
  outline: none;
  transition: .2s ease;
}

.rs-pos-footer-actions .btnGuardarVentaPos:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 17px rgba(13,59,46,.26);
}

.rs-pos-save-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--rs-pos-gold);
  color: var(--rs-pos-green-950);
  font-size: 14px;
}

.rs-pos-save-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rs-pos-save-copy strong {
  font-size: 12px;
  letter-spacing: .35px;
}

.rs-pos-save-copy small {
  color: rgba(255,255,255,.68);
  font-size: 9px;
  margin-top: 2px;
}

.rs-pos-footer-actions .btnEliminarCarro {
  min-width: 68px;
  min-height: 52px;
  border-radius: 10px;
  border: 1px solid #ead7d7;
  color: #a73d3d;
  background: #fff8f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
}

/* Modal unidad base / presentaciones */
.modal-presentaciones-modern .modal-dialog {
  width: min(560px, calc(100% - 24px));
  margin: 7vh auto;
}

.modal-presentaciones-modern .modal-content {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(8,45,35,.24);
}

.modal-presentaciones-modern .modal-header {
  background: var(--rs-pos-green-900);
  color: #fff;
  border-bottom: 3px solid var(--rs-pos-gold);
  padding: 14px 16px;
}

.modal-presentaciones-modern .modal-header .close {
  color: #fff;
  opacity: .8;
  text-shadow: none;
}

.modal-presentaciones-modern .modal-title {
  font-size: 16px;
  font-weight: 800;
}

.modal-presentaciones-modern .modal-body {
  padding: 14px;
  background: #f6f8f6;
}

.rs-pos-presentation-product {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 11px;
  margin-bottom: 8px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--rs-pos-border);
  color: var(--rs-pos-text);
}

.rs-pos-presentation-product span {
  color: var(--rs-pos-muted);
  font-size: 10px;
}

#listaPresentacionesPos {
  display: grid;
  gap: 7px;
}

.btn-presentacion-item {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  text-align: left;
  border: 1px solid var(--rs-pos-border);
  border-radius: 10px;
  background: #fff;
  color: var(--rs-pos-text);
  outline: none;
  transition: .18s ease;
}

.btn-presentacion-item:hover:not(.is-disabled) {
  border-color: #9fbbae;
  box-shadow: 0 4px 11px rgba(13,59,46,.09);
  transform: translateY(-1px);
}

.btn-presentacion-item.is-disabled {
  opacity: .45;
  cursor: not-allowed;
}

.btn-presentacion-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--rs-pos-gold-soft);
  color: #8b620f;
}

.rs-pos-base-unit-icon {
  background: var(--rs-pos-green-100);
  color: var(--rs-pos-green-800);
}

.btn-presentacion-info {
  min-width: 0;
}

.btn-presentacion-title {
  font-size: 12px;
  font-weight: 800;
}

.btn-presentacion-desc {
  margin-top: 3px;
  color: var(--rs-pos-muted);
  font-size: 10px;
}

.btn-presentacion-price {
  color: var(--rs-pos-green-900);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

/* Preloader alineado a identidad ferretera */
#pos-preloader {
  background: linear-gradient(115deg, var(--rs-pos-green-950) 55%, var(--rs-pos-green-800) 100%) !important;
}

.pos-preloader-spinner {
  border-color: rgba(242,184,75,.18) !important;
  border-top-color: var(--rs-pos-gold) !important;
}

.pos-preloader-text {
  color: #f7d890 !important;
}

.rs-pos-ferreteria .switch-custom input:checked + .slider-custom {
  background-color: var(--rs-pos-green-700) !important;
}

/* Laptop / tablet */
@media (max-width: 1200px) {
  .rs-pos-topbar {
    grid-template-columns: auto 1fr auto;
  }
  .rs-pos-topbar .container-comprobants-pos {
    min-width: 350px;
  }
  .rs-pos-topbar .container-comprobants-pos label {
    min-width: 104px;
    font-size: 9px;
  }
  .rs-pos-top-actions button span {
    display: none;
  }
  .rs-pos-ferreteria .productos-pos {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
  }
}

@media (max-width: 991px) {
  .rs-pos-ferreteria .pos-contenedor-fluido {
    height: 100vh !important;
    overflow-y: auto !important;
  }
  .rs-pos-topbar {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr auto;
    gap: 7px;
  }
  .rs-pos-topbar .container-comprobants-pos {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
  }
  .rs-pos-topbar .container-comprobants-pos label {
    min-width: 0;
  }
  .rs-pos-ferreteria .super-contenedor-productos-pos,
  .rs-pos-ferreteria .super-contenedor-formulario-pos {
    height: auto !important;
    overflow: visible !important;
    padding: 0 0 12px !important;
  }
  .rs-pos-filtros {
    position: relative;
  }
  .rs-pos-ferreteria .productos-pos {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  }
  .rs-pos-footer-actions {
    position: sticky;
    bottom: 0;
  }
}

@media (max-width: 620px) {
  .rs-pos-topbar {
    min-height: auto;
    padding: 7px 8px;
  }
  .rs-pos-brand-icon,
  .rs-pos-brand .inicio-pos {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
  .rs-pos-brand-copy strong {
    font-size: 13px;
  }
  .rs-pos-brand-copy span {
    font-size: 9px;
  }
  .rs-pos-top-actions kbd,
  .rs-pos-top-actions button span {
    display: none;
  }
  .rs-pos-top-actions button {
    width: 34px;
    padding: 0;
    justify-content: center;
  }
  .rs-pos-topbar .container-comprobants-pos {
    height: 40px;
  }
  .rs-pos-topbar .container-comprobants-pos label {
    height: 30px;
    padding: 0 4px;
    font-size: 8px;
  }
  .rs-pos-topbar .container-comprobants-pos label i {
    display: none;
  }
  .rs-pos-ferreteria .box-body {
    padding: 6px !important;
  }
  .rs-pos-filtros {
    grid-template-columns: 1fr;
  }
  .rs-pos-filtro-secundario {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .rs-pos-filtros select.form-control,
  .rs-pos-filtros .select2-container .select2-selection--single {
    min-width: 0;
  }
  .rs-pos-ferreteria .productos-pos {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }
  .rs-pos-ferreteria .productos-pos-venta {
    min-height: 292px;
  }
  .rs-pos-ferreteria .pos-img-wrapper {
    height: 102px !important;
  }
  .rs-pos-product-meta {
    min-height: 30px;
  }
  .rs-pos-scanbar {
    grid-template-columns: 34px 1fr auto;
  }
  .rs-pos-scan-copy {
    display: none;
  }
  .rs-pos-footer-actions {
    grid-template-columns: 1fr 62px;
  }
  .rs-pos-footer-actions .btnGuardarVentaPos {
    grid-template-columns: 32px 1fr;
  }
  .rs-pos-footer-actions .btnGuardarVentaPos kbd {
    display: none;
  }
  .btn-presentacion-item {
    grid-template-columns: 38px 1fr;
  }
  .btn-presentacion-price {
    grid-column: 2;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .rs-pos-ferreteria .productos-pos {
    grid-template-columns: 1fr !important;
  }
  .rs-pos-ferreteria .productos-pos-venta {
    min-height: 280px;
  }
}

/* ROCASELVA Act.09 - niveles de precio */
.rs-pos-auto-price-box{padding:10px 12px;border:1px solid #d9e8df;border-radius:8px;background:#f5faf7;color:#315c49;line-height:1.35}.rs-pos-auto-price-box i{color:#2d7a56}.rs-pos-price-level{display:inline-block;margin-top:4px;font-size:10px;background:#eef4f1;color:#315c49;border:1px solid #d8e6df;padding:3px 6px}


/* =========================================================
   ROCASELVA 09.7 - Selector P1 / P2 / P3 en carrito POS
   ========================================================= */
.rs-pos-price-cell {
  min-width: 165px;
}
.rs-pos-price-control {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}
.rs-pos-price-control .nivelpreciopos {
  width: 105px;
  min-width: 105px;
  height: 31px;
  border: 1px solid #cfd9d4;
  border-radius: 6px;
  background: #f7fbf9;
  color: #0d5139;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 4px;
  cursor: pointer;
}
.rs-pos-price-control .nivelpreciopos:focus {
  border-color: #167a57;
  outline: none;
  box-shadow: 0 0 0 2px rgba(22,122,87,.12);
}
.rs-pos-price-control .nivelpreciopos:disabled {
  opacity: .65;
  cursor: wait;
}
.rs-pos-price-control .preciounitariopos {
  width: 68px !important;
  min-width: 68px;
  height: 31px;
  text-align: right;
  border-radius: 6px;
}
@media (max-width: 1100px) {
  .rs-pos-price-control {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }
  .rs-pos-price-control .nivelpreciopos,
  .rs-pos-price-control .preciounitariopos {
    width: 100% !important;
    min-width: 0;
  }
}

/* =========================================================
   ROCASELVA 09.8 - Selector rápido P1/P2/P3
   ========================================================= */
.rs-pos-price-control-clean {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
}
.rs-pos-price-chip {
  min-width: 120px;
  max-width: 155px;
  min-height: 38px;
  padding: 5px 7px;
  border: 1px solid #cfe0d8;
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: 28px 1fr 12px;
  align-items: center;
  gap: 5px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(14, 68, 49, .06);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.rs-pos-price-chip:hover,
.rs-pos-price-chip:focus {
  border-color: #1b7959;
  box-shadow: 0 0 0 2px rgba(27, 121, 89, .10);
  outline: none;
  transform: translateY(-1px);
}
.rs-pos-price-chip.is-loading {
  opacity: .65;
  pointer-events: none;
}
.rs-pos-price-chip-level {
  height: 27px;
  min-width: 27px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2px;
  background: #147653;
}
.rs-pos-level-p2 .rs-pos-price-chip-level { background: #2877b6; }
.rs-pos-level-p3 .rs-pos-price-chip-level { background: #b97919; }
.rs-pos-level-manual .rs-pos-price-chip-level {
  min-width: 43px;
  font-size: 8px;
  background: #6b7280;
}
.rs-pos-price-chip-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}
.rs-pos-price-chip-main strong {
  color: #163d31;
  font-size: 12px;
  white-space: nowrap;
}
.rs-pos-price-chip-main small {
  color: #7b8d86;
  font-size: 8px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rs-pos-price-chip > i {
  color: #8ba198;
  font-size: 9px;
}
.rs-pos-manual-price-btn {
  width: 29px;
  min-width: 29px;
  height: 29px;
  border: 1px solid #d7e1dd;
  border-radius: 7px;
  background: #f8faf9;
  color: #60736c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.rs-pos-manual-price-btn:hover,
.rs-pos-manual-price-btn:focus {
  color: #a36a13;
  border-color: #e0c58e;
  background: #fffaf0;
  outline: none;
}

/* Modal selector */
.rs-pos-price-picker-dialog {
  width: 470px;
  max-width: calc(100vw - 24px);
  margin: 8vh auto 20px;
}
.rs-pos-price-picker-modal .modal-content {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 40, 29, .24);
}
.rs-pos-price-picker-header {
  padding: 16px 19px 14px;
  background: linear-gradient(135deg, #0c4b37 0%, #176b4f 100%);
  color: #fff;
  border: 0;
}
.rs-pos-price-picker-header .close {
  color: #fff;
  opacity: .9;
  text-shadow: none;
  font-size: 25px;
}
.rs-pos-price-picker-kicker {
  font-size: 9px;
  letter-spacing: 1.3px;
  font-weight: 800;
  color: #f2bf4e;
  margin-bottom: 3px;
}
.rs-pos-price-picker-header .modal-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}
.rs-pos-price-picker-product {
  margin: 4px 30px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.82);
  line-height: 1.35;
}
.rs-pos-price-picker-modal .modal-body {
  padding: 16px 18px 17px;
  background: #f8fbf9;
}
.rs-pos-price-picker-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.rs-pos-price-picker-meta span {
  background: #eef5f1;
  color: #45645a;
  border: 1px solid #dce9e3;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
}
.rs-pos-price-picker-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  margin-bottom: 12px;
  border: 1px solid #dfe9e4;
  border-radius: 9px;
  background: #fff;
  color: #325247;
  font-size: 11px;
  font-weight: 700;
}
.rs-pos-price-picker-stepper {
  display: grid;
  grid-template-columns: 34px 74px 34px;
  height: 34px;
  border: 1px solid #cfddd7;
  border-radius: 8px;
  overflow: hidden;
}
.rs-pos-price-picker-stepper button {
  border: 0;
  background: #eef5f2;
  color: #185c45;
  cursor: pointer;
}
.rs-pos-price-picker-stepper input {
  min-width: 0;
  border: 0;
  border-left: 1px solid #dbe6e1;
  border-right: 1px solid #dbe6e1;
  text-align: center;
  font-weight: 800;
  color: #193d31;
  outline: none;
}
.rs-pos-price-picker-options {
  display: grid;
  gap: 8px;
}
.rs-pos-price-option {
  width: 100%;
  min-height: 65px;
  border: 1px solid #d9e5df;
  border-radius: 10px;
  background: #fff;
  display: grid;
  grid-template-columns: 42px 1fr auto 16px;
  gap: 9px;
  align-items: center;
  padding: 9px 11px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.rs-pos-price-option:hover,
.rs-pos-price-option:focus {
  border-color: #24825f;
  box-shadow: 0 0 0 3px rgba(36,130,95,.08);
  transform: translateY(-1px);
  outline: none;
}
.rs-pos-price-option.is-current {
  border-color: #2b8464;
  background: #f5fbf8;
}
.rs-pos-price-option-badge {
  width: 39px;
  height: 39px;
  border-radius: 9px;
  background: #147653;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}
.rs-pos-price-option-p2 .rs-pos-price-option-badge { background: #2877b6; }
.rs-pos-price-option-p3 .rs-pos-price-option-badge { background: #b97919; }
.rs-pos-price-option-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rs-pos-price-option-copy strong {
  color: #173e31;
  font-size: 13px;
}
.rs-pos-price-option-copy small {
  color: #86968f;
  font-size: 9px;
  margin-top: 2px;
}
.rs-pos-price-option-value {
  font-size: 18px;
  font-weight: 900;
  color: #163e31;
  white-space: nowrap;
}
.rs-pos-price-option-check {
  color: #7d968c;
  font-size: 12px;
}
.rs-pos-price-option.is-current .rs-pos-price-option-check { color: #20805e; }
.rs-pos-price-picker-note,
.rs-pos-manual-price-help {
  margin-top: 11px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff8e9;
  border: 1px solid #f0dfb4;
  color: #766130;
  font-size: 9px;
  line-height: 1.45;
}
.rs-pos-manual-price-help {
  margin: 0;
  text-align: left;
  font-size: 11px;
}

/* Con el nuevo chip ya no se necesita el ancho del antiguo select + input */
.rs-pos-price-cell { min-width: 150px; }

@media (max-width: 1100px) {
  .rs-pos-price-control-clean {
    flex-direction: row !important;
    align-items: center !important;
  }
  .rs-pos-price-chip {
    min-width: 105px;
    max-width: 135px;
  }
}
@media (max-width: 560px) {
  .rs-pos-price-picker-dialog { margin-top: 4vh; }
  .rs-pos-price-picker-modal .modal-body { padding: 13px; }
  .rs-pos-price-option {
    grid-template-columns: 36px 1fr auto 12px;
    padding: 8px;
  }
  .rs-pos-price-option-badge { width: 34px; height: 34px; }
  .rs-pos-price-option-value { font-size: 16px; }
}


/* =========================================================
   ROCASELVA 09.9 - Celda de precio compacta y estable
   ========================================================= */
.rs-pos-ferreteria .rs-pos-price-cell {
  min-width: 150px !important;
  width: 150px;
  padding-left: 5px !important;
  padding-right: 5px !important;
  vertical-align: middle !important;
}
.rs-pos-ferreteria .rs-pos-price-control-clean {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 5px !important;
  width: 100% !important;
  min-width: 0 !important;
}
.rs-pos-ferreteria .rs-pos-price-chip,
.rs-pos-ferreteria button.rs-pos-price-chip {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: grid !important;
  grid-template-columns: 29px minmax(68px, 1fr) 10px !important;
  align-items: center !important;
  gap: 4px !important;
  width: 116px !important;
  min-width: 116px !important;
  max-width: 116px !important;
  height: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 2px 5px 2px 3px !important;
  border: 1px solid #cbdcd4 !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #173f32 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  line-height: 1 !important;
  overflow: hidden !important;
}
.rs-pos-ferreteria .rs-pos-price-chip:hover,
.rs-pos-ferreteria .rs-pos-price-chip:focus {
  border-color: #167653 !important;
  background: #f7fbf9 !important;
  box-shadow: 0 0 0 2px rgba(22,118,83,.10) !important;
  transform: none !important;
  outline: none !important;
}
.rs-pos-ferreteria .rs-pos-price-chip-level {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 27px !important;
  min-width: 27px !important;
  height: 25px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 5px !important;
  color: #fff !important;
  background: #147653 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}
.rs-pos-ferreteria .rs-pos-level-p2 .rs-pos-price-chip-level { background: #2877b6 !important; }
.rs-pos-ferreteria .rs-pos-level-p3 .rs-pos-price-chip-level { background: #b97919 !important; }
.rs-pos-ferreteria .rs-pos-level-manual .rs-pos-price-chip-level {
  background: #68737a !important;
  font-size: 8px !important;
}
.rs-pos-ferreteria .rs-pos-price-chip-value {
  display: block !important;
  min-width: 0 !important;
  color: #173f32 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.rs-pos-ferreteria .rs-pos-price-chip > i {
  margin: 0 !important;
  color: #71877e !important;
  font-size: 8px !important;
}
.rs-pos-ferreteria .rs-pos-manual-price-btn {
  flex: 0 0 29px !important;
  width: 29px !important;
  min-width: 29px !important;
  height: 29px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #d8e2dd !important;
  border-radius: 7px !important;
  background: #f7faf8 !important;
  color: #687a72 !important;
  box-shadow: none !important;
}
.rs-pos-ferreteria .rs-pos-manual-price-btn:hover,
.rs-pos-ferreteria .rs-pos-manual-price-btn:focus {
  background: #fff8e8 !important;
  border-color: #e0c276 !important;
  color: #a16b08 !important;
  outline: none !important;
}
/* Anula el bloque textual de 09.8 si el navegador conserva reglas mezcladas. */
.rs-pos-ferreteria .rs-pos-price-chip-main { display: none !important; }

@media (max-width: 1180px) {
  .rs-pos-ferreteria .rs-pos-price-cell { min-width: 142px !important; width: 142px; }
  .rs-pos-ferreteria .rs-pos-price-chip,
  .rs-pos-ferreteria button.rs-pos-price-chip {
    width: 108px !important;
    min-width: 108px !important;
    max-width: 108px !important;
    grid-template-columns: 27px minmax(60px,1fr) 9px !important;
  }
  .rs-pos-ferreteria .rs-pos-price-chip-value { font-size: 11px !important; }
}
