/* =========================================================
   DEMO IA — CSS PAGE-SCOPÉ (sidebar fixe + dashboard)
   - Scopé à body.page--demo
   - Variables centralisées
   - Layout : sidebar + main-section
========================================================= */

/* =============== Variables & base page ================== */

body.page--demo {
  --navbar-h: 90px;
  --sidebar-w: 320px;
  --accent: #f79500;
  --surface: #ffffff;
  --surface-soft: #f8f9fa;
  --border: #e0e3e7;
  --shadow: 0 6px 8px rgba(89, 87, 87, 0.1);
  --bg-main: #f9fafb;
  margin: 0 !important;
  padding-top: var(--navbar-h);
  background: var(--bg-main);
  font-family: Inter, sans-serif;
}

/* =============== Navbar ================================= */

body.page--demo .navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

/* =============== Section wrapper ======================== */

#demo-ia.section {
  position: relative;
  z-index: 1;
  scroll-margin-top: var(--navbar-h);
  background: transparent;
  padding: 0;
  margin: 0;
  border: 0;
}

#demo-ia .container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

#demo-ia h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 1rem;
}

#demo-ia .intro {
  font-size: 1.3rem;
  color: #333333;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Palette texte spécifique à la démo, sans toucher la navbar */
#demo-ia,
.dashboard-layout {
  --ink: #3a4552;
}


.construction-banner {
    color: #d32f2f; /* rouge intense */
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin: 1rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: blink .7s infinite alternate;
}

/* Effet léger de clignotement */
@keyframes blink {
    from { opacity: 1; }
    to { opacity: 0.5; }
}
/* Style pour "et encore en cours de développement" */
.highlight-red {
    color: #d32f2f;
    font-weight: 700;
}

/* =============== bouton Retour =========================== */

#demo-ia .container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
  position: relative;
}

.demo-back-btn {
  position: absolute;
  top: 0.35rem;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.demo-back-btn:hover {
  background: var(--surface-soft);
  border-color: var(--accent);
  color: var(--accent);
}


/* =============== Wrapper Dash =========================== */

.dashboard-container {
  width: 100%;
  max-width: calc(1800px + var(--sidebar-w));
  margin: 0 auto;
  padding: 0;
  background: transparent;
  min-height: calc(100vh - var(--navbar-h));
  overflow: visible;
}

body.page--demo .container-fluid.px-4 {
  padding-left: 0;
  padding-right: 0;
}

/* =============== Layout interne (sidebar + main) ========= */

.dashboard-layout {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  background: var(--surface);
  min-height: calc(100vh - var(--navbar-h));
  box-sizing: border-box;
  z-index: 0;
}

/* ---------------- Sidebar ---------------- */

.sidebar {
  position: sticky;
  top: var(--navbar-h);
  align-self: flex-start;
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  max-width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  height: calc(100vh - var(--navbar-h));
  box-sizing: border-box;
  background: var(--surface-soft);
  border-right: 1px solid var(--border);
  padding: 1rem 1rem 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  z-index: 10;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-logo img {
  height: 35px;
  width: auto;
}

/* Zone centrale scrollable (pour contenu additionnel) */

.sidebar-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
  padding-bottom: 1rem;
}

/* Bas de sidebar (fixe) */

.subtitle-sidebar {
  flex: 0 0 auto;
  padding: 0.75rem 0 1rem;
  text-align: center;
  font-size: 12px;
  color: var(--ink);
  position: relative;
}

.subtitle-sidebar a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.subtitle-sidebar a:hover {
  color: var(--accent);
}

/* =============== Filtres sidebar ========================= */

.sidebar .filters-sidebar {
  padding: 0.25rem;
}

.sidebar .filters-sidebar h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 1rem 0;
}

.sidebar .filters-sidebar .pill {
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  padding: 0.75rem 0.75rem 1rem;
  margin-bottom: 1rem;
  transition: background 0.2s;
}

.sidebar .filters-sidebar .pill .custom-dropdown {
  margin-top: 0.6rem;
}

.sidebar .filters-sidebar .pill #date-range {
  display: block !important;
  margin-top: 0.6rem;
}

.sidebar .filters-sidebar .pill:hover {
  background: #f7f7f7;
}

.sidebar .filters-sidebar .pill > .form-label {
  display: block;
  margin-bottom: 0.9rem !important;
}

.sidebar .filters-sidebar .form-label {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

/* =============== Dropdown (react-select / Dash) ========== */

.sidebar .filters-sidebar .custom-dropdown .Select-control {
  background: #ececec;
  border-color: transparent;
  min-height: 40px;
}

.sidebar .filters-sidebar .custom-dropdown .Select-placeholder,
.sidebar .filters-sidebar .custom-dropdown .Select-value-label {
  color: var(--ink);
}

.sidebar .filters-sidebar .custom-dropdown .VirtualizedSelectOption:hover {
  background: #ececec;
  color: var(--ink);
}

.sidebar .filters-sidebar .custom-dropdown .Select-control:focus-within {
  border-color: #aaaaaa;
  box-shadow: none;
}

/* =============== Switch "Vue ventes" ===================== */

#sales-view-switch {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.25rem 0 0.75rem;
}

#sales-view-switch .form-label {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

#sales-view-switch .dash-radio-items,
#sales-view-switch .dash-radioitems {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

#sales-view-switch .dash-radio-items label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  font: 500 13px / 1 Inter, sans-serif;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

#sales-view-switch .dash-radio-items input[type="radio"] {
  accent-color: var(--accent);
}

#sales-view-switch .dash-radio-items label:hover {
  background: var(--surface-soft);
  border-color: var(--accent);
}

/* =============== DateRangePicker (style) ================= */

.sidebar .filters-sidebar .DateRangePicker,
.sidebar .filters-sidebar .DateRangePickerInput {
  width: 100%;
}

.sidebar .filters-sidebar .DateRangePickerInput {
  background: transparent;
  border: 0;
}

.sidebar .filters-sidebar .DateInput {
  width: 50%;
}

.sidebar .filters-sidebar .DateInput_input {
  background: #ececec;
  color: var(--ink);
  font: 14px / 1 Inter, sans-serif;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 10px 12px;
}

.sidebar .filters-sidebar .DateRangePickerInput_arrow {
  color: var(--ink);
}

.sidebar .filters-sidebar .text-danger {
  font: 14px / 1.3 Inter, sans-serif;
  color: #f41800;
  padding-top: 0.25rem;
}

/* Aligner les deux champs sur une seule ligne */

body.page--demo .filters-sidebar .DateRangePickerInput {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
}

body.page--demo .filters-sidebar .DateInput {
  flex: 1 1 48%;
  width: auto !important;
}

body.page--demo .filters-sidebar .DateRangePickerInput_arrow {
  flex: 0 0 auto;
  color: var(--ink);
  margin: 0 0.3rem;
}

/* === Fix calendrier DateRangePicker coupé ================ */

body.page--demo .DateRangePicker {
  position: relative;
  z-index: 20;
}

body.page--demo .DateRangePicker_picker {
  position: absolute !important;
  z-index: 9999 !important;
}

/* =============== Colonne main (dashboard) ================ */

/* Colonne principale (à droite de la sidebar) */
.main-section {
  margin-left: 0;
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 2rem;
  padding-right: 1.5rem;
  padding-bottom: 3rem;
  padding-left: 2rem;
  background: var(--bg-main);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Large desktop : on limite juste la largeur max du contenu */
@media (min-width: 1200px) {
  .main-section {
    max-width: 1800px;
    margin-right: auto;
  }
}

/* Gutter bootstrap de secours */

.row.gx-4 {
  --bs-gutter-x: 1.5rem;
}

.row.gy-0 {
  --bs-gutter-y: 0;
}

.row.align-items-start {
  align-items: flex-start;
}

/* Col principale de contenu */

.main-content-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

#main-content {
    overflow: hidden;
}

/* ====== Layout 2/3 – 1/3 pour le contenu principal ====== */

/* Mobile d'abord : colonnes empilées */

.main-two-cols {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.main-two-cols__left,
.main-two-cols__right {
  width: 100%;
  min-width: 0;
}

/* À partir de 768px : 2 colonnes, ratio 2/3 - 1/3, sans débordement */

@media (min-width: 768px) {
  .main-two-cols {
    flex-direction: row;
  }

  .main-two-cols__left {
    flex: 2 1 0;
    max-width: none;
    min-width: 0 !important;
  }

  .main-two-cols__right {
    flex: 1 1 0;
    max-width: none;
  }
}

/* =========================================================
   Assistant IA – Carte & En-tête
========================================================= */

.chat-card {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.chat-header {
  background: linear-gradient(90deg, #0d6efd, #4dabf7);
  color: #ffffff;
  padding: 1rem 1.25rem !important;
  min-height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Ligne 1 du header : titre + statut */
.chat-header-top {
  margin-bottom: 0.1rem;
}

/* Ligne 2 du header : mention du modèle */
.chat-header-bottom {
  margin-top: 0.1rem;
}

.chat-title {
  font-weight: 600;
  font-size: 1.05rem;
}

/* Mention "Powered by OpenAI (...)" */
.chat-model-badge {
  display: block;
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

/* Statut "Connecté aux données" dans le header */
.chat-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.14);  /* léger voile blanc */
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);             /* blanc presque plein */
}

.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: #22c55e;                    /* vert "online" */
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.45);/* halo doux */
}

.chat-status-text {
  white-space: nowrap;
}



/* =========================================================
   Assistant IA – Corps & Historique
========================================================= */

.chat-body {
  padding: 0.5rem 0.75rem;
}

.chat-history {
  width: 100%;
  min-height: 220px;  /* réserve la place de la zone de chat */
  max-height: 420px;  
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.chat-history:empty {
  overflow: hidden;
  scrollbar-width: none;
  display: none !important;
}

.chat-history:empty::-webkit-scrollbar {
  display: none;
}


/* =========================================================
   Assistant IA – Lignes, Avatars, Bulles
========================================================= */

.chat-row {
  display: flex;
  margin-bottom: 0.35rem;
}

.chat-row-user {
  justify-content: flex-end;
}

.chat-row-assistant {
  justify-content: flex-start;
}

.chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
}

.chat-avatar-user {
  background-color: #e0f2fe;
  color: #0369a1;
  margin-left: 0.35rem;
  order: 2;
}

.chat-avatar-assistant {
  background-color: #e0f7fa;
  color: #006064;
  margin-right: 0.35rem;
  order: 0;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.3;
}

.chat-bubble-user {
  background: #0d6efd;
  color: #ffffff;
  border-bottom-right-radius: 2px;
  order: 1;
}

.chat-bubble-assistant {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 2px;
  order: 1;
}

/* =========================================================
   Assistant IA – Zone de saisie
========================================================= */

.chat-input-group {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-input {
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  border-radius: 12px !important;
  flex-grow: 1;
}

.chat-send-btn {
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  border-radius: 12px !important;
  white-space: nowrap;
}

.assistant-ia-block {
  margin-top: 1rem;
}

/* =========================================================
   Assistant IA – Loader (dcc.Loading type="circle")
========================================================= */

.chat-loading-wrap {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-loading .dash-spinner {
  width: 32px !important;    /* ajuste à 24/32px si tu veux plus grand */
  height: 32px !important;
}

.chat-loading .dash-spinner * {
  stroke-width: 1.5 !important;
  border-width: 2px !important;
  color: #10a37f !important;
  opacity: 0.9;
}


/* =============== Grille KPI ============================== */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1399.98px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* KPI card */

.kpi-card {
  border: 1px solid #ffffff;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.kpi-card-body {
  padding: 18px 20px;
}

.kpi-label {
  font: 600 13px / 1 Inter, sans-serif;
  color: #74808d;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.kpi-value {
  font: 800 26px / 1.1 Inter, sans-serif;
  color: var(--ink);
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 600 12px / 1 Inter, sans-serif;
  color: #8a96a3;
}

.kpi-sep {
  opacity: 0.5;
}

.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #eef1f4;
  color: #5c6b7a;
}

.kpi-delta.is-up {
  background: #ecfbf2;
  color: #1f8d58;
}

.kpi-delta.is-down {
  background: #fff0f0;
  color: #c0392b;
}

/* =========================================================
   Grilles de charts — version "forme rectangulaire"
========================================================= */

/* Base : 1 colonne */
body.page--demo .chart-grid,
body.page--demo .chart-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Dès ~petite tablette : 2 colonnes */
@media (min-width: 576px) {
  body.page--demo .chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.page--demo .chart-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Grand écran : 3 colonnes pour la grille principale, 2 pour la secondaire */
@media (min-width: 1200px) {
  body.page--demo .chart-grid,
  body.page--demo .chart-grid-2 {
    max-width: 1800px;
  }

  body.page--demo .chart-grid {
    grid-template-columns: 2fr 1.5fr 1fr !important;
  }

  body.page--demo .chart-grid-2 {
    grid-template-columns: 1.5fr 1fr !important;
  }
}

/* Hauteur / proportions des graphes dans les cards
   -> ratio rectangle proche du carré (≈ 600x420 => 10:7)
*/
.chart-card .js-plotly-plot,
.chart-card .dash-graph {
  width: 100%;
  height: auto !important;
  aspect-ratio: 10 / 7;
}


/* =========================================================
   Vue analytique : cartes de graphes
   -> 1 colonne sur mobile, 2 colonnes à partir de 768px
========================================================= */

.chart-row-analytic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
}

/* Les cartes sont des items de la grille */
.chart-row-analytic > .chart-col-analytic {
  width: 100%;
}


/* Vueport ≤ ~925px → 1 seule colonne */
@media (max-width: 925px) {
  .chart-row-analytic {
    grid-template-columns: 1fr;
  }
}



/* La carte occupe toujours 100% de sa colonne */
.chart-card-analytic {
  width: 100%;
  max-width: 100%;
  margin: 0;
}


/* Les cartes occupent toujours 100% de leur colonne */

.chart-card-analytic {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.chart-card-header {
  padding: 0.6rem 1rem 0.5rem;
  border-bottom: 1px solid #eef0f4;
  background: #f7f8fc;
  border-radius: 10px 10px 0 0;
}

.chart-card-title {
  font: 600 14px / 1.3 Inter, sans-serif;
  color: var(--ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-card-title::before {
  content: "";
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
}

.chart-card-analytic .card-body {
  padding: 14px 18px 18px;
}

/* Même ratio rectangulaire pour les graphes analytiques */

.chart-card-analytic .js-plotly-plot,
.chart-card-analytic .dash-graph {
  width: 100% !important;   /* ← clé du problème */
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 10 / 7;
}


.chart-card-analytic,
.chart-card-analytic .card-body,
.chart-card-analytic .card-title,
.chart-card-analytic .chart-card-title {
  font-family: Inter, sans-serif;
  color: var(--ink);
}

.chart-card-analytic .js-plotly-plot text {
  font-family: Inter, sans-serif !important;
  font-size: 11px !important;
  fill: #3a4552 !important;
}

.chart-card-analytic .js-plotly-plot .legendtitle text {
  font-weight: 600;
  text-transform: uppercase;
}

.chart-card-analytic .dash-graph,
.chart-card-analytic .js-plotly-plot {
    max-height: 420px !important;   /* tu peux monter à 460 si besoin */
    overflow: hidden !important;
}

/* ======================== Carte ========================= */

.map-card .js-plotly-plot,
.map-card .dash-graph {
  height: 360px !important;
}

/* ===== Switch style de carte ===== */

.map-style-switch .dash-radio-items {
  display: inline-flex;
  gap: 0.5rem;
}

.map-style-switch .dash-radio-items label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  font: 500 13px / 1 Inter, sans-serif;
  color: var(--ink);
  cursor: pointer;
}

.map-style-switch .dash-radio-items input[type="radio"] {
  accent-color: var(--accent);
}

/* Texte source sous la carte */

.map-source {
  font: 11px / 1.4 Inter, sans-serif;
  font-style: italic;
  color: #555;
  margin-top: 6px;
  margin-left: 4px;
}

/* Masquer attribution Mapbox / MapLibre intégrée */

.mapboxgl-ctrl-bottom-right,
.mapboxgl-ctrl-attrib,
.maplibregl-ctrl-bottom-right,
.maplibregl-ctrl-attrib,
.maplibregl-ctrl-attrib-button {
  display: none !important;
}

/* =============== Colonne droite (assistant) ============== */

.aside-sticky {
  position: sticky;
  top: calc(var(--navbar-h) + 16px);
  align-self: flex-start;
}

/* =============== Titres & badges ========================= */

.heading .form-label {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.badge {
  vertical-align: middle;
}

/* =============== Typo générique ========================== */

.main-section .title {
  font-size: 28px;
  color: var(--ink);
}

.main-section .subtitle-medium {
  font-size: 24px;
  color: var(--ink);
}

.main-section .subtitle-small {
  font-size: 16px;
  color: var(--ink);
}

.main-section .subtitle-small-color {
  font-size: 18px;
  color: #803f0c;
}

/* =============== Cards génériques ======================== */

.card {
  border: 1px solid #f2f2f2;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: left;
}

.card-body {
  padding: 18px 20px;
  color: var(--ink);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

/* =============== Boutons & textes ======================== */

.main-section .btn-custom {
  background: var(--accent);
  color: #ffffff;
  width: 120px;
  text-align: center;
  border: 1px solid var(--accent);
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.main-section .user-info-text {
  font: 16px / 1.2 Inter, sans-serif;
  color: var(--ink);
  margin: 1px 0;
}

/* =============== Tooltips ================================ */

.tooltip-inner {
  max-width: 300px;
  background: #211f1f;
  color: #ffffff;
  font: 14px / 1 Inter, sans-serif;
  padding: 3px;
}

.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
  border-right-color: #211f1f;
}

/* =============== DataTable (optionnel) =================== */

.main-section
  .dash-table-container
  .dash-spreadsheet-container
  .dash-spreadsheet-inner
  th.dash-filter
  input.dash-filter--case--sensitive {
  font-family: Inter, sans-serif;
  color: var(--ink) !important;
  border-color: var(--ink) !important;
}

.main-section .dash-spreadsheet-container table {
  --border-color: var(--ink) !important;
  --accent: var(--ink) !important;
  --selected-background: var(--ink) !important;
  --selected-color: var(--ink) !important;
}

.main-section .dash-table-container .previous-next-container {
  font-size: 13px;
  text-align: right;
  padding: 5px 0;
  color: var(--ink) !important;
}

/* =============== Responsive sidebar ====================== */

@media (max-width: 991.98px) {
  .sidebar {
    position: sticky;
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    max-width: var(--sidebar-w);
    border-bottom: 1px solid var(--border);
  }
}
