/**
 * CEN Lorraine - Main Stylesheet
 * Design System Implementation Complète
 * Based on cen_design_system.md
 */

/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   CSS VARIABLES (Design Tokens)
   ============================================ */
:root {
  /* Primary Colors - Vert CEN */
  --primary-green: #7ab51d;
  --primary-green-dark: #5a8c12;
  --primary-green-light: #95d42f;
  --primary-green-hover: #8dc82f;
  --primary-green-bg: #e8f5e9;

  /* Secondary Colors - Bleu CEN */
  --secondary-blue: #1a3f6f;
  --secondary-blue-light: #2a5a9e;
  --secondary-blue-dark: #0f2847;
  --secondary-blue-bg: #e3f2fd;

  /* Turquoise CEN */
  --cen-teal: #00a0a0;
  --cen-teal-dark: #007777;
  --cen-teal-light: #20c5c5;

  /* Accent Colors */
  --accent-cyan: #26C6DA;
  --accent-orange: #FFB74D;
  --accent-red: #E57373;
  --accent-yellow: #FFF176;
  --accent-purple: #9575CD;
  --accent-amber: #f59e0b;

  /* Extended Color Palette (Tailwind-inspired) */
  --blue-200: #bfdbfe;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --purple-200: #e9d5ff;
  --purple-600: #9333ea;
  --green-200: #bbf7d0;
  --green-600: #16a34a;
  --amber-200: #fde68a;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --rose-200: #fecdd3;
  --rose-600: #e11d48;
  --teal-200: #99f6e4;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --indigo-200: #c7d2fe;
  --indigo-600: #4f46e5;
  --sky-200: #bae6fd;
  --sky-600: #0284c7;
  --slate-200: #e2e8f0;
  --slate-600: #475569;
  --emerald-500: #10b981;
  --red-700: #b91c1c;

  /* Neutral Colors */
  --grey-50: #FAFAFA;
  --grey-100: #F5F5F5;
  --grey-200: #EEEEEE;
  --grey-300: #E0E0E0;
  --grey-400: #BDBDBD;
  --grey-500: #9E9E9E;
  --grey-600: #757575;
  --grey-700: #616161;
  --grey-800: #424242;
  --grey-900: #212121;

  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-disabled: #94a3b8;
  --text-white: #FFFFFF;
  --text-link: #1a3f6f;

  /* Border Colors */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  /* Status Colors */
  --status-actif: #059669;
  --status-actif-light: #d1fae5;
  --status-expire: #e11d48;
  --status-expire-light: #fee2e2;
  --status-renouveler: #d97706;
  --status-renouveler-light: #fef3c7;
  --status-benevole: #7ab51d;
  --status-adherent: #1a3f6f;
  --status-info: #0891b2;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Shadow Scale */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-focus: 0 0 0 3px rgba(122, 181, 29, 0.15);
  --shadow-green: 0 8px 25px rgba(122, 181, 29, 0.25);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Typography - Inter font */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;

  /* Layout */
  --sidebar-width: 240px;
  --header-height: 72px;
  --content-max-width: 1400px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.3s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--grey-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 32px; margin-bottom: 8px; }
h2 { font-size: 24px; margin-bottom: 8px; }
h3 { font-size: 18px; margin-bottom: 8px; }
h4 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
h5 { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
h6 { font-size: 12px; font-weight: 500; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }

p {
  margin-bottom: 16px;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-green);
}

.link {
  color: var(--secondary-blue);
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}

.link:hover {
  color: var(--primary-green);
}

strong, b {
  font-weight: 600;
}

small {
  font-size: 12px;
}

code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--grey-100);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* ============================================
   LAYOUT - SIDEBAR
   ============================================ */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(180deg, var(--secondary-blue) 0%, var(--secondary-blue-dark) 100%);
  color: white;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: hidden;
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  flex-shrink: 0;
}

.sidebar-logo img {
  max-width: 180px;
  height: auto;
  margin: 0 auto 12px;
  border-radius: var(--radius-md);
}

.sidebar-logo h2 {
  font-size: 13px;
  font-weight: 400;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.3px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

.nav-section {
  padding: 0 12px;
  margin-bottom: 8px;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  padding: 8px 12px;
  margin-bottom: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: 14px;
  border-radius: var(--radius-md);
  margin: 2px 12px;
  gap: 12px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-item.active {
  background: white;
  color: var(--secondary-blue);
  font-weight: 500;
  box-shadow: var(--shadow-md);
}

.nav-item i,
.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-item span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item .nav-badge {
  background: var(--accent-red);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
  flex-shrink: 0;
}

/* ============================================
   LAYOUT - TOP HEADER
   ============================================ */
.top-header {
  height: var(--header-height);
  background: white;
  border-bottom: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  margin-left: var(--sidebar-width);
  position: sticky;
  top: 0;
  z-index: 900;
}

.search-container {
  position: relative;
  width: 400px;
  max-width: 100%;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 48px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-full);
  font-size: 14px;
  background: var(--grey-50);
  transition: all var(--transition-fast);
  font-family: inherit;
}

.search-input:hover {
  border-color: var(--grey-400);
}

.search-input:focus {
  outline: none;
  background: white;
  border-color: var(--primary-green);
  box-shadow: var(--shadow-focus);
}

.search-input::placeholder {
  color: var(--text-disabled);
}

.search-container i,
.search-container svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ============================================
   LAYOUT - MAIN CONTENT
   ============================================ */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: calc(100vh - var(--header-height));
  background: var(--grey-100);
  padding: var(--space-8);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.page-header-content {
  flex: 1;
  min-width: 200px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title i,
.page-title svg {
  width: 28px;
  height: 28px;
  color: var(--primary-green);
}

.page-description,
.page-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 4px 0 0 0;
}

.page-actions,
.page-header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn i,
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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

.btn-sm i,
.btn-sm svg {
  width: 16px;
  height: 16px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 15px;
}

.btn-primary {
  background: var(--primary-green);
  color: white;
  border-radius: var(--radius-lg);
}

.btn-primary:hover {
  background: var(--primary-green-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
  color: white;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-secondary {
  background: white;
  color: var(--secondary-blue);
  border: 1px solid var(--grey-300);
}

.btn-secondary:hover {
  background: var(--grey-50);
  border-color: var(--secondary-blue);
  color: var(--secondary-blue);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--grey-300);
}

.btn-outline:hover {
  background: var(--grey-100);
  border-color: var(--grey-400);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--status-expire);
  color: white;
}

.btn-danger:hover {
  background: #E53935;
  color: white;
}

.btn-outline-danger {
  background: transparent;
  color: var(--status-expire);
  border: 1px solid var(--status-expire);
}

.btn-outline-danger:hover {
  background: var(--status-expire);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}

.btn-ghost:hover {
  background: var(--grey-100);
  color: var(--text-primary);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-block {
  width: 100%;
}

/* Icon Button */
.icon-button {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.icon-button:hover {
  background: var(--grey-100);
  color: var(--text-primary);
}

.icon-button.small {
  width: 32px;
  height: 32px;
}

.icon-button i,
.icon-button svg {
  width: 20px;
  height: 20px;
}

.icon-button .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--status-expire);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  line-height: 1.2;
}

/* ============================================
   USER PROFILE & DROPDOWN
   ============================================ */
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.user-profile:hover {
  background: var(--grey-100);
}

.avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-green);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.avatar.small {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.avatar.large {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

.avatar.blue { background: var(--secondary-blue); }
.avatar.orange { background: var(--accent-orange); }
.avatar.cyan { background: var(--accent-cyan); }
.avatar.purple { background: var(--accent-purple); }

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

.user-role {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ============================================
   CARDS & PANELS
   ============================================ */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
  overflow: hidden;
  transition: box-shadow var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--grey-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 24px;
}

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--grey-200);
  background: var(--grey-50);
}

.card-footer .pagination {
  margin-top: 0;
  padding: 0;
  background: transparent;
}

/* Pagination link style */
.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--grey-300);
  background: white;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.pagination-link:hover {
  background: var(--grey-100);
  border-color: var(--secondary-blue);
  color: var(--secondary-blue);
}

.pagination-link i,
.pagination-link svg {
  width: 16px;
  height: 16px;
}

/* Statistics Cards */
.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
  transition: all var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.stat-card-link:hover {
  border-color: var(--primary-green);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i,
.stat-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.stat-trend i,
.stat-trend svg {
  width: 14px;
  height: 14px;
}

.stat-trend.positive {
  color: #2E7D32;
  background: rgba(102, 187, 106, 0.12);
}

.stat-trend.negative {
  color: #C62828;
  background: rgba(239, 83, 80, 0.12);
}

.stat-trend.neutral {
  color: var(--text-secondary);
  background: var(--grey-100);
}

/* Stat Icon Gradients */
.stat-icon-gradient-blue {
  background: linear-gradient(135deg, var(--secondary-blue), var(--secondary-blue-light));
  box-shadow: 0 4px 12px rgba(26, 63, 111, 0.25);
}

.stat-icon-gradient-green {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
  box-shadow: 0 4px 12px rgba(122, 181, 29, 0.25);
}

.stat-icon-gradient-teal {
  background: linear-gradient(135deg, var(--cen-teal), var(--cen-teal-light));
  box-shadow: 0 4px 12px rgba(0, 160, 160, 0.25);
}

.stat-icon-gradient-amber {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.stat-icon-gradient-rose {
  background: linear-gradient(135deg, #e11d48, #fb7185);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.stat-icon-gradient-purple {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* ============================================
   BADGES & STATUS
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.badge i,
.badge svg {
  width: 12px;
  height: 12px;
}

.badge-success {
  background: rgba(102, 187, 106, 0.15);
  color: #2E7D32;
}

.badge-warning {
  background: rgba(255, 167, 38, 0.15);
  color: #E65100;
}

.badge-danger {
  background: rgba(239, 83, 80, 0.15);
  color: #C62828;
}

.badge-info {
  background: rgba(139, 195, 74, 0.15);
  color: #558B2F;
}

.badge-secondary {
  background: var(--secondary-blue);
  color: white;
}

.badge-default {
  background: var(--grey-100);
  color: var(--text-muted);
}

.badge-primary {
  background: rgba(26, 63, 111, 0.12);
  color: var(--secondary-blue);
}

/* Modern colored badges */
.badge-rose {
  background: #ffe4e6;
  color: #be123c;
}

.badge-amber {
  background: #fef3c7;
  color: #b45309;
}

.badge-emerald {
  background: #d1fae5;
  color: #047857;
}

.badge-teal {
  background: #ccfbf1;
  color: #0f766e;
}

.badge-sky {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-auto {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px dashed #22c55e;
  position: relative;
}

.badge-violet {
  background: #ede9fe;
  color: #6d28d9;
}

/* Status dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.status-dot.active { background: var(--status-actif); }
.status-dot.expired { background: var(--status-expire); }
.status-dot.warning { background: var(--status-renouveler); }
.status-dot.info { background: var(--status-info); }

/* ============================================
   DATA TABLE
   ============================================ */
.table-container {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--grey-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.table-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.table-actions {
  display: flex;
  gap: 8px;
}

/* Table responsive wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table,
.table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead,
.table thead {
  background: var(--grey-50);
}

.data-table th,
.table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--grey-200);
  white-space: nowrap;
}

.data-table th.sortable,
.table th.sortable {
  cursor: pointer;
  user-select: none;
}

.data-table th.sortable:hover,
.table th.sortable:hover {
  color: var(--text-primary);
}

.data-table td,
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--grey-100);
  font-size: 14px;
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tbody tr,
.table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover,
.table tbody tr:hover {
  background: var(--grey-50);
}

.data-table tbody tr:last-child td,
.table tbody tr:last-child td {
  border-bottom: none;
}

.data-table .checkbox-cell {
  width: 48px;
  text-align: center;
}

.contact-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-cell .contact-name {
  font-weight: 500;
  color: var(--text-primary);
}

.contact-cell .contact-email {
  font-size: 13px;
  color: var(--text-secondary);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-info-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.contact-info-row i,
.contact-info-row svg {
  width: 14px;
  height: 14px;
  color: var(--grey-400);
}

.action-buttons {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

/* Empty table state */
.table-empty {
  padding: 48px 24px;
  text-align: center;
}

.table-empty i,
.table-empty svg {
  width: 48px;
  height: 48px;
  color: var(--grey-300);
  margin-bottom: 16px;
}

.table-empty-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.table-empty-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-label.required::after {
  content: " *";
  color: var(--status-expire);
}

.form-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0 16px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-family: inherit;
  transition: all var(--transition-fast);
  background: white;
  color: var(--text-primary);
}

.form-input,
.form-select {
  height: 48px;
}

.form-textarea {
  padding: 12px 16px;
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--grey-400);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: var(--shadow-focus);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-disabled);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--status-expire);
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 83, 80, 0.15);
}

.form-error {
  font-size: 12px;
  color: var(--status-expire);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Input with icon */
.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper .form-input {
  padding-left: 44px;
}

.input-icon-wrapper i,
.input-icon-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  pointer-events: none;
}

/* Checkbox */
.checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--grey-400);
  border-radius: 4px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.checkbox:hover {
  border-color: var(--primary-green);
}

.checkbox:checked {
  background: var(--primary-green);
  border-color: var(--primary-green);
}

.checkbox:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox:focus-visible {
  box-shadow: var(--shadow-focus);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
}

/* Radio */
.radio {
  width: 18px;
  height: 18px;
  border: 2px solid var(--grey-400);
  border-radius: 50%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.radio:hover {
  border-color: var(--primary-green);
}

.radio:checked {
  border-color: var(--primary-green);
}

.radio:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--primary-green);
  border-radius: 50%;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
}

/* Switch/Toggle */
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--grey-300);
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.switch::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.switch.active {
  background: var(--primary-green);
}

.switch.active::after {
  transform: translateX(20px);
}

/* ============================================
   FILTERS BAR
   ============================================ */
.filters-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
  align-items: center;
}

.filters-bar .search-box {
  flex: 1;
  min-width: 200px;
}

.filters-bar .search-box input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 44px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-lg);
  font-size: 14px;
  background: var(--grey-50);
}

.filters-bar .search-box {
  position: relative;
}

.filters-bar .search-box i,
.filters-bar .search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  pointer-events: none;
}

.filters-bar .form-select {
  height: 48px;
  min-width: 150px;
  padding: 0 16px;
}

/* Filter groups */
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group.search-group {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.filter-group.search-group i,
.filter-group.search-group svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 1;
}

.filter-group.search-group .form-input {
  padding-left: 44px;
  width: 100%;
}

/* Filter tags */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--primary-green-light);
  color: var(--primary-green-dark);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
}

.filter-tag button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.filter-tag button:hover {
  opacity: 1;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding: 16px 20px;
  background: white;
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
  gap: 16px;
}

.pagination-info {
  font-size: 14px;
  color: var(--text-secondary);
}

.pagination-buttons {
  display: flex;
  gap: 6px;
}

.pagination-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--grey-300);
  background: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--grey-100);
  border-color: var(--secondary-blue);
  color: var(--secondary-blue);
}

.pagination-btn.active {
  background: var(--secondary-blue);
  color: white;
  border-color: var(--secondary-blue);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn i,
.pagination-btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ============================================
   DASHBOARD V2 - Nouvelle organisation
   ============================================ */

/* Stats Cards - Style épuré avec icônes pastel */
.stats-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card-new {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--grey-200);
  transition: all var(--transition-fast);
  position: relative;
}

.stat-card-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grey-200);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: background var(--transition-fast);
}

.stat-card-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--grey-300);
}

.stat-card-new:hover::before {
  background: var(--primary-green);
}

.stat-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.stat-icon-pastel {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-pastel i {
  width: 24px;
  height: 24px;
}

.stat-icon-pastel.blue {
  background: rgba(26, 63, 111, 0.1);
  color: var(--secondary-blue);
}

.stat-icon-pastel.green {
  background: rgba(122, 181, 29, 0.1);
  color: var(--primary-green);
}

.stat-icon-pastel.rose {
  background: rgba(225, 29, 72, 0.1);
  color: #e11d48;
}

.stat-icon-pastel.amber {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.stat-icon-pastel.purple {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

.stat-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.stat-badge.positive {
  background: rgba(122, 181, 29, 0.1);
  color: var(--primary-green);
}

.stat-badge.warning {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.stat-value-big {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label-new {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.stat-sublabel {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Accès Rapides dans une carte */
.quick-access-card-container {
  margin-bottom: 24px;
}

.quick-access-card-container .card-body {
  padding: 20px 24px;
}

.quick-access-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.quick-access-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-fast);
  min-width: 110px;
  flex: 1;
  max-width: 140px;
  background: var(--grey-50);
  border: 1px solid transparent;
}

.quick-access-item:hover {
  background: var(--white);
  border-color: var(--grey-200);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.quick-access-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: all var(--transition-fast);
}

.quick-access-icon-circle i {
  width: 22px;
  height: 22px;
}

/* Couleurs pastel pour les icônes */
.quick-access-icon-circle.blue {
  background: rgba(26, 63, 111, 0.08);
  color: var(--secondary-blue);
  border-color: rgba(26, 63, 111, 0.15);
}

.quick-access-icon-circle.slate {
  background: rgba(71, 85, 105, 0.08);
  color: #475569;
  border-color: rgba(71, 85, 105, 0.15);
}

.quick-access-icon-circle.teal {
  background: rgba(0, 160, 160, 0.08);
  color: var(--cen-teal);
  border-color: rgba(0, 160, 160, 0.15);
}

.quick-access-icon-circle.green {
  background: rgba(122, 181, 29, 0.08);
  color: var(--primary-green);
  border-color: rgba(122, 181, 29, 0.15);
}

.quick-access-icon-circle.rose {
  background: rgba(225, 29, 72, 0.08);
  color: #e11d48;
  border-color: rgba(225, 29, 72, 0.15);
}

.quick-access-icon-circle.purple {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.15);
}

.quick-access-icon-circle.indigo {
  background: rgba(79, 70, 229, 0.08);
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.15);
}

.quick-access-icon-circle.sky {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.15);
}

.quick-access-item:hover .quick-access-icon-circle {
  transform: scale(1.05);
}

.quick-access-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
}

.quick-access-num {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Layout Dashboard 2 colonnes */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card title avec icône */
.card-title-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.card-title-icon.warning {
  color: #f59e0b;
}

.card-header .link i {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

/* Empty State */
.empty-state {
  padding: 40px 20px;
  text-align: center;
}

.empty-state.small {
  padding: 30px 20px;
}

.empty-state i {
  width: 48px;
  height: 48px;
  color: var(--grey-300);
  margin-bottom: 12px;
}

.empty-state i.text-success {
  color: var(--status-actif);
}

.empty-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.empty-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* Alerts Compact (sidebar) */
.alerts-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert-compact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  background: var(--grey-50);
}

.alert-compact-item:hover {
  background: var(--grey-100);
}

.alert-compact-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.alert-compact-dot.alert-warning {
  background: #f59e0b;
}

.alert-compact-dot.alert-info {
  background: var(--secondary-blue);
}

.alert-compact-dot.alert-danger {
  background: #dc2626;
}

.alert-compact-message {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.3;
}

.alert-compact-arrow {
  width: 14px;
  height: 14px;
  color: var(--grey-400);
  flex-shrink: 0;
}

/* Activités Sidebar */
.activites-sidebar-list {
  display: flex;
  flex-direction: column;
}

.activite-sidebar-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--grey-100);
  transition: background var(--transition-fast);
}

.activite-sidebar-item:last-child {
  border-bottom: none;
}

.activite-sidebar-item:hover {
  background: var(--grey-50);
}

.activite-date-mini {
  width: 46px;
  height: 46px;
  background: var(--primary-green-bg);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activite-date-mini .day {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-green-dark);
  line-height: 1;
}

.activite-date-mini .month {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary-green);
  text-transform: uppercase;
}

.activite-sidebar-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activite-type-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  width: fit-content;
}

.activite-sidebar-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

.activite-sidebar-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.activite-sidebar-meta i {
  width: 12px;
  height: 12px;
}

.list-container.compact .list-item {
  padding: 12px 16px;
}

/* Card CTA (Export) */
.card-cta {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
  border-radius: var(--radius-lg);
  padding: 24px;
  color: white;
}

.card-cta-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-cta-icon i {
  width: 24px;
  height: 24px;
}

.card-cta-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.card-cta-text {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 16px;
  line-height: 1.4;
}

.btn-white {
  background: white;
  color: var(--primary-green);
  border: none;
  font-weight: 600;
  width: 100%;
  justify-content: center;
}

.btn-white:hover {
  background: var(--grey-100);
  color: var(--primary-green-dark);
}

/* Resource links */
.resource-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resource-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--grey-50);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.resource-link:hover {
  background: var(--grey-100);
  color: var(--primary-green);
}

.resource-link i {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

/* Gradient pour Sites CEN */
.stat-icon-gradient-emerald {
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-500));
  color: var(--white);
}

/* Documentation links */
.doc-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--grey-50);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.doc-link:hover {
  background: var(--grey-100);
  color: var(--primary);
}

.doc-link i {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

/* Shortcuts list */
.shortcuts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--grey-50);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.shortcut-item:hover {
  background: var(--primary);
  color: var(--white);
}

.shortcut-item i {
  width: 18px;
  height: 18px;
  color: var(--primary);
  transition: color var(--transition-fast);
}

.shortcut-item:hover i {
  color: var(--white);
}

/* ============================================
   LIST COMPONENTS
   ============================================ */
.list-container {
  max-height: 400px;
  overflow-y: auto;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--grey-100);
  transition: background var(--transition-fast);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background: var(--grey-50);
}

.list-item.clickable {
  cursor: pointer;
}

.list-content {
  flex: 1;
  min-width: 0;
}

.list-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-meta {
  font-size: 12px;
  color: var(--text-disabled);
  margin-top: 4px;
}

/* ============================================
   TABS
   ============================================ */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--grey-200);
  margin-bottom: 24px;
  gap: 4px;
}

.tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--primary-green);
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-green);
  border-radius: 2px 2px 0 0;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 20px;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-normal);
}

.modal-overlay.show .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--grey-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Modal header avec icône (layout différent) */
.modal-header:has(.modal-header-icon) {
  justify-content: flex-start;
}
.modal-header:has(.modal-header-icon) .modal-close {
  margin-left: auto;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 2px 0 0;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--grey-100);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--grey-200);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal.large {
  max-width: 700px;
}

.modal.small {
  max-width: 400px;
}

/* ============================================
   ALERTS & TOASTS
   ============================================ */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.alert i,
.alert svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.alert-success {
  background: rgba(102, 187, 106, 0.12);
  color: #2E7D32;
  border: 1px solid rgba(102, 187, 106, 0.3);
}

.alert-error {
  background: rgba(239, 83, 80, 0.12);
  color: #C62828;
  border: 1px solid rgba(239, 83, 80, 0.3);
}

.alert-warning {
  background: rgba(255, 167, 38, 0.12);
  color: #E65100;
  border: 1px solid rgba(255, 167, 38, 0.3);
}

.alert-info {
  background: rgba(41, 182, 246, 0.12);
  color: #0277BD;
  border: 1px solid rgba(41, 182, 246, 0.3);
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--grey-900);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 400px;
  transform: translateX(120%);
  transition: transform var(--transition-normal);
}

.toast.show {
  transform: translateX(0);
}

.toast i,
.toast svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast.success { background: #2E7D32; }
.toast.error { background: #C62828; }
.toast.warning { background: #E65100; }

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--grey-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-icon i,
.empty-state-icon svg {
  width: 40px;
  height: 40px;
  color: var(--grey-400);
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--grey-200);
  border-top-color: var(--primary-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-spinner.small {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.loading-spinner.large {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(90deg, var(--grey-200) 25%, var(--grey-100) 50%, var(--grey-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 20px;
  width: 60%;
  margin-bottom: 12px;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* ============================================
   CHARTS
   ============================================ */
.chart-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.chart-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.chart-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* ============================================
   DROPDOWN MENU
   ============================================ */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 8px 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-fast);
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background var(--transition-fast);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background: var(--grey-100);
}

.dropdown-item i,
.dropdown-item svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.dropdown-item.danger {
  color: var(--status-expire);
}

.dropdown-item.danger i,
.dropdown-item.danger svg {
  color: var(--status-expire);
}

.dropdown-divider {
  height: 1px;
  background: var(--grey-200);
  margin: 8px 0;
}

/* ============================================
   TOOLTIPS
   ============================================ */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--grey-900);
  color: white;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 1000;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-8px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in {
  animation: slideIn 0.4s ease-out forwards;
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.scale-in {
  animation: scaleIn 0.2s ease-out forwards;
}

/* Staggered animations */
.fade-in-stagger > * {
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
}

.fade-in-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.fade-in-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.fade-in-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.fade-in-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.fade-in-stagger > *:nth-child(5) { animation-delay: 0.25s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Mobile (max-width: 575px) */
@media (max-width: 575px) {
  :root {
    --sidebar-width: 0px;
  }

  .sidebar {
    transform: translateX(-100%);
    width: 260px;
    transition: transform var(--transition-slow);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content,
  .top-header {
    margin-left: 0;
  }

  .main-content {
    padding: var(--space-4);
  }

  .top-header {
    padding: 0 var(--space-4);
  }

  .search-container {
    flex: 1;
    width: auto;
  }

  .user-info {
    display: none;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-title {
    font-size: 24px;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
  }

  .stat-icon {
    margin: 0 auto;
  }

  .filters-bar {
    flex-direction: column;
    padding: 12px;
  }

  .filters-bar .search-box {
    width: 100%;
  }

  .filters-bar .form-select {
    width: 100%;
  }

  .dashboard-grid,
  .bottom-grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Dashboard V2 responsive */
  .stats-grid-new {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card-new {
    padding: 14px 16px;
  }

  .stat-card-new::before {
    height: 2px;
  }

  .stat-icon-pastel {
    width: 38px;
    height: 38px;
  }

  .stat-icon-pastel i {
    width: 18px;
    height: 18px;
  }

  .stat-value-big {
    font-size: 24px;
  }

  .stat-label-new {
    font-size: 12px;
  }

  .stat-sublabel {
    display: none;
  }

  .stat-badge {
    font-size: 9px;
    padding: 2px 6px;
  }

  .quick-access-card-container .card-body {
    padding: 12px;
  }

  .quick-access-row {
    gap: 4px;
  }

  .quick-access-item {
    padding: 12px 8px;
    min-width: 60px;
    max-width: none;
    flex: 1 1 calc(25% - 4px);
  }

  .quick-access-icon-circle {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
  }

  .quick-access-icon-circle i {
    width: 18px;
    height: 18px;
  }

  .quick-access-name {
    font-size: 10px;
  }

  .quick-access-num {
    display: none;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    order: -1;
  }

  .card-cta {
    padding: 18px;
  }

  .activite-sidebar-item {
    padding: 12px 14px;
  }

  .activite-date-mini {
    width: 40px;
    height: 40px;
  }

  .activite-date-mini .day {
    font-size: 16px;
  }

  .data-table {
    font-size: 13px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }

  .modal {
    margin: 10px;
    max-height: calc(100vh - 20px);
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    min-width: auto;
    max-width: none;
  }
}

/* Tablet (576px - 991px) */
@media (min-width: 576px) and (max-width: 991px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large Desktop (min-width: 1400px) */
@media (min-width: 1400px) {
  .main-content {
    max-width: calc(var(--content-max-width) + var(--sidebar-width));
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
*:focus-visible {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--secondary-blue);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

/* Flex */
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

/* Gap */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Text */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-disabled { color: var(--text-disabled) !important; }
.text-success { color: var(--status-actif) !important; }
.text-warning { color: var(--status-renouveler) !important; }
.text-danger { color: var(--status-expire) !important; }
.text-info { color: var(--status-info) !important; }
.text-white { color: white !important; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-sm { font-size: 12px; }
.text-base { font-size: 14px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Margin */
.m-0 { margin: 0 !important; }
.m-1 { margin: var(--space-1) !important; }
.m-2 { margin: var(--space-2) !important; }
.m-4 { margin: var(--space-4) !important; }
.m-6 { margin: var(--space-6) !important; }
.m-8 { margin: var(--space-8) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-8 { margin-top: var(--space-8) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }

.ml-0 { margin-left: 0 !important; }
.ml-2 { margin-left: var(--space-2) !important; }
.ml-4 { margin-left: var(--space-4) !important; }
.ml-auto { margin-left: auto !important; }

.mr-0 { margin-right: 0 !important; }
.mr-2 { margin-right: var(--space-2) !important; }
.mr-4 { margin-right: var(--space-4) !important; }
.mr-auto { margin-right: auto !important; }

.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Padding */
.p-0 { padding: 0 !important; }
.p-1 { padding: var(--space-1) !important; }
.p-2 { padding: var(--space-2) !important; }
.p-3 { padding: var(--space-3) !important; }
.p-4 { padding: var(--space-4) !important; }
.p-6 { padding: var(--space-6) !important; }
.p-8 { padding: var(--space-8) !important; }

.pt-0 { padding-top: 0 !important; }
.pt-4 { padding-top: var(--space-4) !important; }
.pt-6 { padding-top: var(--space-6) !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-4 { padding-bottom: var(--space-4) !important; }
.pb-6 { padding-bottom: var(--space-6) !important; }

.px-4 { padding-left: var(--space-4) !important; padding-right: var(--space-4) !important; }
.px-6 { padding-left: var(--space-6) !important; padding-right: var(--space-6) !important; }

.py-4 { padding-top: var(--space-4) !important; padding-bottom: var(--space-4) !important; }
.py-6 { padding-top: var(--space-6) !important; padding-bottom: var(--space-6) !important; }

/* Width & Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Background */
.bg-white { background-color: white !important; }
.bg-grey-50 { background-color: var(--grey-50) !important; }
.bg-grey-100 { background-color: var(--grey-100) !important; }
.bg-primary { background-color: var(--primary-green) !important; }
.bg-secondary { background-color: var(--secondary-blue) !important; }

/* Border */
.border { border: 1px solid var(--grey-300); }
.border-t { border-top: 1px solid var(--grey-200); }
.border-b { border-bottom: 1px solid var(--grey-200); }
.border-none { border: none !important; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow */
.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Visibility */
.visible { visibility: visible; }
.invisible { visibility: hidden; }
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

/* Groupes & Membres */
.groupes-list,
.membres-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.groupe-item,
.membre-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.groupe-item:hover,
.membre-item:hover {
  background: var(--gray-100);
}

.groupe-item.inactive {
  opacity: 0.6;
}

.groupe-icon,
.membre-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.groupe-icon svg {
  width: 20px;
  height: 20px;
}

.groupe-content,
.membre-content {
  flex: 1;
  min-width: 0;
}

.groupe-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.groupe-name,
.membre-name {
  font-weight: 500;
  color: var(--gray-900);
}

.membre-name {
  text-decoration: none;
}

.membre-name:hover {
  text-decoration: underline;
  color: var(--primary-600);
}

.groupe-description {
  font-size: 13px;
  margin-top: 4px;
}

.groupe-membres {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.4;
}

.groupe-membres svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.membre-info {
  display: flex;
  gap: 16px;
  font-size: 13px;
  margin-top: 4px;
}

.membre-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.membre-info svg {
  width: 14px;
  height: 14px;
}

.groupe-actions {
  display: flex;
  gap: 4px;
}

/* Input with icon */
.input-with-icon {
  position: relative;
}

.input-with-icon > svg,
.input-with-icon > i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--gray-400);
  pointer-events: none;
}

.input-with-icon > .form-input {
  padding-left: 38px;
}

/* Search autocomplete */
.search-autocomplete {
  position: relative;
}

.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.autocomplete-results.show {
  display: block;
}

.autocomplete-item {
  padding: 10px 12px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.autocomplete-item:hover {
  background: var(--gray-50);
}

.autocomplete-item.disabled {
  cursor: default;
  color: var(--gray-500);
}

.autocomplete-item.disabled:hover {
  background: transparent;
}

.autocomplete-item-name {
  font-weight: 500;
  color: var(--gray-900);
}

.autocomplete-item-email {
  font-size: 13px;
  color: var(--gray-500);
}

/* Loading state small */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  color: var(--gray-500);
}

.loading-state .spin {
  animation: spin 1s linear infinite;
}

/* Empty state small */
.empty-state-small {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--gray-400);
  text-align: center;
}

.empty-state-small svg {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}

.empty-state-small p {
  margin: 0;
  font-size: 14px;
}

/* Print */
@media print {
  .no-print {
    display: none !important;
  }

  .sidebar,
  .top-header {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
    padding: 0 !important;
  }
}
