/* Loading dots for pages, buttons and small sections. */
.cc-loader-dots {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    color: #004579;
}
.cc-loader-dots span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12%;
    height: 12%;
    margin: -6%;
    border-radius: 50%;
    background: currentColor;
    opacity: .16;
    transform: rotate(calc(var(--dot) * 36deg)) translateY(-335%);
    animation: cc-loading-dot 960ms linear infinite;
    animation-delay: calc(var(--dot) * 96ms - 960ms);
}
.cc-loader-dots span:nth-child(3n) { color: #4fa3e0; }
@keyframes cc-loading-dot {
    0%, 12% { opacity: 1; }
    55%, 100% { opacity: .16; }
}
.cc-loading-screen, .cc-loading-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: opacity 140ms ease;
    font: 14px/1.5 Montserrat, Arial, sans-serif;
    color: #032137;
    background: rgba(255, 255, 255, .96);
}
.cc-loading-screen { position: fixed; inset: 0; z-index: 2147483000; background: rgba(3, 33, 55, .14); }
.cc-loading-section { position: absolute; inset: 0; z-index: 20; min-height: 90px; }
.cc-loading-container { position: relative; min-height: 90px; }
.cc-loading-visible { opacity: 1; }
.cc-loading-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.cc-loading-label.cc-loading-message {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0 18px;
    clip-path: none;
    white-space: normal;
    text-align: center;
}
.cc-loading-dismiss {
    border: 1px solid #bbd0e0;
    background: #fff;
    color: #004579;
    border-radius: 5px;
    padding: 8px 14px;
    font: inherit;
    cursor: pointer;
}
.cc-loading-button { position: relative; }
.cc-loading-button > .cc-loader-dots {
    width: 20px;
    height: 20px;
    color: inherit;
    margin-right: 9px;
    vertical-align: middle;
}
.cc-loading-button > .cc-loader-dots span:nth-child(3n) { color: inherit; }
.cc-loading-button > .cc-loader-dots { animation: cc-loading-appear 140ms ease; }
@keyframes cc-loading-appear { from { opacity: 0; } to { opacity: 1; } }

/* Let the next screen settle in after the dots disappear. */
.cc-page-reveal { animation: cc-page-reveal 220ms ease-out both !important; }
@keyframes cc-page-reveal { from { opacity: .88; } to { opacity: 1; } }

/* A small confirmation before signing out. */
.cc-logout-dialog {
    box-sizing: border-box;
    width: min(390px, calc(100% - 32px));
    padding: 24px;
    border: 1px solid #c9d7e3;
    border-radius: 10px;
    background: #fff;
    color: #032137;
    box-shadow: 0 14px 42px rgba(3, 33, 55, .18);
    font: 14px/1.5 Montserrat, Arial, sans-serif;
    animation: cc-loading-appear 120ms ease;
}
.cc-logout-dialog::backdrop { background: rgba(3, 33, 55, .35); }
.cc-logout-dialog h2 { margin: 0 0 10px; font-size: 19px; }
.cc-logout-dialog p { margin: 0 0 22px; }
.cc-logout-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.cc-logout-actions button {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #c9d7e3;
    border-radius: 5px;
    background: #fff;
    color: #004579;
    font: inherit;
    cursor: pointer;
}
.cc-logout-actions .cc-logout-confirm { background: #004579; color: #fff; border-color: #004579; }
.staff-body .cc-logout-dialog { border-radius: 4px; }
.staff-body .cc-logout-actions .cc-logout-confirm { background: #2c67c9; border-color: #245bb6; }
@media (prefers-reduced-motion: reduce) {
    .cc-loader-dots span { animation: none; opacity: .55; }
    .cc-loader-dots span:first-child { opacity: 1; }
    .cc-loading-screen, .cc-loading-section { transition: none; }
    .cc-loading-button > .cc-loader-dots { animation: none; }
    .cc-logout-dialog { animation: none; }
    .cc-page-reveal { animation: none !important; }
}
@media print {
    .cc-page-reveal { animation: none !important; opacity: 1 !important; }
    .cc-loading-screen, .cc-loading-section, .cc-loader-dots { display: none !important; }
}
