/* /Pages/Index.razor.rz.scp.css */
.ops-section[b-34icc90non] {
    margin-top: 0;
}

.stat-grid[b-34icc90non] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ── KPI Rows ──────────────────────────────────────────────────────────── */

.kpi-row[b-34icc90non] {
    margin-bottom: 1.5rem;
}

.kpi-row__title[b-34icc90non] {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    margin: 0 0 0.75rem 0;
}

.kpi-row__cards[b-34icc90non] {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 1500px) {
    .kpi-row__cards[b-34icc90non] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.chart-toggle[b-34icc90non] {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

/* ── Plan Mix Strip ────────────────────────────────────────────────────── */

.plan-mix-strip[b-34icc90non] {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.plan-mix-bar[b-34icc90non] {
    display: flex;
    height: 28px;
    border-radius: 8px;
    overflow: hidden;
    gap: 2px;
    margin-bottom: 0.75rem;
}

.plan-mix-bar__segment[b-34icc90non] {
    min-width: 4px;
    transition: opacity 200ms ease;
    cursor: default;
}

.plan-mix-bar__segment:hover[b-34icc90non] {
    opacity: 0.8;
}

/* Tier colors */
.plan-mix-bar__segment--free[b-34icc90non] {
    background: var(--color-text-secondary, #94a3b8);
}
.plan-mix-bar__segment--pro[b-34icc90non] {
    background: var(--color-brand-primary, #6366f1);
}
.plan-mix-bar__segment--team[b-34icc90non] {
    background: #8b5cf6;
}
.plan-mix-bar__segment--enterprise[b-34icc90non] {
    background: #f59e0b;
}
.plan-mix-bar__segment--trial[b-34icc90non] {
    background: #06b6d4;
}

.plan-mix-legend[b-34icc90non] {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.plan-mix-legend__item[b-34icc90non] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--color-text-secondary);
}

.plan-mix-legend__dot[b-34icc90non] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.plan-mix-legend__label[b-34icc90non] {
    font-weight: 600;
}

.plan-mix-legend__value[b-34icc90non] {
    font-weight: 500;
    opacity: 0.8;
}

/* Charts grid — now full-width since KPI sidebar was replaced by rows */
.dashboard-grid[b-34icc90non] {
    grid-template-columns: 1fr;
}

.dashboard-grid__charts[b-34icc90non] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .stat-grid[b-34icc90non] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kpi-row__cards[b-34icc90non] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stat-grid[b-34icc90non] {
        grid-template-columns: 1fr;
    }

    .kpi-row__cards[b-34icc90non] {
        grid-template-columns: 1fr;
    }

    .plan-mix-strip[b-34icc90non] {
        padding: 1rem;
        border-radius: 12px;
    }

    .plan-mix-legend[b-34icc90non] {
        gap: 0.5rem;
    }
}

.kpi-card--skeleton[b-34icc90non] {
    pointer-events: none;
    cursor: default;
    box-shadow: none;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    opacity: 0.7;
}

.kpi-card--skeleton:hover[b-34icc90non] {
    box-shadow: none;
    transform: none;
}
/* /Pages/Platform.razor.rz.scp.css */
/* ================================================================
   Live Errors — Platform Health Page
   Scoped stylesheet for the redesigned live-errors section.
   Uses project design tokens from app.css (--color-*, --shadow-*).
   ================================================================ */

/* ── Card container ────────────────────────────────────────────── */

.live-errors-card--has-critical[b-yhylbr85ne] {
    border-color: rgba(220, 38, 38, 0.35);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.12), var(--shadow-sm);
}

/* ── Header row ────────────────────────────────────────────────── */

.live-errors-header[b-yhylbr85ne] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.live-errors-header__left[b-yhylbr85ne] {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.live-errors-header__refresh[b-yhylbr85ne] {
    white-space: nowrap;
}

/* ── Time range selector ───────────────────────────────────────── */

.live-errors-time-range[b-yhylbr85ne] {
    display: inline-flex;
    gap: 2px;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 3px;
}

.live-errors-time-range__btn[b-yhylbr85ne] {
    all: unset;
    cursor: pointer;
    padding: 0.3rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    color: var(--color-text-secondary);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.live-errors-time-range__btn:hover[b-yhylbr85ne] {
    color: var(--color-text-primary);
    background: rgba(37, 99, 235, 0.06);
}

.live-errors-time-range__btn--active[b-yhylbr85ne] {
    background: var(--color-surface);
    color: var(--color-brand-primary);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

/* ── Empty state ───────────────────────────────────────────────── */

.live-errors-empty[b-yhylbr85ne] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    gap: 1rem;
}

.live-errors-empty__icon[b-yhylbr85ne] {
    font-size: 2.75rem;
    color: var(--color-progress-success);
    line-height: 1;
    opacity: 0.85;
}

.live-errors-empty__text[b-yhylbr85ne] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.live-errors-empty__text strong[b-yhylbr85ne] {
    color: var(--color-text-primary);
    font-size: 1.05rem;
}

/* ── Summary pills ─────────────────────────────────────────────── */

.live-errors__summary[b-yhylbr85ne] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.live-errors__pill[b-yhylbr85ne] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
}

.live-errors__pill--critical[b-yhylbr85ne] {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.live-errors__pill--error[b-yhylbr85ne] {
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
    border: 1px solid rgba(234, 88, 12, 0.2);
}

:root[data-theme='dark'] .live-errors__pill--critical[b-yhylbr85ne] {
    background: rgba(248, 113, 113, 0.15);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.3);
}

:root[data-theme='dark'] .live-errors__pill--error[b-yhylbr85ne] {
    background: rgba(251, 146, 60, 0.12);
    color: #fdba74;
    border-color: rgba(251, 146, 60, 0.25);
}

/* ── Desktop / Mobile toggle ───────────────────────────────────── */

.live-errors-desktop[b-yhylbr85ne] {
    display: block;
}

.live-errors-mobile[b-yhylbr85ne] {
    display: none;
}

@media (max-width: 768px) {
    .live-errors-desktop[b-yhylbr85ne] {
        display: none;
    }

    .live-errors-mobile[b-yhylbr85ne] {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ── Desktop table ─────────────────────────────────────────────── */

.live-errors-table[b-yhylbr85ne] {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.live-errors-table thead th[b-yhylbr85ne] {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-secondary);
    background: var(--color-surface-muted);
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.live-errors-table tbody td[b-yhylbr85ne] {
    padding: 0.6rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
    color: var(--color-text-primary);
}

/* ── Group header row ──────────────────────────────────────────── */

.live-errors-group-header td[b-yhylbr85ne] {
    background: var(--color-surface-muted);
    padding: 0.5rem 0.75rem !important;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--color-border);
}

.live-errors-group-header__count[b-yhylbr85ne] {
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

.live-errors-group-header__time[b-yhylbr85ne] {
    font-size: 0.78rem;
}

/* ── Error rows ────────────────────────────────────────────────── */

.live-errors-row[b-yhylbr85ne] {
    transition: background-color 0.15s ease;
    border-left: 4px solid transparent;
}

.live-errors-row:hover[b-yhylbr85ne] {
    background: rgba(37, 99, 235, 0.03);
}

.live-errors-row--critical[b-yhylbr85ne] {
    border-left: 4px solid #dc2626;
    background: rgba(220, 38, 38, 0.03);
}

.live-errors-row--critical:hover[b-yhylbr85ne] {
    background: rgba(220, 38, 38, 0.06);
}

.live-errors-row--error[b-yhylbr85ne] {
    border-left: 4px solid #ea580c;
    background: rgba(234, 88, 12, 0.02);
}

.live-errors-row--error:hover[b-yhylbr85ne] {
    background: rgba(234, 88, 12, 0.05);
}

:root[data-theme='dark'] .live-errors-row--critical[b-yhylbr85ne] {
    background: rgba(248, 113, 113, 0.06);
}

:root[data-theme='dark'] .live-errors-row--critical:hover[b-yhylbr85ne] {
    background: rgba(248, 113, 113, 0.1);
}

:root[data-theme='dark'] .live-errors-row--error[b-yhylbr85ne] {
    background: rgba(251, 146, 60, 0.04);
}

:root[data-theme='dark'] .live-errors-row--error:hover[b-yhylbr85ne] {
    background: rgba(251, 146, 60, 0.08);
}

/* ── Row cells ─────────────────────────────────────────────────── */

.live-errors-row__time[b-yhylbr85ne] {
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.live-errors-row__category[b-yhylbr85ne] {
    font-weight: 500;
    font-size: 0.82rem;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-errors-row__message[b-yhylbr85ne] {
    font-size: 0.85rem;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-errors-row__count[b-yhylbr85ne] {
    text-align: center;
    white-space: nowrap;
}

.live-errors-row__chevron[b-yhylbr85ne] {
    text-align: center;
    padding: 0 !important;
}

/* ── Severity badges ───────────────────────────────────────────── */

.live-errors-badge[b-yhylbr85ne] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    line-height: 1;
    white-space: nowrap;
}

.live-errors-badge--critical[b-yhylbr85ne] {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}

.live-errors-badge--error[b-yhylbr85ne] {
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
}

:root[data-theme='dark'] .live-errors-badge--critical[b-yhylbr85ne] {
    background: rgba(248, 113, 113, 0.15);
    color: #fca5a5;
}

:root[data-theme='dark'] .live-errors-badge--error[b-yhylbr85ne] {
    background: rgba(251, 146, 60, 0.12);
    color: #fdba74;
}

/* ── Chevron button ────────────────────────────────────────────── */

.live-errors-chevron-btn[b-yhylbr85ne] {
    all: unset;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--color-text-secondary);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.live-errors-chevron-btn:hover[b-yhylbr85ne] {
    background: var(--color-surface-muted);
    color: var(--color-text-primary);
}

/* ── Detail / expand row ───────────────────────────────────────── */

.live-errors-detail td[b-yhylbr85ne] {
    padding: 0 !important;
    border-bottom: 1px solid var(--color-border);
}

.live-errors-detail--critical td[b-yhylbr85ne] {
    background: rgba(220, 38, 38, 0.04);
}

.live-errors-detail--error td[b-yhylbr85ne] {
    background: rgba(234, 88, 12, 0.03);
}

:root[data-theme='dark'] .live-errors-detail--critical td[b-yhylbr85ne] {
    background: rgba(248, 113, 113, 0.06);
}

:root[data-theme='dark'] .live-errors-detail--error td[b-yhylbr85ne] {
    background: rgba(251, 146, 60, 0.04);
}

.live-errors-detail__inner[b-yhylbr85ne] {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.live-errors-detail__row[b-yhylbr85ne] {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
}

.live-errors-detail__label[b-yhylbr85ne] {
    flex: 0 0 auto;
    min-width: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text-secondary);
}

.live-errors-detail__value[b-yhylbr85ne] {
    flex: 1;
    font-size: 0.875rem;
    color: var(--color-text-primary);
    word-break: break-word;
    line-height: 1.5;
}

.live-errors-detail__value--mono[b-yhylbr85ne] {
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.82rem;
    background: var(--color-surface-muted);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.live-errors-detail__actions[b-yhylbr85ne] {
    padding-top: 0.25rem;
}

.live-errors-copy-btn[b-yhylbr85ne] {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.75rem !important;
}

/* ── Mobile card stack ─────────────────────────────────────────── */

.live-errors-mobile-group-header[b-yhylbr85ne] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0 0.25rem;
    font-size: 0.85rem;
}

.live-errors-card-mobile[b-yhylbr85ne] {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1rem;
    background: var(--color-surface);
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.live-errors-card-mobile:hover[b-yhylbr85ne] {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.live-errors-card-mobile--critical[b-yhylbr85ne] {
    border-left: 4px solid #dc2626;
    background: rgba(220, 38, 38, 0.03);
}

.live-errors-card-mobile--error[b-yhylbr85ne] {
    border-left: 4px solid #ea580c;
    background: rgba(234, 88, 12, 0.02);
}

:root[data-theme='dark'] .live-errors-card-mobile--critical[b-yhylbr85ne] {
    background: rgba(248, 113, 113, 0.06);
}

:root[data-theme='dark'] .live-errors-card-mobile--error[b-yhylbr85ne] {
    background: rgba(251, 146, 60, 0.04);
}

.live-errors-card-mobile--expanded[b-yhylbr85ne] {
    border-color: var(--color-border-strong);
}

.live-errors-card-mobile__header[b-yhylbr85ne] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.live-errors-card-mobile__service[b-yhylbr85ne] {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
}

.live-errors-card-mobile__message[b-yhylbr85ne] {
    font-size: 0.875rem;
    color: var(--color-text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.live-errors-card-mobile__chevron[b-yhylbr85ne] {
    position: absolute;
    bottom: 0.5rem;
    right: 0.75rem;
}

/* ── Mobile responsive tweaks ──────────────────────────────────── */

@media (max-width: 600px) {
    .live-errors-header[b-yhylbr85ne] {
        flex-direction: column;
        align-items: flex-start;
    }

    .live-errors-header__left[b-yhylbr85ne] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .live-errors-time-range[b-yhylbr85ne] {
        width: 100%;
        justify-content: stretch;
    }

    .live-errors-time-range__btn[b-yhylbr85ne] {
        flex: 1;
        text-align: center;
    }

    .live-errors-detail__row[b-yhylbr85ne] {
        flex-direction: column;
        gap: 0.2rem;
    }

    .live-errors-detail__label[b-yhylbr85ne] {
        min-width: unset;
    }
}
/* /Pages/Tenants.razor.rz.scp.css */
.tenants-stats[b-ja4ydf0aos] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .tenants-stats[b-ja4ydf0aos] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .tenants-stats[b-ja4ydf0aos] {
        grid-template-columns: 1fr;
    }
}


/* /Shared/AdminValueRow.razor.rz.scp.css */
.admin-row-actions[b-lfwjy0qarq] {
    text-align: right;
    white-space: nowrap;
}

/* Keep long values from wrecking the row layout */
.data-row code[b-lfwjy0qarq],
.data-row span[b-lfwjy0qarq] {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}


/* /Shared/MainLayout.razor.rz.scp.css */
.app-shell[b-ulvhr98zp3] {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    background: var(--color-app-bg);
    color: var(--color-text-primary);
    --admin-content-width: 1320px;
    --admin-pad-x: 2.5rem;
}

.app-shell__sidebar[b-ulvhr98zp3] {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--color-border);
    background: var(--color-surface);
}

.app-shell__backdrop[b-ulvhr98zp3] {
    display: none;
}

.app-shell__main[b-ulvhr98zp3] {
    min-width: 0;
    padding-top: calc(1.25rem + 3.5rem + 0.75rem);
}

.admin-topbar-wrap[b-ulvhr98zp3] {
    position: fixed;
    top: 0;
    z-index: 30;
    padding-top: 0.75rem;
    max-width: var(--admin-content-width);
    margin: 0 auto;
    padding-left: var(--admin-pad-x);
    padding-right: var(--admin-pad-x);
    left: 280px;
    right: 0;
}

.app-shell__content[b-ulvhr98zp3] {
    padding: 1.75rem var(--admin-pad-x);
    max-width: var(--admin-content-width);
    margin: 0 auto;
}

/* Hamburger button -- hidden on desktop */
.admin-topbar__hamburger[b-ulvhr98zp3] {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-primary);
    cursor: pointer;
    padding: 0.25rem 0.45rem;
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

/* WebApp-style pill topbar */
.admin-topbar[b-ulvhr98zp3] {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1.5rem;
    margin: 0;
    border-radius: 999px;
    position: relative;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    width: 100%;
}

::root[data-theme='dark'] .admin-topbar[b-ulvhr98zp3] {
    background: rgba(2, 6, 23, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.admin-topbar__inner[b-ulvhr98zp3] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-topbar__left[b-ulvhr98zp3] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.admin-topbar__kicker[b-ulvhr98zp3] {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.admin-topbar__title[b-ulvhr98zp3] {
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 48vw;
}

.admin-topbar__right[b-ulvhr98zp3] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-topbar__signout[b-ulvhr98zp3] {
    margin: 0;
}

.admin-pill[b-ulvhr98zp3] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-secondary);
    height: 2.6rem;
}

.admin-pill--user .admin-pill__dot[b-ulvhr98zp3] {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-text-primary);
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
}

.admin-pill--user .admin-pill__text[b-ulvhr98zp3] {
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Version pill: visible only on wide desktop */
@media (max-width: 1100px) {
    .admin-pill--version[b-ulvhr98zp3] {
        display: none;
    }
}

/* ── Sidebar skeleton (authorizing state) ── */
.sidebar-skeleton[b-ulvhr98zp3] {
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-skeleton__brand[b-ulvhr98zp3] {
    padding: 0.5rem 0.75rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.5rem;
}

.sidebar-skeleton__item[b-ulvhr98zp3] {
    padding: 0.5rem 0.75rem;
}

/* Tablet: <=960px */
@media (max-width: 960px) {
    .app-shell[b-ulvhr98zp3] {
        grid-template-columns: 1fr;
        --admin-pad-x: 1.25rem;
    }

    .app-shell__sidebar[b-ulvhr98zp3] {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        height: 100vh;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        border-right: 1px solid var(--color-border);
        overflow-y: auto;
    }

    .app-shell--sidebar-open .app-shell__sidebar[b-ulvhr98zp3] {
        transform: translateX(0);
    }

    .app-shell__backdrop[b-ulvhr98zp3] {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 40;
        background: rgba(0, 0, 0, 0.4);
    }

    .app-shell--sidebar-open .app-shell__backdrop[b-ulvhr98zp3] {
        display: block;
    }

    .admin-topbar__hamburger[b-ulvhr98zp3] {
        display: flex;
    }

    .admin-topbar-wrap[b-ulvhr98zp3] {
        padding-top: 0.5rem;
        left: 0;
        right: 0;
    }

    .admin-topbar[b-ulvhr98zp3] {
        border-radius: 24px;
        padding: 0.5rem 1rem;
        width: 100%;
    }

    .app-shell__content[b-ulvhr98zp3] {
        padding: 1.25rem var(--admin-pad-x);
    }

    .admin-topbar__title[b-ulvhr98zp3] {
        max-width: 35vw;
    }

    .admin-topbar__right[b-ulvhr98zp3] {
        gap: 0.35rem;
    }

    /* Hide email text on tablet -- keep avatar dot only */
    .admin-pill--user .admin-pill__text[b-ulvhr98zp3] {
        display: none;
    }

    .admin-pill--user[b-ulvhr98zp3] {
        padding: 0.25rem;
        gap: 0;
    }

    /* Hide env pill on tablet */
    .admin-pill--env[b-ulvhr98zp3] {
        display: none;
    }

    /* Sign-out: icon-only on tablet */
    .admin-topbar__signout .btn[b-ulvhr98zp3] {
        font-size: 0;
        padding: 0.25rem 0.5rem;
    }

    .admin-topbar__signout .btn .bi[b-ulvhr98zp3] {
        font-size: 0.9rem;
    }

    .admin-topbar__signout .btn .me-2[b-ulvhr98zp3] {
        margin-right: 0 !important;
    }

    /* Compact pills on tablet */
    .admin-pill[b-ulvhr98zp3] {
        padding: 0.25rem 0.55rem;
        font-size: 0.8rem;
        height: 2.4rem;
    }
}

/* Phone: <=600px */
@media (max-width: 600px) {
    .app-shell[b-ulvhr98zp3] {
        --admin-pad-x: 0.75rem;
    }

    .app-shell__main[b-ulvhr98zp3] {
        padding-top: calc(0.5rem + 3rem + 0.5rem);
    }

    .admin-topbar-wrap[b-ulvhr98zp3] {
        padding-top: 0.35rem;
    }

    .admin-topbar[b-ulvhr98zp3] {
        height: 3rem;
        border-radius: 18px;
        padding: 0.35rem 0.75rem;
    }

    .admin-topbar__kicker[b-ulvhr98zp3] {
        display: none;
    }

    .admin-topbar__title[b-ulvhr98zp3] {
        font-size: 0.9rem;
        max-width: 40vw;
    }

    .admin-topbar__right[b-ulvhr98zp3] {
        gap: 0.25rem;
    }

    /* Further compact pills on phone */
    .admin-pill[b-ulvhr98zp3] {
        padding: 0.2rem 0.45rem;
        font-size: 0.75rem;
        height: 2.1rem;
    }

    .admin-topbar__signout .btn[b-ulvhr98zp3] {
        padding: 0.15rem 0.4rem;
    }

    .admin-topbar__signout .btn .bi[b-ulvhr98zp3] {
        font-size: 0.8rem;
    }
}
/* /Shared/MrrProjectionPanel.razor.rz.scp.css */
.projection-panel__badge[b-ypnp6yj9nt] {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
}

.projection-panel__empty[b-ypnp6yj9nt] {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    padding: 1rem 0;
}

.projection-panel__inputs[b-ypnp6yj9nt] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    margin: 0.75rem 0 1rem;
}

.projection-panel__field[b-ypnp6yj9nt] {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin: 0;
}

.projection-panel__field input[type="number"][b-ypnp6yj9nt] {
    width: 7rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text-primary);
    font-size: 0.85rem;
}

.projection-panel__field--highlight[b-ypnp6yj9nt] {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-brand-primary, #6366f1);
    border-radius: 12px;
}

.projection-panel__field--highlight input[type="range"][b-ypnp6yj9nt] {
    width: 11rem;
    accent-color: var(--color-brand-primary, #6366f1);
}

.projection-panel__reset[b-ypnp6yj9nt] {
    margin-left: auto;
}

.projection-panel__table[b-ypnp6yj9nt] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.projection-panel__table th[b-ypnp6yj9nt],
.projection-panel__table td[b-ypnp6yj9nt] {
    padding: 0.4rem 0.6rem;
    text-align: right;
    border-bottom: 1px solid var(--color-border);
}

.projection-panel__table th:first-child[b-ypnp6yj9nt],
.projection-panel__table td:first-child[b-ypnp6yj9nt] {
    text-align: left;
}

.projection-panel__table thead th[b-ypnp6yj9nt] {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
}

.projection-panel__adjusted[b-ypnp6yj9nt] {
    font-weight: 600;
    color: var(--color-brand-primary, #6366f1);
}

.projection-panel__footnote[b-ypnp6yj9nt] {
    margin-top: 0.75rem;
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}
/* /Shared/NavMenu.razor.rz.scp.css */
/* Minimal additions on top of shared WebApp tokens (wwwroot/app.css). */

/* ─── Nav link colors: muted neutrals instead of saturated blue ─── */
[b-p1tw2twijt] .nav-link {
    color: var(--color-text-secondary);
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 6px;
}

[b-p1tw2twijt] .nav-link:hover {
    color: var(--color-text-primary);
    background-color: color-mix(in srgb, var(--color-text-primary) 6%, transparent);
}

[b-p1tw2twijt] .nav-link.active {
    color: var(--color-text-primary);
    background-color: color-mix(in srgb, var(--color-brand-primary) 12%, transparent);
    font-weight: 500;
}

.admin-nav[b-p1tw2twijt] {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0;
}

.admin-nav__brand[b-p1tw2twijt] {
    margin-bottom: 1rem;
}

.admin-nav__subtitle[b-p1tw2twijt] {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.admin-nav__brand[b-p1tw2twijt] {
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.25rem;
}

.user-panel--compact .user-panel__card[b-p1tw2twijt] {
    padding: 0.75rem 0.9rem;
    border-radius: 18px;
}

.user-panel--compact .user-panel__avatar[b-p1tw2twijt] {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
}

.admin-nav__env[b-p1tw2twijt] {
    margin-top: 1rem;
    opacity: 0.8;
}

.nav-group-label[b-p1tw2twijt] {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
    opacity: 0.7;
}
/* /Shared/NotificationCenter.razor.rz.scp.css */
/*
 * NotificationCenter scoped styles.
 *
 * IMPORTANT: MudPopover renders via MudPopoverProvider (portal at DOM root).
 * Blazor CSS isolation adds scoped attributes only to elements in THIS
 * component's render tree. Any ::deep selector that targets the popover
 * panel itself (.notification-center-popover) will NOT match because the
 * portal div is outside this scope.
 *
 * Panel appearance, list-item overrides, and MudSnackbar styling live in
 * app.css (global) so they can reach portal-rendered content.
 *
 * This file covers only elements that ARE rendered inside this component:
 *   - The badge + bell wrapper
 *   - The backdrop overlay
 *   - Content inside MudPopover (inner divs, not the popover shell)
 */

/* ── Inner panel container (inside MudPopover, rendered by this component) ── */
.notification-center[b-uuwv1w0n2g] {
    min-width: 340px;
    max-width: 420px;
    font-family: var(--font-family-base);
}

/* ── Header ── */
.notification-center__header[b-uuwv1w0n2g] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.notification-center__title[b-uuwv1w0n2g] {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: var(--color-text-primary);
}

.notification-center__actions[b-uuwv1w0n2g] {
    display: flex;
    gap: 0.15rem;
}

.notification-center__actions[b-uuwv1w0n2g]  .mud-button-text {
    color: var(--color-brand-primary);
    font-size: 0.78rem;
    font-weight: 500;
    min-width: 0;
}

/* ── Empty state ── */
.notification-center__empty[b-uuwv1w0n2g] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    gap: 0.5rem;
}

.notification-center__empty[b-uuwv1w0n2g]  .mud-icon-root {
    color: var(--color-text-secondary);
    opacity: 0.45;
}

.notification-center__empty-text[b-uuwv1w0n2g] {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

/* ── Scrollable list wrapper ── */
.notification-center__list[b-uuwv1w0n2g] {
    padding: 0.375rem 0.375rem;
    max-height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

/* ── Notification item rows ── */
.notification-item__row[b-uuwv1w0n2g] {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    width: 100%;
    padding: 0.1rem 0;
}

/* Icon styling is handled by the global app.css (portal-rendered context).
   The colored circle backgrounds and severity colors are applied there. */
.notification-item__icon[b-uuwv1w0n2g] {
    margin-top: 1px;
    flex-shrink: 0;
}

.notification-item__content[b-uuwv1w0n2g] {
    min-width: 0;
    flex: 1;
}

.notification-item__message[b-uuwv1w0n2g] {
    word-break: break-word;
    color: var(--color-text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.35;
}

.notification-item__detail[b-uuwv1w0n2g] {
    color: var(--color-text-secondary);
    font-size: 0.78rem;
    margin-top: 2px;
    line-height: 1.3;
}

.notification-item__time[b-uuwv1w0n2g] {
    margin-top: 3px;
    color: var(--color-text-secondary);
    font-size: 0.72rem;
    opacity: 0.65;
}

/* ── Click-to-dismiss backdrop ── */
.notification-center__backdrop[b-uuwv1w0n2g] {
    position: fixed;
    inset: 0;
    z-index: 99;
}

/* ── Bell icon button — match ThemeToggle pill style ── */
[b-uuwv1w0n2g] .mud-icon-button {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    border: 1px solid var(--color-border) !important;
    background: var(--color-surface) !important;
    color: var(--color-text-primary) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

[b-uuwv1w0n2g] .mud-icon-button:hover {
    border-color: var(--color-border-strong) !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
}

:root[data-theme='dark'][b-uuwv1w0n2g]  .mud-icon-button {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Wrapper: inline-flex so the MudPopover anchor is flush-right of the button */
.notification-bell-wrapper[b-uuwv1w0n2g] {
    position: relative;
    display: inline-flex;
    align-items: center;
}
/* /Shared/TelemetryPanel.razor.rz.scp.css */
.telemetry-panel[b-7io8yx274v] {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 14px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.telemetry-panel__header[b-7io8yx274v] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.telemetry-panel__title-row[b-7io8yx274v] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.telemetry-panel__icon[b-7io8yx274v] {
    font-size: 1rem;
    color: var(--mud-palette-primary);
}

.telemetry-panel__title[b-7io8yx274v] {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mud-palette-text-secondary);
}

.telemetry-panel__badge[b-7io8yx274v] {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.125rem 0.4rem;
    border-radius: 4px;
    background: var(--mud-palette-primary);
    color: #fff;
    line-height: 1.4;
}

.telemetry-panel__updated[b-7io8yx274v] {
    font-size: 0.75rem;
    color: var(--mud-palette-text-disabled);
}

.telemetry-panel__empty[b-7io8yx274v] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    color: var(--mud-palette-text-secondary);
    font-size: 0.85rem;
}

.telemetry-panel__grid[b-7io8yx274v] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.telemetry-metric-card[b-7io8yx274v] {
    background: var(--mud-palette-background);
    border: 1px solid var(--mud-palette-divider);
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.telemetry-metric-card:hover[b-7io8yx274v] {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.telemetry-metric-card--no-data[b-7io8yx274v] {
    opacity: 0.5;
}

.telemetry-metric-card__label[b-7io8yx274v] {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.telemetry-metric-card__value[b-7io8yx274v] {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.telemetry-metric-card__unit[b-7io8yx274v] {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
    margin-left: 0.15rem;
}

.telemetry-metric-card__no-data[b-7io8yx274v] {
    color: var(--mud-palette-text-disabled);
    font-size: 1.1rem;
}

.telemetry-metric-card__sparkline[b-7io8yx274v] {
    height: 20px;
    margin-top: 0.25rem;
}

.telemetry-metric-card__sparkline svg[b-7io8yx274v] {
    width: 100%;
    height: 100%;
}

@media (max-width: 600px) {
    .telemetry-panel__grid[b-7io8yx274v] {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* /Shared/ThemeToggle.razor.rz.scp.css */
.theme-toggle[b-36ah7d3y6i] {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-primary);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.theme-toggle:hover[b-36ah7d3y6i] {
    border-color: var(--color-border-strong);
    transform: translateY(-1px);
    transition: transform 160ms ease, border-color 160ms ease;
}

:root[data-theme='dark'] .theme-toggle[b-36ah7d3y6i] {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}


