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;
}
.mud-appbar-dense ~ .mud-main-content {
    padding-top: calc(var(--mud-appbar-height) - var(--mud-appbar-height) / 4 + 16px);
}

html,
body {
    overflow-x: clip;
}

.mud-main-content .mud-typography:not(.mud-table-cell *),
.mud-main-content .mud-link:not(.mud-table-cell *),
.mud-main-content .mud-expand-panel-text,
.mud-main-content .mud-alert-message {
    overflow-wrap: anywhere;
}

.mud-main-content .mud-chip {
    max-width: 100%;
}

.mud-main-content .mud-chip .mud-chip-content {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .mud-xs-table .mud-table-root {
        table-layout: fixed;
    }

    .mud-xs-table .mud-table-cell {
        overflow-wrap: anywhere;
    }

    .mud-xs-table .mud-table-cell.cell-stack {
        flex-direction: column;
        align-items: stretch;
    }

    .mud-xs-table .mud-table-cell-hide {
        display: none;
    }
}

@media (max-width: 960px) {
    .mud-sm-table .mud-table-root {
        table-layout: fixed;
    }

    .mud-sm-table .mud-table-cell {
        overflow-wrap: anywhere;
    }

    .mud-sm-table .mud-table-cell.cell-stack {
        flex-direction: column;
        align-items: stretch;
    }

    .mud-sm-table .mud-table-cell-hide {
        display: none;
    }
}

@media (max-width: 1280px) {
    .mud-md-table .mud-table-root {
        table-layout: fixed;
    }

    .mud-md-table .mud-table-cell {
        overflow-wrap: anywhere;
    }

    .mud-md-table .mud-table-cell.cell-stack {
        flex-direction: column;
        align-items: stretch;
    }

    .mud-md-table .mud-table-cell-hide {
        display: none;
    }
}

.mud-nav-link,
.mud-input-helper-text {
    font-weight: 500;
}

.mud-input-label-shrink,
:is(.mud-shrink, .mud-input:focus-within, .mud-input:has(:-webkit-autofill)) ~ label.mud-input-label.mud-input-label-inputcontrol {
    transform: translate(0, 1.5px) scale(.85);
    max-width: calc(100% / .85);
}

:is(.mud-shrink, .mud-input:focus-within, .mud-input:has(:-webkit-autofill)) ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined {
    transform: translate(14px, -7px) scale(.85);
    max-width: calc((100% - 14px) / .85);
}

.mud-input.mud-input-outlined > .mud-input-outlined-border legend {
    font-size: calc(var(--mud-typography-subtitle1-size) * .85);
}

.mud-input-helper-text,
.mud-tooltip,
.mud-picker-calendar .mud-day,
.mud-button-text-size-small,
.mud-button-outlined-size-small,
.mud-button-filled-size-small {
    font-size: 1rem;
}

.mud-chip.mud-chip-size-small {
    font-size: 1rem;
    height: 28px;
    border-radius: 14px;
}

.mud-chip.mud-chip-size-medium {
    font-size: var(--mud-typography-body2-size);
}

.mud-table-pagination,
.mud-table-pagination-select .mud-input .mud-input-root {
    font-size: var(--mud-typography-body2-size);
}

.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible,
.components-rejoining-animation {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}

#components-reconnect-modal {
    width: min(22rem, calc(100vw - 2rem));
    margin: 20vh auto;
    padding: 2rem 1.5rem;
    border: 1px solid var(--mud-palette-lines-default, #3A2E3B);
    border-radius: 0;
    outline: none;
    background: var(--mud-palette-surface, #2C222D);
    color: var(--mud-palette-text-primary, #F0EAEF);
    font-family: "Blender Pro", system-ui, sans-serif;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    box-shadow: 0 0 0 1px rgba(224, 74, 85, 0.25), 0 12px 32px rgba(0, 0, 0, 0.55);
}

#components-reconnect-modal::backdrop {
    background: rgba(27, 20, 28, 0.72);
}

.components-reconnect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button {
    border: 0;
    border-radius: 0;
    padding: 0.4rem 1.5rem;
    background: var(--mud-palette-primary, #E04A55);
    color: var(--mud-palette-primary-text, #FFFFFF);
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
}

#components-reconnect-modal button:hover {
    background: var(--mud-palette-primary-darken, #B23640);
}

#components-reconnect-modal button:focus-visible {
    outline: 2px solid var(--mud-palette-primary-lighten, #EC7A82);
    outline-offset: 2px;
}

.components-rejoining-animation {
    position: relative;
    width: 64px;
    height: 64px;
}

.components-rejoining-animation div {
    position: absolute;
    border: 2px solid var(--mud-palette-primary, #E04A55);
    border-radius: 50%;
    animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes components-rejoining-animation {
    0%, 4.9% { top: 32px; left: 32px; width: 0; height: 0; opacity: 0; }
    5% { top: 32px; left: 32px; width: 0; height: 0; opacity: 1; }
    100% { top: 0; left: 0; width: 64px; height: 64px; opacity: 0; }
}
