/**
 * Tisk: jen obsah reportu (bez navigace, filtrů jako UI prvků, loaderu, modálů).
 * Volitelně: přidejte na prvek třídu no-print / d-print-none (Bootstrap), pokud má zmizet jen něco konkrétního.
 */

@page {
    margin: 12mm 14mm;
    size: auto;
}

@media print {
    html {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        padding: 0 !important;
        font-size: 10pt;
        line-height: 1.35;
    }

    /* Globální chrome */
    .navbar,
    footer,
    #niseoPageLoader,
    .modal,
    .modal-backdrop,
    .theme-toggle,
    .sticky-pagination,
    .niseo-meta-bulk-bar,
    .niseo-meta-bulk-col,
    .sticky-filter,
    .niseo-filter-collapse-toggle {
        display: none !important;
    }

    /* Skryté prvky označené v šablonách */
    .no-print,
    .d-print-none {
        display: none !important;
    }

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

    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        background: #fff !important;
        break-inside: avoid;
    }

    .card-header {
        background: #f5f5f5 !important;
        color: #000 !important;
        border-bottom: 1px solid #ccc !important;
    }

    .table {
        font-size: 9pt;
    }

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

    /* Rozumné zalamování řádků tabulky */
    table {
        page-break-inside: auto;
    }

    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    thead {
        display: table-header-group;
    }

    tfoot {
        display: table-footer-group;
    }

    /* Obrázky ve výpisu (OG, vlajky) */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    .badge {
        border: 1px solid #999 !important;
        color: #000 !important;
        background: #f0f0f0 !important;
    }
}
