Electrical panels ought to be found in accessible, dry locations with adequate lighting, preventing closets, restrooms
https://www.slideserve.com/nelsearfwo/upgrading-an-electrical-panel-when-why-and-how
Electrical panels ought to be located in available, dry locations with adequate lighting, avoiding closets, bathrooms, or confined spaces per security requirements always.