/* MANTRA V688 — sidebar hover consistency + Party Accounts same dark sidebar + footer text visibility. UI ONLY. */

/* MAIN ADMIN: keep existing dark sidebar shell; only normalize row/hover/icon/footer visuals. */
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;
}
body #referenceSidebar .sidebar-logo-wrap{
  background:linear-gradient(180deg,rgba(38,131,243,.33),rgba(7,67,128,.22))!important;
  border-color:rgba(255,255,255,.10)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07)!important;
}
body #referenceSidebar .sidebar-brand{color:#fff!important}
body #referenceSidebar .v150-profile-role{color:#b3e93a!important}
body #referenceSidebar .v496-profile-edit-btn{
  background:linear-gradient(180deg,rgba(33,119,240,.86),rgba(9,72,154,.86))!important;
  border-color:rgba(255,255,255,.16)!important;
  color:#fff!important;
}

/* Every menu row: one consistent dark box at rest. */
body #referenceSidebar .side-nav,
body #referenceSidebar a.side-nav,
body #referenceSidebar #v177PartyAccountsNav,
body #referenceSidebar #v676PartyPriceListNav{
  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;
  cursor:pointer!important;
  opacity:1!important;
  box-sizing:border-box!important;
  text-decoration:none!important;
}

/* Requested hover: EVERY row becomes the same soft white card as Party Accounts screenshot. */
body #referenceSidebar .side-nav:hover,
body #referenceSidebar a.side-nav:hover,
body #referenceSidebar #v177PartyAccountsNav:hover,
body #referenceSidebar #v676PartyPriceListNav:hover{
  background:linear-gradient(180deg,#ffffff,#edf6ff)!important;
  border-color:#c7e0fa!important;
  color:#1768c7!important;
  box-shadow:0 5px 14px rgba(8,67,128,.16)!important;
  transform:none!important;
}

/* Active page remains the normal blue selected state. */
body #referenceSidebar .side-nav.active,
body #referenceSidebar a.side-nav.active,
body #referenceSidebar #v177PartyAccountsNav.active,
body #referenceSidebar #v676PartyPriceListNav.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;
}

/* All icon boxes are identical — including Party Accounts. */
body #referenceSidebar .side-nav>span:first-child,
body #referenceSidebar a.side-nav>span:first-child,
body #referenceSidebar #v177PartyAccountsNav>span:first-child,
body #referenceSidebar #v676PartyPriceListNav>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;
}
body #referenceSidebar .side-nav:hover>span:first-child,
body #referenceSidebar a.side-nav:hover>span:first-child,
body #referenceSidebar #v177PartyAccountsNav:hover>span:first-child,
body #referenceSidebar #v676PartyPriceListNav:hover>span:first-child{
  background:#e8f3ff!important;
  border-color:#c7ddf5!important;
  color:#1768c7!important;
}
body #referenceSidebar .side-nav.active>span:first-child,
body #referenceSidebar a.side-nav.active>span:first-child,
body #referenceSidebar #v177PartyAccountsNav.active>span:first-child,
body #referenceSidebar #v676PartyPriceListNav.active>span:first-child{
  background:rgba(255,255,255,.14)!important;
  border-color:rgba(255,255,255,.18)!important;
  color:#fff!important;
}
body #referenceSidebar .side-nav:hover::after,
body #referenceSidebar a.side-nav:hover::after,
body #referenceSidebar #v177PartyAccountsNav:hover::after{color:#1768c7!important}

/* Bottom Mantra branding: no outer box, logo retained, text clearly white. */
body #referenceSidebar .v675-sidebar-footer{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body #referenceSidebar .v675-sidebar-footer-title{
  color:#fff!important;
  opacity:1!important;
  text-shadow:0 1px 1px rgba(0,0,0,.12)!important;
}
body #referenceSidebar .v675-sidebar-footer-sub{
  color:rgba(255,255,255,.74)!important;
  opacity:1!important;
}
body #referenceSidebar .v675-sidebar-footer-logo{
  background:#fff!important;
  border:2px solid rgba(255,255,255,.85)!important;
}

/* PARTY ACCOUNTS standalone page: force SAME dark shell as main sidebar, never white. */
body .side{
  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;
}
body .side .brand,
body .side .brand-card{
  background:linear-gradient(180deg,rgba(38,131,243,.33),rgba(7,67,128,.22))!important;
  border-color:rgba(255,255,255,.10)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07)!important;
}
body .side .brand h1,
body .side .brand-card h1{color:#fff!important}
body .side #sideProfileRole{color:#b3e93a!important}
body .side .v497-profile-edit{
  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;
}
body .side .nav a{
  background:linear-gradient(180deg,#0c4c86,#083b6c)!important;
  color:#f7fbff!important;
  border:1px solid rgba(255,255,255,.09)!important;
  box-shadow:none!important;
}
body .side .nav a:hover{
  background:linear-gradient(180deg,#ffffff,#edf6ff)!important;
  color:#1768c7!important;
  border-color:#c7e0fa!important;
  box-shadow:0 5px 14px rgba(8,67,128,.16)!important;
}
body .side .nav a.active{
  background:linear-gradient(90deg,#40aff8,#1577ec)!important;
  color:#fff!important;
  border-color:rgba(157,220,255,.55)!important;
  box-shadow:0 7px 16px rgba(7,84,193,.24)!important;
}
body .side .nav a .dot{
  width:31px!important;height:31px!important;min-width:31px!important;flex:0 0 31px!important;
  display:grid!important;place-items:center!important;
  background:rgba(255,255,255,.075)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  color:#fff!important;border-radius:10px!important;
}
body .side .nav a:hover .dot{
  background:#e8f3ff!important;
  border-color:#c7ddf5!important;
  color:#1768c7!important;
}
body .side .nav a.active .dot{
  background:rgba(255,255,255,.14)!important;
  border-color:rgba(255,255,255,.18)!important;
  color:#fff!important;
}
body .side .nav a:hover::after{color:#1768c7!important}
body .side .v681-sidebar-footer{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body .side .v681-sidebar-footer b{color:#fff!important;opacity:1!important}
body .side .v681-sidebar-footer small{color:rgba(255,255,255,.74)!important;opacity:1!important}
body .side .v686-footer-img{background:#fff!important;border:2px solid rgba(255,255,255,.85)!important}
