/* ── Report Generation Page Styles ─────────────────────────────── */

.report-container {
    max-height: 90vh;
    overflow-y: auto;
}

.report-page-header {
    background: #2C9162;
    border-radius: 8px;
    padding: 10px 18px;
    margin-bottom: 12px;
}

.report-page-header h1 {
    color: #fff;
    font-weight: 700;
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: 0.4px;
}

/* ── Cards ───────────────────────────────────────────────────────── */

.report-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    padding: 12px 16px;
    margin-bottom: 12px;
}

.card-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e3a5f;
    border-bottom: 2px solid #2d6cbf;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

/* ── Sub-sections (left-coloured band) ───────────────────────────── */

.report-sub-section {
    border-left: 3px solid #2d6cbf;
    padding: 6px 12px 6px 12px;
    margin-bottom: 8px;
    background: #f5f8fd;
    border-radius: 0 6px 6px 0;
}

.report-sub-section h5 {
    font-weight: 700;
    color: #1e3a5f;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.report-sub-section .form-check {
    margin-bottom: 2px;
}

.report-sub-section .form-check-label {
    color: #334155;
    cursor: pointer;
    font-size: 0.87rem;
}

.report-sub-section .form-check-input:checked {
    background-color: #2d6cbf;
    border-color: #2d6cbf;
}

/* ── Year range / RMPI input boxes ───────────────────────────────── */

.year-range-box,
.rmpi-box {
    background: #eef2fa;
    border: 1px solid #c7d7f0;
    border-radius: 6px;
    padding: 7px 10px;
    margin-top: 6px;
}

/* ── Criteria labels ─────────────────────────────────────────────── */

.criteria-label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 3px;
    font-size: 0.85rem;
}

/* ── Form controls ───────────────────────────────────────────────── */

.form-select,
.form-control {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.88rem;
}

.form-select:focus,
.form-control:focus {
    border-color: #2d6cbf;
    box-shadow: 0 0 0 0.2rem rgba(45, 108, 191, 0.18);
}

/* ── Generate button ─────────────────────────────────────────────── */

.btn-generate {
    background: #2d6cbf;
    border: none;
    color: #fff;
    padding: 9px 20px;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: background-color 0.2s ease;
}

.btn-generate:hover {
    background: #1e3a5f;
    color: #fff;
}

/* ── Error alert ─────────────────────────────────────────────────── */

.report-alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
}
