html, body {
    margin: 0;
    height: 100%;
}

.app-loading {
    display: grid;
    place-items: center;
    height: 100vh;
    font-family: system-ui, sans-serif;
    color: #555;
}

.page {
    padding: 1.25rem;
}

/* Grids fill the page, scroll sideways instead of clipping, and wrap long text instead of truncating it. */
.app-grid {
    width: 100%;
    overflow-x: auto;
}

.app-grid .rz-cell-data {
    white-space: normal;
    overflow-wrap: anywhere;
}

.auth-card {
    max-width: 420px;
    margin: 4rem auto;
}

.validation-message {
    color: var(--rz-danger);
    font-size: 0.85rem;
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* Clickable dashboard tiles that lift slightly on hover/focus. */
.dash-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.dash-tile {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: var(--rz-card-border-radius, 8px);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dash-tile .rz-card {
    min-width: 13rem;
    cursor: pointer;
}

.dash-tile:hover,
.dash-tile:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

@media (prefers-reduced-motion: reduce) {
    .dash-tile {
        transition: none;
    }

    .dash-tile:hover,
    .dash-tile:focus-visible {
        transform: none;
    }
}

/* Header: hamburger at the start, logo and name centred, user controls at the end. */
.app-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
    padding-inline: 1rem;
}

.app-header__start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.app-header__end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 0;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.app-brand__name {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
}

.app-logo {
    display: block;
    flex: none;
}

@media (max-width: 40rem) {
    .app-header__end .rz-text-body2 {
        display: none;
    }
}