html, body {
    height: 100%;
    margin: 0;
}

/* Pages outside the shell (sign-in, password, host-admin console) on the theme's page background. */
.plain-page {
    min-height: 100vh;
    box-sizing: border-box;
    padding: 2rem 1rem;
    background: var(--rz-body-background-color);
    color: var(--rz-text-color);
    font-family: var(--rz-text-font-family);
}

/* Sign-in and password: a centred card. */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 4rem);
}

#blazor-error-ui {
    background: var(--rz-warning-lighter);
    color: var(--rz-on-warning-lighter);
    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;
}

/* ITStudio.Knowledge's panel fills the box the host gives it: a drawer on the right, over the dialogs it is opened from. */
.app-knowledge-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(32rem, 100vw);
    z-index: calc(var(--rz-dialog-zindex) + 1);
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.3);
}

/* Radzen's floating label lets clicks through to its input; a ¶ in it (Cited) takes its own click. */
.rz-form-field-label .its-inline-reference {
    pointer-events: auto;
}

/* The shell's navigation panel beside the page region: both as tall as the body, each scrolling on its own. */
.app-shell-body {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.app-shell-body > .app-shell-main {
    flex: 1 1 auto;
    min-width: 0;
    overflow: auto;
}

.app-shell-body > .its-shell-nav {
    overflow-y: auto;
}

/* The navigation panel's group titles: a section heading (a rule above, the accent colour), not a link. */
.its-shell-nav .its-shell-nav-group {
    margin: 0.75rem 0.5rem 0.25rem;
    padding-top: 0.625rem;
    border-top: 1px solid color-mix(in srgb, var(--rz-text-color) 18%, transparent);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--rz-primary);
    cursor: default;
    user-select: none;
}

/* The dark panel: the accent at its own red is about 2.4:1 there; this lighter red is about 5:1. */
html[data-theme="dark"] .its-shell-nav .its-shell-nav-group {
    color: #f2a59f;
}
