/* Paybro-style navigation, scoped to the Nexus vertical menu. */
body:has(#nexus-sidebar){--nx-width:264px}
body nav#nexus-sidebar{--nx-text:#f1f8f3;--nx-muted:#b5d4c5;--nx-background:#0c654a;display:flex!important;flex-direction:column;position:fixed;inset:0 auto 0 0!important;width:var(--nx-width)!important;height:100vh!important;height:100dvh!important;background:var(--nx-background)!important;border-radius:0 18px 18px 0!important;border-right:1px solid #ffffff16;overflow:hidden;box-shadow:5px 0 24px #102d2410!important;font-family:"Segoe UI",Arial,sans-serif;z-index:1003;transform:none;transition:transform .2s ease,visibility .2s;visibility:visible}
#nexus-sidebar [hidden],.nx-backdrop[hidden]{display:none!important}
#nexus-sidebar .nx-brand{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:0 0 auto;padding:16px 18px!important;margin:0;border-bottom:1px solid #ffffff20;min-height:96px;visibility:visible!important;pointer-events:auto!important}
#nexus-sidebar .nx-brand::after{display:none!important}
#nexus-sidebar .nx-brand .logo{display:block;max-width:186px;width:100%;overflow:hidden}
#nexus-sidebar .nx-brand .logo img{float:none;display:block!important;width:186px!important;max-width:100%;height:64px!important;object-fit:contain;background:#fff;border-radius:10px;padding:10px 12px!important}
#nexus-sidebar .nx-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:36px;border:0;border-radius:7px;background:transparent;color:var(--nx-text);font-size:20px;cursor:pointer}
#nexus-sidebar .nx-close:hover{background:#ffffff15}
#nexus-sidebar .nx-scroll{height:auto!important;min-height:0;flex:1;overflow:auto!important;width:100%!important;padding:0!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b8d9c966 transparent;scroll-padding:12px}
#nexus-sidebar .nx-scroll:has(.simplebar-content-wrapper){overflow:hidden!important}
#nexus-sidebar .simplebar-content-wrapper{overflow-y:auto!important;overscroll-behavior:contain}
#nexus-sidebar .simplebar-content{padding:0!important}
#nexus-sidebar .simplebar-scrollbar::before{background:#b8d9c9}
#nexus-sidebar .simplebar-track.simplebar-vertical{width:7px;right:2px}
#nexus-sidebar .nx-nav-list{list-style:none;padding:10px 12px 18px;margin:0}
#nexus-sidebar .nx-section-divider{display:block;height:1px;padding:0;margin:10px;border-top:1px solid #ffffff24;list-style:none}
#nexus-sidebar .nx-section-divider:first-child{display:none}
#nexus-sidebar .nx-nav-item{list-style:none;margin:2px 0;padding:0}
#nexus-sidebar .nx-nav-link{position:relative;display:flex;align-items:center;gap:11px;width:100%;min-height:44px;margin:0;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:var(--nx-text)!important;text-align:left;text-decoration:none;font-family:inherit;font-size:14px;font-weight:550;line-height:1.4;cursor:pointer;transition:background .15s,color .15s}
#nexus-sidebar .nx-nav-link:hover{background:#24775e!important}
#nexus-sidebar .nx-icon{flex:0 0 22px;width:22px;font-size:21px;line-height:1;text-align:center;color:inherit!important}
#nexus-sidebar .nx-label{flex:1;min-width:0;white-space:normal;overflow-wrap:break-word}
#nexus-sidebar .nx-chevron{margin-left:auto;font-size:15px;opacity:.8;transition:transform .2s;flex-shrink:0}
#nexus-sidebar .nx-group-toggle[aria-expanded=true] .nx-chevron{transform:rotate(180deg)}
#nexus-sidebar .nx-group-toggle[aria-expanded=true]{background:#24775e!important}
#nexus-sidebar .nx-nav-link.nx-active,#nexus-sidebar .nx-sublink.nx-active{background:#e1edb6!important;color:#193e2f!important;font-weight:600}
#nexus-sidebar .nx-submenu{list-style:none;padding:0 0 0 9px;margin:5px 0 8px 23px;border-left:1px solid #ffffff35;overflow:hidden}
#nexus-sidebar .nx-submenu li{list-style:none;margin:2px 0;padding:0}
#nexus-sidebar .nx-sublink{display:flex;align-items:center;min-height:38px;padding:8px 10px;border-radius:7px;color:var(--nx-text)!important;font-family:inherit;font-size:14px;font-weight:500;line-height:1.4;text-decoration:none;overflow-wrap:break-word}
#nexus-sidebar .nx-sublink:hover{background:#24775e}
#nexus-sidebar .nx-submenu li::before,#nexus-sidebar .nx-sublink::before{content:none!important}
#nexus-sidebar .nx-subheading{padding:10px 10px 4px!important;font-size:12px;font-weight:650;color:#e1edb6;line-height:1.5}
#nexus-sidebar .nx-footer{flex:0 0 auto;margin:0 12px;padding:8px 0 12px;border-top:1px solid #ffffff24;background:var(--nx-background)}
#nexus-sidebar .nx-footer .nx-nav-link{min-height:42px}
#nexus-sidebar :is(a,button):focus-visible{outline:2px solid #d8eda4;outline-offset:-2px}
body:has(#nexus-sidebar) .app-wrapper>.app-content{margin-left:var(--nx-width)!important;margin-right:0!important;padding-left:0!important;width:calc(100% - var(--nx-width))!important;min-width:0;transition:margin-left .2s ease,width .2s ease}
body:has(#nexus-sidebar) .app-content>header.header-main{left:var(--nx-width)!important;right:0!important;width:calc(100% - var(--nx-width))!important;padding-left:0!important;transition:left .2s ease,width .2s ease}
body.nx-nav-hidden nav#nexus-sidebar{transform:translateX(-100%);visibility:hidden}
body.nx-nav-hidden:has(#nexus-sidebar) .app-wrapper>.app-content,body.nx-nav-hidden:has(#nexus-sidebar) .app-content>header.header-main{margin-left:0!important;left:0!important;width:100%!important}
.nx-backdrop{position:fixed;inset:0;z-index:1002;border:0;background:#10231e70;backdrop-filter:blur(2px);cursor:pointer}
@media(max-width:1199px){
 body nav#nexus-sidebar{width:min(var(--nx-width),calc(100vw - 40px))!important;transform:translateX(-100%);visibility:hidden}
 body.nx-nav-open nav#nexus-sidebar{transform:translateX(0);visibility:visible}
 body:has(#nexus-sidebar) .app-wrapper>.app-content,body:has(#nexus-sidebar) .app-content>header.header-main{margin-left:0!important;left:0!important;width:100%!important}
 body.nx-nav-open{overflow:hidden}
 #nexus-sidebar .nx-nav-link,#nexus-sidebar .nx-sublink{min-height:44px}
}
@media(prefers-reduced-motion:reduce){#nexus-sidebar,#nexus-sidebar *,body:has(#nexus-sidebar) .app-content,body:has(#nexus-sidebar) .header-main{transition:none!important}}
