/* /Components/Dashboard/SystemDetailDialog.razor.rz.scp.css */
/* Self-contained styles for the health target detail dialog.
   RadzenDialog renders its content outside the .dashboard-page DOM subtree,
   so this file intentionally does not rely on CSS variables declared in Dashboard.razor.css —
   the pastel palette values are duplicated here to keep the dialog visually consistent. */

.detail-dialog[b-ocyvzxw4eg] {
    display: flex;
    flex-direction: column;
    font-family: inherit;
    color: #0f172a;
    max-height: 78vh;
}

/* Header */
.detail-header[b-ocyvzxw4eg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.4rem;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #0B1F4D 0%, #1E3A8A 100%);
    color: #ffffff;
}

.detail-header-main[b-ocyvzxw4eg] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.detail-header-icon[b-ocyvzxw4eg] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
}

    .detail-header-icon[b-ocyvzxw4eg]  .rz-icon {
        font-size: 1.4rem;
    }

.detail-header-text[b-ocyvzxw4eg] {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.detail-header-title[b-ocyvzxw4eg] {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-header-group[b-ocyvzxw4eg] {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
}

.detail-header-side[b-ocyvzxw4eg] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
}

.detail-header-updated[b-ocyvzxw4eg] {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.72);
}

/* Body */
.detail-body[b-ocyvzxw4eg] {
    padding: 1rem 1.4rem 0.25rem;
    overflow-y: auto;
    background: #ffffff;
}

.detail-section[b-ocyvzxw4eg] {
    margin-bottom: 1rem;
}

.detail-section-title[b-ocyvzxw4eg] {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

/* Summary metric cards */
.detail-metric-grid[b-ocyvzxw4eg] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.detail-metric-card[b-ocyvzxw4eg] {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: #F8FAFC;
    border: 1px solid #E3E8F0;
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
}

.detail-metric-label[b-ocyvzxw4eg] {
    font-size: 0.64rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-metric-value[b-ocyvzxw4eg] {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
}

/* Endpoint cards */
.detail-endpoint-grid[b-ocyvzxw4eg] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.detail-endpoint-card[b-ocyvzxw4eg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
    border: 1px solid #E3E8F0;
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
}

.detail-endpoint-label[b-ocyvzxw4eg] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
}

/* Component table */
.detail-component-table[b-ocyvzxw4eg] {
    display: flex;
    flex-direction: column;
    border: 1px solid #E3E8F0;
    border-radius: 10px;
    overflow: hidden;
}

.detail-component-row[b-ocyvzxw4eg] {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr 0.7fr 0.8fr 1.6fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0.7rem;
    font-size: 0.78rem;
    color: #334155;
    border-bottom: 1px solid #EEF2F7;
}

    .detail-component-row:last-child[b-ocyvzxw4eg] {
        border-bottom: none;
    }

.detail-component-head[b-ocyvzxw4eg] {
    background: #F1F5F9;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
}

.detail-component-name[b-ocyvzxw4eg] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: #0f172a;
}

.detail-component-muted[b-ocyvzxw4eg] {
    color: #64748b;
}

.detail-empty-state[b-ocyvzxw4eg] {
    margin: 0;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: 10px;
}

/* Message */
.detail-message[b-ocyvzxw4eg] {
    margin: 0;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    font-size: 0.82rem;
    background: #F8FAFC;
    border: 1px solid #E3E8F0;
    color: #334155;
}

.message-healthy[b-ocyvzxw4eg] {
    background: #DCFCE7;
    color: #15803D;
    border-color: #86EFAC;
}

.message-degraded[b-ocyvzxw4eg] {
    background: #FEF3C7;
    color: #B45309;
    border-color: #FCD34D;
}

.message-unhealthy[b-ocyvzxw4eg] {
    background: #FEE2E2;
    color: #B91C1C;
    border-color: #FCA5A5;
}

.message-unknown[b-ocyvzxw4eg] {
    background: #E2E8F0;
    color: #475569;
    border-color: #CBD5E1;
}

/* Footer */
.detail-footer[b-ocyvzxw4eg] {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 1.4rem 1rem;
    border-top: 1px solid #E3E8F0;
    background: #ffffff;
}

/* Status badges (self-contained — do not rely on Dashboard.razor.css ::deep rules,
   since this dialog renders outside the .dashboard-page DOM subtree) */
[b-ocyvzxw4eg] .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
}

[b-ocyvzxw4eg] .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

[b-ocyvzxw4eg] .status-healthy {
    background: #DCFCE7;
    color: #15803D;
    border-color: #86EFAC;
}

[b-ocyvzxw4eg] .status-degraded {
    background: #FEF3C7;
    color: #B45309;
    border-color: #FCD34D;
}

[b-ocyvzxw4eg] .status-unhealthy {
    background: #FEE2E2;
    color: #B91C1C;
    border-color: #FCA5A5;
}

[b-ocyvzxw4eg] .status-unknown {
    background: #E2E8F0;
    color: #475569;
    border-color: #CBD5E1;
}

[b-ocyvzxw4eg] .status-info {
    background: #DBEAFE;
    color: #1D4ED8;
    border-color: #93C5FD;
}

/* Semantic icon colors */
[b-ocyvzxw4eg] .status-icon-healthy {
    color: #15803D;
}

[b-ocyvzxw4eg] .status-icon-degraded {
    color: #B45309;
}

[b-ocyvzxw4eg] .status-icon-unhealthy {
    color: #B91C1C;
}

[b-ocyvzxw4eg] .status-icon-unknown {
    color: #475569;
}

[b-ocyvzxw4eg] .status-icon-info {
    color: #1D4ED8;
}

/* Header icon should stay white regardless of semantic color, for contrast against the navy gradient */
.detail-header-icon[b-ocyvzxw4eg]  .status-icon {
    color: #ffffff;
}

@media (max-width: 720px) {
    .detail-metric-grid[b-ocyvzxw4eg],
    .detail-endpoint-grid[b-ocyvzxw4eg] {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-component-row[b-ocyvzxw4eg] {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-zqpzcan2sl] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-zqpzcan2sl] {
    flex: 1;
}

.sidebar[b-zqpzcan2sl] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-zqpzcan2sl] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-zqpzcan2sl]  a, .top-row[b-zqpzcan2sl]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-zqpzcan2sl]  a:hover, .top-row[b-zqpzcan2sl]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-zqpzcan2sl]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-zqpzcan2sl] {
        justify-content: space-between;
    }

    .top-row[b-zqpzcan2sl]  a, .top-row[b-zqpzcan2sl]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-zqpzcan2sl] {
        flex-direction: row;
    }

    .sidebar[b-zqpzcan2sl] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-zqpzcan2sl] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-zqpzcan2sl]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-zqpzcan2sl], article[b-zqpzcan2sl] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-zqpzcan2sl] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-zqpzcan2sl] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-gt2rfiwcur],
.components-reconnect-repeated-attempt-visible[b-gt2rfiwcur],
.components-reconnect-failed-visible[b-gt2rfiwcur],
.components-pause-visible[b-gt2rfiwcur],
.components-resume-failed-visible[b-gt2rfiwcur],
.components-rejoining-animation[b-gt2rfiwcur] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-gt2rfiwcur],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-gt2rfiwcur],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-gt2rfiwcur],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-gt2rfiwcur],
#components-reconnect-modal.components-reconnect-retrying[b-gt2rfiwcur],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-gt2rfiwcur],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-gt2rfiwcur],
#components-reconnect-modal.components-reconnect-failed[b-gt2rfiwcur],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-gt2rfiwcur] {
    display: block;
}


#components-reconnect-modal[b-gt2rfiwcur] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-gt2rfiwcur 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-gt2rfiwcur 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-gt2rfiwcur 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-gt2rfiwcur]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-gt2rfiwcur 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-gt2rfiwcur {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-gt2rfiwcur {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-gt2rfiwcur {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-gt2rfiwcur] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-gt2rfiwcur] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-gt2rfiwcur] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-gt2rfiwcur] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-gt2rfiwcur] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-gt2rfiwcur] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-gt2rfiwcur] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-gt2rfiwcur 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-gt2rfiwcur] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-gt2rfiwcur {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Dashboard.razor.rz.scp.css */
.dashboard-page[b-t0fipdql7y] {
    /* Base */
    --page-bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --border-soft: #E3E8F0;
    --text-main: #0F172A;
    --text-muted: #64748B;

    /* Header */
    --navy: #0B1F4D;
    --deep-blue: #1E3A8A;

    /* Pastel status colors */
    --healthy-bg: #DCFCE7;
    --healthy-text: #15803D;
    --healthy-border: #86EFAC;

    --degraded-bg: #FEF3C7;
    --degraded-text: #B45309;
    --degraded-border: #FCD34D;

    --unhealthy-bg: #FEE2E2;
    --unhealthy-text: #B91C1C;
    --unhealthy-border: #FCA5A5;

    --unknown-bg: #E2E8F0;
    --unknown-text: #475569;
    --unknown-border: #CBD5E1;

    --info-bg: #DBEAFE;
    --info-text: #1D4ED8;
    --info-border: #93C5FD;

    /* Pastel accents */
    --accent-blue: #BFDBFE;
    --accent-purple: #E9D5FF;
    --accent-cyan: #CFFAFE;
    --accent-pink: #FBCFE8;
    --accent-orange: #FED7AA;
    --accent-green: #BBF7D0;

    /* Section tinted backgrounds */
    --section-applications-bg: #EFF6FF;
    --section-integration-bg: #F5F3FF;
    --section-incidents-bg: #FFF1F2;
    --section-chart-bg: #ECFEFF;
    --section-metrics-bg: #FFFBEB;

    background: linear-gradient(180deg, #F8FAFC 0%, #EEF4FF 100%);
    padding: 0.85rem 1.5rem 1.25rem;
    min-height: 100vh;
    color: var(--text-main);
    font-size: 0.94rem;
}

/* ============ Header ============ */

.dashboard-header[b-t0fipdql7y] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 100%);
    color: #fff;
    border-radius: 14px;
    padding: 0.7rem 1.5rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 10px 22px rgba(11, 31, 77, 0.24);
}

.dashboard-header-title[b-t0fipdql7y] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-header-icon[b-t0fipdql7y] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.16);
}

.dashboard-header-title .main-logo[b-t0fipdql7y] {
    max-width: none;
    width: 80px;
    height: auto;
    margin-bottom: 0;
}

    .dashboard-header-title h1[b-t0fipdql7y] {
        font-size: 1.25rem;
        font-weight: 700;
        margin: 0;
        color: #fff;
        letter-spacing: 0.01em;
    }

.env-badge[b-t0fipdql7y] {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-header-status[b-t0fipdql7y] {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.last-updated[b-t0fipdql7y] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.85;
}

.auto-refresh-indicator[b-t0fipdql7y] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.85;
}

.pulse-dot[b-t0fipdql7y] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 0 rgba(187, 247, 208, 0.6);
    animation: pulse-b-t0fipdql7y 2s infinite;
}

.dashboard-error-banner[b-t0fipdql7y] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    background: var(--unhealthy-bg, #FEE2E2);
    color: var(--unhealthy-text, #B91C1C);
    border: 1px solid var(--unhealthy-border, #FCA5A5);
    font-size: 0.85rem;
}

.dashboard-loading-footer[b-t0fipdql7y] {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translate(-50%, 12px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    background: var(--info-bg, #DBEAFE);
    color: var(--info-text, #1D4ED8);
    border: 1px solid var(--info-border, #93C5FD);
    font-size: 0.8rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
}

.dashboard-loading-footer.is-visible[b-t0fipdql7y] {
    opacity: 1;
    transform: translate(-50%, 0);
}


@keyframes pulse-b-t0fipdql7y {
    0% {
        box-shadow: 0 0 0 0 rgba(187, 247, 208, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(187, 247, 208, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(187, 247, 208, 0);
    }
}

/* ============ Summary cards ============ */

.summary-grid[b-t0fipdql7y] {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 1600px) {
    .summary-grid[b-t0fipdql7y] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .summary-grid[b-t0fipdql7y] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .summary-grid[b-t0fipdql7y] {
        grid-template-columns: 1fr;
    }
}

[b-t0fipdql7y] .summary-card {
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    border-top: 3px solid var(--unknown-border);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
    padding: 0.65rem 0.85rem;
    background: linear-gradient(160deg, #FFFFFF 0%, #FAFBFF 100%);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

    [b-t0fipdql7y] .summary-card:hover {
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
        transform: translateY(-2px);
    }

    [b-t0fipdql7y] .summary-card.summary-card-healthy {
        border-top-color: var(--healthy-border);
        background: linear-gradient(160deg, #FFFFFF 0%, #F2FDF6 100%);
    }

    [b-t0fipdql7y] .summary-card.summary-card-degraded {
        border-top-color: var(--degraded-border);
        background: linear-gradient(160deg, #FFFFFF 0%, #FFFBEE 100%);
    }

    [b-t0fipdql7y] .summary-card.summary-card-unhealthy {
        border-top-color: var(--unhealthy-border);
        background: linear-gradient(160deg, #FFFFFF 0%, #FFF5F5 100%);
    }

    [b-t0fipdql7y] .summary-card.summary-card-unknown {
        border-top-color: var(--unknown-border);
    }

[b-t0fipdql7y] .summary-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
}

[b-t0fipdql7y] .summary-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.03);
}

    [b-t0fipdql7y] .summary-icon-wrap.icon-healthy {
        background: linear-gradient(135deg, var(--healthy-bg) 0%, var(--accent-green) 100%);
        color: var(--healthy-text);
    }

    [b-t0fipdql7y] .summary-icon-wrap.icon-degraded {
        background: linear-gradient(135deg, var(--degraded-bg) 0%, var(--accent-orange) 100%);
        color: var(--degraded-text);
    }

    [b-t0fipdql7y] .summary-icon-wrap.icon-unhealthy {
        background: linear-gradient(135deg, var(--unhealthy-bg) 0%, var(--accent-pink) 100%);
        color: var(--unhealthy-text);
    }

    [b-t0fipdql7y] .summary-icon-wrap.icon-unknown {
        background: linear-gradient(135deg, var(--unknown-bg) 0%, var(--accent-blue) 100%);
        color: var(--unknown-text);
    }

[b-t0fipdql7y] .summary-card-title {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[b-t0fipdql7y] .summary-card-value {
    margin-bottom: 0.2rem;
}

    [b-t0fipdql7y] .summary-card-value .status-badge {
        font-size: 0.86rem;
        padding: 0.3rem 0.75rem;
        font-weight: 800;
    }

[b-t0fipdql7y] .summary-card-subtext {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ============ Main status grid (Applications + System Integration) ============ */

.main-status-grid[b-t0fipdql7y] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: stretch;
    margin-bottom: 0.85rem;
}

@media (max-width: 1200px) {
    .main-status-grid[b-t0fipdql7y] {
        grid-template-columns: 1fr;
    }
}

.dashboard-section[b-t0fipdql7y] {
    min-height: 0;
}

/* ============ Section cards ============ */

.section-card[b-t0fipdql7y] {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 0.75rem 1rem 0.85rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    border-top: 3px solid var(--border-soft);
}

.section-card.dashboard-section[b-t0fipdql7y] {
    margin-bottom: 0;
    height: 100%;
}

    .section-card.accent-blue[b-t0fipdql7y] {
        background: linear-gradient(180deg, var(--section-applications-bg) 0%, var(--card-bg) 140px);
        border-top-color: var(--accent-blue);
    }

    .section-card.accent-purple[b-t0fipdql7y] {
        background: linear-gradient(180deg, var(--section-integration-bg) 0%, var(--card-bg) 140px);
        border-top-color: var(--accent-purple);
    }

.section-card-header[b-t0fipdql7y] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    gap: 0.75rem;
}

.section-title-group[b-t0fipdql7y] {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.section-status-dot[b-t0fipdql7y] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.4rem;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.04);
}

    .section-status-dot.healthy[b-t0fipdql7y] {
        background: var(--healthy-text);
    }

    .section-status-dot.degraded[b-t0fipdql7y] {
        background: var(--degraded-text);
    }

    .section-status-dot.unhealthy[b-t0fipdql7y] {
        background: var(--unhealthy-text);
    }

    .section-status-dot.unknown[b-t0fipdql7y] {
        background: var(--unknown-text);
    }

.section-title[b-t0fipdql7y] {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.section-description[b-t0fipdql7y] {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0.1rem 0 0;
}

.section-summary-count[b-t0fipdql7y] {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--deep-blue);
    background: rgba(30, 58, 138, 0.08);
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.section-view-all[b-t0fipdql7y] {
    font-size: 0.82rem;
    color: var(--deep-blue);
    text-decoration: none;
    font-weight: 600;
}

    .section-view-all:hover[b-t0fipdql7y] {
        text-decoration: underline;
    }

/* ============ System cards ============ */

.system-grid[b-t0fipdql7y] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}

.system-grid-si[b-t0fipdql7y] {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1500px) {
    .system-grid-si[b-t0fipdql7y] {
        grid-template-columns: 1fr;
    }
}

[b-t0fipdql7y] .system-card {
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
    padding: 0.7rem 0.85rem 0.7rem 1rem;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    min-height: 190px;
}

    [b-t0fipdql7y] .system-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.65rem;
        bottom: 0.65rem;
        width: 4px;
        border-radius: 4px;
        background: var(--unknown-border);
    }

    [b-t0fipdql7y] .system-card.system-card-healthy::before {
        background: var(--healthy-text);
        box-shadow: 0 0 10px rgba(21, 128, 61, 0.35);
    }

    [b-t0fipdql7y] .system-card.system-card-degraded::before {
        background: var(--degraded-text);
        box-shadow: 0 0 10px rgba(180, 83, 9, 0.3);
    }

    [b-t0fipdql7y] .system-card.system-card-unhealthy::before {
        background: var(--unhealthy-text);
        box-shadow: 0 0 10px rgba(185, 28, 28, 0.35);
    }

    [b-t0fipdql7y] .system-card.system-card-unknown::before {
        background: var(--unknown-text);
    }

[b-t0fipdql7y] .system-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--border-soft);
}

[b-t0fipdql7y] .system-card-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 0.86rem;
    color: #0f172a;
}

[b-t0fipdql7y] .status-icon {
    vertical-align: middle;
}

[b-t0fipdql7y] .status-icon-healthy {
    color: var(--healthy-text);
}

[b-t0fipdql7y] .status-icon-degraded {
    color: var(--degraded-text);
}

[b-t0fipdql7y] .status-icon-unhealthy {
    color: var(--unhealthy-text);
}

[b-t0fipdql7y] .status-icon-unknown {
    color: var(--unknown-text);
}

[b-t0fipdql7y] .status-icon-critical {
    color: var(--unhealthy-text);
}

[b-t0fipdql7y] .status-icon-warning {
    color: var(--degraded-text);
}

[b-t0fipdql7y] .status-icon-info {
    color: var(--info-text);
}

[b-t0fipdql7y] .system-card-body {
    display: flex;
    flex-direction: column;
}

[b-t0fipdql7y] .metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.22rem 0;
    font-size: 0.82rem;
    color: #334155;
    border-bottom: 1px dashed var(--border-soft);
}

    [b-t0fipdql7y] .metric-row:last-of-type {
        border-bottom: none;
    }

[b-t0fipdql7y] .metric-label {
    color: var(--text-muted);
}

[b-t0fipdql7y] .metric-value {
    font-weight: 600;
    color: #0f172a;
}

[b-t0fipdql7y] .metric-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 0.5rem 0 0;
}

[b-t0fipdql7y] .metric-block {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    background: var(--page-bg);
    border: 1px solid var(--border-soft);
    border-radius: 9px;
    padding: 0.4rem 0.55rem;
}

[b-t0fipdql7y] .metric-block-label {
    font-size: 0.64rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

[b-t0fipdql7y] .metric-block-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

[b-t0fipdql7y] .system-card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.5rem 0 0;
    padding: 0.4rem 0.5rem 0.4rem 0.6rem;
    border-radius: 9px;
    border-top: 1px solid var(--border-soft);
}

    [b-t0fipdql7y] .system-card-footer-row.message-healthy {
        background: var(--healthy-bg);
    }

    [b-t0fipdql7y] .system-card-footer-row.message-degraded {
        background: var(--degraded-bg);
    }

    [b-t0fipdql7y] .system-card-footer-row.message-unhealthy {
        background: var(--unhealthy-bg);
    }

    [b-t0fipdql7y] .system-card-footer-row.message-unknown {
        background: var(--unknown-bg);
    }

[b-t0fipdql7y] .system-card-message {
    font-size: 0.76rem;
    color: #334155;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[b-t0fipdql7y] .system-card-footer-row .rz-button {
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--info-bg);
    color: var(--info-text);
    border: 1px solid var(--info-border);
    font-weight: 600;
}

    [b-t0fipdql7y] .system-card-footer-row .rz-button:hover {
        background: var(--accent-blue);
    }

/* ============ Bottom widgets ============ */

.widget-grid[b-t0fipdql7y] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 1100px) {
    .widget-grid[b-t0fipdql7y] {
        grid-template-columns: 1fr;
    }
}

[b-t0fipdql7y] .widget-card {
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    border-top: 3px solid var(--border-soft);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    padding: 0.75rem 0.9rem;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    height: 450px;
    overflow: hidden;
}

    [b-t0fipdql7y] .widget-card.accent-pink {
        background: linear-gradient(180deg, var(--section-incidents-bg) 0%, var(--card-bg) 120px);
        border-top-color: var(--accent-pink);
    }

    [b-t0fipdql7y] .widget-card.accent-cyan {
        background: linear-gradient(180deg, var(--section-chart-bg) 0%, var(--card-bg) 120px);
        border-top-color: var(--accent-cyan);
    }

    [b-t0fipdql7y] .widget-card.accent-amber {
        background: linear-gradient(180deg, var(--section-metrics-bg) 0%, var(--card-bg) 120px);
        border-top-color: var(--degraded-border);
    }

.widget-card-header[b-t0fipdql7y] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
    flex-shrink: 0;
}

.widget-title[b-t0fipdql7y] {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.widget-subtext[b-t0fipdql7y] {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: -0.15rem 0 0.55rem;
    flex-shrink: 0;
}

[b-t0fipdql7y] .widget-card .rz-data-grid {
    border-radius: 10px;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

[b-t0fipdql7y] .widget-card .rz-grid-table thead th {
    background: var(--info-bg);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

[b-t0fipdql7y] .widget-card .rz-grid-table tbody td {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    font-size: 0.8rem;
}

[b-t0fipdql7y] .widget-card .rz-data-grid .rz-data-grid-data {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

[b-t0fipdql7y] .widget-card .rz-chart {
    flex: 1 1 auto;
    min-height: 0;
}

/* ============ Status / severity badges ============ */

[b-t0fipdql7y] .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.24rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}

[b-t0fipdql7y] .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

[b-t0fipdql7y] .status-healthy {
    background: var(--healthy-bg);
    color: var(--healthy-text);
    border-color: var(--healthy-border);
}

    [b-t0fipdql7y] .status-healthy .status-dot {
        background: var(--healthy-text);
    }

[b-t0fipdql7y] .status-degraded {
    background: var(--degraded-bg);
    color: var(--degraded-text);
    border-color: var(--degraded-border);
}

    [b-t0fipdql7y] .status-degraded .status-dot {
        background: var(--degraded-text);
    }

[b-t0fipdql7y] .status-unhealthy {
    background: var(--unhealthy-bg);
    color: var(--unhealthy-text);
    border-color: var(--unhealthy-border);
}

    [b-t0fipdql7y] .status-unhealthy .status-dot {
        background: var(--unhealthy-text);
    }

[b-t0fipdql7y] .status-unknown {
    background: var(--unknown-bg);
    color: var(--unknown-text);
    border-color: var(--unknown-border);
}

    [b-t0fipdql7y] .status-unknown .status-dot {
        background: var(--unknown-text);
    }

[b-t0fipdql7y] .status-info {
    background: var(--info-bg);
    color: var(--info-text);
    border-color: var(--info-border);
}

    [b-t0fipdql7y] .status-info .status-dot {
        background: var(--info-text);
    }

[b-t0fipdql7y] .status-critical {
    background: var(--unhealthy-bg);
    color: var(--unhealthy-text);
    border-color: var(--unhealthy-border);
}

    [b-t0fipdql7y] .status-critical .status-dot {
        background: var(--unhealthy-text);
    }

[b-t0fipdql7y] .status-warning {
    background: var(--degraded-bg);
    color: var(--degraded-text);
    border-color: var(--degraded-border);
}

    [b-t0fipdql7y] .status-warning .status-dot {
        background: var(--degraded-text);
    }

/* ============ Dialog (System Detail) ============ */

[b-t0fipdql7y] .system-detail-dialog {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

[b-t0fipdql7y] .system-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0;
    font-size: 0.88rem;
    border-bottom: 1px dashed var(--border-soft);
}

[b-t0fipdql7y] .system-detail-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}
