/* ═══════════════════════════════════════════════════════════════
   Compta75 — compléments propres au portail.
   La base (couleurs, barre latérale, tableaux fc-*, boutons) est
   cabinet.css, copié tel quel de Cabinet Platform : même apparence.
   ═══════════════════════════════════════════════════════════════ */

body { font-family: 'Segoe UI', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif; }
.cab-main { min-width: 0; }            /* sans cela, une ligne qui ne passe pas élargit toute la page (téléphone) */
.fc-table a.fc-btn-primary, .fc-table a.fc-btn-primary:hover { color: #fff; text-decoration: none; }
.text-accent { color: var(--accent) !important; }
.c75-orange { color: var(--warning); }
.c75-vert { color: var(--success); }
.c75-rouge { color: var(--danger); }
.c75-petit { font-size: 12px; color: var(--fc-muted); }
.c75-danger { color: var(--danger) !important; }
.c75-danger:hover { border-color: var(--danger) !important; background: var(--danger-light) !important; }
.fc-page-title i { margin-right: 4px; }
.c75-carte-etroite { max-width: 460px; }
.c75-carte-moyenne { max-width: 760px; }
.c75-lien { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-size: 13px; }
.c75-lien:hover { text-decoration: underline; }
.c75-pied { padding: 8px 22px 18px; font-size: 12px; text-align: right; }
.c75-pied a { color: var(--text-muted); text-decoration: none; }
.c75-pied a:hover { color: var(--accent); }
.cab-sidebar form { margin: 0; }
button.sidebar-logout { cursor: pointer; text-align: left; }

/* ── Sélecteur de langue ─────────────────────────────────────── */
.c75-langue { display: inline-flex; flex: none; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #fff; }
.c75-langue form { margin: 0; }
.c75-langue button { border: 0; background: transparent; padding: 3px 10px; font-size: 13px; color: var(--text-muted); cursor: pointer;
  white-space: nowrap; }                    /* « 中文 » jamais sur deux lignes (nom de société long, 2026-10-30) */
.c75-langue button.actif { background: var(--accent); color: #fff; font-weight: 600; }

/* ══ Pages de connexion (même dessin que Cabinet Platform) ═════ */
body.c75-connexion {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: linear-gradient(135deg, #1A2535 0%, #2C3E50 60%, #1F618D 100%);
}
.login-box { width: 100%; max-width: 400px; background: #fff; border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25); overflow: hidden; }
.login-header { background: #2C3E50; padding: 26px 32px 20px; text-align: center; }
.login-header .logo-icon { font-size: 2rem; color: #AED6F1; line-height: 1; }
.login-header .logo-title { font-size: 19px; font-weight: 700; color: #fff; margin-top: 8px; letter-spacing: 0.3px; }
.login-header .logo-sub { font-size: 12.5px; color: rgba(255,255,255,0.55); margin-top: 3px; }
.login-body { padding: 26px 32px 28px; }
.login-body .form-label { font-size: 12.5px !important; color: #7F8C8D !important; }
.login-body .form-control { font-size: 14px !important; border: 1px solid #DDE1E7 !important; padding: 9px 12px !important; }
.login-body .input-group > .form-control { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.login-body .input-group > .form-control:not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.login-body .alert { font-size: 13px !important; }
.btn-login { background: #2980B9; border: none; color: #fff; font-weight: 600; font-size: 14px; padding: 10px;
  border-radius: 5px; width: 100%; cursor: pointer; transition: background 0.2s; display: block; text-align: center; text-decoration: none; }
.btn-login:hover { background: #1F618D; color: #fff; }
.pwd-toggle { cursor: pointer; border-left: none !important; }
.pwd-toggle:hover { color: #2980B9; background: #EAF2F8 !important; }
.remember-row { display: flex; align-items: center; margin-bottom: 18px; font-size: 13px; color: #5D6D7E; }
.remember-row input { margin-right: 7px; accent-color: #2980B9; width: 16px; height: 16px; }
.remember-row label { cursor: pointer; margin: 0; }
.c75-oubli { margin-top: 14px; font-size: 12.5px; color: var(--fc-muted); text-align: center; }
.login-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 20px; border-top: 1px solid var(--fc-border); background: #FAFBFC; font-size: 12.5px; }
.login-footer a { color: var(--text-muted); text-decoration: none; }
.login-footer form { margin: 0; }
.c75-regle { font-size: 12px; color: var(--fc-muted); margin-top: 5px; }
.c75-texte { font-size: 14px; color: var(--text); margin-bottom: 18px; }
.c75-btn-lien { margin-top: 6px; }
.c75-etapes { padding-left: 18px; font-size: 13px; color: var(--text); margin-bottom: 8px; }
.c75-qr { display: flex; justify-content: center; margin: 4px 0 6px; }
.c75-qr svg { width: 190px; height: 190px; }
.c75-secret { text-align: center; margin-bottom: 14px; }
.c75-secret code { font-size: 13px; letter-spacing: 1px; }
.c75-code { font-size: 20px !important; letter-spacing: 6px; text-align: center; }

/* ══ Envoyer des pièces ════════════════════════════════════════ */
.c75-envoi { display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: 18px; align-items: start; }

.c75-zone { border: 2px dashed #AFC6D9; border-radius: 12px; background: #F7FAFD; padding: 34px 18px;
  text-align: center; transition: background .15s, border-color .15s; }
.c75-zone.survol { background: #E8F1FA; border-color: var(--accent); }
.c75-zone-icone { font-size: 44px; color: var(--accent); display: block; line-height: 1; }
.c75-zone-titre { font-size: 17px; font-weight: 700; color: var(--text); margin-top: 10px; }
.c75-zone-ou { font-size: 13px; color: var(--fc-muted); margin: 8px 0 10px; }
.c75-formats { font-size: 12px; color: var(--fc-muted); margin-top: 10px; text-align: center; }
.c75-zone-cabinet { padding: 22px 16px; }
.c75-zone-cabinet .c75-zone-icone { font-size: 32px; }
.c75-zone-cabinet .c75-zone-titre { font-size: 15px; margin-bottom: 10px; }
.c75-noms-fichiers { margin-top: 10px; font-size: 13px; color: var(--text); }
.c75-noms-fichiers span { display: inline-block; background: #fff; border: 1px solid var(--fc-border);
  border-radius: 12px; padding: 2px 10px; margin: 3px; }

.c75-boutons-envoi { display: none; gap: 10px; }
.c75-gros-bouton { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 112px; border-radius: 12px; border: 1px solid var(--fc-border); background: #fff;
  color: var(--text); font-weight: 600; font-size: 15px; cursor: pointer; }
.c75-gros-bouton i { font-size: 34px; color: var(--accent); line-height: 1; }
.c75-gros-photo { background: linear-gradient(135deg,#2980B9,#2471A3); border-color: #2471A3; color: #fff; }
.c75-gros-photo i { color: #fff; }

/* Écrans tactiles : boutons « photo / fichiers » ; souris : zone de dépôt */
@media (hover: none), (pointer: coarse) {
  .c75-boutons-envoi { display: flex; }
  .c75-zone { display: none; }
}

.c75-carte-liste { display: flex; flex-direction: column; }
.c75-vide { text-align: center; color: var(--fc-muted); padding: 34px 10px; font-size: 14px; }
.c75-vide i { font-size: 40px; opacity: .5; display: block; margin-bottom: 8px; }
.c75-pieces { display: flex; flex-direction: column; gap: 10px; }
.c75-piece { display: flex; gap: 12px; border: 1px solid var(--fc-border); border-radius: 10px; padding: 10px; background: #fff; }
.c75-piece.etat-ok { border-color: #A9DFBF; background: #F4FBF6; }
.c75-piece.etat-echec, .c75-piece.etat-doublon { border-color: #F5B7B1; background: #FEF5F4; }
.c75-piece-apercu { width: 76px; flex-shrink: 0; display: flex; flex-wrap: wrap; gap: 3px; align-content: flex-start; }
.c75-piece-apercu img { width: 76px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid var(--fc-border); }
.c75-piece-apercu.plusieurs img { width: 36px; height: 46px; }
.c75-piece-apercu .c75-icone-fichier { width: 76px; height: 96px; display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: var(--accent); background: #F4F6F8; border-radius: 6px; }
.c75-piece-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.c75-piece-ligne { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.c75-piece-nom { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c75-piece-pages { font-size: 12.5px; color: var(--fc-muted); white-space: nowrap; }
.c75-piece-message { font-size: 12.5px; color: var(--danger); }
.c75-piece-message:empty { display: none; }
.c75-piece-progression { height: 6px; }
.c75-piece-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.c75-piece.verrou .c75-piece-actions { pointer-events: none; opacity: .6; }
/* Pièce envoyée : réduite à une ligne (beaucoup de pièces d'un coup) */
.c75-piece.etat-ok { padding: 6px 10px; align-items: center; }
.c75-piece.etat-ok .c75-piece-apercu { width: 28px; }
.c75-piece.etat-ok .c75-piece-apercu img, .c75-piece.etat-ok .c75-piece-apercu .c75-icone-fichier { width: 28px; height: 34px; font-size: 16px; }
.c75-piece.etat-ok .c75-piece-apercu img:not(:first-child), .c75-piece.etat-ok .c75-piece-apercu .c75-vignette:not(:first-child) { display: none; }
.c75-piece.etat-ok .c75-piece-pages, .c75-piece.etat-ok .c75-piece-actions, .c75-piece.etat-ok .c75-piece-progression { display: none; }
.c75-bilan { margin-bottom: 10px; }
.c75-bilan-ligne { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.c75-bilan-barre { height: 6px; }
.c75-barre-envoi { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--fc-border); background: #FBFCFD; }
.c75-btn-envoyer { flex: 1; justify-content: center; padding: 11px 14px; font-size: 15px; }
.c75-btn-envoyer:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }

/* Aperçus des pages d'une pièce, chacune retirable */
.c75-vignette { position: relative; display: inline-block; }
.c75-vignette button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0;
  border-radius: 50%; border: 0; background: var(--danger); color: #fff; font-size: 11px; line-height: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.c75-piece.verrou .c75-vignette button { display: none; }
.c75-choix { justify-content: center; padding: 11px 14px; font-size: 14.5px; }

/* ══ Appareil photo dans la page ═══════════════════════════════ */
body.c75-camera-ouverte { overflow: hidden; }
.c75-camera { position: fixed; inset: 0; z-index: 2000; background: #000; color: #fff; }
.c75-camera[hidden] { display: none; }
.c75-camera video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* top / bottom : mesurés par placerCadre() (envoyer.js) sous la barre du haut et au-dessus des boutons (2026-11-13) */
.c75-camera-cadre { position: absolute; left: 6%; right: 6%; top: calc(76px + env(safe-area-inset-top));
  bottom: calc(118px + env(safe-area-inset-bottom)); border: 2px dashed rgba(255,255,255,.55);
  border-radius: 12px; pointer-events: none; }
.c75-camera-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.c75-camera-flash.actif { animation: c75-flash .25s ease-out; }
@keyframes c75-flash { from { opacity: .8; } to { opacity: 0; } }
.c75-camera-haut { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  background: linear-gradient(rgba(0,0,0,.55), transparent); }
.c75-camera-rond { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45);
  color: #fff; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.c75-camera-rond[aria-pressed="true"] { background: #F1C40F; color: #000; }
.c75-camera-rond[hidden] { display: none; }
.c75-camera-compteur { font-size: 14px; font-weight: 600; background: rgba(0,0,0,.45);
  padding: 6px 12px; border-radius: 18px; text-align: center; white-space: nowrap; flex-shrink: 0; }
.c75-camera-haut .c75-camera-rond { flex-shrink: 0; }
/* vignettes dans la barre du haut (2026-11-13) : hauteur fixe, le cadre ne bouge pas après la première photo */
.c75-camera-pellicule { flex: 1 1 auto; min-width: 0; height: 56px; display: flex; align-items: flex-end; gap: 8px;
  padding: 0 8px 0 2px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.c75-camera-pellicule::-webkit-scrollbar { display: none; }
.c75-camera-pellicule .c75-vignette { flex-shrink: 0; }
.c75-camera-pellicule .c75-vignette button { top: -4px; right: -4px; }
.c75-camera-pellicule .c75-vignette img { width: 36px; height: 48px; object-fit: cover; border-radius: 5px;
  border: 2px solid #fff; }
.c75-camera-pellicule .c75-vignette span { position: absolute; left: 3px; bottom: 2px; font-size: 10px;
  font-weight: 700; text-shadow: 0 0 3px #000; }
.c75-camera-bas { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center;
  justify-content: space-around; padding: 14px 10px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.c75-camera-declencheur { width: 76px; height: 76px; border-radius: 50%; border: 5px solid rgba(255,255,255,.5);
  background: #fff; background-clip: padding-box; flex-shrink: 0; }
.c75-camera-declencheur:active { transform: scale(.92); }
.c75-camera-declencheur:disabled { opacity: .4; }
.c75-camera-texte { width: 96px; border: 0; background: none; color: #fff; display: flex; flex-direction: column;
  align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; text-shadow: 0 0 4px rgba(0,0,0,.6); }
.c75-camera-texte i { font-size: 24px; }
.c75-camera-texte:disabled { opacity: .35; }
/* « Envoyer / 上传 » (2026-11-09) : la facture part tout de suite */
.c75-camera-envoyer i { width: 48px; height: 48px; border-radius: 50%; background: #22C55E; display: flex;
  align-items: center; justify-content: center; font-size: 21px; }
.c75-camera-statut { position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(126px + env(safe-area-inset-bottom)); max-width: 90%; padding: 7px 14px; border-radius: 18px;
  background: rgba(0,0,0,.6); font-size: 14px; font-weight: 600; text-align: center; opacity: 0;
  transition: opacity .2s; pointer-events: none; }
.c75-camera-statut.visible { opacity: 1; }
.c75-camera-statut.echec { background: rgba(185,28,28,.85); }

/* ══ Tableaux ══════════════════════════════════════════════════ */
.c75-cellule-action { white-space: nowrap; }
.c75-tri { color: #fff !important; text-decoration: none !important; }
.c75-col-coche { width: 34px; }
.c75-barre-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.c75-selection-compte { font-size: 12.5px; color: var(--fc-muted); margin-left: auto; }
.c75-selection-compte::after { content: ' sélectionnée(s)'; }
.c75-sans-bord { border: 0; border-radius: 0; }
.c75-detail { font-size: 12.5px; color: var(--fc-muted); min-width: 240px; max-width: 520px; overflow-wrap: break-word; }
.c75-recherche-journal { min-width: min(100%, 420px); }
.c75-dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 10px; font-size: 14px; margin-bottom: 14px; }
.c75-dl dt { color: var(--fc-muted); font-weight: 600; font-size: 13px; }
.c75-dl dd { margin: 0; }
.c75-select-role { min-width: 150px; }
.fc-action-btns form { margin: 0; }
.dropdown-menu form { margin: 0; }
.dropdown-item { font-size: 14px; }
.c75-onglets-defilants { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.c75-onglets-defilants::-webkit-scrollbar { display: none; }
.c75-onglets-defilants .nav-link { white-space: nowrap; }

/* ══ Téléphone ═════════════════════════════════════════════════ */
.c75-onglets-bas { display: none; }
@media (max-width: 991px) {
  .c75-envoi { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .c75-pill-texte { display: none; }
  .fc-page-title { font-size: 19px; }
  .fc-page-header { margin-bottom: 14px; }
  .c75-pied { text-align: center; padding-bottom: 12px; }

  /* Clients : onglets en bas de l'écran, comme une application */
  body.c75-client .cab-main { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.c75-client .c75-onglets-bas {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    background: #fff; border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  }
  .c75-onglets-bas a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 4px 7px; font-size: 11.5px; color: var(--text-muted); text-decoration: none; }
  .c75-onglets-bas a i { font-size: 21px; line-height: 1; }
  .c75-onglets-bas a.actif { color: var(--accent); font-weight: 600; }

  /* Tableaux en cartes */
  table.c75-cartes thead { display: none; }
  table.c75-cartes, table.c75-cartes tbody, table.c75-cartes tr, table.c75-cartes td { display: block; width: 100%; }
  table.c75-cartes tr { padding: 10px 12px; }
  table.c75-cartes tbody tr:hover { box-shadow: none; }
  table.c75-cartes td { padding: 3px 0 !important; text-align: left !important; }
  table.c75-cartes td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 82px;
    font-size: 12px; color: var(--fc-muted); font-weight: 600; }
  table.c75-cartes td.c75-cellule-action { padding-top: 8px !important; }

  .c75-piece-apercu { width: 60px; }
  .c75-piece-apercu img, .c75-piece-apercu .c75-icone-fichier { width: 60px; height: 76px; }
  .c75-piece-apercu.plusieurs img { width: 28px; height: 36px; }
  .c75-carte-liste { overflow: visible; }
  .c75-barre-envoi { position: sticky; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 5;
    border-radius: 0 0 var(--fc-radius) var(--fc-radius); }
  .c75-dl { grid-template-columns: 1fr; }
}

/* ── Pages d'envoi : achats (bleu clair), ventes (vert clair), banque (inchangée) — 2026-10-28 ── */
.c75-bandeau { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 16px;
  padding: 14px 18px; border-radius: 10px; border-left: 6px solid var(--primary); background: #EEF1F4;
  color: var(--primary); font-size: 24px; font-weight: 800; line-height: 1.2; }
.c75-bandeau > i { font-size: 28px; }
.c75-bandeau-zh { font-weight: 700; opacity: .9; }
.c75-bandeau-zh::before { content: "·"; margin-right: 14px; opacity: .45; }
.c75-bandeau-achat { background: #D6EAF8; border-left-color: #2471A3; color: #1A5276; }
.c75-bandeau-vente { background: #D5F5E3; border-left-color: #1E8449; color: #186A3B; }

body.c75-theme-achat .cab-main { background: #EEF6FD; }
body.c75-theme-achat .c75-envoi .fc-card { border-color: #BBD8F0; }
body.c75-theme-achat .c75-zone { background: #F3F9FE; border-color: #8DBCE6; }

body.c75-theme-vente .cab-main { background: #EEF9F2; }
body.c75-theme-vente .c75-envoi .fc-card { border-color: #BFE6CC; }
body.c75-theme-vente .c75-zone { background: #F4FCF7; border-color: #82C99A; }
body.c75-theme-vente .c75-zone.survol { background: #DDF3E5; border-color: #1E8449; }
body.c75-theme-vente .c75-zone-icone { color: #1E8449; }
body.c75-theme-vente .fc-btn-primary,
body.c75-theme-vente .c75-gros-photo { background: linear-gradient(135deg, #27AE60, #1E8449); border-color: #1E8449; color: #fff; }
body.c75-theme-vente .fc-btn-primary:hover { background: linear-gradient(135deg, #1E8449, #196F3D); color: #fff; }
body.c75-theme-vente .c75-gros-bouton:not(.c75-gros-photo) { border-color: #BFE6CC; }
body.c75-theme-vente .c75-gros-bouton:not(.c75-gros-photo) i { color: #1E8449; }

/* Choix achat / vente */
.c75-choix-titre { font-size: 20px; font-weight: 700; color: var(--text); margin: 4px 0 16px; }
.c75-choix-types { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; }
.c75-type { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 190px; padding: 22px 14px; border-radius: 14px; border: 2px solid; text-decoration: none;
  text-align: center; transition: transform var(--transition), box-shadow var(--transition); }
.c75-type:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.c75-type i { font-size: 46px; line-height: 1; margin-bottom: 6px; }
.c75-type-fr { font-size: 21px; font-weight: 800; }
.c75-type-zh { font-size: 19px; font-weight: 700; }
.c75-type-achat { background: #D6EAF8; border-color: #85C1E9; color: #1A5276; }
.c75-type-achat:hover { color: #1A5276; border-color: #2471A3; }
.c75-type-vente { background: #D5F5E3; border-color: #82E0AA; color: #186A3B; }
.c75-type-vente:hover { color: #186A3B; border-color: #1E8449; }
@media (max-width: 768px) {
  .c75-bandeau { font-size: 19px; padding: 12px 14px; }
  .c75-bandeau > i { font-size: 22px; }
  .c75-choix-types { grid-template-columns: 1fr; gap: 14px; }
  .c75-type { min-height: 150px; }
}
.c75-nature { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px;
  font-size: 12px; font-weight: 600; white-space: nowrap; }
.c75-nature-achat { background: #D6EAF8; color: #1A5276; }
.c75-nature-vente { background: #D5F5E3; color: #186A3B; }
.c75-nature-banque { background: #EEF1F4; color: var(--primary); }

/* ── Journal regroupé : une ligne par société (ou personne) et par jour, détail dépliable — 2026-10-28 ── */
.c75-filtres-journal { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.c75-filtres-journal input[type=search] { flex: 1 1 220px; max-width: 320px; }
.c75-filtres-journal select { flex: 0 1 170px; width: auto; }
.c75-filtres-journal input[type=date] { flex: 0 1 150px; width: auto; }
.c75-journal-groupes { display: flex; flex-direction: column; gap: 8px; }
.c75-jgroupe { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); }
.c75-jgroupe.alerte { border-left: 4px solid var(--danger); }
.c75-jgroupe > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 14px;
  cursor: pointer; list-style: none; }
.c75-jgroupe > summary::-webkit-details-marker { display: none; }
.c75-jgroupe > summary::before { content: "\F285"; font-family: bootstrap-icons; color: var(--text-muted);
  font-size: 12px; transition: transform var(--transition); }
.c75-jgroupe[open] > summary::before { transform: rotate(90deg); }
.c75-jgroupe[open] > summary { border-bottom: 1px solid var(--border-light); }
.c75-jdate { font-weight: 700; color: var(--text); white-space: nowrap; }
.c75-jqui { font-weight: 600; min-width: 140px; }
.c75-jresume { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 260px; }
.c75-jpuce { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 10px;
  background: #EEF1F4; color: var(--text); font-size: 12.5px; white-space: nowrap; }
.c75-jpuce b { font-weight: 700; }
.c75-jpuce.alerte { background: var(--danger-light); color: var(--danger); }
.c75-jheure { color: var(--text-muted); font-size: 12.5px; white-space: nowrap; margin-left: auto; }
.c75-jdetail { margin: 0; border: none; border-radius: 0 0 var(--radius) var(--radius); }

/* ── Client : nom de la société en grand, sans « Compta75 » (2026-10-28) ── */
.sidebar-logo-text .logo-title.c75-societe { font-size: 16.5px; line-height: 1.2; white-space: normal;
  overflow: visible; text-overflow: clip; word-break: break-word; }
.c75-societe-haut { display: none; }
@media (max-width: 768px) {
  body.c75-client .topbar-breadcrumb { display: none; }
  body.c75-client .c75-societe-haut { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden; font-size: 16px; line-height: 1.15; font-weight: 800; color: var(--primary);
    word-break: break-word; min-width: 0; }
  body.c75-client .topbar-left { min-width: 0; flex: 1 1 auto; }
  body.c75-client .topbar-right { flex: none; }            /* le nom de la société cède la place, pas FR / 中文 */
  body.c75-client .topbar-user-pill { display: none; }     /* compte : dans le menu ☰ */
}

/* « Afficher plus » : lignes cachées même dans les tableaux en cartes du téléphone (2026-10-28) */
[data-tranche] > [hidden] { display: none !important; }
.c75-plus { display: block; margin: 8px auto 10px; }
.c75-conservation { font-weight: 600; color: #a1271b; }

/* Sécurité du compte client, côté cabinet (2026-10-29) */
.c75-securite-client { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--border-light); }
.c75-securite-client form { margin: 0; }

/* « Mes envois » : sélection (télécharger / supprimer) — 2026-10-29 */
.c75-barre-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 12px; margin-bottom: 10px; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); }
.c75-selection-texte { margin-right: auto; font-size: 13.5px; color: var(--text-muted); }
.c75-tout-jour { display: inline-flex; align-items: center; gap: 6px; margin: 8px 14px 0; font-size: 13px; cursor: pointer; }
.c75-tout-global, .c75-toutes-pages { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px;
  font-weight: 600; cursor: pointer; color: var(--text); }
.c75-toutes-pages { font-weight: 500; color: var(--accent); }
.c75-toutes-pages[hidden] { display: none; }
@media (max-width: 768px) {
  body.c75-client table.c75-cartes td.c75-col-coche { padding-bottom: 0; }
  body.c75-client table.c75-cartes td.c75-col-coche:empty { display: none; }
}

/* « Mes envois » : en-tête (titre, avertissement, sélection) fixé sous la barre du haut (2026-10-29) */
.c75-entete-fixe { position: sticky; top: var(--topbar-h); z-index: 50; background: var(--bg);
  margin: -8px -4px 0; padding: 8px 4px 2px; }
.c75-entete-fixe .fc-page-header { margin-bottom: 10px; }
.c75-entete-fixe .c75-conservation { margin-bottom: 10px; }
@media (max-width: 768px) {
  .c75-entete-fixe .fc-page-header { display: none; }       /* téléphone : le nom de la société est déjà en haut */
  .c75-entete-fixe .c75-conservation { font-size: 12.5px; padding: 8px 10px; }
}

/* Réinitialiser l'espace client (administrateurs, 2026-10-29) */
.c75-zone-danger { border-color: #F1B0A8; }
.c75-zone-danger .fc-card-title { color: var(--danger); }
.c75-form-danger { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.c75-form-danger input { max-width: 260px; }
.c75-btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.c75-btn-danger:hover { background: #A93226; color: #fff; }

/* ══ Client : barre latérale claire, du même style que les pages (2026-10-29) ══
   Fond blanc, filet, entrées en pastilles arrondies, icône dans un carré teinté de sa couleur ;
   entrée active : pastille bleu clair (comme les onglets), icône pleine. Le cabinet garde sa barre sombre. */
body.c75-moderne .cab-sidebar { background:linear-gradient(180deg, #F3F7FC 0%, #EBF1F8 100%); color:#1F2D3D;
  border-right:1px solid #DCE4EE; box-shadow:4px 0 18px rgba(16,24,40,.04); }   /* teinte légère : distincte des pages */
body.c75-moderne .sidebar-header { padding:18px 16px 16px; border-bottom:1px solid #DFE7F0; gap:12px; min-height:72px; }
body.c75-moderne .sidebar-logo-icon { width:40px; height:40px; border-radius:12px; font-size:19px;
  background:linear-gradient(135deg, #17508f 0%, #2471A3 55%, #2a78d6 100%); box-shadow:0 6px 14px rgba(36,113,163,.28); }
body.c75-moderne .sidebar-logo-text .logo-title.c75-societe { color:#1F2D3D; font-size:15px; font-weight:800; letter-spacing:-.005em; }
body.c75-moderne .logo-sub { color:#8A96A3; font-size:12px; letter-spacing:.02em; margin-top:2px; }
body.c75-moderne .sidebar-nav { padding:12px 0; }
body.c75-moderne .sidebar-nav::-webkit-scrollbar-thumb { background:rgba(16,24,40,.12); }
body.c75-moderne .nav-section { padding:18px 22px 6px; font-size:11px; font-weight:700; letter-spacing:.07em;
  text-transform:uppercase; color:#98A2AE; }
body.c75-moderne .cab-sidebar .nav-item { --c:#4A6274; --t:#F0F3F6; }
body.c75-moderne .cab-sidebar .nav-item a { gap:12px; margin:2px 10px; padding:7px 10px; border-radius:11px; font-size:14px; font-weight:500;
  color:#3E4C5A; transition:background .15s, color .15s, box-shadow .15s; }
body.c75-moderne .nav-icon { width:32px; height:32px; border-radius:9px; display:inline-grid; place-items:center; font-size:16px;
  background:#fff; color:var(--c); box-shadow:0 1px 2px rgba(16,24,40,.07); transition:background .15s, color .15s, box-shadow .15s; }
body.c75-moderne .cab-sidebar .nav-item a:hover { background:rgba(255,255,255,.65); color:#1F2D3D; }
body.c75-moderne .cab-sidebar:not(.collapsed) .nav-item a { white-space:normal; line-height:1.25; }   /* « Changer le mot de passe » */
body.c75-moderne .cab-sidebar .nav-item.active a { background:#fff; color:#1F2D3D; font-weight:700;
  box-shadow:0 1px 2px rgba(16,24,40,.05), 0 6px 14px rgba(16,24,40,.07), inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
body.c75-moderne .cab-sidebar .nav-item.active .nav-icon { background:var(--c); color:#fff;
  box-shadow:0 4px 10px color-mix(in srgb, var(--c) 32%, transparent); }
body.c75-moderne .cab-sidebar.collapsed .nav-item a { margin:2px 6px; padding:7px 3px; justify-content:center; }
body.c75-moderne .cab-sidebar.collapsed .nav-item a::after { background:#1F2D3D; font-size:13px; }
body.c75-moderne .sidebar-toggle-btn { background:#fff; color:#5B6B7B; border:1px solid #E3E8EF; box-shadow:0 2px 6px rgba(16,24,40,.12); }
body.c75-moderne .sidebar-toggle-btn:hover { background:#EAF3FA; color:var(--fc-accent); }
body.c75-moderne .sidebar-footer { padding:12px 14px 14px; border-top:1px solid #DFE7F0; background:rgba(255,255,255,.5); }
body.c75-moderne .user-info-row { gap:10px; margin-bottom:10px; }
body.c75-moderne .user-avatar-icon { width:34px; height:34px; background:#fff; color:var(--fc-accent); font-size:17px; box-shadow:0 1px 2px rgba(16,24,40,.07); }
body.c75-moderne .user-name-text { color:#1F2D3D; font-size:13px; font-weight:700; }
body.c75-moderne .user-role-text { color:#8A96A3; font-size:12px; }
body.c75-moderne .sidebar-logout { justify-content:center; gap:7px; padding:7px 10px; border-radius:10px; font-size:13px; font-weight:600;
  background:#fff; border:1px solid #F1C9C4; color:#B03A2E; }
body.c75-moderne .sidebar-logout:hover { background:#FDF1EF; border-color:#E8A79F; color:#922B21; }

/* ═══ Client : toutes les pages au style de « Factures de vente » (2026-10-29) ═══
   Base commune : body.c75-fac (factures.css, section « 3e version »). Ici : choix achat / vente, bandeau des pages
   d'envoi, zone de dépôt, « Mes envois », barre de sélection, page de connexion. Couleurs achat (bleu) / vente
   (vert) / banque gardées pour s'y retrouver. */
body.c75-moderne .c75-choix-titre { font-size:22px; font-weight:800; letter-spacing:-.01em; margin:4px 0 16px; }
body.c75-moderne .c75-choix-types { gap:16px; max-width:820px; }
body.c75-moderne .c75-type { --c:#2471A3; --t:#EEF5FB; gap:4px; min-height:200px; padding:24px 16px; border:1px solid #E3E8EF;
  border-radius:16px; background:#fff; color:#1F2D3D; box-shadow:0 1px 2px rgba(16,24,40,.04), 0 6px 18px rgba(16,24,40,.05);
  transition:transform .15s, box-shadow .15s, border-color .15s; }
body.c75-moderne .c75-type i { width:68px; height:68px; border-radius:18px; display:inline-grid; place-items:center; font-size:32px;
  margin-bottom:12px; background:var(--t); color:var(--c); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent); }
body.c75-moderne .c75-type-fr { font-size:18px; font-weight:800; color:#1F2D3D; }
body.c75-moderne .c75-type-zh { font-size:15px; font-weight:600; color:#5B6B7B; }
body.c75-moderne .c75-type:hover { transform:translateY(-2px); border-color:var(--c); color:#1F2D3D;
  box-shadow:0 2px 4px rgba(16,24,40,.05), 0 12px 28px rgba(16,24,40,.10); }
body.c75-moderne .c75-type-achat { --c:#2471A3; --t:#EAF3FB; background:linear-gradient(180deg, #F5FAFE 0%, #fff 60%); }
body.c75-moderne .c75-type-vente { --c:#1E8449; --t:#E8F6EE; background:linear-gradient(180deg, #F3FBF6 0%, #fff 60%); }
body.c75-moderne .c75-type-creer { background:linear-gradient(180deg, #F3FBF6 0%, #fff 60%); border-style:solid; border-width:1px; }

/* pages d'envoi : le bandeau devient un titre de page (pastille d'icône de la couleur de la page) */
body.c75-moderne .c75-bandeau { padding:0; margin:0 0 16px; background:none; border:0; font-size:22px; font-weight:800;
  letter-spacing:-.01em; color:#1F2D3D; gap:4px 12px; }
body.c75-moderne .c75-bandeau > i { width:44px; height:44px; border-radius:12px; display:inline-grid; place-items:center;
  font-size:21px; color:#fff; background:linear-gradient(135deg, #17508f, #2a78d6); box-shadow:0 6px 14px rgba(36,113,163,.25); }
body.c75-moderne .c75-bandeau-vente > i { background:linear-gradient(135deg, #176b3a, #27AE60); box-shadow:0 6px 14px rgba(30,132,73,.25); }
body.c75-moderne .c75-bandeau-banque > i { background:linear-gradient(135deg, #2c3e50, #4a6274); box-shadow:0 6px 14px rgba(44,62,80,.25); }
body.c75-moderne .c75-bandeau-zh { font-size:17px; font-weight:600; color:#5B6B7B; opacity:1; }
body.c75-moderne .c75-zone { border-radius:14px; }

/* « Mes envois » : chaque jour = une carte du même style ; barre de sélection en carte */
body.c75-moderne .c75-jgroupe { border:1px solid #E3E8EF; border-radius:14px; overflow:hidden;
  box-shadow:0 1px 2px rgba(16,24,40,.04), 0 6px 18px rgba(16,24,40,.05); }
body.c75-moderne .c75-jgroupe > summary { padding:12px 16px; background:linear-gradient(180deg, #F7F9FB 0%, #fff 100%); }
body.c75-moderne .c75-jgroupe[open] > summary { border-bottom:1px solid #EEF1F5; }
body.c75-moderne .c75-jdate { font-size:14.5px; }
body.c75-moderne .c75-tout-jour { margin:10px 16px 2px; }
body.c75-moderne .c75-journal-groupes { gap:12px; }
body.c75-moderne .c75-barre-selection { border:1px solid #E3E8EF; border-radius:12px; padding:10px 14px;
  box-shadow:0 1px 2px rgba(16,24,40,.04); }
body.c75-moderne .c75-conservation { border-radius:12px; }
body.c75-moderne .fc-empty-state { padding:36px 16px; }

/* téléphone : onglets du bas, onglet actif en pastille */
body.c75-moderne .c75-onglets-bas a.actif i { color:var(--fc-accent); }

/* ═══ Connexion : en-tête dégradé, carte arrondie (2026-10-29) ═══ */
.login-box { border-radius:16px; overflow:hidden; box-shadow:0 2px 6px rgba(16,24,40,.06), 0 18px 40px rgba(16,24,40,.12); }
.login-header { 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%); }

/* ═══ Style de l’espace : couleur et barre latérale au choix du client (2026-10-29) ═══
   body[data-couleur] (themes.COULEURS) : variables --theme* ; body[data-style] : clair (défaut) / blanc / teinte (coloré clair).
   La couleur suit les liens, boutons principaux, onglets, cases, pagination, carte du chiffre d'affaires, logo.
   Les couleurs qui ont un sens (achat bleu, vente vert, graphiques, états) ne changent pas. */
body.c75-moderne { --theme:#2471A3; --theme-2:#2a78d6; --theme-fonce:#17508f; --theme-clair:#EAF3FA; --theme-bord:#CFE3F3;
  --accent:var(--theme); --accent-hover:var(--theme-fonce); --fc-accent:var(--theme); --fc-accent-2:var(--theme-2); }
body.c75-moderne[data-couleur="vert"] { --theme:#1E8449; --theme-2:#2EA35E; --theme-fonce:#145c33; --theme-clair:#E8F6EE; --theme-bord:#C4E8D2; }
body.c75-moderne[data-couleur="violet"] { --theme:#6C4BC4; --theme-2:#8466e0; --theme-fonce:#4b3194; --theme-clair:#F1EDFB; --theme-bord:#DCD2F5; }
body.c75-moderne[data-couleur="sarcelle"] { --theme:#138D90; --theme-2:#1aa9ac; --theme-fonce:#0c6567; --theme-clair:#E6F5F5; --theme-bord:#BFE5E6; }
body.c75-moderne[data-couleur="orange"] { --theme:#C8651B; --theme-2:#E2843A; --theme-fonce:#9a4c12; --theme-clair:#FDF0E5; --theme-bord:#F6D3B5; }
body.c75-moderne[data-couleur="ardoise"] { --theme:#3E5468; --theme-2:#5B7489; --theme-fonce:#283a4a; --theme-clair:#EDF1F5; --theme-bord:#D3DCE5; }

body.c75-moderne:not(.c75-theme-vente) .fc-btn-primary { background:linear-gradient(135deg, var(--theme-2), var(--theme)); color:#fff; }
body.c75-moderne:not(.c75-theme-vente) .fc-btn-primary:hover { background:linear-gradient(135deg, var(--theme), var(--theme-fonce)); color:#fff; }
body.c75-moderne .fc-page-btn.active { background:linear-gradient(135deg, var(--theme-2), var(--theme)); border-color:var(--theme);
  box-shadow:0 2px 6px color-mix(in srgb, var(--theme) 25%, transparent); }
body.c75-moderne .c75-fac-onglets .nav-link.active { background:var(--theme-clair); color:var(--theme); box-shadow:inset 0 0 0 1px var(--theme-bord); }
body.c75-moderne .c75-ana-heros { background:radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--theme-2) 70%, #fff) 0%, transparent 55%),
  linear-gradient(135deg, var(--theme-fonce) 0%, var(--theme) 55%, var(--theme-2) 100%);
  box-shadow:0 10px 28px color-mix(in srgb, var(--theme) 28%, transparent); }
body.c75-moderne .c75-ana-spark-point { stroke:var(--theme); }
body.c75-moderne .sidebar-logo-icon { background:linear-gradient(135deg, var(--theme-fonce) 0%, var(--theme) 55%, var(--theme-2) 100%);
  box-shadow:0 6px 14px color-mix(in srgb, var(--theme) 28%, transparent); }
body.c75-moderne .user-avatar-icon { color:var(--theme); }
body.c75-moderne .sidebar-toggle-btn:hover { background:var(--theme-clair); color:var(--theme); }
body.c75-moderne .c75-puce input:checked + span { background:var(--theme-clair); }
body.c75-moderne .c75-carte-choix:has(input:checked) { background:var(--theme-clair); }
body.c75-moderne .form-check-input:checked { background-color:var(--theme); border-color:var(--theme); }
body.c75-moderne .form-check-input:focus { border-color:var(--theme); box-shadow:0 0 0 .2rem color-mix(in srgb, var(--theme) 22%, transparent); }
body.c75-moderne .fc-search-input:focus, body.c75-moderne .fc-filter-select:focus { border-color:var(--theme);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--theme) 14%, transparent); }

/* barre latérale « Doux » (défaut) : la teinte suit la couleur choisie */
body.c75-moderne[data-style="clair"] .cab-sidebar { background:linear-gradient(180deg, color-mix(in srgb, var(--theme) 5%, #F6F8FB) 0%,
  color-mix(in srgb, var(--theme) 9%, #EEF2F6) 100%); }
/* « Blanc » */
body.c75-moderne[data-style="blanc"] .cab-sidebar { background:#fff; border-right-color:#E3E8EF; }
body.c75-moderne[data-style="blanc"] .nav-icon { background:var(--t); box-shadow:none; }
body.c75-moderne[data-style="blanc"] .cab-sidebar .nav-item a:hover { background:#F4F7FB; }
body.c75-moderne[data-style="blanc"] .cab-sidebar .nav-item.active a { background:var(--t); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); }
body.c75-moderne[data-style="blanc"] .sidebar-header { border-bottom-color:#EEF1F5; }
body.c75-moderne[data-style="blanc"] .sidebar-footer { background:#FBFCFD; border-top-color:#EEF1F5; }
/* « Coloré » : la couleur choisie, en teinte claire plus marquée (jamais foncé : même famille que les pages) */
body.c75-moderne[data-style="teinte"] .cab-sidebar { background:linear-gradient(180deg, color-mix(in srgb, var(--theme) 13%, #FBFCFD) 0%,
  color-mix(in srgb, var(--theme) 19%, #F3F6F9) 100%); border-right-color:color-mix(in srgb, var(--theme) 22%, #E3E8EF); }
body.c75-moderne[data-style="teinte"] .sidebar-header { border-bottom-color:color-mix(in srgb, var(--theme) 18%, #E3E8EF); }
body.c75-moderne[data-style="teinte"] .sidebar-footer { background:rgba(255,255,255,.4); border-top-color:color-mix(in srgb, var(--theme) 18%, #E3E8EF); }
body.c75-moderne[data-style="teinte"] .cab-sidebar .nav-item a:hover { background:rgba(255,255,255,.6); }
body.c75-moderne[data-style="teinte"] .nav-section { color:color-mix(in srgb, var(--theme) 45%, #8A96A3); }

/* bouton (ordinateur) et entrée discrète du menu (téléphone) ; panneau */
.c75-theme-mobile { display:none; }
.c75-theme-btn { width:32px; height:32px; border-radius:50%; border:1px solid var(--border); background:#fff; color:var(--theme);
  display:inline-grid; place-items:center; font-size:15px; cursor:pointer; transition:background .15s, border-color .15s; }
.c75-theme-btn:hover, .c75-theme-btn[aria-expanded="true"] { border-color:var(--theme); background:var(--theme-clair); }
.c75-theme-lien { display:inline-flex; align-items:center; gap:6px; margin:0 0 8px; padding:2px 2px; border:0; background:none;
  font-size:12.5px; color:#7B8794; cursor:pointer; list-style:none; }
.c75-theme-lien::-webkit-details-marker { display:none; }
.c75-theme-lien::after { content:"\F282"; font-family:bootstrap-icons; font-size:10px; transition:transform .15s; }
.c75-theme-mobile[open] .c75-theme-lien::after { transform:rotate(180deg); }
.c75-theme-panneau.c75-theme-panneau-menu { display:block; width:100%; max-width:100%; margin:0 0 10px; padding:12px; background:#fff;
  border:1px solid #E3E8EF; border-radius:12px; box-shadow:0 1px 2px rgba(16,24,40,.05); }   /* dans la largeur du menu */
.c75-theme-panneau-menu .c75-theme-lib:first-of-type { margin-top:0; }
.c75-theme-panneau-menu .c75-theme-couleurs { gap:8px; }
.c75-theme-panneau-menu .c75-theme-pastille { width:30px; height:30px; }
.c75-theme-panneau-menu .c75-theme-styles { gap:6px; }
.c75-theme-panneau-menu .c75-theme-style { padding:5px; font-size:11.5px; }
.c75-theme-panneau-menu .c75-theme-defaut { white-space:normal; line-height:1.3; text-align:center; padding:8px 10px; }
.c75-theme-panneau { width:300px; max-width:calc(100vw - 24px); padding:14px; border-radius:14px; border:1px solid #E3E8EF;
  box-shadow:0 12px 32px rgba(16,24,40,.16); }
.c75-theme-haut .c75-theme-panneau { margin-top:8px !important; }
.c75-theme-titre { font-size:14px; font-weight:800; color:#1F2D3D; margin-bottom:4px; }
.c75-theme-lib { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:#8A96A3; margin:10px 0 6px; }
.c75-theme-couleurs { display:flex; flex-wrap:wrap; gap:10px; }
.c75-theme-pastille { width:34px; height:34px; padding:3px; border:0; border-radius:50%; background:#fff; cursor:pointer;
  box-shadow:0 0 0 1px #E3E8EF; transition:box-shadow .12s, transform .12s; }
.c75-theme-pastille:hover { transform:scale(1.06); }
.c75-theme-pastille span { display:block; width:100%; height:100%; border-radius:50%; }
.c75-theme-pastille.actif { box-shadow:0 0 0 2px var(--theme); }
.c75-theme-p-bleu { background:linear-gradient(135deg, #2a78d6, #17508f); }
.c75-theme-p-vert { background:linear-gradient(135deg, #2EA35E, #145c33); }
.c75-theme-p-violet { background:linear-gradient(135deg, #8466e0, #4b3194); }
.c75-theme-p-sarcelle { background:linear-gradient(135deg, #1aa9ac, #0c6567); }
.c75-theme-p-orange { background:linear-gradient(135deg, #E2843A, #9a4c12); }
.c75-theme-p-ardoise { background:linear-gradient(135deg, #5B7489, #283a4a); }
.c75-theme-styles { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; }
.c75-theme-style { display:flex; flex-direction:column; gap:5px; padding:6px; border:1px solid #E3E8EF; border-radius:10px; background:#fff;
  font-size:12px; font-weight:600; color:#3E4C5A; cursor:pointer; transition:border-color .12s, box-shadow .12s; }
.c75-theme-style:hover { border-color:#C9D3DD; }
.c75-theme-style.actif { border-color:var(--theme); box-shadow:0 0 0 2px var(--theme-clair); color:var(--theme); }
.c75-theme-apercu { display:flex; height:34px; border-radius:6px; overflow:hidden; border:1px solid #E3E8EF; }
.c75-theme-apercu i:first-child { width:34%; }
.c75-theme-apercu i:last-child { flex:1; background:#F0F2F5; }
.c75-theme-s-clair .c75-theme-apercu i:first-child { background:color-mix(in srgb, var(--theme) 12%, #F2F5F8); }
.c75-theme-s-blanc .c75-theme-apercu i:first-child { background:#fff; border-right:1px solid #E3E8EF; }
.c75-theme-s-teinte .c75-theme-apercu i:first-child { background:color-mix(in srgb, var(--theme) 24%, #F6F8FA); }
.c75-theme-defaut { width:100%; justify-content:center; margin-top:14px; }
.c75-theme-etat { margin-top:6px; font-size:12px; color:#1E8449; text-align:center; }
.c75-theme-etat:empty { display:none; }
@media (max-width:768px) {
  .c75-theme-haut { display:none; }                   /* téléphone : pas dans la barre du haut… */
  body.c75-moderne .c75-theme-mobile { display:block; }   /* …mais discrètement au bas du menu */
}

/* ═══ Espace cabinet au style des pages client (réglage STYLE_CABINET_MODERNE, 2026-10-30) ═══
   Le reste vient des sections ci-dessus (body.c75-moderne) ; ici ce qui n'existe que côté cabinet. */
body.c75-moderne .sidebar-logo-text .logo-title { color:#1F2D3D; font-size:15px; font-weight:800; letter-spacing:-.005em; }
/* onglets Bootstrap (fiche client) : la même barre de pastilles que « Factures de vente » (cabinet.css les force en !important) */
body.c75-moderne .nav-tabs { display:flex; gap:2px; width:fit-content; max-width:100%; padding:4px; margin-bottom:16px !important;
  background:#fff; border:1px solid #E3E8EF !important; border-radius:12px; box-shadow:0 1px 2px rgba(16,24,40,.04); }
body.c75-moderne .nav-tabs .nav-link { margin:0 !important; padding:7px 13px !important; border:0 !important; border-radius:9px !important;
  font-size:13px !important; font-weight:600 !important; color:#5B6B7B !important; }
body.c75-moderne .nav-tabs .nav-link:hover { background:#F3F6F9; color:#1F2D3D !important; }
body.c75-moderne .nav-tabs .nav-link.active { background:var(--theme-clair) !important; color:var(--theme) !important;
  border-bottom:0 !important; box-shadow:inset 0 0 0 1px var(--theme-bord); }
@media (min-width:769px) { body.c75-moderne .nav-tabs.c75-onglets-defilants { flex-wrap:wrap; } }
@media (max-width:768px) { body.c75-moderne .nav-tabs { width:100%; } }
/* tableaux hors carte : même cadre que les cartes */
body.c75-moderne .cab-content > .fc-table-wrapper:not(.c75-sans-bord) { border-color:#E3E8EF; border-radius:14px;
  box-shadow:0 1px 2px rgba(16,24,40,.04), 0 6px 18px rgba(16,24,40,.05); }
body.c75-moderne .c75-alerte { border-radius:12px; }
/* liens de tri des tableaux du cabinet (blancs sur l'ancien en-tête sombre) : encre de l'en-tête clair */
body.c75-moderne .fc-table thead a.c75-tri { color:inherit !important; }
body.c75-moderne .fc-table thead a.c75-tri:hover { color:#1F2D3D !important; }
/* chiffres du cabinet : le liseré prend la couleur de l'icône */
body.c75-moderne .fc-stat-card:has(.fc-stat-icon.blue) { --c:#2471A3; }
body.c75-moderne .fc-stat-card:has(.fc-stat-icon.orange) { --c:#CA6F1E; }
body.c75-moderne .fc-stat-card:has(.fc-stat-icon.green) { --c:#1E8449; }
body.c75-moderne .fc-stat-card:has(.fc-stat-icon.red) { --c:#B03A2E; }
body.c75-moderne .fc-stat-card:has(.fc-stat-icon.purple) { --c:#6C4BC4; }
/* filtres en boutons groupés (pièces envoyées) : petite barre de pastilles, comme les onglets */
body.c75-moderne .c75-barre-outils .btn-group { gap:2px; padding:3px; background:#fff; border:1px solid #E3E8EF; border-radius:10px;
  box-shadow:0 1px 2px rgba(16,24,40,.04); }
body.c75-moderne .c75-barre-outils .btn-group > .btn { margin:0 !important; padding:5px 11px !important; border:0 !important;
  border-radius:7px !important; font-size:13px !important; background:transparent !important; color:#5B6B7B !important; }
body.c75-moderne .c75-barre-outils .btn-group > .btn:hover { background:#F3F6F9 !important; color:#1F2D3D !important; }
body.c75-moderne .c75-barre-outils .btn-group > .btn-primary { background:var(--theme-clair) !important; color:var(--theme) !important;
  box-shadow:inset 0 0 0 1px var(--theme-bord); }
/* boutons verts au vert des cartes (au lieu du vert vif) ; bouton inactif (rien de coché) visiblement grisé */
body.c75-moderne .fc-btn-success { background:linear-gradient(135deg, #239B56, #1E8449); color:#fff; }
body.c75-moderne .fc-btn-success:hover { background:linear-gradient(135deg, #1E8449, #196F3D); color:#fff; }
body.c75-moderne .fc-btn:disabled { opacity:.5; cursor:not-allowed; box-shadow:none; transform:none; }
/* liens vers une fiche client (journal, liaison) : encre du thème, sans soulignement */
body.c75-moderne .c75-jqui a, body.c75-moderne .fc-card-body dd a:not([class]) { color:var(--theme); font-weight:600; text-decoration:none; }
body.c75-moderne .c75-jqui a:hover, body.c75-moderne .fc-card-body dd a:not([class]):hover { text-decoration:underline; }

/* ═══ Cloche des messages (cabinet, 2026-10-30) ═══ */
.c75-cloche-btn { position:relative; width:34px; height:34px; padding:0; border-radius:50%; border:1px solid #E3E8EF;
  background:#fff; color:#4A6274; display:inline-flex; align-items:center; justify-content:center; font-size:16px; }
.c75-cloche-btn:hover, .c75-cloche-btn[aria-expanded="true"] { border-color:#2471A3; color:#2471A3; background:#EEF5FB; }
.c75-cloche-nb { position:absolute; top:-6px; right:-7px; min-width:18px; height:18px; padding:0 5px; border-radius:9px;
  background:#E03131; color:#fff; font-size:11px; font-weight:700; line-height:18px; text-align:center;
  box-shadow:0 0 0 2px #fff; }
.c75-cloche-nb[hidden] { display:none; }
.c75-cloche-panneau { width:380px; max-width:calc(100vw - 24px); padding:0; margin-top:8px !important; overflow:hidden;
  border:1px solid #E3E8EF; border-radius:14px; box-shadow:0 12px 32px rgba(16,24,40,.16); }
.c75-cloche-tete { display:flex; align-items:center; justify-content:space-between; padding:8px 8px 8px 14px;
  border-bottom:1px solid #EEF1F5; font-size:14px; font-weight:700; color:#1F2D3D; }
.c75-cloche-fermer { width:30px; height:30px; border:0; border-radius:8px; background:transparent; color:#5B6B7B; }
.c75-cloche-fermer:hover { background:#F3F6F9; color:#1F2D3D; }
.c75-cloche-liste { list-style:none; margin:0; padding:4px; max-height:min(62vh, 560px); overflow-y:auto; }
.c75-alertes-page { max-height:none; padding:6px; }
.c75-alerte-msg { display:flex; align-items:flex-start; gap:10px; width:100%; padding:10px; border:0; border-radius:10px;
  background:transparent; text-align:left; font-size:13px; line-height:1.45; color:#5B6B7B; cursor:default; }
.c75-alerte-msg.non-lu { background:#F2F7FC; color:#1F2D3D; font-weight:600; cursor:pointer; }
.c75-alerte-msg.non-lu:hover { background:#E8F1FA; }
.c75-alerte-msg.non-lu::after { content:''; flex:none; width:8px; height:8px; margin-top:6px; border-radius:50%; background:#2471A3; }
.c75-alerte-msg > i { flex:none; margin-top:1px; font-size:15px; }
.c75-alerte-msg.warning > i { color:#C8651B; }
.c75-alerte-msg.danger > i { color:#B03A2E; }
.c75-alerte-msg.resolue > i { color:#1E8449; }
.c75-alerte-texte { flex:1; min-width:0; }
.c75-alerte-texte small { display:block; margin-top:2px; font-size:11.5px; font-weight:400; color:#8A97A6; }
.c75-cloche-vide { padding:22px 14px; text-align:center; font-size:13px; color:#8A97A6; }
.c75-cloche-plus { display:block; padding:10px 14px; border-top:1px solid #EEF1F5; text-align:center; font-size:13px;
  font-weight:600; color:#2471A3; text-decoration:none; }
.c75-cloche-plus:hover { background:#F5F8FB; color:#1F618D; }
/* téléphone : la bulle prend la largeur de l'écran, 12 px de marge de chaque côté, sous la barre du haut */
@media (max-width:576px) {
  .c75-cloche-panneau[data-bs-popper] { position:fixed; top:60px; left:12px; right:12px; width:auto; max-width:none; }
}

/* ═══ Interrupteur (liste des clients du cabinet : Factures de vente, 2026-10-30) ═══ */
.c75-interrupteur { position:relative; display:inline-block; width:38px; height:22px; padding:0; border:0; border-radius:11px;
  background:#C9D2DC; vertical-align:middle; cursor:pointer; transition:background .15s; }
.c75-interrupteur::after { content:''; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%;
  background:#fff; box-shadow:0 1px 2px rgba(16,24,40,.25); transition:transform .15s; }
.c75-interrupteur:hover { background:#B5C1CE; }
.c75-interrupteur.actif { background:#1E8449; }
.c75-interrupteur.actif:hover { background:#196F3D; }
.c75-interrupteur.actif::after { transform:translateX(16px); }
.c75-interrupteur:focus-visible { outline:2px solid #2471A3; outline-offset:2px; }

/* ═══ Pièces envoyées (cabinet) : par jour, échecs dits une fois (2026-10-30) ═══ */
.c75-jerreur { display:flex; align-items:flex-start; gap:8px; margin:8px 14px 0; padding:7px 10px; border-radius:8px;
  background:#FFF6E6; color:#7A4A0B; font-size:12.5px; line-height:1.45; }
.c75-jerreur .fc-badge { flex:none; }
.c75-jgroupe .c75-jdetail .c75-petit { margin-left:4px; }
.c75-barre-selection .c75-selection-compte { margin-left:0; margin-right:auto; }   /* actions à droite */

/* ═══ Voir en tant que client (cabinet, 2026-10-30) ═══ */
.c75-vue-cabinet { position:sticky; top:0; z-index:110; display:flex; align-items:center; gap:10px; height:44px;
  padding:0 22px; background:#1F2A37; color:#fff; font-size:13.5px; white-space:nowrap; }
.c75-vue-cabinet > .bi-eye { flex:none; color:#FBBF24; font-size:17px; }
.c75-vue-nom { min-width:0; overflow:hidden; text-overflow:ellipsis; font-weight:600; }
.c75-vue-badge { flex:none; padding:2px 9px; border-radius:999px; background:rgba(251,191,36,.16); color:#FCD34D;
  font-size:12px; font-weight:600; }
.c75-vue-cabinet form { flex:none; margin:0 0 0 auto; }
.c75-vue-cabinet button { display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:8px;
  border:1px solid rgba(255,255,255,.4); background:transparent; color:#fff; font-size:13px; font-weight:600; }
.c75-vue-cabinet button:hover, .c75-vue-cabinet button:focus-visible { background:#fff; color:#1F2A37; }
body.c75-vue .cab-topbar { top:44px; }
.c75-bulle-lecture { position:fixed; left:50%; bottom:24px; z-index:2000; display:flex; align-items:center; gap:8px;
  width:max-content; max-width:calc(100vw - 24px); padding:9px 16px; border-radius:10px; background:#1F2A37; color:#fff;
  font-size:13.5px; transform:translateX(-50%);
  box-shadow:0 6px 20px rgba(0,0,0,.18); opacity:0; pointer-events:none; transition:opacity .2s; }
.c75-bulle-lecture .bi-eye { color:#FBBF24; }
.c75-bulle-lecture.visible { opacity:1; }
@media (max-width: 768px) {
  .c75-vue-cabinet { padding:0 12px; gap:8px; }
  .c75-vue-nom { display:none; }                  /* le nom de la société est juste en dessous (barre du haut) */
  .c75-vue-cabinet button { padding:5px 10px; }
  .c75-bulle-lecture { bottom:calc(78px + env(safe-area-inset-bottom)); }
}

/* ═══ Historique d'un client (cabinet) : par jour, une ligne par action (2026-10-30) ═══ */
.c75-historique-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px 14px;
  margin-left:auto; }
.c75-historique .c75-journal-groupes { padding:14px 16px; }
.c75-hpar { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.c75-hdetail { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
  font-size:12.5px; color:var(--fc-muted); overflow-wrap:anywhere; cursor:pointer; }
.c75-hdetail.ouvert { display:block; }
@media (min-width: 769px) {             /* mêmes colonnes d'un jour à l'autre */
  .c75-historique .c75-jdetail table { table-layout:fixed; }
  .c75-historique .c75-jdetail .c75-col-coche { width:46px; }
  .c75-h-heure { width:100px; }
  .c75-h-par { width:220px; }
  .c75-h-action { width:36%; }
}
@media (max-width: 768px) {             /* téléphone : une action = heure + qui, puis l'action, puis le détail */
  .c75-historique .c75-journal-groupes { padding:10px; }
  .c75-historique table.c75-cartes tr { display:grid; grid-template-columns:auto auto minmax(0, 1fr); align-items:center;
    column-gap:10px; row-gap:2px; padding:8px 12px; }
  .c75-historique table.c75-cartes td { width:auto; min-width:0; }
  .c75-historique table.c75-cartes td[data-label]::before { display:none; }
  .c75-historique table.c75-cartes td[data-label="Action"], .c75-historique table.c75-cartes td[data-label="Détail"] {
    grid-column:1 / -1; }
  .c75-historique table.c75-cartes td[data-label="Heure"] { color:var(--text-muted); font-size:12.5px; }
}

/* ═══ Pages d'envoi (ordinateur) : zone de dépôt aussi haute que la liste (2026-10-30) ═══ */
/* souris seulement : sur tablette / téléphone la zone est cachée (gros boutons « photo / fichiers ») */
@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
  .c75-envoi { align-items: stretch; }
  .c75-envoi-gauche { display: flex; flex-direction: column; }
  .c75-envoi-gauche > .fc-card { flex: 1; display: flex; flex-direction: column; }
  .c75-envoi-gauche > .fc-card > .fc-card-body { flex: 1; display: flex; flex-direction: column; }
  .c75-envoi-gauche .c75-zone { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
}

/* ═══ Suivi fiscal et messages du cabinet (2026-11-05) ═══ */
.c75-msg-bandeau { display:flex; align-items:flex-start; gap:12px; margin-bottom:12px; padding:12px 14px; border-radius:10px;
  background:#C0392B; color:#fff; font-size:14px; line-height:1.5; }
.c75-msg-bandeau > i { flex:none; margin-top:2px; font-size:17px; }
.c75-msg-bandeau-texte { flex:1; min-width:0; white-space:pre-line; overflow-wrap:anywhere; }
.c75-msg-bandeau-fermer { flex:none; width:30px; height:30px; border:0; border-radius:8px; background:rgba(255,255,255,.18); color:#fff; }
.c75-msg-bandeau-fermer:hover { background:rgba(255,255,255,.32); }
.c75-msg-texte { white-space:pre-line; overflow-wrap:anywhere; }
.c75-onglets-fiscal { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px; }
.c75-barre-selection { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.c75-col-texte { min-width:180px; white-space:pre-line; }
.c75-fiscal-grille { display:grid; grid-template-columns:repeat(auto-fit, minmax(340px, 1fr)); gap:14px; }
.c75-fiscal-carte { padding:16px; background:#fff; border:1px solid #E3E8EE; border-radius:12px; min-width:0; overflow-x:auto; }
.c75-fiscal-carte h2 { margin:0 0 10px; font-size:15px; font-weight:700; }
.c75-fiscal-dl { display:grid; grid-template-columns:auto 1fr; gap:4px 14px; margin:0 0 10px; font-size:13px; }
.c75-fiscal-dl dt { font-weight:500; color:#6B7A8C; }
.c75-fiscal-dl dd { margin:0; }
.c75-fiscal-petit { font-size:15px; }
.c75-msg-societes { columns:2; margin:8px 0 0; padding-left:18px; font-size:13px; }
.c75-msg-champs { display:flex; align-items:flex-end; gap:6px; flex-wrap:wrap; }
.c75-msg-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.c75-msg-modele { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.c75-msg-modele .form-control { width:220px; max-width:100%; }
.c75-msg-modele [hidden] { display:none !important; }
@media (max-width:600px) { .c75-fiscal-grille { grid-template-columns:minmax(0, 1fr); } .c75-msg-societes { columns:1; } }

/* ═══ DEBUT style tableaux (espace cabinet, 2026-11-05) ═══
   Le reste de l'espace cabinet garde son apparence (sections ci-dessus) ; ici seulement les tableaux, au dessin des
   tableaux Comptabilité (carte blanche, en-tête figé, lignes serrées) avec en-tête et bas clairs (retour utilisateur).
   Retour en arrière : STYLE_CABINET_MODERNE = False. */
body.c75-cabinet.c75-moderne .fc-table-wrapper, body.c75-cabinet.c75-moderne .cab-content > .fc-table-wrapper:not(.c75-sans-bord) {
  background:#fff; border:1px solid #E1E5E9; border-radius:8px; box-shadow:0 1px 2px rgba(16,24,40,.05), 0 8px 18px -10px rgba(16,24,40,.18); }
body.c75-cabinet.c75-moderne .fc-card .fc-table-wrapper, body.c75-cabinet.c75-moderne .c75-fiscal-carte .fc-table-wrapper { box-shadow:none; }
body.c75-cabinet.c75-moderne .fc-table { font-size:13px; }
body.c75-cabinet.c75-moderne .fc-table thead th { position:sticky; top:0; z-index:2; padding:9px 10px; background:#F6F8FA; color:#3D4F61;
  border:0; border-bottom:1px solid #E1E5E9; font-size:12px; font-weight:600; letter-spacing:.2px; text-transform:none; }
body.c75-cabinet.c75-moderne .fc-table thead a.c75-tri { color:inherit !important; }
body.c75-cabinet.c75-moderne .fc-table thead a.c75-tri:hover { color:var(--theme) !important; }
body.c75-cabinet.c75-moderne .fc-table tbody tr { border:0; transition:none; }
body.c75-cabinet.c75-moderne .fc-table tbody tr:nth-child(even) { background:transparent; }
body.c75-cabinet.c75-moderne .fc-table tbody tr:hover { background:transparent; box-shadow:none; }
body.c75-cabinet.c75-moderne .fc-table tbody td { padding:5px 10px; border-bottom:1px solid #EEF1F4; font-variant-numeric:tabular-nums; }
body.c75-cabinet.c75-moderne .fc-table tbody tr:last-child td { border-bottom:0; }
body.c75-cabinet.c75-moderne .fc-table tbody tr:nth-child(even) td { background:#FAFBFD; }
body.c75-cabinet.c75-moderne .fc-table tbody tr:hover td { background:#F2F6FB; }
body.c75-cabinet.c75-moderne .fc-table tbody tr:has(.c75-coche:checked) td { background:var(--theme-clair); }
body.c75-cabinet.c75-moderne .fc-table code { padding:0; background:none; border-radius:0; font-family:Consolas, 'Courier New', monospace; font-size:12.5px; color:#1E2D3D; }
body.c75-cabinet.c75-moderne .fc-table tfoot td { position:sticky; bottom:0; z-index:2; padding:7px 10px; background:#F6F8FA; color:#5B6B7B;
  border-top:1px solid #E1E5E9; font-size:12px; white-space:nowrap; }
/* pastilles : petites ; « gris » = simple mention, sans fond, pour ne pas charger les longues listes */
body.c75-cabinet.c75-moderne .fc-table .fc-badge { padding:1px 8px; border-radius:10px; font-size:11px; font-weight:600; }
body.c75-cabinet.c75-moderne .fc-table .fc-badge-secondary { padding:0; background:none; color:#7F8C8D; font-weight:400; }
body.c75-cabinet.c75-moderne .fc-table .c75-interrupteur { width:30px; height:16px; vertical-align:middle; }
body.c75-cabinet.c75-moderne .fc-table .c75-interrupteur::after { top:2px; left:2px; width:12px; height:12px; }
body.c75-cabinet.c75-moderne .fc-table .c75-interrupteur.actif::after { transform:translateX(14px); }
body.c75-cabinet.c75-moderne .fc-table td > form > .fc-btn-sm.c75-danger, body.c75-cabinet.c75-moderne .fc-table td > .fc-btn-sm.c75-danger {
  padding:1px 6px; background:none; border-color:transparent !important; color:#A9B2B8 !important; }
body.c75-cabinet.c75-moderne .fc-table td > form > .fc-btn-sm.c75-danger:hover, body.c75-cabinet.c75-moderne .fc-table td > .fc-btn-sm.c75-danger:hover { color:var(--danger) !important; }
body.c75-cabinet.c75-moderne .fc-table-wrapper .fc-pagination { position:sticky; left:0; bottom:0; z-index:3; padding:6px 10px; background:#F6F8FA;
  border-top:1px solid #E1E5E9; font-size:12px; }
/* chiffres de la liste Clients : les quatre sur une ligne (téléphone : deux par ligne) */
body.c75-cabinet.c75-moderne .fc-stats-grid { grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; margin-bottom:12px; }
body.c75-cabinet.c75-moderne .fc-stat-card { padding:8px 14px 8px 17px; gap:12px; border-radius:12px; }
body.c75-cabinet.c75-moderne .fc-stat-icon { width:34px; height:34px; border-radius:9px; font-size:16px; }
body.c75-cabinet.c75-moderne .fc-stat-value { font-size:18px; }
body.c75-cabinet.c75-moderne .fc-stat-label { margin-top:2px; }
@media (max-width:900px) { body.c75-cabinet.c75-moderne .fc-stats-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
/* liste Clients : les chiffres à droite du titre, sur la même ligne */
body.c75-cabinet .fc-page-header:has(.c75-stats-entete) { gap:16px; flex-wrap:wrap; margin-bottom:12px; }
body.c75-cabinet .fc-stats-grid.c75-stats-entete { flex:1 1 640px; max-width:860px; margin:0; display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr)); gap:8px; }
body.c75-cabinet .c75-stats-entete .fc-stat-card { padding:6px 12px 6px 15px; gap:10px; border-radius:10px; }
body.c75-cabinet .c75-stats-entete .fc-stat-icon { width:30px; height:30px; border-radius:8px; font-size:14px; }
body.c75-cabinet .c75-stats-entete .fc-stat-value { font-size:16px; }
body.c75-cabinet .c75-stats-entete .fc-stat-label { margin-top:1px; font-size:11.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:1400px) { body.c75-cabinet .c75-stats-entete .fc-stat-icon { display:none; } }
@media (max-width:900px) { body.c75-cabinet .fc-stats-grid.c75-stats-entete { grid-template-columns:repeat(2, minmax(0, 1fr)); flex-basis:100%; max-width:none; } }
/* Suivi fiscal : titre + onglets sur une ligne, filtres + sélection sur une autre */
.c75-entete-fiscal { gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.c75-titre-onglets { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.c75-titre-onglets .c75-onglets-fiscal { margin:0; }
.c75-barre-fiscale { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.c75-barre-fiscale .fc-search-input { flex:1 1 130px; min-width:120px; }
.c75-barre-fiscale .fc-filter-select { flex:0 1 auto; width:auto; }
.c75-barre-fiscale .c75-selection-compte { margin:0 0 0 auto; white-space:nowrap; }
.c75-barre-fiscale .fc-badge { white-space:nowrap; }
/* longues listes : le tableau défile dans sa carte, en-tête et bas restent visibles */
@media (min-width:769px) {
  body.c75-cabinet.c75-moderne .fc-table-wrapper.c75-fenetre { max-height:calc(100vh - var(--c75-fenetre-haut, 205px)); min-height:280px; overflow:auto; }
  body.c75-cabinet.c75-moderne .fc-table-wrapper.c75-fenetre-fiscale { --c75-fenetre-haut:215px; }
}
.c75-lien-etat, .c75-lien-etat:hover { text-decoration:none; }
/* Nouveau message : une fenêtre (barre d'outils, textes, bas) */
.c75-msg-fenetre { display:flex; flex-direction:column; background:#fff; border:1px solid #E1E5E9; border-radius:8px; overflow:hidden; }
.c75-msg-barre { display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding:8px 12px; background:#FAFBFC; border-bottom:1px solid #E1E5E9; }
.c75-msg-barre select { width:200px; }
.c75-msg-barre input { width:190px; }
.c75-msg-sep { width:1px; height:20px; margin:0 6px; background:#E1E5E9; }
.c75-msg-barre [hidden] { display:none !important; }
.c75-msg-pied [hidden] { display:none !important; }
.c75-msg-libelle { margin:0; font-size:12px; font-weight:600; color:#2C3E50; white-space:nowrap; }
.c75-msg-dest { margin-left:auto; font-size:13px; color:#2C3E50; }
.c75-msg-dest summary { cursor:pointer; font-weight:600; white-space:nowrap; }
.c75-msg-dest[open] { flex-basis:100%; margin-left:0; }
.c75-msg-fenetre .c75-msg-champs { padding:8px 12px 0; gap:4px; }
.c75-msg-champ { padding:1px 9px 1px 5px; border:1px dashed #C5CDD5; border-radius:10px; background:#fff; font-size:12px; color:#2C3E50; cursor:pointer; }
.c75-msg-champ:hover { border-color:var(--theme, #2471A3); color:var(--theme, #2471A3); }
.c75-msg-textes { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; padding:8px 12px 12px; }
.c75-msg-textes .c75-msg-libelle { display:block; margin-bottom:4px; }
.c75-msg-pied { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:8px 12px; background:#FAFBFC; border-top:1px solid #E1E5E9; }
.c75-msg-pied select { width:130px; }
.c75-msg-pied input { width:150px; }
.c75-msg-pied .fc-btn-primary { margin-left:auto; }
body.c75-cabinet.c75-moderne .c75-msg-fenetre .form-control, body.c75-cabinet.c75-moderne .c75-msg-fenetre .form-select { min-height:0; height:auto; padding-top:4px; padding-bottom:4px; border-color:#E1E5E9; border-radius:6px; font-size:13px; box-shadow:none; }
body.c75-cabinet.c75-moderne .c75-msg-fenetre .form-select { padding-right:28px; }
body.c75-cabinet.c75-moderne .c75-msg-fenetre .form-control:focus, body.c75-cabinet.c75-moderne .c75-msg-fenetre .form-select:focus { border-color:var(--theme, #2471A3); box-shadow:0 0 0 2px var(--theme-clair, #EAF3FA); }
@media (max-width:768px) { .c75-msg-textes { grid-template-columns:minmax(0, 1fr); } .c75-msg-sep { display:none; } .c75-msg-barre select, .c75-msg-barre input { flex:1 1 150px; width:auto; } }
/* Aperçu */
.c75-apercu { --c75-fenetre-haut:172px; }
.c75-apercu-fin { font-size:12.5px; color:#7F8C8D; }
.c75-apercu-fin i { color:#C0392B; }
.c75-apercu-societe { font-weight:600; min-width:120px; }
.c75-apercu-etat { min-width:130px; font-size:12px; }
.c75-etat-oui { color:#1E8449; font-weight:600; white-space:nowrap; }
.c75-etat-non { color:#C0392B; }
.fc-table tr.c75-non-envoye td { color:#7F8C8D; }
.fc-table tr.c75-non-envoye td.c75-apercu-etat .c75-etat-non { color:#C0392B; }
.fc-table tr.c75-non-envoye td.c75-apercu-societe { font-weight:400; }
/* flèche de la fiche client vers la liste */
.c75-retour { display:inline-grid; place-items:center; width:28px; height:28px; margin-right:2px; vertical-align:middle; border:1px solid #E1E5E9;
  border-radius:6px; background:#fff; text-decoration:none; font-size:15px; }
.c75-retour:hover { border-color:var(--theme, #2471A3); }
.fc-page-title .c75-retour i { margin:0; color:#2C3E50 !important; }
.fc-page-title .c75-retour:hover i { color:var(--theme, #2471A3) !important; }
/* ═══ FIN style tableaux ═══ */
