/* Compact navigation redesign for the authenticated admin shell. */
body.text-center[style*="overflow-y"] {
    --sidebar-width: 236px;
    --sidebar-collapsed-width: 64px;
    --sidebar-bg: #0b2138;
    --sidebar-bg-deep: #091c30;
    --sidebar-line: rgba(255, 255, 255, .09);
    --sidebar-text: #c6d5e5;
    --sidebar-muted: #88a1ba;
    --sidebar-strong: #f6f9fd;
    --sidebar-hover: rgba(255, 255, 255, .07);
    --sidebar-active: rgba(83, 139, 239, .22);
    --sidebar-accent: #79a8ff;
}

body.text-center[style*="overflow-y"] .mainLeftMenu {
    position: relative;
    flex: 0 0 var(--sidebar-width) !important;
    width: var(--sidebar-width) !important;
    min-width: var(--sidebar-width) !important;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-deep) 100%) !important;
    border-right: 1px solid var(--sidebar-line) !important;
    box-shadow: 10px 0 28px rgba(7, 24, 42, .10) !important;
}

body.text-center[style*="overflow-y"] .mainLeftMenu::before {
    position: absolute;
    inset: 0 0 auto;
    height: 180px;
    background: radial-gradient(circle at 12% 0%, rgba(92, 150, 255, .20), transparent 68%);
    content: "";
    pointer-events: none;
}

body.text-center[style*="overflow-y"] .mainLeftMenu .menuLeftLogo {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    min-height: 72px;
    padding: 16px 16px 14px !important;
    background: transparent !important;
    border-bottom: 1px solid var(--sidebar-line) !important;
}

body.text-center[style*="overflow-y"] .userRow {
    min-width: 0;
    gap: 10px;
}

body.text-center[style*="overflow-y"] .menuLeftLogo .mainLogo {
    border: 2px solid rgba(196, 220, 255, .45) !important;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .18) !important;
}

body.text-center[style*="overflow-y"] .statusDot {
    width: 9px;
    height: 9px;
    border-width: 2px;
}

body.text-center[style*="overflow-y"] .userMeta {
    gap: 4px;
}

body.text-center[style*="overflow-y"] .userName {
    color: var(--sidebar-strong) !important;
    font-size: 14px;
    font-weight: 650;
}

body.text-center[style*="overflow-y"] .userStatus {
    color: var(--sidebar-muted) !important;
    font-size: 12px;
}

body.text-center[style*="overflow-y"] .userStatus.status-online {
    color: #73d3a0 !important;
}

body.text-center[style*="overflow-y"] .statusIcon {
    width: 7px;
    height: 7px;
    box-shadow: none;
}

body.text-center[style*="overflow-y"] .headerTools {
    gap: 4px;
    margin-left: 8px;
}

body.text-center[style*="overflow-y"] .toolBtn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    color: var(--sidebar-muted) !important;
    font-size: 14px;
    transition: background .16s ease, color .16s ease;
}

body.text-center[style*="overflow-y"] .toolBtn:hover {
    color: var(--sidebar-strong) !important;
    background: var(--sidebar-hover);
}

body.text-center[style*="overflow-y"] .mainMenuScroll {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    padding: 12px 10px 14px;
    overflow-x: hidden;
    overflow-y: auto;
}

body.text-center[style*="overflow-y"] .mainMenuScroll::-webkit-scrollbar {
    width: 4px;
}

body.text-center[style*="overflow-y"] .mainMenuScroll::-webkit-scrollbar-thumb {
    background: rgba(185, 210, 239, .22);
    border-radius: 999px;
}

body.text-center[style*="overflow-y"] .mainMenuGroup {
    margin: 0;
}

body.text-center[style*="overflow-y"] .settingsMenuGroup {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--sidebar-line);
}

body.text-center[style*="overflow-y"] .mainMenuScroll button {
    border: 0;
    font-family: inherit;
    text-align: start;
}

body.text-center[style*="overflow-y"] .mainMenuScroll button:focus-visible {
    outline: 2px solid var(--sidebar-accent);
    outline-offset: -2px;
}

body.text-center[style*="overflow-y"] .mainLeftMenu .menuLeftItem,
body.text-center[style*="overflow-y"] .mainLeftMenu .menuLeftItem.active {
    position: relative;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 2px 0 !important;
    padding: 0 12px !important;
    gap: 11px;
    display: flex !important;
    align-items: center;
    box-sizing: border-box;
    border: 0 !important;
    border-radius: 8px !important;
    color: var(--sidebar-text) !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}

body.text-center[style*="overflow-y"] .menuLeftItem::before {
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: transparent;
    content: "";
    transition: background .16s ease;
}

body.text-center[style*="overflow-y"] .mainLeftMenu .menuLeftItem:hover,
body.text-center[style*="overflow-y"] .mainLeftMenu .menuLeftItem.is-open {
    color: var(--sidebar-strong) !important;
    background: var(--sidebar-hover) !important;
}

body.text-center[style*="overflow-y"] .mainLeftMenu .menuLeftItem.active {
    color: var(--sidebar-strong) !important;
    background: var(--sidebar-active) !important;
}

body.text-center[style*="overflow-y"] .menuLeftItem.active::before {
    background: var(--sidebar-accent);
}

body.text-center[style*="overflow-y"] .mainLeftMenu .menuLeftItem i,
body.text-center[style*="overflow-y"] .mainLeftMenu .menuLeftItem.active i,
body.text-center[style*="overflow-y"] .mainLeftMenu .menuLeftItem:hover i {
    flex: 0 0 20px;
    width: 20px !important;
    min-width: 20px !important;
    margin: 0 !important;
    color: var(--sidebar-muted) !important;
    font-size: 17px !important;
    line-height: 1;
    text-align: center;
}

body.text-center[style*="overflow-y"] .mainLeftMenu .menuLeftItem.active i,
body.text-center[style*="overflow-y"] .mainLeftMenu .menuLeftItem:hover i {
    color: #b9d3ff !important;
}

body.text-center[style*="overflow-y"] .mainLeftMenu .menuLeftItem i.menuChevron {
    flex: 0 0 12px;
    width: 12px !important;
    min-width: 12px !important;
    margin-left: auto !important;
    font-size: 11px !important;
}

body.text-center[style*="overflow-y"] .menuLeftItem .menuText,
body.text-center[style*="overflow-y"] .menuLeftItem .menuText > span,
body.text-center[style*="overflow-y"] .menuLeftItem .menuText > .el-badge {
    min-width: 0;
    color: inherit !important;
    font-size: 14px !important;
    font-weight: 550;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.text-center[style*="overflow-y"] .menuLeftItem.active .menuText,
body.text-center[style*="overflow-y"] .menuLeftItem.active .menuText > span,
body.text-center[style*="overflow-y"] .menuLeftItem.active .menuText > .el-badge {
    font-weight: 650;
}

body.text-center[style*="overflow-y"] .menuLeftItem .el-badge__content {
    height: 18px;
    min-width: 18px;
    margin-left: auto;
    padding: 0 5px;
    border: 0 !important;
    border-radius: 999px;
    background: #4e8df2 !important;
    box-shadow: none;
    font-size: 11px;
    line-height: 18px;
}

body.text-center[style*="overflow-y"] .mainLeftMenu .mainSubmenu {
    margin: 1px 0 7px 20px;
    padding: 3px 0 3px 12px;
    border-left: 1px solid rgba(153, 183, 218, .25);
}

body.text-center[style*="overflow-y"] .mainSubmenuCategory,
body.text-center[style*="overflow-y"] .mainSubmenuItem {
    width: 100%;
    min-height: 34px;
    margin: 1px 0;
    padding: 0 10px;
    border-radius: 6px;
    box-sizing: border-box;
    color: var(--sidebar-muted);
    background: transparent;
    font-size: 13px;
    font-weight: 500;
}

body.text-center[style*="overflow-y"] .mainSubmenuCategory {
    justify-content: space-between;
}

body.text-center[style*="overflow-y"] .mainSubmenuCategory:hover,
body.text-center[style*="overflow-y"] .mainSubmenuCategory.expanded,
body.text-center[style*="overflow-y"] .mainSubmenuItem:hover {
    color: var(--sidebar-strong);
    background: rgba(255, 255, 255, .055);
}

body.text-center[style*="overflow-y"] .mainSubmenuCategory i {
    color: #7690aa;
    font-size: 10px;
}

body.text-center[style*="overflow-y"] .mainSubmenuItem {
    justify-content: flex-start;
    gap: 8px;
}

body.text-center[style*="overflow-y"] .mainSubmenuItem.nested {
    padding-left: 20px;
}

body.text-center[style*="overflow-y"] .mainSubmenuItem.active {
    color: #bcd5ff;
    background: rgba(79, 139, 241, .18);
    font-weight: 650;
    box-shadow: none;
}

body.text-center[style*="overflow-y"] .mainSubmenuDot {
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
    opacity: .7;
}

body.text-center[style*="overflow-y"] .mainSidebarCopyright {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    padding: 9px 12px 11px;
    border-top: 1px solid var(--sidebar-line);
    color: #6f89a3;
    font-size: 10px;
    line-height: 1.4;
}

body.text-center[style*="overflow-y"] .mainLeftMenu.collapsed {
    flex-basis: var(--sidebar-collapsed-width) !important;
    width: var(--sidebar-collapsed-width) !important;
    min-width: var(--sidebar-collapsed-width) !important;
}

body.text-center[style*="overflow-y"] .mainLeftMenu.collapsed .menuLeftLogo {
    min-height: 72px;
    padding: 16px 10px 14px !important;
}

body.text-center[style*="overflow-y"] .mainLeftMenu.collapsed .userRow {
    justify-content: center;
}

body.text-center[style*="overflow-y"] .mainLeftMenu.collapsed .menuLeftItem,
body.text-center[style*="overflow-y"] .mainLeftMenu.collapsed .menuLeftItem.active {
    width: 44px !important;
    margin: 2px auto !important;
    padding: 0 !important;
    justify-content: center;
}

body.text-center[style*="overflow-y"] .mainLeftMenu.collapsed .menuLeftItem::before {
    display: none;
}

body.text-center[style*="overflow-y"] .mainLeftMenu.collapsed .menuLeftItem i {
    flex-basis: 20px;
}

body.text-center[style*="overflow-y"] .mainLeftMenu.collapsed .collapsedBadge {
    top: 1px;
    right: 1px;
}

@media (max-width: 900px) {
    body.text-center[style*="overflow-y"] .mainLeftMenu:not(.collapsed) {
        --sidebar-width: 252px;
        flex-basis: var(--sidebar-width) !important;
        width: var(--sidebar-width) !important;
        min-width: var(--sidebar-width) !important;
    }

    body.text-center[style*="overflow-y"] .mainSubmenuCategory,
    body.text-center[style*="overflow-y"] .mainSubmenuItem {
        min-height: 44px;
    }
}
