To get higher quality materials, brews/commands or medals, you need to combine four identical items of the same quality. By combining them you will get one item of the next quality level. Combining will happen instantly and will only cost the four items used for it.