/* Portal styles on top of Bootstrap 5.3 (Content/bootstrap-5.3.8). Keep this small: prefer Bootstrap utilities. */

body {
    padding-bottom: 2rem;
}

/* Section "Buttons" in the page header: keep buttons on one line where possible */
.portal-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

    .portal-buttons form {
        margin: 0;
    }

/* Wide report tables scroll sideways on small screens instead of widening the page */
.table-responsive > .table {
    margin-bottom: 0;
}

/* Input validation errors (ASP.NET Core validation helpers) */
.field-validation-error {
    color: var(--bs-danger);
}

.field-validation-valid,
.validation-summary-valid {
    display: none;
}

.input-validation-error {
    border-color: var(--bs-danger);
    background-color: var(--bs-danger-bg-subtle);
}

.validation-summary-errors {
    color: var(--bs-danger);
    font-weight: 600;
}

.required:after {
    content: "*";
    font-weight: bold;
    color: var(--bs-danger);
}

/* Dashboard summary tiles */
.stat-card .stat-value {
    font-size: 2rem;
    line-height: 1.2;
}

/* Bootstrap 5's default checkbox/radio outline is too faint on white */
.form-check-input {
    border-color: var(--bs-secondary-color);
}

/* Labels in horizontal forms are bold, as they were with Bootstrap 3 */
.col-form-label.text-sm-end {
    font-weight: 600;
}

/* The expanded navbar (lg and up) never wraps. With a long event name or user email the user menu was pushed off
   the right edge: let the event name shrink with an ellipsis, and let the menus wrap onto a second line. */
@media (min-width: 992px) {
    .navbar > .container-fluid > .navbar-brand {
        min-width: 0;
        max-width: 30%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #portal-navbar {
        min-width: 0;
        flex-wrap: wrap;
    }
}
