Enclosures with flanges and non-transparent cover