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;
}

.mud-tabs-panels > :first-child {
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 8px;
}

/* Reserve scrollbar space so the track does not overlay timeslot chips */
.mud-cal-week-scroll {
    scrollbar-gutter: stable;
}

/* Prevent nav groups from collapsing when clicked */
.mud-nav-group > button.mud-nav-link {
    pointer-events: none;
    cursor: default;
}

/* Hide toolbar if empty */
.mud-toolbar:empty {
    height: unset !important;
}

/* Mantis #610 — masseur availability calendar cell tinting.
   Brand PMS palette from the ticket, blended to ~20% opacity so the colors act as a
   subtle backdrop rather than a saturated wash. Applied via Heron.MudCalendar's
   AdditionalDateTimeClassesFunc; selectors are scoped to .mud-cal-month-cell so they
   don't bleed into other calendars. */
.mud-cal-month-cell.rw-availability-cell-available {
    background-color: rgba(219, 142, 21, 0.30);  /* PMS 144  - oranje (available, no session) */
    border-color: #DB8E15;
}
.mud-cal-month-cell.rw-availability-cell-concept {
    background-color: rgba(135, 120, 57, 0.30);  /* PMS 4495 - olijfgroen (concept session) */
    border-color: #877839;
}
.mud-cal-month-cell.rw-availability-cell-definitive {
    background-color: rgba(146, 185, 217, 0.30); /* PMS 278  - blauw (definitive session) */
    border-color: #92B9D9;
}

/* Per-week "Vul schema" buttons sitting next to the availability calendar.
   Distributed evenly along the calendar's height; sized to their content so
   they don't stretch and bunch up. */
.rw-availability-week-buttons {
    display: grid;
    grid-template-columns: max-content;
    align-content: space-around;
    justify-items: stretch;
    min-height: 700px;
    padding: 8px 12px 8px 8px;
}

/* Reconnect modal — state-driven via Blazor class toggling on #components-reconnect-modal */
#components-reconnect-modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected,
#components-reconnect-modal.components-reconnect-reloading {
    display: flex;
}

#components-reconnect-modal .components-reconnect-dialog {
    background-color: #fff;
    color: #333;
    padding: 1.5rem 2rem;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 28rem;
    text-align: center;
}

#components-reconnect-modal .components-reconnect-dialog p {
    margin: 0;
    display: none;
}

#components-reconnect-modal .components-reconnect-dialog a {
    color: var(--mud-palette-primary, #1976d2);
    cursor: pointer;
    text-decoration: underline;
}

#components-reconnect-modal .reconnect-spinner {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 1rem;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--mud-palette-primary, #1976d2);
    border-radius: 50%;
    animation: reconnect-spin 0.9s linear infinite;
}

#components-reconnect-modal.components-reconnect-show .reconnect-show,
#components-reconnect-modal.components-reconnect-failed .reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected .reconnect-rejected,
#components-reconnect-modal.components-reconnect-reloading .reconnect-reloading {
    display: block;
}

#components-reconnect-modal.components-reconnect-show .reconnect-spinner.reconnect-show,
#components-reconnect-modal.components-reconnect-reloading .reconnect-spinner.reconnect-reloading {
    display: block;
}

@keyframes reconnect-spin {
    to { transform: rotate(360deg); }
}
/* On a phone a dialog is about 280px wide inside, and MudBlazor's defaults wrap toggle buttons and the
   employee search pager onto two lines there. */
@media (max-width: 599.98px) {
    .mud-toggle-item {
        white-space: nowrap;
        text-transform: none;
    }

    /* Must outrank MudBlazor's own phone rule, which sets min-height: 100px and padding-top. */
    .employee-search-results .mud-table .mud-table-pagination .mud-table-pagination-toolbar {
        flex-wrap: nowrap;
        min-height: 52px;
        padding-top: 0;
    }

    .employee-search-results .mud-table-pagination-actions button:first-child,
    .employee-search-results .mud-table-pagination-actions button:last-child {
        display: none;
    }
}

/* MudBlazor shows table rows as stacked cards on a phone, separated only by a thin line. */
@media (max-width: 599.98px) {
    .mud-xs-table .mud-table-body .mud-table-row .mud-table-cell:first-child {
        padding-top: 16px;
    }

    .mud-xs-table .mud-table-body .mud-table-row .mud-table-cell:last-child {
        padding-bottom: 16px;
    }
}

/* Date (range) pickers on a phone: MudBlazor stacks the two months of a range picker, which makes the
   popover taller than the screen, and the selected range in the header wraps in large type. */
@media (max-width: 599.98px) {
    .mud-picker-calendar-content-2 > .mud-picker-calendar-container:not(:first-child) {
        display: none;
    }

    .mud-picker-toolbar .mud-button-date {
        font-size: 1.25rem;
        line-height: 1.4;
    }
}

@media (max-width: 599.98px) {
    .rw-availability-week-buttons {
        padding: 8px 4px;
    }

    /* MudBlazor sizes the drawer with height: 100%, which on a phone reaches under the browser's
       bottom toolbar, so the last menu items sat hidden there whenever the menu fit without
       scrolling. Anchored to the bottom, the drawer stops at the toolbar instead. */
    .mud-drawer-fixed.mud-drawer-responsive.mud-drawer-clipped-always {
        height: auto;
        bottom: 0;
    }
}

/* A data grid's toolbar has a fixed height and does not wrap; on a phone its filters run off screen. */
@media (max-width: 599.98px) {
    .mud-table-toolbar {
        flex-wrap: wrap;
        height: auto;
        row-gap: 8px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}
