#loadingOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading.no-back {
    background: rgb(236, 236, 236);
}

.loading-local {
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: rgb(203 203 203 / 30%);
    position: absolute; /* Ultimo elemento que for relativo */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.loading-local.no-back {
    background: rgb(236, 236, 236);
}

.loading-local.flex {
    display: flex;
}

.loading-local.sticky {
    height: 100%;
    position: sticky;
    top: 0;
    display: block !important;
    width: 100%;
}

.loading-local.sticky .spinner {
    position: sticky;
    top: 50%;
    left: 50%;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: girar 1s linear infinite;
}

.spinner.sm {
    width: 20px;
    height: 20px;
}

@keyframes girar {
    to { transform: rotate(360deg); }
}