@font-face {
  font-family: SourceSansPro;
  src: url(../file/SourceSansPro-Regular.ttf);
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

a {
  color: #0087C3;
  text-decoration: none;
}

body {
  position: relative;
  top: 10px;
  width: 25cm;  
  height: 35cm; 
  margin: 0 auto; 
  color: #555555;
  background: #FFFFFF; 
  font-family: Arial, sans-serif; 
  font-size: 14px; 
  font-family: SourceSansPro;
}

page {
  background: white;
  display: block;
  margin: 0 auto;
  margin-bottom: 0.5cm;
  box-shadow: 0 0 0.5cm rgba(0,0,0,0.5);
  padding: 10px;
}
page[size="A4"] {  
  width: 25cm;
  height: 35cm; 
  -webkit-print-color-adjust: exact;
}


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: left;
}
#bank{
  float: left;
  text-align: left;
}


#details {
  margin-bottom: 50px;
}

#client {
  padding-left: 6px;
  border-left: 6px solid #0087C3;
  float: left;
}

#client .to {
  color: #777777;
}

h2.name {
  font-size: 1.2em;
  font-weight: normal;
  margin: 0;
}
b.b1 {
  font-size: 1.1em;
  font-weight: normal;
  margin: 0;
}

#invoice {
  float: right;
  text-align: right;
}

#invoice h1 {
  color: #0087C3;
  font-size: 2.4em;
  line-height: 1em;
  font-weight: normal;
  margin: 0  0 10px 0;
}

#invoice .date {
  font-size: 1.1em;
  color: #777777;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 20px;

}

table th,
table td
{
  padding: 10px;
  background: #fff;
  text-align: center;
  border-bottom: 1px solid #eee;
}
table th, table td { border: 1px solid #eee;}

table th {
  white-space: nowrap;        
  font-weight: normal;
}

table td {
  text-align: right;
}

table td h3{
  color: #57B223;
  font-size: 1.0em;
  font-weight: normal;
  margin: 0 0 0.2em 0;
  text-align: center;
}

table .no {
  color: #000;
  font-size: 0.9em;
  background: #fff;
  -webkit-print-color-adjust: exact;
  text-align: center;
}

table .no1 {
  color: #000;
  font-size: 0.9em;
  background: #fff;
  -webkit-print-color-adjust: exact;
  text-align: center;
}

table .desc {
  text-align: center;
}

table .unit {
  background: #DDDDDD;
}

table .qty {
}

table .total {
  background: #57B223;
  color: #FFFFFF;
}

table td.unit,
table td.qty,
table td.total {
  font-size: 1.2em;
  text-align: center;
}

table tbody tr:last-child td {
  border: none;
}

table tfoot td {
  padding: 10px 20px;
  background: #FFFFFF;
  border-bottom: none;
  font-size: 0.9em;
  white-space: nowrap; 
  border-top: 1px solid #AAAAAA; 
  text-align: center;
}

table tfoot tr:first-child td {
  border-top: none; 
}


table tfoot tr:last-child td {
  color: #57B223;
  font-size: 1em;
  border-top: 1px solid #57B223; 

}

table tfoot tr td:first-child {
  border: none;
}

#thanks{
  font-size: 1.2em;
  margin-bottom: 50px;
}

#notices{
  padding-left: 6px;
  border-left: 6px solid #0087C3;  
  text-align: left;
}

#notices .notice {
  font-size: 0.8em;
  text-align: left;
}

.box1{text-align: left; float: left; width: 300px; margin-left: 15px; font-size: 1.3em;}
.box2{text-align: center; float: left; width: 300px; font-size: 1.3em;}
.box3{text-align: right; float: left; width: 300px; font-size: 1.3em;}

footer {
  color: #777777;
  width: 100%;
  height: 30px;
  position: absolute;
  bottom: 0;
  border-top: 1px solid #AAAAAA;
  padding: 8px 0;
  text-align: center;
}

