.report {
	display: block;
	position: relative;
}
.report-filter {
}

.report-border.portrait{
	width: 8.5in;
	min-height: 11.5in;
}
.report-border.landscape{
	width: 11.5in;
	min-height: 8.5in;
}

.report-border {
	padding: 0.5in;
	margin: 5px auto;
	border: 1px solid #CCC;
	-webkit-box-shadow: 0 0 5px 2px #ccc;
	box-shadow: 0 0 5px 2px #ccc;
}
.report-border .panel-body {
	margin: 0 !important;
	padding: 0 !important;
}
.report-header {
	display: block;
	position: relative;
}
.report-header .logo {
	position:relative;
	float:left;
	width:135px;
	overflow:hidden;
	padding:0 15px;
	margin:6px 0px;
}

.report-header .logo:before,
.report-header .logo:after{
	content: " ";
    position: absolute;
    display: block;
	top:0;
    bottom: 0;
	width: 10px;
    height: 100%;
	background-size: cover;
}
.report-header .logo:before {
    left: 0;
    background-image: url(../../images/report-logo-shadow.png);
	background-position: left center;
}
.report-header .logo:after {
    right: 0;
    background-image: url(../../images/report-logo-shadow.png);
	background-position: right center;
}

.report-header .logo .img{
	height:60px;
	line-height:60px;
	vertical-align:middle;
	text-align: center;
}
.report-header .logo img{
	max-width:100%;
	max-height:100%;
	vertical-align:middle;
}
.report-header .logo span{
	display:block;
	text-align:center;
	font-weight:bold;
}

.report-header .dates {
	position:relative;
	float:right;
	width:180px;
	overflow:hidden;
	padding:0 10px;
	margin:6px 0px;
}

.report-header .dates for,
.report-header .dates from,
.report-header .dates to{
	font-weight:bold;
	display:block;
	font-size:14px;
	line-height:16px;
	margin-bottom:6px;
}
.report-header .dates for{
	text-transform:uppercase;
	font-style:italic;
}
.report-header .dates from span,
.report-header .dates to span{
	display:inline-block;
	width:100px;
	text-align:center;
	font-weight:400;
	border-bottom:1px solid #ddd;
}
.report-header .dates from title,
.report-header .dates to title{
	width:40px;
	display: inline-block;
}

.report-header .title {
	text-align: center;
	color: #3E83AF;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 30px;
}
.report-header .sub-title {
	text-align: center;
	text-transform: uppercase;
	font-size: 18px;
	font-weight: bold;
}
.report-header .detail {
	text-align: center;
}
.report-header .text-left {
	text-align: left;
}
.report-header .text-right {
	text-align: right;
}
.report hr {
	border: none;
	border-bottom: 3px solid #414141;
	margin: 16px auto;
}
.report h4, .report h3{
	text-transform:uppercase;
	font-weight:bold;
}
.report h3 {
    font-size: 20px;
}
.report h4 {
    font-size: 16px;
}
.table>thead>tr>th, .table>tbody>tr>td {
	padding: 2px 6px;
}
.table td.ac-name {
	padding-left: 25px;
}
.table td.total {
	text-align: right;
	border-bottom: 1px solid;
	font-weight: bold;
}
.table td.grand_total {
	text-align: right;
	border-bottom: 4px double;
	font-weight: bold;
}
.table td.value {
	text-align: right;
	width:15%;
}
.table thead>tr>th {
	padding-top: 8px;
	padding-bottom: 8px;
}
.table tbody+tbody {
	border: none !important;
}
.table tbody tr.trow:nth-child(2) .value {
	border-top: 1px solid !important;
}
.table tbody tr.trow:last-child .value {
	border-bottom: 1px solid !important;
}
.table tbody+tbody {
	border: none !important;
}
.profit-loss .table td.total {
	border-top: 1px solid;
	border-bottom: 0px solid;
}
.table td.total.grand_total {
	border-top: 1px solid;
	border-bottom: 4px double;
}
.balance-sheet .table td.value {
	width: 24%;
	border-right: 1px solid;
	border-left: 1px solid;
}
.balance-sheet .table tbody>tr>td:nth-child(2) {
	background: #ddf1fc !important;
}
.asets-schedule .table td:nth-child(n+5):nth-child(-n+8) {
	background: #E5E5E5;
}
/* With blue header */

.report .table.blue-head thead > tr:first-child > th,
.report .table.blue-head thead th,
.report .table.blue-head thead td {
	vertical-align:middle;
	background-color: #3E83AF;
	color: #fff;
	padding-top: 5px;
	padding-bottom: 5px;
	border: 1px solid #ddd;
}
.report .table.blue-head thead a{
	color:#ffffff;
}
.report .table.blue-head thead table th, .report .table.blue-head thead table td {
	text-align: center;
	padding: 4px;
	border: 1px solid #ddd;
}
/* sales report */

.sales-report .overdue{
	background:#FFD8D8;
}
.sales-report .filters{
	border-radius: 0px;
	margin-bottom:15px;
}
.sales-report .filters .btn{
	padding: 15px;
	width:150px;
	color:#3E83AF;
	font-weight:bold;
	border-radius: 0px;
}
.sales-report .filters .btn.active {
    background-image: none;
    background-color: #3E83AF;
	color:#FFF;
}
.sales-report .filters .btn.active:after{
	content:" ";
	position:absolute;
	top:100%;
	left:50%;
	margin-left: -5px;
	display:inline-block;
	border-top: 10px solid #3E83AF;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

/* Print View */
.printview table{
	margin:0;
}

.printview .print-header{
	display:none;
}
.printview .print-header:first-child{
	display:block;
}

.printview .table-pages thead{
	display:none;
}
.printview .page-table-1 thead{
	display:table-header-group;
}

.printview .print-footer{
	display:none;
	border-bottom:1px dashed #ccc;
	height:30px;
	line-height:30px;
	padding:0 6px;
}
.printview .print-footer:last-child{
	display:block;
}
.print-footer .page-num{
	display:none;
	float:right;
}
.print-footer p{
	display:block;
	margin:0;
	float:left;
}

.page-brdeak{
	page-break-after:always !important;
}

@media print {
	
	@page {
		margin: 20px;
		size:portrait;
		/*size: 8.3in 11.6in;
		resize:none;*/
	}
	body {
		background: none !important;
	}
	a[href]:after {
		content: none !important;
	}
	.report-filter {
		display: none !important
	}
	.report-border.portrait,
	.report-border.landscape{
		width:100% !important;
	}
	.report-border {
		width: 100%;
		margin: 0;
		padding: 0;
		border:none !important;
		background: none !important;
	}
	.panel {
		border: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	.report {
		margin: 0 !important;
		border: none !important;
		-webkit-box-shadow: none !important;
		box-shadow: none !important;
	}
	.balance-sheet .table tbody>tr>td:nth-child(2) {
		background: #ddf1fc !important;
	}
	.report-header .logo {
		float:left;
		width:135px;
		overflow:hidden;
	}
	.report *{
	  -webkit-print-color-adjust:exact;
	}
	
	
	/* Print View */
	.printview table{
		margin:0 !important;
	}
	.printview .print-header{
		display:block !important;
	}
	.printview .print-header:first-child{
		display:block !important;
	}
	
	.printview .table-pages thead{
		display:table-header-group !important;
	}
	
	.printview .print-footer{
		display:block !important;
		height:30px;
		line-height:30px;
		background-color:#eeeeee;
		width:100%;
		border-bottom:none;
	}
	.printview .print-footer:last-child{
		display:block !important;
	}
	.printview .print-footer:after{
		content:" ";
		display:table;
	}

	.printview .print-footer .page-num{
		display:block;
		float:right;
	}
	.printview .print-footer p{
		display:block;
		float:left;
	}
	.printview th .fa{
		display:none;
	}
	.page-brdeak{
		page-break-after:always !important;
	}
}
