/* RESET STYLES */
body{margin:0;padding:0;font-family:sans-serif;}
table{width:100%;border-collapse:collapse;border-spacing:0;}
th,td{vertical-align:top;}
img{border:0;vertical-align:middle;}

/* TEMPLATE STYLES */
body{padding-bottom:80px;text-align:center;color:#333;background:#eaeaea !important;}
#template{width:1024px;margin:25px auto;text-align:left;background:#fff;page-break-before: always;}
#template-cell{padding:10px 20px;}
body table:first-child{margin-top:0 !important;}

h1{margin:20px 0;font-size:22px;}
h2{font-size:20px;margin:10px 0;}
h2 strong{color:#0088CC;}
h3{font-size:18px;}
p{font-size:14px;line-height:1.4;}

/* Template Header */
#template-header{border-bottom:1px solid #C4C4C4;}
#template-header td{padding:0 10px 10px;}
#template-header h1{margin:0 0 15px;}
#template-header h2{margin:0 0 5px;font-size:17px;}
/*#template-header img{max-width:100%;height:auto;}*/

#template-header .col-1{width:25%;padding-left:0;}
#template-header .col-2{width:50%;text-align:center;}
#template-header .col-3{width:25%;padding-right:0;text-align:right;}
#template-header .col-3 h1,
#template-header .col-3 p{margin:0 0 5px;padding:5px 5px 5px 10px;text-align:left;background:#eee;border:1px solid #eee;}
#template-header .col-3 h1{font-size:22px;line-height:1.2;}
#template-header .col-3 p{font-size:12px;line-height:1.4;}

#template-header .logos img {
    height: auto;
    margin: 6px 2px 6px;
}

/* Template Footer */
#template-footer{width:800px;margin:0 auto;border-top:1px solid #C4C4C4;}
#template-footer .col-1{text-align:left;}
#template-footer .col-2{text-align:right;}
#template-footer p{margin:8px 0;font-size:12px;line-height:1.5;}

/* Report Summary */
#report-summary .accreditation{padding:5px 10px 5px 0;font-size:12px;border-bottom:1px solid #C4C4C4;}
#report-summary .certificate{padding:5px 0 5px 10px;font-size:12px;text-align:right;border-bottom:1px solid #C4C4C4;}
#report-summary .col-1{width:35%;padding:0 10px 0 0;vertical-align:top;text-align:left;}
#report-summary .col-2{width:25%;padding:0 10px 0 0;vertical-align:top;text-align:left;}
#report-summary .col-3{width:30%;padding:0;vertical-align:top;text-align:left;}
#report-summary .col-4{width:180px;padding:0;vertical-align:top;text-align:right;}
#report-summary tbody tr.images td.col-1 img{text-align:left;margin-bottom:5px;}
#report-summary tbody tr.images td.col-2 img{text-align:right;margin-bottom:5px;}
#report-summary tbody tr.images td.col-2{padding: 0 0 0 0 !important;}

#report-summary .col-1 .descriptor{}
#report-summary .col-2 .descriptor{text-align:left;}

#report-summary tr.images td.col-1{width:50%;}
#report-summary tr.images td.col-2{width:50%;}

.bio-compounds tr td, .compounds tbody tr{border-top:1px solid #C4C4C4;}
.bio-compounds tr:last-child, 
.compounds tbody tr:last-child{border-bottom:1px solid #C4C4C4;}
.bio-compounds tr th,
.bio-compounds tr td,
.compounds tr th,
.compounds tr td{padding:3px 0 !important;font-size:11px;}
.qc_report tr td{text-align:center;}
.qc_report tr td:first-child{text-align:left;}
table#bio.compounds tr td:nth-child(1){width:20%;}
table#bio.compounds tr td:nth-child(2){width:10%;}
#rsa.compounds td:nth-child(4){padding-right:3px !important;}
#rsa.compounds td:nth-child(5){padding-left:3px !important;border-left:1px solid #C4C4C4;}

/* Descriptors */
.descriptor{margin:5px 0 10px;background:#fff;border:3px solid #333;}
.descriptor th{padding:5px 5px 0px 5px;}
.descriptor th{margin-bottom:0px !important;padding-bottom:0px !important;}
.descriptor td{padding-left:5px;}
.descriptor h5{margin:0;font-size:12px;font-weight:normal;color:#777;}
.descriptor p{font-size:11px;font-weight:normal;margin:0 !important;}
.descriptor{height:150px;min-height:150px;}
.descriptor tr:first-child{height:20px !important;vertical-align:top !important;}
.descriptor tr td{vertical-align: top;}
body.oldpotency table.descriptor{height:auto !important;min-height:auto !important;}

/* Entry Table */
.entry-table td{padding:0;}

/* Checklist Tables */
.checklist-table {
    width: 100%;
}
.checklist-table td {
    padding: 2px 8px 2px 0;
}
.checklist-table h4 {
    margin: 0;
}
.checklist-table p {
    margin: 0;
}

/* Data Tables */
.qc_report,.entry-table{width:100%;}
.qc_report th,
.qc_report td,
.entry-table th,
.entry-table td{vertical-align:middle;padding:5px 2px;text-align:center;font-size:11px;border:1px solid #999;}
.qc_report th,
.entry-table th{border-bottom:3px solid #999;}

.qc_report tr td:first-child {width:25%;}
.qc_report tr td:nth-child(2) {}
.qc_report tr td:nth-child(3) {}
.qc_report tr td:last-child {}

/* Residual Solvents Analysis */
.analysis-list{width:100%;margin:0;}
.analysis-list th{padding:0;}
.analysis-list th h3{margin:5px 0;color:#0088CC;}
.analysis-list th small{padding:0 0 5px 0;}
.analysis-list th h3 .green{color:#009900;}
.analysis-list th h3 .yellow{color:#FFCC00;}
.analysis-list th h3 .black{color:#000000;}
.analysis-list th p{margin:4px 0;font-size:12px;font-weight:normal;}
.analysis-list td{width:50%;padding:0 5px 4px 0;}
.terpene_report td{width:25%;}
.pesticide_report td{width:16.6%;}

/* Footnotes */
#report-footnotes td{text-align:center;}
#qc #report-footnotes td{text-align:left;}
#report-footnotes td.footnotes{padding-right:20px;padding-left:20px;text-align:left;}
#report-footnotes td.accredited{padding-right:80px;padding-left:80px;text-align:center;}
#report-footnotes p{font-size:12px;line-height:0.5;margin: 5px 0 !important;}
#report-footnotes p small,
#report-footnotes td{font-size:12px;line-height:1.2;}

.report-footnotes p {font-size:12px;line-height:0.5;margin: 5px 0 !important;}
.report-footnotes p small{font-size:12px;line-height:1.2;}

.report-footnotes td{font-size:12px;line-height:1.2;}

#rsa.compounds tbody tr td.fail,
.compounds tr td.fail{background-color:#ff0000 !important;color:#ffffff !important;}

/* Seals */
.seals td{padding:20px 10px 0;text-align:center;}

/* Terps */
.terp-wrapper{position:relative;}
#template #template-cell div.terp-wrapper .col-1{width:20% !important;max-width:20% !important;flex:0 0 20%;float:left !important;position:relative !important;}
#template #template-cell div.terp-wrapper .col-2{width:75% !important;max-width:75% !important;flex:0 0 75%;float:left !important;position:relative !important;padding:0 20px !important;}
#template #template-cell div.terp-wrapper .col-1 .descriptor, 
#template #template-cell div.terp-wrapper .col-2 .descriptor {
	width:auto !important;
	height:auto !important;
	min-height:auto !important;
	border-width:1px !important;
}

#template #template-cell div.terp-wrapper .col-1 .descriptor.qr{border:none !important;}

#template #template-cell div.terp-wrapper .col-1 .descriptor h5, 
#template #template-cell div.terp-wrapper .col-2 .descriptor h5,
#template #template-cell div.terp-wrapper .col-1 .descriptor p, 
#template #template-cell div.terp-wrapper .col-2 .descriptor p {
	padding:3px;
}

.terp-image {
    width: 290px;
    height: 290px;
    overflow: hidden;
    border-radius: 50%;
    position: absolute;
    top: 155px;
    left: 244px;
}

.profile-image {
  display: inline;
  margin: 0 auto;
  margin-left: -25%;
  height: 100%;
  width: auto;
}

.terpene .analysis-list{
}

ul.legend, ul.legend li {
	margin: 0;
	padding: 0;
	list-style:none;
}

ul.legend li {
	display: inline-block;
	margin-right:10px;
	line-height: 22px;
	min-width:180px;
	font-size:11px;
}

ul.legend li em {
  height: 15px;
  width: 15px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
}

.border-r{border-right:1px solid #c4c4c4 !important;}
.border-l{border-left:1px solid #c4c4c4 !important;}
.border-t{border-top:1px solid #c4c4c4 !important;}
.border-b{border-bottom:1px solid #c4c4c4 !important;}
tr.no-border{border:none !important;}
td.no-border{border:none !important;}

.cake-debug {
	text-align: left;
}

body.full_report .cake-debug{
	float: right;
    width: 400px;
    background-color: #f4f4f4;
    padding: 10px;
    border: 1px solid #ddd;
    clear: right;
}

/* PRINT STYLES */

@page {
    size: auto;
    margin: 0;
}

@media print {
	*, *:before, *:after, *:first-letter, p:first-line, div:first-line, blockquote:first-line, li:first-line {
		background: transparent !important;
		color: #000 !important;
		box-shadow: none !important;
		text-shadow: none !important
	}
	a, a:visited {
		text-decoration: underline
	}
	a[href^="#"]:after, a[href^="javascript:"]:after {
		content: ""
	}
	pre {
		white-space: pre-wrap !important
	}
	pre, blockquote {
		border: 1px solid #999;
		page-break-inside: avoid
	}
	thead {
		display: table-header-group
	}
	p, h2, h3 {
		orphans: 3;
		widows: 3
	}
	table, tr, thead, tbody, p, img, h1, h2, h3 {
		page-break-after: avoid;
	}
	body{margin:0;padding:0;}
	/*#report-summary tr.images td img,
	#report-summary tr.images td img{width:200px;}*/
	#template-footer td{padding:0px 20px;}
	#qc{page-break-before:always;margin-top:0 !important;}
}
