.inicialmente-oculto {
  display: none;
  visibility: hidden;
}

th {
    border-bottom: 1px solid #d6d6d6;
}

tr:nth-child(even) {
    background: #e9e9e9;
}

tbody tr:hover td {
  background-color: #FFEFC6;
}


.info, .success, .warning, .error, .validation {
    border: 1px solid;
    margin: 10px 0px;
    padding:15px 10px 15px 50px; 
    background-repeat: no-repeat;
    background-position: 10px center;
}

#popup_edit-popup {
    right: 10%;
    left: 10%;
    width: 70%;
}

.error {
    color: #D8000C;
    background-color: #FFBABA;
    background-image: url('../images/error.png');
}


.info {
    color: #00529B;
    background-color: #BDE5F8;
    background-image: url('../images/info.png');
}
.success {
    color: #4F8A10;
    background-color: #DFF2BF;
    background-image:url('../images/success.png');
}
.warning {
    color: #9F6000;
    background-color: #FEEFB3;
    background-image: url('../images/warning.png');
}

#logo_image {
  text-align: center;
  margin: 0 auto;       
}


/* Start by setting display:none to make this hidden.
   Then we position it in relation to the viewport window
   with position:fixed. Width, height, top and left speak
   for themselves. Background we set to 80% white with
   our animation centered, and no-repeating */
.modal {
    display:    none;
    position:   fixed;
    z-index:    1000;
    top:        0;
    left:       0;
    height:     100%;
    width:      100%;
    background: rgba( 255, 255, 255, .8 ) 
                url('../images/loading.gif')
                50% 50% 
                no-repeat;
}

/* When the body has the loading class, we turn
   the scrollbar off with overflow:hidden */
body.loading {
    overflow: hidden;   
}

/* Anytime the body has the loading class, our
   modal element will be visible */
body.loading .modal {
    display: block;
}
.filters-dropdown {
    position: relative;
    width: 100%; /* Ajusta el ancho según tus necesidades */
}

.filters-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.invisible {
    display: none;
}
.visible {
    display: block;
}
.highlight-text {
    color: red; /* Color del texto para resaltar */
}
.additional-highlight {
    color: blue; /* Color del texto para el resaltado adicional */
}

/* Temperatura dentro del rango: borde y difuminado azul */
.ui-input-text.temp-valid {
    border: 1px solid #1E90FF !important; /* Azul más vivo */
    box-shadow: 0 0 12px 2px #1E90FF !important;
    border-radius: 0.5em;
}

/* Temperatura fuera del rango o vacía: borde y difuminado rojo */
.ui-input-text.temp-invalid {
    border: 1px solid #FF4500 !important; /* Rojo moderno */
    box-shadow: 0 0 12px 2px #FF4500 !important;
    border-radius: 0.5em;
}


/* Borde verde cuando se genera lote interno*/
.ui-input-text.generated-lote-interno-wrapper {
    box-shadow: 0 0 12px 2px #3CB371 !important; /* verde suave tipo "focus" */
    border: 1px solid #3CB371 !important;
    border-radius: 0.5em;
}

/*Para mensaje toast transparente*/
.custom-toast {
    display: block;
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    transform: none;
    padding: 0.75em 0;
    color: white;
    font-size: 16px;
    text-align: center;
    z-index: 9999;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
}

/* Estilos por tipo */
.toast-success {
    background-color: rgba(46, 139, 87, 0.9); /* Verde tipo success */
}
.toast-error {
    background-color: rgba(178, 34, 34, 0.9); /* Rojo oscuro */
}
.toast-info {
    background-color: rgba(30, 144, 255, 0.9); /* Azul tipo info */
}
.toast-warning {
    background-color: rgba(255, 140, 0, 0.9); /* Naranja tipo warning */
}

.progress-donut {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(green 0% 0%, #555 0% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: #333;
  }
  
  .progress-donut::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    z-index: 1;
  }
  
  .progress-donut span {
    position: relative;
    z-index: 2;
  }
  
  


.progress-donut.glow-green {
    box-shadow: 0 0 8px 2px #4caf50;
}

.progress-donut.glow-orange {
    box-shadow: 0 0 8px 2px #ff9800;
}

.progress-donut.glow-red {
    box-shadow: 0 0 8px 2px #f44336;
}

.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
    height: 18px;
    margin-top: 5px;
  }
  
  .progress-bar {
    height: 18px;
    background: #4caf50;
    width: 0%;
    border-radius: 8px;
    text-align: center;
    color: white;
    font-size: 12px;
    line-height: 18px;
  }
  

.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 15px;
}

.color-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.color-button {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid #444;
  font-size: 14px;
  font-weight: bold;
  color: white;
  text-align: center;
  line-height: 70px;
  cursor: pointer;
  margin: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.color-button.selected {
  border: 4px solid black;
  box-shadow: 0 0 8px 3px rgba(0,0,0,0.5);
}

.color-button.disabled {
  filter: grayscale(100%);
  opacity: 0.5;
  cursor: not-allowed;
}


.barra-color {
  width: 100%;
  height: 45px;
  line-height: 45px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  z-index: 999;
  margin-top: 0; /* importante */
}


.invisible {
  display: none !important;
}

#barra_color_asignado {
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

body.color-blanco {
  background-color: #fff !important;
  border: 5px dashed #aaa;
}

/*--------*/
.footer-usuario {
  text-align: center;
  font-size: 14px;
  background-color: #eee;
  color: #333;
}

 /* 1) Hacer que los selects ocupen todo el ancho disponible */
.field-row {
  display: flex;
  align-items: center;
  gap: 0.5em;               /* un poco menos de espacio entre label y campo */
  margin-bottom: 1em;
}
.field-row label {
  flex: 0 0 80px;           /* etiqueta más estrecha */
  margin: 0;
}
.field-row select,
.field-row .ui-select {
  flex: 1;                  /* ocupa todo el resto */
}
/* forzar a que el botón generado por jQM también llene */
.field-row .ui-btn {
  width: 100% !important;
  box-sizing: border-box;
}

/* 2) Centrar las etiquetas e inputs dentro de las columnas de rango */
.columna-rango {
  display: flex;
  gap: 1em;
  margin-bottom: 1em;
}
.columna-rango .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;      /* centra hijos horizontalmente */
}
.columna-rango .col label {
  text-align: center;
  width: 100%;
  margin-bottom: 0.3em;
}
/* Hacer que los inputs numéricos llenen al 100% la columna */
.columna-rango .col input,
.columna-rango .col .ui-input-text,
.columna-rango .col .ui-btn {
  width: 100% !important;
  box-sizing: border-box;
}


/*--------------*/

/* Estilo barra de filtros horizontal (gestor de pedidos) */

/* Tabla de pedidos en modo escritorio */
.tabla-container {
  overflow-x: auto;
  margin-top: 10px;
}

.tabla-pedidos {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tabla-pedidos th,
.tabla-pedidos td {
  padding: 10px 8px;
  border: 1px solid #ccc;
  text-align: center;
}

.tabla-pedidos th {
  background-color: #f4f4f4;
  font-weight: bold;
}

/* Estilo para la barra de progreso en pedidos */
.progress-bar {
  background: #e0e0e0;
  border-radius: 8px;
  height: 18px;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  background: #4caf50;
  height: 100%;
  text-align: center;
  color: white;
  font-size: 12px;
  line-height: 18px;
  transition: width 0.3s ease;
}

/* Contenedor para botón inferior */
.barra-boton {
  text-align: center;
  margin-top: 20px;
}

/*-----------*/

.sortable { cursor: pointer; user-select: none; }
.sort-icon {
  display: inline-block; width: 0; height: 0;
  margin-left: 4px;
  vertical-align: middle;
  border-left: 5px solid transparent;
  border-right:5px solid transparent;
  border-top: 5px solid #333;
  opacity: .3;
  transition: transform .2s, opacity .2s;
}
.sortable.asc .sort-icon {
  transform: rotate(180deg);
  opacity: 1;
}
.sortable.desc .sort-icon {
  transform: rotate(0deg);
  opacity: 1;
}
/* --- Barra de filtros --- */
.filtros-barra {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
}

/* Los dos selects ocupan mitades de la primera fila */
.filtros-barra select {
  flex: 1 1 45%;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #aaa;
  background: #fff;
  /* Oculta flecha nativa, usa la tuya si quieres */
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%204%205'%3E%3Cpath%20fill='%23333'%20d='M2%205L0%200h4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) center;
  background-size: 8px 8px;
}


.ui-popup-screen {
  background-color: rgba(0, 0, 0, 0.6) !important; /* ← más oscuro */
}

.linea-incompleta {
  background-color: #fff3cd;  /* amarillo claro */
  font-weight: bold;
}

/* Estilo para productos ya reservados */
.producto-reservado {
  background-color: #e0e0e0 !important;
  color: #555 !important;
  font-style: italic;
}


/*--------BARRA DE PROGRSO GLOBAL LIST PICKING CAJA GRIS--------*/
/* ===== Progress bar para Picking Caja Gris ===== */
.progress-container {
  width: 100%;
  height: 22px;
  background-color: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  position: relative;
}

.progress-bar {
  height: 100%;
  line-height: 22px;
  color: white;
  text-align: center;
  transition: width 0.5s ease-in-out;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.15);
  background-image: linear-gradient(45deg, 
    rgba(255,255,255,.15) 25%, 
    transparent 25%, 
    transparent 50%, 
    rgba(255,255,255,.15) 50%, 
    rgba(255,255,255,.15) 75%, 
    transparent 75%, 
    transparent);
  background-size: 40px 40px;
  animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
  from { background-position: 40px 0; }
  to   { background-position: 0 0; }
}

/* Deshabilitar animación cuando está completo */
.progress-bar[style*="width:100%"] {
  animation: none;
}

/*--------BARRA DE PROGRSO GLOBAL SCANNER PICKING CAJA GRIS--------*/
/* ===== Progress bar para Scanner ===== */
#page-scanner .progress-container {
  width: 100%;
  height: 30px;
  background-color: #f5f5f5;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
  margin: 10px 0;
}

#page-scanner .progress-bar {
  height: 100%;
  line-height: 30px;
  color: white;
  text-align: center;
  font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  transition: all 0.5s ease;
}

/*---------PARA PICKING CAJA GRIS LIST--*/
/* Fila completa */
tr.orden-completa {
  background-color: #f0f8f0 !important;
  opacity: 0.9;
}

/* Botones mejorados */
.btn-ver {
  background-color: #f8f9fa !important;
  color: #333 !important;
  border: 1px solid #dee2e6 !important;
}

.btn-ver:hover {
  background-color: #e9ecef !important;
}

/* Badges de estado */
.ui-li-count {
  animation: fadeIn 0.5s;
}

/* Keyframes para animación de badges */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Mejora visual de la tabla */
#tablaOrdenes td {
  vertical-align: middle !important;
}

/* Texto de progreso bajo la barra */
.progress-info-text {
  color: #666;
  font-size: 0.8em;
}

/* Botones en grid */
.ui-grid-a .ui-btn {
  margin: 2px !important;
}


/*-------------------BADGES PARA ESTADOS DE ORDENES--------------*/
/* Badges para estados de órdenes */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 10px;
    vertical-align: middle;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

/* Botón unirse con diferente estilo */
.ui-btn.ui-btn-a.btn-configurar {
    background: #17a2b8 !important;
    color: white !important;
    border-color: #138496 !important;
}

/*-------------- MOSTRAR STOCK EN GESTOR DE PEDIDOS----------*/
/* Estilos para estados de stock */
.stock-completo {
  color: #28a745;
  font-weight: bold;
}

.stock-parcial {
  color: #ffc107;
  font-weight: bold;
}

.stock-sin {
  color: #dc3545;
  font-weight: bold;
}

.stock-cargando {
  color: #6c757d;
  font-style: italic;
}

.stock-error {
  color: #dc3545;
  font-style: italic;
}

/*---------LISTADO ORDENES COMPRA*/
/* 🆕 Badges de estado de órdenes */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 12px;
    text-align: center;
    white-space: nowrap;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

/* 🆕 Barra de progreso mejorada */
.progress-container_oc {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 4px;
}

.progress-bar_oc {
    height: 100%;
    line-height: 20px;
    color: white;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    transition: width 0.4s ease;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.1);
}

.progress-info-text_oc {
    display: block;
    font-size: 11px;
    color: #6c757d;
    text-align: center;
    margin-top: 2px;
}

/* 🆕 Colorear filas según progreso */
tr.orden-parcial {
    background-color: #fff3cd !important;  /* Amarillo suave */
    border-left: 4px solid #ffc107 !important;
}

tr.orden-completa {
    background-color: #d4edda !important;  /* Verde suave */
    border-left: 4px solid #28a745 !important;
}

tr.orden-parcial:hover,
tr.orden-completa:hover {
    opacity: 0.9;
    cursor: pointer;
}

/* Órdenes cuya entrega estimada es HOY */
tr.oc-hoy {
  border-left: 4px solid #ff9800 !important;
}
