

/* ============================
   VARIABLES DE MARCA
============================ */
:root {
  --color-primario: #2e7d32;
  --color-primario-hover: #256628;
  --color-primario-suave: #e8f5e9;

  --color-texto: #1a1a1a;
  --color-borde: #ddd;
  --color-borde-focus: #2e7d32;

  --sombra-suave: 0 1px 3px rgba(0,0,0,0.08);
}


body {
  font-family: Arial, sans-serif;
  padding: 20px;
  background: #f5f5f5;
}

input, button {
  margin: 5px 0;
  padding: 10px 10px 10px 10px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border: 2px solid #2e7d32; /* tu verde de marca */
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15); /* halo suave, opcional */
}

#excelFile {
  width: 50%;
  display: flex;
}

#result {
  margin-top: 20px;
  border: 1px solid #ccc;
  padding: 10px;
  display: none;
  background: #fff;
}
.botones {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 84%;
  padding: 20px;
  height: 84%;
}

button {
  cursor: pointer;
  flex: 1;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid var(--color-borde);
  background: white;
  color: var(--color-texto);
  box-shadow: var(--sombra-suave);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

button:hover {
  border-color: var(--color-primario);
}

#fileInfo {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
}

#funciono{
    width: 120px;
    font-size: 12px;
    padding: 6px;
    border: red solid 1px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.boton-personalizado {
    background-color: #195c7b; 
    color: white;              
    padding: 12px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-family: sans-serif;
    display: inline-block;
    margin-bottom: 10px;
}

.boton-personalizado:hover {
    background-color: #45a049; 
}

#descargarInstaladorBtn {
  background-color: #980202; 
    color: white;             
    padding: 5px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-family: sans-serif;
    display: inline-block;
    margin-bottom: 10px;
}

#descargarInstaladorBtn:hover {
    background-color: #45a049; 
}


#cameraModal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  display: none; /* ← cambiá flex por none */
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

#cameraModal .modal-inner {
  background: #000;
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  overflow: hidden;
}

#reader {
  width: 100% !important;
}

#cameraModal.abierto {
  display: flex;
}

#logoutBtn {
  flex: 0;
  padding: 6px 12px;
  font-size: 14px;
  white-space: nowrap;
}


/* DRAWER REPO */

#repoDrawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
}

/* pestaña */
#toggleRepoDrawer {
  position: fixed;
  right: 0;
  top: 25%;
  transform: translateY(-50%);

  width: 52px;
  height: 65px;

  border-radius: 14px 0 0 14px;
  border: 2px solid #333;

  background: #f5f5f5;
  cursor: pointer;

  font-size: 28px;
  z-index: 10001;

  box-shadow:
    -2px 2px 10px rgba(0,0,0,.15);
}

/* panel lateral */
#repoDrawerContent {
  position: fixed;

  top: 0;
  right: -100%;

  width: min(320px, 85vw);
  height: 100vh;

  background: #fff;

  box-shadow:
    -8px 0 20px rgba(0,0,0,.15);

  transition: right .25s ease;

  overflow-y: auto;

  padding: 22px 18px;

  border-left:
    1px solid #ddd;
}

/* abierto */
#repoDrawer.open #repoDrawerContent {
  right: 0;
}


/* header */
#repoDrawerContent h3 {
  margin-top: 0;
  margin-bottom: 20px;
}

/* items */
.repo-item {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 14px 0;

  border-bottom:
    1px solid #ececec;

  font-size: 18px;
}

/* checkbox más prolijo */
.repo-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

/* botón borrar */
#clearRepoBtn {
  margin-top: 20px;
  width: 100%;
}


.backMenuBtn {
  width: auto;
  padding: 8px 14px;
  margin-bottom: 10px;
  font-size: 14px;
}

#repoEtiquetaModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,.6);

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

  z-index: 99999;
}

#repoEtiquetaModal .modal-content {
  background: white;
  width: 90%;
  max-width: 420px;

  padding: 20px;
  border-radius: 14px;

  box-shadow:
    0 10px 30px rgba(0,0,0,.25);

  text-align: center;
}

#repoModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);

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

  z-index: 99999;
}

#repoModal .modal-content {
  background: white;
  width: 92%;
  max-width: 420px;

  border-radius: 14px;
  padding: 20px;

  box-shadow:
    0 10px 25px rgba(0,0,0,.18);
}

/* contenedor botones repo */
.repo-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

/* botones repo */
.repo-buttons button {
  width: 100%;
  height: auto;

  padding: 12px;
  font-size: 16px;
}

/* MODAL CAMARA */

#cameraModal {
  position: fixed;
  inset: 0;

  background:
    rgba(0,0,0,.75);

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

  z-index: 999999;
}

#cameraModal.abierto {
  display: flex;
}

/* caja central */
.camera-box {
  width: 92%;
  max-width: 420px;

  background: white;
  border-radius: 18px;

  padding: 18px;

  box-shadow:
    0 15px 35px
    rgba(0,0,0,.25);

  text-align: center;
}

/* zona video */
.scanner-wrapper {
  position: relative;
  overflow: hidden;

  border-radius: 14px;

  background: black;
}

/* html5-qrcode */
#reader {
  width: 100%;
}

/* video */
#reader video {
  width: 100% !important;
  height: 280px !important;

  object-fit: cover;

  border-radius: 14px;
}

/* recuadro scanner */
.scanner-frame {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 78%;
  height: 90px;

  transform:
    translate(-50%, -50%);

  border: 3px solid #00ff66;
  border-radius: 12px;

  box-shadow:
    0 0 0 9999px
    rgba(0,0,0,.22);

  pointer-events: none;
}

/* texto */
#cameraStatus {
  margin-top: 14px;
  font-size: 15px;
}

/* botones */
.camera-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.camera-actions button {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

#vencScanCameraBtn {
  flex: 1;
}


#vencScanCameraBtn button {
  flex: 1;
}


.repo-search-wrap {
  position: relative;
  width: 100%;
}

#repoSearchInput {
  padding-right: 35px;
}

.input-con-icono {
  position: relative;
  display: inline-flex;  /* o flex */
  width: 100%;           /* que ocupe lo mismo que antes */
}

.input-con-icono input {
  width: 100%;
  padding-right: 36px;
  box-sizing: border-box;  /* ← esto es lo que faltaba */
}

.input-icon-btn {
  position: absolute;
  top: 41%;
  right: 8px; /* lo pega a la derecha */
  transform: translateY(-50%);

  background: none;
  border: none;
  cursor: pointer;

  font-size: 12px; /* achica el icono/texto */
  width: 24px; /* tamaño del botón */
  height: 24px;

  padding: 0;
  opacity: 1;
  transition: opacity 0.2s;

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

.input-icon-btn:hover {
  opacity: 0.5;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  width: 92%;
  max-width: 420px;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

#manualInputModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

#manualInputModal .modal-content {
  background: white;
  width: 90%;
  max-width: 380px;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  text-align: center;
}


#modalAjustes {
   position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

#modalAjustes .modal-content {
  background: white;
  width: 90%;
  max-width: 380px;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  text-align: center;
  position: relative;
}


.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 10px;

  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;

  width: auto;
  flex: unset;
  padding: 5px;
}


#ajustesBtn {
  width: 30%;
  margin-left: auto;
  flex: 0 0 10%;
  padding: 10px;
}

.topbar {
  display: flex;
  align-items: center;
}

#repoPrecio {
  color: red !important;
  font-size: 1.5rem !important;
}

#modalConfirmarImpresion {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

#modalConfirmarImpresion .modal-content {
  background: white;
  width: 90%;
  max-width: 380px;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  text-align: center;
  max-height: 70vh;
  overflow-y: auto;
}

#listaProductosCambiados label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 14px;
}

#listaProductosCambiados label:last-child {
  border-bottom: none;
}

#listaProductosCambiados input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

#listaProductosCambiados span {
  line-height: 1.4;
}

#listaProductosCambiados .precio-viejo {
  color: #999;
  text-decoration: line-through;
}

#listaProductosCambiados .precio-nuevo {
  color: #2a9d5c;
  font-weight: bold;
}

#modalHistorial {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

#modalHistorial .modal-content {
  background: white;
  width: 90%;
  max-width: 380px;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  text-align: center;
  max-height: 70vh;
  overflow-y: auto;
}

.historial-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 14px;
}

.historial-item:last-child {
  border-bottom: none;
}

.historial-item button {
  flex: 0 0 auto;
  width: auto;
  padding: 6px 12px;
}

.fecha-armada {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin: 18px 0;
  color: #030303;
  background: #f0f0f0;  /* ← fondo gris claro */
  border-radius: 10px;
  padding: 10px 0;
}

.fecha-botonera {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 15px;
}

.fecha-botonera button {
  width: 100%;
  padding: 14px 6px;
  font-size: 18px;
  border-radius: 8px;
}

.vencimiento-item {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
}

.vencimiento-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.vencimiento-item input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.vencimiento-item span {
  line-height: 1.4;
}

.vencimiento-item.pendiente {
  border-left: 6px solid orange;
}

#vencimientoModal .modal-content {
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 14px;
  background: white;
  width: 90%;
  max-width: 380px;
}

#vencimientoModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}


.vencimiento-item.vencido {
  border-left: 6px solid #e74c3c; /* rojo */
}

.vencimiento-item.vence-hoy {
  border-left: 6px solid #f39c12; /* naranja */
}

.vencimiento-item.pendiente {
  border-left: 6px solid orange; /* ya lo tenías */
}

#vencSearchBar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#toastAlertaContainer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  align-items: center;
}

.toast-alerta {
  background: #fff3cd;
  border-left: 5px solid #f93205;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  padding: 20px 24px;
  max-width: 320px;
  width: 90vw;
}

.toast-alerta p {
  margin: 0 0 16px 0;
  font-size: 15px;
  color: #663c00;
  text-align: center;
}

.toast-alerta .toast-alerta-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.toast-alerta button {
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

.toast-alerta .btn-primario-alerta {
  background: #f93205;
  color: white;
  font-weight: 600;
}

.toast-alerta .btn-secundario-alerta {
  background: #eee;
  color: #663c00;
}

.toast-simple {
  background: #fff;
  border-left: 5px solid #2e7d32; /* verde éxito por default */
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  padding: 16px 24px;
  max-width: 320px;
  width: 90vw;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: #222;
}

.toast-simple.error {
  border-left-color: #f93205;
}

.toast-alerta-btns-columna {
  flex-direction: column;
}


#bannerVencimientosHoy {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #d32f2f;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  text-align: center;
  z-index: 9999;
  display: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body.con-banner-vencimientos {
  padding-top: 30px;
}


#footerGondolaOS {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1a1a1a;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 4px 0;
  z-index: 9998;
}

#footerGondolaOS strong {
  color: rgba(255,255,255,0.85);
  font-weight: 700;
}

body.con-footer-gondolaos {
  padding-bottom: 22px;
}

.os {
  color: #2e7d32;
}

#splashScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

#splashScreen h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
}

#splashScreen h1 span {
  color: #2e7d32; 

}

#splashScreen.oculto {
  opacity: 0;
  pointer-events: none;
}

/* ============================
   JERARQUÍA DE BOTONES
============================ */
.btn-primario {
  background: var(--color-primario) !important;
  color: white !important;
  border: none !important;
}
.btn-primario:hover {
  background: var(--color-primario-hover) !important;
}

.btn-alerta {
  background: #fff8e1 !important;
  color: #8a6100 !important;
  border-color: #f0d78c !important;
}


[data-lucide] {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}


.fileInfo {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-texto-secundario, #666);
}

.fileInfo-nombre {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-texto, #1a1a1a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fileInfo-nombre [data-lucide] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.fileInfo-fecha {
  margin-top: 2px;
  font-size: 12px;
  color: #999;
}

#areaModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

#areaModal .modal-content {
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 14px;
  background: white;
  width: 90%;
  max-width: 380px;
}

#areaModalLista {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 15px 0;
}

#areaModalLista .area-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

#areaModalLista .area-item button:first-child {
  flex: 1;
  text-align: left;
   background: #2e7d32;
   color: white;
}

#areaModalLista .area-item .area-borrar-btn {
  flex: 0 0 auto;
  width: 40px;
  color: red;
  border-color: #f0a0a0;
}

#areaNuevoInput {
  margin-bottom: 8px;
}


/* ---------- MODAL BUSCAR PEDIDO ---------- */

#pedidoBuscarModal .modal-content {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  width: 92%;
  max-width: 500px;
  overflow: hidden;
}

.buscar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.buscar-header h2 {
  margin: 0;
  font-size: 1.1rem;
  text-align: left;
}

#cerrarBuscarBtn {
  background: none;
  border: none;
  box-shadow: none;
  padding: 4px;
  cursor: pointer;
  flex: 0 0 auto;
  width: auto;
}

#pedidoBuscarInput {
  width: 100%;
  margin: 12px 0;
  flex-shrink: 0;
}

#pedidoResultados {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pedido-seccion {
  margin: 12px 0 6px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
  text-align: left;
}

.pedido-resultado {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  text-align: left;
}

.pedido-resultado:active {
  background: rgba(0, 0, 0, 0.05);
}

.pedido-resultado small {
  opacity: 0.6;
}

.pedido-sin-resultados,
.pedido-hay-mas {
  padding: 12px 8px;
  opacity: 0.6;
  font-size: 0.9rem;
}


/* ---------- HOJAS DE PEDIDO ---------- */

.hoja-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.hoja-nav button {
  flex: 0 0 auto;
  width: 110px;
  height: 42px;
  padding: 0;
  margin: 0;
}

#hojaHomeBtn {
  width: 75px;
  height: 36px;
}

.hoja-nav button:disabled {
  opacity: 0.3;
  cursor: default;
}

.hoja-header {
  display: flex;
  align-items: center; 
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--color-primario-suave);
  border-radius: 10px;
  margin-bottom: 10px;
}

#hojaProveedor {
  font-size: 85%;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

#hojaContador {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  flex-shrink: 0;
}

#pedidoLista {
  max-height: 62vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 10px;
}

.pedido-linea {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.pedido-linea:last-child {
  border-bottom: none;
}

.pedido-linea:active {
  background: var(--color-primario-suave);
}

.pedido-nombre {
  font-size: 14px;
  line-height: 1.3;
  min-width: 0;
  flex: 1;
}

.pedido-cant {
  font-size: 17px;
  font-weight: bold;
  color: var(--color-primario);
  min-width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.pedido-deshacer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff8e1;
  border: 1px solid #f0d78c;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 14px;
}

.pedido-deshacer button {
  flex: 0 0 auto;
  width: auto;
  padding: 6px 14px;
  font-size: 14px;
  margin: 0;
}

#pedidoEditarModal .modal-content {
  text-align: center;
}

#pedidoEditarModal h2 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}

#pedidoEditarModal p {
  font-size: 13px;
  color: #999;
  margin: 0;
}

.pedido-cantidad-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 10px 0;
}

.pedido-cantidad-control button {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  padding: 0;
  font-size: 26px;
  border-radius: 50%;
  margin: 0;
}

.pedido-cantidad-control span {
  min-width: 56px;
  font-size: 26px;
  font-weight: bold;
  padding: 6px 10px;
  border: 1px dashed var(--color-borde);
  border-radius: 10px;
  cursor: pointer;
}

.btn-eliminar {
  color: #c62828 !important;
  border-color: #f0c0c0 !important;
}



.prov-bar button {
  flex: 0 0 auto;
  width: auto;
}

.prov-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--color-primario-suave);
  border-radius: 10px;
  margin-bottom: 10px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.infaltables-leyenda {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0; 
  overflow: hidden;
}

.leyenda-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: clamp(2px, 1vw, 4px) clamp(6px, 2vw, 10px);
  border-radius: 12px;
  font-size: clamp(0.65em, 2vw, 0.8em);
  color: white;
  white-space: nowrap;
  min-width: 0;
}

.leyenda-chip i {
  width: clamp(10px, 2.5vw, 13px);
  height: clamp(10px, 2.5vw, 13px);
  flex-shrink: 0;
}

.leyenda-chip.top100 { background: #d4a017; }
.leyenda-chip.mailing { background: #2e7d32; }

.prov-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
}

.prov-item-nombre {
  font-size: 14px;
  line-height: 1.3;
  min-width: 0;
  flex: 1;
}

.prov-cant {
  font-size: 16px;
  font-weight: bold;
  color: var(--color-primario);
  flex-shrink: 0;
}

.pedido-tipo-control {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.pedido-tipo-btn {
  flex: 1;
  width: auto;
  padding: 8px 4px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
}

.pedido-tipo-btn.activo {
  background: #2e7d46;
  color: #fff;
  border-color: #2e7d46;
}

#hojaProveedor.hoja-prov-clickable {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hoja-prov-accion {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: #2e7d46;
  border-radius: 999px;
  padding: 4px 11px;
  flex-shrink: 0;
}

.hoja-prov-accion i {
  width: 15px;
  height: 15px;
}

.modal-botones {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.fileInfo,
.lista-info {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-texto-secundario, #666);
}

.pedido-etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  margin-right: 6px;
}
.pedido-etiqueta.top100 {
  background: #fff3cd;
  color: #8a6100;
}
.pedido-etiqueta.mailing {
  background: var(--color-primario-suave);
  color: var(--color-primario);
}

.prov-etiqueta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  color: #fff;
}
.prov-etiqueta [data-lucide] {
  width: 12px;
  height: 12px;
}
.prov-etiqueta.top100 { background: #e0a800; }
.prov-etiqueta.mailing { background: var(--color-primario); }


#pedidoSearchBtn {
  display: none;
}

#mailingFechaModal {
  z-index: 100000;
}


.prov-sin-pedido {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  font-size: 15px;
  color: #333;
  font-weight: bold;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}

.prov-sin-pedido input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primario, #2e7d32);
  cursor: pointer;
}

.prov-buscar-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  margin: 8px 0;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
}

.prov-buscar-input:focus {
  outline: none;
  border-color: var(--color-primario, #2e7d32);
  background: #fff;
}