@font-face
{
	font-family: 'SourceSansPro2';
	src: url('fonts/Ubuntu-L.ttf') format('truetype');
}
@font-face
{
	font-family: 'SourceSansPro';
	src: url('fonts/srcspror.ttf') format('truetype');
}
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

a {
  color: #0087C3;
  text-decoration: none;
}

body {
  position: relative;
  width: 21cm;   
  min-height: 29.7cm;
  margin: 0 auto; 
  color: #000000;
  background: #FFFFFF; 
  font-family: Arial, sans-serif; 
  font-size: 14px; 
  font-family: SourceSansPro;
  padding-left: 2cm;
}

header {
  padding: 10px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #AAAAAA;
}

#logo {
  float: left;
  margin-top: 8px;
}

#logo img {
  height: 70px;
}

#company {
  float: right;
  text-align: right;
}


#details {
  margin-bottom: 50px;
}

#client {
  padding-left: 6px;
  border-left: 6px solid #0087C3;
  float: left;
}

#client .to {
  color: #777777;
}

h2.name {
  font-size: 1.4em;
  font-weight: normal;
  margin: 0;
}

#invoice {
  float: right;
  text-align: right;
}
#voucher, #logo-voucher { 
  text-align: center;
}

#invoice,#voucher h1 {
  color: #0087C3;
  font-size: 1.7em;
  line-height: 1em;
  font-weight: normal;
  margin: 0  0 10px 0;
}

#invoice .date {
  font-size: 1.1em;
  color: #777777;
}

#invoice .pending{
    font-size: 1.1em; 
	color: #f55656;
	font-weight: bold;
}
#invoice .paid{
    font-size: 1.1em; 
	color: #000000;
	font-weight: bold;
}


/* table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 20px;
  border-radius: 5px;
} */

table {
	width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    border-style: hidden; /* hide standard table (collapsed) border */
    box-shadow: 0 0 0 2px #000; /* this draws the table border  */ 
    margin-bottom: 20px; 
}

@media print {
    table { 
        border: 2px solid #000;
		-webkit-border-radius: 10px;  
		-moz-border-radius: 10px; 
    -khtml-border-radius: 10px;
    border-radius: 10px;
    } 
}

table th,
table td {
    padding: 10px 5px;
    /* background: #ffffff;  */
    /* border-bottom: 1px solid #000000; */
	border: 1px solid #000;
}

table th {
  white-space: nowrap;        
  font-weight: normal;
}

/* table td {
  text-align: right;
} */

table td h3{
  color: #0087C3;
  font-size: 1.2em;
  font-weight: normal;
  margin: 0 0 0.2em 0;
}

table .no {
  color: #FFFFFF;
  font-size: 1.6em;
  background: #0087C3;
}

.rowtitle {
    color: #0087C3;
    font-weight: bold;
    vertical-align: center;
    text-align: center;
    font-size: 16px;
}

table .desc {
  text-align: left;
}

table .unit {
  background: #DDDDDD;
}

table .qty {
}

table .total {
  background: #0087C3;
  color: #FFFFFF;
}

table td.unit,
table td.qty,
table td.total {
  font-size: 1.2em;
}

/* table tbody tr:last-child td {
  border: none;
} */

table tfoot td {
  padding: 10px 20px;
  background: #FFFFFF;
  border-bottom: none;
  font-size: 1.2em;
  white-space: nowrap; 
  border-top: 0px solid #AAAAAA; 
}

table tfoot tr:first-child td {
  border-top: none; 
}

table tfoot tr:last-child td {
  color: #0087C3;
  font-size: 1.4em;
  border-top: 1px solid #0087C3; 

}
 
table tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

table tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

#thanks{
  font-size: 2em;
  margin-bottom: 50px;
}

#notices{
  padding-left: 6px;
  border-left: 6px solid #0087C3;  
  margin-bottom: 60px;
}

#notices .notice {
  font-size: 1.2em;
}

footer {
  color: #777777;
  width: 770px; 
  position: absolute;
  bottom: 20px;
  border: 2px solid #AAAAAA;
  padding: 0 10px;
  border-radius: 10px;
  
}

.f-left, .f-right{  padding: 8px 0;}
.f-left{float: left; }
.f-right{float: right;   text-align: right;}

#printbankdetails{
	width: 50%;
	height: 120px;
	border: 2px solid #000; 
	border-radius: 10px;
	margin-top: 15px;
	margin-bottom: 20px; 
	padding-top: 4px;
	padding-left: 10px;
	padding-bottom: 2px;
	font-weight: normal;
	font-size: 15px;
	float: left;
}
#approvaldetails{
	width: 48%;
	height: 120px;  
	margin-top: 15px;
	margin-bottom: 20px; 
	padding-top: 4px;
	padding-left: 10px;
	padding-bottom: 2px;
	font-weight: normal;
	font-size: 15px; 
	line-height: 2em;
    display: inline-block;
}

.vdetails{
	min-height: 80px;
}
#printowner
{
	width: 42%;
	height: auto;
	color: #000;
	font-size: 16px;
	text-align: right;
	/*border-bottom: 1px solid #AAA;*/
	padding-top: 10px;
	padding-bottom: 150px;
	font-size: 15px;
	float: right;
}
#separator{
	clear: both;
	width: 100%;
	height: 5px;
	margin-bottom: 30px;
	border-bottom: 2px solid #AAA;
}

#approvals{
    display: inline-block;
}

#footer-2 {
  color: #777777;
  width: 770px;  
  height: 90px; 
  border: 2px solid #AAAAAA;
  padding: 0 10px;
  border-radius: 10px;
    display: inline-block;
  
}

#mainpage-voucher{
	min-height: 26.5cm;
}
 
#printmaincontent{background: none;}