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

main[b-5ppexw37oo] {
    flex: 1;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */

.sidebar[b-5ppexw37oo] {
    background-color: #0b0f1a;
    background-image: none;
}

/* ── Top row ──────────────────────────────────────────────────────────────── */

.top-row[b-5ppexw37oo] {
    background-color: #0c1a3a;
    border-bottom: 1px solid #1e3a6e;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-right: 1.25rem;
}

.top-row[b-5ppexw37oo]  a, .top-row[b-5ppexw37oo]  .btn-link {
    white-space: nowrap;
    margin-left: .75rem;
    text-decoration: none;
    color: #ffffff !important;
    font-size: .825rem;
    font-weight: 500;
    opacity: .85;
    transition: opacity .15s;
}

.top-row[b-5ppexw37oo]  a:hover, .top-row[b-5ppexw37oo]  .btn-link:hover {
    opacity: 1;
    text-decoration: none;
}

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

@media (max-width: 640.98px) {
    .top-row[b-5ppexw37oo] {
        justify-content: space-between;
    }
    .top-row[b-5ppexw37oo]  a, .top-row[b-5ppexw37oo]  .btn-link {
        margin-left: 0;
    }
    /* Reduce horizontal padding on small screens */
    .top-row[b-5ppexw37oo], article[b-5ppexw37oo] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

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

    .sidebar[b-5ppexw37oo] {
        width: 240px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

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

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

    .top-row[b-5ppexw37oo], article[b-5ppexw37oo] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ── Top bar ──────────────────────────────────────────────────────────────── */

.top-row[b-e6jhaxnvgh] {
    height: 3.5rem;
    background-color: #0f172a;
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.navbar-brand[b-e6jhaxnvgh] {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: #f8fafc !important;
    text-decoration: none;
    line-height: 1;
}

.brand-accent[b-e6jhaxnvgh] {
    color: #0ea5e9;
    text-shadow: 0 0 12px rgba(14,165,233,.7);
}

/* ── Toggler (mobile) ─────────────────────────────────────────────────────── */

.navbar-toggler[b-e6jhaxnvgh] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid #334155;
    border-radius: 6px;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28248,250,252,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.75rem #1e293b;
}

.navbar-toggler:checked[b-e6jhaxnvgh] { background-color: #334155; }

/* ── Scrollable area ──────────────────────────────────────────────────────── */

.nav-scrollable[b-e6jhaxnvgh] {
    display: none;
    padding: .5rem 0 .5rem .35rem;
}

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

@media (min-width: 641px) {
    .navbar-toggler[b-e6jhaxnvgh] { display: none; }
    .nav-scrollable[b-e6jhaxnvgh] {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
        padding-left: .35rem;
    }
}

/* ── Org badge ────────────────────────────────────────────────────────────── */

.org-badge[b-e6jhaxnvgh] {
    margin: .5rem .75rem .25rem .75rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: .6rem .75rem;
}

.org-badge-label[b-e6jhaxnvgh] {
    font-size: .6rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    margin-bottom: .2rem;
}

.org-badge-name[b-e6jhaxnvgh] {
    font-size: .85rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.org-badge-switch[b-e6jhaxnvgh] {
    font-size: .7rem;
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
    flex-shrink: 0;
}

.org-badge-switch:hover[b-e6jhaxnvgh] { color: #38bdf8; text-decoration: underline; }

/* ── Nav sections ─────────────────────────────────────────────────────────── */

.nav-section-label[b-e6jhaxnvgh] {
    padding: .9rem 1rem .2rem 1rem;
    font-size: .6rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
}

/* ── Nav items ────────────────────────────────────────────────────────────── */

.nav-item[b-e6jhaxnvgh] {
    padding: .1rem .6rem;
}

.nav-item[b-e6jhaxnvgh]  .nav-link {
    color: #94a3b8;
    background: none;
    border: none;
    border-radius: 7px;
    height: 2.4rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .875rem;
    font-weight: 500;
    padding: 0 .75rem;
    width: 100%;
    transition: background .12s, color .12s;
    text-decoration: none;
}

.nav-item[b-e6jhaxnvgh]  .nav-link:hover {
    background-color: #1e293b;
    color: #f1f5f9;
}

.nav-item[b-e6jhaxnvgh]  a.active {
    background-color: rgba(14,165,233,.15);
    color: #38bdf8;
    font-weight: 600;
}

/* ── Nav bullet icon ──────────────────────────────────────────────────────── */

.nav-bullet[b-e6jhaxnvgh] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #475569;
    flex-shrink: 0;
    transition: background .12s;
}

.nav-item[b-e6jhaxnvgh]  a.active .nav-bullet {
    background: #0ea5e9;
    box-shadow: 0 0 6px rgba(14,165,233,.6);
}

.nav-item[b-e6jhaxnvgh]  .nav-link:hover .nav-bullet {
    background: #94a3b8;
}

/* ── Notification badge ───────────────────────────────────────────────────── */

.notif-badge[b-e6jhaxnvgh] {
    background: #dc2626;
    color: white;
    font-size: .6rem;
    font-weight: 700;
    border-radius: 99px;
    padding: .1rem .4rem;
    margin-left: auto;
    line-height: 1.4;
    letter-spacing: 0;
}

/* ── User footer ──────────────────────────────────────────────────────────── */

.nav-footer[b-e6jhaxnvgh] {
    margin-top: auto;
    border-top: 1px solid #1e293b;
    padding: .85rem .75rem;
    background: #0f172a;
}

.nav-footer-user[b-e6jhaxnvgh] {
    font-size: .78rem;
    color: #64748b;
    margin-bottom: .5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-footer-user strong[b-e6jhaxnvgh] {
    color: #cbd5e1;
    font-weight: 600;
}

.nav-footer-actions[b-e6jhaxnvgh] {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}

.nav-footer-btn[b-e6jhaxnvgh] {
    font-size: .75rem;
    padding: .28rem .7rem;
    border-radius: 6px;
    border: 1px solid #4b5563;
    background: #374151;
    color: #ffffff !important;
    text-decoration: none;
    cursor: pointer;
    transition: background .12s, border-color .12s;
    line-height: 1.5;
    font-weight: 500;
}

.nav-footer-btn:hover[b-e6jhaxnvgh] {
    background: #4b5563;
    border-color: #6b7280;
    color: #ffffff !important;
}

/* ── Light mode overrides ─────────────────────────────────────────────────── */

html[data-theme="light"] .org-badge[b-e6jhaxnvgh] {
    background: #e8edf2;
    border-color: #cbd5e1;
}

html[data-theme="light"] .org-badge-name[b-e6jhaxnvgh]  { color: #0f172a; }
html[data-theme="light"] .org-badge-label[b-e6jhaxnvgh] { color: #64748b; }
html[data-theme="light"] .org-badge-switch[b-e6jhaxnvgh] { color: #0284c7; }

html[data-theme="light"] .nav-footer[b-e6jhaxnvgh] {
    background: #e2e8f0;
    border-top-color: #cbd5e1;
}

html[data-theme="light"] .nav-footer-user[b-e6jhaxnvgh]       { color: #475569; }
html[data-theme="light"] .nav-footer-user strong[b-e6jhaxnvgh] { color: #0f172a; }

html[data-theme="light"] .nav-footer-btn[b-e6jhaxnvgh] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

html[data-theme="light"] .nav-footer-btn:hover[b-e6jhaxnvgh] {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .nav-section-label[b-e6jhaxnvgh] { color: #64748b; }

html[data-theme="light"] .nav-item[b-e6jhaxnvgh]  .nav-link { color: #475569; }
html[data-theme="light"] .nav-item[b-e6jhaxnvgh]  .nav-link:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

html[data-theme="light"] .nav-bullet[b-e6jhaxnvgh] { background: #94a3b8; }

/* ── Role chip ────────────────────────────────────────────────────────────── */

.role-chip[b-e6jhaxnvgh] {
    display: inline-block;
    font-size: .62rem;
    font-weight: 700;
    padding: .15rem .55rem;
    border-radius: 99px;
    margin-bottom: .45rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.role-chip.head[b-e6jhaxnvgh]   { background: rgba(220,38,38,.2);  color: #fca5a5; border: 1px solid rgba(220,38,38,.3); }
.role-chip.lead[b-e6jhaxnvgh]   { background: rgba(217,119,6,.2);  color: #fcd34d; border: 1px solid rgba(217,119,6,.3); }
.role-chip.member[b-e6jhaxnvgh] { background: rgba(71,85,105,.2);  color: #94a3b8; border: 1px solid rgba(71,85,105,.3); }
