The PDF output uses all of the style information in the CSS file, including the information from both media types. However, both the Print and Screen media blocks have a background color specified for row and column headings. The blue background color is picked up because it is specified last.