/* ==========================================================================
   CHARTE GRAPHIQUE MONOCHROME (NOIR & BLANC) — NOVAPARTS
   ========================================================================== */

/* 1. COMPORTEMENT PAR DÉFAUT : MODE CLAIR (OBLIGATOIRE) */
:root {
  /* Nuances de Blanc, Gris et Noir (Système Zinc/Slate) - MODE CLAIR */
  --slate-950: #09090b; /* Noir profond */
  --slate-900: #18181b; /* Noir de panneau / Topbar / Textes principaux */
  --slate-800: #27272a; /* Anthracite */
  --slate-700: #3f3f46; /* Gris foncé interactif */
  --slate-600: #52525b; /* Gris de texte secondaire */
  --slate-400: #a1a1aa; /* Gris moyen */
  --slate-200: #e4e4e7; /* Gris clair de bordure */
  --slate-100: #f4f4f5; /* Blanc cassé de fond de carte */
  --slate-50: #fafafa; /* Blanc pur d'arrière-plan site */

  /* Couleur d'action principale : Pure Monochrome */
  --action-pure: #000000;
  --action-hover: #27272a;
  --accent-glow: rgba(0, 0, 0, 0.08);

  /* Alertes métiers conservées (Logistique & Retours) */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;

  /* Variables dédiées Timeline (Mode Clair) */
  --tl-bg-line: #e4e4e7; /* --slate-200 */
  --tl-active-line: #18181b; /* --slate-900 */
  --tl-circle-bg: #f4f4f5; /* --slate-100 */
  --tl-circle-border: #e4e4e7; /* --slate-200 */
  --tl-circle-text: #a1a1aa; /* --slate-400 */
  --tl-text-muted: #52525b; /* --slate-600 */
  --tl-success-bg: #18181b; /* --slate-900 */
  --tl-success-text: #ffffff;
  --tl-text-active: #18181b; /* --slate-900 */
}

/* 2. S'ACTIVE UNIQUEMENT SI LE THÈME CLAIR EST EXPLICITE */
[data-bs-theme="light"] {
  --slate-950: #09090b;
  --slate-900: #18181b;
  --slate-800: #27272a;
  --slate-700: #3f3f46;
  --slate-600: #52525b;
  --slate-400: #a1a1aa;
  --slate-200: #e4e4e7;
  --slate-100: #f4f4f5;
  --slate-50: #fafafa;
  --action-pure: #000000;
  --action-hover: #27272a;
  --accent-glow: rgba(0, 0, 0, 0.08);
  --tl-bg-line: #e4e4e7;
  --tl-active-line: #18181b;
  --tl-circle-bg: #f4f4f5;
  --tl-circle-border: #e4e4e7;
  --tl-circle-text: #a1a1aa;
  --tl-text-muted: #52525b;
  --tl-success-bg: #18181b;
  --tl-success-text: #ffffff;
  --tl-text-active: #18181b;
}

/* 3. VARIATION : S'ACTIVE UNIQUEMENT EN MODE SOMBRE EXPLICITE VIA BOOTSTRAP */
[data-bs-theme="dark"] {
  --slate-950: #fafafa; /* Inversion pour les textes */
  --slate-900: #f4f4f5;
  --slate-700: #a1a1aa;
  --slate-600: #d4d4d8;
  --slate-400: #71717a;
  --slate-200: #27272a; /* Bordures de nuit */
  --slate-100: #141416; /* Fond de carte nuit */
  --slate-50: #09090b; /* Fond de nuit profond site */

  --action-pure: #ffffff; /* Les boutons principaux deviennent blancs */
  --action-hover: #e4e4e7;
  --accent-glow: rgba(255, 255, 255, 0.15);

  /* Variables dédiées Timeline (Mode Sombre) */
  --tl-bg-line: #27272a;
  --tl-active-line: #f4f4f5;
  --tl-circle-bg: #141416;
  --tl-circle-border: #27272a;
  --tl-circle-text: #71717a;
  --tl-text-muted: #a1a1aa;
  --tl-success-bg: #f4f4f5;
  --tl-success-text: #09090b;
  --tl-text-active: #fafafa;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--slate-50);
  color: var(--slate-900);
  margin: 0;
  min-height: 100vh;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* ==========================================================================
   ── TOPBAR & NAVIGATION ──
   ========================================================================== */
.topbar {
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
  padding: 0 2rem;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.topbar-brand .logo-light {
  display: none !important;
}
.topbar-brand .logo-dark {
  display: inline-block !important;
}

/* Quand le Mode Sombre est activé : On inverse ! */
[data-bs-theme="dark"] .topbar-brand .logo-dark {
  display: none !important;
}
[data-bs-theme="dark"] .topbar-brand .logo-light {
  display: inline-block !important;
}

.brand-mark {
  width: 34px;
  height: 34px;
  background: var(--action-pure);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--action-pure);
  text-transform: uppercase;
}

.brand-divider {
  width: 1px;
  height: 20px;
  background: var(--slate-200);
  margin: 0 16px;
}

.brand-tagline {
  font-size: 12px;
  color: var(--slate-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 6px;
  color: var(--slate-400);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.nav-link-item:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.nav-link-item.active {
  background: var(--action-pure);
  color: var(--slate-50) !important;
}

/* Menu Déroulant (Dropdown Topbar) */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.icon-sm {
  font-size: 10px;
  margin-left: 5px;
  transition: transform 0.2s;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  min-width: 180px;
  padding: 8px;
  display: none;
  z-index: 1100;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--slate-900);
  text-decoration: none;
  font-size: 13px;
  border-radius: 6px;
  transition: all 0.2s;
}

.dropdown-menu a:hover {
  background: var(--slate-50);
}
.nav-dropdown.active .dropdown-menu {
  display: block;
}
.nav-dropdown.active .icon-sm {
  transform: rotate(180deg);
}

/* Zone Profil & Cloche Droite */
.notif-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
}

.notif-btn:hover {
  background: var(--slate-100);
}
.notif-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 6px;
  height: 6px;
  background: var(--danger-color);
  border-radius: 50%;
}

.avatar-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 5px 11px 5px 5px;
  cursor: pointer;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--action-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-50);
}

/* ==========================================================================
   ── BARRE DE CONTEXTE & FIL D'ARIANE ──
   ========================================================================== */
.context-bar {
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--slate-400);
  margin: 0;
}
.breadcrumb-custom span {
  color: var(--slate-900);
  font-weight: 600;
}

/* ==========================================================================
   ── BOUTONS MONOCHROMES ──
   ========================================================================== */
.btn-ghost {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid var(--slate-200);
  border-radius: 7px;
  background: transparent;
  color: var(--slate-900);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-ghost:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
}

.btn-primary-sm {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  border: none;
  border-radius: 7px;
  background: var(--action-pure);
  color: var(--slate-50);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: opacity 0.15s;
}
.btn-primary-sm:hover {
  opacity: 0.85;
}

/* ==========================================================================
   ── MAIN LAYOUT & SIDEBAR ──
   ========================================================================== */
.main-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 110px);
}
.main-wrapper.no-sidebar {
  grid-template-columns: 1fr;
}
.main-wrapper.no-sidebar .content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.sidebar {
  background: var(--slate-100);
  border-right: 1px solid var(--slate-200);
  padding: 1.5rem 1rem;
}

.sidebar-section-label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-400);
  font-weight: 700;
  padding: 0 8px;
  margin: 0 0 8px;
}
.sidebar-section {
  margin-bottom: 1.75rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 7px;
  color: var(--slate-900);
  font-size: 13.5px;
  text-decoration: none;
  margin-bottom: 2px;
  transition: all 0.12s;
}
.sidebar-link:hover {
  background: var(--slate-50);
}
.sidebar-link.active {
  background: var(--action-pure);
  color: var(--slate-50);
  font-weight: 600;
}

.sidebar-link-inner {
  display: flex;
  align-items: center;
  gap: 9px;
}
.sidebar-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--action-pure);
  color: var(--slate-50);
}
.sidebar-badge.warn {
  background: #fef3c7;
  color: #92400e;
}

/* ==========================================================================
   ── PANELS & TABLEAUX DATA-TABLE ──
   ========================================================================== */
.content {
  padding: 2rem;
  background: var(--slate-50);
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.page-subtitle {
  font-size: 13.5px;
  color: var(--slate-400);
  margin-bottom: 2rem;
}

.panel {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--slate-200);
}
.panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-900);
}
.panel-action {
  font-size: 12.5px;
  color: var(--slate-900);
  text-decoration: underline;
  font-weight: 600;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-400);
  padding: 12px 20px;
  border-bottom: 1px solid var(--slate-200);
  font-weight: 600;
}
.data-table td {
  padding: 13px 20px;
  font-size: 13.5px;
  color: var(--slate-900);
  border-bottom: 1px solid var(--slate-200);
  vertical-align: middle;
}
.data-table tr:hover td {
  background: var(--slate-50);
}
.ref-code {
  font-family: "DM Nano", monospace;
  font-size: 12px;
  color: var(--slate-400);
}

/* --- SYSTÈME DES PASTILLES MÉTIER (LUMIÈRES) --- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-pill.open {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success-color);
}
.status-pill.open::before {
  background: var(--success-color);
}
.status-pill.closed {
  background: var(--slate-200);
  color: var(--slate-900);
}
.status-pill.closed::before {
  background: var(--slate-400);
}
.status-pill.pending {
  background: rgba(245, 158, 17, 0.12);
  color: var(--warning-color);
}
.status-pill.pending::before {
  background: var(--warning-color);
}

/* ==========================================================================
   ── CODE LOGISTIQUE : TIMELINE ULTRA-STABLE UNIFIÉE (3 ÉTAPES) ──
   ========================================================================== */
.timeline-tracker {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 30px 40px;
  margin: 0;
  background: transparent; /* Laisse le fond du panel gérer la couleur */
}

/* LA LIGNE PASSIVE DE FOND */
.timeline-tracker::before {
  content: "";
  position: absolute;
  top: 50px;
  left: 60px;
  right: 60px;
  height: 3px;
  background-color: var(--tl-bg-line) !important;
  z-index: 1;
}

/* LA LIGNE DE PROGRESSION DYNAMIQUE */
.timeline-progress {
  position: absolute;
  top: 50px;
  left: 60px;
  max-width: calc(100% - 120px);
  height: 3px;
  background-color: var(--tl-active-line) !important;
  z-index: 2;
  transition: width 0.4s ease-in-out;
}

/* ÉTAPE INDIVIDUELLE */
.timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 3;
  width: 40px;
}

/* L'ICÔNE (CERCLE NOMINAL) EN ATTENTE */
.timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--tl-circle-bg) !important;
  border: 3px solid var(--tl-circle-border) !important;
  color: var(--tl-circle-text) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

/* TEXTE EN ATTENTE */
.timeline-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--tl-text-muted) !important;
  position: absolute;
  top: 52px;
  white-space: nowrap;
}

/* ÉTATS ACTIFS & COMPLÉTIÉS */
.timeline-step.active .timeline-icon,
.timeline-step.completed .timeline-icon {
  background-color: var(--tl-success-bg) !important;
  border-color: var(--tl-success-bg) !important;
  color: var(--tl-success-text) !important;
}

.timeline-step.active .timeline-text,
.timeline-step.completed .timeline-text {
  color: var(--tl-text-active) !important;
}

/* CAS SPÉCIAL DU RELIQUAT */
.timeline-step.reliquat-warning .timeline-icon {
  background-color: #fff9db !important;
  border-color: #fcc419 !important;
  color: #f59f00 !important;
}
.timeline-step.reliquat-warning .timeline-text {
  color: #f59f00 !important;
}

/* ==========================================================================
   ── KPI GRID & CARDS ──
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 2rem;
}
.kpi-card {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 18px;
  transition: all 0.2s;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}
.kpi-label {
  font-size: 11px;
  color: var(--slate-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}
.kpi-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--slate-900);
  font-family: "DM Mono", monospace;
  line-height: 1;
}
.kpi-accent {
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--action-pure);
  margin-top: 14px;
}

/* ==========================================================================
   ── FORMULAIRES & INPUTS (CONNEXION / INSCRIPTION) ──
   ========================================================================== */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-50);
  padding: 40px 20px;
}

.login-card {
  background: var(--slate-100);
  width: 100%;
  max-width: 440px;
  padding: 45px 40px;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
}

.login-header {
  text-align: center;
  margin-bottom: 35px;
}

.login-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.login-subtitle {
  font-size: 14px;
  color: var(--slate-400);
  line-height: 1.5;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 24px;
}

.label-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-900);
}

.form-input,
.custom-input,
.custom-select {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: var(--slate-50);
  color: var(--slate-900);
  transition: all 0.15s ease-in-out;
}

.form-input:focus,
.custom-input:focus,
.custom-select:focus {
  outline: none;
  border-color: var(--action-pure);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.forgot-link {
  font-size: 12px;
  color: var(--slate-400);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.forgot-link:hover {
  color: var(--slate-900);
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--action-pure);
  color: var(--slate-50);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 10px;
}

.btn-login:hover {
  opacity: 0.9;
}

.login-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--slate-400);
}

.login-footer a {
  color: var(--slate-900);
  font-weight: 600;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* Gestion de la taille du logo */
.login-logo {
  max-width: 180px;
  height: auto;
}

/* Sécurité logo blanc forcé par attribut Bootstrap */
[data-bs-theme="dark"] .login-logo {
  content: url("assets/img/logo_white.png");
}

/* ==========================================================================
   ── RESPONSIVE COMPLEX (TABLES -> CARDS MOBILE) ──
   ========================================================================== */
@media (max-width: 992px) {
  .topbar {
    padding: 0 1rem;
  }
  .brand-divider,
  .brand-tagline,
  .primary-nav {
    display: none !important;
  }
  .topbar-right {
    gap: 8px;
  }
  .avatar-btn {
    padding: 4px;
  }
  .avatar-name {
    display: none !important;
  }

  .main-wrapper:not(.no-sidebar) {
    display: block !important;
    position: relative;
    padding: 1rem !important;
  }
  .main-wrapper.no-sidebar {
    display: flex !important;
    flex-direction: column !important;
    padding: 1rem !important;
    width: 100% !important;
  }
  .sidebar {
    position: fixed !important;
    top: 62px;
    left: -260px;
    width: 260px !important;
    height: calc(100vh - 62px) !important;
    background: #18181b !important;
    z-index: 999;
    transition: transform 0.3s ease-in-out;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
  }
  .sidebar.open {
    transform: translateX(260px);
  }
  .sidebar * {
    color: #ffffff !important;
  }
  .content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .context-bar {
    padding: 0 1rem;
    height: auto;
    min-height: 48px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .context-actions {
    width: 100%;
    justify-content: space-between;
  }
  .btn-ghost,
  .btn-primary-sm {
    flex: 1;
    justify-content: center;
    font-size: 12px;
    padding: 8px 10px;
  }
}

@media (max-width: 768px) {
  .panel {
    overflow-x: hidden !important;
    padding: 1rem !important;
  }
  .data-table {
    min-width: 0 !important;
    width: 100% !important;
    display: block !important;
  }
  .data-table thead {
    display: none !important;
  }
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block !important;
    width: 100% !important;
  }

  .data-table tbody tr {
    background: var(--slate-100);
    border: 1px solid var(--slate-200) !important;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
  }
  .data-table td {
    padding: 4px 0 !important;
    border: none !important;
    text-align: left !important;
    font-size: 14px !important;
  }
  .data-table td:nth-child(2) {
    font-size: 15px !important;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 12px;
  }

  .data-table td:nth-child(3) {
    display: inline-block !important;
    width: 50% !important;
    margin-bottom: 14px;
    vertical-align: top;
  }
  .data-table td:nth-child(4),
  .data-table td:last-child {
    display: inline-block !important;
    width: 50% !important;
    text-align: right !important;
    vertical-align: top;
  }
  .data-table td:nth-child(4)::before {
    content: "Tarif : ";
    color: var(--slate-400);
    font-size: 12px;
  }
  .data-table td:last-child {
    margin-top: 4px;
    margin-bottom: 14px;
  }
  .data-table td:last-child::before {
    content: "Délai : ";
    color: var(--slate-400);
    font-size: 12px;
  }

  .data-table td:nth-last-child(2) {
    display: block !important;
    width: 100% !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--slate-200) !important;
    clear: both;
  }
  .data-table td:nth-last-child(2) * {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    height: 42px;
    border-radius: 8px;
  }
}

/* ==========================================================================
   ── FOOTER APP ──
   ========================================================================== */
.app-footer {
  background: var(--slate-100);
  border-top: 1px solid var(--slate-200);
  padding: 16px 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--slate-400);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--slate-400);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--slate-900);
}

/* ==========================================================================
   ── EXCEPTION CHIRURGICALE POUR LES NOTES DE RELIQUATS ──
   ========================================================================== */
.data-table tr.table-light-note {
  display: table-row !important; /* Force le comportement de ligne de tableau */
  width: auto !important;
  background: transparent !important; /* Évite les doubles fonds colorés */
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.data-table tr.table-light-note td.note-content-cell {
  display: table-cell !important; /* Force le comportement de cellule fusionnée */
  width: auto !important;
  padding: 0 20px 15px 20px !important; /* Marges intérieures parfaites */
  border: none !important;
  text-align: left !important;
}

/* Ajustement spécifique pour le mode mobile (Masquage des pseudo-éléments) */
@media (max-width: 768px) {
  .data-table tr.table-light-note td.note-content-cell::before {
    content: none !important; /* Évite l'apparition des labels "Tarif" ou "Délai" induits par le responsive */
  }
  .data-table tr.table-light-note td.note-content-cell {
    padding: 0 0 16px 0 !important; /* Calibrage des espaces sur smartphone */
  }
}
