/*
 * The page margin lives on <body> rather than @page, because the print
 * dialog's "Margins: None" option discards @page margins. Cloning the
 * decoration repeats the padding at the top and bottom of every page.
 */
@page {
    size: A4 landscape;
    margin: 0;
}

@media print {
    body {
        display: block;
        font-size: 10pt;
        background: #fff;
        margin: 0;
    }

    main {
        padding: 12mm 14mm !important;
        -webkit-box-decoration-break: clone;
        box-decoration-break: clone;
    }

    .d-print-none,
    .no-print,
    .nav-top,
    nav,
    footer,
    .alert,
    .page-heading,
    .pagination,
    .dropdown-menu,
    .modal,
    #herd-ai-root,
    #herd-ai-host {
        display: none !important;
    }

    .container,
    .container-fluid {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .card {
        border: 0 !important;
    }

    .card-header {
        display: none !important;
    }

    .print-header {
        display: block !important;
        margin-bottom: 6mm;
    }

    .print-header img {
        width: 100%;
        max-width: 180mm;
        height: auto;
    }

    .print-header .print-member {
        margin-top: 4mm;
        font-size: 11pt;
    }

    .table-responsive {
        overflow: visible !important;
    }

    table.table {
        width: 100% !important;
        table-layout: fixed;
        border-collapse: collapse !important;
        font-size: 8.5pt;
    }

    table.table th,
    table.table td {
        padding: 3px 4px !important;
        word-break: break-word;
        overflow-wrap: anywhere;
        white-space: normal !important;
        vertical-align: top;
        border: 1px solid #999 !important;
    }

    table.table thead {
        display: table-header-group;
    }

    table.table tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .badge {
        border: 1px solid #666;
        color: #000 !important;
        background: transparent !important;
        white-space: normal;
        padding: 1px 3px;
    }

    a {
        color: #000 !important;
        text-decoration: none !important;
    }
}
