/*DEBUT GEOLOCALISATION*/
.geo-modal {
  display: none; /* Caché par défaut, activé par JS via 'flex' */
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.geo-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.geo-title {
  color: #333;
  margin-bottom: 15px;
  font-weight: 700;
}
.geo-text {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.geo-checkbox {
  display: block;
  margin-bottom: 25px;
  cursor: pointer;
  font-size: 0.9rem;
}

.geo-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.geo-btn {
  padding: 10px 25px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.geo-btn-accept {
  background: #28a745;
  color: white;
}
.geo-btn-accept:hover {
  background: #218838;
}

.geo-btn-cancel {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #ddd;
}
.geo-btn-cancel:hover {
  background: #e2e6ea;
}

/* Animation */
@keyframes fadeIn {
  from {
    transform: translateY(-25px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ------Fin Modal géolocate */

/*------ Retour en haut de page*/

/* 🔸 Bouton scroll top */
.scroll-top-wrapper {
  position: fixed;
  z-index: 1050;
  width: 50px;
  height: 50px;
  line-height: 50px;
  right: 30px;
  bottom: 30px;
  padding-top: 2px;
  border-radius: 10px;
  background-color: #0073aa;
  color: var(--color-white-sombre);
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.scroll-top-wrapper.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-wrapper:hover {
  background-color: var(--color-orange); /* orange clair */
  color: var(--color-very-white);
}

/* Icône centrée */
.scroll-top-inner i {
  vertical-align: middle;
}

.scroll-top-inner .fa-2x {
  position: relative;
  top: -4px;
}
/* ====== FIN retour en haut de page ====== */

.error {
  color: #dc3545;
}

.text-white {
  color: #fff !important;
}
.text-red {
  color: #dd4b39 !important;
}
.text-yellow {
  color: #f39c12 !important;
}
.text-aqua {
  color: #00c0ef !important;
}
.text-blue {
  color: #0073b7 !important;
}
.text-black {
  color: #111111 !important;
}
.text-light-blue {
  color: #3c8dbc !important;
}
.text-green {
  color: #00a65a !important;
}
.text-gray {
  color: #d2d6de !important;
}
.text-navy {
  color: #001f3f !important;
}
.text-teal {
  color: #39cccc !important;
}
.text-olive {
  color: #3d9970 !important;
}
.text-lime {
  color: #01ff70 !important;
}
.text-orange {
  color: #ff851b !important;
}
.text-fuchsia {
  color: #f012be !important;
}
.text-purple {
  color: #605ca8 !important;
}
.text-maroon {
  color: #d81b60 !important;
}

table.dataTable tbody tr.new-row td {
  background-color: #e7f1ff !important;
}

table.dataTable tbody tr.updated-row td {
  background-color: #fde8ef !important;
}

/* ====== Smiley CKEditor ====== */

.smiley-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; /* <-- visible */
  border-bottom: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

.smiley-tabs li {
  list-style: none;
  padding: 4px 6px;
  cursor: pointer;
  font-size: 11px;
  white-space: nowrap;
}

.smiley-tabs li.active {
  font-weight: bold;
  border-bottom: 2px solid #4285f4;
}

/* ===== Conteneur ===== */

.smiley-wrapper {
  width: 100%;
  height: 70px; /* dialog 100px - tabs */
  overflow: hidden;
  box-sizing: border-box;
}

.smiley-content {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden; /* <-- empêche scroll horizontal */
}

/* ===== Tabs ===== */

.smiley-tab {
  display: none; /* <-- clé */
  flex-wrap: wrap;
}

.smiley-tab.active {
  display: flex;
}

/* ===== Images ===== */

.smiley-tab img {
  width: 24px;
  height: 24px;
  margin: 4px;
  cursor: pointer;
}
/* Validation du text des inputs*/
.is-valid {
  color: #00a65a !important;
}

/*paginnation*/

.pagination .page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
  z-index: 3;
  animation: pulse-active 2s infinite;
  box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
}

@keyframes pulse-active {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

.pagination .page-link:hover:not(:disabled) {
  background-color: #f0f5ff;
  color: #0056b3;
  transform: translateY(-2px);
}
/* Force le centrage parfait de l'icône dans le rond */
.pagination .page-link {
  color: #6c757d;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important; /* Fixe l'alignement vertical des icônes */
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

/* Ajustement spécifique pour les icônes si nécessaire */
.pagination .page-link i {
  font-size: 0.9rem;
  display: inline-block;
  line-height: 0; /* Annule la hauteur de ligne par défaut de l'icône */
}

.page-link .bi-chevron-right,
.page-link .bi-chevron-left,
.page-link .bi-chevron-double-left,
.page-link .bi-chevron-double-right {
  position: relative;
  top: 1px;
}

/*Plugin select*/

/* Appliquer la hauteur Bootstrap à Select2 Access */
.select2-search + .select2-container .select2-selection--single {
  height: 38px !important;
  display: flex;
  align-items: center;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

/* Aligner le texte à l'intérieur */
.select2-search + .select2-container .select2-selection__rendered {
  line-height: 38px !important;
  padding-left: 12px !important;
}

/* Aligner la flèche verticalement */
.select2-search + .select2-container .select2-selection__arrow {
  height: 36px !important;
  top: 1px !important;
}

/* Conteneur de groupe flexible */
.input-group-phone {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100%;
}

/* Ajustement Select2 pour Bootstrap */
.input-group-phone .select2-container {
  flex: 0 0 150px;
  /* Largeur fixe pour le select */
}

.input-group-phone .select2-selection--single {
  height: 38px !important;
  /* Hauteur standard Bootstrap 4/5 */
  border: 1px solid #ced4da !important;
  border-right: none !important;
  /* Supprime la bordure double entre select et input */
  border-radius: 4px 0 0 4px !important;
  display: flex;
  align-items: center;
}

.input-group-phone .select2-selection__rendered {
  line-height: 38px !important;
  padding-left: 10px !important;
}

.input-group-phone .select2-selection__arrow {
  height: 36px !important;
}

/* L'input prend tout le reste */
.input-group-phone #telephone {
  flex: 1 1 auto;
  border-radius: 0 4px 4px 0 !important;
}
/*Fin select et liste des pays */

#view-maintenance-url {
  cursor: pointer;
  background-color: #f8f9fa !important; /* Garder l'aspect grisé mais lisible */
}
#view-maintenance-url:focus {
  box-shadow: none;
  border-color: #dee2e6;
}
