/* Shared pieces of the admin: buttons, avatars, badges and icon buttons (also used in the header and side columns),
   pages, forms, tables and messages. Colours, fonts and sizes come from wwwroot/css/admin-tokens.css (var(--admin-*)).
   Rules start with ".admin-shell .admin-content" (or ".admin-shell :is(.admin-main, .admin-menu, .admin-tenants)" for
   the shared pieces), which keeps them inside the admin and gives them the same weight the scoped ::deep rules had.
   Linked in _Host.cshtml after the scoped bundle, so it still wins over component styles of equal weight.
   Neutral layout uses Bootstrap utilities in the markup, and page-specific layout sits in the page's own .razor.css. */

/* The page scrollbar belongs to the document, so this one rule has to sit outside .admin-shell: the reserved
   gutter keeps the whole page from shifting sideways whenever the content grows past or shrinks below the viewport. */
html:has(.admin-shell) {
    scrollbar-gutter: stable;
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-avatar {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: var(--admin-control-height-sm);
    height: var(--admin-control-height-sm);
    border-radius: var(--admin-radius-md);
    background: var(--admin-primary-soft);
    color: var(--admin-primary);
    font-size: var(--admin-fs-small);
    font-weight: 600;
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-avatar.is-inactive {
    background: var(--admin-bg);
    color: var(--admin-muted);
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-star {
    color: var(--admin-star);
    font-size: var(--admin-fs-caption);
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-badge {
    flex-shrink: 0;
    margin-left: auto;
    padding: 1px 8px;
    border-radius: var(--admin-radius-pill);
    background: var(--admin-muted-soft);
    color: var(--admin-muted);
    font-size: var(--admin-fs-caption);
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-badge--success {
    background: var(--admin-success-soft);
    color: var(--admin-success);
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-badge--danger {
    background: var(--admin-danger-soft);
    color: var(--admin-danger);
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--admin-control-height);
    height: var(--admin-control-height);
    padding: 0;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-lg);
    background: var(--admin-surface);
    color: var(--admin-text);
    text-decoration: none;
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-icon-btn:hover {
    background: var(--admin-bg);
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-icon-btn--danger {
    color: var(--admin-danger);
}

/* No href, so nothing happens on click; the pointer stays active so the title explains why. */
.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-icon-btn[aria-disabled="true"] {
    color: var(--admin-border);
    cursor: not-allowed;
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-icon-btn[aria-disabled="true"]:hover {
    background: none;
}

/* Small icon buttons (tier rows, module lists, translations) */

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-icon-btn--small {
    width: var(--admin-control-height-sm);
    height: var(--admin-control-height-sm);
    margin-top: 4px;
    border-radius: var(--admin-radius-md);
    color: var(--admin-muted);
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-icon-btn--small:disabled {
    opacity: 0.4;
}

/* Remove / add actions in lists (tiers, modules) */
.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-icon-btn--remove {
    border-color: var(--admin-danger-soft);
    background: var(--admin-danger-soft);
    color: var(--admin-danger);
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-icon-btn--remove:hover:not(:disabled) {
    border-color: var(--admin-danger);
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-icon-btn--add {
    border-color: var(--admin-success-soft);
    background: var(--admin-success-soft);
    color: var(--admin-success);
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-icon-btn--add:hover:not(:disabled) {
    border-color: var(--admin-success);
}

.admin-shell .admin-header .admin-header-btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: var(--admin-control-height-sm);
    padding: 0 12px;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-md);
    background: var(--admin-surface);
    color: var(--admin-text);
    font-size: var(--admin-fs-small);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.admin-shell .admin-header .admin-header-btn--icon {
    width: var(--admin-control-height-sm);
    padding: 0;
}

.admin-shell .admin-header .admin-header-btn:hover,
.admin-shell .admin-header .admin-header-btn[aria-expanded="true"] {
    border-color: var(--admin-primary-border);
    background: var(--admin-primary-soft);
    color: var(--admin-primary);
}

.admin-shell .admin-header .admin-header-btn:focus-visible {
    outline: 2px solid var(--admin-primary);
    outline-offset: 2px;
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: var(--admin-control-height);
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--admin-radius-md);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

/* Icon only; the label stays for screen readers. */
@media (max-width: 1100px) {
    .admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-btn--icon {
        justify-content: center;
        width: var(--admin-control-height);
        padding: 0;
    }

    .admin-shell .admin-btn--icon .admin-btn__label {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-btn--primary {
    background: var(--admin-primary-fill);
    color: var(--admin-on-primary);
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-btn--primary:hover {
    background: var(--admin-primary-fill-hover);
    color: var(--admin-on-primary);
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-btn--secondary {
    border-color: var(--admin-primary-border);
    background: var(--admin-surface);
    color: var(--admin-primary);
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-btn--secondary:hover {
    border-color: var(--admin-primary);
    background: var(--admin-primary-soft);
    color: var(--admin-primary);
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-btn--danger {
    border-color: var(--admin-danger);
    background: var(--admin-danger);
    color: var(--admin-on-danger);
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-btn--danger:hover {
    border-color: var(--admin-danger-hover);
    background: var(--admin-danger-hover);
    color: var(--admin-on-danger);
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-btn--danger-outline {
    border-color: var(--admin-danger);
    background: var(--admin-surface);
    color: var(--admin-danger);
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-btn--danger-outline:hover {
    background: var(--admin-danger);
    color: var(--admin-on-danger);
}

.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-btn:disabled,
.admin-shell :is(.admin-main, .admin-menu, .admin-tenants) .admin-btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.admin-shell .admin-content .admin-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: var(--admin-radius-pill);
    background: var(--admin-primary-soft);
    color: var(--admin-primary);
    font-size: var(--admin-fs-caption);
}

.admin-shell .admin-content .admin-unsaved {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 4px;
    color: var(--admin-muted);
    font-size: var(--admin-fs-body);
}

.admin-shell .admin-content .admin-saved {
    display: inline-flex;
    align-items: center;
    min-height: var(--admin-control-height);
    color: var(--admin-success);
    font-weight: 600;
}

/* Title and actions of a page; stays under the header while the content scrolls.
   The row is as tall as the actions slot, so pages with and without actions line up. */

.admin-shell .admin-content .admin-page-head {
    position: sticky;
    top: var(--admin-head-height);
    z-index: 5;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    min-height: calc(var(--admin-body-top) + 44px + 12px);
    margin: calc(-1 * var(--admin-body-top)) -24px 16px;
    padding: var(--admin-body-top) 24px 12px;
    background: var(--admin-bg);
    border-bottom: 1px solid var(--admin-border);
}

.admin-shell .admin-content .admin-page-head__titles {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-width: 280px;
}

.admin-shell .admin-content .admin-page-head__title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 6px;
}

.admin-shell .admin-content .admin-page-head__title-row h1 {
    padding-bottom: 0;
}

.admin-shell .admin-content .admin-page-head__inline-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.admin-shell .admin-content .admin-page-head__description {
    margin: -2px 0 8px;
    max-width: 44ch;
    color: var(--admin-muted);
    font-size: var(--admin-fs-body);
}

.admin-shell .admin-content .admin-page-head__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: var(--admin-control-height);
    margin-left: auto;
}

.admin-shell .admin-content .admin-page-head .admin-segmented {
    margin: 0;
    padding: 3px;
}

/* Page title: Archivo ExtraBold with tight tracking, as H1 in the design manual (smaller, the admin is a tool). */
.admin-shell .admin-content .admin-page-head h1 {
    margin: 0;
    padding-bottom: 6px;
    font-size: var(--admin-fs-title);
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.admin-shell .admin-content .admin-card {
    padding: 20px 24px;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    background: var(--admin-surface);
}

.admin-shell .admin-content .admin-card--advanced {
    border-color: var(--admin-advanced-border);
    background: var(--admin-advanced-soft);
}

.admin-shell .admin-content .admin-card--flush {
    padding: 0;
    overflow: hidden;
}

.admin-shell .admin-content .admin-card--flush .admin-table th:first-child,
.admin-shell .admin-content .admin-card--flush .admin-table td:first-child {
    padding-left: 16px;
}

/* Modal dialog (AdminDialog). :where keeps these below the copies two older pages still carry in their own styles. */

:where(.admin-shell) .admin-dialog {
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 24px;
    overflow-y: auto;
    border: none;
    border-radius: var(--admin-radius);
    background: var(--admin-surface);
    color: inherit;
    box-shadow: var(--admin-shadow-dialog);
}

:where(.admin-shell) .admin-dialog--wide {
    width: min(480px, calc(100vw - 32px));
}

:where(.admin-shell) .admin-dialog::backdrop {
    background: var(--admin-overlay);
}

:where(.admin-shell) .admin-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Positioned, so absolute visually-hidden labels are clipped here instead of widening the page. */
.admin-shell .table-responsive {
    position: relative;
}

/* Search and filter row above lists (tenants, campaigns, translations) */

.admin-shell .admin-content .admin-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-bottom: 16px;
}

.admin-shell .admin-content .admin-filter input[type="search"] {
    width: min(100%, 320px);
    min-height: var(--admin-control-height);
    padding: 0 14px;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-md);
}

.admin-shell .admin-content .admin-filter label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* Forms (settings tabs) */

.admin-shell .admin-content .admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1040px;
}

.admin-shell .admin-content .admin-form--annotated {
    gap: 24px;
}

.admin-shell .admin-content .admin-form--wide {
    max-width: 1080px;
}

.admin-shell .admin-content .admin-form--narrow-wide {
    max-width: 720px;
}

.admin-shell .admin-content .admin-form--theme {
    max-width: 1600px;
}

.admin-shell .admin-content .admin-form--columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    align-items: start;
    gap: 16px 24px;
    max-width: 920px;
}

/* Paired cards stretch to the same height, so a row never ends ragged. */

.admin-shell .admin-content .admin-form--two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

@media (max-width: 1100px) {
    .admin-shell .admin-content .admin-form--columns,
    .admin-shell .admin-content .admin-form--two-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

.admin-shell .admin-content .admin-form__column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.admin-shell .admin-content .admin-form__title {
    margin: 0 0 18px;
    font-size: var(--admin-fs-subtitle);
    font-weight: 700;
}

.admin-shell .admin-content .admin-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px 24px;
}

.admin-shell .admin-content .admin-form__grid--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-shell .admin-content .admin-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.admin-shell .admin-content .admin-field__label {
    margin: 0;
    font-weight: 500;
    font-size: var(--admin-fs-body);
    color: var(--admin-text);
}

.admin-shell .admin-content .form-control,
.admin-shell .admin-content .form-select {
    border-color: var(--admin-border-strong);
}

.admin-shell .admin-content .admin-field .form-control,
.admin-shell .admin-content .admin-field .form-select {
    min-height: var(--admin-control-height);
}

.admin-shell .admin-content .validation-message {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--admin-danger);
    font-size: var(--admin-fs-small);
}

/* Field errors carry a symbol, not only the red colour (design manual: status never by colour alone). */
.admin-shell .admin-content .validation-message::before {
    content: "";
    flex: none;
    width: 0.9em;
    height: 0.9em;
    transform: translateY(0.1em);
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm-.9 3.5h1.8v5.5H7.1Zm.9 9.25a1.1 1.1 0 1 1 0-2.2 1.1 1.1 0 0 1 0 2.2Z'/%3e%3c/svg%3e") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm-.9 3.5h1.8v5.5H7.1Zm.9 9.25a1.1 1.1 0 1 1 0-2.2 1.1 1.1 0 0 1 0 2.2Z'/%3e%3c/svg%3e") center / contain no-repeat;
}

/* Tables: Bootstrap .table with the admin header; row backgrounds stay on the row, hover in the admin colour. */

.admin-shell .admin-content .admin-table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: var(--admin-primary-soft);
    --bs-table-hover-color: inherit;
}

.admin-shell .admin-content .admin-table thead th {
    color: var(--admin-muted);
    font-size: var(--admin-fs-caption);
    font-weight: 700;
    letter-spacing: 0.12em; /* eyebrow style of the design manual */
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-shell .admin-content .admin-table tbody th {
    font-weight: 400;
}

.admin-shell .admin-content .admin-table__center {
    text-align: center !important;
}

/* Numbers: right-aligned, equal digit widths so the columns line up. */
.admin-shell .admin-content .admin-table__number {
    text-align: right !important;
    font-family: var(--admin-font-mono);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.admin-shell .admin-content .admin-table--hover tbody tr {
    transition: background-color 0.12s ease;
}

.admin-shell .admin-content .admin-table--hover tbody tr:hover {
    background: var(--admin-primary-soft);
}

.admin-shell .admin-content .admin-table--compact td,
.admin-shell .admin-content .admin-table--compact th {
    padding: 6px 8px;
    font-size: var(--admin-fs-body);
}

/* Page head variants, monospace */

.admin-shell .admin-content .admin-page-head--stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.admin-shell .admin-content .admin-page-head--stacked h1 {
    display: flex;
    align-items: center;
    min-height: var(--admin-control-height);
}

.admin-shell .admin-content .admin-table--nowrap td,
.admin-shell .admin-content .admin-table--nowrap th {
    white-space: nowrap;
}

.admin-shell .admin-content .admin-table tr.is-inactive {
    color: var(--admin-muted);
}

.admin-shell .admin-content .admin-mono {
    font-family: var(--admin-font-mono);
    font-size: var(--admin-fs-small);
}

/* Theme tab grid: it sits on the EditForm (a child component), so it cannot live in ThemeSettingsTab.razor.css */

.admin-shell .admin-content .admin-theme {
    display: grid;
    grid-template-columns: minmax(320px, 2fr) minmax(0, 3fr);
    align-items: start;
    gap: 16px 24px;
    max-width: 1600px;
}

@media (max-width: 1100px) {
    .admin-shell .admin-content .admin-theme {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Request form tab: layout of table and preview is in RequestFormSettingsTab.razor.css */

@media (max-width: 900px) {
    .admin-shell .admin-content .admin-form__grid--pair {
        grid-template-columns: 1fr;
    }

    .admin-shell .admin-content .admin-page-head {
        margin-right: -16px;
        margin-left: -16px;
        padding-right: 16px;
        padding-left: 16px;
    }
}

/* Numbers are checked values: IBM Plex Mono, as the design manual asks for. */
.admin-shell .admin-content input[inputmode="decimal"] {
    font-family: var(--admin-font-mono);
    font-weight: 500;
}

/* Error and warning messages (AdminAlert): symbol + word + text, in the status colours of the design manual. */
.admin-shell .admin-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid;
    border-radius: var(--admin-radius-lg);
    font-size: var(--admin-fs-body);
    line-height: 1.45;
    color: var(--admin-text);
}

.admin-shell .admin-alert.mb-0 {
    margin-bottom: 0;
}

.admin-shell .admin-alert__icon {
    flex: none;
    margin-top: 0.15em;
}

.admin-shell .admin-alert__label {
    margin-right: 4px;
    font-weight: 700;
}

.admin-shell .admin-alert--error {
    border-color: var(--admin-danger-border);
    background: var(--admin-danger-soft);
}

.admin-shell .admin-alert--error .admin-alert__icon,
.admin-shell .admin-alert--error .admin-alert__label {
    color: var(--admin-danger);
}

.admin-shell .admin-alert--warning {
    border-color: var(--admin-warning-border);
    background: var(--admin-warning-soft);
}

.admin-shell .admin-alert--warning .admin-alert__icon,
.admin-shell .admin-alert--warning .admin-alert__label {
    color: var(--admin-warning);
}

/* ---------- Bootstrap form controls in admin colours, not in the tenant's theme ---------- */

.admin-shell .admin-btn:focus-visible,
.admin-shell .form-control:focus,
.admin-shell .form-select:focus,
.admin-shell .form-check-input:focus {
    border-color: var(--admin-primary);
    box-shadow: var(--admin-focus-ring);
}

/* Lead colour fill with a dark check mark (--admin-on-primary), as the manual asks for text on Triebgrün. */
.admin-shell .form-check-input:checked:not([role="switch"]) {
    --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%230C1218' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    border-color: var(--admin-primary);
    background-color: var(--admin-primary-fill);
}

.admin-shell .form-check-input[role="switch"] {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    border-color: var(--admin-border-strong);
    background-color: var(--admin-border-strong);
}

.admin-shell .form-check-input[role="switch"]:checked {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%230C1218'/%3e%3c/svg%3e");
    border-color: var(--admin-primary);
    background-color: var(--admin-primary-fill);
}

/* The select arrow is a picture in Bootstrap's dark grey; on night ground it has to be light. */
html[data-admin-theme="dark"] .admin-shell .form-select {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23EEF1EE' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

/* ---------- SPT.ECO Bildmarke (AdminBildmarke) and empty states ---------- */

.admin-shell .admin-bildmarke {
    display: block;
    width: 120px;
    height: auto;
}

.admin-shell .admin-bildmarke__cell {
    fill: var(--admin-primary-fill);
}

.admin-shell .admin-bildmarke__dot {
    fill: var(--admin-border);
}

/* Nothing to list yet: the Bildmarke takes the empty space, the sentence below it. */
.admin-shell .admin-content .admin-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 24px;
    text-align: center;
}

.admin-shell .admin-content .admin-empty__text {
    margin: 0;
    color: var(--admin-muted);
}

/* ---------- Admin pages without the frame (AdminPlainLayout, e.g. no access) ---------- */

.admin-shell.admin-shell--plain {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 16px;
    background: var(--admin-bg);
    color: var(--admin-text);
    font-family: var(--admin-font);
}

.admin-shell--plain > .admin-content {
    width: 100%;
    max-width: 560px;
}

/* Wizard: wider, top-aligned so the page does not jump between steps. */
.admin-shell.admin-shell--plain:has(.admin-wizard) {
    align-items: flex-start;
}

.admin-shell--plain > .admin-content:has(.admin-wizard) {
    max-width: 820px;
}

.admin-shell .admin-content .admin-no-access {
    padding: 32px;
}

.admin-shell .admin-content .admin-no-access__mark {
    display: block;
    width: 208px;
    max-width: 100%;
    height: auto;
    margin-bottom: 24px;
}

.admin-shell .admin-content .admin-no-access__title {
    margin: 0 0 16px;
    font-size: var(--admin-fs-title);
    font-weight: 800;
    letter-spacing: -0.015em;
}

.admin-shell .admin-content .admin-no-access__reference {
    color: var(--admin-muted);
    font-size: var(--admin-fs-small);
}
