/* toolbar sous la topbar */
#ro-filters,
#ro-account_tool{
  position: sticky;
  top: var(--ro-topbar-h);
  z-index: 80; /* en dessous de la topbar si besoin */
  background: var(--ro-bg-0);
  isolation: isolate;       /* stabilise le stacking */

}

/* DASHBOARD : on force un comportement stable */
body.page-template-dashboard #ro-account_tool{
  position: fixed;
  top: var(--ro-topbar-h);
  left: 0;
  right: 0;

  /* sous la topbar mobile (999) mais au-dessus du contenu */
  z-index: 900;
  background: var(--ro-bg-0);
}

/* Desktop/tablette : décale à droite de la sidebar, comme la topbar */
@media (min-width: 441px){
  #ro-filters,
  #ro-account_tool{
     z-index: 45;
    margin-left: var(--ro-sidebar-current-w);
  }
}

/* ====== Dashboard only ====== */
.ro-accountbar__inner{
  display: flex;
  justify-content: flex-end;
  padding: var(--ro-space-12) var(--ro-space-24);
}

@media (max-width: 441px){
    #ro-filters,
    #ro-account_tool{
        z-index: 900;           /* < 999, donc sous la topbar */
    }
    .ro-accountbar__inner{
        padding: var(--ro-space-12) var(--ro-space-16);
    }
}


.ro-accountbar .ro-btn{
  width: auto;
}