@media print {
    * { 
        margin: 0 !important;
        padding: 0 !important;
        font-size: 7pt;
    }
    #controls, .footer, .footerarea{ 
        display: none;
    }
    /*html, body, td, th, a, h1, h2, {*/
    html, body {
        /*changing width to 100% causes huge overflow and wrap*/
        height:100%; 
        overflow: hidden;
        background: #FFF;
    }
    
    th, td {
        padding: 2px;
    }

    .template { width: auto; left:0; top:0; }
    img { width:100%; }
    li { margin: 0 0 10px 20px !important;}
}