.report-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}
.report-page-heading h1 { margin: 3px 0 7px; font-size: 30px; letter-spacing: -.025em; }
.report-schedule-chip, .report-completion-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 7px 12px;
    background: #eef4ff;
    color: var(--dataq-blue);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.report-history-card, .report-analysis-card, .report-client-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(17, 32, 38, .045);
}
.report-history-card { overflow: hidden; }
.report-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
}
.report-card-heading h2 { margin: 3px 0 0; font-size: 19px; }
.report-history-table td, .report-history-table th { white-space: nowrap; }
.report-actions-cell { display: flex; gap: 7px; align-items: center; }
.table-action.secondary { color: var(--dataq-green); }
.delivery-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
    background: #f1f0ed;
    color: #635f59;
}
.delivery-sent { background: #e7f6f2; color: #176d61; }
.delivery-failed { background: #fff0f0; color: #8a1c1c; }
.delivery-no_recipients { background: #fff5e7; color: #8a5a14; }
.delivery-pending { background: #eef4ff; color: var(--dataq-blue); }
.report-heading-actions { display: flex; align-items: center; gap: 10px; }
.report-primary-action {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border-radius: 9px;
    padding: 8px 13px;
    background: var(--dataq-blue);
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}
.report-primary-action:hover { background: #0f337b; color: white; }
.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.report-summary-card {
    padding: 17px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}
.report-summary-card > span { display: block; color: var(--text-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.report-summary-card strong { display: block; margin-top: 5px; font-size: 22px; }
.report-summary-card small { display: block; margin-top: 3px; color: var(--text-muted); }
.report-analysis-card { padding: 19px 21px; margin-bottom: 17px; border-left: 4px solid var(--dataq-blue); }
.report-analysis-card p { margin: 4px 0; }
.report-error { margin-top: 13px; padding: 10px 12px; border-radius: 9px; background: #fff0f0; color: #8a1c1c; }
.report-clients-stack { display: grid; gap: 15px; }
.report-client-card { overflow: hidden; }
.report-status-bar { display: flex; height: 10px; margin: 0 22px 17px; border-radius: 999px; overflow: hidden; background: #e9e6e0; }
.report-status-completed { background: var(--dataq-green); }
.report-status-progress { background: var(--dataq-blue); }
.report-status-not-started { background: #c7c2ba; }
.report-metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--border);
}
.report-metrics-grid > div { padding: 16px 18px; border-right: 1px solid var(--border); }
.report-metrics-grid > div:last-child { border-right: 0; }
.report-metrics-grid span { display: block; color: var(--text-muted); font-size: 11px; font-weight: 800; }
.report-metrics-grid strong { display: block; margin-top: 4px; font-size: 22px; }
.report-metrics-grid small { display: block; margin-top: 2px; color: var(--text-muted); }
.report-back-link { margin: 20px 0 0; }
.report-back-link a { color: var(--dataq-blue); font-weight: 800; text-decoration: none; }

@media (max-width: 1100px) {
    .report-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-metrics-grid > div { border-bottom: 1px solid var(--border); }
}

@media (max-width: 760px) {
    .report-page-heading, .report-card-heading { flex-direction: column; }
    .report-summary-grid, .report-metrics-grid { grid-template-columns: 1fr; }
    .report-heading-actions { flex-wrap: wrap; }
}
