What is the required distance of electrical panel from a door?
The door's swing can't infringe on the clear working space
The situation you need to watch for here is where the door's swing infringes on said 30&quot; wide by 36&quot; deep working space around the panel, as that creates a situation where an unfortunate electrician taking measurements on a live panel can get clobbered into the panel by the door in a most shocking fashion.  You'll also want to make sure that the panel's own door, if present (as some small panels lack one), can open 90° while the door is fully open, as not being able to open that door 90° is also a Code violation (110.26(A)(2)).