#divLoading {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background: rgba(254, 254, 255, 0.65);
z-index: 9999;
display: none;
}

#divLoading img {
width: 55px;
height: 55px;
}

#divLoadingPro {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background: rgba(254, 254, 255, 0.65);
z-index: 99999999;
pointer-events: none; /* Bloquea la interacción con otros elementos */
}

#divLoadingPro.active {
display: flex;
pointer-events: auto; /* Permite la interacción solo con el overlay */
}

#divLoadingPro img {
width: 55px;
height: 55px;
}

/* estilos de nav.php */
#app-inventario {
background: linear-gradient(90deg, #0000ff, #00ffff);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
font-weight: bold;
}
#user-text {
color: #344767;

margin-left: 0.5rem;
}
/* fin de estilos de nav.php */

/* Estilos para eliminar el spinner en navegadores basados en WebKit (Chrome, Safari), es para que no aparezca el increment o decrement en los input number */
#conteo::-webkit-inner-spin-button,
#conteo::-webkit-outer-spin-button,
#pqt::-webkit-inner-spin-button,
#pqt::-webkit-outer-spin-button,
#und::-webkit-inner-spin-button,
#und::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* estilos para la tabla de la vista producto */
#table {
width: 100%;
font-size: 0px;
}
#table th:nth-child(1) {
    width: 9%; /* Primera columna ocupa el 30% del ancho total */
    padding: 0.75rem 0.5rem;
}
#table tbody tr {
height: 20px;
}
#table th {
width: 20%;
background-color: rgb(102 255 216 / 46%);
color: #000000;
border-radius: 5px;
}
#table td {
background-color: #ffffff;
color: #333;
}
/* #00fd6714 */

/* Estilo para pantallas pequeñas (teléfonos) */
@media (max-width: 540px) {
    #tamaño {
        font-size: 0.7rem !important;
    }
    
    /* Estilos para columnas barra y ubicación - mismo tamaño que código y descripción */
    #table td h6 {
        font-size: 0.7rem !important;
    }
    .conteoUno {
        width: 35px;
        font-size: 0.65rem;
        padding: 0.2rem 0.2rem;
        border: 1px solid #17c1e8;
        border-radius: 5px;
        outline: none;
    }

    .botonContar {
    font-size: 0.85rem !important;
    padding: 0.1rem 0.3rem !important;
    }
    /* no borrar botonContarDos ya que si le pone los mismos estilos de botonContar que son casi lo mismo al cambiar a la variable de conteo general va a activar un evento que no le corresponde */
    .botonContarDos {
    font-size: 0.85rem !important;
    padding: 0.1rem 0.3rem !important;
    }
}

/* Estilo para tabletas (pantallas medianas) */
@media (min-width: 541px) and (max-width: 768px) {
    #tamaño {
        font-size: 1.0rem !important;
    }
    
    /* Estilos para columnas barra y ubicación - mismo tamaño que código y descripción */
    #table td h6 {
        font-size: 1.0rem !important;
    }
    .conteoUno {
        width: 50px; /* Define un ancho fijo */
        height: 50px;
        font-size: 0.70rem;
        padding: 0.2rem 0.2rem !important; 
        border: 1px solid #17c1e8;
        border-radius: 5px;
        outline: none;
    }
    .conteo-label {
        font-size: 0.65rem !important;
    }

    .botonContar {
        width: 50px;
        height: 50px;
        padding-top: 10px !important;
        padding-left: 17px !important;
        text-align: center;
    }
    /* no borrar botonContarDos ya que si le pone los mismos estilos de botonContar que son casi lo mismo al cambiar a la variable de conteo general va a activar un evento que no le corresponde */
    .botonContarDos {
        width: 50px;
        height: 50px;
        padding-top: 10px !important;
        padding-left: 17px !important;
        text-align: center;
    }
}

/* Estilo para pantallas grandes (PC) */
@media (min-width: 769px) {
    #tamaño {
        font-size: 0.85rem !important;
    }
    
    /* Estilos para columnas barra y ubicación - mismo tamaño que código y descripción */
    #table td h6 {
        font-size: 0.85rem !important;
    }
    .conteoUno {
        font-size: 0.70rem;
        padding: 0.2rem 0.2rem; 
        border: 1px solid #17c1e8;
        border-radius: 5px;
        outline: none;
    }
    .conteo-label {
        font-size: 0.75rem !important;
    }

    .botonContar {
    font-size: 0.85rem !important;
    padding: 0.1rem 0.3rem !important;
    }
    /* no borrar botonContarDos ya que si le pone los mismos estilos de botonContar que son casi lo mismo al cambiar a la variable de conteo general va a activar un evento que no le corresponde */
    .botonContarDos {
    font-size: 0.85rem !important;
    padding: 0.1rem 0.3rem !important;
    }
}

.conteoUno:focus {
    box-shadow: 0 0 5px #d63384; /* Opcional: añade un brillo alrededor */
}

#conteo {
/* padding-left: 0px !important; */
border: 1px solid #17c1e8;
}

/* estilos para los contenedores de los inpus de contar  */
.conteo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.conteo-label {
    font-size: 0.45rem;
    color: #7049d4;
    font-weight: bold;
}
.button-container-conteo {
    display: flex;
    gap: 3px;
    justify-content: center;
    align-items: flex-start;
}

/*fin de estilos para la tabla de la vista producto */

/* estilos a los botones de paginacion  */
.pagination .page-item .page-link {
font-size: 0.55rem;
padding: 0.15rem 0.3rem;
}

.pagination .page-item.active .page-link {
background-color: #17c1e8;
border-color: #ffffff !important;
color: white;
}
/* estilos a los botones de paginacion  */

/* estilos css para el logo de ADN */
.fixed-logo-container {
    position: fixed;
    top: 97%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000; /* Asegúrate de que esté por encima de otros elementos */
}

.fixed-logo {
    max-width: 100px; /* Ajusta el tamaño según sea necesario */
    height: auto; /* Mantiene la proporción de la imagen */
}

/* Definir la clase personalizada para ajustar el z-index  de la alert de la vista editar empresa*/ 
.swal2-z-index {
    z-index: 9999 !important;
}

/* ========================================================================
   SISTEMA DE PERSISTENCIA LOCAL - ANIMACIONES E INDICADORES
   ======================================================================== */

/* Animación de entrada desde la derecha */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animación de salida hacia la derecha */
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Indicador flotante de productos sin guardar */
.unsaved-indicator {
    position: fixed;
    bottom: 52px;
    right: 5px;
    padding: 5px 5px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9998;
    animation: slideIn 0.3s ease;
    cursor: pointer;
}

/* Estado de advertencia (hay productos sin guardar) */
.unsaved-indicator.warning {
    background: #ff9800;
    color: white;
}

/* Estado de éxito (todo guardado) */
.unsaved-indicator.success {
    background: #28a745;
    color: white;
}

.unsaved-indicator i {
    font-size: 18px;
}

.unsaved-indicator span {
    font-size: 14px;
}
