/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0f0f1a;
  --bg2:       #1a1a2e;
  --bg3:       #16213e;
  --sidebar:   #12122a;
  --accent:    #f5a623;
  --blue:      #3b82f6;
  --green:     #22c55e;
  --red:       #ef4444;
  --orange:    #f97316;
  --purple:    #a855f7;
  --teal:      #14b8a6;
  --text:      #e2e8f0;
  --text-muted:#94a3b8;
  --border:    #2a2a4a;
  --gold:      #f5a623;
  --radius:    8px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  font-size: 14px;
}

/* ── Sidebar ──────────────────────────────────────────── */
.sidebar {
  width: 220px;
  min-height: 100vh;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--border);
}
.logo-icon { font-size: 26px; }
.logo-text  { font-size: 18px; font-weight: 700; color: var(--gold); }

.nav-links {
  list-style: none;
  padding: 12px 0;
  flex: 1 1 auto;
  min-height: 0;        /* permet au flex-child de rétrécir... */
  overflow-y: auto;     /* ...et de faire défiler la nav si elle dépasse */
}
.nav-links::-webkit-scrollbar { width: 6px; }
.nav-links::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.nav-links li {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-links li a {
  display: block;
  flex: 1;
  padding: 10px 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  border-radius: var(--radius);
  margin: 2px 10px 2px 10px;
  transition: all 0.18s;
}
.nav-links li a:hover { background: var(--bg3); color: var(--text); }
.nav-links li a.active {
  background: linear-gradient(90deg, var(--gold) 0%, #e09400 100%);
  color: #1a1a2e;
  font-weight: 700;
}
.nav-drag-handle {
  opacity: 0;
  font-size: 14px;
  color: var(--text-muted);
  cursor: grab;
  padding: 4px 8px 4px 0;
  transition: opacity 0.15s;
  user-select: none;
  flex-shrink: 0;
}
.nav-links li:hover .nav-drag-handle { opacity: 1; }
.nav-links li[draggable="true"] { opacity: 0.5; }

/* ── Sidebar bottom ────────────────────────────────────── */
.sidebar-bottom {
  padding: 10px 12px 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  flex-shrink: 0;   /* toujours visible, ne se fait pas écraser */
}

/* ── Bouton Export Excel ───────────────────────────────── */
.btn-export-xls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 14px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #1a7a4a 0%, #145e38 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #2e9e60;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  white-space: nowrap;
}
.btn-export-xls:hover {
  background: linear-gradient(135deg, #21a05e 0%, #197048 100%);
  box-shadow: 0 2px 10px rgba(30,180,90,0.25);
  transform: translateY(-1px);
}
.btn-export-xls:active { transform: translateY(0); }

/* ── Bouton Historique (sidebar) ───────────────────────── */
.btn-historique {
  display: flex; align-items: center; gap: 8px;
  margin: 0 12px 14px; padding: 8px 14px;
  background: linear-gradient(135deg, #6d3fb0 0%, #4a2a85 100%);
  color: #fff; text-decoration: none; border-radius: 8px;
  font-size: 13px; font-weight: 600; border: 1px solid #8456c9;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s; white-space: nowrap;
}
.btn-historique:hover { background: linear-gradient(135deg, #7d4fc0 0%, #573499 100%); box-shadow: 0 2px 10px rgba(130,80,200,0.3); transform: translateY(-1px); }
.btn-historique.active { border-color: #a855f7; }

/* ── Bouton Paramètres ─────────────────────────────────── */
.btn-settings {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 7px;
  padding: 7px 14px;
  background: var(--bg3);
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-settings:hover { background: var(--bg2); color: var(--text); }
.btn-settings.active { color: var(--text); border-color: #5b9bd5; }

/* ── Liste des jeux (Paramètres) ───────────────────────── */
.jeux-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.jeu-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 12px;
}
.jeu-item .jeu-nom { flex: 1; font-size: 14px; color: var(--text); }
.jeu-drag { cursor: grab; color: var(--text-muted); user-select: none; font-size: 15px; }
.jeu-drag:active { cursor: grabbing; }

/* ── Onglets internes (Inventaire) ─────────────────────── */
.inv-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.inv-tab {
  background: transparent; border: none; color: var(--text-muted);
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.15s, border-color 0.15s;
}
.inv-tab:hover { color: var(--text); }
.inv-tab.active { color: var(--text); border-bottom-color: #5b9bd5; }
.inv-pane.hidden { display: none !important; }

/* ── Bascule sources (Annonce Discord) ─────────────────── */
.src-toggle {
  background: var(--bg3); border: 1px solid var(--border); color: var(--text-muted);
  padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.src-toggle:hover { color: var(--text); }
.src-toggle.active { background: rgba(91,155,213,0.18); color: var(--text); border-color: #5b9bd5; }
.sort-arrow { color: var(--gold); font-size: 11px; }

/* ── Pages d'authentification ──────────────────────────── */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; margin: 0; }
.auth-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px;
  padding: 36px 32px; width: 360px; max-width: 92vw; box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.auth-logo { font-size: 22px; font-weight: 700; color: var(--gold); text-align: center; margin-bottom: 6px; }
.auth-title { font-size: 18px; text-align: center; margin: 0 0 18px; color: var(--text); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form input {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 13px; color: var(--text); font-size: 14px;
}
.auth-form .btn-primary { padding: 11px; font-size: 14px; margin-top: 4px; }
.auth-error { background: rgba(239,68,68,0.15); color: var(--red); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.auth-success { background: rgba(34,197,94,0.15); color: var(--green); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.auth-note { font-size: 12px; color: var(--text-muted); margin: 12px 0 0; line-height: 1.5; }
.auth-links { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.auth-links a { color: #5b9bd5; text-decoration: none; }

/* ── Chip utilisateur (sidebar) ────────────────────────── */
.user-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 12px 12px 0; padding: 8px 12px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 8px;
}
.user-chip-info { display: flex; flex-direction: column; min-width: 0; }
.user-chip-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip-role { font-size: 11px; color: var(--text-muted); }
.user-chip-logout { color: var(--text-muted); text-decoration: none; font-size: 18px; padding: 0 4px; }
.user-chip-logout:hover { color: var(--red); }

/* ── Bannière lecture seule ────────────────────────────── */
.readonly-banner {
  background: rgba(91,155,213,0.15); border: 1px solid #5b9bd5; color: var(--text);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 18px; font-size: 13px;
}

/* ── Bandeau STAGING (zone de test) ────────────────────── */
.staging-banner {
  background: repeating-linear-gradient(45deg, rgba(230,126,34,0.18), rgba(230,126,34,0.18) 14px, rgba(230,126,34,0.28) 14px, rgba(230,126,34,0.28) 28px);
  border: 2px solid #e67e22; color: #ffd9b3; font-weight: 700;
  border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px;
  text-align: center; letter-spacing: 0.3px;
}
.staging-banner a { color: #fff; text-decoration: underline; }

/* ── Infobulle de cellule (contenu tronqué) ────────────── */
.cell-tip {
  position: fixed; z-index: 9999; pointer-events: none; max-width: 360px;
  background: #0d0d1a; color: #dcddde; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 11px; font-size: 12.5px; line-height: 1.45;
  box-shadow: 0 8px 26px rgba(0,0,0,0.55); white-space: normal; word-break: break-word;
}

/* ── Cartes possédées (grille) ──────────────────────────── */
.cartes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.carte-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.15s, transform 0.1s;
}
.carte-card:hover { border-color: #5b9bd5; transform: translateY(-2px); }
.carte-img { position: relative; height: 180px; background: var(--bg3); display: flex; align-items: center; justify-content: center; }
.carte-img img { width: 100%; height: 100%; object-fit: contain; }
.carte-noimg { font-size: 48px; opacity: 0.3; }
.carte-grade-badge {
  position: absolute; top: 8px; right: 8px; background: rgba(200,168,75,0.92); color: #1a1a2e;
  font-weight: 700; font-size: 11px; padding: 3px 8px; border-radius: 6px;
}
.carte-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; }
.carte-nom { font-weight: 600; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte-meta { font-size: 11px; color: var(--text-muted); }
.carte-prix { font-size: 13px; }
.carte-marge { font-size: 12px; font-weight: 600; }
.carte-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.carte-link { font-size: 11px; padding: 3px 7px; border-radius: 5px; text-decoration: none; border: 1px solid var(--border); }
.carte-link.cm { color: #5b9bd5; }
.carte-link.psa { color: #e8b84b; }
.carte-link:hover { background: var(--bg3); }
.carte-actions { display: flex; gap: 6px; margin-top: 6px; }
.carte-preview {
  width: 130px; height: 175px; border: 1px dashed var(--border); border-radius: 8px;
  background: var(--bg3); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 40px;
}
.carte-preview img { width: 100%; height: 100%; object-fit: contain; }
.carte-statut-badge { position: absolute; top: 8px; left: 8px; background: rgba(34,197,94,0.92); color: #0d2818; font-weight: 700; font-size: 11px; padding: 3px 8px; border-radius: 6px; }
.carte-statuts { display: flex; gap: 6px; margin: 4px 0; }
.carte-statuts .cell-select { flex: 1; font-size: 11px; padding: 4px 6px; }
.carte-card.carte-done { opacity: 0.6; }

/* ── Journal des mises à jour (changelog) ────────────────── */
.changelog-entry { padding: 14px 12px; border-bottom: 1px solid var(--border); }
.changelog-entry:last-child { border-bottom: none; }
.changelog-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.changelog-date { font-size: 12px; color: var(--text-muted); background: var(--bg3);
  padding: 2px 8px; border-radius: 5px; white-space: nowrap; }
.changelog-titre { font-weight: 600; font-size: 15px; color: var(--text); }
.changelog-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.changelog-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text); }
.changelog-badge { flex-shrink: 0; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 5px; min-width: 92px; text-align: center; }
.cl-nouveau { background: rgba(34,197,94,0.18); color: var(--green); }
.cl-amelioration { background: rgba(59,130,246,0.18); color: var(--blue); }
.cl-correctif { background: rgba(245,158,11,0.18); color: var(--orange); }

/* ── Vente de lot : aperçu image au survol ───────────────── */
.lot-eye { cursor: zoom-in; font-size: 13px; opacity: 0.7; }
.lot-eye:hover { opacity: 1; }
.lot-preview-pop {
  position: fixed; z-index: 9999; pointer-events: none;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
  padding: 4px; box-shadow: 0 8px 28px rgba(0,0,0,0.5);
}
.lot-preview-pop img { display: block; width: 220px; max-height: 320px; object-fit: contain; border-radius: 5px; }

/* ── Page Lots : cartes de lot ───────────────────────────── */
.lot-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.lot-card-date { font-size: 12px; color: var(--text-muted); background: var(--bg3);
  padding: 2px 8px; border-radius: 5px; margin-right: 8px; white-space: nowrap; }

/* ── Vente de lot : étapes ───────────────────────────────── */
.lot-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.lot-step-pill { font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 20px;
  background: var(--bg3); color: var(--text-muted); border: 1px solid var(--border); }
.lot-step-pill.active { background: #5b9bd5; color: #fff; border-color: #5b9bd5; }
.lot-step-pill.done { background: rgba(34,197,94,0.18); color: var(--green); border-color: rgba(34,197,94,0.4); }
.lot-step-sep { color: var(--text-muted); }
.lot-tab-count { opacity: 0.6; font-weight: 400; }

.lot-actionbar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding: 12px 0; flex-wrap: wrap; }
.lot-pane.hidden { display: none !important; }

/* ── Vente de lot : sous-onglets par jeu ─────────────────── */
.lot-subtabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 14px 12px; }
.lot-subtab { background: var(--bg3); color: var(--text-muted); border: 1px solid var(--border);
  border-radius: 16px; padding: 4px 13px; font-size: 12px; cursor: pointer; transition: background 0.12s, color 0.12s; }
.lot-subtab:hover { color: var(--text); }
.lot-subtab.active { background: #5b9bd5; color: #fff; border-color: #5b9bd5; }

/* ── Vente de lot : liste des articles disponibles ───────── */
.lot-group { margin-bottom: 14px; }
.lot-avail-items { display: flex; flex-direction: column; gap: 1px; }
.lot-avail-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; border-bottom: 1px solid var(--border); }
.lot-avail-row:hover { background: var(--bg3); }
.lot-avail-label { display: flex; flex-direction: column; cursor: pointer; flex: 1; min-width: 0; }
.lot-avail-name { font-size: 13px; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lot-avail-meta { font-size: 11px; color: var(--text-muted); }

/* ── Vente de lot : tableau de prix (étape 2) ────────────── */
.lot-price-table td { vertical-align: middle; }
.lot-num { width: 90px; background: var(--bg3); border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 8px; color: var(--text); font-size: 13px; text-align: right; }
.lot-num-prix { border-color: #5b9bd5; font-weight: 600; }
.lot-copy-btn { background: var(--bg3); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; width: 26px; height: 30px; cursor: pointer; font-size: 14px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; transition: background 0.12s, border-color 0.12s; }
.lot-copy-btn:hover { background: #5b9bd5; border-color: #5b9bd5; color: #fff; }
.lot-num:focus { outline: none; border-color: #5b9bd5; }

/* ── Barre de recherche de liste (réutilisable) ──────────── */
.list-search {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 6px;
  padding: 7px 12px; color: var(--text); font-size: 13px; width: 220px;
}
.list-search:focus { outline: none; border-color: #5b9bd5; }

/* ── Dépôt cartes : sélecteur de vue ─────────────────────── */
.view-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.view-switch button {
  background: var(--bg2); color: var(--text-muted); border: none; padding: 7px 13px;
  font-size: 13px; cursor: pointer; border-right: 1px solid var(--border); transition: background 0.12s, color 0.12s;
}
.view-switch button:last-child { border-right: none; }
.view-switch button:hover { background: var(--bg3); color: var(--text); }
.view-switch button.active { background: #5b9bd5; color: #fff; font-weight: 600; }

/* ── Vue LISTE (cartes en lignes horizontales) ───────────── */
.cartes-grid.as-list { display: flex; flex-direction: column; gap: 8px; }
.cartes-grid.as-list .carte-card { flex-direction: row; align-items: stretch; }
.cartes-grid.as-list .carte-card:hover { transform: none; }
.cartes-grid.as-list .carte-img { width: 64px; min-width: 64px; height: 90px; }
.cartes-grid.as-list .carte-grade-badge,
.cartes-grid.as-list .carte-statut-badge { font-size: 9px; padding: 1px 4px; top: 4px; }
.cartes-grid.as-list .carte-body { flex: 1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 8px 16px; }
.cartes-grid.as-list .carte-nom { min-width: 170px; max-width: 280px; }
.cartes-grid.as-list .carte-links,
.cartes-grid.as-list .carte-marge,
.cartes-grid.as-list .carte-statuts { margin: 0; }
.cartes-grid.as-list .carte-statuts { max-width: 360px; }
.cartes-grid.as-list .carte-actions { margin: 0 0 0 auto; }

/* ── Mode CAPTURE (à envoyer au dépositaire) : masque infos sensibles ── */
.cartes-grid.capture .carte-prix,
.cartes-grid.capture .carte-marge,
.cartes-grid.capture .carte-statuts,
.cartes-grid.capture .carte-actions { display: none !important; }
/* Discrétion : on masque toute la barre d'outils + stats + info-box pour
   que la capture plein écran ressemble à un écran normal (aucun "mode spécial" visible). */
body.dc-capture-mode .dc-toolbar,
body.dc-capture-mode .dc-stats,
body.dc-capture-mode .dc-infobox,
body.dc-capture-mode .page-header .btn-primary { display: none !important; }
/* Prix côté dépositaire (sans ma marge) : visible uniquement en mode capture */
.carte-prix-public { display: none; font-size: 14px; font-weight: 600; color: var(--text); }
.cartes-grid.capture .carte-prix-public { display: block; }
.dc-capture-hint { font-size: 12px; color: var(--green); background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.3); border-radius: 6px; padding: 5px 10px; }

/* ── Zoom image au survol ──────────────────────────────── */
.card-zoom-pop {
  position: fixed; z-index: 9999; pointer-events: none;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 4px; box-shadow: 0 8px 28px rgba(0,0,0,0.55);
}
.card-zoom-pop img { display: block; max-width: 290px; max-height: 400px; border-radius: 6px; }

/* ── Main ─────────────────────────────────────────────── */
.main-content {
  margin-left: 220px;
  flex: 1;
  padding: 32px 36px;
  min-height: 100vh;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}
.page-header h1 { font-size: 24px; font-weight: 700; }
.page-subtitle { color: var(--text-muted); font-size: 13px; }

/* ── KPI Cards ────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.kpi-card {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.kpi-card.blue::before   { background: var(--blue); }
.kpi-card.green::before  { background: var(--green); }
.kpi-card.orange::before { background: var(--orange); }
.kpi-card.red::before    { background: var(--red); }
.kpi-card.purple::before { background: var(--purple); }
.kpi-card.teal::before   { background: var(--teal); }

.kpi-icon  { font-size: 22px; margin-bottom: 8px; }
.kpi-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.kpi-value { font-size: 22px; font-weight: 700; color: var(--gold); }
.kpi-sub   { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.kpi-mini-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.kpi-mini {
  flex: 1;
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
}
.kpi-mini span  { font-size: 12px; color: var(--text-muted); }
.kpi-mini strong { font-size: 16px; }
.kpi-mini.green strong { color: var(--green); }
.kpi-mini.orange strong { color: var(--orange); }
.kpi-mini.teal strong { color: var(--teal); }

/* ── Alerts ───────────────────────────────────────────── */
.alerts-box {
  background: var(--bg2);
  border: 1px solid #f5a62340;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 20px;
}
.alerts-box h3 { margin-bottom: 12px; color: var(--gold); font-size: 14px; }
.alerts-box ul  { list-style: none; }
.alerts-box li  { padding: 5px 0; color: var(--text-muted); font-size: 13px; }
.alerts-box a   { color: var(--blue); text-decoration: none; }
.alerts-box a:hover { text-decoration: underline; }

/* ── Table ────────────────────────────────────────────── */
.table-container {
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  background: var(--bg3);
  padding: 11px 14px;
  text-align: left;
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
tbody tr:hover { background: rgba(255,255,255,0.03); }
tbody tr:last-child { border-bottom: none; }

tbody td {
  padding: 10px 14px;
  vertical-align: middle;
}

tfoot .total-row {
  background: var(--bg3);
  border-top: 2px solid var(--border);
}
tfoot .total-row td { padding: 12px 14px; }

/* Row colors */
.row-green  { background: rgba(34,197,94,0.06) !important; }
.row-orange { background: rgba(249,115,22,0.06) !important; }
.row-red    { background: rgba(239,68,68,0.06) !important; }
.row-blue   { background: rgba(59,130,246,0.06) !important; }

.section-row td {
  background: var(--bg3) !important;
  color: var(--gold);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 7px 14px;
}

/* Text helpers */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-orange { color: var(--orange); }
.text-muted  { color: var(--text-muted); font-size: 12px; }

/* ── Badges ───────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-en_attente      { background: rgba(249,115,22,0.2); color: var(--orange); }
.badge-livré           { background: rgba(34,197,94,0.2);  color: var(--green); }
.badge-vendu           { background: rgba(34,197,94,0.2);  color: var(--green); }
.badge-non_payé        { background: rgba(239,68,68,0.2);  color: var(--red); }
.badge-payé            { background: rgba(34,197,94,0.2);  color: var(--green); }
.badge-acompte_versé   { background: rgba(59,130,246,0.2); color: var(--blue); }
.badge-acompte_partiel { background: rgba(249,115,22,0.2); color: var(--orange); }
.badge-réservé         { background: rgba(168,85,247,0.2); color: var(--purple); }
.badge-en_stock        { background: rgba(59,130,246,0.2); color: var(--blue); }
.badge-annulé          { background: rgba(100,100,100,0.2); color: #888; }
.badge-partiellement_livré { background: rgba(249,115,22,0.15); color: var(--orange); }
.badge-payé_intégralement  { background: rgba(34,197,94,0.2); color: var(--green); }
.badge-en_attente_paiement { background: rgba(249,115,22,0.2); color: var(--orange); }

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary {
  background: var(--gold);
  color: #1a1a2e;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-primary:hover { background: #e09400; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--bg3); color: var(--text); }

.btn-edit, .btn-delete {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 15px;
  padding: 3px 5px;
  border-radius: 4px;
  transition: background 0.15s;
}
.btn-edit:hover      { background: rgba(59,130,246,0.2); }
.btn-delete:hover    { background: rgba(239,68,68,0.2); }
.btn-restaurer {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.btn-restaurer:hover { background: rgba(34,197,94,0.15); }

.btn-livraison {
  background: transparent;
  border: 1px solid var(--blue);
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
  padding: 3px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}
.btn-livraison:hover { background: rgba(59,130,246,0.15); }

.btn-livrer {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  font-size: 13px;
  padding: 3px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}
.btn-livrer:hover { background: rgba(234,179,8,0.15); }

/* Selects colorés encaissement / reversement */
.cell-select.select-green { color: var(--green) !important; border-color: rgba(34,197,94,0.4) !important; }
.cell-select.select-red   { color: var(--red)   !important; border-color: rgba(239,68,68,0.4)  !important; }
.cell-select.select-orange{ color: var(--orange) !important; border-color: rgba(249,115,22,0.4)!important; }

.actions { white-space: nowrap; }

/* ── Modal ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal-overlay.hidden { display: none; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 520px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 16px; color: var(--gold); }
.modal-close {
  background: transparent; border: none;
  color: var(--text-muted); font-size: 18px;
  cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }

.modal-body { padding: 20px 22px; }

/* ── Forms ────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
.form-group input,
.form-group select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 11px;
  color: var(--text);
  font-size: 13px;
  transition: border 0.15s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row {
  display: flex;
  gap: 14px;
}
.form-row .form-group { flex: 1; }

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}

/* ── Config modal ─────────────────────────────────────── */
.config-info {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.config-info a { color: var(--blue); }

/* ── Info box ─────────────────────────────────────────── */
.info-box {
  margin-top: 16px;
  background: var(--bg2);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Toast ────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 13px;
  z-index: 2000;
  box-shadow: var(--shadow);
  animation: slideIn 0.25s ease;
}
.toast.hidden  { display: none; }
.toast.success { border-left: 4px solid var(--green); color: var(--green); }
.toast.error   { border-left: 4px solid var(--red);   color: var(--red); }
.toast.info    { border-left: 4px solid var(--blue);  color: var(--blue); }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Fournisseurs ─────────────────────────────────────── */
.fourn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.fourn-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.18s;
}
.fourn-card:hover { border-color: var(--gold); transform: translateY(-2px); }

.fourn-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.fourn-nom     { font-size: 17px; font-weight: 700; color: var(--text); }
.fourn-contact { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.fourn-actions { display: flex; gap: 4px; }

.fourn-stats { display: flex; flex-direction: column; gap: 8px; }
.fourn-stat  { display: flex; justify-content: space-between; align-items: center; }
.fourn-stat-label { font-size: 12px; color: var(--text-muted); }
.fourn-stat-val   { font-size: 13px; font-weight: 600; }

.fourn-card-footer {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

/* ── Dépôts Terminés ─────────────────────────────────── */
.dep-term-card:hover { border-color: var(--green) !important; }
.dep-term-chevron { font-size: 13px; color: var(--text-muted); user-select: none; }
.dep-term-section { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }

/* ── View toggle ──────────────────────────────────────── */
.view-toggle {
  display: flex;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 7px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.view-btn:hover { background: var(--bg3); color: var(--text); }
.view-btn.active { background: var(--gold); color: #1a1a2e; font-weight: 700; }

/* drag handle sur cartes clients */
.card-drag-handle {
  opacity: 0;
  font-size: 14px;
  color: var(--text-muted);
  cursor: grab;
  padding: 2px 4px;
  transition: opacity 0.15s;
  user-select: none;
}
.fourn-card:hover .card-drag-handle { opacity: 1; }

/* ligne cliquable en vue liste */
.clickable-row { cursor: pointer; }
.clickable-row:hover td { background: var(--bg3) !important; }

/* ── Client section row ───────────────────────────────── */
.client-section-link {
  float: right;
  font-size: 11px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.client-section-link:hover { text-decoration: underline; }

/* ── Fournisseur detail ────────────────────────────────── */
.back-link {
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 6px;
}
.back-link:hover { color: var(--gold); }

.detail-section {
  margin-bottom: 32px;
}
.detail-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
}
.btn-sm { padding: 6px 12px; font-size: 12px; }

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 20px;
  font-size: 14px;
}
.empty-state-inline {
  color: var(--text-muted);
  padding: 16px 20px;
  font-size: 13px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── Cellules éditables inline ────────────────────────── */
.cell-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--text);
  font-size: 13px;
  width: 100%;
  min-width: 50px;
  padding: 2px 3px;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.cell-input:hover  { border-bottom-color: var(--border); }
.cell-input:focus  {
  outline: none;
  border-bottom-color: var(--gold);
  background: rgba(245,166,35,0.06);
  border-radius: 3px 3px 0 0;
}
.cell-input[type="number"] { text-align: right; max-width: 80px; }
.cell-input[type="date"]   { max-width: 130px; color-scheme: dark; }

.cell-select {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 2px;
  font-family: inherit;
  max-width: 130px;
}
.cell-select:focus { outline: 1px solid var(--gold); border-radius: 3px; }
.cell-select option { background: var(--bg2); color: var(--text); }

/* ── Drag handle + couleur fournisseur ────────────────── */
.th-drag { width: 24px; padding: 0 6px !important; }

.td-drag {
  width: 24px;
  padding: 0 6px !important;
  text-align: center;
  cursor: grab;
  user-select: none;
  color: var(--text-muted);
  font-size: 15px;
  letter-spacing: -1px;
  border-left: 7px solid var(--row-color, transparent) !important;
  transition: border-left-color 0.2s, color 0.15s;
}
.td-drag:hover { color: var(--text); }
.td-drag:active { cursor: grabbing; }

tr.dragging { opacity: 0.45 !important; background: var(--bg3) !important; outline: 2px dashed var(--gold); }

/* ── Color Swatches ───────────────────────────────────── */
.color-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.color-swatch:hover { transform: scale(1.2); }
.color-swatch.selected {
  border-color: white;
  transform: scale(1.15);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.3);
}
.color-swatch-none {
  background: var(--bg3) !important;
  color: var(--text-muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: var(--border);
}
.color-swatch-none.selected { border-color: var(--text-muted); }

/* Dot couleur sur les cartes fournisseur */
.fourn-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
  flex-shrink: 0;
}

/* ── Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }


/* ── Discord Generator ─────────────────────────────────── */
.discord-gen-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1100px) {
  .discord-gen-layout { grid-template-columns: 1fr; }
}
.discord-section-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}
.discord-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.discord-jeu-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 14px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.discord-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}
.discord-item-row:hover { background: var(--bg3); }
.discord-check {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}
.discord-item-label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.discord-item-name { font-size: 13px; color: var(--text); }
.discord-item-qte {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg3);
  border-radius: 4px;
  padding: 1px 6px;
}
.discord-item-price {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
/* Aperçu Discord */
.discord-preview-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #202225;
  margin-top: 10px;
}
.discord-preview-bar {
  background: #1a1c1e;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.discord-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.discord-preview-body {
  background: #313338;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  min-height: 60px;
}
.discord-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C8A84B, #e09400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #1a1a2e;
  flex-shrink: 0;
}
.discord-message-wrap { flex: 1; }
.discord-username {
  font-size: 13px;
  font-weight: 700;
  color: #C8A84B;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.discord-badge {
  font-size: 9px;
  background: #5865f2;
  color: white;
  border-radius: 3px;
  padding: 1px 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.discord-preview-text {
  font-size: 13px;
  color: #dcddde;
  line-height: 1.6;
  font-family: gg sans, Noto Sans, Whitney, Helvetica Neue, Helvetica, Arial, sans-serif;
}
.discord-preview-text strong { color: #ffffff; }
.discord-preview-text em { color: #b9bbbe; font-style: italic; }
.btn-copy {
  background: #5865f2;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-copy:hover { background: #4752c4; }

/* ── Trésorerie Dépôt-Vente ─────────────────────────────── */
.treso-resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.treso-solde-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.treso-card-warning { border-color: var(--orange); }
.treso-card-ok      { border-color: var(--green); }
.treso-solde-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}
.treso-solde-detail {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.treso-label-vert { color: var(--text-muted); }
.treso-val-vert   { color: var(--orange); font-weight: 600; }
.treso-label-red  { color: var(--text-muted); }
.treso-val-red    { color: var(--blue); font-weight: 600; }
.treso-solde-net {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}
.btn-regler {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.15s;
}
.btn-regler:hover { opacity: 0.85; }
.row-muted td { opacity: 0.5; }
.badge-yellow { background: rgba(255,200,0,0.15); color: #ffc800; }
.badge-green  { background: rgba(34,197,94,0.18);  color: var(--green); }
.badge-blue   { background: rgba(59,130,246,0.18); color: var(--blue); }
.badge-orange { background: rgba(249,115,22,0.18); color: var(--orange); }
.badge-red    { background: rgba(239,68,68,0.18);  color: var(--red); }
.badge-muted  { background: rgba(120,120,120,0.18); color: #999; }

/* ── Commandes en cours ──────────────────────────────────── */
.row-yellow td { background: rgba(255, 200, 0, 0.04); }
.stat-mini {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}
.stat-mini-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.stat-mini-val   { font-size: 20px; font-weight: 700; }
.text-yellow { color: #ffc800; }
.badge-yellow { background: rgba(255,200,0,0.15); color: #ffc800; }

/* ── Dashboard Shortcuts ─────────────────────────────────── */
.shortcuts-section { margin-top: 28px; }
.shortcuts-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 14px;
}
.shortcuts-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.shortcut-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  background: var(--bg2);
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
  min-width: 160px;
}
.shortcut-card:hover {
  transform: translateY(-2px);
  background: var(--bg3);
}
.shortcut-icon { font-size: 26px; line-height: 1; }
.shortcut-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.shortcut-label span { font-weight: 400; color: var(--text-muted); font-size: 12px; }
.shortcut-yellow { border-color: rgba(255,200,0,0.3); }
.shortcut-yellow:hover { border-color: #ffc800; }
.shortcut-blue   { border-color: rgba(88,101,242,0.3); }
.shortcut-blue:hover   { border-color: #5865f2; }
.shortcut-purple { border-color: rgba(139,92,246,0.3); }
.shortcut-purple:hover { border-color: #8b5cf6; }
.shortcut-orange { border-color: rgba(255,140,0,0.3); }
.shortcut-orange:hover { border-color: #ff8c00; }
.shortcut-red    { border-color: rgba(239,68,68,0.3); }
.shortcut-red:hover    { border-color: #ef4444; }

/* ── Dashboard activité récente ─────────────────────────── */
.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.recent-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}
.recent-label { font-size: 13px; color: var(--text); font-weight: 500; }
.recent-meta  { display: flex; justify-content: space-between; margin-top: 4px; }
.recent-date  { font-size: 11px; color: var(--text-muted); }
.recent-sub   { font-size: 11px; color: var(--accent); }

/* ── Badge non encaissé ─────────────────────────────────── */
.badge-non-encaisse {
  display: inline-block;
  font-size: 12px;
  cursor: help;
  margin-left: 4px;
  animation: pulse-warn 2s infinite;
}
@keyframes pulse-warn {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Pagination ─────────────────────────────────────────── */
.table-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  border-radius: 0 0 8px 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.table-pager button:disabled { opacity: 0.35; cursor: not-allowed; }
