#report-generation-overlay-root {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200000;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#report-generation-overlay-root.is-visible { display: flex; }
.report-generation-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    padding: 26px 24px 20px;
    text-align: center;
    border: 2px solid #22c55e;
}
.report-generation-card.is-error { border-color: #ef4444; }
.report-generation-card .report-generation-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #14532d;
}
.report-generation-card.is-error .report-generation-title { color: #991b1b; }
.report-generation-card .report-generating-caption {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
}
.report-generation-card.is-success .report-generating-caption {
    color: #15803d;
    font-weight: 600;
    font-size: 14px;
}
.report-generation-progress-track {
    height: 10px;
    background: #dcfce7;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}
.report-generation-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    border-radius: 999px;
    transition: width 0.35s ease;
}
.report-generation-card.is-error .report-generation-progress-bar {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}
.report-generation-percent {
    font-size: 22px;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 12px;
}
.report-generation-card.is-error .report-generation-percent { color: #dc2626; }
.report-generation-card.is-success .report-generation-percent { color: #15803d; }
.report-generation-steps-wrap {
    margin: 0 0 18px;
    text-align: start;
}
html[dir="RTL"] .report-generation-steps-wrap { text-align: start; }
.report-generation-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}
.report-generation-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 12px;
    margin-bottom: 6px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #9ca3af;
    background: #f9fafb;
    border: 1px solid transparent;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.report-generation-step.is-active {
    background: #f0fdf4;
    border-color: #86efac;
    color: #14532d;
    font-weight: 600;
}
.report-generation-step.is-done {
    background: #ecfdf5;
    color: #15803d;
}
.report-generation-step-icon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    margin-top: 1px;
    font-size: 14px;
    color: inherit;
}
.report-generation-step.is-active .report-generation-step-icon { color: #16a34a; }
.report-generation-step.is-done .report-generation-step-icon { color: #22c55e; }
.report-generation-step-label { flex: 1; }
.report-generation-actions { margin-top: 8px; }
.report-generation-background-btn {
    border-color: #86efac;
    color: #15803d;
    background: #f0fdf4;
}
.report-generation-background-btn:hover {
    background: #dcfce7;
    color: #14532d;
}
.header-report-download-wrap.is-hidden { display: none !important; }
.header-report-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin-top: 10px;
    border-radius: 999px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #14532d;
    font-size: 12px;
    font-weight: 600;
    max-width: 240px;
    line-height: 1.2;
}
.header-report-download.is-success {
    background: #dcfce7;
    border-color: #22c55e;
}
.header-report-download.is-error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}
.header-report-download-icon { color: #16a34a; font-size: 14px; }
.header-report-download-bar {
    display: inline-block;
    width: 52px;
    height: 5px;
    background: #bbf7d0;
    border-radius: 999px;
    overflow: hidden;
    vertical-align: middle;
}
.header-report-download-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    border-radius: 999px;
    transition: width 0.35s ease;
}
.header-report-download-percent {
    min-width: 34px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.header-report-download-dismiss {
    flex-shrink: 0;
    margin: 0 -4px 0 2px;
    padding: 0 5px;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 16px;
    line-height: 1;
    opacity: 0.65;
    cursor: pointer;
}
.header-report-download-dismiss:hover { opacity: 1; }
