/* ===== v505 — NOTES DE FRAIS (frontend/frais.js) ===========================
   Jetons de design.css seulement, chiffres tabulaires (v507 : Inter).
   Téléphone d'abord : cibles ≥ 44 px, une action principale (« + Frais »). */

.h-onglets { margin-bottom: 12px; }
.h-onglets .seg button { min-height: 44px; }

.fr-tete { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.fr-tete { justify-content: space-between; flex-wrap: wrap; }
.fr-tete .mois-sel { flex: none; }
.fr-plus { min-height: 44px; min-width: 120px; white-space: nowrap; }

.fr-totaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  border: 1px solid var(--sep); border-radius: 2px; margin-bottom: 12px; background: var(--card); }
.fr-totaux > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px;
  border-right: 1px solid var(--sep); }
.fr-totaux > div:last-child { border-right: 0; }
.fr-totaux span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--txt2); }
.fr-totaux b { font-family: var(--f-num); font-size: 16px; font-weight: 600; }
.fr-totaux .fr-tot b { color: var(--amber); }

.fr-filtres { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.fr-filtres select { min-height: 44px; width: auto; }

.fr-liste { display: flex; flex-direction: column; border-top: 1px solid var(--sep); }
.fr-ligne { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--sep); }
.fr-sel { width: 22px; height: 22px; margin-left: 4px; flex: none; }
.fr-ouvrir { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 56px;
  padding: 6px 4px; font: inherit; color: var(--txt); text-align: left; background: none;
  border: 0; border-radius: 0; cursor: pointer; }
.fr-ouvrir:hover { background: var(--fill); }
.fr-ouvrir:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.fr-date { flex: none; width: 44px; font-size: 13px; color: var(--txt2); }
.fr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fr-txt b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-txt small { font-size: 12px; color: var(--txt2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-droite { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.fr-droite b { font-family: var(--f-num); font-size: 15px; font-weight: 600; }
.fr-mini { flex: none; width: 40px; height: 40px; object-fit: cover; border: 1px solid var(--sep);
  border-radius: 2px; background: var(--fill); }
.fr-pdf { display: inline-flex; align-items: center; justify-content: center; font-size: 10px;
  font-weight: 700; letter-spacing: .06em; color: var(--txt2); }
.fr-mini.fr-pdf { width: 40px; height: 40px; }
.fr-vide { border-style: dashed; }

.fr-pied { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fr-pied .btn { min-height: 44px; display: inline-flex; align-items: center; }

/* fiche + formulaire */
.fr-fiche .kv { padding: 6px 0; border-bottom: 1px solid var(--sep); }
.fr-tickets { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; align-items: center; }
.fr-ticket { position: relative; display: inline-flex; width: 72px; height: 72px; border: 1px solid var(--sep);
  border-radius: 2px; overflow: hidden; background: var(--fill); align-items: center; justify-content: center; }
.fr-ticket img { width: 100%; height: 100%; object-fit: cover; }
.fr-tk-x { position: absolute; top: 2px; right: 2px; width: 26px; height: 26px; padding: 0; line-height: 1;
  color: var(--txt); background: var(--card); border: 1px solid var(--sep); border-radius: 2px; }
.fr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fr-actions .btn { min-height: 44px; flex: 1 1 140px; }
.fr-types { margin-bottom: 10px; }
.fr-types .seg button { min-height: 44px; }
.fr-form { display: flex; flex-direction: column; gap: 10px; }
.fr-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--txt2); }
.fr-form input, .fr-form textarea { min-height: 44px; font-size: 16px; color: var(--txt); }
.fr-form [data-pour] { display: flex; flex-direction: column; gap: 10px; }
.fr-form [hidden] { display: none !important; }
.fr-case { flex-direction: row !important; align-items: center; gap: 10px !important; min-height: 44px; }
.fr-case input { min-height: 0; width: 22px; height: 22px; }
.fr-tk { border: 1px solid var(--sep); border-radius: 2px; padding: 10px; }
.fr-tk-btns { display: flex; gap: 8px; margin-top: 8px; }
.fr-tk-btns .btn { min-height: 44px; flex: 1; display: inline-flex; align-items: center; justify-content: center; }
.fr-pied a.btn { text-decoration: none; color: var(--txt); }
