/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ── Site shell ─────────────────────────────────── */
.site-wrapper[b-p64isvoi8f] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Top header ─────────────────────────────────── */
.site-header[b-p64isvoi8f] {
    background-color: #0d2344;
    border-bottom: 3px solid #c0392b;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-inner[b-p64isvoi8f] {
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* ── Sidebar toggle ─────────────────────────────── */
.sidebar-toggle-cb[b-p64isvoi8f] { display: none; }

.sidebar-toggle-btn[b-p64isvoi8f] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, border-color 0.15s;
}

.sidebar-toggle-btn:hover[b-p64isvoi8f] {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.5);
}

/* When checked, collapse the sidebar */
.sidebar-toggle-cb:checked ~ .site-body .sidebar[b-p64isvoi8f] {
    width: 0;
    min-width: 0;
    border-right: 0;
    overflow: hidden;
}

.site-brand[b-p64isvoi8f] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.site-logo[b-p64isvoi8f] {
    width: 200px;   /* matches the sidebar width */
    height: auto;
}

.site-title[b-p64isvoi8f] {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ── Header rows (after the logo) ───────────────── */
.header-rows[b-p64isvoi8f] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.header-row-top[b-p64isvoi8f] {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 70%;
    min-width: fit-content;
}

.header-row-bottom[b-p64isvoi8f] {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 0.4rem;
    padding-top: 0.35rem;
}

.header-stats[b-p64isvoi8f] {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.header-stat[b-p64isvoi8f] {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    white-space: nowrap;
}

.header-stat-label[b-p64isvoi8f] {
    color: rgba(255,255,255,0.55);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.header-stat-value[b-p64isvoi8f] {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
}

.header-stat-divider[b-p64isvoi8f] {
    width: 1px;
    height: 1rem;
    background: rgba(255,255,255,0.2);
}

.stat-up[b-p64isvoi8f]   { color: #2ecc71; font-size: 0.6rem; }
.stat-down[b-p64isvoi8f] { color: #e74c3c; font-size: 0.6rem; }

/* ── Header horizontal menu ─────────────────────── */
.header-nav[b-p64isvoi8f] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 1.5rem;
}

.header-nav-item[b-p64isvoi8f] {
    position: relative;
}

.header-nav-link[b-p64isvoi8f] {
    display: inline-block;
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.header-nav-item:hover .header-nav-link[b-p64isvoi8f] {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

.header-nav-caret[b-p64isvoi8f] {
    font-size: 0.65rem;
    opacity: 0.7;
}

.header-dropdown[b-p64isvoi8f] {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-top: 3px solid #c0392b;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    padding: 0.35rem 0;
    z-index: 200;
}

.header-nav-item:hover .header-dropdown[b-p64isvoi8f] {
    display: block;
}

.header-dropdown a[b-p64isvoi8f] {
    display: block;
    padding: 0.45rem 1rem;
    color: #0d2344;
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
}

.header-dropdown a:hover[b-p64isvoi8f] {
    background: #f0f2f5;
    color: #c0392b;
}

/* ── Header user area ───────────────────────────── */
.header-user-area[b-p64isvoi8f] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-username[b-p64isvoi8f] {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    text-decoration: none;
}

.header-username:hover[b-p64isvoi8f] {
    color: #ffffff;
    text-decoration: underline;
}

.btn-signout[b-p64isvoi8f] {
    color: rgba(255,255,255,0.85);
    font-size: 0.8125rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

.btn-signout:hover[b-p64isvoi8f] {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    color: #ffffff;
}

/* ── Body row (sidebar + content) ───────────────── */
.site-body[b-p64isvoi8f] {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ── Sidebar ────────────────────────────────────── */
.sidebar[b-p64isvoi8f] {
    width: 200px;
    flex-shrink: 0;
    background-color: #0d2344;
    height: 100%;
    position: sticky;
    top: 0;
    overflow-y: auto;
    align-self: flex-start;
    max-height: 100vh;
    transition: width 0.2s ease;
}

/* ── Main content ───────────────────────────────── */
.main-content[b-p64isvoi8f] {
    flex: 1;
    overflow-y: auto;
    background-color: #f0f2f5;
    padding: 1.25rem 1.5rem;
    min-width: 0;
}

/* ── Blazor error bar ───────────────────────────── */
#blazor-error-ui[b-p64isvoi8f] {
    color-scheme: light only;
    background: #c0392b;
    color: white;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.3);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-p64isvoi8f] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ── Sidebar backdrop (mobile drawer) ───────────── */
.sidebar-backdrop[b-p64isvoi8f] { display: none; }

/* ═══════════════ Tablet ≤ 1024px ═══════════════ */
@media (max-width: 1024px) {
    /* Secondary header info hidden to save room */
    .header-row-bottom[b-p64isvoi8f] { display: none; }          /* market stats strip */
    .header-nav[b-p64isvoi8f]        { display: none; }           /* Business Intelligence / About */
    .header-row-top[b-p64isvoi8f]    { width: 100%; }
    .header-username[b-p64isvoi8f]   { display: none; }           /* keep sign-out only */
    .site-logo[b-p64isvoi8f]         { width: 150px; }
}

/* ═══════════════ Mobile ≤ 820px ═══════════════ */
@media (max-width: 820px) {
    .site-header-inner[b-p64isvoi8f] { padding: 0 0.75rem; gap: 0.6rem; }
    .site-title[b-p64isvoi8f]        { display: none; }           /* keep the logo only */
    .site-logo[b-p64isvoi8f]         { width: 130px; }
    .main-content[b-p64isvoi8f]      { padding: 0.85rem 0.9rem; overflow-x: hidden; }

    /* Sidebar becomes an off-canvas drawer, hidden by default */
    .sidebar[b-p64isvoi8f] {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 300;
        width: 240px;
        min-width: 240px;
        max-height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: 2px 0 14px rgba(0,0,0,0.35);
    }

    /* Toggle slides the drawer in (overrides the desktop collapse rule) */
    .sidebar-toggle-cb:checked ~ .site-body .sidebar[b-p64isvoi8f] {
        width: 240px;
        min-width: 240px;
        border-right: 0;
        transform: translateX(0);
    }

    /* Dim backdrop behind the open drawer */
    .sidebar-toggle-cb:checked ~ .sidebar-backdrop[b-p64isvoi8f] {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 250;
        background: rgba(6, 20, 40, 0.5);
    }
}

/* ═══════════════ Small phones ≤ 480px ═══════════════ */
@media (max-width: 480px) {
    .site-header[b-p64isvoi8f] { padding: 0.4rem 0; }
    .site-logo[b-p64isvoi8f]   { width: 110px; }
    .btn-signout[b-p64isvoi8f] { padding: 0.2rem 0.55rem; font-size: 0.75rem; }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ── Nav items ──────────────────────────────────── */
.nav-item[b-nkfok38vdd] {
    font-size: 0.85rem;
    padding: 0;
}

.nav-item[b-nkfok38vdd]  .nav-link {
    color: #dde4ea;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}

.nav-item[b-nkfok38vdd]  a.active {
    background-color: rgba(255,255,255,0.08);
    border-left-color: #c0392b;
    color: #ffffff;
}

.nav-item[b-nkfok38vdd]  .nav-link:hover {
    background-color: rgba(255,255,255,0.06);
    color: #ffffff;
}

/* ── Section labels ─────────────────────────────── */
.nav-section-label[b-nkfok38vdd] {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5a7a99;
    padding: 0.4rem 1rem 0.2rem;
}

/* ── Icons ──────────────────────────────────────── */
.bi[b-nkfok38vdd] {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-nkfok38vdd] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-table-nav-menu[b-nkfok38vdd] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm15 2h-4v3h4V4zm0 4h-4v3h4V8zm0 4h-4v3h3a1 1 0 0 0 1-1v-2zm-5 3v-3H6v3h4zm-5 0v-3H1v2a1 1 0 0 0 1 1h3zm-4-4h4V8H1v3zm0-4h4V4H1v3zm5-3v3h4V4H6zm4 4H6v3h4V8z'/%3E%3C/svg%3E");
}

.bi-water-nav-menu[b-nkfok38vdd] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1 10.2h14l-2 3.7H3.2L1 10.6v-.4zm3.2 1a.7.7 0 1 0 0 1.4.7.7 0 0 0 0-1.4zm2.7 0a.7.7 0 1 0 0 1.4.7.7 0 0 0 0-1.4zm2.7 0a.7.7 0 1 0 0 1.4.7.7 0 0 0 0-1.4z'/%3E%3Cpath d='M2.3 6.2h1.2V4.6h1.4v1.6h1.3v3.2H2.3z'/%3E%3Cpath d='M8 9.4 8.9 2h.8l.9 7.4h-.9l-.14-1.3H9.14L9 9.4z'/%3E%3Cpath d='M9.9 2h4.7v.9h-1.1v1.7h-.9V2.9H9.9z'/%3E%3Cpath d='M10.9 7.1h3.3V8h-3.3zm0 1.3h3.3v1h-3.3z'/%3E%3C/svg%3E");
}

.bi-newspaper-nav-menu[b-nkfok38vdd] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M0 2.5A1.5 1.5 0 0 1 1.5 1h11A1.5 1.5 0 0 1 14 2.5v10.528c0 .3-.05.654-.238.972h.738a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 1 1 0v9a1.5 1.5 0 0 1-1.5 1.5H1.497A1.497 1.497 0 0 1 0 13.5v-11zM12 14c.37 0 .654-.211.853-.441.092-.106.147-.279.147-.531V2.5a.5.5 0 0 0-.5-.5h-11a.5.5 0 0 0-.5.5v11c0 .278.223.5.497.5H12z'/%3E%3Cpath d='M2 3h10v2H2V3zm0 3h4v3H2V6zm0 4h4v1H2v-1zm0 2h4v1H2v-1zm5-6h2v1H7V6zm3 0h2v1h-2V6zM7 8h2v1H7V8zm3 0h2v1h-2V8zm-3 2h2v1H7v-1zm3 0h2v1h-2v-1zm-3 2h2v1H7v-1zm3 0h2v1h-2v-1z'/%3E%3C/svg%3E");
}

/* ── FPS type submenu ───────────────────────────── */
.fps-nav-header[b-nkfok38vdd] {
    display: flex;
    align-items: stretch;
}

.fps-nav-header[b-nkfok38vdd]  .nav-link {
    flex: 1;
}

.fps-sub-toggle[b-nkfok38vdd] {
    background: none;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.08);
    color: #5a7a99;
    padding: 0 0.6rem;
    cursor: pointer;
    font-size: 0.65rem;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}

.fps-sub-toggle:hover[b-nkfok38vdd] {
    color: #ffffff;
    background: rgba(255,255,255,0.06);
}

.fps-sub-items[b-nkfok38vdd] {
    border-left: 2px solid rgba(192,57,43,0.4);
    margin-left: 1rem;
}

.fps-sub-header[b-nkfok38vdd] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #93b0cc;
    padding: 0.5rem 0.75rem 0.15rem 1rem;
    cursor: pointer;
    user-select: none;
}

.fps-sub-header:hover[b-nkfok38vdd] {
    color: #ffffff;
}

.fps-sub-header-toggle[b-nkfok38vdd] {
    font-size: 0.55rem;
}

.fps-sub-items[b-nkfok38vdd]  .nav-sub-link {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem 0.35rem 1rem;
    color: #c3d4e4;
}

.fps-sub-items[b-nkfok38vdd]  .nav-sub-link:hover {
    color: #ffffff;
    background-color: rgba(255,255,255,0.05);
}

.fps-sub-items[b-nkfok38vdd]  .nav-sub-link.active {
    color: #ffffff;
    border-left-color: #c0392b;
    background-color: rgba(255,255,255,0.08);
}

/* ── Mobile toggler ─────────────────────────────── */
.navbar-toggler[b-nkfok38vdd] {
    appearance: none;
    cursor: pointer;
    width: 3rem;
    height: 2.25rem;
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.5rem rgba(255,255,255,0.05);
}

.nav-scrollable[b-nkfok38vdd] {
    display: none;
    padding: 0.5rem 0;
}

.navbar-toggler:checked ~ .nav-scrollable[b-nkfok38vdd] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-nkfok38vdd] { display: none; }
    .nav-scrollable[b-nkfok38vdd] {
        display: block;
        height: 100%;
        overflow-y: auto;
        padding: 0.75rem 0;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-ygmeza9gk0],
.components-reconnect-repeated-attempt-visible[b-ygmeza9gk0],
.components-reconnect-failed-visible[b-ygmeza9gk0],
.components-pause-visible[b-ygmeza9gk0],
.components-resume-failed-visible[b-ygmeza9gk0],
.components-rejoining-animation[b-ygmeza9gk0] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-ygmeza9gk0],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-ygmeza9gk0],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-ygmeza9gk0],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-ygmeza9gk0],
#components-reconnect-modal.components-reconnect-retrying[b-ygmeza9gk0],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-ygmeza9gk0],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-ygmeza9gk0],
#components-reconnect-modal.components-reconnect-failed[b-ygmeza9gk0],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-ygmeza9gk0] {
    display: block;
}


#components-reconnect-modal[b-ygmeza9gk0] {
    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-ygmeza9gk0 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-ygmeza9gk0 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-ygmeza9gk0 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-ygmeza9gk0]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-ygmeza9gk0 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-ygmeza9gk0 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-ygmeza9gk0 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-ygmeza9gk0 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-ygmeza9gk0] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-ygmeza9gk0] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-ygmeza9gk0] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-ygmeza9gk0] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-ygmeza9gk0] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-ygmeza9gk0] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-ygmeza9gk0] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-ygmeza9gk0 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-ygmeza9gk0] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-ygmeza9gk0 {
    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;
    }
}
