/* MANTRA V689 — MAIN SIDEBAR FINAL VISUAL OWNER
   UI only. No routing, API, permissions or business logic changes. */

/* MAIN SIDEBAR SHELL: explicitly beat legacy html.v682-auth rules. */
html.v682-auth body #referenceSidebar.reference-sidebar,
html body.login-clean-logged-in #referenceSidebar.reference-sidebar,
body #referenceSidebar.reference-sidebar{
  background:radial-gradient(circle at 20% 0%,rgba(49,151,255,.34),transparent 30%),linear-gradient(180deg,#0b4f92 0%,#073b70 49%,#062e57 100%)!important;
  border-right:1px solid rgba(255,255,255,.08)!important;
  box-shadow:none!important;
}

/* PROFILE area stays main-sidebar blue, not white. */
html.v682-auth body #referenceSidebar .sidebar-logo-wrap,
html body.login-clean-logged-in #referenceSidebar .sidebar-logo-wrap,
body #referenceSidebar .sidebar-logo-wrap{
  background:linear-gradient(180deg,rgba(38,131,243,.33),rgba(7,67,128,.22))!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07)!important;
}
html.v682-auth body #referenceSidebar .sidebar-brand,
html body.login-clean-logged-in #referenceSidebar .sidebar-brand{color:#fff!important}
html.v682-auth body #referenceSidebar .v150-profile-role,
html body.login-clean-logged-in #referenceSidebar .v150-profile-role{color:#b3e93a!important}
html.v682-auth body #referenceSidebar .v496-profile-edit-btn,
html body.login-clean-logged-in #referenceSidebar .v496-profile-edit-btn{
  background:linear-gradient(180deg,rgba(33,119,240,.86),rgba(9,72,154,.86))!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.16)!important;
}

/* EVERY MAIN MENU ITEM has exactly the same rest box. */
html.v682-auth body #referenceSidebar .sidebar-nav .side-nav,
html.v682-auth body #referenceSidebar .sidebar-nav a.side-nav,
html.v682-auth body #referenceSidebar .sidebar-nav #v177PartyAccountsNav,
html.v682-auth body #referenceSidebar .sidebar-nav #v676PartyPriceListNav,
html body.login-clean-logged-in #referenceSidebar .sidebar-nav .side-nav,
html body.login-clean-logged-in #referenceSidebar .sidebar-nav a.side-nav{
  width:100%!important;
  min-height:44px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:4px 11px!important;
  margin:0!important;
  border:1px solid rgba(255,255,255,.09)!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,#0c4c86,#083b6c)!important;
  color:#f7fbff!important;
  box-shadow:none!important;
  opacity:1!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
  text-decoration:none!important;
  transform:none!important;
}

/* REQUESTED: cursor hover on EVERY button = Party Accounts white hover. */
html.v682-auth body #referenceSidebar .sidebar-nav .side-nav:hover,
html.v682-auth body #referenceSidebar .sidebar-nav a.side-nav:hover,
html.v682-auth body #referenceSidebar .sidebar-nav #v177PartyAccountsNav:hover,
html.v682-auth body #referenceSidebar .sidebar-nav #v676PartyPriceListNav:hover,
html body.login-clean-logged-in #referenceSidebar .sidebar-nav .side-nav:hover,
html body.login-clean-logged-in #referenceSidebar .sidebar-nav a.side-nav:hover{
  background:linear-gradient(180deg,#ffffff 0%,#edf6ff 100%)!important;
  border-color:#c7e0fa!important;
  color:#1768c7!important;
  box-shadow:0 5px 14px rgba(8,67,128,.16)!important;
  transform:none!important;
  filter:none!important;
}

/* Active stays blue. Hover of active is also soft white only while cursor is on it. */
html.v682-auth body #referenceSidebar .sidebar-nav .side-nav.active,
html.v682-auth body #referenceSidebar .sidebar-nav a.side-nav.active,
html body.login-clean-logged-in #referenceSidebar .sidebar-nav .side-nav.active,
html body.login-clean-logged-in #referenceSidebar .sidebar-nav a.side-nav.active{
  background:linear-gradient(90deg,#40aff8,#1577ec)!important;
  border-color:rgba(157,220,255,.55)!important;
  color:#fff!important;
  box-shadow:0 7px 16px rgba(7,84,193,.24)!important;
}
html.v682-auth body #referenceSidebar .sidebar-nav .side-nav.active:hover,
html.v682-auth body #referenceSidebar .sidebar-nav a.side-nav.active:hover,
html body.login-clean-logged-in #referenceSidebar .sidebar-nav .side-nav.active:hover,
html body.login-clean-logged-in #referenceSidebar .sidebar-nav a.side-nav.active:hover{
  background:linear-gradient(180deg,#ffffff 0%,#edf6ff 100%)!important;
  border-color:#c7e0fa!important;
  color:#1768c7!important;
  box-shadow:0 5px 14px rgba(8,67,128,.16)!important;
}

/* ALL ICON BOXES identical, including Party Accounts. */
html.v682-auth body #referenceSidebar .sidebar-nav .side-nav>span:first-child,
html.v682-auth body #referenceSidebar .sidebar-nav a.side-nav>span:first-child,
html.v682-auth body #referenceSidebar .sidebar-nav #v177PartyAccountsNav>span:first-child,
html body.login-clean-logged-in #referenceSidebar .sidebar-nav .side-nav>span:first-child,
html body.login-clean-logged-in #referenceSidebar .sidebar-nav a.side-nav>span:first-child{
  width:31px!important;
  height:31px!important;
  min-width:31px!important;
  flex:0 0 31px!important;
  display:grid!important;
  place-items:center!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.075)!important;
  color:#fff!important;
  font-size:16px!important;
  line-height:1!important;
  box-sizing:border-box!important;
}
html.v682-auth body #referenceSidebar .sidebar-nav .side-nav:hover>span:first-child,
html.v682-auth body #referenceSidebar .sidebar-nav a.side-nav:hover>span:first-child,
html body.login-clean-logged-in #referenceSidebar .sidebar-nav .side-nav:hover>span:first-child,
html body.login-clean-logged-in #referenceSidebar .sidebar-nav a.side-nav:hover>span:first-child{
  background:#e8f3ff!important;
  border-color:#c7ddf5!important;
  color:#1768c7!important;
}

/* Right chevron follows hover color. */
html.v682-auth body #referenceSidebar .sidebar-nav .side-nav:hover::after,
html.v682-auth body #referenceSidebar .sidebar-nav a.side-nav:hover::after,
html body.login-clean-logged-in #referenceSidebar .sidebar-nav .side-nav:hover::after,
html body.login-clean-logged-in #referenceSidebar .sidebar-nav a.side-nav:hover::after{
  color:#1768c7!important;
}

/* FOOTER: logo + white readable copy, no dark outer box. */
html.v682-auth body #referenceSidebar .v675-sidebar-footer,
html body.login-clean-logged-in #referenceSidebar .v675-sidebar-footer,
body #referenceSidebar .v675-sidebar-footer{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
html.v682-auth body #referenceSidebar .v675-sidebar-footer-title,
html body.login-clean-logged-in #referenceSidebar .v675-sidebar-footer-title,
body #referenceSidebar .v675-sidebar-footer-title{
  color:#fff!important;
  opacity:1!important;
  text-shadow:0 1px 1px rgba(0,0,0,.15)!important;
}
html.v682-auth body #referenceSidebar .v675-sidebar-footer-sub,
html body.login-clean-logged-in #referenceSidebar .v675-sidebar-footer-sub,
body #referenceSidebar .v675-sidebar-footer-sub{
  color:rgba(255,255,255,.82)!important;
  opacity:1!important;
}
html.v682-auth body #referenceSidebar .v675-sidebar-footer-logo,
html body.login-clean-logged-in #referenceSidebar .v675-sidebar-footer-logo{
  background:#fff!important;
  border:2px solid rgba(255,255,255,.88)!important;
}
