﻿/* ============================================================
   CRM FRANFINANCE â€” Design system (v2)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #0c0d10;
  --surface: #15161a;
  --surface-2: #1b1c22;
  --surface-3: #23242c;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.22);
  --txt: #f4f4f5;
  --muted: #9ca0ab;
  --accent: #e5322e;
  --accent-2: #ff5a4f;
  --grad: linear-gradient(135deg, #e5322e 0%, #ff5a4f 100%);
  --green: #2fbf71;
  --red: #ff5d5d;
  --orange: #ffb020;
  --purple: #a78bfa;
  --r: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-color: #2a3752 transparent; }
body {
  background: var(--bg); color: var(--txt);
  font-family: 'Inter', ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(229, 50, 46, 0.4); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a3752; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(229, 50, 46, 0.5); } 70% { box-shadow: 0 0 0 18px rgba(229, 50, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 50, 46, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- layout ---------- */
.topbar {
  display: flex; align-items: center; gap: 18px;
  background: rgba(13, 20, 36, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px 22px; position: sticky; top: 0; z-index: 50;
}
.topbar .logo { font-weight: 800; font-size: 17px; letter-spacing: 0.2px; white-space: nowrap; }
.topbar .logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar .who {
  margin-left: auto; display: flex; gap: 10px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 6px 8px 6px 14px; border-radius: 999px;
}
.topbar .who > span:first-child { color: var(--muted); font-weight: 600; font-size: 13px; }
.topbar .who a { text-decoration: none; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 26px 22px 60px; }

/* ---------- badges de role ---------- */
.role-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
}
.role-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.role-admin { background: rgba(255, 122, 41, 0.15); color: #ffa14a; border: 1px solid rgba(255, 122, 41, 0.35); }
.role-patron { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.35); }
.role-caller { background: rgba(47, 191, 113, 0.15); color: #6ee7a8; border: 1px solid rgba(47, 191, 113, 0.35); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface-2); color: var(--txt); border: 1px solid var(--border-strong);
  padding: 9px 18px; border-radius: 10px; cursor: pointer;
  font-size: 14px; font-weight: 600; font-family: inherit; line-height: 1;
  transition: all 0.15s ease;
}
.btn:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.45); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(229, 50, 46, 0.45); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(229, 50, 46, 0.35); }
.btn-primary:hover { background: var(--grad); filter: brightness(1.12); box-shadow: 0 6px 20px rgba(229, 50, 46, 0.5); }
.btn-green { background: linear-gradient(135deg, #23a05e, #2fbf71); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(47, 191, 113, 0.3); }
.btn-green:hover { filter: brightness(1.12); border-color: transparent; }
.btn-red { background: linear-gradient(135deg, #e04747, #ff5d5d); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(255, 93, 93, 0.3); }
.btn-red:hover { filter: brightness(1.12); border-color: transparent; }
.btn-orange { background: linear-gradient(135deg, #d98a12, #ffb020); border-color: transparent; color: #1a1205; font-weight: 700; box-shadow: 0 4px 14px rgba(255, 176, 32, 0.25); }
.btn-orange:hover { filter: brightness(1.1); border-color: transparent; }
.btn-purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3); }
.btn-purple:hover { filter: brightness(1.12); border-color: transparent; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 15px 34px; font-size: 17px; border-radius: 12px; }

/* ---------- formulaires ---------- */
label {
  display: block; color: var(--muted); font-size: 11px; font-weight: 700;
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.8px;
}
input, select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border-strong);
  color: var(--txt); padding: 10px 13px; border-radius: 10px;
  font-size: 14px; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: #55628a; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 50, 46, 0.22);
}
select { cursor: pointer; }
option { background: var(--surface-2); color: var(--txt); }
input[type=checkbox] { width: auto; }
input[type=datetime-local] { color-scheme: dark; }
textarea { resize: vertical; min-height: 76px; }
.field { margin-bottom: 16px; }
.row { display: flex; gap: 14px; } .row > * { flex: 1; min-width: 0; }

/* ---------- cartes ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px; margin-bottom: 20px;
  box-shadow: var(--shadow); animation: fadeUp 0.35s ease both;
}
.card h2 {
  font-size: 15px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px;
}
.card h2 small { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 4px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; padding: 10px 12px; color: var(--muted);
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
  border-bottom: 1px solid var(--border-strong); white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
}
td { padding: 11px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { cursor: pointer; transition: background 0.12s; }
tbody tr:hover td { background: rgba(229, 50, 46, 0.07); }
td b { font-weight: 700; }

/* ---------- badges statut ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap; letter-spacing: 0.3px;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.st-NOUVEAU { background: rgba(255, 255, 255, 0.14); color: #cbd5e1; }
.st-ATTRIBUE { background: rgba(107, 168, 255, 0.14); color: #8bb1ff; }
.st-EN_COURS { background: rgba(255, 176, 32, 0.13); color: #ffc555; }
.st-NRP_RAPPELER { background: rgba(139, 92, 246, 0.16); color: #bda8ff; }
.st-DOC_MANQUANTS { background: rgba(255, 122, 41, 0.14); color: #ffab6b; }
.st-SIGNE { background: rgba(47, 191, 113, 0.15); color: #6ee7a8; }
.st-KO { background: rgba(255, 93, 93, 0.14); color: #ff8f8f; }
.st-RAPPELE_ECHEC { background: rgba(255, 93, 93, 0.1); color: #e58f8f; }

/* ---------- page login ---------- */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px; position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(229, 50, 46, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(229, 50, 46, 0.1), transparent 55%),
    var(--bg);
}
.login-page::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.login-box {
  width: 400px; max-width: 100%;
  background: rgba(21, 22, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px; padding: 38px 34px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 60px rgba(229, 50, 46, 0.08);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: fadeUp 0.45s ease both; position: relative;
}
.login-box::after {
  content: ''; position: absolute; top: 0; left: 32px; right: 32px; height: 2px;
  background: var(--grad); border-radius: 0 0 4px 4px;
}
.login-box .brand { text-align: center; margin-bottom: 26px; }
.logo-mark {
  width: 72px; height: 72px; margin: 0 auto 16px;
  background: #fff; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(229, 50, 46, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.logo-mark img { width: 58px; height: auto; object-fit: contain; }
.login-box .brand h1 { font-size: 25px; font-weight: 800; letter-spacing: -0.3px; }
.login-box .brand h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-box .brand p { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.login-error {
  background: rgba(255, 93, 93, 0.12); border: 1px solid rgba(255, 93, 93, 0.4);
  color: #ffb3b3; padding: 10px 14px; border-radius: 10px;
  margin-bottom: 16px; font-size: 13px; display: none;
}
.login-footer { text-align: center; color: #6b6f7a; font-size: 11px; margin-top: 22px; }

/* ---------- panel caller ---------- */
.big-action { text-align: center; padding: 44px 20px; }
.big-action h2 { justify-content: center; margin-bottom: 8px !important; border-bottom: none !important; padding-bottom: 0 !important; }
.big-action p { margin-top: 20px; line-height: 1.8; }

.pool-choice { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.pool-btn {
  flex: 0 1 250px; min-width: 230px;
  background: linear-gradient(180deg, rgba(229, 50, 46, 0.12), rgba(229, 50, 46, 0.03)), var(--surface-2);
  border: 1px solid var(--border-strong); border-radius: 18px;
  padding: 26px 22px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; align-items: center;
  color: var(--txt); font-family: inherit; transition: all 0.18s ease; position: relative;
}
.pool-btn:hover {
  border-color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(229, 50, 46, 0.25);
}
.pool-btn:active { transform: translateY(-1px); }
.pool-btn .pool-range {
  font-size: 20px; font-weight: 800; letter-spacing: -0.3px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pool-btn .pool-label {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
}
.pool-btn .pool-count {
  font-size: 12px; font-weight: 600; color: #6ee7a8;
  background: rgba(47, 191, 113, 0.12); border: 1px solid rgba(47, 191, 113, 0.3);
  padding: 4px 12px; border-radius: 999px; margin-top: 6px;
}

.lead-fiche {
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow); animation: fadeUp 0.35s ease both;
}
.lead-fiche-head {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px; flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(229, 50, 46, 0.12), transparent), var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.lead-fiche-head .name { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.lead-fiche-head .tel {
  font-size: 20px; font-weight: 800; color: #6ee7a8; letter-spacing: 0.5px;
  background: rgba(47, 191, 113, 0.1); border: 1px solid rgba(47, 191, 113, 0.3);
  padding: 5px 14px; border-radius: 10px; font-family: 'Consolas', monospace;
}
.lead-fiche-head .raison { margin-left: auto; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.cat-chip {
  display: inline-flex; padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
}
.cat-chip.cat-P10_16K { background: rgba(255, 255, 255, 0.1); color: #d8dce6; border: 1px solid rgba(255, 255, 255, 0.22); }
.cat-chip.cat-PLUS16K { background: rgba(229, 50, 46, 0.16); color: #ff7b74; border: 1px solid rgba(229, 50, 46, 0.45); }
.statut-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 16px 22px; background: var(--surface-2); border-top: 1px solid var(--border);
}
.statut-bar > strong { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; margin-right: 4px; }
.statut-bar .sep { color: #3a3c46; }
.rappel-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rappel-inline input { width: auto; }

/* ---------- notes / docs / historique ---------- */
.note-item {
  border-left: 3px solid var(--border); padding: 10px 14px; margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.04); border-radius: 0 10px 10px 0;
}
.note-item .meta { color: var(--muted); font-size: 11px; margin-bottom: 4px; font-weight: 600; }
.note-item .note-caller { border-left-color: var(--accent); }
.note-item .note-patron { border-left-color: #818cf8; }
.note-item .note-admin { border-left-color: var(--orange); }
.doc-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 8px; transition: border-color 0.15s;
}
.doc-item:hover { border-color: var(--border-strong); }
.doc-item .sz { color: var(--muted); font-size: 11px; margin-left: auto; }
.doc-item .btn { flex: 0 0 auto; }

.montant-input { font-size: 18px !important; font-weight: 700; color: #6ee7a8; }

/* ---------- caller : quota + sections fiche + gros retour ---------- */
.quota-line { font-size: 13.5px; color: var(--txt); margin: 14px 0 8px; font-weight: 600; }
.quota-line b { color: #6ee7a8; }
.quota-bar {
  height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07);
  overflow: hidden; max-width: 420px; margin: 0 auto 24px; border: 1px solid var(--border);
}
.quota-bar .quota-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, #2fbf71, #6ee7a8);
  transition: width 0.4s ease;
}
.pool-btn .pool-count.empty { color: #ff9d9d !important; background: rgba(255, 93, 93, 0.12) !important; border-color: rgba(255, 93, 93, 0.4) !important; }
.pool-hint { max-width: 640px; margin-left: auto; margin-right: auto; }

.big-back {
  width: 100%; border: 1px solid var(--border-strong); background: var(--surface-2);
  color: var(--txt); font-family: inherit; font-weight: 800; font-size: 16px;
  padding: 15px 24px; border-radius: 12px; cursor: pointer; margin-bottom: 16px;
  transition: all 0.15s; letter-spacing: 0.3px;
}
.big-back:hover { background: var(--surface-3); border-color: var(--accent); transform: translateY(-1px); }

.fiche-section {
  padding: 16px 22px; border-top: 1px solid var(--border);
  background: var(--surface);
}
.fiche-section h3 {
  font-size: 13px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.fiche-section h3 small { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.fiche-statut { background: linear-gradient(180deg, rgba(229, 50, 46, 0.06), transparent), var(--surface); }
.fiche-notes { background: rgba(255, 176, 32, 0.025); }
.fiche-notes .note-compose { display: flex; gap: 12px; align-items: stretch; }
.fiche-notes .note-compose textarea { flex: 1; min-height: 64px; }
.fiche-notes .note-compose .btn { flex: 0 0 auto; align-self: flex-end; }

.note-compose + #notes-list { clear: both; }
.doc-item { align-items: center; }
.doc-preview {
  width: 92px; height: 60px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border-strong); cursor: zoom-in; flex: 0 0 auto;
}
.doc-pdf { font-size: 30px; width: 60px; text-align: center; flex: 0 0 auto; }
.doc-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.doc-info .sz { font-size: 11px; color: var(--muted); margin-left: 0; }
td .due { color: #ff9d9d; font-weight: 700; }

/* modales compactes */
.modal-sm { width: 440px; }
.modal-actions { display: flex; gap: 12px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }
.qty-target {
  text-align: center; font-weight: 700; color: var(--muted);
  background: rgba(229, 50, 46, 0.08); border: 1px solid rgba(229, 50, 46, 0.25);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px;
}
.qty-stepper { display: flex; gap: 10px; align-items: center; justify-content: center; margin-bottom: 14px; }
.qty-stepper input {
  width: 90px; text-align: center; font-size: 22px; font-weight: 800; color: var(--txt);
}
.qty-stepper .btn { font-size: 22px; width: 52px; padding: 10px 0; }

/* ---------- modales ---------- */
.modal-bg {
  position: fixed; inset: 0; z-index: 100; padding: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 7, 14, 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s;
}
.modal-bg.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 18px; width: 560px; max-width: 100%; max-height: 92vh; overflow-y: auto;
  padding: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(14px) scale(0.98); transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.modal-bg.open .modal { transform: none; }
.modal h3 { margin-bottom: 18px; font-size: 17px; font-weight: 700; }
.modal .close-x { float: right; cursor: pointer; color: var(--muted); font-size: 24px; line-height: 1; transition: color 0.15s; }
.modal .close-x:hover { color: var(--red); }

/* ---------- toast ---------- */
#toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 16px);
  background: rgba(19, 28, 48, 0.95);
  border: 1px solid rgba(47, 191, 113, 0.6); color: #6ee7a8;
  padding: 13px 24px; border-radius: 12px; font-weight: 600; z-index: 200;
  opacity: 0; pointer-events: none; transition: all 0.25s ease; max-width: 90vw;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
#toast.err { border-color: rgba(255, 93, 93, 0.6); color: #ff9d9d; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-box {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px; animation: fadeUp 0.35s ease both;
}
.stat-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: 0.7;
}
.stat-box .v { font-size: 27px; font-weight: 800; margin-top: 4px; letter-spacing: -0.5px; }
.stat-box .l { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.v-green { color: #6ee7a8; } .v-red { color: #ff9d9d; } .v-orange { color: #ffc555; }
.v-blue { color: #8bb1ff; } .v-purple { color: #c4b5fd; }

/* ---------- dropzone ---------- */
.dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.35); border-radius: var(--r);
  padding: 30px; text-align: center; color: var(--muted); cursor: pointer;
  transition: all 0.15s; line-height: 1.7;
}
.dropzone:hover { border-color: var(--accent); color: var(--txt); background: rgba(229, 50, 46, 0.05); }
.dropzone.drag { border-color: var(--accent); color: var(--txt); background: rgba(229, 50, 46, 0.1); border-style: solid; }

/* ---------- divers ---------- */
.muted { color: var(--muted); }
.mono { font-family: 'Consolas', 'SF Mono', monospace; letter-spacing: 0.3px; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.right { margin-left: auto; }
.pager { display: flex; gap: 8px; margin-top: 12px; align-items: center; color: var(--muted); }
.recall-flag { color: #ff8f8f; font-weight: 800; font-size: 10px; margin-left: 8px; letter-spacing: 0.5px; }
td .recall-flag { display: block; margin: 2px 0 0; }

@media (max-width: 860px) {
  .wrap { padding: 14px 12px 50px; }
  .row { flex-direction: column; gap: 0; }
  .topbar { padding: 10px 14px; flex-wrap: wrap; gap: 10px; }
  .topbar .who { margin-left: auto; }
  .lead-fiche-head { gap: 10px; }
  .statut-bar .sep { display: none; }
}
