h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* The Allixo logo and the portal name in the app bar. */
.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.portal-logo {
    height: 32px;
    width: auto;
    display: block;
}

/* The account menu's avatar, as a plain button. */
.portal-avatar-button {
    background: none;
    border: 0;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
}

/* A select shows the chosen item's whole content in its box. The ticket type's hint is for the list only: in the box
   it would repeat the helper text underneath. */
.mud-select .ticket-type-option-hint {
    display: none;
}

/* Brand accents (the Allixo logo's blue and orange). Built on MudBlazor's palette variables, so dark mode follows. */
:root {
    --portal-tint: color-mix(in srgb, var(--mud-palette-primary) 8%, transparent);
    --portal-tint-strong: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent);
}

/* App bar: a blue rule under the white bar, with an orange tick at the start like the logo's chevron. */
.mud-appbar {
    border-bottom: 3px solid var(--mud-palette-primary);
    box-shadow: none;
}

.mud-appbar::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 96px;
    height: 3px;
    background: var(--mud-palette-secondary);
}

/* Navigation: the current page is tinted blue with an orange marker; hover gets a lighter tint. */
.mud-drawer .mud-nav-link:hover:not(.mud-nav-link-disabled) {
    background-color: var(--portal-tint);
}

.mud-drawer .mud-nav-link.active:not(.mud-nav-link-disabled),
.mud-drawer .mud-nav-link.active:not(.mud-nav-link-disabled):hover {
    background-color: var(--portal-tint-strong);
    color: var(--mud-palette-primary);
    font-weight: 600;
    border-inline-end: 0;
    box-shadow: inset 4px 0 0 var(--mud-palette-secondary);
}

.mud-drawer .mud-nav-group > .mud-nav-link {
    font-weight: 600;
}

/* Boxes: outlined panels and cards get a blue top edge. */
.mud-paper-outlined,
.mud-card {
    border-top: 3px solid var(--mud-palette-primary);
}

/* Tables: blue-tinted header row with blue headings, and a blue hover on rows. */
.mud-table-head .mud-table-cell,
.mud-simple-table table thead th {
    background-color: var(--portal-tint);
    color: var(--mud-palette-primary);
    font-weight: 600;
}

.mud-table-hover .mud-table-container .mud-table-root .mud-table-body .mud-table-row:hover,
.mud-simple-table.mud-table-hover table tbody tr:hover {
    background-color: var(--portal-tint);
}

/* Tabs: the selected tab is marked in orange. */
.mud-tab-slider {
    background: var(--mud-palette-secondary) !important;
}

/* An image attachment's preview: a spinner while it loads, then as large as fits the dialog, never stretched. */
.attachment-preview-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: min(320px, 70vw);
    min-height: 240px;
}

/* Two classes, so it wins over .attachment-preview's display below. */
.attachment-preview.attachment-preview-loading {
    display: none;
}

.attachment-preview {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    margin: 0 auto;
    object-fit: contain;
}

/* The demo site: the Invites page's plain form fields (statically rendered forms). */
.demo-input {
    display: block;
    width: 100%;
    max-width: 28rem;
    margin-top: 0.25rem;
    padding: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.42);
    border-radius: 4px;
    font: inherit;
}

.portal-footer {
    padding: 16px 24px;
    text-align: center;
    font-size: 0.875rem;
}

.portal-privacy h1 { margin-bottom: 16px; }
.portal-privacy h2 { margin-top: 24px; margin-bottom: 8px; }
.portal-privacy ul { padding-left: 24px; }

.attachment-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.halo-content img {
    max-width: 100%;
    max-height: 480px;
    height: auto;
}

.inline-editor-label {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 4px;
    color: var(--mud-palette-text-secondary);
}

.inline-editor-text {
    min-height: 9em;
    max-height: 30em;
    overflow-y: auto;
    padding: 12px 14px;
    border: 1px solid var(--mud-palette-lines-inputs);
    border-radius: var(--mud-default-borderradius);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.inline-editor-text:focus {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 0;
}

.inline-editor-text img {
    display: block;
    max-width: 100%;
    max-height: 240px;
}

.inline-editor-image {
    display: inline-block;
    margin: 4px 0;
}

.inline-editor-remove {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    cursor: pointer;
}

.inline-editor-file {
    display: none;
}

.inline-editor-hint {
    margin: 3px 14px 0;
    color: var(--mud-palette-text-secondary);
}
