@media screen  {
    #printHeader, #printFooter {
        display: none;
    }
    .print-container {
        margin: 0; padding: 0;
        background-color: rgba(0, 0, 0, 0.05);
        /*max-height: 31cm;
        overflow-y: scroll; 
        overflow-x: hidden;*/
    }
    .print-container > .a4 {
        background: white;
        display: block;
        margin: 0 auto;
        margin-bottom: 0.5cm;
        box-shadow: 0 0 0.5cm rgba(0,0,0,0.5);
        page-break-after: always;
    }
    .print-container > .a4,
    .print-container > .a4 > .content {
        /* There is something wrong with these measures.*/
        /*width: 21cm;
        min-height: 29.7cm;*/
        /*min-height: 1046px; width: 733px;*/
        width: 1000px;
        min-height: 29.7cm;
    }
    .print-container > .a4 > .content {
        border: none;
        overflow: hidden;
        margin: 0;
        padding: 0;
    }
    .row.printable-content {
        margin-left: 0; margin-right: 0; 
        /*padding-top: 15px; padding-bottom: 15px;*/
    }
    
    div > .page-break:not(:first-child) { display: none; }
    div > .page-break:first-child {
        min-height: 1px;
        margin-bottom:20px;
        display: block;
    }
    
    .printable-content h1, 
    .printable-content h2, 
    .printable-content h3, 
    .printable-content h4, 
    .printable-content h5, 
    .printable-content h6 {
        text-align: center;
    }
    
    .align-right  { text-align: right; }
    .align-left   { text-align: left; }
    .align-center { text-align: center; }
    
    .printable-content table{
        margin-bottom: 20px;
    }
    .printable-content table,
    .printable-content table td {
        border:none;
    }
    .printable-content table td{
        padding: 6px;
    }
    .printable-content table tr{
        border: 1px solid #000;
    }
    .printable-content table td:not(:first-child),
    .printable-content table th:not(:first-child){
        border-left: 1px solid #000;
    }
    .printable-content .data-table th, 
    .printable-content .data-table td {
        border-top: none;
        border-right: none;
    }
    
    .printable-content table thead {
        font-weight: bold;
    }
    
    .printable-content .portlet {
        padding: 0.8cm 1cm;
    }
    .printable-content .portlet .portlet-title {
        color: #000;
        background-color: transparent !important;
        border-bottom: 2px solid #000;
    }
    .printable-content .portlet .portlet-title img {
        float: left;
        height: 70px;
    }
    .printable-content .portlet .portlet-title .centered {
        font-size: 24px;
        line-height: 58px;
        text-align: center;
    }
    .printable-content .portlet .portlet-title .text {
        text-align: right;
    }
    .printable-content .information-box {
        border: 1px solid #000;
        background-color: white;
        color: #000;
    }
    .printable-content .report-section-title {
        text-align: center;
    }
    .report h1,.report h2,.report h3,.report h4,.report h5
    {
        font-weight: bold;
        text-align: left;
    }
    
    .printable-content .row.pp-details table.ocurrences > tbody > tr > td {
        height: 120px;
    }
    
    .printable-content .row.pp-details table.verified-by > thead > tr > th,
    .printable-content .row.pp-details table.verified-by > thead > tr > td,
    .printable-content .row.pp-details table.verified-by > tbody > tr > th,
    .printable-content .row.pp-details table.verified-by > tbody > tr > td {
        padding: 4px;
        font-size: 12px;
    }
    .printable-content .row.pp-details table.verified-by > thead > tr > th:first-child {
        text-align: right; 
    }
    .printable-content .row.pp-details table.verified-by > thead > tr > th:last-child {
        border-left: 0;
    }
    .printable-content .row.pp-details table.verified-by > tbody > tr > th {
        font-weight: normal;
    }
    .printable-content .row.pp-details table.verified-by > tbody > tr > th.first {
        width: 140px;
        border-left: 0;
        text-align: right;
    }
    .printable-content .row.pp-details table.verified-by > tbody > tr > th.second {
        width: 80px;
        text-align: right;
        border-left: 0;
    }
    .printable-content .row.pp-details table.verified-by > tbody > tr > td.first {
        border-left: 0;
    }
    .printable-content .row.pp-details table.verified-by > tbody > tr > td.second {
        width: 150px;
        border-left: 0;
    }
    .printable-content .row.pp-details table.verified-by {
        margin-bottom: 0;
    }
    
    .printable-content .row.pp-details table.max-tolerance > tbody > tr > th.first {
        width: 180px;
        border-left: 0;
    }
    .printable-content .row.pp-details table.max-tolerance > tbody > tr > th.second {
        border-left: 0;
    }
    .printable-content .row.pp-details table.max-tolerance > tbody > tr > td.first {
        border-left: 0;
    }
    .printable-content .row.pp-details table.max-tolerance > tbody > tr > td.second {
        border-left: 0;
    }
    .printable-content .row.pp-details table.max-tolerance {
        margin-bottom: 15px;
    }
    
    .printable-content.data-table tr.odd,
    .printable-content tbody > tr:nth-child(odd),
    .printable-content.data-table tr.even,
    .printable-content tbody > tr:nth-child(even) {
        background-color: transparent;
    }
}
@media print {
    @page {
        size: A4;
        margin-top:10mm;
        margin-bottom: 10mm;
        margin-left: 8mm;
        margin-right: 8mm;
        /*margin: 20mm 20mm 25mm 20mm;
        margin:0;*/
        padding: 0;

    }

    
    .pre-loader { display: none !important; }
    .print-container > .a4 {}
    
    .page-break {
        display: block;
        page-break-after: always;
        margin-bottom: 20px;
        min-height: 1px
    }
    
    .printable-content h1, 
    .printable-content h2, 
    .printable-content h3, 
    .printable-content h4, 
    .printable-content h5, 
    .printable-content h6 {
        text-align: center;
    }
    
    .align-right  { text-align: right; }
    .align-left   { text-align: left; }
    .align-center { text-align: center; }
    
    .printable-content table{
        margin-bottom: 20px;
    }
    
    .printable-content table,
    .printable-content table td {
        border:none;
    }
    .printable-content table td{
        padding: 6px;
    }
    .printable-content table tr{
        border: 1px solid #000;
    }
    .printable-content table td:not(:first-child),
    .printable-content table th:not(:first-child){
        border-left: 1px solid #000;
    }
    .printable-content .data-table th, 
    .printable-content .data-table td {
        border-top: none;
        border-right: none;
    }
    
    .printable-content table thead {
        font-weight: bold;
    }
    .workers-print .data-table > thead{
            font-size: 18px;
    }
    .workers-print .data-table > tbody {
            font-size: 17px;
    }
    
    .printable-content table.print-space {
        margin-bottom: 20px;
    }
    
    .printable-content .portlet {
        /*padding: 0.8cm 1cm;*/
        padding: 0; margin: 0;
    }
    .printable-content .portlet .portlet-title {
        color: #000;
        border-bottom: 2px solid #000;
    }
    .printable-content .portlet .portlet-title img {
        float: left;
        height: 70px;
    }
    .printable-content .portlet .portlet-title .centered {
        font-size: 24px;
        line-height: 58px;
        text-align: center;
    }
    .printable-content .portlet .portlet-title .text {
        text-align: right;
    }
    .printable-content .portlet .portlet-footer {
    }
    /*.printable-content .portlet .portlet-footer:after {
        padding-left: 15px; padding-right: 15px;
        font-size: 80%;
        counter-increment: page;
        content: "Página " counter(page);
        position: fixed;
        bottom:100%;
    }*/
    .printable-content .information-box {
        border: 1px solid #000;
    }
    .printable-content .report-section-title {
        text-align: center;
    }
    .report h1,.report h2,.report h3,.report h4,.report h5
    {
        font-weight: bold;
        text-align: left;
    }
    tr, td, th, 
    tr > td > div, tr > th > div{
        page-break-inside: avoid;
        page-break-before: auto;
        /*white-space: nowrap;*/
    }
    thead { 
        page-break-inside: avoid;
        display:table-header-group;
    }
    tfoot { 
        page-break-inside: avoid;
        display:table-footer-group;
    }
    
    .printable-content .row.pp-details table.ocurrences > tbody > tr > td {
        height: 120px;
    }
    
    .printable-content .row.pp-details table.verified-by > thead > tr > th,
    .printable-content .row.pp-details table.verified-by > thead > tr > td,
    .printable-content .row.pp-details table.verified-by > tbody > tr > th,
    .printable-content .row.pp-details table.verified-by > tbody > tr > td {
        padding: 6px;
        font-size: 12px;
    }
    .printable-content .row.pp-details table.verified-by > thead > tr > th.first,
    .printable-content .row.pp-details table.verified-by > tbody > tr > th.first{
        text-align: right;
    }
    .printable-content .row.pp-details table.verified-by > thead > tr > th:last-child {
        border-left: 0;
    }
    .printable-content .row.pp-details table.verified-by > tbody > tr > th {
        font-weight: normal;
    }
    .printable-content .row.pp-details table.verified-by > tbody > tr > th.first {
        width: 140px;
        border-left: 0;
    }
    .printable-content .row.pp-details table.verified-by > tbody > tr > th.second {
        width: 80px;
        text-align: right;
        border-left: 0;
    }
    .printable-content .row.pp-details table.verified-by > tbody > tr > td.first {
        border-left: 0;
    }
    .printable-content .row.pp-details table.verified-by > tbody > tr > td.second {
        width: 150px;
        border-left: 0;
    }
    .printable-content .row.pp-details table.verified-by {
        margin-bottom: 0;
    }
    .printable-content.data-table tr.odd,
    .printable-content tbody > tr:nth-child(odd),
    .printable-content.data-table tr.even,
    .printable-content tbody > tr:nth-child(even) {
        background-color: transparent;
    }
}

