@media print {

    body {
        font-size: 14px;
        background-color: white !important;
    }

    body::before,
    body::after {
        display: none !important;
    }

    #header,
    #sidebar,
    #footer,
    .card:not(.print-content),
    .card-header,
    .pagetitle,
    .back-to-top {
        display: none !important;
    }

    #main {
        margin-left: 0 !important;
        padding: 0 !important;
        margin-top: 0 !important;
    }

    .section {
        padding: 0 !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }

    .card-body {
        padding: 0 !important;
    }

    .table-responsive {
        overflow: visible !important;
    }

    th:first-child,
    td:first-child {
        position: static;
    }
}