/* RESET */

html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,
small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,
td{margin:0;padding:0;border:0;outline:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline}

:focus{outline:0}
body{line-height:1;color:black;background:white}
ol,ul{list-style:none}

table{border-collapse:separate;border-spacing:0}
caption,th,td{text-align:left;font-weight:normal}
blockquote:before,blockquote:after,q:before,q:after{content:""}
blockquote,q{quotes:"" ""}

/* GENERAL */

html,body{height:100%}
body{text-align:center;margin:0 auto;font-size:14px;color:#444;font-family:"Open Sans",Arial,sans-serif;background:url(../img/projekt1-layout2_01.html) no-repeat center top #fff}
body:before{content:"";height:100%;float:left;width:0;margin-top:-32767px}

a:link,a:visited{text-decoration:none;color:#f05e0a;border-bottom:1px solid #e5e5e5}
a:hover{border-bottom:none}
a:active{color:#000}

h1,h2,h3,h4,h5{line-height:1.5em;text-transform:uppercase;font-weight:bold;color:#f05e0a;clear:both;font-family:Tahoma,Verdana,Segoe,sans-serif}
h1,.index h2{font-size:30px}
h2,.index h3{font-size:24px}
h3{font-size:18px}
h4{font-size:16px}
h5{font-size:14px}

h1 a:link,h2 a:link,h3 a:link,h4 a:link,h5 a:link,h1 a:visited,h2 a:visited,h3 a:visited,h4 a:visited,h5 a:visited{color:#1c1c1d}

div,nav,header,section,aside,footer,article,hgroup{display:block}

.index p{text-align:left;margin:0 0 40px;line-height:1.5em}

sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;top:-0.5em}

small{font-size:0.8em}

img.bg{min-height:100%;min-width:2200px;width:100%;height:auto;position:fixed;top:0;left:0;z-index:-1}
@media screen and (max-width: 2888px){
	img.bg{left:50%;margin-left:-1100px}
}

/* STICKY FOOTER */

#wrapper{min-height:100%;width:100%;margin:0 auto}

/* === HEAD === */

#head{width:920px;margin:0 auto 40px;text-align:left;*zoom:1;background:#1c1c1d;padding:22px 20px 0;position:relative;border-bottom:1px solid rgba(255,255,255,0.04)}
#head:before,#head:after{content:"";display:table}
#head:after{clear:both}

/* LOGO */

#head h1,#head a#logo{display:block;width:240px;height:57px;float:left;margin:0 0 22px 0}
#head a#logo:link,#head a#logo:visited{border-bottom:none}

/* SEARCH */

#search-form{float:right;position:relative;margin:15px 0 0 0}
#search-form input{display:block;height:30px;padding:0;border:none;-webkit-border-radius:4px;border-radius:4px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}
#search-form input.search{width:5px;font-size:10px;padding:0px 10px;background:#fff;float:left;margin-right:-30px}
#search-form input.search-submit{width:30px;background:url(../img/projekt2-layout_06.gif) no-repeat 8px 8px #fff;overflow:hidden;float:right;text-indent:-500px;cursor:pointer;height:30px}

/* MENU */

#menu{text-transform:uppercase;clear:both;margin:0 0 10px 0;border-top:1px solid #343436}  
#menu ul li{display:inline-block;zoom:1;*display:inline;height:49px;padding:0;position:relative;font-size:12px;margin:-1px 19px 0 0}
#menu ul li:last-child{margin:-1px 0 0 0}
#menu ul li.last{margin:-1px 0 0 0}

#menu li a{padding:0 17px;height:49px;line-height:49px;display:inline-block;*zoom:1;*display:inline;color:#fff;-webkit-border-radius:4px;border-radius:4px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}
#menu li a:link,#menu li a:visited{border-bottom:none}
#menu li:hover a,#menu li a:active,#menu li.current_page_item a,#menu li.current-page-ancestor a{/*background:#fff;color:#1c1c1d*/background:#f05e0a;position:relative;z-index:10}
#menu li.parent:hover a{-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0}
#menu li.parent:hover:after{content:"";display:block;width:4px;height:4px;position:absolute;top:45px;right:-4px;background:url(../img/projekt2-layout_04.gif) no-repeat 0 0}

#menu li ul{display:none;position:absolute;top:49px;left:0;z-index:5;background:#f05e0a;padding:12px 0;-webkit-box-shadow:0px 3px 6px rgba(0,0,0,0.55);box-shadow:0px 3px 6px rgba(0,0,0,0.55);-webkit-border-radius:4px;border-radius:4px;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}
#menu li:hover ul{display:block}
#menu li ul li{height:30px;margin:0;display:block}
#menu li:hover ul li a{height:30px;line-height:30px;padding:0 25px 0 11px;display:block;-webkit-border-radius:0;border-radius:0;white-space:nowrap;color:#000;background:#f05e0a}
#menu li:hover ul li:hover a,#menu li:hover ul li.current_page_item a,#menu li ul li.current-page-ancestor a{color:#fff}

/*  */

#predmet-bar{width:130px;background:#1c1c1d;-webkit-border-radius:4px;border-radius:4px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;padding:25px 20px;float:left}
#content #predmet-bar li{margin:0 0 22px;padding:0 0 22px;border-bottom:1px solid #343436}
#content #predmet-bar li:last-child{border:none}
#content #predmet-bar li.last{border:none}
#content #predmet-bar li li{margin:0 0 10px;padding:0;border:none;background:none}

#predmet-bar li a{border:none;color:#999;display:block;padding:3px 0 3px 30px}
#predmet-bar li#popis a{background:url(../img/projekt2-layout_09.gif) no-repeat 0 0}
#predmet-bar li#popis.current_page_item a,#predmet-bar li#popis.current_page_parent a{background:url(../img/projekt2-layout_10.gif) no-repeat 0 0}
#predmet-bar li#studijni-materialy a{background:url(../img/projekt2-layout_11.gif) no-repeat 0 2px;padding:0 0 6px 30px}
#predmet-bar li#studijni-materialy.current_page_item a,#predmet-bar li#studijni-materialy.current_page_parent a{background:url(../img/projekt2-layout_12.gif) no-repeat 0 2px}
#predmet-bar li#vyucujici a{background:url(../img/projekt2-layout_13.gif) no-repeat 0 0}
#predmet-bar li#vyucujici.current_page_item a,#predmet-bar li#vyucujici.current_page_parent a{background:url(../img/projekt2-layout_14.gif) no-repeat 0 0}

#predmet-bar li li a,#predmet-bar li.current_page_parent li a{font-size:12px;color:#b2b2b2;background:none !important;line-height:1.5em}

#predmet-bar li li a{padding:0 0 0 38px !important}

#predmet-bar li.current_page_item a,#predmet-bar li.current_page_parent li.current_page_item a,#predmet-bar a:hover,#predmet-bar li.current_page_parent li a:hover{color:#fff}
#predmet-bar li.current_page_parent a{color:#f05e0a;line-height:1em}

#custom-content{width:670px;float:right}

/* === PAGE === */

#page{width:880px;overflow:auto;padding:35px 40px 167px;margin:0 auto 40px;background:#fff;text-align:left}    

/* CONTENT */

#content,article{width:100%;margin:0;text-align:left;position:relative;*zoom:1}
#content:before,#content:after,article:before,article:after{content:"";display:table}
#content:after,article:after{clear:both}

.index #content{width:612px;float:left}

#content.company{text-align:center}

#content h1{margin:0 0 30px}
#content.company h1{text-align:left}
#content h2,#content h3,#content h4,#content h5{margin:0 0 20px}
#content p{margin:0 0 20px;line-height:1.5em}
#content img{margin-bottom:20px}

/*  */

img#eu{display:block;margin:50px auto 50px;clear:both}

/* BANNER */

#banner{margin:0 0 25px;position:relative}
#banner h3{font-size:18px;position:absolute;top:50%;left:50%;margin:-40px 0 0 -150px;padding:12px 0 0 100px;width:200px;height:68px;background:url(../img/projekt2-layout_07.png) no-repeat 25px 11px rgba(255,255,255,0.7);-webkit-border-radius:4px;border-radius:4px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}
#content #banner img{margin:0;display:block}

/* ARTICLES */

.index #content article{width:290px;height:382px;overflow:hidden;margin:0 15px 50px 0;float:left}
.index #content article:nth-child(2n){margin:0 15px 50px 0}
.index #content article.even{margin:0 0 50px 0}

.index #content article a.img{display:block;width:290px;height:150px;background:#dbdbdb;border-bottom:none;margin:0 0 10px;position:relative}

.entry-meta{font-size:12px;margin:0 0 20px}

.date{font-size:11px;color:#999;background:url(../img/projekt2-layout_05.gif) no-repeat 0 0;display:block;padding:0 0 0 25px;margin:0 0 15px;height:16px;line-height:19px}

/* JOBS */

#content article{margin:0 0 20px}
#content article h4{margin:0}

span.zadadavatel{color:#f05e0a;font-size:12px;display:block;margin:-15px 0 0 0}
span.zadadavatel .misto{padding:0 0 0 15px}

/* TEAM */

.desc{margin:0 0 40px;*zoom:1}
.desc:before,.desc:after{content:"";display:table}
.desc:after{clear:both}

.desc table{width:280px;float:left;font-size:11px}
.desc table td{padding:0 0 5px}
.desc table strong{text-transform:uppercase}
.fortitle,.desc table strong{color:#f05e0a;font-size:14px;font-weight:bold}
.desc table strong span{text-transform:none}

.desc .cont{width:550px;padding:0 0 20px 40px;float:right;border-bottom:1px solid #d9d9d9}
.desc .cont.push{padding:17px 0 20px 40px}

/* TEACHERS */

a.teacher{display:block;position:relative;width:200px;height:200px;line-height:200px;vertical-align:middle;text-align:center;float:left;background:#ccc;overflow:hidden;border:none;margin:0 30px 30px 0;-webkit-border-radius:200px;border-radius:200px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}
a.teacher:nth-child(3n){margin:0 0 30px}
a.teacher.third{margin:0 0 30px}

a.teacher img{position:absolute;top:0;left:0;z-index:3}
a.teacher span{display:inline-block;*zoom:1;*display:inline;line-height:1.2em;position:relative;z-index:6;padding:6px 12px;color:#444;background:rgba(255,255,255,0.7);-webkit-border-radius:4px;border-radius:4px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}

/* PARTNERS */

a.company{display:inline-block;*zoom:1;*display:inline;width:280px;height:160px;margin:0 16px 30px 0;border:none}
a.company:nth-child(3n+1){margin:0 0 30px}
a.company.third{margin:0 0 30px}
#content a.company img{margin:0}

/* CONTACT */

.contact{width:280px;float:left}

#gmap{width:570px;height:300px;float:right}

/* FORM */

div.wpcf7{width:450px;margin:0 auto 20px}

#content div.wpcf7 fieldset ul{margin:0;padding:0}
#content div.wpcf7 fieldset li{clear:both;display:block;background:none;margin:6px 0px;padding:0 0 6px;line-height:1em;position:relative;zoom:1;border-bottom:1px dashed #e4e4e4}
div.wpcf7 fieldset li:before,div.wpcf7 fieldset li:after{content:"";display:table}
div.wpcf7 fieldset li:after{clear:both}

div.wpcf7 fieldset span.required{color:#f50000;font-weight:bold}

div.wpcf7 fieldset label{display:block;height:36px;line-height:36px;text-align:left;width:148px;float:left;padding-left:2px}

div.wpcf7 fieldset input{height:16px}
div.wpcf7 fieldset input.customFile{height:34px}
div.wpcf7 fieldset input,div.wpcf7 fieldset textarea,div.wpcf7 fieldset select{color:#666;font-weight:normal;padding:8px 6px;width:280px;float:right;font-size:11px}
div.wpcf7 fieldset .wpcf7-form-control-wrap input,div.wpcf7 fieldset textarea,div.wpcf7 fieldset select{-webkit-border-radius:2px;-khtml-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background:#fff;border:1px solid #ccc;margin:1px}
div.wpcf7 fieldset .wpcf7-form-control-wrap input:focus,div.wpcf7 fieldset textarea:focus,div.wpcf7 fieldset select:focus{}

div.wpcf7 fieldset select{width:294px}
div.wpcf7 fieldset select:focus{margin-bottom:-1px}

div.wpcf7 li.textarea{height:auto}
div.wpcf7 li.textarea textarea{height:125px;overflow:auto;font-family:"Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif}

#content img.wpcf7-captcha-captcha-6{float:right;margin:0 15px 0 0;border:3px solid #fff;background:#fff;height:28px;width:84px;-webkit-border-radius:2px;-khtml-border-radius:2px;-moz-border-radius:2px;border-radius:2px;-moz-box-shadow:1px 1px 2px #aaa;box-shadow:1px 1px 2px #aaa;-webkit-box-shadow:1px 1px 2px #aaa}
div.wpcf7 span.captcha-6 input{width:46px;margin-right:129px}
div.wpcf7 span.captcha-6 input:focus{margin-right:128px}

span.wpcf7-list-item{display:block;text-align:left}

span.wpcf7-checkbox{width:244px;float:right}
span.wpcf7-checkbox span.wpcf7-list-item input{clear:both;float:none;height:auto;width:auto}

#content div.wpcf7 li.submit{position:relative;padding:0;border:none}
#content div.wpcf7 li.submit div p{width:100%;height:36px;line-height:36px;text-align:center}
div.wpcf7 fieldset input.form_submit,.fakeButton{background:#1e1a1b;border:none;color:#fed300;font-weight:bold;height:36px;line-height:36px;margin:10px auto;float:none;padding:0;text-transform:uppercase;text-align:center;width:125px;cursor:pointer;display:block;-webkit-border-radius:2px;-khtml-border-radius:2px;-moz-border-radius:2px;border-radius:2px}
div.wpcf7 fieldset input.form_submit:hover,.fakeButton{color:#fff}

#content img.ajax-loader{padding:0;border:none;background:none;position:absolute;top:53px;left:300px}

.wpcf7-not-valid-tip,.wpcf7-validation-errors{margin:2px 0px 0px 2px;background:#f50000;-webkit-border-radius:2px;-khtml-border-radius:2px;-moz-border-radius:2px;border-radius: 2px;color:#fff;font-size:11px;height:22px;line-height:22px;padding:2px 6px;position:absolute;z-index:100;top:41px;left:0}
.wpcf7-response-output{position:relative;top:auto;margin:10px 0px;height:auto;line-height:16px}
.wpcf7-mail-sent-ok{position:relative;margin:10px 0px;height:auto;line-height:16px;background:#1fbb00;-webkit-border-radius:2px;-khtml-border-radius:2px;-moz-border-radius:2px;border-radius:2px;color:#fff;font-size:11px;padding:2px 6px;z-index:100}

/* LISTS */

#content ul{margin:0}
#content ul li,#content ol li{line-height:1.4em;margin: 0 0 15px}
#content ul li{background:url(../img/projekt2-layout_15.gif) no-repeat 4px 0.5em;padding:0 0 0 20px}  

#content ul li p,#content ol li p{margin:0}

#content ol{counter-reset:item;margin:0 0 0 20px}
#content ol li{list-style-type:decimal;position:relative}
#content ol li ul li{list-style:none}
#content ol li:nth-child(1n){list-style:none}
#content ol li:nth-child(1n):before{content:counter(item)".";counter-increment:item;color:#f05e0a;position:absolute;top:0;left:-20px;font-weight:bold;font-style:italic;font-family:Georgia,Times,"Times New Roman",serif}
#content ol li:nth-child(1n) ul li:before{display:none}

/* COMMENTS */

#content ol.commentlist{margin:0 0 30px}
#content ol.commentlist li{margin:0;padding:0;list-style:none}
#content ol.commentlist li:nth-child(1n):before{display:none}

#content ol.commentlist li li{margin:0 0 20px 40px}
#content ol.commentlist li ul.children{margin:20px 0 0 0}

.comment-author{padding:8px;background:#1c1c1d;color:#fff}
.comment-author,.comment-author cite,.comment-author a{height:40px;line-height:40px;vertical-align:middle}
#content .comment-author img{margin:0 20px 0 0;float:left}

a.commentmetadata{margin:0 0 0 20px;font-size:10px;color:#fff;border:none}

.comment-body,.reply{padding:12px 8px;background:#fff}
.reply{font-size:12px;background:#ebebeb}
.reply a{border:none}

em.comment-awaiting-moderation{display:block;padding:8px;color:#fff;background:#bd2716;font-size:12px}

#respond{padding:20px 0 0 0}

#respond p{zoom:1;position:relative}
#respond p:before,#respond p:after{content:"";display:table}
#respond p:after{clear:both}

p.comment-notes,p.form-allowed-tags{padding:8px;font-size:12px;background:#1c1c1d;color:#fff;-webkit-border-radius:4px;border-radius:4px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}
p.form-allowed-tags{width:612px;float:right}
p.form-allowed-tags code{font-family:"Courier New",Courier,"Lucida Sans Typewriter","Lucida Typewriter",monospace}

#respond label,#respond input{display:block;width:160px;height:36px;line-height:36px;float:left}
#respond label{cursor:pointer}
#respond input{width:320px;padding:0px 8px;float:right;margin:0 290px 0 0}
#respond textarea{float:right;padding:8px;width:610px}

#respond input#submit,.quiz .button-secondary{width:170px;text-transform:uppercase;font-size:12px;font-weight:bold;cursor:pointer;display:block;border:none;background:#f05e0a;color:#fff;margin:0 458px 0 0;-webkit-border-radius:4px;border-radius:4px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}

#respond .required{color:#bd2716}

.navigation{zoom:1;margin:0 0 10px;font-size:12px}
.navigation:before,.navigation:after{content:"";display:table}
.navigation:after{clear:both}

.nav-previous,.nav-next{float:left;width:50%}
.nav-next{float:right;text-align:right}

.nav-previous a,.nav-next a{display:block;height:30px;line-height:30px;border:none}

#respond label.error{width:auto;right:0;left:auto;height:30px;line-height:30px;top:0}

/* TEST */

.quiz{margin:0 0 10px}
.quiz .wpst_question{margin:0 0 30px;padding:20px;background:#f7f7f7;-webkit-border-radius:4px;border-radius:4px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}

#content .quiz .wpst_question li{margin:0 0 10px;padding:10px 15px;background:#fff;border-bottom:6px solid #e0e0e0;*zoom:1;-webkit-border-radius:4px;border-radius:4px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}
.wpst_question li:before,.wpst_question li:after{content:"";display:table}
.wpst_question li:after{clear:both}

.quiz .wpst_question p{padding:0px 15px}
.quiz .wpst_question .question{display:block;background:#333;padding:10px 15px;line-height:1.5em;margin:0 0 15px;color:#fff;-webkit-border-radius:4px;border-radius:4px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}
.quiz .wpst_question label,.quiz .wpst_question input{cursor:pointer}
.quiz .wpst_question input{float:left}
.quiz .wpst_question label{display:block;width:95%;float:right;padding:10px 0px;margin:-10px 0px}

.quiz .button-secondary{height:36px;line-height:36px}

/* NEXTGEN */

.ngg-album-compact h4 {
	margin-top: 10px !important;	
}

/* TABLE */

table{width:100%;margin-bottom:20px;line-height:1.4em} 
table th{font-weight:bold;padding:0 5px 15px 0}
table td{padding:0 5px 10px 0}   

/* === SIDEBAR === */

#side{width:210px;float:right;font-size:11px;text-align:left;margin:0}

#side h3{font-size:14px;line-height:1.2em;margin:0 0 15px;background:url(../img/projekt2-layout_05.gif) no-repeat 0 0;padding:0 0 0 25px}
#side h4{font-size:12px}

#side article{padding:0 0 25px;margin:0 0 28px;border-bottom:1px solid #d9d9d9}
#side article:last-child{border:none}
#side article.last{border:none}
#side article header{color:#a6a6a6;line-height:1.5em}
.index #side article p{margin:0}

#side article a{color:#444;border-bottom:none}
#side article a:hover{border-bottom:1px solid #e5e5e5}
#side article a:active{color:#e52b38}

/* === FOOTER === */

#footer{font-size:10px;height:127px;text-transform:uppercase;padding:40px 20px 0px;color:#7d7d7e;width:920px;position:relative;background:#1c1c1d;text-align:center;margin:-207px auto 0}

#footer a{color:#aeaeb0}
#footer a:link,#footer a:visited{border-bottom:none}
#footer a:hover{border-bottom:1px solid #e5e5e5}
#footer a:active{color:#333}

#footer nav{margin-bottom:20px}
#footer nav li{display:inline-block;padding:0px 10px}

#side p,#footer p{line-height:1.5em}

#footer p{float:left;width:500px}
#footer p#copy{width:165px;text-align:left;margin:-30px 46px 0 0;height:79px;line-height:79px;background:url(../img/projekt2-layout_19.jpg) no-repeat 94px 0}

a#author{cursor:pointer;display:inline-block;*zoom:1;*display:inline;float:right;color:#7d7d7e;margin:-5px 0 0 0;height:20px;line-height:20px;background:url(../img/projekt2-layout_22-2.gif) no-repeat right 1px;padding:0 80px 0 0}
a#author:hover{border-bottom:none;color:#ccc}
a#author:active{color:#808080}

/* === UTILITY === */

.clear{clear:both;line-height:0px;font-size:0px;height:0px;margin:0}

.fl,.alignleft{float:left}
#content .alignleft{margin:0 30px 0 0}

.fr,.alignright{float:right}
#content .alignright{margin:0 0 0 30px}

.inlay{width:940px;margin:0 auto;*zoom:1}
.inlay:before,.inlay:after{content:"";display:table}
.inlay:after{clear:both}

strong,.strong{font-weight:bold}

.nomargin{margin:0}

.block{display: block;}

.rounded{position:relative;behavior:url(PIE.html)}

::selection{background:#f05e0a;color:#fff}
::-moz-selection{background:#f05e0a;color:#fff}

/* FILETYPES */

a[href$=".pdf"]{background:url(../img/projekt2-layout_16.gif) no-repeat left 50%;padding:0px 0px 0px 20px;margin-left:2px}
a[href$=".doc"],a[href$=".docx"],a[href$=".rtf"],a[href$=".odt"]{background:url(../img/projekt2-layout_17.gif) no-repeat left 50%;padding:0px 0px 0px 20px;margin-left:2px}
a[href$=".xls"],a[href$=".xlsx"],a[href$=".ods"]{background:url(../img/projekt2-layout_18.gif) no-repeat left 50%;padding:0px 0px 0px 20px;margin-left:2px}

/* PRINT */

@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}
}
