/* ============================================================
   SUITEPAY — Charte graphique complète (PHP/HTML5/CSS3)
   Police : Montserrat | Couleur primaire : #6C3AED
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700&display=swap');

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: #f9fafb;
  color: #111827;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── VARIABLES ─────────────────────────────────────────────── */
:root {
  --purple:      #6C3AED;
  --purple-dark: #5B21B6;
  --purple-light:#f3f0ff;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --green-50:  #f0fdf4;
  --green-400: #4ade80;
  --green-700: #15803d;
  --orange-50:  #fff7ed;
  --orange-400: #fb923c;
  --orange-700: #c2410c;
  --orange-800: #9a3412;
  --red-50:   #fef2f2;
  --red-400:  #f87171;
  --red-500:  #ef4444;
  --red-600:  #dc2626;
  --red-700:  #b91c1c;
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a8a;
  --violet-200: #ddd6fe;
  --yellow-100: #fef9c3;
  --pink-200:   #fbcfe8;
  --purple-50:  #f5f3ff;
  --purple-400: #a78bfa;
  --purple-700: #6d28d9;
  --sidebar-w: 288px;
  --radius: 8px;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
  --shadow:    0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --transition: 200ms ease;
}

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--gray-50);
}

/* ─── SIDEBAR ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 40;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.sidebar.open,
.sidebar-static { transform: translateX(0); }

@media (min-width: 1024px) {
  .sidebar {
    position: static;
    transform: none;
  }
}

.sidebar-logo {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-logo img { height: 24px; }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.sidebar-date {
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 20px;
  text-transform: capitalize;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  color: var(--gray-900);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  margin-bottom: 2px;
}
.nav-item:hover { background: var(--gray-50); }
.nav-item.active { background: var(--gray-100); font-weight: 700; }
.nav-item svg { width: 16px; height: 16px; color: var(--gray-600); flex-shrink: 0; }

/* Notifications button */
.sidebar-notif-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  width: 100%;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition);
  position: relative;
  margin: 4px 0;
}
.sidebar-notif-btn:hover { background: var(--gray-100); }
.notif-dot {
  position: absolute;
  top: 8px; left: 27px;
  width: 8px; height: 8px;
  background: var(--red-500);
  border-radius: 50%;
  border: 1.5px solid #fff;
}

/* Profile section */
.sidebar-profile {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
}
.profile-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background var(--transition);
}
.profile-btn:hover { background: var(--gray-100); }
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(108,58,237,.1);
  color: var(--purple);
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.avatar img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.profile-name { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.profile-id   { font-size: 12px; color: var(--gray-400); }
.chevron-icon { width: 16px; height: 16px; color: var(--gray-400); margin-left: auto; }

/* Compliance box */
.sidebar-compliance {
  padding: 12px 16px 16px;
}
.compliance-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px;
}
.compliance-box p { font-size: 11px; color: var(--gray-700); line-height: 1.6; margin-bottom: 12px; }
.compliance-logos { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.compliance-logos img:first-child { height: 32px; }
.compliance-logos img:last-child  { height: 24px; }
.sidebar-footer {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 12px;
}
.sidebar-footer p { font-size: 12px; color: var(--gray-400); }
.sidebar-footer svg { width: 12px; height: 12px; color: var(--gray-300); }

/* ─── MOBILE HEADER ──────────────────────────────────────────── */
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
}
.mobile-header img { height: 20px; }
.hamburger-btn {
  padding: 8px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  display: flex; align-items: center;
}
.hamburger-btn svg { width: 20px; height: 20px; }

@media (min-width: 1024px) { .mobile-header { display: none !important; } }

/* ─── OVERLAY ────────────────────────────────────────────────── */
.overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 30;
}
.overlay.show { display: block; }
@media (min-width: 1024px) { .overlay { display: none !important; } }

/* ─── MAIN CONTENT ───────────────────────────────────────────── */
.main-content {
  flex: 1;
  overflow-y: auto;
  min-width: 0;
}
.main-inner {
  min-height: 100%;
  padding-top: 56px;
}
@media (min-width: 1024px) { .main-inner { padding-top: 0; } }

/* ─── PAGE HEADER ────────────────────────────────────────────── */
.page-header {
  padding: 32px 32px 16px;
}
.page-header-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .page-header-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.page-title { font-size: 28px; font-weight: 800; color: var(--gray-900); }
.verified-badge {
  display: flex; align-items: center; gap: 4px; margin-top: 4px;
}
.verified-badge span { font-size: 11px; color: #000; font-weight: 500; }

/* ─── ALERT BANNER ───────────────────────────────────────────── */
.alert-banner {
  background: #fff7ed;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .alert-banner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.alert-banner-left { display: flex; align-items: flex-start; gap: 10px; }
.alert-banner-left svg { width: 16px; height: 16px; color: #f97316; flex-shrink: 0; margin-top: 2px; }
.alert-title { font-size: 14px; font-weight: 700; color: #9a3412; margin-bottom: 4px; }
.alert-desc  { font-size: 12px; color: #c2410c; display: none; }
@media (min-width: 640px) { .alert-desc { display: block; } }
.btn-alert {
  font-size: 12px; font-weight: 700; color: #c2410c;
  border: 1px solid #fdba74; border-radius: 8px;
  padding: 6px 16px; white-space: nowrap;
  transition: background var(--transition);
}
.btn-alert:hover { background: #fed7aa; }

/* ─── STAT CARDS ─────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px)  { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
}
.stat-card-label { font-size: 12px; font-weight: 400; color: var(--gray-900); margin-bottom: 4px; }
.stat-card-amount { font-size: 24px; font-weight: 800; color: var(--gray-900); }
.stat-card-count  { font-size: 13px; color: var(--gray-900); margin-top: 2px; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 600; font-family: 'Montserrat', sans-serif;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  border: 1px solid var(--purple);
}
.btn-primary:hover { background: var(--purple-dark); }

.btn-outline {
  background: #fff; color: var(--gray-900);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { background: var(--gray-50); }

.btn-ghost {
  background: transparent; color: var(--gray-400);
  border: 1px solid transparent;
  padding: 6px;
}
.btn-ghost:hover { background: var(--gray-100); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { padding: 6px; }

/* ─── SEARCH BAR ─────────────────────────────────────────────── */
.search-wrap {
  position: relative;
  flex: 1;
}
.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--gray-700);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 8px 40px 8px 36px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 14px; font-family: 'Montserrat', sans-serif;
  color: var(--gray-900);
  background: #fff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input::placeholder { color: var(--gray-500); }
.search-input:focus {
  border-color: var(--gray-300);
  box-shadow: 0 0 0 2px rgba(108,58,237,.1);
}
.search-ok-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 12px; font-weight: 600; color: var(--gray-900);
  background: none; border: none;
}
.search-ok-btn:hover { color: #000; }

/* ─── SP-INPUT (helper pour les pages avec Tailwind) ─────────── */
.sp-input {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  color: var(--gray-900);
  background: #fff;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.sp-input::placeholder { color: var(--gray-400); }
.sp-input:focus {
  border-color: #6C3AED;
  box-shadow: 0 0 0 2px rgba(108,58,237,.15);
}
.sp-input:disabled { background: var(--gray-50); color: var(--gray-500); cursor: not-allowed; }

/* ─── FORM FIELDS ────────────────────────────────────────────── */
.form-label {
  display: block;
  font-size: 14px; font-weight: 500; color: var(--gray-700);
  margin-bottom: 6px;
}
.form-label .req { color: var(--red-500); }
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 13px; font-family: 'Montserrat', sans-serif;
  color: var(--gray-900); background: #fff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input::placeholder { color: var(--gray-400); }
.form-input:focus {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}
.form-input-wrap { position: relative; }
.toggle-pw-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--gray-400);
  display: flex; align-items: center;
}
.toggle-pw-btn:hover { color: var(--gray-600); }
.toggle-pw-btn svg { width: 16px; height: 16px; }

.filter-label { font-size: 11px; color: var(--gray-600); display: block; margin-bottom: 4px; }
.filter-select, .filter-input {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--gray-300); border-radius: 6px;
  font-size: 14px; font-family: 'Montserrat', sans-serif;
  color: var(--gray-900); background: #fff; outline: none;
  transition: border-color var(--transition);
}
.filter-select:focus, .filter-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(108,58,237,.15);
}

/* ─── FILTERS BAR ────────────────────────────────────────────── */
.filters-bar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  background: rgba(249,250,251,.7);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 640px) {
  .filters-bar {
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: wrap;
  }
}
.filter-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 100px; }
.filter-group-pair { display: flex; gap: 8px; flex: 1; }

.filters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px)  { .filters-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px)  { .filters-grid { grid-template-columns: repeat(5, 1fr); } }

/* ─── TABLE / TRANSACTION LIST ───────────────────────────────── */
.transactions-table { width: 100%; }
.t-row {
  width: 100%;
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
  cursor: pointer;
  box-sizing: border-box;
}
.t-row:last-child { border-bottom: none; }
.t-row:hover { background: var(--gray-100) !important; }
.t-row.striped { background: var(--gray-50); }
.t-row.selected { background: var(--purple-50) !important; }

/* Desktop row layout */
.t-row-desktop {
  display: none;
  align-items: center;
  gap: 12px;
  width: 100%;
}
@media (min-width: 768px) { .t-row-desktop { display: flex; } }

/* Mobile row layout */
.t-row-mobile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
@media (min-width: 768px) { .t-row-mobile { display: none; } }

.t-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.t-icon svg { width: 16px; height: 16px; color: #000; }
.t-icon.caution  { background: var(--violet-200); }
.t-icon.no_show  { background: var(--yellow-100); }
.t-icon.paiement { background: var(--pink-200); }

/* t-cell-flex grows to fill remaining space */
.t-cell         { flex-shrink: 0; }
.t-cell-flex    { flex: 1; min-width: 0; overflow: hidden; }
.t-cell-label   { font-size: 11px; color: var(--gray-500); margin-bottom: 4px; }
.t-cell-value   { font-size: 13px; color: var(--gray-900); }
.t-cell-mono    { font-family: 'Courier New', monospace; font-size: 13px; color: var(--gray-900); }

/* Row action dropdown */
.row-action-wrap {
  position: relative;
  flex-shrink: 0;
}
.row-action-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  min-width: 200px;
  z-index: 300;
  padding: 4px 0;
  display: none;
}
/* Last few rows open upward to avoid overflow */
.row-action-menu.upward {
  top: auto;
  bottom: calc(100% + 4px);
}
.row-action-menu.show { display: block; }
.row-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.row-action-item:hover { background: var(--gray-50); }
.row-action-item.danger { color: var(--red-600); }
.row-action-item svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--gray-400); }
.row-action-item.danger svg { color: var(--red-400); }
.row-action-separator { height: 1px; background: var(--gray-100); margin: 4px 0; }

/* ─── STATUS BADGES ──────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 9999px;
  font-size: 12px; font-weight: 500;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}
.badge-en_attente { background: #fff7ed; color: #c2410c; }
.badge-en_attente .badge-dot { background: #fb923c; }
.badge-paye    { background: var(--green-50); color: var(--green-700); }
.badge-paye    .badge-dot { background: var(--green-400); }
.badge-encaisse { background: var(--red-50); color: var(--red-700); }
.badge-encaisse .badge-dot { background: var(--red-400); }
.badge-libere  { background: var(--purple-50); color: var(--purple-700); }
.badge-libere  .badge-dot { background: var(--purple-400); }
.badge-annule  { background: var(--gray-50); color: var(--gray-600); }
.badge-annule  .badge-dot { background: var(--gray-400); }
.badge-expire  { background: var(--gray-50); color: var(--gray-600); }
.badge-expire  .badge-dot { background: var(--gray-400); }
.badge-envoye  { background: var(--blue-50); color: var(--blue-700); }
.badge-envoye  .badge-dot { background: #60a5fa; }
.badge-refuse  { background: var(--red-50); color: var(--red-700); }
.badge-refuse  .badge-dot { background: var(--red-400); }

/* ─── PAGINATION ─────────────────────────────────────────────── */
.pagination-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; border-top: 1px solid var(--gray-200);
  flex-wrap: wrap; gap: 12px;
}
.page-size-wrap { display: flex; align-items: center; gap: 8px; }
.page-size-wrap label { font-size: 14px; color: var(--gray-600); }
.page-size-select {
  height: 36px; padding: 0 8px;
  border: 1px solid var(--gray-300); border-radius: 6px;
  font-size: 14px; font-family: 'Montserrat', sans-serif;
  outline: none;
}
.pagination { display: flex; align-items: center; gap: 4px; }
.page-btn {
  min-width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; border: 1px solid transparent;
  font-size: 14px; font-family: 'Montserrat', sans-serif;
  color: var(--gray-700);
  transition: background var(--transition), border-color var(--transition);
}
.page-btn:hover { background: var(--gray-100); border-color: var(--gray-200); }
.page-btn.active {
  background: var(--purple); color: #fff; border-color: var(--purple);
}
.page-btn:disabled { opacity: .4; cursor: default; }

/* ─── INFO BUBBLES ───────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px; margin-bottom: 24px;
}
@media (min-width: 640px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.info-bubble {
  background: var(--blue-50);
  border-radius: 12px; padding: 16px;
  display: flex; gap: 12px;
}
.info-bubble-icon {
  width: 32px; height: 32px;
  background: var(--blue-100); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-bubble-icon svg { width: 16px; height: 16px; color: var(--blue-600); }
.info-bubble-title { font-size: 14px; font-weight: 700; color: var(--blue-900); margin-bottom: 4px; }
.info-bubble-text  { font-size: 12px; color: var(--blue-700); line-height: 1.6; }

/* ─── CHARTS GRID ────────────────────────────────────────────── */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px; margin-bottom: 32px;
}
@media (min-width: 1024px) { .charts-grid { grid-template-columns: 1fr 1fr; } }

.chart-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 20px;
}
.chart-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.chart-card-title { font-size: 14px; font-weight: 600; color: var(--gray-800); margin-bottom: 2px; }
.chart-card-sub   { font-size: 12px; color: var(--gray-400); }

.chart-period-selector {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 3px;
  flex-shrink: 0;
}
.chart-period-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: var(--gray-500);
  transition: background var(--transition), color var(--transition);
}
.chart-period-btn.active {
  background: #fff;
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
}
.chart-period-btn:hover:not(.active) { color: var(--gray-700); }

.chart-canvas-wrap {
  position: relative;
  width: 100%;
}
.chart-canvas-wrap canvas {
  display: block;
  width: 100% !important;
}

/* ─── TRANSACTIONS SECTION ────────────────────────────────────── */
.transactions-section {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}
.transactions-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--gray-100);
  gap: 12px;
  flex-wrap: wrap;
}

/* Filters bar inside section */
.filters-bar-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  background: rgba(249,250,251,.7);
}
@media (min-width: 640px)  { .filters-bar-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .filters-bar-2 { grid-template-columns: repeat(5, 1fr); } }

/* Table header row (desktop only) */
.t-header {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) { .t-header { display: flex; } }

.t-header-check {
  width: 20px; flex-shrink: 0;
  display: flex; align-items: center;
}
.t-header-icon {
  width: 36px; flex-shrink: 0;
}
/* Header flex column (mirrors .t-cell-flex) */
.t-header-cell-flex {
  flex: 1; min-width: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.t-header-cell {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .04em;
  flex-shrink: 0;
}

.t-cell-check {
  width: 20px; flex-shrink: 0;
  display: flex; align-items: center;
}
.t-cell-actions {
  width: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Period cell secondary line */
.t-period { line-height: 1.4; }

/* ─── HOME / AUTH PAGE ───────────────────────────────────────── */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) { .auth-shell { flex-direction: row; } }

.auth-left {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
}
@media (min-width: 1024px) {
  .auth-left { width: 60%; min-height: 100vh; padding: 0 24px; }
}
.auth-left-inner { width: 100%; max-width: 480px; }

.auth-right {
  width: 100%;
  background: linear-gradient(135deg, #6C3AED 0%, #5B21B6 50%, #4F46E5 100%);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 64px 32px;
  position: relative; overflow: hidden;
}
@media (min-width: 1024px) { .auth-right { width: 40%; } }

.auth-deco {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.auth-deco-1 { width: 256px; height: 256px; top: -80px; right: -80px; }
.auth-deco-2 { width: 192px; height: 192px; bottom: -60px; left: -60px; }
.auth-deco-3 { width: 96px;  height: 96px;  top: 33%;   left: -30px; }

.auth-right-inner { position: relative; z-index: 10; max-width: 400px; width: 100%; }
.auth-tagline {
  color: #fff; font-size: 28px; font-weight: 800;
  line-height: 1.2; text-transform: uppercase; letter-spacing: -.5px;
}
@media (min-width: 1024px) { .auth-tagline { font-size: 36px; } }

.auth-quote {
  margin-top: 48px; font-size: 14px; color: rgba(255,255,255,.8);
  font-style: italic; line-height: 1.6;
}
.auth-quote strong { text-decoration: underline; font-weight: 500; color: #fff; }
.auth-quote-author { color: rgba(255,255,255,.7); font-size: 14px; font-weight: 500; margin-top: 12px; }

.auth-logo { height: 24px; margin-bottom: 32px; }

/* Auth forms */
.auth-form-title { font-size: 24px; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
.auth-form-sub   { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-form-row { display: flex; gap: 12px; }
.auth-form-row > * { flex: 1; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 4px 0;
}
.auth-divider-line { flex: 1; height: 1px; background: var(--gray-200); }
.auth-divider-text { font-size: 12px; color: var(--gray-400); }
.btn-login {
  width: 100%; padding: 12px; border-radius: 8px;
  background: #000; color: #fff;
  font-size: 14px; font-weight: 700; font-family: 'Montserrat', sans-serif;
  letter-spacing: .02em;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-login:hover { background: #1a1a1a; box-shadow: var(--shadow-md); }
.btn-google {
  width: 100%; padding: 12px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid var(--gray-200); border-radius: 8px;
  background: #fff; color: var(--gray-700);
  font-size: 14px; font-weight: 500; font-family: 'Montserrat', sans-serif;
  transition: background var(--transition); box-shadow: var(--shadow-sm);
}
.btn-google:hover { background: var(--gray-50); }
.auth-switch { text-align: center; font-size: 14px; color: var(--gray-500); margin-top: 8px; }
.auth-switch button {
  font-weight: 700; color: var(--gray-900);
  transition: color var(--transition);
}
.auth-switch button:hover { color: var(--purple); }
.forgot-pw {
  display: flex; justify-content: flex-end;
}
.forgot-pw button {
  font-size: 14px; color: var(--gray-600); font-weight: 500;
  transition: color var(--transition);
}
.forgot-pw button:hover { color: var(--purple); }

/* Trustpilot badge */
.trustpilot-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px; padding: 8px 14px;
  background: rgba(255,255,255,.12); border-radius: 8px;
}
.trustpilot-stars { display: flex; gap: 3px; }
.star { width: 18px; height: 18px; background: #00b67a; display: flex; align-items: center; justify-content: center; }
.star svg { width: 12px; height: 12px; fill: #fff; }
.trustpilot-text { font-size: 12px; color: rgba(255,255,255,.9); font-weight: 600; }

/* ─── SUCCESS / EMPTY STATES ─────────────────────────────────── */
.empty-state { padding: 32px; text-align: center; color: var(--gray-500); font-size: 14px; }
.success-box {
  background: var(--green-50); border: 1px solid #bbf7d0;
  border-radius: 8px; padding: 16px;
  font-size: 14px; color: var(--green-700);
}

/* ─── DROPDOWN MENU ──────────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  padding: 4px 0; z-index: 200;
  min-width: 220px;
}
.dropdown-menu.show { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; font-size: 13px; font-weight: 500; color: var(--gray-700);
  transition: background var(--transition);
}
.dropdown-item:hover { background: var(--gray-50); }
.dropdown-item.danger { color: var(--red-600); }
.dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--gray-500); }
.dropdown-item.danger svg { color: var(--red-500); }
.dropdown-separator { height: 1px; background: var(--gray-100); margin: 4px 0; }

/* Profile dropdown — opens upward, full sidebar width */
.profile-dropdown-menu {
  bottom: calc(100% + 6px);
  top: auto;
  left: 0;
  right: 0;
  min-width: unset;
  width: 100%;
  padding: 0 0 4px;
  border-radius: 12px;
}
.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.avatar-lg {
  width: 40px; height: 40px;
  font-size: 16px;
  flex-shrink: 0;
}

/* Notification dropdown */
.notif-dropdown {
  width: 384px;
  max-height: 384px; overflow-y: auto;
  left: 100%; top: 0;
}
.notif-header {
  position: sticky; top: 0; background: #fff;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
}
.notif-header p { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.notif-delete-all { font-size: 12px; color: var(--red-600); font-weight: 500; }
.notif-item {
  padding: 12px 16px;
  transition: background var(--transition); cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.notif-item:hover { background: var(--gray-50); }
.notif-title { font-size: 14px; font-weight: 500; color: var(--gray-900); }
.notif-meta  { font-size: 12px; color: var(--gray-500); margin-top: 8px; }
.notif-meta p { margin-bottom: 2px; }
.notif-time  { font-size: 12px; color: var(--gray-400); margin-top: 8px; }
.notif-close {
  font-size: 12px; color: var(--gray-400); font-weight: 500;
  opacity: 0; transition: opacity var(--transition), color var(--transition);
  flex-shrink: 0;
}
.notif-item:hover .notif-close { opacity: 1; }
.notif-close:hover { color: var(--red-600); }

/* ─── CHECKBOX ───────────────────────────────────────────────── */
input[type="checkbox"] {
  width: 16px; height: 16px;
  border-radius: 4px; border: 1px solid var(--gray-300);
  accent-color: var(--purple);
  cursor: pointer; flex-shrink: 0;
}

/* ─── SELECTION BAR ──────────────────────────────────────────── */
.selection-bar {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--gray-200); border-radius: 6px;
  background: rgba(249,250,251,.7);
  font-size: 12px; color: var(--gray-500);
  margin-bottom: 12px;
}
.selection-count { font-size: 12px; color: var(--purple); font-weight: 600; }

/* ─── UTILITIES ──────────────────────────────────────────────── */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.min-w-0 { min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.p-6  { padding: 24px; }
.p-8  { padding: 32px; }
.w-full { width: 100%; }
.text-sm   { font-size: 14px; }
.text-xs   { font-size: 12px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium   { font-weight: 500; }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }
.text-purple   { color: var(--purple); }
.text-red      { color: var(--red-600); }
.text-green    { color: var(--green-700); }
.section-title { font-size: 22px; font-weight: 800; color: var(--gray-900); margin-bottom: 24px; }
.divider       { height: 1px; background: var(--gray-200); }

/* ─── ANIMATION SLIDE-IN ─────────────────────────────────────── */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-left  { animation: fadeInLeft  .7s ease both; }
.anim-right { animation: fadeInRight .7s ease both; }
.anim-up    { animation: fadeInUp    .4s ease both; }
.delay-1 { animation-delay: .3s; }
.delay-2 { animation-delay: .6s; }
.delay-3 { animation-delay: .8s; }

/* ─── SECTION PADDING ────────────────────────────────────────── */
.section-wrap { padding: 24px 32px; }
@media (max-width: 640px) { .section-wrap { padding: 16px; } }
.page-content { padding: 0 32px 32px; }
@media (max-width: 640px) { .page-content { padding: 0 16px 24px; } }

/* ─── HOW IT WORKS LINK ──────────────────────────────────────── */
.how-it-works-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gray-900); font-size: 12px; font-weight: 600;
  transition: color var(--transition);
}
.how-it-works-link:hover { color: #000; }
.how-it-works-link svg { width: 16px; height: 16px; }

/* ─── TOTALS ROW ─────────────────────────────────────────────── */
.totals-row {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 8px;
}
@media (min-width: 640px) { .totals-row { flex-direction: row; gap: 24px; } }
.totals-item { font-size: 14px; color: var(--gray-500); }
.totals-item strong { font-weight: 700; color: var(--gray-800); }

/* ─── ARCHIVE TOGGLE BTN ─────────────────────────────────────── */
.btn-archive {
  height: 36px; padding: 0 12px;
  font-size: 14px; font-family: 'Montserrat', sans-serif;
  border-radius: 6px; border: 1px solid var(--gray-300);
  color: var(--gray-600); white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-archive:hover, .btn-archive.active {
  background: var(--gray-800); color: #fff; border-color: var(--gray-800);
}

/* ═══════════════════════════════════════════════════════════════
   DETAIL SHEET — panneau latéral glissant (TransactionDetailsSheet)
   ═══════════════════════════════════════════════════════════════ */

/* Overlay sombre */
.sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 400;
  backdrop-filter: blur(1px);
  opacity: 0;
  transition: opacity .25s ease;
}
.sheet-overlay.show {
  display: block;
  opacity: 1;
}

/* Panel */
.sheet-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 860px;
  background: #fff;
  z-index: 500;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 32px rgba(0,0,0,.14);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.sheet-panel.show {
  transform: translateX(0);
}

/* Header */
.sheet-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 24px 12px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}
.sheet-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
}
.sheet-ref {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}
.sheet-close-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--gray-500);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.sheet-close-btn:hover { background: var(--gray-100); color: var(--gray-900); }

/* Action buttons row (Email/Imprimer) */
.sheet-header-actions {
  display: flex;
  gap: 8px;
  padding: 10px 24px 14px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.sheet-header-actions .btn {
  flex: 1;
  justify-content: center;
  min-width: 130px;
}

/* Scrollable body */
.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 32px;
}

/* Objet box */
.sheet-objet-box {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.sheet-objet-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.sheet-objet-value {
  font-size: 14px;
  color: var(--gray-600);
}

/* 2 colonnes */
.sheet-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (min-width: 640px) {
  .sheet-cols { grid-template-columns: 1fr 1fr; }
}
.sheet-col { display: flex; flex-direction: column; gap: 16px; }

/* Info cards */
.sheet-info-card {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 14px 16px;
}
.sheet-info-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.sheet-info-rows { display: flex; flex-direction: column; gap: 6px; }
.sheet-info-row  { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.sheet-info-label {
  font-size: 13px;
  color: var(--gray-500);
  white-space: nowrap;
  flex-shrink: 0;
}
.sheet-info-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-900);
  word-break: break-all;
}
.sheet-info-val.font-bold { font-weight: 700; }
.sheet-info-val.font-mono { font-family: 'Courier New', monospace; }

/* Payment link box */
.sheet-link-box {
  flex: 1;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--gray-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* Timeline */
.sheet-timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 10px; }
.tl-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.tl-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-400);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tl-dot.done {
  background: var(--purple);
  color: #fff;
}
.tl-dot svg { width: 14px; height: 14px; }
.tl-line {
  width: 2px;
  flex: 1;
  min-height: 24px;
  background: var(--gray-200);
  margin: 4px 0;
}
.tl-content { flex: 1; padding-bottom: 14px; }
.tl-title { font-size: 13px; font-weight: 600; color: var(--gray-900); }
.tl-desc  { font-size: 12px; color: var(--gray-600); margin-top: 1px; }
.tl-date  { font-size: 11px; color: var(--gray-400); margin-top: 2px; }

/* Actions section */
.sheet-actions-section { }
.sheet-actions-inner {
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.sheet-actions-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.sheet-action-btn {
  width: 100%;
  justify-content: center;
  font-size: 14px;
  padding: 10px 16px;
}
.sheet-encaisser-form {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 16px;
}
.sheet-status-box {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 16px;
  border-radius: 10px;
  margin-top: 16px;
}

/* utility used inside sheet */
.w-full { width: 100%; }
.flex-1 { flex: 1; }

/* ═══════════════════════════════════════════════════════════════
   MODAL OVERLAY & DIALOG — shared by cautions.php, paiements.php, locataires.php
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 500;
  opacity: 0;
  transition: opacity .25s ease;
}
.modal-overlay.show { opacity: 1; }

.modal-dialog {
  display: none;
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.97);
  width: min(520px, 94vw);
  max-height: 88vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.18), 0 8px 24px rgba(0,0,0,.1);
  z-index: 510;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.modal-dialog.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header-purple {
  background: #6C3AED;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.modal-close-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
  transition: background .15s, color .15s;
}
.modal-close-btn:hover { background: rgba(255,255,255,.15); color: #fff; }

.modal-body {
  padding: 20px 28px;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.modal-field-group { margin-bottom: 20px; }
.modal-label {
  display: block;
  font-size: 13px; font-weight: 600; color: #374151;
  margin-bottom: 8px;
}
.modal-label-sm {
  display: block;
  font-size: 12px; font-weight: 500; color: #6b7280;
  margin-bottom: 4px;
}
.modal-error { font-size: 11px; color: #dc2626; margin-top: 4px; }

.modal-tab-bar {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f3f4f6;
  border-radius: 12px;
  border: 2px solid #e0d9f7;
}
.modal-tab {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500; color: #6b7280;
  transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.modal-tab.active {
  background: #6C3AED;
  color: #fff;
  box-shadow: 0 1px 4px rgba(108,58,237,.3);
}
.modal-tab:hover:not(.active) { color: #374151; background: rgba(0,0,0,.04); }

.modal-radio {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color .15s;
}
.modal-radio.active { border-color: #6C3AED; }
.modal-radio.active::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6C3AED;
}
.modal-info-box {
  padding: 10px 12px;
  background: #eff6ff;
  border-radius: 8px;
  font-size: 12px; color: #1d4ed8;
  line-height: 1.5;
}
.modal-client-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 520;
}
.modal-client-item {
  padding: 9px 14px;
  font-size: 13px; color: #374151;
  cursor: pointer;
  transition: background .1s;
}
.modal-client-item:hover { background: #f9fafb; }
.modal-client-empty {
  padding: 10px 14px;
  font-size: 12px; color: #9ca3af;
  text-align: center;
}

/* ── Spinner animation ──────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Sheet z-index overrides per page ───────────────────────── */
#client-detail-sheet  { z-index: 410; }
#client-sheet-overlay { z-index: 405; }
#caution-detail-sheet  { z-index: 410; }
#caution-sheet-overlay { z-index: 405; }
#paiement-detail-sheet  { z-index: 410; }
#paiement-sheet-overlay { z-index: 405; }
