* {direction:rtl !important;}
table, tr, td, div, p {
direction:rtl !important;
/*border:1px solid black;*/
}
h1, h2, h3, h4, h5, h6{
padding:0;
margin:0;
direction:rtl !important;
}
table, div {
font-family: dejavusanscondensed, Arial, sans-serif;
direction:rtl !important;
}
table {
direction:rtl !important;
width: 100%;
line-height: normal;
color: #555;
font-size: 12px;
margin-right: 60px; /* Invoice margin */
margin-left: 60px; /* Invoice margin */
}
table td, table th {
padding:5px;
vertical-align:top;
line-height: inherit;
direction:rtl !important;
}
table tr.top td {
padding-top: 40px;
direction:rtl !important;
}
/* Invoice information */
table tr.top td:nth-child(2){
text-align:right;
direction:rtl !important;
}
div.title div {
padding: 5px;
width: 40%;
float: right;
margin-right: 60px; /* Invoice margin */
line-height: 55px;
direction:rtl !important;
}
div.title div.watermark {
float: left;
margin-left: 60px; /* Invoice margin */
line-height: normal;
}
div.title div.watermark h2 {
font-family: serif;
text-transform: uppercase;
font-weight: bold;
padding: 10px 7px;
border-radius: 10px;
opacity: 0.8;
text-align: center;
width: 130px;
float:left;
}
div.title div.watermark h2.green {
color: green;
border: 3px solid green;
}
div.title div.watermark h2.red {
color: red;
border: 3px solid red;
}
table tr.information td {
padding-bottom: 20px;
}
/* Customer billing address */
table tr.information td:nth-child(3){
text-align: right;
}
table tr.heading th:nth-child(1) {
width: 50%;
}
table tr.heading th:nth-child(1),
table tr.item td:nth-child(1) {
text-align: right;
}
table tr.heading th {
font-weight: bold;
color: #FFFFFF;
text-align: center;
}
table tr.heading th.total,
table tr.heading th.total_ex_vat,
table tr.heading th.total_incl_vat,
table tr.item td.total,
table tr.item td.total_ex_vat,
table tr.item td.total_incl_vat {
text-align: left;
}
table tr.item td {
border-bottom: 1px solid #eee;
text-align: center;
}
table tr.spacer td {
padding-top: 20px;
}
/* Totals */
table tr.total td.border {
border-top: 2px solid #eee;
font-weight: bold;
float:left !important;
text-align:left !important;
}
small.shipped_via {
display: none;
}
/* Dynamic class */
table tr.total td.order-total{
border-top: 2px solid #000;
}
table.notes {
margin-top: 40px;
}
div.terms {
margin-top: 40px;
position: absolute;
bottom: 120px;
}
table.footer {
padding-top: 20px;
padding-bottom: 20px; /* Invoice margin */
width: 100%;
}
table.footer tr td {
vertical-align: bottom;
}
table.footer tr td:nth-child(2) {
text-align: left;
}