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

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

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

body {
  position: relative; 
  margin: 0 auto; 
  color: #555555;
  background: #FFFFFF; 
  font-family: Arial, sans-serif; 
  font-size: 14px; 
  font-family: SourceSansPro;
}

header {
margin:auto;
  padding: 10px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #AAAAAA;
}

#logo { 
  text-align:center;
  margin-top: 8px;
}

#logo img {
  height: 80px;
}

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


#details {
  margin-bottom: 20px;
}

#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;
}

#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 thead th { 
  background: #0087C38A;
  color:black;
}

table tbody tr { 
 border-top: 1px solid #AAAAAA; 
}

table th,
table td ,table tr  {
  padding: 5px;
  background: #0087C30D;
  text-align: left; 
}
  

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

table td {
  text-align: left;
}

table td h3{
  color: black;
  font-size: 1em;
  font-weight: normal;
  margin: 0 0 0.2em 0;
  
}

table .no {
  color: black;
  font-size: 1.1em;
  text-align: center; 
}

table .desc {
  text-align: left;
  color: black;
  font-size: 1.1em; 
}

table .unit {
  background: ; 
  text-align:center;
}

table .qty {
text-align:center;
}

table .total {
  background: ;
  color: black;
  text-align: right;
}

table td.unit,
table td.qty,
table td.total {
  font-size: 1em;
  color: black;
}

table tbody tr:last-child td {
  border: none;
  border-bottom: 1px solid #AAAAAA;
  
}

table tfoot td {
  padding: 9px 18px;
  background: #FFFFFF;
  color: black;
  border-bottom: none;
  font-size: 1.1em;
  white-space: nowrap; 
  border-top: 1px solid #AAAAAA; 
}

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

table tfoot tr:last-child td {
  color: black;
  font-size: 1.1em;
  font-weight:bold;
  border-top: 1px solid #0087C3; 

}

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

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

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

#notices .notice {
  color:black;
  font-size: 1.2em;
}

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

