:root{--blue:#00a6e6;--dark:#0f1724;--muted:#6b7280;--card:#ffffff}
    *{box-sizing:border-box}
    body{font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; margin:0; background:#f4f6f8; color:var(--dark)}
    .layout{display:flex; min-height:100vh}
    /* Sidebar */
    .sidebar{width:260px;background:#062f4f;color:#fff;padding:28px 18px;display:flex;flex-direction:column;gap:24px}
    .logo{display:flex;align-items:center;gap:12px}
    .logo img{height:48px}
    .brand{font-weight:700;font-size:18px}
    nav ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}
    nav li{padding:10px 12px;border-radius:8px;cursor:pointer;display:flex;align-items:center;gap:10px}
    nav li:hover{background:rgba(255,255,255,0.06)}
    nav li.active{background:var(--blue);color:#fff}
    .module-icon{width:32px;height:32px;display:inline-grid;place-items:center;border-radius:6px;background:rgba(255,255,255,0.06)}
    .modules-title{font-size:13px;color:rgba(255,255,255,0.9);margin-top:6px}
    .sidebar .footer{margin-top:auto;font-size:13px;color:rgba(255,255,255,0.7)}

    /* Main content */
    .main{flex:1;padding:28px}
    .card{background:var(--card);padding:20px;border-radius:12px;box-shadow:0 6px 18px rgba(12,20,30,0.06)}
    header .page-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
    header h1{font-size:20px;margin:0}
    .form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
    .field{display:flex;flex-direction:column}
    label{font-size:13px;margin-bottom:6px;color:var(--muted)}
    input[type=text], input[type=email], input[type=date], input[type=tel], input, select, textarea{padding:10px;border:1px solid #e6eaef;border-radius:8px;font-size:14px}
    textarea{resize:vertical;min-height:86px}
    .full{grid-column:1/-1}
    .actions{display:flex;gap:12px;justify-content:flex-end;margin-top:12px}
    button{padding:10px 14px;border-radius:8px;border:0;cursor:pointer;font-weight:600}
    button.primary{background:var(--blue);color:#fff}
    button.ghost{background:transparent;border:1px solid #e6eaef;color:var(--dark)}
    .small-note{font-size:12px;color:var(--muted);margin-top:6px}

    /* Responsive */
    @media (max-width:900px){.sidebar{display:none}.form-grid{grid-template-columns:1fr}}

    /* Sidebar */
.sidebar {
  width: 260px;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
}
.sidebar .nav-link {
  font-size: 0.95rem;
  padding: 10px 0;
  transition: 0.3s;
}
.sidebar .nav-link:hover {
  color: #fff;
  margin-left: 5px;
}

/* Main Content */
main {
  margin-left: 260px;
}

/* Cards */
.card {
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
}

/* Table */
.table thead th {
  background: var(--bs-light-bg-subtle);
  font-weight: 600;
}
.table-hover tbody tr:hover {
  background: rgba(13, 110, 253, 0.06);
  cursor: pointer;
}
.table td, .table th {
  vertical-align: middle;
}

/* Action Icons */
.action-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bs-border-color);
  transition: 0.25s;
}
.action-btn:hover {
  transform: scale(1.1);
}

/* Search Bar */
#searchInput {
  border-radius: 10px;
}

/* Pagination */
.pagination li a {
  border-radius: 8px;
}

/* Dark Mode Adjust */
:root[data-bs-theme='dark'] .sidebar {
  background: #052c65;
}
:root[data-bs-theme='dark'] .table-hover tbody tr:hover {
  background: rgba(255,255,255,0.06);
}
td.actif span{
    background-color: #008700;
    border-radius: 5px;
    color: #fff;
    padding: 3px 6px;
    font-weight: 600;
}
td.inactif span{
    background-color: #9e0000;
    border-radius: 5px;
    color: #fff;
    padding: 3px 6px;
    font-weight: 600;
}
td.pending span{
    background-color: #fbb113;
    border-radius: 5px;
    color: #fff;
    padding: 3px 6px;
    font-weight: 600;
}
.actions .icon{
    background-color: #5b5c5c;
    padding: 3px;
    border-radius: 5px;
    cursor: pointer;
}
.member-table thead tr{
    background-color: #062f4f;
    color: #e6eaef;
}
.sidebar li a{
    text-decoration: none;
    color: #fff;
}

  .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }
  .card.stat {
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  }
  .stat-value {
    font-size: 2.4rem;
    font-weight: 700;
    margin-top: 5px;
  }
  .stat-desc {
    color: #777;
    font-size: .9rem;
  }
  .card.full { grid-column: span 2; }
  .card.half { grid-column: span 1; }
  .chart-placeholder {
    height: 240px;
    background: #eef3f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8aa0b1;
  }
  .dashboard-table { width: 100%; font-size: .9rem; }
  .dashboard-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
  }

  /* 🔥 Correction : Tableau pleine largeur + toujours en bas */
  .finance-table-section {
    width: 100% !important;
    grid-column: 1 / -1 !important; /* force la pleine largeur */
  }

  .finance-table-section table {
    width: 100%;
    border-collapse: collapse;
  }

  /* Couleurs améliorées */
  .credit-row { background: rgba(0, 200, 83, 0.12); }
  .debit-row { background: rgba(255, 82, 82, 0.12); }

  .stat.blue { background: #e3f2fd; color: #0d47a1; }
  .stat.green { background: #e8f5e9; color: #2e7d32; }
  .stat.orange { background: #fff3e0; color: #ef6c00; }
  .stat.purple { background: #f3e5f5; color: #6a1b9a; }

  .reunion-item.highlighted {
    background: linear-gradient(90deg, #e3f2fd, #fce4ec);
    border-left: 4px solid #1976d2;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
  }
.full-width{
    width: 100%;
}
ul {
  list-style: none;    /* supprime les puces */
  margin: 0;
  padding: 0;          /* supprime l'indentation par défaut */
}
small{font-size: 40%;}
a.action{
    text-decoration: none;
    background-color: #00a6e6;
    color:#fff;
    padding: 10px 14px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
}