/* Styles for report summary cards to improve visibility and UX */
.report-summary-card {
    border-width: 2px !important;
    border-style: solid !important;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .06);
    /* subtle shadow */
    border-radius: .375rem;
    /* match Bootstrap card */
}

/* Slightly stronger outline when hovered/focused for accessibility */
.report-summary-card:focus,
.report-summary-card:hover {
    box-shadow: 0 .75rem 1.25rem rgba(0, 0, 0, .08);
}

/* Ensure the colored border matches the contextual text color classes */
.report-summary-card.border-info {
    border-color: var(--bs-info) !important;
}

.report-summary-card.border-warning {
    border-color: var(--bs-warning) !important;
}

.report-summary-card.border-primary {
    border-color: var(--bs-primary) !important;
}

.report-summary-card.border-success {
    border-color: var(--bs-success) !important;
}

.report-summary-card.border-secondary {
    border-color: var(--bs-secondary) !important;
}

.report-summary-card.border-danger {
    border-color: var(--bs-danger) !important;
}

/* Generic card style for report sections (tables, charts) to improve contrast
   against a white background. Keeps subtle shadow by default and raises on hover. */
.report-card {
    border-width: 1px !important;
    border-style: solid !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .06);
    transition: box-shadow .15s ease, transform .08s ease;
    border-radius: .375rem;
    background-color: #fff;
}

.report-card:focus,
.report-card:hover {
    box-shadow: 0 .85rem 1.5rem rgba(0, 0, 0, .10);
    transform: translateY(-2px);
}

/* Remove shadows when printing for cleaner print layout */
@media print {

    .report-card,
    .report-summary-card {
        box-shadow: none !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}