/* SM2-9 / SM2-10: Loading overlay con animalitos animados */
.granja-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.granja-loading-overlay.active {
    display: flex;
}

.granja-loading-animals {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    overflow: hidden;
}

.granja-animal {
    font-size: 48px;
    line-height: 64px;
    text-align: center;
    width: 64px;
    height: 64px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation: granja-carousel 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.granja-animal:nth-child(1) {
    animation-delay: 0s;
}

.granja-animal:nth-child(2) {
    animation-delay: 1s;
}

.granja-animal:nth-child(3) {
    animation-delay: 2s;
}

@keyframes granja-carousel {
    0%   { opacity: 0; transform: translateY(15px) scale(0.8); }
    10%  { opacity: 1; transform: translateY(0) scale(1); }
    30%  { opacity: 1; transform: translateY(-5px) scale(1); }
    33%  { opacity: 0; transform: translateY(-15px) scale(0.8); }
    100% { opacity: 0; }
}

.granja-loading-text {
    font-size: 16px;
    color: #555;
    font-weight: 500;
    letter-spacing: 1px;
}

.granja-loading-dots::after {
    content: '';
    animation: granja-dots 1.5s steps(4, end) infinite;
}

@keyframes granja-dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

/* Ocultar loading panel nativo de DevExpress GridView */
.dxgvLoadingPanel,
.dxgvLoadingDiv,
.dxlp {
    display: none !important;
    visibility: hidden !important;
}

/* Ocultar waitMe nativo */
.waitMe {
    display: none !important;
}
