@media (max-width:800px) {

    .grid-header {
        display: none;
    }

    .grid-row,
    .grid,

    .grid-row-tarif {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .grid-row-entree,
    .grid-header-entree,
    .grid-row-bilan,
    .grid-header-bilan {
        grid-template-columns: 1fr 1fr;
        gap: unset;
        border-bottom: #fff 1px dashed;
    }

    .debit,
    .credit {
        grid-column: 2;
    }

    .pad10 {
        padding: 3px;

    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    } */
    .card.mb15 {
        margin-bottom: 2px;
        padding: 0.5rem;
    }

    .bold14.badge {
        font-size: 0.9rem;
    }
}

@media (max-width:600px) {
    /* .reduit {
        display: none;
    } */

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ======================================================================= */
/* CONFIGURATION POUR L'IMPRESSION PDF                                     */
/* ======================================================================= */
@media print {

    /* 1. Masquer l'en-tête, le menu, le footer et TOUS les éléments d'interface */
    header,
    nav,
    footer,
    form,
    .no-print,
    .navbar,
    .sidebar,
    .menu,
    #header,
    #sidebar {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 2. Forcer le contenu principal à prendre toute la page blanche */
    body,
    main,
    .container,
    .main-content {
        background: #fff !important;
        color: #000 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        position: static !important;
    }

    .dropdown-menu,
    .arrow {
        display: none !important;
    }
}