Enclosures with flanges and transparent cover