body.dashboard,
body.manage {
  background-color: #111827;
  color: white;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}
body {
  background-color: #111827;
  color: white;
  margin: 0;
}
.mini-donut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mini-donut {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mini-donut-title {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 4px;
}
.mini-donut-chart {
  width: 100%;
  height: 140px;
} /* compact */
.mini-donut-legend {
  font-size: 11px;
  opacity: 0.85;
  text-align: center;
  margin-top: 4px;
}
.mini-donut-legend .legend-chip {
  white-space: nowrap;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.tab-btn {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #6fb9ce;
  background: transparent;
  color: #6fb9ce;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.tab-btn.active {
  background: #6fb9ce;
  color: white;
}

.mini-donut-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.legend-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #ddd;
  font-weight: 500;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.container {
  max-width: 1400px;
}

.dashboard .container,
.manage .container {
  max-width: 1600px;
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s ease;
}

.border-right {
  border-right: 1px solid #ffffff;
  opacity: 0;
  animation: fadeIn 0.7s ease-in forwards;
  animation-delay: 0.7s;
  animation-fill-mode: forwards;
}

.slide-left {
  transform: translateX(-350px);
}

.logo {
  width: 200px;
  height: 200px;
  animation: zoomRotate 1.5s ease-out forwards;
}

.logo-text {
  width: 280px;
  height: auto;
  margin-top: 30px;
  opacity: 0;
  animation: fadeIn 0.3s ease-in forwards;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
}

/* Formulaire : invisible au début */
.form-section {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.3s ease, transform 0.7s ease;
  padding-left: 100px;
}

/* Apparition fluide */
.fade-in {
  opacity: 1;
  transform: translateX(0);
}

.login-btn {
  text-transform: uppercase;
  border-radius: 2px;
  font-weight: 600;
  font-size: 18px;
  margin-top: 0px;
}
.blue-text {
  color: #111827;
}

/* Animations */
@keyframes zoomRotate {
  0% {
    transform: scale(0.5) rotate(-180deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.sidebar-nav {
  box-shadow: 6px 1px 14px 3px #9f979742;
}
.sidebar-nav .nav-link span {
  width: 100%;
  padding-left: 10px;
}
.sidebar-nav .nav-item {
  max-width: 100%;
}
.sidebar-nav .nav-link {
  font-size: 16px;
  font-weight: 500;
  padding: 5px 20px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 20px;
}

.sidebar-nav .nav-item.active .nav-link {
  font-weight: 700;
  letter-spacing: 3px;
  border-bottom: 1px solid;
}

.sidebar-nav .nav-link i {
  font-size: 30px;
  max-width: 25px;
}

.green {
  color: #24c279 !important;
}
.red {
  color: #bc2929 !important;
}
.metric {
  float: left;
  margin-right: 50px;
  background-color: #fff;
  border-radius: 10px 10px 10px 10px;
  box-shadow: 0px 0px 15px #a9bacb61;
  /* width: 340px; */
  height: 300px;
  overflow: hidden;
}
.metric .metric-inner header.metric-header {
  overflow: hidden;
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
  height: 60px;
  line-height: 60px;
  width: 100%;
}
.metric .metric-inner header.metric-header h1.metric-title {
  width: 100%;
  margin: 0;
  padding: 0;
  padding-top: 15px;
  text-align: center;
  color: black;
  display: block;
  height: 100%;
  font-weight: 400;
  font-size: 22px;
}
.metric .metric-inner .metric-body {
  width: 100%;
  height: 210px;
  overflow: hidden;
  margin-top: 20px;
}
.metric .metric-inner .metric-body h1,
.metric .metric-inner .metric-body h2,
.metric .metric-inner .metric-body h3,
.metric .metric-inner .metric-body h4 {
  margin: 0;
  padding: 0;
  font-family: Helvetica;
  font-weight: 400;
  color: #444;
  text-align: center;
}
.metric .metric-inner .metric-body h1 {
  font-size: 70px;
  font-weight: 300;
}
.metric .metric-inner .metric-body h1.primary-value {
  color: #0d6efd;
}
.metric .metric-inner .metric-body h2 {
  color: black;
  font-family: Helvetica;
  font-weight: 300;
  font-size: 28px;
  margin: 0;
  padding: 0;
  text-align: center;
}
.metric .metric-inner .metric-body h3 {
  font-size: 22px;
  font-weight: 500;
  color: black;
}
.metric .metric-inner .metric-body h4 {
  font-size: 14px;
  color: black;
}
.metric .metric-inner .viz-basic {
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -ms-flex-align: center;
  -webkit-align-items: center;
  -webkit-box-align: center;
  align-items: center;
  flex-direction: column;
}
.metric .metric-inner .viz-basic .value {
  text-align: center;
}
.metric .metric-inner .viz-basic-with-7-and-40-day-comparison {
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -ms-flex-align: center;
  -webkit-align-items: center;
  -webkit-box-align: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}
.metric .metric-inner .viz-basic-with-7-and-40-day-comparison .value {
  width: 100%;
}
.metric
  .metric-inner
  .viz-basic-with-7-and-40-day-comparison
  .value
  .comparison_wrapper {
  padding-top: 15px;
  width: 90%;
  margin: 0px auto;
}
.metric
  .metric-inner
  .viz-basic-with-7-and-40-day-comparison
  .value
  .comparison_wrapper
  .left_comparison {
  float: left;
  width: 50%;
}
.metric
  .metric-inner
  .viz-basic-with-7-and-40-day-comparison
  .value
  .comparison_wrapper
  .right_comparison {
  float: right;
  width: 50%;
}
.metric .metric-inner .viz-line-chart {
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.metric .metric-inner .viz-line-chart .value .chart {
  width: 100%;
  height: 100px;
}
.metric .metric-inner .viz-column-chart {
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.metric .metric-inner .viz-column-chart .value .chart {
  width: 100%;
  height: 200px;
}

/* MANAGEMENT */
.management-inner {
  margin-top: 80px;
  text-transform: uppercase;
}

.search-title {
  text-transform: uppercase;
  font-weight: 300;
  font-size: 26px;
}
.btn.active {
  background-color: #0d6efd !important;
  color: white;
  pointer-events: none;
  opacity: 1;
}
.slide-up {
  display: inline-block;
  width: 100%;
  padding: 10px 0 10px 15px;
  font-weight: 400;
  color: #0d6efd;
  background: #efefef;
  border: 0;
  border-radius: 3px;
  outline: 0;
  text-indent: 80px;
  transition: all 0.3s ease-in-out;
}

.slide-up::-webkit-input-placeholder {
  color: #efefef;
  text-indent: 0;
  font-weight: 300;
}
.slide-up + label {
  display: inline-block;
  position: absolute;
  transform: translateX(0);
  top: 0;
  left: 0;
  padding: 10px 15px;
  width: 110px;
  text-shadow: 0 1px 0 rgba(19, 74, 70, 0.4);
  transition: all 0.3s ease-in-out;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
  overflow: hidden;
}
.slide-up + label:before,
.slide-up + label:after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  z-index: -1;
  transition: all 0.3s ease-in-out;
}
.slide-up + label:before {
  top: 6px;
  left: 5px;
  right: 5px;
  bottom: 6px;
  background: #0d6efd;
}
.slide-up + label:after {
  top: 0;
  bottom: 0;
  background: #0d6efd;
}
span:nth-child(1) .slide-up {
  text-indent: 105px;
}
span:nth-child(3) .slide-up {
  text-indent: 125px;
}
span:nth-child(1) .slide-up:focus,
span:nth-child(1) .slide-up:active,
span:nth-child(3) .slide-up:focus,
span:nth-child(3) .slide-up:active {
  text-indent: 0;
}
.slide-up:focus,
.slide-up:active {
  color: #0d6efd;
  text-indent: 0;
  background: #fff;
}
.slide-up:focus::-webkit-input-placeholder,
.slide-up:active::-webkit-input-placeholder {
  color: #aaa;
}
.slide-up:focus + label,
.slide-up:active + label {
  transform: translateY(-100%);
}
.slide-up:focus + label:before,
.slide-up:active + label:before {
  border-radius: 5px;
}
.slide-up:focus + label:after,
.slide-up:active + label:after {
  transform: translateY(100%);
}

.row-input {
  padding: 0px;
  background: transparent !important;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.row-input span {
  position: relative;
  display: inline-block;
  margin: 0px;
  width: 100%;
}

#search-forms {
  margin-top: 40px;
  width: 100%;
  max-width: 450px;
}
#search-forms button {
  margin-top: 30px;
}
#search-forms button[type="submit"] {
  margin-bottom: 15px;
  background: transparent;
  border: none;
  color: white;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  margin-left: 15px;
}
.table-container {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 10px 0px;
}

.table thead th {
  font-weight: bold;
  white-space: nowrap;
}

.badge {
  font-size: 0.85rem;
  padding: 6px 10px;
}

#search-forms button[type="submit"] i {
  margin-right: 10px;
}
.table-striped td {
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 300;
}

/* RESPONSIVE */
/* Styles pour les petits écrans de téléphone portable */
@media screen and (max-width: 479px) {
  /* Ajoutez vos styles spécifiques pour les petits écrans de téléphone portable ici */
  .logo {
    width: 300px;
    height: 300px;
  }

  .logo-text {
    width: 440px;
    margin-top: 50px;
  }
}

/* Styles pour les téléphones portables en orientation paysage */
@media screen and (min-width: 480px) and (max-width: 767px) {
  /* Ajoutez vos styles spécifiques pour les téléphones portables en orientation paysage ici */
  .logo {
    width: 300px;
    height: 300px;
  }

  .logo-text {
    width: 440px;
    margin-top: 50px;
  }
}

/* Styles pour les téléphones portables en orientation portrait */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .logo {
    width: 300px;
    height: 300px;
  }

  .logo-text {
    width: 440px;
    margin-top: 50px;
  }
}

@media screen and (min-width: 981px) and (max-width: 1279px) {
  /* Media pour petite portion de pixels qui saute*/
}

/* Styles pour les écrans de bureau de 13 pouces et 16" */
@media screen and (min-width: 1280px) and (max-width: 1600px) {
  /* Ajoutez vos styles spécifiques pour les écrans de 13 pouces ici */
}

/* Styles pour les grands écrans de bureau */
@media screen and (min-width: 1601px) {
  /* Ajoutez vos styles spécifiques pour les grands écrans de bureau ici */
}

/* Styles pour les écrans 4K (3840x2160) et plus grands */
@media screen and (min-width: 2560px) {
  /* Ajoutez vos styles spécifiques pour les écrans 4K ici */
}

@keyframes zoomRotate {
  0% {
    transform: scale(0.5) rotate(-180deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #111827;
  color: white;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  padding: 20px;
}

.dashboard {
  max-width: 1400px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 30px;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 10px;
  color: white;
}

.header .subtitle {
  opacity: 0.8;
  font-size: 1.1rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #0d6efd;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.metric-card:hover::before {
  opacity: 1;
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.metric-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.metric-icon {
  width: 24px;
  height: 24px;
  opacity: 0.6;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0d6efd;
}

.metric-comparison {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.comparison-item {
  flex: 1;
  text-align: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.comparison-value {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.comparison-label {
  font-size: 0.75rem;
  opacity: 0.7;
  text-transform: uppercase;
}

.green {
  color: #00c851;
}
.red {
  color: #ff4444;
}

/* Cartes spéciales */
.wide-card {
  grid-column: span 2;
}

.transactions-table {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  overflow: hidden;
}

.transactions-table th,
.transactions-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.transactions-table th {
  background: rgba(13, 110, 253, 0.1);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.transactions-table td {
  font-size: 0.9rem;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-success {
  background: rgba(0, 200, 81, 0.2);
  color: #00c851;
}
.status-failed {
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
}
.status-refunded {
  background: rgba(13, 110, 253, 0.2);
  color: #0d6efd;
}

.chart-placeholder {
  height: 80px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .wide-card {
    grid-column: span 1;
  }

  .metric-card {
    padding: 15px;
  }

  .metric-value {
    font-size: 2rem;
  }

  .metric-comparison {
    flex-direction: column;
    gap: 10px;
  }

  .comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .transactions-table {
    font-size: 0.8rem;
  }

  .transactions-table th,
  .transactions-table td {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.5rem;
  }

  .metric-value {
    font-size: 1.8rem;
  }

  .transactions-table th:nth-child(n + 4),
  .transactions-table td:nth-child(n + 4) {
    display: none;
  }
}

/* Animations */
.metric-card {
  animation: slideUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.metric-card:nth-child(1) {
  animation-delay: 0.1s;
}
.metric-card:nth-child(2) {
  animation-delay: 0.2s;
}
.metric-card:nth-child(3) {
  animation-delay: 0.3s;
}
.metric-card:nth-child(4) {
  animation-delay: 0.4s;
}
.metric-card:nth-child(5) {
  animation-delay: 0.5s;
}
.metric-card:nth-child(6) {
  animation-delay: 0.6s;
}
.metric-card:nth-child(7) {
  animation-delay: 0.7s;
}
.metric-card:nth-child(8) {
  animation-delay: 0.8s;
}
.metric-card:nth-child(9) {
  animation-delay: 0.9s;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* === FIX LAYOUT DASHBOARD === */

/* 1) Le body ne doit pas être un conteneur flex centré */
body.dashboard,
body.manage {
  display: block !important;
  align-items: initial !important;
  justify-content: initial !important;
  /* (optionnel) pas de padding global sur le body si tu veux coller la sidebar au bord */
  /* padding: 0 !important; */
}

/* 2) Ne JAMAIS limiter la largeur du <body class="dashboard"> */
body.dashboard {
  max-width: none !important;
  margin: 0 !important;
}

/* 3) Conserver la largeur max pour le contenu interne "dashboard"
   sans toucher au body : cibler uniquement les éléments .dashboard
   qui ne sont PAS le body. */
.dashboard:not(body) {
  max-width: 1400px; /* ou 1600px si tu préfères */
  margin: 0 auto;
}

/* 4) Assure le layout 2 colonnes : sidebar + contenu prennent toute la hauteur */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  flex: 0 0 280px;
  width: 280px;
}

.app-main {
  flex: 1 1 auto;
  min-width: 0; /* évite les débordements des grids/tables */
  padding: 24px;
}

/* (hygiène) Tu as des @keyframes zoomRotate et fadeIn dupliqués.
   Garde une seule définition de chaque pour éviter les surprises. */
/* ---- Top Countries card ---- */
.card-top-countries .metric-subtitle {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: -6px;
  margin-bottom: 10px;
}
.card-top-countries .chart-wrap {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px;
  min-height: 240px;
}
#country_chart {
  height: 240px;
}

/* total au centre du donut */
.card-top-countries .center-total {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  flex-direction: column;
}
.card-top-countries .center-total .value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0d6efd;
  line-height: 1;
}
.card-top-countries .center-total .label {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 2px;
}

/* légende chips */
.card-top-countries .legend-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.card-top-countries .legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  line-height: 1;
  white-space: nowrap;
}
.card-top-countries .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* petit trait d’accent */
.card-top-countries::before {
  content: "";
  display: block;
  height: 3px;
  width: 48px;
  background: #0d6efd;
  border-radius: 2px;
  margin-bottom: 8px;
  opacity: 0.8;
}
#peak_hour .hc-point-peak {
  filter: drop-shadow(0 0 6px rgba(111, 185, 206, 0.8));
}

/* === HOME only === */

/* Hauteur de page :
   - Mobile : auto (évite le grand vide)
   - LG+ : 100dvh/100svh (hauteur utile, sans bugs d'UI mobile) */
.home .vh-fix {
  padding: 24px 0;
  min-height: auto;
}
@media (min-width: 992px) {
  .home .vh-fix {
    min-height: 100vh;
  }
  @supports (min-height: 100dvh) {
    .home .vh-fix {
      min-height: 100dvh;
    }
  }
  @supports (min-height: 100svh) {
    .home .vh-fix {
      min-height: 100svh;
    }
  }
}

/* Bordure verticale -> horizontale en mobile */
@media (max-width: 991.98px) {
  .home .border-right {
    border-right: 0 !important;
    border-bottom: 1px solid #ffffff !important;
    margin-bottom: 60px;
    padding-bottom: 20px;
  }
  /* élargir la colonne */
  .home #form-col {
    max-width: 100% !important; /* occupe toute la largeur du conteneur */
  }

  /* carte / bloc du formulaire */
  .home #form-col .card {
    transform: scale(1.05); /* grossit un peu tout le form */
    transform-origin: top center;
  }

  .home h4 {
    font-size: 45px !important;
  }
  /* champs + boutons plus lisibles */
  .home #form-col input,
  .home #form-col button {
    font-size: 2rem;
    padding: 0.75rem 1rem;
  }

  /* titre plus visible */
  .home #form-col .card-header {
    font-size: 1.2rem;
    text-align: center;
  }
  .home .form-label {
    font-size: 30px;
    font-weight: 600;
  }
  .input-group-text i {
    font-size: 40px;
  }
  .home #form-col form {
    padding: 60px !important;
  }
  .home .input-group {
    margin-bottom: 60px !important;
  }
}

/* Le padding du form gêne en mobile */
@media (max-width: 991.98px) {
  .home .form-section {
    padding-left: 0 !important;
  }
}

/* Images fluides et tailles adaptées mobile (sinon ça prend trop de place) */
.home .logo,
.home .logo-text {
  width: 100%;
  height: auto;
  display: inline-block;
}

.home .logo {
  max-width: 120px;
}
.home .logo-text {
  max-width: 180px;
  margin-top: 12px;
}

@media (min-width: 576px) {
  .home .logo {
    max-width: 160px;
  }
  .home .logo-text {
    max-width: 240px;
  }
}
@media (min-width: 992px) {
  .home .logo {
    max-width: 200px;
  }
  .home .logo-text {
    max-width: 280px;
  }
}

/* Animations : assure un état initial visible en mobile */
.home .form-section {
  opacity: 1;
  transform: none;
}
.home .form-section.fade-in {
  opacity: 1;
  transform: translateX(0);
}

/* empile donut + table sur petits écrans */
/* Rebill grid: donut left, table right */
.rebill-country-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 12px;
}

/* Donut zone */
.rebill-donut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* legend below chart */
.donut-legend {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 260px;
}

/* chips under legend */
.donut-chips {
  margin-top: 6px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* small legend chips style */
.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
  color: #e6eef6;
}

/* Table area */
.rebill-table-wrap .table-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 13px;
  color: #e6eef6;
}

.rebill-table-wrap .muted {
  color: #9aa0a6;
  font-weight: 400;
  margin-left: 6px;
  font-size: 12px;
}

/* Scroll container for table */
.table-scroll {
  max-height: 220px;
  overflow: auto;
  padding-right: 6px;
}

/* Table visuals for dark theme */
.rebill-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: transparent;
}

.rebill-table thead th {
  position: sticky;
  top: 0;
  background: rgba(15, 20, 25, 0.45);
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rebill-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.12s;
}

.rebill-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.01);
}

.rebill-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.rebill-table td {
  padding: 10px 12px;
  color: #e6eef6;
}

.rebill-table td.numeric {
  text-align: left;
}

/* Percentage cell emphasis */
.rebill-table td.percent {
  font-weight: 700;
  color: #fff;
}

/* scrollbar (Webkit) */
.table-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

/* responsive: stack on small screens */
@media (max-width: 880px) {
  .rebill-country-grid {
    grid-template-columns: 1fr;
  }

  .donut-legend {
    justify-content: flex-start;
  }

  .table-scroll {
    max-height: 180px;
  }
}
/* ---------- Fix visuel pour la table rebill (dark theme) ---------- */

/* wrapper */
.rebill-table-wrap .table-scroll {
  background: rgba(10, 12, 16, 0.45); /* sombre pour la zone de la table */
  border-radius: 6px;
  padding: 6px;
}

/* table générale */
.rebill-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent !important;
  color: #dbeaf6 !important; /* texte par défaut (clair, lisible) */
  font-size: 13px;
}

/* header : contraste fort */
.rebill-table thead th {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.06) !important; /* léger contraste */
  color: #ffffff !important;
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 3;
}

/* cellules du corps : couleurs lisibles */
.rebill-table tbody td {
  padding: 10px 12px;
  color: rgba(230, 238, 246, 0.92); /* texte principal */
  background: transparent !important;
  vertical-align: middle;
}

/* colonnes numériques alignées à droite (classe .numeric) */
.rebill-table td.numeric {
  text-align: left;
  font-variant-numeric: tabular-nums;
}

/* pourcentage : plus visible et accentué */
.rebill-table td.percent {
  color: #9be07a ; /* vert doux pour succès */
  font-weight: 700;
}

/* lignes alternées légère nuance */
.rebill-table tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.01) !important;
}

/* hover */
.rebill-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02) !important;
}

/* scrollbar discrète sur la box */
.table-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

/* responsive: réduire padding sur petits écrans */
@media (max-width: 600px) {
  .rebill-table thead th,
  .rebill-table tbody td {
    padding: 8px;
    font-size: 12px;
  }
}

/* Couleurs pour le taux */
.percent-green { color: #9be07a !important; font-weight:700; }
.percent-amber { color: #F2C94C !important; font-weight:700; }
.percent-red { color: #FF7B7B !important; font-weight:700; }

/* Sur mobile autoriser le wrap si besoin */
@media (max-width: 880px) {
  .rebill-table td { white-space: normal; }
}
