:root {
    --cl-primary: #1d3557;
    --cl-accent: #e63946;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f8f9fa;
}
.navbar-brand { font-weight: 600; }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline; }
.table-compta td.amount,
.table-compta th.amount { text-align: right; font-variant-numeric: tabular-nums; }

/* Mobile : tables défilent horizontalement plutôt que casser le layout */
@media (max-width: 768px) {
    main .table:not(.table-no-scroll) {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    /* Inputs assez gros pour toucher confort */
    .form-control, .form-select, .btn { min-height: 38px; }
    /* Réduit le padding pour que les cards aient plus d'espace utile */
    main.container-fluid { padding-left: .5rem !important; padding-right: .5rem !important; }
    /* Navbar dropdown plus aéré */
    .dropdown-menu { font-size: 1rem; }
    .dropdown-menu .dropdown-item { padding: .6rem 1rem; }
    h1.h3 { font-size: 1.4rem; }
}
/* Inputs file mobile : stylé en bouton pour caméra/galerie */
input[type="file"]::file-selector-button {
    padding: .4rem .9rem;
    border: 0;
    border-radius: 4px;
    background: var(--cl-primary);
    color: white;
    margin-right: .6rem;
    cursor: pointer;
}
