/* Factures de vente du client (2026-10-29) */
.c75-barre-actions { display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; align-items:center; margin-top:16px; }
.c75-actions-facture { display:flex; gap:8px; flex-wrap:wrap; }
.c75-actions-facture form, .c75-statut-devis { display:inline-flex; gap:8px; margin:0; }
.c75-form-etroit { max-width:820px; }
.c75-catalogue { display:flex; align-items:center; gap:8px; max-width:520px; }
.c75-catalogue .bi { color:var(--fc-muted); }
.c75-lignes { min-width:760px; margin-bottom:8px; }
.c75-lignes th { font-size:12px; color:var(--fc-muted); font-weight:600; border-bottom-width:1px; white-space:nowrap; }
.c75-lignes td { vertical-align:top; padding:4px; }
.c75-lignes textarea { resize:none; overflow:hidden; min-height:31px; }
.c75-l-ref { width:90px; } .c75-l-qte { width:70px; } .c75-l-unite { width:80px; } .c75-l-prix { width:105px; }
.c75-l-tva { width:92px; }
.c75-lignes .c75-l-montant { width:100px; padding-top:9px; }
.c75-lignes .c75-l-actions { width:74px; white-space:nowrap; padding-top:7px; }
.c75-l-actions .btn { margin:0 2px; }
.c75-ligne-titre td { background:#F5F7FA; }
.c75-totaux { min-width:260px; border-collapse:collapse; margin-left:auto; }
.c75-totaux th { font-weight:400; color:var(--fc-muted); text-align:right; padding:3px 12px 3px 0; }
.c75-totaux td { text-align:right; padding:3px 0; white-space:nowrap; font-variant-numeric:tabular-nums; }
.c75-totaux .c75-total-ttc th, .c75-totaux .c75-total-ttc td { font-weight:700; color:var(--fc-text); border-top:1px solid var(--fc-border); padding-top:6px; font-size:15px; }
.c75-paiement { display:flex; gap:8px; align-items:center; justify-content:space-between; padding:6px 0; border-bottom:1px solid var(--fc-border); }
.c75-paiement span:first-child { flex:1; font-size:13px; }
.c75-paiement form { margin:0; }
.c75-series { width:100%; border-collapse:separate; border-spacing:4px; }
.c75-series th { font-size:12px; color:var(--fc-muted); font-weight:600; }
.c75-series code { font-size:13px; }
.c75-sous-titre { font-size:12px; font-weight:700; text-transform:uppercase; color:var(--fc-muted); margin-bottom:6px; letter-spacing:.03em; }
.c75-inactif td { opacity:.55; }
.c75-choix-nature { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.c75-carte-choix { position:relative; border:1.5px solid var(--fc-border); border-radius:10px; padding:10px 12px; cursor:pointer;
  display:grid; grid-template-columns:auto 1fr; column-gap:10px; align-items:center; margin:0; }
.c75-carte-choix input { position:absolute; opacity:0; pointer-events:none; }
.c75-carte-choix i { font-size:22px; grid-row:span 2; color:var(--fc-muted); }
.c75-carte-choix span { font-weight:700; }
.c75-carte-choix small { color:var(--fc-muted); font-size:12px; }
.c75-carte-choix:has(input:checked) { border-color:var(--fc-accent); background:#F0F7FD; }
.c75-carte-choix:has(input:checked) i { color:var(--fc-accent); }

/* Mise en page (2e version, 2026-10-29) : réglages compacts à gauche, vraie première page à droite */
.c75-mep { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 500px); gap:20px; align-items:start; }
.c75-mep-reglages { background:#fff; border:1px solid var(--fc-border); border-radius:12px; overflow:hidden; }
.c75-sect { padding:14px 18px; border-bottom:1px solid var(--fc-border-soft, #EDF0F3); }
.c75-sect:last-child { border-bottom:0; }
.c75-sect-titre { font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--fc-muted); margin:0 0 10px; }
.c75-ligne-reglage { display:grid; grid-template-columns:150px minmax(0, 1fr); align-items:center; gap:10px; padding:4px 0; }
.c75-ligne-reglage > .form-control, .c75-ligne-reglage > .form-select { max-width:300px; }
.c75-lib { font-size:13px; color:var(--fc-text); font-weight:500; margin:0; }

/* styles : vignettes = vraie première page de chaque style (outils/vignettes_factures.py) */
.c75-styles { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; }
.c75-style { position:relative; margin:0; cursor:pointer; }
.c75-style input { position:absolute; opacity:0; pointer-events:none; }
.c75-style-vignette { display:block; aspect-ratio:1 / .78; border:2px solid var(--fc-border); border-radius:8px; overflow:hidden;
  background:#fff; transition:border-color .15s, box-shadow .15s; }
.c75-style-vignette img { width:100%; height:auto; display:block; }
.c75-style:hover .c75-style-vignette { border-color:#aab7c4; }
.c75-style input:checked + .c75-style-vignette { border-color:var(--fc-accent); box-shadow:0 0 0 3px rgba(36,113,163,.18); }
.c75-style input:focus-visible + .c75-style-vignette { outline:2px solid var(--fc-accent); outline-offset:2px; }
.c75-style-nom { display:block; text-align:center; font-size:12.5px; font-weight:600; margin-top:5px; color:var(--fc-text); }
.c75-style input:checked ~ .c75-style-nom { color:var(--fc-accent); }
.c75-lien-plus { background:none; border:0; color:var(--fc-accent); font-weight:600; font-size:13px; padding:10px 0 0; }

/* mes styles */
.c75-mes-styles { margin-top:12px; padding-top:12px; border-top:1px dashed var(--fc-border); display:grid;
  grid-template-columns:150px minmax(0, 1fr); gap:8px 10px; align-items:center; }
.c75-puces-styles { display:flex; flex-wrap:wrap; gap:6px; }
.c75-style-perso { display:inline-flex; align-items:center; border:1px solid var(--fc-border); border-radius:999px; background:#fff; overflow:hidden; }
.c75-style-perso button { border:0; background:none; font-size:12.5px; color:var(--fc-text); padding:4px 4px 4px 11px; }
.c75-style-perso-nom:hover, .c75-style-perso-nom.actif { color:var(--fc-accent); }
.c75-style-perso-nom.actif { font-weight:600; }
.c75-style-perso-x { color:var(--fc-muted) !important; padding:4px 9px 4px 4px !important; }
.c75-style-perso-x:hover { color:#C0392B !important; }
.c75-nouveau-style { grid-column:2; display:flex; gap:6px; }
.c75-nouveau-style input { max-width:220px; }

/* boutons segmentés (un seul choix) */
.c75-seg { display:inline-flex; flex-wrap:wrap; background:#EEF1F4; border-radius:8px; padding:3px; gap:2px; justify-self:start; }
.c75-seg label { position:relative; margin:0; cursor:pointer; }
.c75-seg input { position:absolute; opacity:0; pointer-events:none; }
.c75-seg span { display:block; padding:4px 12px; border-radius:6px; font-size:12.5px; color:#5d6d7e; line-height:1.5; white-space:nowrap; }
.c75-seg label:hover span { color:var(--fc-text); }
.c75-seg input:checked + span { background:#fff; color:var(--fc-text); font-weight:600; box-shadow:0 1px 3px rgba(0,0,0,.14); }
.c75-seg input:focus-visible + span { outline:2px solid var(--fc-accent); }
.c75-seg-petit span { padding:3px 10px; font-size:12px; }

/* puces (oui / non) */
.c75-puces { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.c75-puce { position:relative; margin:0; cursor:pointer; }
.c75-puce input { position:absolute; opacity:0; pointer-events:none; }
.c75-puce span { display:inline-flex; align-items:center; gap:6px; padding:4px 11px; border:1px solid var(--fc-border); border-radius:999px;
  font-size:12.5px; color:#5d6d7e; background:#fff; transition:all .12s; }
.c75-puce span::before { content:''; width:11px; height:11px; border-radius:3px; border:1.5px solid #b5bec7; flex:0 0 auto; }
.c75-puce:hover span { border-color:#aab7c4; }
.c75-puce input:checked + span { border-color:var(--fc-accent); background:#EAF3FA; color:var(--fc-accent); font-weight:600; }
.c75-puce input:checked + span::before { background:var(--fc-accent); border-color:var(--fc-accent); box-shadow:inset 0 0 0 2px #EAF3FA; }
.c75-puce input:focus-visible + span { outline:2px solid var(--fc-accent); }

/* couleurs, logo */
.c75-couleurs { display:flex; gap:7px; flex-wrap:wrap; align-items:center; }
.c75-pastille { position:relative; cursor:pointer; margin:0; }
.c75-pastille input { position:absolute; opacity:0; pointer-events:none; }
.c75-pastille span { display:block; width:24px; height:24px; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 1px rgba(0,0,0,.12); }
.c75-pastille input:checked + span { box-shadow:0 0 0 2px var(--fc-text); }
.c75-pastille-libre { margin:0; }
.c75-pastille-libre input { width:32px; height:28px; padding:0 2px; border:1px solid var(--fc-border); border-radius:6px; background:#fff; cursor:pointer; }
.c75-logo-zone { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.c75-logo-actuel { height:40px; max-width:130px; object-fit:contain; border:1px solid var(--fc-border); border-radius:6px; padding:3px; background:#fff; }
.c75-logo-vide { width:56px; height:40px; display:flex; align-items:center; justify-content:center; border:1px dashed var(--fc-border);
  border-radius:6px; color:var(--fc-muted); font-size:18px; }
.c75-note-legale { font-size:12px; color:var(--fc-muted); margin:6px 0 0; }

/* aperçu : la vraie page */
.c75-mep-apercu { position:sticky; top:72px; }
.c75-apercu-barre { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.c75-lien-pdf { font-size:13px; font-weight:600; }
.c75-apercu-page { position:relative; aspect-ratio:210 / 297; background:#fff; border-radius:4px; overflow:hidden;
  box-shadow:0 1px 3px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.10); }
.c75-apercu-page img { width:100%; height:100%; display:block; transition:opacity .15s; }
.c75-apercu-attente { position:absolute; top:10px; right:10px; display:none; color:var(--fc-accent); }
.c75-apercu-page.en-cours img { opacity:.6; }
.c75-apercu-page.en-cours .c75-apercu-attente { display:block; }

/* barre « Enregistrer » toujours visible */
.c75-mep-enregistrer { position:sticky; bottom:0; z-index:6; display:flex; justify-content:flex-end; align-items:center; gap:12px;
  margin-top:12px; padding:10px 0 4px; background:linear-gradient(to top, var(--bg, #F0F2F5) 75%, rgba(240,242,245,0)); }
.c75-mep-etat { font-size:13px; color:#CA6F1E; }
.c75-mep-enregistrer.modifie .c75-mep-etat::before { content:attr(data-modifie); }

@media (max-width:1199px) {
  .c75-mep { grid-template-columns:1fr; }
  .c75-mep-apercu { position:static; order:-1; width:100%; max-width:420px; margin:0 auto; }
}
@media (max-width:576px) {
  .c75-ligne-reglage, .c75-mes-styles { grid-template-columns:1fr; gap:4px; }
  .c75-nouveau-style { grid-column:1; }
  .c75-sect { padding:12px; }
  .c75-styles { gap:6px; }
  .c75-style-nom { font-size:11.5px; }
  .c75-choix-nature { grid-template-columns:1fr; }
  .c75-mep-apercu { max-width:300px; }
  .c75-mep-enregistrer { bottom:56px; }
}

.c75-lignes .c75-l-remise { width:70px; }
.c75-facturation-cab { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.c75-facturation-cab form { margin:0; }
.c75-type-creer { background:#fff; border-style:solid; border-width:2px; }

/* Téléphone : chaque ligne de facture devient une carte (pas de défilement horizontal) */
@media (max-width:768px) {
  .c75-facture-form .table-responsive { overflow:visible; }
  .c75-lignes { min-width:0; }
  .c75-lignes thead { display:none; }
  .c75-lignes, .c75-lignes tbody { display:block; }
  .c75-lignes tr { display:grid; grid-template-columns:repeat(6, 1fr); gap:6px 8px; padding:10px; margin-bottom:10px;
    border:1px solid var(--fc-border); border-radius:10px; background:#fff; }
  .c75-lignes tr.c75-ligne-titre { display:flex; background:#F5F7FA; }
  .c75-lignes tr.c75-ligne-titre td:first-child { flex:1; }
  .c75-lignes td { display:block; width:auto !important; padding:0 !important; border:0; }
  .c75-lignes td[data-label]::before { content:attr(data-label); display:block; font-size:11px; color:var(--fc-muted); margin-bottom:2px; }
  .c75-lignes .c75-l-ref { grid-column:span 2; }
  .c75-lignes td:nth-child(2) { grid-column:span 4; }
  .c75-lignes .c75-l-qte, .c75-lignes .c75-l-unite, .c75-lignes .c75-l-prix { grid-column:span 2; }
  .c75-lignes .c75-l-remise, .c75-lignes .c75-l-tva { grid-column:span 3; }
  .c75-lignes .c75-l-montant { grid-column:span 4; text-align:left !important; font-weight:700; align-self:end; }
  .c75-lignes .c75-l-actions { grid-column:span 2; text-align:right; align-self:end; }
  .c75-lignes .c75-l-actions .btn { font-size:18px; margin:0 4px; }
  .c75-lignes input, .c75-lignes select, .c75-lignes textarea { font-size:16px; }   /* iPhone : pas de zoom */
  .c75-totaux { width:100%; }
  .c75-actions-facture { width:100%; }
  .c75-actions-facture .fc-btn, .c75-actions-facture form { flex:1 1 auto; justify-content:center; }
  .c75-facture-form .c75-barre-actions { position:sticky; bottom:64px; background:var(--fc-bg, #F0F2F5); padding:8px 0; z-index:5; }
  .c75-facture-form .c75-barre-actions .fc-btn { flex:1; justify-content:center; }
}

/* Formulaires de réglages compacts (coordonnées, client, produit — 2026-10-29) */
.c75-reglages .fc-card-header { padding:10px 16px; }
.c75-reglages .fc-card-title { font-size:13.5px; }
.c75-reglages .fc-card-body { padding:12px 16px 14px; }
.c75-reglages .row { --bs-gutter-x:.6rem; --bs-gutter-y:.45rem; }
.c75-reglages .form-label { font-size:12px; font-weight:600; color:var(--fc-muted); margin-bottom:2px; }
.c75-reglages .form-control, .c75-reglages .form-select { padding:.3rem .6rem; font-size:13.5px; border-radius:6px; min-height:0; }
.c75-reglages .form-select { padding-right:2rem; background-position:right .5rem center; }
.c75-reglages .input-group-text { padding:.3rem .6rem; font-size:13px; }
.c75-reglages textarea.form-control { line-height:1.4; }
.c75-reglages .form-check { font-size:13px; margin-bottom:2px; }
.c75-reglages .fc-card + .fc-card, .c75-reglages .fc-card.mt-3 { margin-top:12px !important; }
.c75-reglages .c75-series td, .c75-reglages .c75-series th { padding:2px; }
.c75-reglages .c75-carte-choix { padding:8px 10px; }
.c75-reglages .c75-barre-actions { margin-top:10px; }

/* Recherche d'entreprise (SIREN / SIRET / nom) et adresse de livraison (2026-10-29) */
.c75-recherche-entreprise { position:relative; }
.c75-btn-loupe { border-color:var(--fc-border); }
.c75-entreprise-etat { font-size:12px; color:var(--fc-muted); min-height:0; margin-top:3px; }
.c75-entreprise-etat:empty { display:none; }
.c75-entreprise-etat.ok { color:#1E8449; }
.c75-entreprise-etat.attention, .c75-entreprise-etat.erreur { color:#C0392B; }
.c75-entreprise-resultats { position:absolute; z-index:20; left:0; right:0; top:100%; margin:4px 0 0; padding:4px; list-style:none;
  background:#fff; border:1px solid var(--fc-border); border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.12); max-height:320px; overflow:auto; }
.c75-entreprise-choix { display:flex; flex-direction:column; align-items:flex-start; gap:1px; width:100%; text-align:left;
  border:0; background:none; border-radius:6px; padding:7px 9px; }
.c75-entreprise-choix:hover, .c75-entreprise-choix:focus { background:#F0F7FD; }
.c75-entreprise-choix b { font-size:13.5px; }
.c75-entreprise-choix small { font-size:12px; color:var(--fc-muted); }
.c75-sous-titre-form { font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--fc-muted);
  margin-top:10px; padding-top:8px; border-top:1px solid var(--fc-border-soft, #EDF0F3); }
.c75-livraison-case { font-size:13.5px; margin:0; }

/* Cartes des formulaires de facturation (2e version, 2026-10-29) : plusieurs cartes côte à côte,
   en-tête teinté et pastille d'icône de la couleur de la carte */
.c75-cartes-grille { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px; align-items:start; }
.c75-cartes-grille.c75-deux { grid-template-columns:repeat(2, minmax(0, 1fr)); }
@media (max-width:1199px) { .c75-cartes-grille { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:767px) { .c75-cartes-grille, .c75-cartes-grille.c75-deux { grid-template-columns:1fr; } }
.c75-cartes-grille > .fc-card { margin:0 !important; height:100%; }
.c75-reglages .fc-card { --c:#2471A3; --t:#EEF5FB; border:1px solid #E3E8EF; border-radius:14px; overflow:visible;
  box-shadow:0 1px 2px rgba(16,24,40,.04), 0 6px 18px rgba(16,24,40,.05); }
.c75-reglages .fc-card:hover { box-shadow:0 1px 2px rgba(16,24,40,.05), 0 8px 22px rgba(16,24,40,.08); }
.c75-reglages .fc-card-header { background:linear-gradient(180deg, var(--t) 0%, #fff 100%); border-bottom:1px solid #EEF1F5;
  border-radius:14px 14px 0 0; padding:11px 16px; }
.c75-reglages .fc-card-title { display:flex; align-items:center; gap:10px; font-size:14px; font-weight:700; color:#1F2D3D; }
.c75-reglages .fc-card-title > i { width:30px; height:30px; border-radius:9px; display:inline-grid; place-items:center; flex:0 0 auto;
  background:var(--c); color:#fff; font-size:14px; box-shadow:0 3px 8px color-mix(in srgb, var(--c) 30%, transparent); }
.c75-reglages .form-control:focus, .c75-reglages .form-select:focus { border-color:var(--c);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--c) 15%, transparent); }
.c75-c-bleu { --c:#2471A3 !important; --t:#EEF5FB !important; }
.c75-c-vert { --c:#1E8449 !important; --t:#EDF8F1 !important; }
.c75-c-orange { --c:#CA6F1E !important; --t:#FDF3E9 !important; }
.c75-c-violet { --c:#6C4BC4 !important; --t:#F3F0FC !important; }
.c75-c-ardoise { --c:#4A6274 !important; --t:#F0F3F6 !important; }
.c75-c-sarcelle { --c:#138D90 !important; --t:#EAF6F6 !important; }
.c75-c-rouge { --c:#B03A2E !important; --t:#FBEFEE !important; }
/* barre d'actions des formulaires : à droite, fond de page */
.c75-reglages > .c75-barre-actions { position:sticky; bottom:0; z-index:5; margin-top:14px; padding:10px 0 4px;
  background:linear-gradient(to top, var(--bg, #F0F2F5) 75%, rgba(240,242,245,0)); }
@media (max-width:768px) { .c75-reglages > .c75-barre-actions { bottom:56px; } }
/* adresse de livraison identique : l'adresse de facturation en gris */
.c75-livraison-apercu { margin-top:10px; padding:10px 12px; border-radius:8px; background:#F6F8FA; color:#7B8794; font-size:13px;
  line-height:1.5; white-space:pre-line; }
.c75-livraison-apercu:empty { display:none; }
@media (max-width:768px) { .c75-reglages .c75-lignes .form-control, .c75-reglages .c75-lignes .form-select { font-size:16px; } }   /* iPhone : pas de zoom */
.c75-reglages .c75-cartes-grille > .fc-card { margin:0 !important; }   /* côte à côte : pas de décalage vertical */

/* Mentions légales (2026-10-29) : texte imprimé en gris ; une ligne à 0 % sans mention qui l'explique → TVA en rouge */
.c75-mentions-apercu { margin-top:10px; padding:10px 12px; border-radius:8px; background:#F6F8FA; color:#7B8794;
  font-size:12.5px; line-height:1.5; white-space:pre-line; font-style:italic; }
.c75-mentions-apercu:empty { display:none; }
.c75-manque .c75-mentions[data-groupe="tva"] { outline:2px solid #E74C3C; outline-offset:4px; border-radius:8px; }
.c75-puce input:disabled + span { opacity:.75; cursor:default; }

/* Fiche client (2026-10-29) : quatre cartes côte à côte sur grand écran, lecture seule une fois enregistrée */
.c75-cartes-grille.c75-quatre { grid-template-columns:repeat(4, minmax(0, 1fr)); }
@media (max-width:1499px) { .c75-cartes-grille.c75-quatre { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:767px) { .c75-cartes-grille.c75-quatre { grid-template-columns:1fr; } }
.c75-naf-libelle { display:block; margin-top:4px; font-size:12px; color:var(--fc-muted); line-height:1.35; }
.c75-naf-libelle:empty { display:none; }
.c75-fiche { display:grid; grid-template-columns:1fr; gap:0; margin:0; }
.c75-fiche dt { font-size:11.5px; font-weight:600; color:var(--fc-muted); margin-top:8px; }
.c75-fiche dt:first-child { margin-top:0; }
.c75-fiche dd { margin:1px 0 0; font-size:14px; color:var(--fc-text); word-break:break-word; }
.c75-adresse { font-size:14px; line-height:1.6; color:var(--fc-text); }

/* Coordonnées & numérotation en lecture (2026-10-29) */
.c75-series-vue th { font-size:13px; color:var(--fc-text); font-weight:600; padding:6px 0; width:45%; }
.c75-series-vue td { padding:6px 0; }
.c75-series-vue code { font-size:14px; background:#F3F0FC; color:#4B3594; padding:2px 8px; border-radius:6px; }
.c75-reglages .c75-cartes-grille + .fc-card { margin-top:16px !important; }

/* Facture : client résumé comme sur la facture, choisi dans le carnet (2026-10-29) */
.c75-client-choix { display:flex; gap:8px; align-items:center; }
.c75-client-choix .form-select { flex:1; min-width:0; }
.c75-client-choix .fc-btn { white-space:nowrap; }
.c75-client-resume { display:flex; flex-direction:column; margin-top:12px; padding:12px 14px; border-radius:10px;
  background:#F7F9FB; border:1px solid #EEF1F5; font-size:14px; line-height:1.45; color:var(--fc-text); }
.c75-client-resume:empty { display:none; }
.c75-client-resume b { font-size:15px; }
.c75-client-resume small { color:var(--fc-muted); font-size:12.5px; margin-top:4px; }
.c75-resume-livraison { display:block; padding-top:6px; margin-top:6px !important; border-top:1px dashed #DDE3EA; }
.c75-lien-fiche { align-self:flex-start; margin-top:8px; font-size:12.5px; font-weight:600; }
@media (max-width:576px) { .c75-client-choix { flex-wrap:wrap; } .c75-client-choix .fc-btn { width:100%; justify-content:center; } }
.c75-resume-livraison { white-space:pre-line; }

/* ═══ Module Factures de vente : mêmes cartes sur toutes les pages (3e version, 2026-10-29) ═══
   body.c75-fac = pages du module (bloc classe_body). Largeur limitée, onglets en pastilles, cartes arrondies à
   en-tête teinté, tableaux à en-tête clair, chiffres compacts ; téléphone : une colonne. */
@media (min-width:1200px) {   /* contenu sur 1440 px au plus, centré ; chaque bloc garde sa propre largeur (cartes étroites) */
  body.c75-fac .cab-content { padding-left:max(22px, calc((100% - 1440px) / 2)); padding-right:max(22px, calc((100% - 1440px) / 2)); }
}
body.c75-fac .cab-content > .c75-fac-onglets { max-width:100%; }
@media (min-width:769px) { .c75-fac-onglets.c75-onglets-defilants { flex-wrap:wrap; } }   /* écran moyen : à la ligne, pas de défilement */
body.c75-fac .fc-page-header { margin-bottom:14px; }

/* onglets du module */
.c75-fac-onglets { position:relative; display:flex; gap:2px; width:fit-content; max-width:100%; margin:0 0 16px; padding:4px;
  list-style:none; background:#fff; border:1px solid #E3E8EF; border-radius:12px; box-shadow:0 1px 2px rgba(16,24,40,.04); }
.c75-fac-onglets .nav-link { display:flex; align-items:center; gap:6px; padding:7px 13px; border-radius:9px; border:0;
  font-size:13px; font-weight:600; color:#5B6B7B; white-space:nowrap; transition:background .12s, color .12s; }
.c75-fac-onglets .nav-link i { font-size:14px; }
.c75-fac-onglets .nav-link:hover { background:#F3F6F9; color:#1F2D3D; }
.c75-fac-onglets .nav-link.active { background:#EAF3FA; color:var(--fc-accent); box-shadow:inset 0 0 0 1px #CFE3F3; }

/* cartes */
body.c75-fac .fc-card { --c:#4A6274; --t:#F4F7FA; border:1px solid #E3E8EF; border-radius:14px; margin-bottom:16px;
  box-shadow:0 1px 2px rgba(16,24,40,.04), 0 6px 18px rgba(16,24,40,.05); }
body.c75-fac .fc-card:hover { box-shadow:0 1px 2px rgba(16,24,40,.05), 0 8px 22px rgba(16,24,40,.08); }
body.c75-fac .fc-card-header { background:linear-gradient(180deg, var(--t) 0%, #fff 100%); border-bottom:1px solid #EEF1F5;
  border-radius:14px 14px 0 0; padding:11px 16px; gap:10px; }
body.c75-fac .fc-card-title { display:flex; align-items:center; gap:10px; font-size:14px; font-weight:700; color:#1F2D3D; }
body.c75-fac .fc-card-title > i { width:30px; height:30px; border-radius:9px; display:inline-grid; place-items:center; flex:0 0 auto;
  background:var(--c); color:#fff; font-size:14px; box-shadow:0 3px 8px color-mix(in srgb, var(--c) 30%, transparent); }
body.c75-fac .fc-card-body { padding:14px 16px; }
body.c75-fac .c75-mep-reglages { border-color:#E3E8EF; border-radius:14px; box-shadow:0 1px 2px rgba(16,24,40,.04), 0 6px 18px rgba(16,24,40,.05); }

/* chiffres (liste des factures) : liseré de couleur, compacts */
body.c75-fac .fc-stats-grid { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; margin-bottom:16px; }
body.c75-fac .fc-stat-card { --c:#2471A3; position:relative; overflow:hidden; padding:14px 16px 14px 20px; gap:14px;
  border:1px solid #E3E8EF; border-radius:14px; box-shadow:0 1px 2px rgba(16,24,40,.04), 0 6px 18px rgba(16,24,40,.05); }
body.c75-fac .fc-stat-card::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--c); }
body.c75-fac .fc-stat-card:hover { transform:none; }
body.c75-fac .fc-stat-icon { width:40px; height:40px; border-radius:11px; font-size:19px; }
body.c75-fac .fc-stat-value { font-size:20px; font-variant-numeric:tabular-nums; }

/* listes : recherche et tableau dans la même carte ; en-tête de tableau clair */
body.c75-fac .c75-liste { overflow:hidden; }
.c75-fusion-note { display:block; max-width:300px; margin-top:4px; font-size:12px; line-height:1.35; color:var(--text-muted); white-space:normal; }
.c75-reprise { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
.c75-reprise-boutons { display:flex; gap:8px; }
body.c75-fac .c75-filtres { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:10px 14px; border-bottom:1px solid #EEF1F5; background:#F8FAFC; }
body.c75-fac .c75-filtres .form-control, body.c75-fac .c75-filtres .form-select { flex:1 1 120px; width:auto; min-width:0; font-size:13px; }
body.c75-fac .c75-filtres select { appearance:auto; -webkit-appearance:menulist; background-image:none; }
body.c75-fac .c75-filtres .c75-par-page { flex:0 0 auto; width:auto; margin-left:auto; }
body.c75-fac .c75-liste .fc-empty-state { padding:36px 16px; }
body.c75-fac .fc-table thead th { background:#F6F8FA; color:#5B6B7B; font-size:11.5px; font-weight:700; text-transform:uppercase;
  letter-spacing:.04em; border-right:0; border-bottom:1px solid #E6EAF0; padding:10px 14px; }
body.c75-fac .fc-table tbody tr:nth-child(even) { background:transparent; }
body.c75-fac .fc-table tbody tr:hover { background:#F5F9FD; }
body.c75-fac .table.c75-lignes thead th { background:#F6F8FA !important; color:#5B6B7B !important; border-color:#E6EAF0 !important;
  font-size:11.5px !important; font-weight:700 !important; text-transform:uppercase; letter-spacing:.04em; padding:8px 6px !important; }
body.c75-fac .table.c75-lignes tbody td { padding:5px 4px !important; font-size:14px; }

/* fiches en lecture : libellé à gauche, valeur à droite */
.c75-fiche { grid-template-columns:minmax(92px, 38%) minmax(0, 1fr); gap:7px 12px; align-items:baseline; }
.c75-fiche dt, .c75-fiche dt:first-child { margin-top:0; font-size:12px; }
.c75-fiche dd { margin:0; }
.c75-fiche dd + dd { grid-column:1 / -1; }

/* facture (saisie) : client | document ; lignes ; mentions | totaux + commentaire */
.c75-cartes-grille.c75-fac-entete { grid-template-columns:minmax(0, 5fr) minmax(0, 7fr); }
.c75-client-resume:not(:has(b)) { display:none; }   /* aucun client choisi (le bloc ne contient que des blancs) */
.c75-fac-bas { display:grid; grid-template-columns:minmax(0, 7fr) minmax(0, 5fr); gap:16px; margin-top:16px; align-items:start; }
.c75-fac-bas-gauche, .c75-fac-bas-droite { display:flex; flex-direction:column; gap:16px; min-width:0; }
.c75-fac-bas .fc-card { margin:0 !important; }
.c75-fac-bas .c75-totaux { width:100%; margin-top:12px; }
.c75-lignes-outils { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.c75-lignes-outils .c75-catalogue { margin-left:auto; flex:0 1 380px; max-width:100%; }
.c75-facture-form .c75-lignes-outils .form-control { padding:.3rem .6rem; font-size:13.5px; }

/* facture (lecture) : lignes + totaux à gauche, client et encaissements à droite */
.c75-fac-detail { display:grid; grid-template-columns:minmax(0, 2fr) minmax(300px, 1fr); gap:16px; align-items:start; }
.c75-fac-detail > div { min-width:0; }
.c75-fac-detail .fc-card { margin:0 0 16px !important; }

@media (max-width:991px) {
  .c75-cartes-grille.c75-fac-entete, .c75-fac-bas, .c75-fac-detail { grid-template-columns:1fr; }
  .c75-fac-bas-droite { order:-1; }
}
@media (max-width:768px) {
  .c75-fac-onglets { width:100%; }
  .c75-fac-onglets .nav-link { padding:7px 11px; }
  body.c75-fac .fc-stats-grid { gap:8px; margin-bottom:12px; }
  body.c75-fac .fc-stat-card { flex-direction:column; align-items:flex-start; gap:0; padding:10px 8px 10px 13px; }
  body.c75-fac .fc-stat-icon { display:none; }
  body.c75-fac .fc-stat-value { font-size:15px; }
  body.c75-fac .fc-stat-label { font-size:11px; line-height:1.25; }
  body.c75-fac .c75-filtres .form-control, body.c75-fac .c75-filtres .form-select { flex:1 1 calc(50% - 4px); font-size:16px; }
  body.c75-fac .c75-filtres .c75-par-page { flex:1 1 100%; margin-left:0; }
  .c75-lignes-outils .c75-catalogue { margin-left:0; flex:1 1 100%; }
  /* détail : chaque ligne en deux rangées (désignation ; quantité × prix · TVA … montant) */
  body.c75-fac table.c75-detail-lignes tr:not(.c75-ligne-titre) { display:grid; grid-template-columns:auto auto auto 1fr;
    column-gap:12px; row-gap:2px; align-items:baseline; }
  body.c75-fac table.c75-detail-lignes td { width:auto; }
  body.c75-fac table.c75-detail-lignes td[data-label]::before { content:none; }
  body.c75-fac table.c75-detail-lignes td:first-child { grid-column:1 / -1; font-weight:600; }
  body.c75-fac table.c75-detail-lignes .c75-d-qte, body.c75-fac table.c75-detail-lignes .c75-d-prix,
  body.c75-fac table.c75-detail-lignes .c75-d-tva { font-size:12.5px; color:var(--fc-muted); }
  body.c75-fac table.c75-detail-lignes td.c75-d-prix::before { content:'× '; display:inline; min-width:0; font-size:inherit; color:inherit; font-weight:400; }
  body.c75-fac table.c75-detail-lignes td.c75-d-tva::before { content:'TVA '; display:inline; min-width:0; font-size:inherit; color:inherit; font-weight:400; }
  body.c75-fac table.c75-detail-lignes .c75-d-montant { text-align:right !important; font-weight:700; }
}

/* ═══ Analyse des données (accueil du module, 2026-10-29) ═══
   Encre pour tout le texte ; couleur seulement sur les marques. Filets pleins et discrets. */
.c75-ana-annees { display:inline-flex; flex-wrap:wrap; gap:2px; padding:3px; margin:0 0 14px; background:#EAEEF3; border-radius:10px; }
.c75-ana-annees a { padding:5px 14px; border-radius:8px; font-size:13px; font-weight:600; color:#5B6B7B; text-decoration:none;
  font-variant-numeric:tabular-nums; transition:background .12s, color .12s; }
.c75-ana-annees a:hover { color:#1F2D3D; background:rgba(255,255,255,.6); }
.c75-ana-annees a.actif { background:#fff; color:#1F2D3D; box-shadow:0 1px 3px rgba(16,24,40,.14); }

/* chiffres clés */
.c75-ana-kpis { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:14px; margin-bottom:16px; }
.c75-ana-kpi { --c:#2471A3; --t:#EEF5FB; position:relative; display:flex; flex-direction:column; gap:4px; min-width:0;
  padding:14px 16px; background:#fff; border:1px solid #E3E8EF; border-radius:14px;
  box-shadow:0 1px 2px rgba(16,24,40,.04), 0 6px 18px rgba(16,24,40,.05); }
.c75-ana-kpi-tete { display:flex; align-items:center; gap:8px; }
.c75-ana-kpi-icone { width:28px; height:28px; border-radius:8px; display:inline-grid; place-items:center; flex:0 0 auto;
  background:var(--t); color:var(--c); font-size:14px; }
.c75-ana-kpi-lib { font-size:12.5px; font-weight:600; color:#5B6B7B; }
.c75-ana-kpi-val { font-size:24px; font-weight:800; color:#1F2D3D; letter-spacing:-.01em; line-height:1.2; margin-top:2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.c75-ana-kpi-sous { font-size:12.5px; color:var(--fc-muted); }
.c75-ana-critique { color:#d03b3b; } .c75-ana-bon { color:#0ca30c; }
.c75-ana-jauge { height:6px; border-radius:3px; background:#DCEBFA; overflow:hidden; margin:4px 0 2px; }
.c75-ana-jauge span { display:block; height:100%; width:0; border-radius:3px; background:#1E8449; transition:width 1.1s cubic-bezier(.2,.8,.2,1); }
.c75-c-vert .c75-ana-jauge { background:#E3F3E8; }
/* héros : le chiffre d'affaires, fond de la couleur de la marque */
.c75-ana-heros { grid-column:span 2; flex-direction:row; align-items:stretch; gap:12px; border:0; overflow:hidden; color:#fff;
  background:radial-gradient(120% 140% at 100% 0%, #4b93e6 0%, rgba(75,147,230,0) 55%), linear-gradient(135deg, #17508f 0%, #2471A3 55%, #2a78d6 100%);
  box-shadow:0 10px 28px rgba(36,113,163,.28); }
.c75-ana-heros-texte { display:flex; flex-direction:column; gap:6px; min-width:0; flex:0 0 auto; }
.c75-ana-heros .c75-ana-kpi-lib { white-space:nowrap; }
.c75-ana-heros .c75-ana-kpi-lib { color:rgba(255,255,255,.82); }
.c75-ana-heros .c75-ana-kpi-val { color:#fff; font-size:34px; }
.c75-ana-delta { align-self:flex-start; display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:999px;
  background:rgba(255,255,255,.16); font-size:12.5px; color:rgba(255,255,255,.9); }
.c75-ana-delta b { color:#fff; }
.c75-ana-sparkline { flex:1 1 auto; min-width:120px; height:78px; align-self:flex-end; }
.c75-ana-spark-ligne { fill:none; stroke:#fff; stroke-width:2; stroke-linejoin:round; stroke-linecap:round; }
.c75-ana-spark-aire { fill:rgba(255,255,255,.14); }
.c75-ana-spark-point { fill:#fff; stroke:#2471A3; stroke-width:2; }

/* grille des graphiques */
.c75-ana-grille { display:grid; grid-template-columns:repeat(12, minmax(0, 1fr)); gap:16px; }
.c75-ana-grille > .fc-card { margin:0 !important; min-width:0; }
.c75-ana-4 { grid-column:span 4; } .c75-ana-6 { grid-column:span 6; } .c75-ana-8 { grid-column:span 8; } .c75-ana-12 { grid-column:span 12; }
.c75-ana-grille .fc-card-body { padding:14px 16px 16px; }
.c75-ana-puce { display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:999px; background:#F1F4F8;
  font-size:12px; color:#5B6B7B; white-space:nowrap; }
.c75-ana-puce b { color:#1F2D3D; }
.c75-ana-seg { display:inline-flex; gap:2px; padding:3px; background:#EEF1F4; border-radius:9px; }
.c75-ana-seg button { border:0; background:none; padding:4px 12px; border-radius:7px; font-size:12.5px; font-weight:600; color:#5d6d7e; }
.c75-ana-seg button:hover { color:#1F2D3D; }
.c75-ana-seg button.actif { background:#fff; color:#1F2D3D; box-shadow:0 1px 3px rgba(0,0,0,.14); }
.c75-ana-vide { padding:28px 8px; text-align:center; color:var(--fc-muted); font-size:13px; }

/* légendes : un carré pour les barres, un trait pour les courbes */
.c75-ana-legende { display:flex; flex-wrap:wrap; gap:6px 18px; font-size:12.5px; color:#5B6B7B; margin-bottom:6px; }
.c75-ana-legende b { color:#1F2D3D; font-variant-numeric:tabular-nums; margin-left:2px; }
.c75-ana-cle { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:4px; vertical-align:-1px; transition:all .2s; }
.c75-ana-cle-n { background:#2a78d6; } .c75-ana-cle-n1 { background:#c5ced8; }
.vue-cumul .c75-ana-cle { width:14px; height:3px; border-radius:2px; vertical-align:3px; }
.c75-ana-carre { display:inline-block; width:10px; height:10px; border-radius:3px; flex:0 0 auto; }

/* SVG */
.c75-ana-graphe { position:relative; min-height:230px; }
.c75-ana-svg { display:block; overflow:visible; }
.c75-ana-svg text { font-size:11px; fill:#7b8794; font-variant-numeric:tabular-nums; }
.c75-ana-grille line, line.c75-ana-grille { stroke:#eef1f5; stroke-width:1; shape-rendering:crispEdges; }
line.c75-ana-base { stroke:#d5dbe1; stroke-width:1; shape-rendering:crispEdges; }
.c75-ana-ligne { fill:none; stroke-width:2; stroke-linejoin:round; stroke-linecap:round; }
.c75-ana-aire { opacity:.1; }
.c75-ana-point { stroke:#fff; stroke-width:2; }
text.c75-ana-etiquette { font-size:12px; font-weight:700; fill:#1F2D3D; }
.c75-ana-voile { fill:#2a78d6; opacity:0; transition:opacity .12s; pointer-events:none; }
.c75-ana-voile.visible { opacity:.06; }
.c75-ana-reticule { stroke:#9aa5b1; stroke-width:1; opacity:0; pointer-events:none; }
.c75-ana-reticule.visible { opacity:1; }
.c75-ana-zone { fill:transparent; cursor:default; outline:none; }
.c75-ana-zone:focus-visible { stroke:#2a78d6; stroke-width:1; }

/* anneau */
.c75-ana-anneau { display:flex; align-items:center; justify-content:center; gap:20px; flex-wrap:wrap; min-height:200px; }
.c75-ana-anneau-cadre { position:relative; width:176px; height:176px; flex:0 0 auto; }
.c75-ana-anneau-centre { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  pointer-events:none; }
.c75-ana-anneau-centre b { font-size:20px; font-weight:800; color:#1F2D3D; }
.c75-ana-anneau-centre span { font-size:12px; color:var(--fc-muted); }
.c75-ana-segment { transition:stroke-width .15s, opacity .15s; outline:none; cursor:default; }
.c75-ana-anneau.survol .c75-ana-segment { opacity:.35; }
.c75-ana-anneau.survol .c75-ana-segment.actif { opacity:1; stroke-width:24; }
.c75-ana-legende-liste { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; min-width:0; flex:1 1 170px; }
.c75-ana-legende-liste li { display:flex; align-items:center; gap:8px; font-size:13px; padding:3px 6px; border-radius:7px; transition:background .12s; }
.c75-ana-legende-liste li.actif { background:#F3F6FA; }
.c75-ana-legende-nom { flex:1; min-width:0; color:#3E4C5A; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.c75-ana-legende-liste b { color:#1F2D3D; font-variant-numeric:tabular-nums; white-space:nowrap; }
.c75-ana-legende-pct { color:var(--fc-muted); font-size:12px; min-width:46px; text-align:right; font-variant-numeric:tabular-nums; }
.c75-ana-legende-ligne { flex-direction:row; flex-wrap:wrap; gap:4px 14px; margin-top:8px; }
.c75-ana-legende-ligne li { padding:0; gap:6px; font-size:12.5px; }
.c75-ana-legende-ligne .c75-ana-legende-nom { flex:0 1 auto; }

/* classements */
.c75-ana-rangs { display:flex; flex-direction:column; gap:9px; }
.c75-ana-rang { padding:4px 6px; margin:0 -6px; border-radius:8px; outline:none; transition:background .12s; }
.c75-ana-rang:hover, .c75-ana-rang:focus-visible { background:#F4F7FB; }
.c75-ana-rang-tete { display:flex; align-items:baseline; gap:8px; font-size:13px; margin-bottom:5px; min-width:0; }
.c75-ana-rang-num { width:20px; height:20px; border-radius:6px; background:#EEF2F6; color:#5B6B7B; font-size:11px; font-weight:700;
  display:inline-grid; place-items:center; flex:0 0 auto; align-self:center; }
.c75-ana-rang:first-child .c75-ana-rang-num { background:#2a78d6; color:#fff; }
.c75-ana-rang-nom { flex:1; min-width:0; color:#2C3E50; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.c75-ana-rang-val { font-weight:700; color:#1F2D3D; white-space:nowrap; font-variant-numeric:tabular-nums; }
.c75-ana-rang-sous { min-width:54px; text-align:right; color:var(--fc-muted); font-size:12px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.c75-ana-piste { height:8px; border-radius:0 4px 4px 0; background:#F2F5F8; overflow:hidden; }
.c75-ana-barre { height:100%; width:0; border-radius:0 4px 4px 0; transition:width .95s cubic-bezier(.2,.8,.2,1); }

/* barre empilée */
.c75-ana-pile { display:flex; gap:2px; height:14px; border-radius:7px; overflow:hidden; background:#F2F5F8; }
.c75-ana-pile-seg { display:block; height:100%; width:0; transition:width 1s cubic-bezier(.2,.8,.2,1), filter .12s; outline:none; }
.c75-ana-pile-seg:hover, .c75-ana-pile-seg:focus-visible { filter:brightness(1.12); }

/* bulle */
.c75-ana-bulle { position:absolute; z-index:1080; left:0; top:0; min-width:150px; max-width:280px; padding:9px 11px; pointer-events:none;
  background:#fff; border:1px solid #E3E8EF; border-radius:10px; box-shadow:0 10px 28px rgba(16,24,40,.16);
  font-size:12.5px; color:#3E4C5A; opacity:0; transform:translateY(4px); transition:opacity .12s, transform .12s; }
.c75-ana-bulle.visible { opacity:1; transform:none; }
.c75-ana-bulle-titre { font-size:12px; font-weight:600; color:var(--fc-muted); margin-bottom:5px; }
.c75-ana-bulle-ligne { display:flex; align-items:center; gap:7px; line-height:1.6; }
.c75-ana-bulle-ligne b { color:#1F2D3D; font-size:13px; font-variant-numeric:tabular-nums; }
.c75-ana-bulle-cle { display:inline-block; width:12px; height:3px; border-radius:2px; flex:0 0 auto; }

/* tableaux */
.c75-ana-tableaux .fc-card-header { flex-wrap:wrap; }
.c75-ana-table td, .c75-ana-table th { font-variant-numeric:tabular-nums; }
.c75-ana-total td { border-top:1px solid #E3E8EF; font-weight:700; background:#FAFBFC; }

@media (max-width:1199px) {
  .c75-ana-8 { grid-column:span 12; } .c75-ana-4 { grid-column:span 6; }
}
@media (max-width:991px) {
  .c75-ana-kpis { grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width:767px) {
  .c75-ana-4, .c75-ana-6, .c75-ana-8, .c75-ana-12 { grid-column:span 12; }
  .c75-ana-kpis { gap:10px; }
  .c75-ana-kpi { padding:12px; }
  .c75-ana-kpi-val { font-size:19px; }
  .c75-ana-heros { flex-direction:column; gap:4px; }
  .c75-ana-heros .c75-ana-kpi-val { font-size:28px; }
  .c75-ana-sparkline { width:100%; height:56px; }
  .c75-ana-kpi-icone { width:24px; height:24px; font-size:12px; }
  .c75-ana-annees { display:flex; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
  .c75-ana-graphe { min-height:200px; }
  .c75-ana-tableaux .c75-ana-seg { width:100%; }
  .c75-ana-tableaux .c75-ana-seg button { flex:1; }
  body.c75-fac table.c75-ana-table .c75-ana-total { display:none; }
  body.c75-fac table.c75-ana-table td[data-label]::before { min-width:118px; }
}

/* ═══ Origine d’une facture / d’un avoir (2026-10-29) ═══ */
.c75-origine { display:inline-flex; align-items:center; gap:5px; margin-top:6px; padding:3px 10px; border-radius:999px;
  background:#F3F0FC; color:#4B3594; font-size:12.5px; font-weight:600; text-decoration:none; }
.c75-origine:hover { background:#E9E3FA; color:#3B2880; }
.c75-entete-liste { min-height:40px; }   /* onglet sans bouton « Nouveau » : la page ne saute pas */
.c75-lien-ligne { line-height:1.5; font-size:12.5px; }
.c75-lien-doc { display:inline-block; margin-right:10px; font-weight:600; white-space:nowrap; }
.c75-col-liens .c75-fusion-note { margin-top:0; max-width:none; }
@media (min-width:769px) {   /* mêmes largeurs d'un onglet à l'autre */
  table.c75-table-docs { table-layout:fixed; width:100%; }
  table.c75-table-docs th:nth-child(1) { width:44px; }
  table.c75-table-docs th:nth-child(2) { width:11%; }
  table.c75-table-docs th:nth-child(3) { width:10%; }
  table.c75-table-docs th:nth-child(5) { width:28%; }
  table.c75-table-docs th:nth-child(6) { width:12%; }
  table.c75-table-docs th:nth-child(7) { width:14%; }
  table.c75-table-docs th:nth-child(8) { width:64px; }
}
@media (max-width:768px) { body.c75-fac table.c75-cartes td.c75-sans-origine { display:none !important; } }

/* ═══ Listes : tri par en-tête, sélection (2026-10-29) ═══ */
th.c75-th-tri a { color:inherit; text-decoration:none; display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
th.c75-th-tri a:hover { color:#1F2D3D; }
th.c75-th-tri i { font-size:10px; opacity:.45; }
th.c75-th-tri.actif { color:#1F2D3D !important; }
th.c75-th-tri.actif i { opacity:1; color:var(--fc-accent); }
th.c75-th-tri.text-end a { flex-direction:row; }
body.c75-fac .c75-liste-selection { margin:0; padding:8px 14px; border-bottom:1px solid #EEF1F5; background:#FBFCFD; }
body.c75-fac .c75-liste .c75-col-coche { width:40px; padding-right:0; }

/* ═══ Fiche client : établie en France / UE / Hors UE (2026-10-30) ═══ */
/* (pas « .c75-zone » : c'est la zone de dépôt des pages d'envoi, et ce fichier est chargé sur toutes les pages) */
.c75-zone-client { display:grid; grid-template-columns:repeat(3, 1fr); gap:2px; padding:3px; background:#F3F6F9;
  border:1px solid #E3E8EF; border-radius:10px; }
.c75-zone-client label { position:relative; margin:0; padding:6px 8px; border-radius:7px; text-align:center; font-size:13px;
  font-weight:600; color:#5B6B7B; cursor:pointer; white-space:nowrap; transition:background .15s, color .15s; }
.c75-zone-client label:hover { color:#1F2D3D; }
.c75-zone-client input { position:absolute; opacity:0; pointer-events:none; }
.c75-zone-client label:has(input:checked) { background:#fff; color:var(--fc-accent); box-shadow:0 1px 2px rgba(16,24,40,.1); }
.c75-zone-client label:has(input:focus-visible) { outline:2px solid var(--fc-accent); outline-offset:1px; }
