/**
 * Global export progress overlay (Students-style).
 * Shown while PDF/Excel (or other file) exports are generated via XHR.
 */
.sls-export-progress-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
    pointer-events: none;
    z-index: 2147483210 !important;
}
.sls-export-progress-modal.hidden {
    display: none !important;
}
.sls-export-progress-modal:not(.hidden) {
    display: block !important;
    pointer-events: auto;
}
.sls-export-progress-modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    z-index: 0;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    pointer-events: auto;
}
.sls-export-progress-modal-stage {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.25rem;
    box-sizing: border-box;
    pointer-events: none;
}
.sls-export-progress-modal-panel {
    position: relative !important;
    z-index: 2;
    display: flex !important;
    flex-direction: column !important;
    width: min(92vw, 28rem);
    max-width: 98vw;
    margin: 0 !important;
    overflow: hidden;
    pointer-events: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.4) !important;
}
.sls-export-progress-modal-panel .sls-export-progress-head {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}
.sls-export-progress-modal-panel .sls-export-progress-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1.3;
}
.sls-export-progress-modal-panel .sls-export-progress-text {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
}
.sls-export-progress-modal-panel .sls-export-progress-body {
    padding: 1.25rem;
}
.sls-export-progress-track {
    width: 100%;
    height: 0.75rem;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}
.sls-export-progress-bar {
    height: 100%;
    width: 8%;
    background: #4f46e5;
    border-radius: 9999px;
    transition: width 0.3s ease;
}
.sls-export-progress-percent {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}
body.sls-export-progress-open {
    overflow: hidden !important;
}
body.sls-export-progress-open #searchContainer,
body.sls-export-progress-open #searchContainer .sls-list-search-form,
body.sls-export-progress-open #searchInput,
body.sls-export-progress-open #searchSuggestions,
body.sls-export-progress-open .sls-search-container {
    z-index: 0 !important;
    pointer-events: none !important;
}

html[data-theme="dark"] .sls-export-progress-modal-panel {
    background: var(--sls-dark-surface, #1e293b) !important;
    border-color: var(--sls-dark-border, #334155) !important;
    color: var(--sls-dark-text, #e2e8f0);
}
html[data-theme="dark"] .sls-export-progress-modal-panel .sls-export-progress-head {
    border-bottom-color: var(--sls-dark-border, #334155);
}
html[data-theme="dark"] .sls-export-progress-modal-panel .sls-export-progress-title {
    color: var(--sls-dark-text, #e2e8f0);
}
html[data-theme="dark"] .sls-export-progress-modal-panel .sls-export-progress-text,
html[data-theme="dark"] .sls-export-progress-percent {
    color: #94a3b8;
}
html[data-theme="dark"] .sls-export-progress-track {
    background: #334155;
}
html[data-theme="dark"] .sls-export-progress-modal-backdrop {
    background: rgba(15, 23, 42, 0.45);
}
