.widget-user .widget-user-header {
  border-top-left-radius: .25rem;
  border-top-right-radius: .25rem;
  height: 90px;
  padding: 1rem;
  text-align: center
}

.widget-user .widget-user-username {
  font-size: 25px;
  font-weight: 300;
  margin-bottom: 0;
  margin-top: 0;
}

.widget-user .widget-user-desc {
  margin-top: 0;
}


.widget-user .card-footer {
  padding-top: 20px;
}





#toast-container {
  min-width: 10%;
  top: 85%;
  right: 1%;
  transform: translateX(1%) translateY(85%);
}


.input-group>.select2 {
  flex: 1 1 auto;
}




/* Dashbord staaart */
.dropdown-toggle::after {
  display: none;
}

.border-gray {
  border: gray 1px solid;
}

.border-lightblue {
  border: lightblue 1px solid;
}

.border-indigo {
  border: indigo 1px solid;
}

.border-teal {
  border: teal 1px solid;
}



.c-dashboardInfo {
  margin-bottom: 15px;
}

.c-dashboardInfo .wrap {
  background-color: #81B5D4B3;
  border-radius: 35px;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 20px 25px 20px;
  height: 100%;
}

.c-dashboardInfo__title {
  color: #000000;
  font-size: 1.5em;
}


.c-dashboardInfo__subInfo {
  color: #000000;
  font-size: 1.25em;
}

.c-dashboardInfo span {
  display: block;
}

.c-dashboardInfo__count {
  font-weight: 600;
  font-size: 2em;
  line-height: 64px;
  color: #5C946E;
}

.c-dashboardInfo__count2 {
  font-weight: 600;
  font-size: 2em;
  line-height: 64px;
  color: #EE6055;
}

.c-dashboardInfo .wrap:after {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 28px;
  font-size: 1.2em;
}

.c-dashboardInfo:nth-child(1) .wrap:after {
  background: linear-gradient(82.59deg, #81b5d4 0%, #81b5d4 100%);
}



.navigation {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* NEW CSS  */

.logo_sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
}


body .content-wrapper {
  background-color: #eff0fa;
}

.navbar,
.sidebar-light-primary,
.main-footer {
  background-color: #ffffff !important;
  color: #495057 !important;
}

.sidebar-light-primary .nav-sidebar .nav-link {
  color: gray;
}

.callout-primary {
  border-color: #007bff;
}

.bg-app {
  background-color: #007bff1f;
}

.bg-app2 {
  background-color: #007bff6b;
}

.card-stat {
  border-radius: 10px;
  margin: 10px auto;
  background-color: #007bff1f;
  position: relative;
}


.card-stat2 {
  border-radius: 10px;
  margin: 10px auto;
  background-color: #007bff6b;
  position: relative;
}

.card-pv {
  border-radius: 10px;
  margin: 5px auto;
  background-color: #007bff1f;
  position: relative;
}

.card {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin: 5px auto;
  background-color: #ffffff;
}

.card-header {
  padding: 10px;
}




/* END NEW CSS  */


table.dataTable tbody td {
  padding: 3px;
  vertical-align: middle;
}

html body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 0.900rem;
  font-weight: 400;

}





.main-container4 {
  background: #81b5d4;
  border-radius: 25px;
  padding: 0.25em;
  width: 8em;
  height: 1.5em;
}





/* TABLEAU GENERALE */



.tabh2 {
  background-color: #E3B23C;
}

.bordr5 {
  color: #000000;
  border: 1px solid #000000;
}

.bordr {
  color: #000000;
  border: 3px solid #81b5d4;
}




.tab {
  background-color: #81b5d4;
  color: #000000;
  border: 1px solid #000000;
}

.tab66 {
  background-color: #81b5d4;
  color: #000000;
}


.txtg {
  color: #81b5d4;
}

.txtci {
  color: #666A86;
}

.bgci {
  background-color: #5C946E;
}

.bgcidan {
  background-color: #EE6055;
}

.hdr {
  background-color: #81b5d4;
}

.hdrm {
  background-color: #FDB833;

}


/* GR BOUTTON + TABLEAU + TITRE : ENCAISSEMENT */


.shell1 {
  background-color: #B3F2DD;
  color: #000000;
  border: 2px solid #0E1428;
  font-size: 105%;
  width: 90%;
  height: 5rem;
}

.tab1 {
  background-color: #B3F2DD;
  color: #000000;
  border: 1px solid #000000;
}

.txt1 {
  color: #B3F2DD;
}

.bordr1 {
  color: #000000;
  border: 3px solid #B3F2DD;
}

/** GR BOUTTON + TABLEAU + TITRE :  VENTE */

.shell2 {
  background-color: #E3B23C;
  color: #000000;
  border: 2px solid #0E1428;
  font-size: 105%;
  width: 90%;
  height: 5rem;
}

.tab2 {
  background-color: #E3B23C;
  color: #000000;
  border: 1px solid #000000;
}

.bordr2 {

  color: #000000;
  border: 3px solid #E3B23C;
}

.txt2 {
  color: #E3B23C;
}


/** GR BOUTTON + TABLEAU + TITRE :  pompiste */

.shell3 {
  background-color: #E08D79;
  color: #000000;
  border: 2px solid #0E1428;
  font-size: 105%;
  width: 90%;
  height: 5rem;
}

.tab3 {
  background-color: #E08D79;
  color: #000000;
  border: 1px solid #000000;
}








.txt3 {
  color: #000000;
}


/** GR BOUTTON + TABLEAU + TITRE :  Citerne */

.bordr4 {

  color: #000000;
  border: 3px solid #17BEBB;
}

.tab4 {
  background-color: #17BEBB;
  color: #000000;
  border: 1px solid #000000;
}

.txt4 {
  color: #17BEBB;
}

/* AUTRES */

.txtdan {
  color: #EE6055;
}

.txtsuc {
  color: #5C946E;
}

.btnsuc {
  background-color: #5C946E;
  color: #000000;
  border: 1px solid #000000;
}

.btndan {
  background-color: #EE6055;
  color: #ffffff;
  border: 1px solid #000000;
}

.btnwar {
  background-color: #E3B23C;
  color: #000000;
  border: 1px solid #000000;
}


.but {
  background-color: #006E90;
  border: 1px solid #0E1428;
}


.modifier {
  background-color: #FDB833;
  color: rgb(0, 0, 0);
}


/* tooltip */


.tooltip .tooltiptext {

  background-color: rgb(164, 230, 218);
  color: rgb(196, 28, 28);

}


.main-container {
  background: #81b5d4;
  border-radius: 25px;
  padding: 10px;
  width: 380px;
  height: 250px;
  max-width: 100%;

}

.main-container2 {
  background: #81b5d4;
  border-radius: 25px;
  padding: 10px;
  max-width: 100%;
  width: 300px;
  height: 130px;
}

.main-container3 {
  background: #81b5d4;
  border-radius: 25px;
  padding: 10px;
  width: 300px;
  max-width: 100%;
  height: 260px;
}

.delete_creation {
  position: relative;
  top: -1em;
  right: -1em;


}

.dataTables_filter {
  font-weight: bold;

}

.dataTables_empty {
  height: 3cm;
}

td>a:hover,
.dropdown-item:hover,
span>a:hover,
.paginate_button>a:hover,
li>a:hover {
  color: #FFF !important;
  background-color: #007bff !important;
}

/* ========================================
   AMÉLIORATIONS MOBILE RESPONSIVE ADDITIONNELLES
   ======================================== */

/* Navigation mobile améliorée */
@media (max-width: 768px) {

  /* Header mobile optimisé */
  .main-header.navbar {
    padding: 0.5rem 1rem;
    min-height: 4rem !important;
    height: 4rem !important;
    margin-bottom: 0 !important;
  }

  /* Menu hamburger plus visible */
  .navbar-nav .nav-link[data-widget="pushmenu"] {
    font-size: 1.2rem;
    padding: 0.75rem;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    margin-right: 10px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Sidebar mobile overlay */
  .main-sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    z-index: 9998;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .sidebar-open .main-sidebar {
    left: 0;
  }

  /* Overlay sombre pour la sidebar */
  .mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Content wrapper mobile */
  .content-wrapper {
    margin-left: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* Dashboard cards mobile */
  .c-dashboardInfo {
    margin-bottom: 10px;
  }

  .c-dashboardInfo .wrap {
    padding: 15px 20px;
    border-radius: 15px;
  }

  .c-dashboardInfo__title {
    font-size: 1.2em;
  }

  .c-dashboardInfo__count,
  .c-dashboardInfo__count2 {
    font-size: 1.8em;
    line-height: 1.2;
  }

  /* Cartes principales mobile */
  .card {
    margin-bottom: 15px;
    border-radius: 12px;
  }

  .card-header {
    padding: 12px 15px;
  }

  .card-body {
    padding: 15px;
  }

  /* Conteneurs principaux responsive */
  .main-container,
  .main-container2,
  .main-container3,
  .main-container4 {
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
    padding: 15px;
    border-radius: 15px;
  }

  .main-container {
    height: auto;
    min-height: 200px;
  }

  .main-container2 {
    height: auto;
    min-height: 100px;
  }

  .main-container3 {
    height: auto;
    min-height: 200px;
  }

  .main-container4 {
    height: auto;
    width: 100%;
  }

  /* Tableaux mobile */
  .table-responsive {
    border: none;
    margin-bottom: 15px;
  }

  .table {
    font-size: 12px;
  }

  .table th,
  .table td {
    padding: 8px 4px;
    vertical-align: middle;
  }

  /* Boutons mobile */
  .btn {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 8px;
    margin: 5px 2px;
    min-height: 44px;
  }

  .btn-sm {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 36px;
  }

  .btn-lg {
    padding: 15px 25px;
    font-size: 16px;
    min-height: 52px;
  }

  /* Formulaires mobile */
  .form-control {
    font-size: 16px;
    /* Évite le zoom sur iOS */
    padding: 12px 15px;
    border-radius: 8px;
    min-height: 44px;
  }

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

  /* Dropdowns mobile */
  .dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: none;
    margin-top: 5px;
  }

  .dropdown-item {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Notifications mobile */
  .navbar-badge {
    font-size: 0.7rem;
    padding: 0.2em 0.4em;
    min-width: 18px;
    height: 18px;
    line-height: 1;
  }

  /* Alertes mobile */
  .alert {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
  }

  /* Toast notifications mobile */
  #toast-container {
    top: auto;
    bottom: 20px;
    right: 20px;
    left: 20px;
    width: auto;
    transform: none;
  }
}

/* Très petits écrans (< 480px) */
@media (max-width: 480px) {
  .content {
    padding: 5px;
  }

  .content-header {
    padding: 10px 5px;
  }

  .content-header h1 {
    font-size: 1.3rem;
  }

  .card-body {
    padding: 10px;
  }

  .btn {
    padding: 10px 15px;
    font-size: 13px;
  }

  .form-control {
    padding: 10px 12px;
    font-size: 14px;
  }

  .c-dashboardInfo__count,
  .c-dashboardInfo__count2 {
    font-size: 1.5em;
  }

  .main-container,
  .main-container2,
  .main-container3 {
    padding: 10px;
  }
}

/* Orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .main-header.navbar {
    min-height: 4rem !important;
    height: 4rem !important;
    margin-bottom: 0 !important;
  }

  .content-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  #search-results-dropdown {
    top: 4rem;
    max-height: calc(100vh - 5rem);
  }
}

/* Classes utilitaires mobile */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }

  .mobile-visible {
    display: block !important;
  }

  .mobile-text-center {
    text-align: center !important;
  }

  .mobile-full-width {
    width: 100% !important;
  }

  .mobile-no-padding {
    padding: 0 !important;
  }

  .mobile-small-padding {
    padding: 10px !important;
  }

  .mobile-no-margin {
    margin: 0 !important;
  }

  .mobile-small-margin {
    margin: 5px !important;
  }
}

/* Améliorations accessibilité mobile */
@media (max-width: 768px) {

  /* Zones tactiles minimales */
  .nav-link,
  .dropdown-item,
  .btn,
  .form-control,
  .close {
    min-height: 44px;
    min-width: 44px;
  }

  /* Focus visible amélioré */
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
  }

  /* Contraste amélioré */
  .text-muted {
    color: #666 !important;
  }
}

/* Support du mode sombre sur mobile */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
  .card {
    background-color: #2d3748;
    border-color: #4a5568;
  }

  .form-control {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }

  .dropdown-menu {
    background-color: #2d3748;
    border-color: #4a5568;
  }

  .dropdown-item {
    color: #e2e8f0;
  }

  .dropdown-item:hover {
    background-color: #4a5568;
  }

  .main-container,
  .main-container2,
  .main-container3 {
    background-color: #4a5568;
  }
}

/* Solde View Cacher - Fix for Home Page Balance Toggle */
.solde_view_cacher {
  display: none;
}

/* Cohérence taille boutons Ajouter avec les inputs - VERSION CIBLÉE */
.btn-input-height {
  height: calc(1.8125rem + 2px) !important;
  padding: .25rem .5rem !important;
  font-size: .875rem !important;
  line-height: 1.5 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: auto !important;
  box-sizing: border-box !important;
}

/* Règles spécifiques pour les contextes où on veut la cohérence */
.card-header .btn-input-height,
.callout .btn-input-height,
.row .col-md-1 .btn-input-height,
.row .col-md-2 .btn-input-height,
.row .col-md-3 .btn-input-height {
  height: calc(1.8125rem + 2px) !important;
  padding: .25rem .5rem !important;
  font-size: .875rem !important;
}

/* Assurer que les icônes dans les boutons sont bien alignées */
.btn-input-height i {
  margin-right: 0.5rem;
  vertical-align: middle;
  line-height: inherit;
}

/* Pour les boutons dans les dropdowns - garder leur comportement normal */
.dropdown-menu .btn-input-height {
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 0;
  height: auto !important; /* Laisser la hauteur normale dans les dropdowns */
}

/* Responsive - ajustements pour mobile */
@media (max-width: 768px) {
  .btn-input-height {
    min-height: 44px !important;
    padding: 0.5rem 0.75rem !important;
  }
}

/* Classe pour désactiver la cohérence si nécessaire */
.btn-no-input-height {
  height: auto !important;
  padding: .25rem .5rem !important;
}