/* PBI Model Intelligence — custom styles (on top of Pico CSS) */

/* Flash messages */
.flash-message {
    background: var(--pico-del-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--pico-border-radius);
    margin-bottom: 1rem;
}

/* Summary cards — center the numbers */
.grid article h3 {
    text-align: center;
    margin-bottom: 0;
}
.grid article p {
    text-align: center;
    margin-top: 0.25rem;
}

/* Audit severity badges */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: var(--pico-border-radius);
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 0.5rem;
    vertical-align: middle;
}
.badge-critical { background: #d32f2f; color: white; }
.badge-warning  { background: #f57c00; color: white; }
.badge-info     { background: #1976d2; color: white; }

/* Audit issue cards */
.audit-issue header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.audit-issue header small {
    margin-left: auto;
}

/* DAX / M code blocks — readable sizing */
pre {
    max-height: 20rem;
    overflow: auto;
}

/* Report table of contents */
.report-toc {
    columns: 2;
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}
.report-toc li {
    margin-bottom: 0.25rem;
}

/* Details/summary spacing */
details {
    margin-bottom: 0.5rem;
}
details summary {
    cursor: pointer;
}

/* Tables inside details — full width */
details figure {
    margin: 0;
}
