Electrical panels ought to be located in accessible, dry locations with enough lighting, preventing closets, restrooms
https://postheaven.net/xanderxxea/updating-an-electrical-panel-when-why-and-how
Electrical panels need to be located in accessible, dry locations with sufficient lighting, preventing closets, bathrooms, or cramped areas per safety requirements constantly.