/* ==========================================================================
   ADVANCED REPORTS MODULE — Premium Glassmorphism UI
   ========================================================================== */

/* ── Google Font (Inter loaded via style.css; this adds any extras) ────────── */

/* ── Hero / Gradient Banner ─────────────────────────────────────────────── */
.reports-hero-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a3c6e 0%, #2563eb 50%, #7c3aed 100%);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
    box-shadow: 0 10px 40px rgba(37,99,235,0.25);
}
.reports-hero-banner::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.reports-hero-banner::after {
    content: '';
    position: absolute;
    bottom: -40px; left: 20%;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.25rem;
    position: relative;
    z-index: 1;
}
.hero-subtitle {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0;
    position: relative;
    z-index: 1;
}
.hero-action {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.65rem 1.4rem;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(6px);
    text-decoration: none;
}
.hero-action:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-2px);
}

/* ── Stats Row ──────────────────────────────────────────────────────────── */
.report-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.mini-stat {
    background: var(--bg-surface, #ffffff);
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    border: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.mini-stat::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s;
}
.mini-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mini-stat:hover::before { opacity: 1; }

.mini-stat label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-secondary, #64748b);
    font-weight: 700;
}
.mini-stat span {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a3c6e, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.mini-stat .mini-stat-sub {
    font-size: 0.75rem;
    color: var(--text-secondary, #94a3b8);
    -webkit-text-fill-color: var(--text-secondary, #94a3b8);
}

/* Format breakdown badges in stats row */
.format-badge-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0.15rem;
    border: 1px solid currentColor;
}

/* ── Toolbar Row ─────────────────────────────────────────────────────────── */
.report-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.search-container-modern {
    position: relative;
    flex: 1;
    max-width: 380px;
}
.search-container-modern input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    background: var(--bg-surface, #ffffff);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    color: var(--text-primary);
}
.search-container-modern input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12), 0 4px 8px rgba(0,0,0,0.06);
}
.search-container-modern i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ── Reports Grid ─────────────────────────────────────────────────────────── */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
    padding: 0.25rem 0;
}

/* ── Report Card ─────────────────────────────────────────────────────────── */
.report-card {
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.28s cubic-bezier(0.4,0,0.2,1),
                border-color 0.28s;
    /* Animation start state */
    opacity: 0;
    transform: translateY(18px);
    animation: cardFadeUp 0.45s ease forwards;
}

@keyframes cardFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.report-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 48px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
    border-color: #2563eb;
    z-index: 5;
}

/* Top gradient accent bar (per card, coloured dynamically by JS inline style) */
.report-card-accent {
    height: 4px;
    width: 100%;
    flex-shrink: 0;
}

.report-card-body {
    padding: 1.25rem 1.5rem 0.75rem;
    flex: 1;
}

/* Icon bubble */
.report-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: transform 0.28s ease;
}
.report-card:hover .report-icon-wrap {
    transform: scale(1.12) rotate(-4deg);
}

/* Title */
.report-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    margin: 0 0 0.6rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta row */
.report-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary, #64748b);
    margin-bottom: 0.5rem;
}

/* Type badge */
.badge-type {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.report-date-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.report-time {
    opacity: 0.65;
    font-size: 0.72rem;
}

.badge-province {
    background: rgba(37,99,235,0.08);
    color: #2563eb;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Author line */
.report-author {
    font-size: 0.78rem;
    color: var(--text-secondary, #94a3b8);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

/* ── Action Area ─────────────────────────────────────────────────────────── */
.report-actions-area {
    padding: 0.9rem 1.5rem;
    border-top: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--bg-surface-2, #f8fafc);
}

/* Format pill */
.format-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}
.report-size {
    font-weight: 400;
    opacity: 0.7;
    font-size: 0.7rem;
    margin-left: 0.15rem;
}

.report-action-btns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Download button */
.btn-download-glow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: transparent;
    color: #2563eb;
    border: 1.5px solid #2563eb;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-download-glow:hover {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 0 18px rgba(37,99,235,0.4);
    transform: translateY(-1px);
}
.btn-download-glow:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Delete button */
.btn-delete-report {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: transparent;
    color: #94a3b8;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-delete-report:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
    transform: scale(1.08);
}

/* ── Report Type Preview (in Generate Modal) ─────────────────────────────── */
.report-type-preview {
    background: var(--bg-surface-2, #f8fafc);
    border-left: 3px solid #2563eb;
    border-radius: 0 8px 8px 0;
    padding: 0.85rem 1rem;
    margin-top: 0.5rem;
    transition: border-color 0.3s;
    animation: previewFadeIn 0.25s ease;
}
@keyframes previewFadeIn {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}
.rtp-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
}
.rtp-desc {
    font-size: 0.82rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.5;
    margin: 0;
}

/* ── Empty State ─────────────────────────────────────────────────────────── */
.report-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3.5rem 1.5rem;
    text-align: center;
    color: var(--text-secondary, #64748b);
}
.report-empty-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(124,58,237,0.08));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.8rem;
    color: #94a3b8;
}
.report-empty-state h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    margin-bottom: 0.5rem;
}
.report-empty-state p {
    font-size: 0.9rem;
    max-width: 320px;
    margin: 0;
}

/* ── Skeleton Loading ────────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--border-color, #e2e8f0) 25%,
        var(--bg-surface-2, #f1f5f9) 50%,
        var(--border-color, #e2e8f0) 75%
    );
    background-size: 300% 100%;
    animation: shimmer 1.6s infinite;
    border-radius: 6px;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card {
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 1.5rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 1.25rem 0;
}
.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    background: var(--bg-surface, #ffffff);
    color: var(--text-primary, #1e293b);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.page-btn:hover:not(:disabled) {
    background: #dbeafe;
    border-color: #2563eb;
    color: #2563eb;
}
.page-btn.active,
.page-btn:disabled {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    cursor: default;
}
.page-btn.active { font-weight: 700; }
.page-nav { font-size: 0.78rem; }
.page-ellipsis {
    display: inline-flex;
    align-items: center;
    color: #94a3b8;
    font-size: 0.875rem;
}
.page-info {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-left: 0.75rem;
}

/* ── Dark Mode Overrides ─────────────────────────────────────────────────── */
[data-theme="dark"] .report-card,
[data-theme="dark"] .skeleton-card {
    background: var(--bg-surface, #1e293b);
    border-color: var(--border-color, #334155);
}
[data-theme="dark"] .report-card:hover {
    box-shadow: 0 20px 48px rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.2);
}
[data-theme="dark"] .report-actions-area {
    background: rgba(255,255,255,0.03);
    border-top-color: var(--border-color, #334155);
}
[data-theme="dark"] .mini-stat {
    background: var(--bg-surface, #1e293b);
    border-color: var(--border-color, #334155);
}
[data-theme="dark"] .report-type-preview {
    background: rgba(255,255,255,0.04);
}
[data-theme="dark"] .skeleton {
    background: linear-gradient(
        90deg,
        #1e293b 25%,
        #263348 50%,
        #1e293b 75%
    );
    background-size: 300% 100%;
}
[data-theme="dark"] .search-container-modern input {
    background: var(--bg-surface, #1e293b);
    border-color: var(--border-color, #334155);
    color: var(--text-primary, #f1f5f9);
}
[data-theme="dark"] .page-btn {
    background: var(--bg-surface, #1e293b);
    border-color: var(--border-color, #334155);
    color: var(--text-primary, #f1f5f9);
}
[data-theme="dark"] .page-btn:hover:not(:disabled) {
    background: #1e3a8a;
    border-color: #2563eb;
    color: #93c5fd;
}
[data-theme="dark"] .btn-delete-report {
    border-color: #334155;
    color: #64748b;
}
[data-theme="dark"] .btn-delete-report:hover {
    background: #450a0a;
    color: #f87171;
    border-color: #7f1d1d;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }
    .report-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .reports-hero-banner {
        padding: 1.5rem;
    }
    .hero-title { font-size: 1.3rem; }
    .report-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-container-modern {
        max-width: 100%;
    }
}
@media (max-width: 480px) {
    .report-stats-row { grid-template-columns: 1fr 1fr; }
    .mini-stat span { font-size: 1.5rem; }
}
/* ========================================================================== 
   REPORT AVAILABILITY AND MISSING-DOCUMENT STATES
   ========================================================================== */
.report-card-body {
    position: relative;
}

.report-card-status {
    position: absolute;
    top: 1.2rem;
    right: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 28px;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.report-card-status.is-available {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.report-card-status.is-missing {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.report-card-missing {
    border-color: #fecaca;
    background:
        linear-gradient(180deg, rgba(254, 242, 242, 0.72), transparent 45%),
        var(--bg-surface, #ffffff);
}

.report-card-missing:hover {
    border-color: #ef4444;
    box-shadow: 0 18px 42px rgba(239, 68, 68, 0.12);
}

.report-missing-summary {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: 0.8rem;
    padding: 0.65rem 0.75rem;
    border-radius: 9px;
    background: rgba(254, 226, 226, 0.58);
    color: #991b1b;
    font-size: 0.75rem;
    line-height: 1.4;
}

.btn-report-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.45rem 0.9rem;
    border: 1.5px solid #ef4444;
    border-radius: 8px;
    background: #fff;
    color: #b91c1c;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-report-unavailable:hover {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.2);
}

.report-available-stat {
    color: #047857;
    background: #ecfdf5;
    border-color: #6ee7b7;
}

.report-missing-stat {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fca5a5;
}

.report-load-error {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fff7f7;
    color: #7f1d1d;
}

.report-load-error-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    background: #fee2e2;
    color: #dc2626;
    font-size: 1.2rem;
}

.report-load-error h3 {
    margin: 0 0 0.3rem;
    color: #991b1b;
    font-size: 1rem;
}

.report-load-error p {
    margin: 0 0 0.85rem;
    color: #b91c1c;
    font-size: 0.85rem;
}

.report-availability-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.report-availability-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.report-availability-dialog {
    position: relative;
    width: min(560px, 100%);
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 1.2rem;
    padding: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 20px;
    background: var(--bg-surface, #ffffff);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
    transform: translateY(18px) scale(0.97);
    transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.report-availability-dialog::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #ef4444, #f97316);
}

.report-availability-overlay.is-open .report-availability-dialog {
    transform: translateY(0) scale(1);
}

.report-dialog-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    color: var(--text-secondary, #64748b);
    background: var(--bg-surface-2, #f8fafc);
    cursor: pointer;
    transition: all 0.18s ease;
}

.report-dialog-close:hover {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
}

.report-dialog-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 20px;
    color: #dc2626;
    background: linear-gradient(145deg, #fef2f2, #ffedd5);
    border: 1px solid #fed7aa;
    font-size: 2rem;
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.52);
}

.report-dialog-content {
    min-width: 0;
    padding-right: 1.7rem;
}

.report-dialog-kicker {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: #dc2626;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.report-dialog-content h3 {
    margin: 0 0 0.55rem;
    color: var(--text-primary, #172033);
    font-size: 1.35rem;
    line-height: 1.25;
}

.report-dialog-content > p {
    margin: 0;
    color: var(--text-secondary, #64748b);
    line-height: 1.55;
    font-size: 0.9rem;
}

.report-dialog-record {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 1rem 0 0.75rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    color: var(--text-primary, #1e293b);
    background: var(--bg-surface-2, #f8fafc);
    font-size: 0.84rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.report-dialog-record i {
    color: #f97316;
}

.report-dialog-help {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: rgba(241, 245, 249, 0.75);
    font-size: 0.78rem !important;
}

.report-dialog-action {
    margin-top: 1rem;
    min-width: 132px;
    justify-content: center;
}

[data-theme="dark"] .report-card-status.is-available {
    color: #6ee7b7;
    background: rgba(6, 78, 59, 0.42);
    border-color: #047857;
}

[data-theme="dark"] .report-card-status.is-missing,
[data-theme="dark"] .report-missing-summary {
    color: #fca5a5;
    background: rgba(127, 29, 29, 0.32);
    border-color: #7f1d1d;
}

[data-theme="dark"] .report-card-missing {
    background:
        linear-gradient(180deg, rgba(127, 29, 29, 0.18), transparent 50%),
        var(--bg-surface, #1e293b);
    border-color: #7f1d1d;
}

[data-theme="dark"] .btn-report-unavailable {
    color: #fca5a5;
    background: transparent;
    border-color: #ef4444;
}

[data-theme="dark"] .report-availability-dialog {
    border-color: #334155;
    background: var(--bg-surface, #172033);
}

[data-theme="dark"] .report-dialog-icon {
    color: #fca5a5;
    background: linear-gradient(145deg, #450a0a, #431407);
    border-color: #7f1d1d;
    box-shadow: inset 0 0 0 7px rgba(15, 23, 42, 0.36);
}

[data-theme="dark"] .report-dialog-help {
    background: rgba(51, 65, 85, 0.42);
}

@media (max-width: 640px) {
    .report-card-status {
        position: static;
        width: fit-content;
        margin: -0.2rem 0 0.75rem;
    }

    .report-actions-area {
        align-items: stretch;
        flex-direction: column;
    }

    .report-action-btns,
    .btn-download-glow,
    .btn-report-unavailable {
        width: 100%;
    }

    .btn-download-glow,
    .btn-report-unavailable {
        justify-content: center;
    }

    .report-availability-dialog {
        grid-template-columns: 1fr;
        padding: 1.35rem;
    }

    .report-dialog-icon {
        width: 62px;
        height: 62px;
        border-radius: 16px;
        font-size: 1.55rem;
    }

    .report-dialog-content {
        padding-right: 0;
    }
}
