How to get a transparent background in detail view in layout

Is there a trick to make overlapping detail views (in layouts) have fully transparent backgrounds when printing? The backgrounds show when printing to .pdf and .png files.

View>capture>to file removes the background, but leaves the border lines framing each detail view, so that method does not seem to work very well for me.