/* base.css consolidado por selector.
   Orden = primera aparición. Propiedades = primera aparición de cada propiedad. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: #F6F0E6;
}

.app,
.pantalla {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  margin: auto;
  background: #F6F0E6;
  display: flex;
  flex-direction: column;
}

.titulo {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  flex: 1;
  font-family: 'Playfair Display', serif;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primario);
  flex-grow: 1;
}

.btn-volver,
.btn-home {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--primario);
  display: flex;
  justify-content: center;
  align-items: center;
}

.contenido {
  flex: 1;
  padding: 12px;
  padding-bottom: 180px;
  display: flex;
  flex-direction: column;
  overflow-x: visible;
  overflow-y: hidden;
  min-height: 0;
}

.barra-superior {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.buscar-cliente {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
}

.nuevo-cliente,
.nuevo-proveedor {
  width: 44px;
  background: #D8EDC8;
  color: #2E6B2E;
  font-weight: 700;
}

.btn-secundario {
  flex: 1;
  width: auto;
  background: #D8EDC8;
  color: #2E6B2E;
  font-weight: 700;
}

.clientes-lista > div,
.proveedores-lista > div {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

#listaProductos > div {
  /* padding: 10px 0; */
  border-bottom: none;
}



.card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  padding: 14px 16px;
  /* margin: 10px 10px 0 10px; */
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  /* margin-bottom: 8px; */
}

.card-row {
  width: 100%;
  padding-left: 5px;
  padding-right: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.card-left {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.card-sub {
  font-size: 13px;
  font-weight: 600;
  color: aaa4a4;
  line-height: 1.2;
  flex: 1;
  margin-top: 0;
  text-align: center;
}

.card-right {
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  flex: 1;
}

/* .card-importacion {
    overflow: visible;
} */

.formulario {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 120px;
}

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

.campo label {
  font-size: 12px;
  color: #666;
}

.telefono-whatsapp-row {
  display: flex;
  gap: 10px;
}

.telefono-col,
.whatsapp-col {
  flex: 1;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
}

.lista-row input {
  text-align: center;
}

button {
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

button:active,
.card:active,
.cliente-item:active,
.documento-item:active {
  background: #f2f2f2;
}

.acciones-cliente button,
.acciones-proveedor button {
  flex: 1;
  font-size: 12px;
  padding: 10px;
}

.sin-stock {
  color: #dc3545;
  font-weight: 600;
}

.clientes-lista,
.proveedores-lista,
#listaProductos,
#listaDocumentos {
  overflow-y: auto;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18,18,18,0.4);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.modal * {
  transform: none !important;
}

.modal-card {
  background: #fff;
  width: 80%;
  max-width: 280px;
  padding: 20px;
  border-radius: 12px;
}

.oculto {
  display: none !important;
}

.acciones-cliente,
.acciones-proveedor {
  display: flex;
  gap: 8px;
}

.nuevo-cliente {
  width: 44px;
}

.contenedor-menu {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0cap 16px 24px;
  gap: 0;
  box-sizing: border-box;
}

.panel-home {
  padding: 10px;
  width: 100%;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* border: 1px solid #111; */
  margin-top: 20px;
}

.panel-home h2 {
  margin: 0;
}

#logoHome {
  width: 360px;
  height: auto;
  display: block;
}

.btn-categoria {
  width: 100%;
  min-height: 72px;
  padding: 16px 18px;
  margin: 8px 0;
  border: 1px solid #d6d6d6;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,.12);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: background-color .08s,
    transform .08s,
    box-shadow .08s;
}

.btn-categoria:active {
  background: #8DBBFF;
  color: #ffffff;
  border-color: #3E7EDB;
  transform: translateY(4px)
    scale(.96);
  box-shadow: inset 0 3px 8px rgba(0,0,0,.25);
}

.menu-item {
  padding: 14px 0;
  border-bottom: 1px solid #F0EBE5;
  font-size: 11px;
}

.clientes-lista,
.proveedores-lista,
#listaProductos {
  flex: 1;
  overflow-y: auto;
}

#itemsVenta {
  padding-bottom: 400px !important;
}

.menu-desplegable {
  background: #fff;
  padding: 5px 20px;
  border-left: 2px solid #E5E1DA;
  margin-top: -1px;
  display: none;
}

.header {
  background-color: var(--blanco);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--suave);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.seccion {
  border-bottom: 1px solid #eee;
}

.titulo-seccion {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0px;
  color: #111;
  padding: 10px;
}

.subtitulo-seccion {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  color: #777;
  padding: 10px;
}

#nombreProducto {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
}

#cantidad {
  font-size: 22px;
  font-weight: 600;
  flex: 1;
  text-align: center;
}

.cantidad-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cantidad-container button {
  flex: 0 0 44px;
  height: 44px;
}

#precioInput {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-bottom: 1px solid #ddd;
  margin: 10px 0;
}

.subtotal {
  font-size: 12px;
  color: #777;
  text-align: center;
}

#subtotal {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

.modal .cta {
  margin-top: 12px;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin: 12px auto 0 auto;
  width: 80%;
  text-align: center;
}

.fab {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 18px;
  background: #26619C;
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
}

#accionesDoc {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  box-sizing: border-box;
  background: #fff;
}

.contenido .card {
  padding: 5;
  border-radius: 10px;
  overflow: hidden;
  font-size: 12px;
}

.contenido .card.card-preview-importacion {
    padding: 5;
    border-radius: 10px;
    overflow: visible;
    position: relative;
}
.contenido .card-row {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: none;
  cursor: pointer;
}

.contenido .card-row:active {
  background: #f5f5f5;
}

.item-indice {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #333;
  margin-right: 10px;
}

.card.resumen .total {
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.total-prendas {
  font-size: 13px;
  color: #777;
}

.card.resumen .label {
  text-align: center;
}

#btnCancelar,
#btnConfirmar,
#btnProforma,
#btnDescuento {
  position: relative;
  height: 40px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
}

#btnConfirmar {
  flex: 1.6;
  width: auto;
  background: #111;
  color: #fff;
}

#btnProforma {
  flex: 1;
  width: auto;
  background: #ddd;
}

#btnCancelar,
#btnDescuento {
  flex: 1;
  width: auto;
}

#btnConfirmar .progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,0.25);
  z-index: 0;
  transition: width linear;
}

.progress-danger {
  background-color: red;
}

.cliente-header {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.cliente-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.cliente-nombre {
  font-weight: bold;
  font-size: 18px;
}

.cliente-flecha {
  transition: transform 0.2s ease;
}

.cliente-detalle {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
}

.backup-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bloque {
  border-top: 1px solid #eee;
  padding-top: 15px;
  margin: 12px;
}

.bloque:first-child {
  border-top: none;
  padding-top: 0;
}

.bloque-header {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
}

.bloque-desc {
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
}

.full {
  width: 100%;
}

.input-file {
  width: 100%;
  margin-bottom: 10px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.check-list input {
  margin-right: 8px;
  margin: 0;
  transform: translateY(1px);
  width: 16px;
  height: 16px;
}

.btn-danger {
  background: #111;
  color: #fff;
  border-radius: 10px;
  padding: 12px;
  font-weight: 600;
}

.peligro .bloque-header {
  color: #c0392b;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filtros-fecha-rapida {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filtros-fecha-rapida-botones {
  display: flex;
  gap: 6px;
}

.filtros-fecha-rapida-botones button {
  flex: 1;
  padding: 10px;
  font-size: 12px;
  line-height: 1.1;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  border: 1px solid #d6d6d6;
  background: #fff;
}

.filtros-fecha-rapida-botones button.activo {
  background: #111;
  color: #fff;
}

.filtros-fecha-rapida-campos {
  display: grid;
  grid-template-columns: minmax(0,96px)
    minmax(0,calc(100% - 192px))
    minmax(0,96px);
  gap: 6px;
  align-items: center;
  width: 100%;
}

.filtros-fecha-rapida-campos > * {
  min-width: 0;
}

#fechaDesde,
#fechaHasta {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  display: block;
  padding-left: 0;
  padding-right: 0;
  text-indent: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: -0.5px;
  overflow: visible;
  appearance: none;
  -webkit-appearance: none;
}

#fechaDesde::-webkit-calendar-picker-indicator,
#fechaHasta::-webkit-calendar-picker-indicator {
  display: none;
  opacity: 0;
  pointer-events: none;
  -webkit-appearance: none;
}

#fechaDesde::-webkit-clear-button,
#fechaHasta::-webkit-clear-button,

#fechaDesde::-webkit-inner-spin-button,
#fechaHasta::-webkit-inner-spin-button {
  display: none;
}

.total-periodo-contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.titulo-periodo {
  width: 100%;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  line-height: 1.1;
  text-align: center;
}

.fecha-columna {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.fecha-titulo {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  color: #666;
  text-align: center;
  white-space: nowrap;
  margin-bottom: 4px;
}

.total-periodo-titulo {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  color: #666;
  text-align: center;
  white-space: nowrap;
  margin-bottom: 4px;
}

.total-periodo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 6px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  font-size: 17px;
  font-weight: 700;
  color: #111;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#buscarProductoReporte {
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

#buscarProductoReporte::placeholder {
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

.filtros-documentos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.filtros-documentos input {
  flex: 1;
}

.btn-exportar-pdf {
  width: 100%;
  height: 44px;
  margin: 10px 0 0 0;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.container h2 {
  text-align: center;
}

.filtros-documentos select {
  height: 38px;
}

#btnEditar {
  margin-right: 16px;
}

.botones-formulario {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.botones-formulario button {
  flex: 1;
}

.precios-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  background: #fafafa;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.costo-col,
.sugerido-col,
.venta-col {
  width: 92px;
  min-width: 92px;
}

.markup-col {
  width: 52px;
  min-width: 52px;
}

.precio-label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #888;
  text-align: center;
}

.costo-col input,
.markup-col input,
.venta-col input {
  width: 100%;
  text-align: center;
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
}

.precio-sugerido-box {
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
}

.markup-col input {
  padding-left: 0;
  padding-right: 0;
}

.btn-primario {
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.estado {
  margin-top: 10px;
}

.estado-opciones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.estado-opciones label {
  display: flex;
  align-items: center;
  margin: 0;
}

.estado-opciones label span {
  font-size: 16px;
}

.labelNC {
  margin: 6px;
}

.estado-opciones input[type="radio"] {
  margin: 0;
}

.estado-opciones label:first-child {
  flex-direction: row;
  gap: 10px;
}

.estado-opciones label:last-child {
  flex-direction: row-reverse;
  gap: 10px;
}

#selectOrdenDocs {
  width: auto;
  min-width: 170px;
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
  flex: 0 0 auto;
  max-width: 140px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fafafa;
  font-weight: 500;
  color: #222;
}

.toolbar-documentos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 4px 10px 10px 10px;
  padding: 10px 12px;
  background: #F6F0E6;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.toolbar-titulo {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
}

.preview-productos-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.preview-producto-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.preview-producto-codigo {
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  font-size: 13px;
  margin-left: 10px;
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-producto-nombre {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111;
  font-weight: 500;
  font-size: 13px;
  min-width: 0;
  margin-left: 20px;
}

.preview-producto-card {
  padding: 16px 16px;
  min-height: 72px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 16px;
}

.preview-producto-header {
  display: grid;
  grid-template-columns: 54px
    1fr;
  column-gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
  padding: 0 4px;
}

.preview-producto-datos {
  display: grid;
  grid-template-columns: 54px
    1fr
    1fr;
  column-gap: 10px;
  align-items: center;
  font-size: 14px;
  margin: 10px;
  padding-top: 8px;
  border-top: 1px solid #eee;
  margin-top: 10px;
  padding: 10px 4px 0;
}

.preview-producto-cantidad {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
  text-align: center;
  font-size: 13px;
}

.preview-producto-neto,
.preview-producto-costo {
  text-align: center;
  font-weight: 700;
  color: #111;
  font-size: 13px;
}

.preview-proveedor-card {
  background: #ECE9E2;
  border: 1px solid #DDD7CC;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 18px 0
    10px 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.preview-proveedor-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.preview-proveedor-selector select {
  flex: 1;
  min-width: 0;
}

.btn-nuevo-proveedor {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}

.preview-proveedor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.preview-proveedor-nombre {
  font-size: 16px;
  font-weight: 700;
  color: #2B2B2B;
  letter-spacing: .2px;
}

.preview-proveedor-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-stat-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  background: #F8F7F4;
  border: 1px solid #D8D2C7;
  color: #5A5A5A;
}

.resumen-docs {
  margin: 10px 0px 0px 0px;
  background: #F6F0E6;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  font-size: 12px;
  font-weight: 500;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  justify-content: space-evenly;
}

.resumen-docs::-webkit-scrollbar {
  display: none;
}

.resumen-header {
  position: relative;
  width: 100%;
  height: 72px;
  margin-left: 0px;
}

.resumen-docs-count {
  position: absolute;
  top: 8px;
  left: 0;
  width: 72px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  line-height: 1;
}

.resumen-docs-count span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  color: #999;
  text-transform: uppercase;
}

.resumen-total-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #999;
  line-height: 1;
}

.resumen-total-value {
  font-size: 20px;
  font-weight: 600;
  line-height: .8;
  color: #111;
  margin: 10px;
  text-align: right;
  height: auto;
  width: 60px;
}

.resumen-bottom {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  margin-left: 0px;
  padding-right: 10px;
  overflow-x: auto;
}

.doc-detail {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.doc-tipo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .5px;
}

.doc-entidad {
  margin-top: 6px;
  font-size: 16px;
  color: #444;
}

.doc-total-box {
  text-align: right;
}

.doc-total-label {
  font-size: 11px;
  color: #777;
  letter-spacing: .5px;
}

.doc-total {
  font-size: 24px;
  font-weight: 700;
}

.doc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.doc-meta-item {
  background: #f8f8f8;
  border-radius: 14px;
  padding: 12px;
}

.doc-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 6px;
}

.doc-meta-value {
  font-size: 15px;
  font-weight: 600;
}

.doc-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-item {
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 14px;
}

.doc-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.doc-item-codigo {
  font-size: 12px;
  font-weight: 700;
  color: #666;
}

.doc-item-nombre {
  font-size: 17px;
  margin-top: 2px;
}

.doc-item-subtotal {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.doc-item-bottom {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  font-size: 14px;
  color: #555;
}

.estado-anulado {
  color: #d11;
}

.doc-list-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  padding: 16px;
  margin: 0 10px 12px 10px;
  cursor: pointer;
  transition: .15s;
}

.doc-list-card:active {
  transform: scale(.99);
}

.doc-list-left {
  min-width: 0;
}

.doc-list-tipo {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.doc-list-entidad {
  margin-top: 6px;
  font-size: 15px;
  color: #333;
}

.doc-list-fecha {
  margin-top: 4px;
  font-size: 13px;
  color: #777;
}

.doc-list-right {
  text-align: right;
  flex-shrink: 0;
}

.doc-list-total {
  font-size: 20px;
  font-weight: 700;
}

.doc-list-estado {
  margin-top: 4px;
  font-size: 13px;
  color: #666;
}

.dropdown-tipo {
  position: relative;
  width: 100%;
}

.dropdown-tipo-btn {
  width: 100%;
  height: 36px;
  border: none;
  border-radius: 14px;
  background: #fff;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  cursor: pointer;
}

.dropdown-arrow {
  font-size: 11px;
}

.dropdown-tipo-menu {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  overflow: hidden;
  z-index: 50;
}

.dropdown-item {
  width: 100%;
  border: none;
  background: #fff;
  text-align: left;
  padding: 14px 16px;
  font-size: 14px;
  cursor: pointer;
}

.dropdown-item.active {
  background: #f4f4f4;
  font-weight: 600;
}

.dropdown-item:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  margin-bottom: 2px;
}

.card-title {
  font-size: 16x;
  font-weight: 600;
  line-height: 1.2;
  margin: 5px;
}

.totales-subtitulo {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  color: #555;
  line-height: 1.2;
}

.totales-subtitulo span {
  flex: 1;
  text-align: center;
}

.card-top,
.card-bottom {
  display: grid;
  grid-template-columns: 70px
    1fr
    auto;
  align-items: center;
  column-gap: 10px;
}

.card-price,
.stock-right {
  margin-left: auto;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.doc-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.doc-detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.doc-detail-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-detail-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.doc-detail-item-bottom {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

.doc-detail-item-subtotal {
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.doc-detail-tipo {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.doc-detail-entidad {
  margin-top: 4px;
  font-size: 14px;
  color: #555;
}

.doc-detail-total-box {
  text-align: right;
}

.doc-detail-total-label {
  font-size: 11px;
  color: #777;
  margin-bottom: 2px;
}

.doc-detail-total {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.doc-detail-meta-label {
  font-size: 11px;
  color: #777;
  margin-bottom: 2px;
}

.doc-detail-meta-value {
  font-size: 14px;
  font-weight: 500;
}

.doc-detail-item {
  padding: 10px 0;
  border-top: 1px solid #eee;
}

.doc-detail-item-codigo {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.doc-detail-item-nombre {
  margin-top: 4px;
  font-size: 14px;
  color: #333;
}

.pantalla-cobro {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cobro-cliente-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  padding: 14px 16px;
}

.cobro-cliente-nombre {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.cobro-cliente-zona {
  margin-top: 4px;
  font-size: 13px;
  color: #777;
}

.cobro-form {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  overflow: visible;
}

.cobro-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  column-gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.cobro-row:last-child {
  border-bottom: none;
}

.cobro-label {
  padding-left: 0;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  white-space: nowrap;
}

.cobro-input {
  width: 100%;
  min-height: 44px;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: .15s;
}

.cobro-resumen {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  padding: 14px 16px;
}

.cobro-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cobro-total-label {
  font-size: 14px;
  color: #666;
}

.cobro-total-valor {
  font-size: 24px;
  font-weight: 700;
}

.btn-confirmar-cobro {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.cobro-input:focus {
  border-color: #ddd;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.cheque-banco-wrap {
  position: relative;
}

.cheque-banco-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-card);
  border: 1px solid var(--color-borde);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
}

.cheque-item {
  overflow: visible;
}

.contenido,
.formulario,
.campo,
.cheque-item {
  overflow: visible !important;
}

.cheque-banco-btn {
  width: 100%;
}

.cheque-banco-item {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 14px;
  text-align: left;
  min-height: 36px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.cheque-banco-item:hover {
  background: rgba(255,255,255,.05);
}

.cheque-banco-menu.oculto {
  display: none;
}

.cheque-numero,
.cheque-monto {
  font-size: 14px !important;
  font-weight: 500 !important;
}

.cheque-numero::placeholder,
.cheque-monto::placeholder {
  font-size: 14px;
  font-weight: 500;
  color: #777;
}

.progress-animando {
  transition: width linear;
}

.progress-activo {
  width: 100%;
}

.progress {
  width: 0;
  background: red;
  transition: width 1000ms linear;
}

.progress.progress-danger {
  background: red !important;
}

.dropdown-menu-wrap {
  position: relative;
  width: 100%;
}

.dropdown-menu-btn {
  width: 100%;
  min-height: 36px;
  border: none;
  border-radius: 12px;
  background: #f3f3f3;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.dropdown-menu-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
}

.dropdown-menu-list.oculto {
  display: none;
}

.dropdown-menu-item {
  border: none;
  background: #fff;
  padding: 8px 14px;
  min-height: 32px;
  text-align: left;
  cursor: pointer;
}

.dropdown-menu-item:hover {
  background: #f5f5f5;
}

.dropdown-menu-item.active {
  background: #ececec;
}

.cliente-filtros-top {
  display: grid;
  grid-template-columns: minmax(0,3fr)
    minmax(0,1fr);
  gap: 10px;
  width: 100%;
}

.cliente-filtros-top > * {
  min-width: 0;
  margin-bottom: 10px;
}

.cliente-filtros-body {
  width: 100%;
  background: #F6F0E6;
}

.cliente-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  gap: 10px;
}

.cliente-card-nombre {
  font-weight: bold;
  font-size: 16px;
}

.cliente-card-flecha {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cliente-card-left {
  flex: 1;
  min-width: 0;
}

.cliente-card-detalle {
  font-size: 12px;
  color: #777;
}

.cliente-card-saldo {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

#clienteDetalle,
#filtrosDocsContenido {
  width: 100%;
  margin-top: 0;
  padding: 6px 0;
  border: none;
  border-radius: 0;
  background: #F6F0E6;
}

.cliente-editar-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.inventario-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin-top: 4px !important;
}

.inventario-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 6px;
}



.inventario-box {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.inventario-box-label {
  font-size: 11px;
  opacity: .7;
  margin-bottom: 4px;
}

.inventario-box-value {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.inventario-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stock-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  padding: 14px 16px;
  margin: 10px 10px 0 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.stock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.stock-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.stock-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.stock-sub {
  font-size: 14px;
  color: #666;
  line-height: 1.1;
}

.stock-value {
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.stock-card-grid {
  display: grid;
  grid-template-columns: 1fr
    50px
    62px
    62px;
  align-items: center;
  column-gap: 0;
  width: 100%;
}

.stock-col-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 2px;
  padding-right: 12px;
}

.stock-col-left .stock-strong {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.stock-col-left > div:nth-child(2) {
  font-size: 15px;
  color: #111;
  line-height: 1.05;
}

.stock-col-left > div:nth-child(3) {
  font-size: 13px;
  color: #777;
  line-height: 1.05;
}

.stock-col-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 54px;
  border-left: 1px solid #ececec;
  padding: 0 2px;
}

.stock-col-label {
  font-size: 11px;
  color: #777;
  line-height: 1;
}

.stock-col-value {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.stock-strong {
  font-weight: 700;
}

.backup-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  height: 20px;
  display: flex;
  align-items: center;
  position: relative;
}

.backup-marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  padding-left: 0;
  animation: backupScroll 40s linear infinite;
  font-size: 12px;
  font-weight: 600;
  color: #856404;
}

.aviso-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.backup-marquee:nth-child(2) .backup-marquee-track {
  animation-delay: 8s;
}

@keyframes backupScroll {

  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }

}

.resumen-chip-card {
  width: 50px;
  height: 46px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}

.resumen-chip-label {
  font-size: 10px;
  font-weight: 600;
  color: #666;
  line-height: 1;
}

.resumen-chip-value {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  color: #111;
}

.backup-export-layout {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-top: 16px;
  width: 100%;
}

.backup-export-layout .check-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.backup-export-btn {
  flex: 0 0 118px;
  min-width: 118px;
  border: none;
  border-radius: 18px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  padding: 14px 10px;
  white-space: normal;
  align-self: stretch;
}

.proveedor-seleccionado {
  display: flex;
  flex-direction: column;
}

.proveedor-seleccionado-nombre {
  font-weight: 600;
}

.proveedor-seleccionado-saldo {
  font-size: 12px;
}

.selector-card-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.selector-card-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}

.selector-card-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  white-space: nowrap;
}

.selector-card-saldo {
  font-size: 12px;
  font-weight: 600;
  color: #444;
}

.selector-card-arrow {
  font-size: 11px;
  color: #666;
}

.entidad-selector-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
}

.entidad-selector-name {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entidad-selector-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.entidad-selector-balance {
  font-size: 16px;
  font-weight: 700;
  color: #444;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
  text-align: right;
}

.entidad-selector-arrow {
  font-size: 11px;
  color: #666;
  line-height: 1;
}

.entidad-selector-root {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.clienteHeader {
  width: 100%;
}

.entidad-selector-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #666;
  line-height: 1;
}

.entidad-selector-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.cliente-expandido
.entidad-selector-chevron {
  transform: rotate(180deg);
}

.resumen-documentos-cliente
.resumen-layout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.resumen-documentos-cliente
.resumen-chip-card {
  width: 100%;
  min-width: 0;
}

.resumen-documentos-cliente
.resumen-total-box {
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

#btnProductosHuerfanos.activo {
  background: #111;
  color: #fff;
}

.btn-nueva-venta,
.btn-nc,
.btn-nd,
.btn-cobrar {
  border: 1px solid #d6d6d6;
  background: #fff;
}

.container,
.contenido {
  padding: 12px;
  box-sizing: border-box;
}

.estado-documento {
  font-size: 9px;
  font-weight: 400;
  color: #777;
  line-height: 1;
}

.fila-codigo-nombre {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
}

.costo-box {
  margin-bottom: 12px;
}

.listas-precio {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.listas-header,
.lista-row {
  display: grid;
  grid-template-columns:
    70px
    1fr
    1fr
    90px;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.listas-header {
  font-size: .75rem;
  opacity: .7;
  text-align: center;
}

.listas-header span:first-child {
  text-align: left;
}

.lista-nombre {
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.btn-mini {
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.producto-precios{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  width:100%;
  margin:10px 0 8px;
  border-top:1px solid #ececec;
  border-bottom:1px solid #ececec;
}

.producto-precio-col{
  display:contents;
}

.producto-precio-label,
.producto-precio-valor{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  text-align:center;
}

.producto-precio-label{
  font-size:11px;
  font-weight:600;
  color:#777;
  border-right:1px solid #ececec;
}

.producto-precio-valor{
  font-size:13px;
  font-weight:700;
  border-top:1px solid #ececec;
  border-right:1px solid #ececec;
}

.producto-precio-label:nth-child(4),
.producto-precio-valor:last-child{
  border-right:none;
}

.btn-agregar-wrap {
  position: fixed;
  left: 50%;
  width: 100%;
  max-width: 420px;
  transform: translateX(-50%);
  bottom: 70px;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
}

.btn-agregar-circular {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #D8EDC8;
  color: #2E6B2E;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 70px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.buscador {
  margin: 8px 0 0 0;
}

.venta-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.venta-toolbar .buscador {
  flex: 1;
}

#canalVenta {
  width: 100px;
  flex-shrink: 0;
}

.herramienta-precios-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.generador-grid {
  display: grid;
  grid-template-columns: 44px
    1fr
    1fr
    1fr;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.generador-col-title {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.generador-label {
  font-size: 12px;
  font-weight: 600;
}

.btn-redondeo {
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #f5f5f5;
  font-size: 12px;
  font-weight: 600;
}

.proveedor-dropdown-wrap {
  margin-top: 8px;
}

.cantidad-afectados {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.preview-precios {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.opciones-horizontal {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.precio-opcion-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}

.precio-opcion-card input {
  margin: 0;
}

.acciones-simulacion {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.acciones-simulacion #cantidadAfectados {
  flex: 1;
  margin: 0;
}

.acciones-simulacion #btnSimular {
  flex: 0 0 25%;
}

.acciones-simulacion #btnCancelarPreview {
  flex: 0 0 25%;
}

.acciones-simulacion #btnConfirmar {
  flex: 1;
}

.card-precios {
  padding: 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 0;
}

.generador-grid input {
  text-align: center;
}

.nc-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.nc-toolbar button {
  flex: 1;
}

.btn-nueva-venta.activo {
  background-color: #2f5555;
  color: #fff;
  border-color: #2f5555;
}

.entidad-box {
  margin: 0 !important;
}

.doc-detail-descuento {
  padding: 12px 16px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 12px;
}

.doc-detail-descuento-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.doc-detail-descuento-total {
  font-weight: bold;
}

.guia-pulso {
  animation: guiaSecuencia 700ms ease;
  border-color: #2E6B2E !important;
  box-shadow: 0 0 0 3px rgba(46,107,46,.25) !important;
}

@keyframes nombreAnimacion {

    0% {
        background: #ffffff;
    }

    50% {
        background: #D8EDC8;
    }

    100% {
        background: #ffffff;
    }

}
.guia-buscador {
  background-color: #F6F0E6 !important;
  transition: background-color .35s ease;
}

.nc-validacion {
  text-align: left;
}

.nc-validacion-producto {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}

.nc-validacion-tabla {
  width: 100%;
  border-collapse: collapse;
}

.nc-validacion-tabla td {
  padding: 8px 0;
}

.nc-validacion-tabla td:first-child {
  color: #666;
}

.nc-validacion-tabla td:last-child {
  text-align: right;
  font-weight: 600;
}

.nc-validacion-tabla .sep td {
  padding-top: 12px;
  border-top: 1px solid #ddd;
}

.nc-validacion-pregunta {
  margin-top: 18px;
  text-align: center;
  font-weight: 600;
}

.list-nav {
  position: fixed;
  right: 16px;
  bottom: 82px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2500;
  pointer-events: none;
}

.list-nav-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 38px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  opacity: .70;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  transition: opacity .2s,
    transform .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.list-nav-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.list-nav-btn:active {
  transform: scale(.95);
}

.list-nav-btn.oculto {
  display: none;
}

.btn-accion {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.reporte-filtros-superiores {
  display: grid;
  grid-template-columns: minmax(0,96px)
    minmax(0,calc(100% - 192px))
    minmax(0,96px);
  gap: 6px;
  align-items: center;
  width: 100%;
  margin: 10px 0;
}

.reporte-filtros-superiores > * {
  min-width: 0;
}

.reporte-resumen-label {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  line-height: 1.1;
  text-align: center;
}

.reporte-resumen-productos {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 6px;
  margin: 8px 0;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.resumen-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}

.reporte-resumen-productos .valor {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  line-height: 1.1;
}

.modal-item-codigo {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #777;
  letter-spacing: 1.2px;
  margin-top: 4px;
  margin-bottom: 12px;
}

.modal-item-precio {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

.modal-item-precio input {
  width: 140px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
}

.estado-confirmado {
  color: #1B8F3A;
}

.estado-borrador,
.estado-borrador\ importado {
  color: #D97706;
}

.card-proforma {
  background: #FFEAEA !important;
  border: 2px solid #D32F2F !important;
}

#avisosSistema {
  width: 100%;
  overflow: hidden;
  margin-top: 10px;
  min-height: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #D97706;
  text-align: center;
}

.home-saliendo {
  opacity: .20;
  transform: scale(.985);
  transition: opacity 120ms ease,
    transform 120ms ease;
}

.sin-documentos {
  width: 100%;
  text-align: center;
  font: inherit;
  padding: 24px 12px;
}

.ventas-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  padding: 14px 16px;
  margin: 10px 0 0 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* .ventas-card-grid {
  display: grid;
  grid-template-columns: 1fr
    52px
    52px
    52px
    82px;
  align-items: center;
  width: 100%;
  column-gap: 0;
}

.ventas-col-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 12px;
}

.ventas-col-left .ventas-strong {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.ventas-col-left > div:nth-child(2) {
  font-size: 15px;
  color: #111;
  line-height: 1.05;
}

.ventas-col-left > div:nth-child(3) {
  font-size: 13px;
  color: #777;
  line-height: 1.05;
}

.ventas-col-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 54px;
  border-left: 1px solid #ececec;
  padding: 0 2px;
} */


.ventas-header{
  display:grid;
  grid-template-columns:70px 1fr;
  column-gap:10px;
  align-items:center;
  margin-bottom:10px;
}

.ventas-codigo{
  font-size:13px;
  font-weight:700;
  color:#666;
}

.ventas-producto{
  font-size:13px;
  font-weight:700;
  color:#111;
}

.ventas-estadisticas{
  display:grid;
  grid-template-columns:70px repeat(4,1fr);
  row-gap:8px;
  align-items:center;
  text-align:center;
  margin-bottom:10px;
}

.ventas-proveedor{
  font-size:13px;
  color:#777;
}

.ventas-col-label{
  font-size:11px;
  color:#777;
  line-height:1;
}

.ventas-col-value{
  font-size:16px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}

.ventas-col-label {
  font-size: 11px;
  color: #777;
  line-height: 1;
}

.ventas-col-value {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.ventas-strong {
  font-weight: 700;
}

.grupo-info {
  margin-bottom: 28px;
}

.titulo-grupo,
.titulo-grupo-centrado {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #555;
  margin: 18px 0 8px;
  letter-spacing: 0;
}

.grid-redes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.grupo-info .btn-categoria {
  width: 100%;
  margin: 0;
}

.grupo-info .grid-redes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.grupo-info .grid-redes .btn-categoria {
  width: 100%;
  margin: 0;
}

.mapeo-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.mapeo-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #777;
  padding: 0 4px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.mapeo-fila {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.mapeo-columna {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: center;
  padding-left: 12px;
  box-sizing: border-box;
  line-height: 1.2;
}

.mapeo-select {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  padding: 0 10px;
  font-size: 13px;
}

#btnConfirmarMapeo {
  width: 100%;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 18px;
  background: #111;
  color: #fff;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.card h3 {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  margin: 8px 0;
}

.card p {
  font-size: 12px;
  color: #777;
  text-align: center;
  margin: 6px 0 14px;
}

.preview-producto-accion {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
  padding: 0 8px;
}

.preview-producto-accion label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
}

.preview-producto-cantidad,
.preview-producto-neto,
.preview-producto-costo {
  font-size: 13px;
  color: #555;
}

.preview-producto-resumen {
  width: 100%;
}

.preview-producto-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.preview-producto-control label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  line-height: 1.1;
  margin: 0;
}

.preview-producto-control input {
  margin-top: 4px;
}

.preview-items, .preview-item-wrapper {
  padding: 5px;
}

.acciones-importacion {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}

.acciones-importacion > button {
  flex: 1;
}

.presionado {
  transform: scale(.97);
  filter: brightness(.85);
  transition: transform .08s, filter .08s;
}

#btnNuevaVenta {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}

.documentoCard-grid{
    display:grid;
    grid-template-columns:32px 1fr max-content 1fr;
    grid-template-rows:auto auto;
    align-items:center;
    column-gap:10px;
    row-gap:6px;
    width:100%;
    padding:8px 12px;
    box-sizing:border-box;
}

.documentoCard-indice{
    grid-row:1 / span 2;
    width:26px;
    height:26px;
    border-radius:50%;
    background:#f0f0f0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:10px;
    font-weight:600;
    color:#333;
}

.documentoCard-tipo{
    justify-self:start;
    font-weight:700;
    font-size:13px;
}

.documentoCard-fecha{
    justify-self:center;
    font-size:13px;
}

.documentoCard-total{
    justify-self:end;
    font-weight:700;
    font-size:13px;
}

.documentoCard-entidad{
    justify-self:start;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:13px;
}

.documentoCard-unidades{
    justify-self:center;
    font-size:13px;
}

.documentoCard-estado{
    justify-self:end;
}

.productoCard{
    background: var(--color-superficie);
    border: 1px solid var(--color-borde);
    border-radius: 12px;
    padding: 12px;
    /* margin-bottom: 8px; */
    margin-top:10px;
    box-shadow: var(--sombra-card);
    transition: background .15s ease, border-color .15s ease;
}

.productoCard:active{
    background: var(--color-hover);
}

.productoCard-grid{
    display:grid;
    grid-template-columns:auto 1fr auto;
    grid-template-areas:
        "codigo nombre precio"
        "proveedor proveedor stock";
    column-gap:10px;
    row-gap:4px;
    align-items:center;
    width:100%;
}

.productoCard-codigo{
    grid-area:codigo;
    font-size:12px;
    font-weight:600;
    color:#777;
    white-space:nowrap;
}

.productoCard-nombre{
    grid-area:nombre;
    font-size:15px;
    font-weight:600;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.productoCard-precio{
    grid-area:precio;
    font-size:16px;
    font-weight:700;
    text-align:right;
    white-space:nowrap;
}

.productoCard-proveedor{
    grid-area:proveedor;
    font-size:12px;
    color:#777;
}

.productoCard-stock{
    grid-area:stock;
    font-size:12px;
    color:#777;
    text-align:right;
    white-space:nowrap;
}

.itemCard{
  width:100%;
  background:#fff;
  border:1px solid #ddd;
  border-radius:12px;
  padding:12px 14px;
  /* margin-bottom:10px; */
  margin-top:10px;
}

.itemCard-grid{
  display:grid;
  grid-template-columns:32px 1fr auto;
  align-items:center;
  width:100%;
  gap:10px;
}

.itemCard-indice{
  width:26px;
  height:26px;
  border-radius:50%;
  background:#f0f0f0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:600;
  color:#333;
}

.itemCard-info{
  min-width:0;
}

.itemCard-nombre{
  font-size:13px;
  font-weight:600;
  line-height:16px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.itemCard-detalle{
  margin-top:3px;
  font-size:11px;
  color:#777;
}

.itemCard-total{
  font-size:14px;
  font-weight:600;
  text-align:right;
  white-space:nowrap;
}

.itemCard-grid{
  display:grid;
  grid-template-columns:32px 1fr auto;
  align-items:center;
  width:100%;
  gap:10px;
}

.itemCard-indice{
  display:flex;
  align-items:center;
  justify-content:center;
}

.itemCard-info{
  min-width:0;
}

.itemCard-nombre{
  font-size:14px;
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.itemCard-detalle{
  margin-top:3px;
  font-size:12px;
  color:#777;
}

.itemCard-total{
  font-size:16px;
  font-weight:700;
  text-align:right;
  white-space:nowrap;
}
.producto-card-render{
margin:0px;

}

/* ==========================================================
   CHIPS PRODUCTOS
========================================================== */

.chips-scroll{

  display:flex;

  flex-wrap:nowrap;

  align-items:stretch;

  width:100%;

  overflow-x:auto;

  overflow-y:hidden;

  gap:8px;

  padding:4px 0;

  margin:8px 0;

  scrollbar-width:none;

  -webkit-overflow-scrolling:touch;

  touch-action:pan-x;

}

.chips-scroll::-webkit-scrollbar{

  display:none;

}

.btn-chip{

  flex:0 0 auto;

  display:flex;

  align-items:center;

  justify-content:center;

  min-width:110px;

  height:42px;

  padding:0 16px;

  border:none;

  border-radius:999px;

  background:#fff;

  box-shadow:0 2px 8px rgba(0,0,0,.08);

  cursor:pointer;

  white-space:nowrap;

  font-size:14px;

  font-weight:600;

}

.btn-chip.activo{

  background:#dff2cf;

  color:#2d5c1d;

}

.inventario-grid-chips{

  display:flex;

  align-items:stretch;

  justify-content:space-between;

  gap: 8px;

  width:100%;
  margin:0px;

}

.inventario-chip{

  flex:1 1 0;

  min-width:0;

}

.inventario-chip .inventario-box{

  width:76px;

  min-width:76px;

  height:52px;

  min-height:52px;

  padding:4px;

}

.inventario-chip .inventario-box-label{

  display:flex;

  align-items:center;

  justify-content:center;

  font-size:10px;

  line-height:1;

  margin-bottom:2px;

}

.inventario-chip .inventario-box-value{

  display:flex;

  align-items:center;

  justify-content:center;

  flex:1;

  font-size:14px;

  line-height:1;

}

.botones-compras{

  display:flex;
  width:100%;
  gap:8px;

  margin-top:12px;
  margin-bottom:12px;

}

.botones-compras .btn{

  flex:1;
  width:50%;

  background:#777;
  color:white;

}

.cliente-resumen-tabla{

  width:100%;
  border-collapse:collapse;
  table-layout:fixed;

}

.cliente-resumen-tabla thead,
.cliente-resumen-tabla tbody{

  display:block;
  width:100%;

}

.cliente-resumen-tabla thead tr,
.cliente-resumen-tabla tbody tr{

  display:flex;
  width:100%;
  align-items:center;

}

.cliente-resumen-tabla th,
.cliente-resumen-tabla td{

  width:33.33%;
  text-align:center;
  box-sizing:border-box;

}

.cliente-resumen-tabla th{

  font-weight:700;
  font-size:12px;
  padding:6px 2px;

}

.cliente-resumen-tabla td{

  font-size:13px;
  padding:8px 2px;

}

.cliente-resumen-tabla th:nth-child(1),
.cliente-resumen-tabla td:nth-child(1){

  order:1;

}

.cliente-resumen-tabla th:nth-child(2),
.cliente-resumen-tabla td:nth-child(2){

  order:3;

}

.cliente-resumen-tabla th:nth-child(3),
.cliente-resumen-tabla td:nth-child(3){

  order:2;

}

.cliente-resumen-tabla td:nth-child(3){

  font-size:20px;
  font-weight:600;
  line-height:1.1;

}

.stock-header{
    display:grid;
    grid-template-columns:70px 1fr;
    column-gap:10px;
    align-items:center;
    margin-bottom:6px;
}

.stock-codigo{
    font-size:13px;
    font-weight:700;
    color:#666;
}

.stock-nombre{
    font-size:13px;
    font-weight:700;
    color:#111;
}

.stock-datos{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    column-gap:8px;
    margin-bottom:6px;
}

.stock-col{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.stock-titulo{
    font-size:11px;
    font-weight:600;
    color:#777;
    line-height:1;
    /* margin-bottom:4px; */
    margin:10px 0 10px 0;

}

.stock-stock,
.stock-precio,
.stock-total{
    font-size:13px;
    font-weight:700;
    color:#111;
    line-height:1.1;

}

.stock-proveedor{
    font-size:13px;
    color:#666;
    text-align:left;
    margin-top:4px;
}

/* ==========================================================
   CARD MOVIMIENTO STOCK
========================================================== */

.mov-stock-header{

    display:grid;
    grid-template-columns:80px 1fr;
    column-gap:12px;
    align-items:center;

    margin-bottom:10px;

}

.mov-stock-codigo{

    font-size:13px;
    font-weight:700;
    color:#666;
    margin:5px 0 5px 0;

}

.mov-stock-producto{

    font-size:17px;
    font-weight:700;
    color:#1f2937;
     margin:5px 0 5px 20px;

}

.mov-stock-body{

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;

}

.mov-stock-col{

    display:flex;
    flex-direction:column;
    align-items:center;

}

.mov-stock-label{

    font-size:11px;
    font-weight:600;
    color:#8b8b8b;

    margin-bottom:4px;

}

.mov-stock-fecha{

    font-size:14px;
    font-weight:600;
    color:#444;
     margin:5px 0 5px 20px;

}

.mov-stock-cantidad{

    font-size:20px;
    font-weight:700;

}

.mov-stock-ingreso{

    color:#16a34a;
    font-weight:700;
     margin:5px 10px 5px 0;

}

.mov-stock-egreso{

    color:#dc2626;
    font-weight:700;
         margin:5px 10px 5px 0;


}

/*==========================================================
MOVIMIENTO STOCK
==========================================================*/

.mov-stock-grid{

    display:grid;

    grid-template-columns:
        58px
        1fr
        52px;

    grid-template-rows:
        auto
        auto;

    column-gap:14px;
    row-gap:3px;

    align-items:center;

}

.mov-stock-codigo{

    grid-column:1;
    grid-row:1;

    font-size:13px;
    font-weight:700;
    /* text-align:center; */
        margin-left: 10px;


}

.mov-stock-producto{

    grid-column:2;
    grid-row:1;

    font-size:13px;
    font-weight:700;

}

.mov-stock-cantidad{

    grid-column:3;
    grid-row:1 / span 2;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:17px;
    font-weight:700;

}

.mov-stock-tipo{

    grid-column:1;
    grid-row:2;

    font-size:13px;
    color:#666;
        /* text-align:center; */
        margin-left: 10px;


}

.mov-stock-fecha{

    grid-column:2;
    grid-row:2;

    font-size:13px;
    color:#666;

}

.mov-stock-ingreso{

    color:#188038;

}

.mov-stock-egreso{

    color:#c62828;

}

.total-periodo{

    position:relative;

    display:flex;

    align-items:center;

    justify-content:center;

    cursor:pointer;

    padding:0 34px 0 10px;

}

.total-periodo-importe,
.total-periodo-unidades{

    width:100%;

    text-align:center;

    font-size:16px;

    font-weight:700;

    line-height:1;

}

.total-periodo-toggle{

    position:absolute;

    right:10px;

    top:50%;

    transform:translateY(-50%);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:16px;

    font-weight:700;

    color:#555;

    user-select:none;

}

.total-periodo-importe.oculto,
.total-periodo-unidades.oculto{

    display:none;

}

/* =======================================================
   BUSCADOR MOVIMIENTOS STOCK
   (EXCLUSIVO)
======================================================= */

#buscarMovimiento{

    width:100%;

    height:100%;

    margin:0;

    padding:0 8px;

    border:0;

    outline:0;

    background:transparent;

    box-shadow:none;

    font:inherit;

    font-size:14px;

    font-weight:300;

    color:#111;

    text-align:center;

}

#buscarMovimiento::placeholder{

    color:#777;

}

.cobro-resumen{

    width:100%;

    margin:0 0 16px 0;

    border:1px solid var(--color-borde);

    border-radius:16px;

    background:#fff;

    border-collapse:separate;

    border-spacing:0;

    overflow:hidden;

}

.cobro-resumen th{

    width:33.3333%;

    padding:10px 6px 4px;

    text-align:center;

    vertical-align:middle;

    font-size:13px;

    font-weight:500;

    color:#666;

}

.cobro-resumen td{

    width:33.3333%;

    padding:4px 6px 10px;

    text-align:center;

    vertical-align:middle;

    font-size:16px;

    font-weight:700;

    white-space:nowrap;

}

.xxx{

  margin:10px 10px;
  font-size: 13px;
  font-weight: 700;
}


/* =========================
   DEMO LICENCIA
========================= */

.demo-card {
  margin: 10px 10px 0 10px;
  padding: 14px 16px;
}

.demo-card h2 {
  margin: 0 0 14px 0;
  font-size: 20px;
  font-weight: 600;
}

.demo-card h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
}

.demo-card p {
  margin: 0 0 14px 0;
  font-size: 12px;
  color: #666;
}

.demo-card label {
  display: block;
  margin: 0 10PX 4px 10PX;
  font-size: 12px;
  color: #666;
}

.demo-card input {
  width: 100%;
  padding: 10px;
  margin: 0 0 12px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
}

.demo-card #btnComenzarDemo,
.demo-card #btnIngresarClave {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #D8EDC8;
  color: #2E6B2E;
  font-weight: 700;
  margin-top:10px;
}