.tbl-loader {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(3px);
}

.tbl-loader.is-active {
    display: flex;
}

.tbl-loader-active {
    cursor: progress;
}

.tbl-loader__box {
    min-width: 220px;
    max-width: min(92vw, 320px);
    padding: 1.1rem 1.2rem;
    border-radius: 1.15rem;
    border: 1px solid #dbe2ea;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    text-align: center;
}

.tbl-loader__spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    border: 3px solid color-mix(in srgb, var(--bs-secondary) 18%, white);
    border-top-color: var(--bs-primary);
    animation: tblLoaderSpin 0.8s linear infinite;
}

.tbl-loader__title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #24324a;
}

.tbl-loader__text {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #7b8794;
}

@keyframes tblLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

[data-bs-theme="dark"] .tbl-loader {
    background: rgba(15, 23, 42, 0.52);
}

[data-bs-theme="dark"] .tbl-loader__box {
    background: #1f2637;
    border-color: #344054;
    box-shadow: none;
}

[data-bs-theme="dark"] .tbl-loader__title {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .tbl-loader__text {
    color: #98a2b3;
}
