/*
Theme Name: Packgen
Author: Page One Web Solutions
Author URI: http://pageonewebsolutions.com
*/

/* Insert Coin - HTML5 Boilerplate  */
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
html, button, input, select, textarea { font-family: sans-serif; color: #222; }
body { margin: 0; font-size: 1em; line-height: 1.4; position: relative;}

::-moz-selection { background: #407aa5; color: #fff; text-shadow: none; }
::selection { background: #407aa5; color: #fff; text-shadow: none; }

a { color: #4a85af; }
a:focus { outline: none; }
a:hover, a:active { outline: 0; }
abbr[title] { border-bottom: 1px dotted; }
b, strong { font-weight: bold; }
blockquote { margin: 1em 40px; }
dfn { font-style: italic; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
ins { background: #ff9; color: #000; text-decoration: none; }
mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }

q { quotes: none; }
q:before, q:after { content: ""; content: none; }
small { font-size: 85%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }

ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
svg:not(:root) { overflow: hidden; }
figure { margin: 0; }

form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }

label { cursor: pointer; }
legend { border: 0; *margin-left: -7px; padding: 0; white-space: normal; }
button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
button, input { line-height: normal; }
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; *overflow: visible; }
button[disabled], input[disabled] { cursor: default; }
input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; *width: 13px; *height: 13px; }
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
textarea { overflow: auto; vertical-align: top; resize: vertical; }
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { background-color: #f0dddd; }

table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }

.chromeframe { margin: 0.2em 0; background: #ccc; color: black; padding: 0.2em 0; }

/* Press Start - Packgen Specific */
body {font-family:"DejaVuSansCondensed", sans-serif; font-size:14px;}
#wrap {width:960px; margin:0 auto; position: relative;}
h1 {color:#25567a; font:bold 20px "DejaVuSansCondensed", sans-serif; background:url(images/h1Bg.png) right 10px no-repeat; margin:8px 0; padding-right:20px; display: inline-block;}
h2 {color:#181818; font:bold 16px "DejaVuSansCondensed", sans-serif; margin:8px 0; }
h3 {color:#36709A; font:bold 14px "DejaVuSansCondensed", sans-serif; margin:4px 0; }

/* header */
#header {width:100%; height:127px; position: relative;}
#logo {background:url(images/logo.png) no-repeat; width:272px; height:80px; display: block; position: absolute; top:24px; left:29px;}
#phoneHead {position: absolute; left:398px; top:32px; color:#181818; font-size:20px; font-weight:bold; background:url(images/phone.png) left top no-repeat; padding-top:6px;}
#engineeredUSA {position: absolute; top:43px; right:0;}
/* navigation */
#mainNav ul {list-style:none; margin:0; padding:0;}
#menu-main-menu  { position: absolute; bottom:18px; right:-10px;}
#mainNav li {float: left; position: relative;}
#mainNav a {color:#36709a; text-decoration:none; text-transform:uppercase; display: block; padding:4px 8px;  font-family:"EbrimaNormal", sans-serif; font-size:18px;}
#mainNav a:hover { background:#ebebeb;}
#mainNav :hover > a, #mainNav ul ul :hover > a {background:#ebebeb;}

#mainNav .sub-menu {
  display:none; 
  position:absolute; 
  left:0px; 
  top:30px; 
  border:1px solid #d2dce4; 
  background: #ebebeb; /* Old browsers */
  background: -moz-linear-gradient(top,  #ebebeb 0%, #fcfcfc 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ebebeb), color-stop(100%,#fcfcfc)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  #ebebeb 0%,#fcfcfc 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  #ebebeb 0%,#fcfcfc 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  #ebebeb 0%,#fcfcfc 100%); /* IE10+ */
  background: linear-gradient(top,  #ebebeb 0%,#fcfcfc 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ebebeb', endColorstr='#fcfcfc',GradientType=0 ); /* IE6-9 */
  border:solid #e6e6e7; 
  border-width:1px;  
  width:190px; 
  z-index:100; 
  text-indent:0; 
  padding:2px 10px;
}
#mainNav .sub-menu a {display:block; background:url(images/doubleArrow.png) left center no-repeat; padding-left:18px; color:#181818; text-decoration:none; font-size:14px; padding-top:6px; padding-bottom:6px; text-transform:none;  }
#mainNav .sub-menu a:hover {color:#114e88;  background:url(images/doubleArrow.png) left center no-repeat;}
#mainNav .sub-menu li {float:none; border-bottom:1px dashed #bebebe;}
#mainNav .sub-menu li:last-child {border-bottom:none;}
#mainNav .sub-menu .sub-menu {left:190px; top:-3px; width:220px;}

/* slider */
#sliderBg {width:100%; height:360px; background:url(images/sliderBg.png) repeat-x; position: absolute; top:127px; left:0;}
#slideContain {height:360px; clear: }
#slides {height:298px; width:960px; overflow: hidden; position: relative;}
  .slide {position: absolute; top:0; left:0;}
  #slidetwo, #slidethree {display: none;}

#slideTabs {width:100%; height:58px; position: relative;}
#slideMarker {width:20px; height:11px; background:url(images/slideMarker.png) no-repeat; position: absolute; top:0; left:148px;}
a.tab, span.tab {font-size:18px; font-family:"EbrimaNormal", sans-serif; color:#2b2b2b; padding: 18px 0; display: inline-block; width:33%;text-align: center; text-decoration:none; text-transform:uppercase;}

#content {margin:25px 0 0; overflow: hidden;}

.post {margin-bottom:35px; border-bottom:1px dashed #ccc; padding-bottom:35px;}

/* thin blue strip */
#thinBlueStrip {width:100%; height:42px; background:url(images/thinBlueStrip.png) repeat-x; position: absolute; top:127px; left:0;}
#thinnerBlueStrip {width:100%; height:8px; background:url(images/thinBlueStrip.png) repeat-x; position: absolute; top:127px; left:0;}
#thinBlueCenter {width:100%; height:42px; background:url(images/thinBlueCenter.png) no-repeat; color:#fff; text-align: center;} 
#thinBlueCenter .container {margin:0 auto; height:30px; padding-top:12px; width:936px;}
.listLabel {float:left; margin-right:8px;}
#thinBlueCenter ul {margin:0; padding:0; list-style:none; float:left;}
#thinBlueCenter li {float: left; margin:0 10px;}
#thinBlueCenter a {color:#fff; text-decoration:none;}
#thinBlueCenter a:hover {text-decoration:underline;}

/* Product Pages */
.prodImg {float: right; margin:0 10px 10px;}
#requestQuote {background:url(images/requestQuote.png) center top no-repeat; display: block; height:37px; margin:18px 0;}
#prodInfo {clear: both; margin:18px 0;}

#rfqForm {display: none; width:200px; background:#ebebeb; border:1px solid #ccc; padding:20px; position: relative; top:-55px; left:0px; font-size:13px !important;}
#rfqForm label {font-weight:bold;}
#rfqForm .wpcf7-text,
#rfqForm .wpcf7-textarea,
#rfqForm .wpcf7-quiz {
  width:190px;
}
#main #rfqForm p {font:normal 12px/20px "DejaVuSansCondensed", sans-serif; text-align:left;}

.wpcf7-submit {
  background:#5A94BF;
  color:#fff;
  font-size:14px !important;
  display: block;
  margin:0 auto;
  width:120px;
  border:none;
  padding:6px 0;
  -webkit-border-radius:12px;
  -moz-border-radius:12px;
  border-radius:12px;
}

#wpcf7-f194-p115-o1 {width:300px;}
#wpcf7-f194-p115-o1 label {font-weight:bold;}

/* sidebar */
#sidebar {width:240px; float: left; margin-left:15px; display: inline;}

.sideBox {
  border:1px solid #d2dce4; 
  background: #ebebeb; /* Old browsers */
  background: -moz-linear-gradient(top,  #ebebeb 0%, #fcfcfc 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ebebeb), color-stop(100%,#fcfcfc)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  #ebebeb 0%,#fcfcfc 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  #ebebeb 0%,#fcfcfc 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  #ebebeb 0%,#fcfcfc 100%); /* IE10+ */
  background: linear-gradient(top,  #ebebeb 0%,#fcfcfc 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ebebeb', endColorstr='#fcfcfc',GradientType=0 ); /* IE6-9 */
  padding:14px 18px; 
  width:174px; 
  position: relative;
}
.sideHeading {color:#181818; font-size:18px; font-weight:bold; display: block; margin-bottom:10px;}
  #ourProducts .sideHeading {padding-left:16px;}
  .leaf {background:url(images/leaf.png) left no-repeat; width:31px; height:37px; position: absolute; top:8px; left:-6px; }
  .bottomStem {background:url(images/bottomStem.png) no-repeat; width:25px; height:20px; position: absolute; bottom:-9px; right:-6px;}
.sideBox ul {margin:0; padding:0; list-style:none;}
.sideBox li {border-bottom:1px dashed #bebebe;}
.sideBox li:first-child {border-top:1px dashed #bebebe;}
.sideBox a {display: block; background:url(images/doubleArrow.png) left center no-repeat; padding-left:18px; color:#181818; text-decoration:none; font-size:14px; padding-top:6px; padding-bottom:6px;}
.sideBox a:hover {color:#114e88; position: relative; left:1px;}
/* main content */
#main {width:705px; float: left;}

#main p {font:normal 14px/26px "DejaVuSansCondensed", sans-serif; color:#181818; margin:0 0 18px;}
#main ul {margin:10px 0 24px;}
#main li {margin:8px 0;}
.home #main p {text-align:justify;}

.entry-meta {color:#999; font-size:12px; text-transform: uppercase; text-align: right;}

/* footer */
.home #footer {margin-top:100px;}
#footer {clear: both; background:url(images/footer.png) bottom repeat-x; font-size:12px; color:#b8de54; line-height:24px;}
#footer .container {position:relative; width:1060px; height:55px; padding-top:35px; margin:0 auto; background:url(images/footerContainer.png) bottom no-repeat; text-align: right;}
#menu-footer-menu {float:right; margin:0; padding:0;}
#menu-footer-menu li {list-style:none; float:left;}
  #windmill {width:100px; height:151px; background:url(images/windmill.png) no-repeat; position: absolute; left:10px; bottom:0;}
#footer a {color:#fff; font-size:11px; font-weight: bold; margin-left:14px; text-decoration:none;}

#footAddress {position: absolute; left:64px; top:64px; font-size:12px; line-height:20px; text-align:left;}
#footCopyright {position: absolute; right:0px; top:64px; font-size:12px; line-height:20px; text-align:left;}
/* sticky */
html, body {height: 100%;}

#wrap {min-height: 100%;}

#main {overflow:auto;
  padding-bottom: 90px;}  /* must be same height as the footer */

#footer {position: relative;
  margin-top: -90px; /* negative value of footer height */
  height: 90px;
  clear:both;} 

/*Opera Fix*/
body:before {/* thanks to Maleika (Kohoutec)*/
content:"";
height:100%;
float:left;
width:0;
margin-top:-32767px;/* thank you Erik J - negate effect of float*/
}

/* jQuery UI CSS */

/* Layout helpers
----------------------------------*/
.ui-helper-hidden { display: none; }
.ui-helper-hidden-accessible { position: absolute; left: -99999999px; }
.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.ui-helper-clearfix { display: inline-block; }
/* requi#bf0101 comment for clearfix to work in Opera \*/
* html .ui-helper-clearfix { height:1%; }
.ui-helper-clearfix { display:block; }
/* end clearfix */
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }


/* Interaction Cues
----------------------------------*/
.ui-state-disabled { cursor: default !important; }

/* Interaction states
----------------------------------*/
.ui-state-default, .ui-widget-content .ui-state-default { border: 1px solid #cbd7e1;  background:#ededed; font-weight: normal; color: #3b3b3b; outline: none; }
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #020202; text-decoration: none; outline: none; }
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus {background:#ddd;}
.ui-state-hover a, .ui-state-hover a:hover { color: #114E88; text-decoration: none; outline: none; }
.ui-state-active, .ui-widget-content .ui-state-active { border: 1px solid #ccc; font-weight: normal; color: #2F8BBF; outline: none; }
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #fff; background:#5a94bf; outline: none; text-decoration: none; }

/* Tabs
----------------------------------*/
.ui-tabs { zoom: 1; clear:both;}
.ui-tabs .ui-tabs-nav li.ui-tabs-selected { padding-bottom: 1px; border-bottom-width: 0; border-color:#5a94bf;}
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but requi#bf0101 to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
.ui-tabs .ui-tabs-panel {display: block; background: #f8f8f8; border:solid; border-width:2px 1px 1px; border-color:#5a94bf #cbd7e1 #cbd7e1;}
.ui-tabs-panel li {list-style:square;}
.ui-tabs .ui-tabs-hide { display: none !important; }

.ui-tabs-vertical .ui-tabs-nav {float:left; width:194px; margin-right:2px;}
.ui-tabs-vertical .ui-tabs-nav li { clear: left; width: 100%; border-width:1px 1px 0 1px;  margin:0 !important; }
.ui-tabs-vertical .ui-tabs-nav li:last-child {border-bottom:1px solid #cbd7e1 !important;}

.ui-tabs-vertical .ui-tabs-nav li a { display:block;  padding:5px 10px;}
.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-selected { padding-bottom: 0;}
.ui-tabs-vertical .ui-tabs-panel { padding: 15px; float: left; width: 470px;}
.ui-tabs-vertical .ui-tabs-panel ul, .ui-tabs-vertical .ui-tabs-panel ol {margin:0 0 8px; padding:0 5px !important;}
.ui-tabs-vertical .ui-tabs-panel li {line-height:20px; margin:4px 0; background:url(images/blueBullet.png) left 8px no-repeat; list-style:none; padding-left:16px; list-style-position:outside;}

/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter, div.aligncenter {
    display:block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 12px 12px;
}

.alignleft {
    float:left;
    margin: 5px 12px 12px 0;
}

.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

a img.alignright {
    float:right;
    margin: 5px 0 12px 12px;
}

a img.alignnone {
    margin: 5px 12px 12px 0;
}

a img.alignleft {
    float:left;
    margin: 5px 12px 12px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin:0;
    max-width: 98.5%;
    padding:0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size:11px;
    line-height:17px;
    margin:0;
    padding:0 4px 5px;
}

/* fonts */

@font-face {
  font-family: 'DejaVuSansBook';
  src: url('fonts/DejaVuSans-webfont.eot');
  src: local('â˜º'), url('fonts/DejaVuSans-webfont.woff') format('woff'), url('fonts/DejaVuSans-webfont.ttf') format('truetype'), url('fonts/DejaVuSans-webfont.svg#webfontDSbtRiqx') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'DejaVuSansOblique';
  src: url('fonts/DejaVuSans-Oblique-webfont.eot');
  src: local('â˜º'), url('fonts/DejaVuSans-Oblique-webfont.woff') format('woff'), url('fonts/DejaVuSans-Oblique-webfont.ttf') format('truetype'), url('fonts/DejaVuSans-Oblique-webfont.svg#webfontSTz989i1') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'DejaVuSansBold';
  src: url('fonts/DejaVuSans-Bold-webfont.eot');
  src: local('â˜º'), url('fonts/DejaVuSans-Bold-webfont.woff') format('woff'), url('fonts/DejaVuSans-Bold-webfont.ttf') format('truetype'), url('fonts/DejaVuSans-Bold-webfont.svg#webfontM0CxjJgd') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'DejaVuSansBoldOblique';
  src: url('fonts/DejaVuSans-BoldOblique-webfont.eot');
  src: local('â˜º'), url('fonts/DejaVuSans-BoldOblique-webfont.woff') format('woff'), url('fonts/DejaVuSans-BoldOblique-webfont.ttf') format('truetype'), url('fonts/DejaVuSans-BoldOblique-webfont.svg#webfontExxrg6Cg') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'DejaVuSansCondensed';
  src: url('fonts/DejaVuSansCondensed-webfont.eot');
  src: local('â˜º'), url('fonts/DejaVuSansCondensed-webfont.woff') format('woff'), url('fonts/DejaVuSansCondensed-webfont.ttf') format('truetype'), url('fonts/DejaVuSansCondensed-webfont.svg#webfont6cdtbCKn') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'DejaVuSansCondensedOblique';
  src: url('fonts/DejaVuSansCondensed-Oblique-webfont.eot');
  src: local('â˜º'), url('fonts/DejaVuSansCondensed-Oblique-webfont.woff') format('woff'), url('fonts/DejaVuSansCondensed-Oblique-webfont.ttf') format('truetype'), url('fonts/DejaVuSansCondensed-Oblique-webfont.svg#webfontpcZFp8Ie') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'DejaVuSansCondensedBold';
  src: url('fonts/DejaVuSansCondensed-Bold-webfont.eot');
  src: local('â˜º'), url('fonts/DejaVuSansCondensed-Bold-webfont.woff') format('woff'), url('fonts/DejaVuSansCondensed-Bold-webfont.ttf') format('truetype'), url('fonts/DejaVuSansCondensed-Bold-webfont.svg#webfontF8m4EZVn') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'DejaVuSansCondensedBoldObliqu';
  src: url('fonts/DejaVuSansCondensed-BoldOblique-webfont.eot');
  src: local('â˜º'), url('fonts/DejaVuSansCondensed-BoldOblique-webfont.woff') format('woff'), url('fonts/DejaVuSansCondensed-BoldOblique-webfont.ttf') format('truetype'), url('fonts/DejaVuSansCondensed-BoldOblique-webfont.svg#webfontJ4a7jp8r') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
    font-family: 'EbrimaNormal';
    src: url('fonts/ebrima-webfont.eot');
    src: url('fonts/ebrima-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/ebrima-webfont.woff') format('woff'),
         url('fonts/ebrima-webfont.ttf') format('truetype'),
         url('fonts/ebrima-webfont.svg#EbrimaNormal') format('svg');
    font-weight: normal;
    font-style: normal;

}

.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; *line-height: 0; }
.ir br { display: none; }
.hidden { display: none !important; visibility: hidden; }
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
.invisible { visibility: hidden; }
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }

@media print {
  * { background: transparent !important; color: black !important; box-shadow:none !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } 
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } 
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } 
  tr, img { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
}