/*
  Rules for every page, whatever the layout. Routes.razor moves the focus to the page title after
  each navigation, for screen readers; the focus ring on a title that cannot be clicked would only
  look like an error to everybody else.
*/
h1:focus {
    outline: none;
}

/* The back-office before its circuit draws the page (App.razor): gone as soon as the layout is there. */
body:has(> .page) .backoffice-loading {
    display: none;
}

/* After a few seconds without the page, the way out: a reload. */
.backoffice-loading-stuck {
    visibility: hidden;
    animation: backoffice-loading-stuck 0s linear 8s forwards;
}

@keyframes backoffice-loading-stuck {
    to {
        visibility: visible;
    }
}

/* Shown by Blazor when the circuit ends on an error (App.razor). */
#blazor-error-ui {
    display: none;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1100;
    padding: 0.75rem 1.25rem;
    background: #fff3cd;
    color: #664d03;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
}

#blazor-error-ui .reload {
    margin-left: 0.5rem;
    font-weight: 600;
}

/* The calendar on a phone: a smaller title, so that it fits beside the arrows. */
@media (max-width: 767.98px) {
    .fc .fc-toolbar-title {
        font-size: 1.1rem;
    }

    .fc .fc-toolbar {
        gap: 0.5rem;
    }
}
