@media print {
    * {
        padding: 0 !important;
        margin: 0 !important;
        /*display: none;*/
        /*font-size: 12px;*/
        font-family: Helvetica !important;
        letter-spacing: 0px !important;
    }

    html, body {
        /*width: 100mm;*/
        /*height: 62mm;*/
    }
    @page   {
        size: 100mm 62mm;   /* auto is the initial value */ 

        /* this affects the margin in the printer settings */ 
        margin: 0mm 0mm 0mm 0mm;  
    } 
    body{
        padding: 0; 
        margin: 0;
        background: #FFF;
        /*zoom: 1050%;*/
    }
    a[href]:after {
        content: none !important;
    }

    #bootstrap-overlay {
        display: none;
    }

    #flashMessage {
        display: none;
    }
    .print .page-header {
        display: none;
    }

    #debug-kit-toolbar {
        display: none;
    }
    .navbar, .navbar-inverse {
        display: none;
    }

    #buttons {
        display: none;
    }

    #footer {
        display: none;
    }

    a {
        color: #000;
    }

    table {
        width: 100%;
    }

    .datamatrix img {
        min-width: 40mm;
        width: 40mm !important;
        height: 40mm !important;
        transform: scale(1);
    }

    .datamatrix .vcenter {
        height: 60mm !important;
        line-height: 60mm !important;
    }

    .datamatrix div {
        padding: 0;
    }

    .datamatrix p, .datamatrix small {
        /*white-space: nowrap;*/
        word-break: keep-all;
        font-size: 8pt;
        line-height: 1.1;
    }

    .datamatrix .td-text-right {
        width: 40mm;
    }
    .datamatrix .td-text-left {
        width: 60mm;
    }

    .vcenter p {
        line-height: 1.1;
    }

    table {
        page-break-before: avoid;
        width: 100%;
    }

    td {
        padding: 0;
    }

    div {
        width: 100% !important;
    }
}

@media screen {
    .datamatrix img {
        /*height: 200px !important;*/
        float: right;
    }
}