/* ==========================================================================
   Service Report POC - common loading spinner (used by Scripts/busy.js on every page)
   ==========================================================================*/

/* Common loading spinner (Scripts/busy.js): covers the page while the server works (dots: red / yellow / green).
   z-index above Bootstrap modals (1055) and toasts (1090), so nothing can be clicked twice. */
.busy-overlay {
    position: fixed; inset: 0; z-index: 2000;
    display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background: rgba(255, 255, 255, 0.6);
    cursor: wait;
}
.busy-overlay.is-on { display: flex; }
.busy-overlay .busy-text { font-weight: 600; color: #333; text-align: center; padding: 0 16px; }
.busy-dots {
    width: 60px;
    aspect-ratio: 2;
    background:
        no-repeat radial-gradient(circle closest-side, #dc3545 90%, #0000) 0% 50%,
        no-repeat radial-gradient(circle closest-side, #ffc107 90%, #0000) 50% 50%,
        no-repeat radial-gradient(circle closest-side, #198754 90%, #0000) 100% 50%;
    background-size: calc(100%/3) 50%;
    animation: busy-dots 1s infinite linear;
}
@keyframes busy-dots {
    20% { background-position: 0% 0%, 50% 50%, 100% 50%; }
    40% { background-position: 0% 100%, 50% 0%, 100% 50%; }
    60% { background-position: 0% 50%, 50% 100%, 100% 0%; }
    80% { background-position: 0% 50%, 50% 50%, 100% 100%; }
}

@media print { .busy-overlay { display: none !important; } }
