@media print {
      body{line-height: 1.42857143;font-family:'Roboto', arial;text-align: left; padding: 0; margin: 0;}
        .page-break { display: block; page-break-before: always; }
        .pagetitleh2 {
            background: #f3f3f3;
            margin: 0;
            font-size: 16px;
            padding: 8px 15px;
            color: #000;
            margin-bottom: 10px;
            font-weight: bold;
            border-bottom: 1px solid #ddd;
        }    
        .btn-danger {color: #fff;background-color: #d9534f;border-color: #d43f3a;}
        .btn {
                display: inline-block;
                padding: 6px 12px;
                margin-bottom: 0;
                font-size: 14px;
                font-weight: 400;
                line-height: 1.42857143;
                text-align: center;
                white-space: nowrap;
                vertical-align: middle;
                -ms-touch-action: manipulation;
                touch-action: manipulation;
                cursor: pointer;
                -webkit-user-select: none;
                -moz-user-select: none;
                -ms-user-select: none;
                user-select: none;
                background-image: none;
                border: 1px solid transparent;
                border-radius: 4px;
            }
            .pull-right {
                float: right!important;
            }

        .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
            float: left;
        }
        .col-sm-12 {
            width: 100%;
        }
        .col-sm-11 {
            width: 91.66666667%;
        }
        .col-sm-10 {
            width: 83.33333333%;
        }
        .col-sm-9 {
            width: 75%;
        }
        .col-sm-8 {
            width: 66.66666667%;
        }
        .col-sm-7 {
            width: 58.33333333%;
        }
        .col-sm-6 {
            width: 50%;
        }
        .col-sm-5 {
            width: 41.66666667%;
        }
        .col-sm-4 {
            width: 33.33333333%;
        }
        .col-sm-3 {
            width: 25%;
        }
        .col-sm-2 {
            width: 16.66666667%;
        }
        .col-sm-1 {
            width: 8.33333333%;
        }
        .col-sm-pull-12 {
            right: 100%;
        }
        .col-sm-pull-11 {
            right: 91.66666667%;
        }
        .col-sm-pull-10 {
            right: 83.33333333%;
        }
        .col-sm-pull-9 {
            right: 75%;
        }
        .col-sm-pull-8 {
            right: 66.66666667%;
        }
        .col-sm-pull-7 {
            right: 58.33333333%;
        }
        .col-sm-pull-6 {
            right: 50%;
        }
        .col-sm-pull-5 {
            right: 41.66666667%;
        }
        .col-sm-pull-4 {
            right: 33.33333333%;
        }
        .col-sm-pull-3 {
            right: 25%;
        }
        .col-sm-pull-2 {
            right: 16.66666667%;
        }
        .col-sm-pull-1 {
            right: 8.33333333%;
        }
        .col-sm-pull-0 {
            right: auto;
        }
        .col-sm-push-12 {
            left: 100%;
        }
        .col-sm-push-11 {
            left: 91.66666667%;
        }
        .col-sm-push-10 {
            left: 83.33333333%;
        }
        .col-sm-push-9 {
            left: 75%;
        }
        .col-sm-push-8 {
            left: 66.66666667%;
        }
        .col-sm-push-7 {
            left: 58.33333333%;
        }
        .col-sm-push-6 {
            left: 50%;
        }
        .col-sm-push-5 {
            left: 41.66666667%;
        }
        .col-sm-push-4 {
            left: 33.33333333%;
        }
        .col-sm-push-3 {
            left: 25%;
        }
        .col-sm-push-2 {
            left: 16.66666667%;
        }
        .col-sm-push-1 {
            left: 8.33333333%;
        }
        .col-sm-push-0 {
            left: auto;
        }
        .col-sm-offset-12 {
            margin-left: 100%;
        }
        .col-sm-offset-11 {
            margin-left: 91.66666667%;
        }
        .col-sm-offset-10 {
            margin-left: 83.33333333%;
        }
        .col-sm-offset-9 {
            margin-left: 75%;
        }
        .col-sm-offset-8 {
            margin-left: 66.66666667%;
        }
        .col-sm-offset-7 {
            margin-left: 58.33333333%;
        }
        .col-sm-offset-6 {
            margin-left: 50%;
        }
        .col-sm-offset-5 {
            margin-left: 41.66666667%;
        }
        .col-sm-offset-4 {
            margin-left: 33.33333333%;
        }
        .col-sm-offset-3 {
            margin-left: 25%;
        }
        .col-sm-offset-2 {
            margin-left: 16.66666667%;
        }
        .col-sm-offset-1 {
            margin-left: 8.33333333%;
        }
        .col-sm-offset-0 {
            margin-left: 0%;
        }
        .visible-xs {
            display: none !important;
        }
        .hidden-xs {
            display: block !important;
        }
        table.hidden-xs {
            display: table;
        }
        tr.hidden-xs {
            display: table-row !important;
        }
        th.hidden-xs,
        td.hidden-xs {
            display: table-cell !important;
        }
        .hidden-xs.hidden-print {
            display: none !important;
        }
        .hidden-sm {
            display: none !important;
        }
        .visible-sm {
            display: block !important;
        }
        table.visible-sm {
            display: table;
        }
        tr.visible-sm {
            display: table-row !important;
        }
        th.visible-sm,
        td.visible-sm {
            display: table-cell !important;
        }
        .statusimg li+li {padding-left: 5px;}
        table.dataTable thead th {text-align: left !important;}
        .text-center{text-align:center; }
         .denifittable {text-align: left;border-collapse: collapse;}
       
        .denifittable td{}
        .denifittable th{font-weight: bold;}
        .denifittable th,
        .denifittable td{border: 1px solid #ddd;
        border-collapse: collapse; text-align: left;
        padding: 5px 10px;
        line-height: normal;}
        .heading-h2{font-size: 18px; text-transform: uppercase;}   
        .text-center{text-align: center;}  
        .pt-20{padding-top: 24px;}
        .pb-20{padding-bottom: 6px;}

        /* ==========================================================================
           Premium High-Resolution Print Engine Rules
           ========================================================================== */
        @page {
            size: auto;
            margin: 8mm 10mm;
        }

        body, .content-wrapper, .wrapper {
            background: #ffffff !important;
            color: #000000 !important;
            font-size: 12pt !important;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
        }

        /* Hide all interactive and web navigation artifacts */
        .main-header,
        .main-sidebar,
        .sidebar,
        .control-sidebar,
        .main-footer,
        .executive-hero-banner,
        .box-tools,
        .btn:not(.print-visible),
        .dataTables_filter,
        .dataTables_length,
        .dataTables_paginate,
        .dataTables_info,
        .alert:not(.print-alert),
        .modal-footer,
        .nav-tabs,
        .breadcrumb,
        .search-form,
        .search-form2,
        .hidden-print,
        #alert2 {
            display: none !important;
            visibility: hidden !important;
            height: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .content-wrapper {
            margin-left: 0 !important;
            padding: 0 !important;
            border: none !important;
        }

        .box {
            border: none !important;
            box-shadow: none !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .table-bordered,
        .table-bordered > tbody > tr > td,
        .table-bordered > thead > tr > th,
        .table-bordered > tfoot > tr > th {
            border: 1px solid #0f172a !important;
            color: #000000 !important;
        }

        table.dataTable thead th,
        .table-bordered > thead > tr > th {
            background-color: #f1f5f9 !important;
            font-weight: 700 !important;
            font-size: 10.5pt !important;
            color: #000000 !important;
        }

        .table > tbody > tr > td {
            font-size: 10pt !important;
            padding: 5px 8px !important;
            line-height: 1.3 !important;
        }

        /* Prevent awkward page breaks */
        tr, td, th, .invoice, .mark-container, .payslip-print, .receipt-print {
            page-break-inside: avoid !important;
        }

        /* High clarity for barcodes & QR codes */
        img.barcode, img.qrcode, .qr-image {
            image-rendering: -webkit-optimize-contrast !important;
            image-rendering: crisp-edges !important;
            max-width: 100% !important;
        }
    }