Have you tried little pill bags? I slip them in my wallet or my pocket so I always have whatever I need handy. They’re pretty sturdy so you could reuse them. I’ve accidentally washed them a few times and the pills inside were fine.
https://www.amazon.com/Dose-Disposable-Pill-Pouches-count/dp/B001FVG5QQ