:root {
    --panoptic-primary: #1e88e5;
    --panoptic-accent: #39c2f0;
    --panoptic-secondary: #1b4f8c;
    --panoptic-bg: #edf4fb;
    --panoptic-surface: rgba(255, 255, 255, 0.88);
    --panoptic-surface-strong: #ffffff;
    --panoptic-border: rgba(203, 213, 225, 0.9);
    --panoptic-border-strong: rgba(30, 136, 229, 0.22);
    --panoptic-text: #0f172a;
    --panoptic-muted: #4b5563;
    --panoptic-accent-strong: #5bd5fb;
    --panoptic-accent-soft: rgba(57, 194, 240, 0.12);
    --panoptic-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

html, body {
    min-height: 100%;
    font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
    color: var(--panoptic-text);
    background:
        radial-gradient(circle at top left, rgba(30, 136, 229, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(57, 194, 240, 0.14), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, var(--panoptic-bg) 100%);
    color-scheme: light;
}

body {
    margin: 0;
}

a, .btn-link {
    color: var(--panoptic-accent);
}

a:hover, .btn-link:hover {
    color: var(--panoptic-accent-strong);
}

.btn-primary {
    color: #fff;
    background-color: var(--panoptic-primary);
    border-color: var(--panoptic-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
    color: #fff;
    background-color: #42a5f5 !important;
    border-color: #42a5f5 !important;
}

.btn-outline-primary {
    color: var(--panoptic-accent);
    border-color: rgba(57, 194, 240, 0.45);
    background: rgba(30, 136, 229, 0.08);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible,
.btn-outline-primary:active {
    color: #fff;
    background-color: var(--panoptic-accent) !important;
    border-color: var(--panoptic-accent) !important;
}

.btn-outline-secondary {
    color: #334155;
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.78);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus-visible,
.btn-outline-secondary:active {
    color: #0f172a;
    border-color: rgba(57, 194, 240, 0.55) !important;
    background: rgba(219, 234, 254, 0.95) !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(57, 194, 240, 0.38);
}

h1:focus {
    outline: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Bahnschrift", "Arial Narrow", sans-serif;
    letter-spacing: 0.01em;
}

.card,
.surface-panel {
    border: 1px solid var(--panoptic-border);
    border-radius: 1.25rem;
    background: var(--panoptic-surface);
    box-shadow: var(--panoptic-shadow);
    backdrop-filter: blur(10px);
}

.service-components-card--elevated {
    position: relative;
    z-index: 20;
}

.table-responsive {
    border-radius: 1rem;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--panoptic-text);
    --bs-table-striped-bg: rgba(30, 136, 229, 0.05);
    --bs-table-hover-bg: rgba(57, 194, 240, 0.08);
    margin-bottom: 0;
}

.table thead th {
    color: var(--panoptic-muted);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom-color: rgba(148, 163, 184, 0.3);
}

.table tbody td {
    vertical-align: middle;
    border-bottom-color: rgba(203, 213, 225, 0.75);
}

.table tbody tr:last-child td {
    border-bottom-width: 0;
}

.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;
}

.action-link,
.action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.action-icon {
    width: 1rem;
    text-align: center;
}

@keyframes panoptic-spinner-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.fa-spinner.fa-spin {
    display: inline-block;
    animation: panoptic-spinner-spin 1s linear infinite !important;
    will-change: transform;
}

.workspace-blocking-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(245, 248, 252, 0.72);
    backdrop-filter: blur(6px);
}

.workspace-blocking-overlay__panel {
    display: grid;
    gap: 0.55rem;
    justify-items: center;
    max-width: 28rem;
    padding: 1.5rem 1.75rem;
    text-align: center;
    border: 1px solid rgba(57, 194, 240, 0.22);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 245, 255, 0.92));
    box-shadow: var(--panoptic-shadow);
}

.workspace-blocking-overlay__icon {
    font-size: 1.6rem;
    color: var(--panoptic-accent, #1e88e5);
}

.workspace-blocking-overlay__title {
    font-family: "Bahnschrift", "Arial Narrow", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.workspace-blocking-overlay__copy {
    color: var(--panoptic-muted);
}

.icon-only-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
}

.site-network-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.site-network-chip {
    font-size: 0.75rem;
}

.service-interrogation-unchanged-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 0.5rem 0.75rem;
    padding: 0;
    list-style: none;
}

.service-interrogation-unchanged-list__item {
    min-width: 0;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 0.5rem;
    background: rgba(248, 250, 252, 0.72);
}

.service-interrogation-unchanged-list__name,
.service-interrogation-unchanged-list__source {
    display: block;
    overflow-wrap: anywhere;
}

.service-interrogation-unchanged-list__name {
    color: var(--panoptic-text);
    font-size: 0.82rem;
}

.service-interrogation-unchanged-list__source {
    margin-top: 0.12rem;
    color: var(--panoptic-muted);
    font-size: 0.78rem;
}

.page-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--panoptic-border);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at top right, rgba(57, 194, 240, 0.14), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 255, 0.94));
    box-shadow: var(--panoptic-shadow);
}

.page-hero__content {
    min-width: 0;
}

.page-hero__eyebrow {
    margin-bottom: 0.55rem;
    color: var(--panoptic-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-hero__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1;
}

.page-hero__description {
    max-width: 48rem;
    margin: 0.75rem 0 0;
    color: var(--panoptic-muted);
    font-size: 1rem;
}

.page-hero__action {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.page-hero__right {
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: flex-start;
}

.page-hero--compact {
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 1.2rem;
}

.page-hero--compact .page-hero__eyebrow {
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
}

.page-hero--compact .page-hero__title {
    font-size: clamp(1.55rem, 2.6vw, 2rem);
}

.page-hero--compact .page-hero__description {
    margin-top: 0.45rem;
    font-size: 0.94rem;
    max-width: 40rem;
}

.page-hero--compact .page-hero__action {
    min-height: 2.4rem;
    padding: 0.5rem 0.85rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metrics-grid--compact {
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.metric-card {
    display: flex;
    gap: 1rem;
    min-height: 100%;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--panoptic-border);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.metric-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 0.95rem;
    color: #03111f;
    background: linear-gradient(135deg, var(--panoptic-accent), var(--panoptic-primary));
}

.metric-card__label {
    color: var(--panoptic-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-card__value {
    margin-top: 0.2rem;
    font-family: "Bahnschrift", "Arial Narrow", sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
}

.metric-card__description {
    margin: 0.45rem 0 0;
    color: var(--panoptic-muted);
    font-size: 0.92rem;
}

.metrics-grid--compact .metric-card {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
}

.metrics-grid--compact .metric-card__icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.8rem;
}

.metrics-grid--compact .metric-card__value {
    font-size: 1.55rem;
}

.metrics-grid--compact .metric-card__description {
    margin-top: 0.3rem;
    font-size: 0.8rem;
}

.metric-card__donut-wrap {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
}

.metric-card__donut {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
}

.metric-card__donut-hole {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--panoptic-surface-strong);
}

.metrics-grid--compact .metric-card__donut-wrap,
.metrics-grid--compact .metric-card__donut {
    width: 2.35rem;
    height: 2.35rem;
}

a.metric-card--link,
button.metric-card--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.metric-card--link:hover,
button.metric-card--link:hover {
    border-color: var(--panoptic-primary);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

button.metric-card--link {
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--panoptic-border);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-heading__copy {
    color: var(--panoptic-muted);
    margin: 0.35rem 0 0;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    padding: 1.4rem;
    border: 1px solid var(--panoptic-border);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--panoptic-primary), var(--panoptic-accent));
}

.feature-card__title {
    margin: 0;
    font-size: 1.3rem;
}

.feature-card__body {
    flex: 1;
}

.feature-card__meta {
    margin: 0.45rem 0 0;
    color: var(--panoptic-muted);
    font-size: 0.92rem;
}

.data-panel {
    padding: 1.4rem;
}

.data-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.data-panel__header h2 {
    margin-bottom: 0.25rem;
}

.data-panel__header p {
    margin-bottom: 0;
    color: var(--panoptic-muted);
}

.empty-state-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem;
    border: 1px dashed var(--panoptic-border-strong);
    border-radius: 1.15rem;
    background: rgba(248, 250, 252, 0.88);
}

.empty-state-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: 1rem;
    color: var(--panoptic-secondary);
    background: var(--panoptic-accent-soft);
}

.empty-state-card__content {
    flex: 1;
}

.loading-panel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.4rem;
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.9);
    color: var(--panoptic-muted);
}

.entity-name {
    font-weight: 700;
    color: var(--panoptic-text);
}

.entity-link {
    color: var(--panoptic-text);
    font-weight: 700;
    text-decoration: none;
}

.entity-link:hover {
    text-decoration: underline;
}

.entity-link--chassis-error {
    color: var(--bs-danger);
}

.muted-stack {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.muted-stack__meta {
    color: var(--panoptic-muted);
    font-size: 0.88rem;
}

.disk-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--panoptic-border);
}

.disk-item:first-child {
    padding-top: 0;
}

.disk-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.disk-pie-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.disk-pie {
    width: 72px;
    height: 72px;
    border-radius: 50%;
}

.disk-pie__hole {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background: var(--panoptic-surface-strong);
    display: flex;
    align-items: center;
    justify-content: center;
}

.disk-pie__pct {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--panoptic-text);
    line-height: 1;
}

.backup-pie-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.backup-pie-outer,
.backup-pie-outer-mask,
.backup-pie-inner,
.backup-pie-center {
    position: absolute;
    border-radius: 50%;
}

.backup-pie-outer {
    inset: 0;
}

.backup-pie-outer-mask {
    inset: 10px;
    background: var(--panoptic-surface-strong);
    pointer-events: none;
}

.backup-pie-inner {
    inset: 14px;
}

.backup-pie-center {
    inset: 24px;
    background: var(--panoptic-surface-strong);
    display: flex;
    align-items: center;
    justify-content: center;
}

.backup-pie-label {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--panoptic-text);
    line-height: 1;
}

.disk-meta {
    min-width: 0;
    flex: 1;
}

.disk-meta__device {
    font-family: "Bahnschrift", "Arial Narrow", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}

.disk-meta__attrs {
    font-size: 0.8rem;
    color: var(--panoptic-muted);
    margin-bottom: 0.2rem;
}

.disk-meta__sizes {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.78rem;
    color: var(--panoptic-text);
}

.disk-meta__sizes-used {
    color: #b45309;
}

.disk-meta__sizes-free {
    color: var(--panoptic-muted);
}

.disk-meta__raid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.125rem;
    margin-top: 0.3rem;
}

.disk-meta__raid-drives {
    font-size: 0.8rem;
    color: var(--panoptic-muted);
}

.disk-meta__raid-slots {
    font-size: 0.75rem;
    font-family: "Courier New", Courier, monospace;
    color: var(--panoptic-muted);
}

.disk-meta__raid-media {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--panoptic-muted);
}

.col-header-inner {
    display: flex;
    align-items: center;
    gap: 0.09375rem;
}

.table-sortable-col {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.table-sort-icon {
    font-size: 0.7rem;
    vertical-align: baseline;
    opacity: 0.85;
}

.table-sort-icon--inactive {
    opacity: 0.3;
}

.col-filter-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.2rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.6rem;
    color: var(--panoptic-muted);
    opacity: 0.4;
    line-height: 1;
    border-radius: 0.25rem;
    transition: opacity 0.1s ease, color 0.1s ease;
}

.col-filter-btn:hover {
    opacity: 1;
    color: var(--panoptic-accent);
}

.col-filter-btn--active {
    opacity: 1;
    color: var(--panoptic-accent);
}

.sortable-col-th {
    position: relative;
    overflow: visible;
}

.table-responsive:has(.col-filter-dropdown) {
    overflow: visible;
}

.col-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1049;
}

.col-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    min-width: 10rem;
    background: var(--panoptic-surface-strong);
    border: 1px solid var(--panoptic-border);
    border-radius: 0.4rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 0.3rem 0;
    white-space: nowrap;
}

.col-filter-option {
    display: block;
    width: 100%;
    padding: 0.3rem 0.85rem;
    text-align: left;
    border: none;
    background: none;
    font-size: 0.82rem;
    font-weight: normal;
    letter-spacing: 0;
    text-transform: none;
    color: var(--panoptic-text);
    cursor: pointer;
    line-height: 1.4;
}

.col-filter-option:hover {
    background: var(--panoptic-bg);
}

.col-filter-option--active {
    color: var(--panoptic-accent);
    font-weight: 600;
}

.col-filter-quick-options {
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
}

.col-filter-dropdown-input {
    padding: 0.35rem 0.5rem;
}

.col-filter-input {
    display: block;
    width: 100%;
    min-width: 8rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.78rem;
    font-weight: normal;
    letter-spacing: 0;
    text-transform: none;
    color: var(--panoptic-text);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 0.35rem;
    outline: none;
}

.col-filter-input:focus {
    border-color: var(--panoptic-accent);
    box-shadow: 0 0 0 0.1rem rgba(57, 194, 240, 0.25);
}

/* --- Home page header (dark, matches sidebar) --- */

.home-page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: -1.5rem -1.5rem 1.5rem;
    padding: 0.95rem 1.15rem 0.95rem 0.25rem;
    background:
        radial-gradient(circle at top right, rgba(57, 194, 240, 0.16), transparent 42%),
        linear-gradient(180deg, #0b1220 0%, #0f172a 52%, #060a14 100%);
    border-bottom: 1px solid rgba(31, 41, 55, 0.96);
}

@media (min-width: 641px) {
    .home-page-header {
        margin: -2rem -2rem 1.5rem;
        padding: 0.95rem 1.65rem 0.95rem 0.55rem;
    }
}

.home-page-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.home-layout-actions {
    display: none;
    position: absolute;
    top: -0.55rem;
    left: 0.2rem;
    align-items: center;
    gap: 0.4rem;
    z-index: 1;
}

.home-layout-btn {
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.8rem;
    border: none;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.home-layout-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #e5e7eb;
}

.home-layout-btn--active {
    background: rgba(30, 136, 229, 0.18);
    color: #39c2f0;
}

.home-layout-btn--active:hover {
    background: rgba(30, 136, 229, 0.28);
    color: #39c2f0;
}

@media (min-width: 641px) {
    .home-layout-actions {
        display: flex;
    }
}

.home-page-brand__logo {
    height: 2.1rem;
    width: auto;
    object-fit: contain;
}

.home-page-title {
    margin: 0 0 0 -0.45rem;
    font-family: "Bahnschrift", "Arial Narrow", sans-serif;
    font-size: 1.24rem;
    font-weight: 700;
    letter-spacing: 0;
    color: white;
}

.home-page-header .status-summary-row {
    flex: 1;
}

.home-disk-status-badge {
    min-width: 2.6rem;
    text-align: center;
}

.home-page-header .status-pill {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
}

.home-page-header .status-pill--ok {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.1);
}

.home-page-header .status-pill--warn {
    border-color: rgba(234, 179, 8, 0.55);
    background: rgba(234, 179, 8, 0.1);
}

.home-page-header .status-pill--danger {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
}

.home-scheduler-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.home-scheduler-status--active {
    gap: 0.45rem;
    font-family: "Bahnschrift", "Arial Narrow", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.home-scheduler-status__icon {
    font-size: 0.82rem;
}

.collector-status-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.2rem 0.9rem;
    align-items: center;
}

/* --- Scroll offset for sticky top-row (min-height: 5rem) --- */

#vm-fleet-section,
#server-health-section,
#replication-section,
[id^="vm-row-"],
[id^="server-row-"],
[id^="rep-group-"] {
    scroll-margin-top: 6rem;
}

/* --- Fixed-width badges for VM table columns --- */

.badge-fw {
    min-width: 3.8rem;
    text-align: center;
}

.badge-pct {
    min-width: 3.4rem;
    text-align: center;
}

.badge-pct--compact {
    font-size: 0.66rem;
    min-width: 3rem !important;
}

.batch-status-badge {
    min-width: 7.5rem;
    text-align: center;
}

/* --- Status summary pills --- */

.status-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--panoptic-border);
    border-radius: 2rem;
    background: var(--panoptic-surface);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    white-space: nowrap;
}

.status-pill__icon {
    color: var(--panoptic-accent);
    font-size: 0.8rem;
}

.status-pill--ok {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(240, 253, 244, 0.9);
}

.status-pill--warn {
    border-color: rgba(234, 179, 8, 0.55);
    background: rgba(254, 252, 232, 0.9);
}

.status-pill--danger {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(254, 242, 242, 0.9);
}

@media (max-width: 767.98px) {
    .home-page-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .home-page-brand__logo {
        display: none;
    }

    .home-page-title {
        margin-left: 0;
        padding-left: 0.25rem;
    }

    .home-page-header .status-summary-row {
        display: none;
    }

    .home-page-header__actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .home-mobile-hidden {
        display: none !important;
    }
}

/* --- Active issues panel --- */

.issue-group {
    margin-bottom: 0.25rem;
}

.backup-health-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1rem;
}

.backup-health-summary-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.backup-health-summary-label {
    color: var(--panoptic-muted);
    font-size: 0.75rem;
    line-height: 1.1;
}

.backup-health-status-detail {
    color: var(--panoptic-text-soft);
}

.backup-health-summary-value {
    color: var(--panoptic-text);
    line-height: 1.25;
}

@media (max-width: 767.98px) {
    .backup-health-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 1200px) {
    .backup-health-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.issue-group-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--panoptic-muted);
    margin-bottom: 0.4rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--panoptic-border);
}

.issue-group-title-expandable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.issue-group-toggle {
    border: none;
    background: transparent;
    color: var(--panoptic-muted);
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

.issue-group-toggle:hover {
    color: var(--panoptic-text);
}

.issue-group-toggle-strong {
    color: var(--panoptic-text);
}

.issue-group-toggle-strong:hover {
    color: var(--panoptic-text);
}

.issue-group-toggle:focus-visible {
    outline: 2px solid rgba(57, 194, 240, 0.45);
    outline-offset: 2px;
    border-radius: 0.2rem;
}

.issue-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.3rem;
    border-bottom: 1px solid rgba(203, 213, 225, 0.35);
    border-radius: 0.35rem;
    font-size: 0.875rem;
    min-width: 0;
    color: var(--panoptic-text);
    cursor: pointer;
    transition: background 0.1s ease;
}

.issue-item:hover {
    background: rgba(57, 194, 240, 0.07);
}

div.issue-item {
    cursor: default;
}

.issue-item:last-child {
    border-bottom: none;
    padding-bottom: 0.3rem;
}

.issue-item .badge {
    font-size: 0.8rem;
    min-width: 4.4rem;
    padding: 0.35em 0.6em;
}

.backup-issue-badge {
    width: 8.5rem;
    min-width: 8.5rem;
    text-align: center;
}

.backup-issue-server-name {
    width: 13.23rem;
    min-width: 13.23rem;
    flex: 0 0 13.23rem;
    font-size: 0.94rem;
}

.backup-issue-detail {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.issue-item-name {
    font-weight: 600;
    color: var(--panoptic-text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Home page compact tables --- */

.home-compact-table tbody td {
    padding-top: 0.28rem;
    padding-bottom: 0.28rem;
    font-size: 0.875rem;
}

.home-compact-table tbody tr:target > td {
    background: rgba(57, 194, 240, 0.12) !important;
    transition: background 0.6s ease;
}

@keyframes home-scroll-flash {
    0%   { background-color: rgba(57, 194, 240, 0.45); }
    100% { background-color: transparent; }
}

.home-compact-table tbody tr.scroll-flash > td,
.home-compact-table tbody.scroll-flash tr > td {
    animation: home-scroll-flash 0.6s ease-out 3;
}

.home-rdp-cell {
    position: relative;
}

.home-rdp-launch-link {
    position: absolute;
    top: 50%;
    right: 0.2rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: var(--panoptic-surface-strong);
    transform: translateY(-50%);
}

/* --- Back to top button --- */

.back-to-top {
    position: fixed;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--panoptic-primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    z-index: 1050;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.22);
    font-size: 1rem;
}

.back-to-top--visible {
    opacity: 0.45;
    pointer-events: auto;
}

.back-to-top:hover {
    opacity: 1;
    background: #42a5f5;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
}

.home-memory-bar {
    width: 4.5rem;
    height: 0.3rem;
    border-radius: 0.25rem;
}

.home-memory-pct {
    display: none;
    font-size: 0.78rem;
    white-space: nowrap;
}

.replication-group-status-badge {
    margin-right: 100px;
}

#replication-section .home-compact-table tbody tr:first-child > td {
    border-bottom: 0;
    padding-bottom: 0.2rem;
}

#replication-section .home-compact-table tbody:first-of-type tr:first-child > td {
    border-top: 1px solid var(--panoptic-border);
    padding-top: 0.3rem;
}

#replication-section .home-compact-table tbody + tbody tr:first-child > td {
    border-top: 1px solid var(--panoptic-border);
    padding-top: 0.3rem;
}

#replication-section .home-compact-table tbody:last-of-type tr:last-child > td {
    border-bottom: 1px solid var(--panoptic-border);
    padding-bottom: 0.45rem;
}

#replication-section .home-compact-table tbody tr:nth-child(2) > td {
    padding-bottom: 10px;
}

@media (min-width: 2000px) {
    .home-memory-pct {
        display: inline;
    }
}

@media (max-width: 1920px) {
    .data-panel:has(.home-compact-table) {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    .home-compact-table {
        --bs-table-cell-padding-x: 0.2rem;
    }
    #server-health-section th:last-child,
    #server-health-section td:last-child {
        max-width: 63px;
        overflow: hidden;
    }
}

@media (max-width: 1800px) {
    .home-page-header .status-pill .badge {
        display: none;
    }

    .home-compact-table .entity-link {
        display: inline-block;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: bottom;
    }

    #vm-fleet-section .entity-link {
        max-width: 200px;
    }

    #vm-fleet-section th .table-sortable-col {
        max-width: 200px;
    }

    #replication-section .entity-link {
        display: inline;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        vertical-align: baseline;
    }

    #replication-section .text-muted {
        display: inline;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        vertical-align: baseline;
    }

    .home-compact-table .text-muted {
        display: inline-block;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: bottom;
    }

    .home-compact-table th .table-sortable-col {
        display: inline-block;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: bottom;
    }

    #server-health-section th {
        max-width: 100px;
        overflow: hidden;
        text-overflow: clip;
        white-space: nowrap;
    }

    #server-health-section th .table-sortable-col {
        max-width: 100px;
        text-overflow: clip;
    }
}

/* --- Home page typography utilities --- */

.home-issue-count-badge {
    font-size: 1rem;
    padding: 0.45rem 0.7rem;
}

.home-table-empty-message {
    font-size: 0.88rem;
}

.home-vm-host-cell {
    font-size: 0.83rem;
}

.home-cell-muted {
    font-size: 0.8rem;
}

.home-site-description {
    font-size: 0.78rem;
}

/* --- Replication topology (compact inline) --- */

.replication-topology-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    font-size: 0.865rem;
}

.replication-topology-vm {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.replication-topology-arrow {
    color: var(--panoptic-muted);
    font-size: 0.75rem;
}

@media (max-width: 767.98px) {
    .page-hero {
        flex-direction: column;
    }

    .page-hero__action {
        width: 100%;
        justify-content: center;
    }

    .empty-state-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ── Topology canvas ─────────────────────────────────────────── */

.topology-workspace {
    display: flex;
    gap: 0;
    border: 1px solid var(--panoptic-border);
    border-radius: 0.4rem;
    overflow: hidden;
    background: var(--panoptic-surface-strong);
    min-height: 560px;
    height: calc(100vh - 260px);
}

.topology-filter-sidebar {
    width: 180px;
    flex-shrink: 0;
    border-right: 1px solid var(--panoptic-border);
    overflow-y: auto;
}

.topology-filter-panel {
    padding: 0.85rem;
    font-size: 0.82rem;
}

.topology-filter-panel__section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--panoptic-muted);
    margin-bottom: 0.4rem;
}

.topology-canvas {
    flex: 1;
    min-width: 0;
}

.topology-node-detail-sidebar {
    width: 220px;
    flex-shrink: 0;
    border-left: 1px solid var(--panoptic-border);
    overflow-y: auto;
    padding: 0.85rem;
}

.topology-legend {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.topology-legend__item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
}

.topology-legend__dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.topology-legend__dot--site      { background: #0d6efd; }
.topology-legend__dot--network   { background: #198754; border-radius: 2px; }
.topology-legend__dot--server    { background: #495057; border-radius: 2px; }
.topology-legend__dot--hypervisor{ background: #fd7e14; }
.topology-legend__dot--switch    { background: #6f42c1; transform: rotate(45deg); border-radius: 1px; }
.topology-legend__dot--vm        { background: #0a9cba; }
.topology-legend__dot--router    { background: #e91e63; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); border-radius: 0; }

/* ── Topology node detail panel ─────────────────────────────── */

.topology-node-detail {
    background: var(--panoptic-surface-strong);
    border: 1px solid var(--panoptic-border);
    border-radius: 0.4rem;
    padding: 0.85rem 1rem;
}

.topology-node-detail__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}

.topology-node-detail__title {
    font-weight: 600;
    font-size: 1rem;
}

.topology-node-detail__sublabel {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.topology-node-detail__props {
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.topology-node-detail__props > div {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.topology-node-detail__props dt {
    font-weight: normal;
    color: var(--bs-secondary-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.topology-node-detail__props dd {
    text-align: right;
    word-break: break-all;
}

.topology-node-detail__kind-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
}

.topology-node-detail__kind-badge--site         { background: #0d6efd; }
.topology-node-detail__kind-badge--network      { background: #198754; }
.topology-node-detail__kind-badge--physicalserver { background: #495057; }
.topology-node-detail__kind-badge--hypervisor   { background: #fd7e14; }
.topology-node-detail__kind-badge--virtualswitch { background: #6f42c1; }
.topology-node-detail__kind-badge--virtualmachine { background: #0a9cba; }
.topology-node-detail__kind-badge--router        { background: #e91e63; }

.topology-node-detail__section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-secondary-color);
}

.topology-node-detail__tunnel-list {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.topology-node-detail__tunnel-item {
    font-size: 0.8rem;
    border-left: 2px solid #e91e63;
    padding-left: 0.5rem;
}

.topology-node-detail__tunnel-name {
    font-weight: 600;
}

.topology-node-detail__tunnel-network {
    color: #198754;
}

/* Identity layout */
.identity-layout {
    background: var(--panoptic-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.identity-container {
    width: 100%;
    max-width: 420px;
}

.manage-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.25rem;
    margin-bottom: 0;
}

.manage-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: var(--panoptic-muted);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
    position: relative;
    margin-bottom: -1px;
    z-index: 0;
}

.manage-tab:hover {
    background: var(--panoptic-surface);
    border-color: var(--panoptic-border);
    color: var(--panoptic-text);
}

.manage-tab.active {
    background: var(--panoptic-surface-strong);
    border-color: var(--panoptic-border);
    color: var(--panoptic-primary);
    z-index: 1;
}

.manage-tab__icon {
    font-size: 0.8rem;
    color: var(--panoptic-accent);
}

.manage-tab.active .manage-tab__icon {
    color: var(--panoptic-primary);
}

.manage-card {
    position: relative;
    z-index: 0;
    background: var(--panoptic-surface-strong);
    border: 1px solid var(--panoptic-border);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--panoptic-shadow);
}

.identity-card {
    background: var(--panoptic-surface-strong);
    border: 1px solid var(--panoptic-border);
    border-radius: 12px;
    box-shadow: var(--panoptic-shadow);
    overflow: hidden;
}

.identity-header {
    background: var(--panoptic-secondary);
    padding: 1.5rem 2rem;
    text-align: center;
    color: #fff;
}

.identity-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    filter: brightness(0) invert(1);
}

.identity-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.identity-subtitle {
    font-size: 0.8rem;
    opacity: 0.75;
    margin: 0.25rem 0 0;
}

.identity-body {
    padding: 2rem;
}

.identity-page-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

/* Nav logout item */
.nav-link--logout {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.admin-dashboard-card {
    border: 1px solid var(--panoptic-border);
    background: var(--panoptic-surface);
    color: var(--panoptic-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.admin-dashboard-card:hover {
    border-color: var(--panoptic-primary);
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.12);
    color: var(--panoptic-text);
}

.nav-link--logout:hover {
    color: #fff;
}

/* ── Main layout structure (shared between Blazor MainLayout and Razor Page _ManageLayout) ── */

.page {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.workspace {
    flex: 1;
    min-width: 0;
}

.workspace-bar {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.2rem;
}

.workspace-title-group {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    min-width: 0;
}

.workspace-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    color: #475569;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.workspace-sidebar-toggle:hover {
    background: #eff6ff;
    border-color: rgba(147, 197, 253, 0.95);
    color: #0f172a;
}

.workspace-sidebar-toggle--active {
    background: #dbeafe;
    border-color: rgba(96, 165, 250, 0.95);
    color: #1d4ed8;
}

.sidebar {
    background:
        radial-gradient(circle at top, rgba(57, 194, 240, 0.16), transparent 42%),
        linear-gradient(180deg, #0b1220 0%, #0f172a 52%, #060a14 100%);
    border-right: 1px solid rgba(31, 41, 55, 0.96);
}

.top-row {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 5rem;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(203, 213, 225, 0.9);
}

.workspace-bar__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1e88e5;
}

.workspace-bar__title {
    font-family: "Bahnschrift", "Arial Narrow", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #0f172a;
}

.workspace-bar__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.2rem;
    font-size: 0.8rem;
    color: #475569;
}

.workspace-bar__breadcrumb-link {
    color: #1b4f8c;
    font-weight: 600;
    text-decoration: none;
}

.workspace-bar__breadcrumb-link:hover {
    color: #0f172a;
    text-decoration: underline;
}

.workspace-bar__breadcrumb-current {
    color: #475569;
    font-weight: 600;
}

.workspace-bar__breadcrumb-separator {
    color: #94a3b8;
}

.workspace-bar__batch-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
}

.workspace-bar__batch-status--active {
    gap: 0.45rem;
    font-family: "Bahnschrift", "Arial Narrow", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
}

.workspace-bar__batch-status__icon {
    font-size: 0.82rem;
}

.workspace-bar__status-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-left: auto;
}

.workspace-bar__issue-pill {
    flex-shrink: 0;
}

.workspace-bar__issue-pill:is(a),
.workspace-bar__issue-pill:is(a):hover,
.workspace-bar__issue-pill:is(a):focus {
    color: #0f172a;
}

.content {
    padding: 1.5rem;
}

@media (max-width: 640.98px) {
    .top-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .workspace-title-group {
        width: 100%;
    }

    .workspace-bar__status-row {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        position: sticky;
        top: 0;
        width: 285px;
        height: 100vh;
        z-index: 15;
        transition: width 0.22s ease;
    }

    .sidebar--hidden {
        width: 0;
        overflow: hidden;
        border-right-width: 0;
    }

    .sidebar--compact {
        width: 5.5rem;
        overflow-x: hidden;
    }

    .sidebar--compact .sidebar-brand {
        justify-content: center;
        padding-right: 0;
    }

    .sidebar--compact .sidebar-brand > span,
    .sidebar--compact .nav-section-label,
    .sidebar--compact .global-search,
    .sidebar--compact .global-search__results,
    .sidebar--compact .global-search__backdrop {
        display: none;
    }

    .sidebar--compact .sidebar-header {
        padding: 1.15rem 0.55rem 1rem;
    }

    .sidebar--compact .sidebar-header-actions {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 0.75rem;
    }

    .sidebar--compact .nav-scrollable {
        padding: 0 0.35rem 1rem;
    }

    .sidebar--compact .nav-runtime-update-alert {
        align-items: center !important;
        gap: 0 !important;
        margin: 0.75rem auto 0.25rem !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .sidebar--compact .nav-runtime-update-alert__message,
    .sidebar--compact .nav-runtime-update-alert__action span {
        display: none !important;
    }

    .sidebar--compact .nav-runtime-update-alert__action {
        align-self: center !important;
        justify-content: center !important;
        width: 2.4rem !important;
        height: 2.4rem !important;
        padding: 0 !important;
    }

    .sidebar--compact .nav-item {
        padding-bottom: 0.45rem;
    }

    .sidebar--compact .nav-item .nav-link {
        justify-content: center;
        gap: 0;
        min-height: 3rem;
        padding-inline: 0.5rem;
    }

    .sidebar--compact .nav-item .nav-link span {
        display: none;
    }

    .sidebar--compact .nav-icon {
        width: auto;
        font-size: 1.1rem;
    }

    .workspace-sidebar-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .content {
        padding: 2rem;
    }
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fff7ed;
    border-top: 1px solid rgba(249, 115, 22, 0.3);
    bottom: 0;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.12);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.8rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

#blazor-error-ui .reload {
    color: #9a3412;
    font-weight: 700;
    margin-left: 0.5rem;
    text-decoration: none;
}

#blazor-error-ui .reload:hover {
    text-decoration: underline;
}

/* Chassis card styles live in chassis-card.css */

