body { font-family: 'Helvetica', 'Arial', sans-serif; margin: 0; padding: 0; background: #fff; font-size:14px; } .invoice-box { width: 120mm; height:auto; margin: 0px; margin-left:160px; margin-top:-10px; padding: 20px 10px; border: 1px solid #eee; font-size: 12px; line-height: 20px; color: #333; transform:rotate(-90deg); } .invoice-box table { width: 100%; line-height: inherit; text-align: left; border-collapse: collapse; } .invoice-box table td { padding: 3px; vertical-align: top; } .invoice-box table tr.top table td { padding-bottom: 20px; } .invoice-box table tr.heading td { background: #7c7c7c90; border-bottom: 1px solid #797979; font-weight: bold; } .invoice-box table tr.item td { border-bottom: 1px solid #797979; } .invoice-box table tr.total-box td { border-top: 1px solid #797979; font-weight: bold; } .invoice-box table tr.total-box.grand-total td { background: #e6f7ff; border-top: 2px solid #00aaff; max-width:200px; } .amount-box { text-align: right; font-size: 18px; font-weight: bold; color: #0077cc; } .note { margin-top: 20px; font-size: 12px; color: #666; text-align: center; }