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

a {
  color: #4C3428;
  text-decoration: none;
}

body {
  position: relative;
  width: 21cm;  
  height: 29.7cm; 
  margin: 0 auto; 
  color: #555555;
  background: #FFFFFF; 
  font-family: Arial, sans-serif; 
  font-size: 11px; 
  font-family: SourceSansPro;
}

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

.logo {
  background-color: #fff;
  
  margin-top: 0px;
  
}

.logo img {
  vertical-align: text-top;
  height: 30px;
}

.company {
	background-color: #fff;
  float: left;
  text-align: left;
}

.company p{
	margin: 0;
	line-height: 10px;
	font-size: 0.8em;
}

#details {
  margin-bottom: 50px;
}

.client {
  padding-left: 6px;
  font-size: 0.8em;
  background-color: #fff;
  text-align: right;
  display: table-cell;
  vertical-align: bottom;
}


/*.client:first-child { border-right: 1px solid #4C3428; }*/

.client .to {
  color: #777777;
}

.client .address{
	line-height: 10px;
}

h2.name {
  font-size: 1.4em;
  font-weight: normal;
  margin: 0;
}

.invoice {
  float: left;
  text-align: left;
  background-color: #fff;
}

.invoice h1 {
  color: #4C3428;
  font-size: 1.5em;
  line-height: 10px;
  font-family: Arial, sans-serif;
  font-weight: 600;
  margin: 0;
}

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

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

table th,
table td {
  padding: 2px;
  background: #EEEEEE;
  text-align: center;
  border-bottom: 1px solid #FFFFFF;
}

table td.white {
	background: #fff;
	padding: 5px 10px;
}

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

table td {
  text-align: right;
}

table td h3{
  color: #8E634E;
  font-size: 1.1em;
  font-weight: normal;
  margin: 0 0 0.2em 0;
}

table .no {
  color: #FFFFFF;
  font-size: 1.2em;
  background: #8E634E;
  text-align: center;
  padding: 5px 10px;
  /*padding: 4px;*/
}

table .desc {
  text-align: center;
  padding: 5px 10px;
}

table .name {
	text-align: left;
  padding: 5px 10px;
}

table .unit {
  background: #DDDDDD;
  text-align: center;
  padding: 5px 10px;
}

table .qty {
	text-align: center;
	padding: 5px 10px;
}

table .total, table .subtotal {
  background: #8E634E;
  color: #FFFFFF;
  text-align: center;
  padding: 5px 10px;
}

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

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

table tfoot td {
  padding: 5px 10px;
  background: #FFFFFF;
  /*border-bottom: none;*/
  font-size: 1.2em;
  white-space: nowrap; 
  border-top: 1px solid #AAAAAA; 
}

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

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

}

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

#thanks{
  font-size: 1.5em;
  margin-bottom: 30px;
}

#notices{
  padding-left: 6px;  
}

#notices .notice {
  font-size: 10px;
  width: 90%;
}

footer {
  color: #777777;
  width: 100%;
  height: 30px;
  position: absolute;
  bottom: 0;
  /*border-top: 1px solid #AAAAAA;*/
  padding: 8px 0;
  text-align: center;
}
.narrow{ width: 10%;}
.border{border-bottom: 1px solid #aaaaaa;}
tr td.total{background-color: #6B3022;color:#fff;}
.comment-order{background-color: #F8FAFC; padding: 20px;font-family: Arial, sans-serif; font-size: 11px; width: 87%;}
