﻿
/* Fullscreen overlay */
body.processing-lock {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}


.processing-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20000; /* above drawer/nav/dialogs */
    display: grid;
    place-items: center;
    /* Theme-friendly overlay */
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    pointer-events: all; /* capture all clicks */
    touch-action: none; /* block mobile gestures */
}

/* Modal panel styled with Radzen variables */
.processing-modal {
    /* hard cap + responsive width */
    width: min(460px, calc(100vw - 96px)); /* <-- 48px padding each side */
    max-width: 460px;
    margin-inline: auto; /* ensures it's centered */
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--rz-base-background-color, #111);
    color: var(--rz-text-color, #fff);
    border: 1px solid var(--rz-border-color, rgba(255,255,255,.12));
    box-shadow: var(--rz-shadow-6, 0 12px 35px rgba(0,0,0,.45));
}

/* Layout */
.processing-row {
    display: flex;
    align-items: center;
    justify-content: center; /* centers the whole group */
    gap: 14px;
}


.processing-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.processing-message {
    margin-top: 4px;
    font-size: .95rem;
    opacity: .85;
    line-height: 1.25;
}

/* Spinner that matches Radzen theme */
.processing-spinner {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    /* Use Radzen primary */
    border: 3px solid color-mix(in srgb, var(--rz-primary, #3b82f6) 25%, transparent);
    border-top-color: var(--rz-primary, #3b82f6);
    animation: processing-spin .9s linear infinite;
    flex: 0 0 auto;
}

@keyframes processing-spin {
    to {
        transform: rotate(360deg);
    }
}




