/* Desktop and mobile menu only. Preserve brand blue elsewhere. */
.app > aside nav button,
.app > aside button.logout,
.app .rr-menu-toggle {
  background:#fff!important;
  background-color:#fff!important;
  color:#172F69!important;
  border:1px solid #d7e0ee!important;
  box-shadow:none!important;
  transition:background-color .16s ease,border-color .16s ease,transform .16s ease!important;
}
.app > aside nav button :is(span,b,strong,small,svg),
.app > aside button.logout :is(span,b,strong,small,svg),
.app .rr-menu-toggle :is(span,svg) {
  color:#172F69!important;
  stroke:currentColor!important;
}
/* Active item stays white, distinguished by a navy left accent. */
.app > aside nav button.active {
  background:#fff!important;
  background-color:#fff!important;
  color:#172F69!important;
  border-color:#8faad2!important;
  border-left:4px solid #172F69!important;
  font-weight:800!important;
}
@media (hover:hover) and (pointer:fine) {
 .app > aside nav button:not(:disabled):hover,
 .app > aside button.logout:not(:disabled):hover,
 .app .rr-menu-toggle:not(:disabled):hover {
   background:#edf3ff!important;
   background-color:#edf3ff!important;
   color:#172F69!important;
   border-color:#a7bee0!important;
   transform:translateY(-1px)!important;
   box-shadow:none!important;
 }
 .app > aside nav button:hover :is(span,svg),
 .app > aside button.logout:hover :is(span,svg),
 .app .rr-menu-toggle:hover :is(span,svg) {color:#172F69!important;stroke:currentColor!important}
}
@media (prefers-reduced-motion:reduce) {
 .app > aside nav button,.app > aside button.logout,.app .rr-menu-toggle {transition:none!important}
 .app > aside nav button:hover,.app > aside button.logout:hover,.app .rr-menu-toggle:hover {transform:none!important}
}

/* High-specificity override for the actual React aside navigation and sign-out,
   plus the mobile top-bar Menu toggle. All white even when other global button rules apply. */
html body #root .app > aside nav button,
html body #root .app > aside button.logout,
html body #root .app main .top button.rr-menu-toggle,
html body #root .app > aside button.rr-drawer-close {
 background:#FFFFFF!important;background-color:#FFFFFF!important;
 color:#172F69!important;border-color:#D7E0EE!important;
 box-shadow:none!important;
}
html body #root .app > aside nav button *,
html body #root .app > aside button.logout *,
html body #root .app main .top button.rr-menu-toggle *,
html body #root .app > aside button.rr-drawer-close * {
 color:#172F69!important;stroke:currentColor!important;
}
@media (hover:hover) and (pointer:fine) {
 html body #root .app > aside nav button:hover:not(:disabled),
 html body #root .app > aside button.logout:hover:not(:disabled),
 html body #root .app main .top button.rr-menu-toggle:hover:not(:disabled),
 html body #root .app > aside button.rr-drawer-close:hover:not(:disabled) {
  background:#EDF3FF!important;background-color:#EDF3FF!important;
  color:#172F69!important;border-color:#B8CBE9!important;
  transform:translateY(-1px)!important;box-shadow:none!important;
 }
}

/* Restore the original WHITE hamburger icon; leave menu buttons unchanged. */
@media(max-width:760px){
 html body #root .app .rr-menu-toggle .rr-hamburger-bars i {
  background:#fff!important;background-color:#fff!important;opacity:1!important;
 }
 html body #root .app .rr-menu-toggle span:first-child {
  color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;
 }
}
