/* App-specific overrides layered on top of the SmartAdmin theme (assets/css/main.css).
   Keep this minimal — prefer the theme's variables/components. The old stock-template
   sticky-footer hack was removed because the SmartAdmin layout owns header/sidebar/footer. */

/* Give server-rendered flash/validation alerts a little breathing room inside content. */
.main-content > .alert:first-child {
    margin-top: 0;
}

/* --- Phase B: shared view conventions --- */

/* Page header: title (+ optional subtitle/help) on the left, actions on the right. */
.page-header {
    margin-bottom: var(--spacing-lg);
}

.page-header .page-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: var(--heading-color);
}

.page-header .page-subtitle {
    font-size: 0.85rem;
    color: var(--muted-color);
    margin: 0;
}

/* Tame the stock huge <h1> on views not yet migrated to .page-header. */
.main-content h1:not(.page-title) {
    font-size: 1.4rem;
    font-weight: 600;
}

/* Tables that sit flush inside a card body (card-body.p-0) shouldn't add their own bottom gap. */
.card > .card-body.p-0 .table {
    margin-bottom: 0;
}
