/* Shared account/organization sidebar menu */

:root {
    --weverb-brand-900: var(--weverb-brand-900, #0b1220);
    --weverb-brand-800: var(--weverb-brand-800, #111b2e);
    --weverb-accent: var(--weverb-accent, #17c7d8);
    --weverb-focus: var(--weverb-focus, rgba(23,199,216,.45));
    --weverb-radius-md: var(--weverb-radius-md, 10px);
}

.menu-root .navbar {
    height: 3.5rem;
    background: rgba(11, 18, 32, .92) !important;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.menu-root .navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
    gap: .1rem;
    font-size: 1.05rem;
}

.menu-root .brand-icon {
    height: 30px;
    width: auto;
}

.menu-root .brand-text {
    height: 32px;
    width: auto;
    opacity: .92;
}

.menu-root .nav-menu {
    background: var(--weverb-brand-900);
    border-right: 1px solid rgba(255,255,255,.06);
    overflow: hidden;
    transition: max-height .2s ease;
}

.menu-root .nav-menu.collapse {
    max-height: 0;
}

@media (min-width: 641px) {
    .menu-root .collapse {
        display: block;
    }

    .menu-root .nav-menu.collapse {
        max-height: none !important;
    }

    .menu-root .nav-scrollable {
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

.menu-root .organization-title {
    width: 100%;
    height: 5.3rem;
    padding: .85rem;
    display: flex;
    background: rgba(17, 27, 46, .70) !important;
    color: rgba(255,255,255,.92) !important;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-right: 1px solid rgba(255,255,255,.06);
    transition: max-height .2s ease, opacity .15s ease, padding .2s ease, margin .2s ease;
}

.menu-root .organization-title h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .2px;
}

.menu-root .organization-title p {
    margin: .2rem 0 0 0;
    color: rgba(255,255,255,.70);
}

.menu-root .organization-title a {
    color: var(--weverb-accent);
    text-decoration: none;
}

.menu-root .organization-title a:hover {
    color: rgba(23,199,216,.90);
    text-decoration: underline;
}

.menu-root .nav-item {
    font-size: 1rem;
}

.menu-root .nav-item:first-of-type {
    padding-top: .7rem;
}

.menu-root .nav-item:last-of-type {
    padding-bottom: .7rem;
}

.menu-root .nav-link {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: .65rem;
    height: 3rem;
    padding: 0 .5rem;
    font-size: .96rem;
    font-weight: 600;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: var(--weverb-radius-md);
    transition: background-color .15s ease, color .15s ease;
}

.menu-root .nav-link span {
    justify-self: center;
}

.menu-root .nav-ico {
    width: 22px;
    display: inline-flex;
    justify-content: center;
    opacity: .90;
}

.menu-root .oi,
.menu-root .nav-item .fa {
    color: rgba(255,255,255,.70);
}

.menu-root .nav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-root .nav-chevron {
    font-size: .8rem;
    opacity: .65;
    transition: transform .15s ease, opacity .15s ease;
}

.menu-root .nav-link[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
    opacity: .9;
}

.menu-root .nav-link:hover {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.92);
}

.menu-root .nav-link:focus,
.menu-root .nav-link:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 .20rem var(--weverb-focus);
    background: rgba(255,255,255,.10);
    color: rgba(255,255,255,.95);
}

.menu-root .nav-link.active {
    background: rgba(23,199,216,.14);
    color: rgba(255,255,255,.96);
    position: relative;
}

.menu-root .nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 3px;
    border-radius: 3px;
    background: var(--weverb-accent);
}

.menu-root .nav-link.disabled,
.menu-root .nav-link:disabled {
    color: rgba(255,255,255,.35);
    pointer-events: none;
    cursor: default;
}

.menu-root [id^="submenu-"],
.menu-root .submenu-wrap {
    margin: .25rem .25rem .35rem .25rem;
    padding: .25rem .25rem .35rem .25rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--weverb-radius-md);
}

.menu-root .nav-link.subitem {
    height: 2.65rem;
    font-size: .90rem;
    color: rgba(255,255,255,.72);
}

.menu-root .nav-link.subitem.active::before {
    width: 2px;
    background: rgba(23,199,216,.85);
}

.sidebar.agent-mini .menu-root .organization-title {
    display: none;
}

.sidebar.agent-mini .menu-root .brand-text {
    display: none;
}

.sidebar.agent-mini .menu-root .brand-icon {
    height: 30px;
    width: auto;
    transition: height .15s ease;
}

.sidebar.agent-mini:hover .menu-root .organization-title {
    display: flex;
}

.sidebar.agent-mini:hover .menu-root .brand-text {
    display: inline;
}

.sidebar.agent-mini:hover .menu-root .brand-icon {
    height: 53px;
}

.sidebar.auto-mini .menu-root .organization-title {
    display: none;
}

.sidebar.auto-mini .menu-root .nav-menu {
    border-right: 0;
}

.sidebar.auto-mini:hover .menu-root .organization-title {
    display: flex;
}

.sidebar.auto-mini .menu-root .brand-text,
.sidebar.auto-mini .menu-root .nav-label,
.sidebar.auto-mini .menu-root .nav-chevron {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity .15s ease, width .15s ease;
}

.sidebar.auto-mini:hover .menu-root .brand-text,
.sidebar.auto-mini:hover .menu-root .nav-label,
.sidebar.auto-mini:hover .menu-root .nav-chevron {
    opacity: 1;
    width: auto;
}

.sidebar.auto-mini .menu-root .brand-icon {
    height: 30px;
    width: auto;
    transition: height .15s ease;
}

.sidebar.auto-mini:hover .menu-root .brand-icon {
    height: 30px;
}

.sidebar.auto-mini .menu-root .nav-item {
    padding-left: .45rem !important;
    padding-right: .45rem !important;
}

.sidebar.auto-mini:hover .menu-root .nav-item {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}
