/*@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;

  width: 19cm;  

  height: 29.7cm; 

  margin: 0px; 

  color: #555555;

  background: #FFFFFF; 

  /*font-family: Georgia,Arial, sans-serif; */

  font-size: 14px; 

  font-family: sans-serif;

  font-weight: normal;

}



header {

  padding: 10px 0;

  margin-bottom: 20px;

  border-bottom: 1px solid #AAAAAA;

}



#logo {

  margin-top: 0px;

  height: 100px;

}



#logo img {

  height: 100px;

}



#company {

  text-align: right;

  position: absolute;

  height: 100px;

  width: 500px;

  right: 0px;

  top:10px;

}

.nombrecomercial {

  font-size: 23px;

  line-height: 0.1;

  margin-bottom: 0px;

  padding-bottom: 0px;

}



#details {

  margin-bottom: 15px;

}



#client {

  padding-left: 6px;

  border-left: 6px solid #0087C3;

  height: 70px;

}



#client .to {

  color: #777777;

  font-weight: normal;

}

/*

h2.name {

  font-size: 1.4em;

  font-weight: normal;

  margin: 0;

  line-height: 0.8;

}

*/

#invoice {

  text-align: right;

  position: absolute;

  height: 70px;

}



#invoice h1 {

  color: #0087C3;

  font-size: 25px;

  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: 0px;

}



table th,

table td {

  padding: 5px;

  padding-bottom: 0px;

  padding-top: 0px;

  background: #EEEEEE;

  text-align: center;

  border-bottom: 1px solid #FFFFFF;

}



table th {

  white-space: nowrap;        

  font-weight: bold;

  padding-bottom: 5px;

  padding-top: 5px;

}



table td {

  text-align: right;

}



table td h3{

  color: #57B223;

  font-size: 15px;

  font-weight: normal;

  margin: 0 0 0.2em 0;

}



table .no {

  color: #FFFFFF;

  font-size: 14px;

  background: #57B223;

  width: 30px;

}



table .desc {

  text-align: left;

  font-size: 13px;

}



table .unit {

  background: #DDDDDD;

  width: 90px;

}



table .qty {

  width: 50px;

}



table .total {

  background: #57B223;

  color: #FFFFFF;

  width: 90px;

}



table td.unit,

table td.qty,

table td.total {

  font-size: 14px;

}



table tbody tr:last-child td {

  border: none;

}



table tfoot td {

  padding: 0px 5px;

  background: #FFFFFF;

  border-bottom: none;

  font-size: 15px;

  white-space: nowrap; 

  border-top: 1px solid #AAAAAA; 

}



table tfoot tr:first-child td {

  border-top: none; 

}



table tfoot tr:last-child td {

  color: #57B223;

  font-size: 15px;

  border-top: 1px solid #57B223; 



}



table tfoot tr td:first-child {

  border: none;

}

#thanks{

  font-size: 1em;

  margin-bottom: 50px;

  left: 40%;

  position: absolute;

  bottom: 170px;

  font-weight: bold;

}

#thanksfirma {

  font-size: 14px;

  margin-bottom: 50px;

  left: 35%;

  position: absolute;

  bottom: 145px;

}

#thanksbarra {

  font-size: 14px;

  margin-bottom: 50px;

  left: 25%;

  position: absolute;

  bottom: 20px;

}

#notices{

  padding-left: 6px;

  border-left: 6px solid #0087C3;  

}



#notices .notice {

  font-size: 1.2em;

}



footer {

  color: #777777;

  width: 100%;

  height: 50px;

  position: absolute;

  bottom: 0;

  border-top: 1px solid #AAAAAA;

  padding: 8px 0;

  text-align: center;

}



