/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-7apiembx6k] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-7apiembx6k] {
    flex: 1;
    min-width: 0;
    background: var(--canvas);
}

.sidebar[b-7apiembx6k] {
    background-image: linear-gradient(185deg, #0d3469 0%, #0a2750 100%);
    border-right: 1px solid rgba(255, 255, 255, .06);
}

.top-row[b-7apiembx6k] {
    background-color: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid #e3e8f0;
    justify-content: flex-end;
    height: 3.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* live indicator */
.live-pill[b-7apiembx6k] {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .76rem;
    font-weight: 500;
    color: #45526b;
    letter-spacing: .01em;
    padding: .3rem .7rem;
    border: 1px solid #e3e8f0;
    border-radius: 999px;
    background: #fff;
}

.live-pill__dot[b-7apiembx6k] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2ea866;
    box-shadow: 0 0 0 0 rgba(46, 168, 102, .5);
    animation: livepulse-b-7apiembx6k 2s infinite;
}

@keyframes livepulse-b-7apiembx6k {
    0% { box-shadow: 0 0 0 0 rgba(46, 168, 102, .5); }
    70% { box-shadow: 0 0 0 6px rgba(46, 168, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 168, 102, 0); }
}

    .top-row[b-7apiembx6k]  a, .top-row[b-7apiembx6k]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-7apiembx6k]  a:hover, .top-row[b-7apiembx6k]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-7apiembx6k]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-7apiembx6k] {
        justify-content: space-between;
    }

    .top-row[b-7apiembx6k]  a, .top-row[b-7apiembx6k]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-7apiembx6k] {
        flex-direction: row;
    }

    .sidebar[b-7apiembx6k] {
        width: 256px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-7apiembx6k] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-7apiembx6k]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-7apiembx6k], article[b-7apiembx6k] {
        padding-left: 2.25rem !important;
        padding-right: 2rem !important;
    }

    article.content[b-7apiembx6k] {
        padding-top: 1.75rem !important;
        padding-bottom: 3rem;
    }
}

#blazor-error-ui[b-7apiembx6k] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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-7apiembx6k] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ---- Brand lockup -------------------------------------------------- */

.brand-row[b-l5m6mmcs7y] {
    height: 3.25rem;
    display: flex;
    align-items: center;
    padding: 0 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.brand[b-l5m6mmcs7y] {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    overflow: hidden;
}

.brand__mark[b-l5m6mmcs7y] {
    width: 32px;
    height: 32px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(160deg, #2c6abc, #104386);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.brand__text[b-l5m6mmcs7y] { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }

.brand__name[b-l5m6mmcs7y] {
    color: #fff;
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: -.01em;
}

.brand__version[b-l5m6mmcs7y] {
    margin-left: .35rem;
    color: #7f9cc3;
    font-weight: 500;
    font-size: .68rem;
    letter-spacing: 0;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

.brand__org[b-l5m6mmcs7y] {
    color: #9cc0e3;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ---- Toggler (mobile) ---------------------------------------------- */

.navbar-toggler[b-l5m6mmcs7y] {
    appearance: none;
    cursor: pointer;
    width: 3.25rem;
    height: 2.5rem;
    position: absolute;
    top: 0.4rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    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.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.6rem rgba(255, 255, 255, 0.06);
}

.navbar-toggler:checked[b-l5m6mmcs7y] { background-color: rgba(255, 255, 255, 0.18); }

/* ---- Nav shell / groups -------------------------------------------- */

.nav-shell[b-l5m6mmcs7y] {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1rem .75rem 1rem;
}

.nav-group[b-l5m6mmcs7y] { display: flex; flex-direction: column; gap: .15rem; }

.nav-label[b-l5m6mmcs7y] {
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #6f8db5;
    padding: .35rem .75rem .55rem;
}

/* signed-in company user's company name (under the Monitoring label) */
.nav-company[b-l5m6mmcs7y] {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 .15rem .4rem;
    padding: .42rem .6rem;
    border-radius: 9px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
}

.nav-company__icon[b-l5m6mmcs7y] { color: #8db0db; font-size: .9rem; flex: none; }

.nav-company__name[b-l5m6mmcs7y] {
    color: #eaf1fa;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: -.005em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item[b-l5m6mmcs7y] { margin-bottom: .1rem; }

.nav-item[b-l5m6mmcs7y]  .nav-link {
    color: #c4d4ea;
    background: none;
    border: none;
    border-radius: 9px;
    height: 2.6rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 0 .75rem;
    width: 100%;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: -.005em;
    position: relative;
    transition: background-color .15s ease, color .15s ease;
}

.nav-item[b-l5m6mmcs7y]  .nav-link .bi {
    font-size: 1rem;
    color: #8db0db;
    transition: color .15s ease;
    margin: 0;
    width: 1.1rem;
    text-align: center;
}

.nav-item[b-l5m6mmcs7y]  .nav-link__meta {
    margin-left: auto;
    font-size: .68rem;
    font-weight: 500;
    color: #7f9cc3;
    font-variant-numeric: tabular-nums;
    background: rgba(255, 255, 255, .06);
    padding: .08rem .4rem;
    border-radius: 5px;
}

.nav-item[b-l5m6mmcs7y]  .nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.nav-item[b-l5m6mmcs7y]  .nav-link:hover .bi { color: #cfe0f4; }

.nav-item[b-l5m6mmcs7y]  a.active {
    background: linear-gradient(90deg, rgba(102, 153, 200, .28), rgba(102, 153, 200, .12));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(156, 192, 227, .18);
}

.nav-item[b-l5m6mmcs7y]  a.active::before {
    content: "";
    position: absolute;
    left: -.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1.4rem;
    border-radius: 0 3px 3px 0;
    background: #9cc0e3;
}

.nav-item[b-l5m6mmcs7y]  a.active .bi { color: #fff; }

/* ---- Footer (user + sign out) -------------------------------------- */

.nav-footer[b-l5m6mmcs7y] {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.user-card[b-l5m6mmcs7y] {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .6rem;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
    transition: background .15s ease, border-color .15s ease;
}

.user-card:hover[b-l5m6mmcs7y] { background: rgba(255, 255, 255, .07); border-color: rgba(156, 192, 227, .25); }

.user-card__avatar[b-l5m6mmcs7y] {
    width: 30px;
    height: 30px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(160deg, #2c6abc, #0d3469);
    color: #fff;
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
}

.user-card__meta[b-l5m6mmcs7y] { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }

.user-card__name[b-l5m6mmcs7y] {
    color: #eaf1fa;
    font-size: .82rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 9.5rem;
}

.user-card__role[b-l5m6mmcs7y] { color: #7f9cc3; font-size: .68rem; }

.user-card__cog[b-l5m6mmcs7y] { margin-left: auto; color: #7f9cc3; font-size: .85rem; }

.logout-btn[b-l5m6mmcs7y] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    background: none;
    border: none;
    color: #9fb6d4;
    font-size: .8rem;
    font-weight: 500;
    padding: .5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.logout-btn:hover[b-l5m6mmcs7y] { background: rgba(255, 255, 255, .06); color: #fff; }

/* ---- Scroll behaviour ---------------------------------------------- */

.nav-scrollable[b-l5m6mmcs7y] { display: none; }
.navbar-toggler:checked ~ .nav-scrollable[b-l5m6mmcs7y] { display: block; }

@media (min-width: 641px) {
    .navbar-toggler[b-l5m6mmcs7y] { display: none; }

    .nav-scrollable[b-l5m6mmcs7y] {
        display: block;
        height: calc(100vh - 3.25rem);
        overflow-y: auto;
    }
}
