@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/* RESET MINIMAL */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-optical-sizing: auto;
  font-style: normal;
  color: #000;
  background: #eaeaec;
  background: linear-gradient(to bottom, #eaeaec 0%, #f3f2f2 49%, #eaeaec 100%);
}

input,
select {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-optical-sizing: auto;
  font-style: normal;
}

/* PAGE */
.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==================================================
   STYLES PAGE IDENTIFICATION / LOGIN
   ID : #page-identification
================================================== */
#page-identification {
  width: 420px;
  background: #ffffff;
  border-radius: 10px;
  color: #000;
  padding: 20px 25px 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* HEADER */
#page-identification .identification-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

#page-identification .identification-header .logo {
  width: 200px;
  height: auto;
  margin-bottom: 10px;
}

#page-identification .header-text span {
  display: block;
  font-size: 16px;
  color: #aaa;
  text-align: center;
  margin-bottom: 5px;
}

/* FORM */
#page-identification .login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* CHAMP */
#page-identification .login-field {
  display: flex;
  align-items: center;
  background: #f0f0f0;
  border-radius: 6px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  height: 50px;
}

#page-identification .login-field i {
  color: #aaa;
  margin-right: 10px;
  font-size: 20px;
}

#page-identification .login-field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #333;
  font-size: 18px;
  height: 100%;
}

/* FLÈCHE DE SOUMISSION */
#page-identification .submit-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 36px;
  color: #00aaf7;
  cursor: pointer;
  transition:
    color 0.3s ease,
    transform 0.2s ease;
  margin-left: 10px;
}

#page-identification .submit-icon:hover {
  color: #008ecf;
  transform: translateX(5px);
}

#page-identification .submit-icon:active {
  transform: translateX(2px);
}

/* Retirer la bordure de focus par défaut */
#page-identification .login-field input:focus {
  outline: none;
  border: 1px solid #f0f0f0;
}

#login-message {
  height: 20px;
  color: #f68700;
  margin-top: 10px;
  font-weight: bold;
}

/* ----------------------------
   Header principal sur la page accueil
---------------------------- */

#page-accueil h1 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

/* ----------------------------
   Header pleine largeur
---------------------------- */
#page-accueil .identification-header {
  width: 100%;
  background-color: #f5f5f5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding-top: 20px;
  padding-bottom: 20px;
}

/* ----------------------------
   Contenu centré à l'intérieur du header
---------------------------- */
#page-accueil .identification-header .header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

/* ----------------------------
   Logo
---------------------------- */
#page-accueil .logo-container .logo {
  height: 50px;
  width: auto;
}

/* ----------------------------
   Conteneur infos utilisateur (nom agence + déconnexion)
---------------------------- */
#page-accueil .user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.9rem;
}

/* Nom de l'agence */
#page-accueil .agence-name {
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #333;
}

/* Lien déconnexion discret */
#page-accueil .logout-link {
  color: #555;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

#page-accueil .logout-link:hover {
  color: #000;
}

/* Icône dans le lien de déconnexion */
#page-accueil .logout-link i {
  font-size: 15px;
}

/* ----------------------------
   Contenu principal centré
---------------------------- */
#page-accueil .page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  padding-bottom: 100px;
}

/* ============================
   BOUTONS GÉNÉRAUX
   Tous les boutons ont la même base de style
============================ */

/* Style de base pour tous les boutons */
.btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  min-width: 200px;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

/* Conteneurs de boutons (admin ou agence) */
.menu-admin,
.menu-agence {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 10px;
}

/* Bouton actif (rubrique sélectionnée) */
.btn.active {
  background-color: #73ab24;
  color: #fff;
  border: 2px solid #73ab24;
}

/* Boutons inactifs */
.btn:not(.active) {
  background-color: #ffffff;
  color: #73ab24;
  border: 2px solid #73ab24;
}

/* Hover pour bouton actif : juste l'ombre */
.btn.active:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hover pour boutons inactifs : juste l'ombre */
.btn:not(.active):hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Icône dans le bouton */
.btn i {
  margin-right: 6px;
  font-size: 13px;
}

/* Contenu dynamique sous les boutons */
#contenuDynamique {
  margin-top: 20px;
}

/* =====================================
   SUPPRESSION FOND JAUNE AUTOFILL
   Chrome / Edge / Safari
===================================== */
#page-identification input:-webkit-autofill,
#page-identification input:-webkit-autofill:hover,
#page-identification input:-webkit-autofill:focus,
#page-identification input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #f0f0f0 inset !important;
  box-shadow: 0 0 0 1000px #f0f0f0 inset !important;
  -webkit-text-fill-color: #333 !important;
  caret-color: #333;
  transition: background-color 9999s ease-in-out 0s;
}

#listing_agences .ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #e0e0e0;
  gap: 4px 12px;
  font-size: 14px;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
}

#listing_agences .ligne:last-child {
  border-bottom: none;
}

#listing_agences .ville {
  flex: 0 1 240px;
  min-width: 240px;
  max-width: 240px;
  font-weight: 600;
}

#listing_agences .email {
  flex: 2 1 360px;
  min-width: 200px;
  word-break: break-word;
}

#listing_agences .ligne:nth-child(even) {
  background-color: #ffffff;
}

#listing_agences .ligne:hover {
  background-color: #f0f0f0;
  transition: background-color 0.2s;
}

#listing_agences .actions {
  flex: 0 0 auto;
  margin-left: auto;
}

#listing_agences .actions i {
  font-size: 16px;
  color: #666;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition:
    background-color 0.2s,
    color 0.2s;
}

#listing_agences .actions i:hover {
  background-color: #ddd;
  color: #000;
}

#suivi .bloc {
  background-color: #f9f9f9;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}

#suivi .bloc.statistiques {
  min-height: auto;
  margin-bottom: 20px;
  padding: 20px;
}

/* ==========================================
   TABLEAU DE BORD STATISTIQUES
   ========================================== */

.stats-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr) 2fr;
  gap: 20px;
  width: 100%;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animation lors de la mise à jour des stats */
.stat-card.stat-updated {
  animation: statPulse 0.6s ease;
}

@keyframes statPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(115, 171, 36, 0.3);
  }
}

/* En-tête de la carte avec icône et contenu */
.stat-card > div:first-child {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
}

.stat-icon i {
  font-size: 22px;
  color: #73ab24;
}

.stat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  line-height: 1;
}

/* Barre de progression pour le taux de transformation */
.stat-progress {
  width: 100%;
  height: 6px;
  background-color: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.stat-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #73ab24 0%, #a0d468 100%);
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* Responsive */
@media (max-width: 1200px) {
  .stats-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-sourcing {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-sourcing {
    grid-column: 1 / -1;
  }
}

/* ==========================================
   BLOC SOURCING CLIENTS
   ========================================== */

.stat-sourcing {
}

.sourcing-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.sourcing-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.sourcing-label {
  flex: 0 0 180px;
  color: #444;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sourcing-bar-wrapper {
  flex: 1;
  height: 10px;
  background-color: #e8e8e8;
  border-radius: 5px;
  overflow: hidden;
}

.sourcing-bar {
  height: 100%;
  background: linear-gradient(90deg, #73ab24 0%, #a0d468 100%);
  border-radius: 5px;
  transition: width 0.6s ease;
  min-width: 4px;
}

.sourcing-pct {
  flex: 0 0 42px;
  text-align: right;
  font-weight: 600;
  color: #73ab24;
  font-size: 13px;
}

@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: 28px;
  }
}

#suivi .bloc.devis {
  min-height: 300px;
}

#suivi .bloc-titre {
  font-size: 12px;
  color: #333;
  text-align: center;
}

#suivi .bloc-titre.centrage {
  margin-top: 110px;
}

#suivi .bloc-titre.centrage a.ajout-devis {
  color: #73ab24;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
}

#suivi .bloc-titre.centrage a.ajout-devis i {
  margin-right: 2px;
  color: inherit;
}

#suivi .enteteListe {
  background-color: #e0e0e0;
  align-items: flex-end;
}

/* ===========================
   POPUP PRINCIPALE
   =========================== */
#passwordBox {
  position: absolute;
  z-index: 1000;
  background: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 340px;
  font-size: 14px;
  box-sizing: border-box;
  word-break: break-word;
  max-height: 90vh;
  overflow-y: auto;
  color: #333;
}

/* ===========================
   WRAPPER INPUT + BOUTON GÉNÉRER
   =========================== */
#pwdWrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

/* INPUT MOT DE PASSE MANUEL */
#manualPwd {
  flex: 1 1 140px;
  height: 36px;
  min-width: 0;
}

/* BOUTON GÉNÉRER MOT DE PASSE */
#generatePwd {
  flex: 0 0 50px;
  height: 36px;
  border: none;
  background-color: #73ab24;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

#generatePwd:hover {
  background-color: #5d8d1b;
}

/* ===========================
   BOUTONS COPIER ET MODIFIER
   =========================== */
#copyPwd,
#editPwd {
  width: 100%;
  padding: 8px;
  margin-bottom: 6px;
  border: none;
  border-radius: 4px;
  background-color: #73ab24;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

#copyPwd:hover,
#editPwd:hover {
  background-color: #5d8d1b;
}

/* ===========================
   TEXTE D'AVERTISSEMENT
   =========================== */
#passwordBox small {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
}

/* ===========================
   BOUTON FERMER (CROIX)
   =========================== */
#closePwd {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  background: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 0;
  transition: color 0.2s;
}

/* icône d'avertissement dans le small */
.warningIcon {
  color: #888;
}

.submit-icon {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==============================
   Lignes du formulaire
   ============================== */
#listing_devis .ligne {
  font-size: 14px;
  color: #333;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 15px;
  gap: 6px 12px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition:
    background-color 0.2s,
    box-shadow 0.2s;
}

#listing_devis .ligne:nth-child(even) {
  background-color: #ffffff;
}

/* ==============================
   Colonne titre / label
   ============================== */
#listing_devis .ville {
  flex: 0 0 400px;
  min-width: 400px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Zone pictos uniformes */
#listing_devis .ville i {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  color: #73ab24;
}

/* ==============================
   Colonne input / select / textarea
   ============================== */
#listing_devis .email {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Limite largeur pour tous les champs */
#listing_devis .email input,
#listing_devis .email select,
#listing_devis .email textarea {
  max-width: 320px;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  box-sizing: border-box;
}

#listing_devis .email textarea {
  resize: vertical;
}

/* ==============================
   Détails prestation : heures + fréquence
   ============================== */
#listing_devis .email .heures-frequence {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  align-items: center;
}

#listing_devis .email .heures-frequence input {
  flex: 0 0 80px;
}

#listing_devis .email .heures-frequence select {
  flex: 1;
}

/* ==============================
   Upload PDF stylé
   ============================== */
#listing_devis .btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: #73ab24;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#listing_devis .btn-upload:hover {
  background-color: #5e8f1e;
}

/* Masque l'input natif */
#listing_devis .btn-upload input[type="file"] {
  display: none;
}

/* Nom du fichier */
#listing_devis .file-name {
  font-size: 13px;
  color: #555;
}

.required-icon {
  color: #f68700 !important;
  font-size: 13px;
}

/* Input uniforme */
.email input[type="email"] {
  width: 320px;
  box-sizing: border-box;
  vertical-align: middle;
}

/* Checkbox + texte inline, jamais à la ligne */
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  margin-left: 10px;
  white-space: nowrap;
}

/* Taille de la checkbox */
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Champ désactivé si case cochée */
#email_client:disabled {
  background-color: #f0f0f0;
  cursor: not-allowed;
  color: #999;
}

#alerte {
  margin-left: 10px;
  color: #5e8f1e;
  font-weight: bold;
}

/* Conteneur général pour l'adresse */
#listing_devis .adresse-complete {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Ligne pour Code postal + Ville */
#listing_devis .cp-ville {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  align-items: center;
}

/* Input Code postal identique à Nbr H. */
#listing_devis .cp-ville input#cp {
  flex: 0 0 80px;
}

/* Input Ville prend le reste de l'espace et s'aligne à droite */
#listing_devis .cp-ville input#ville {
  flex: 1;
  min-width: 120px;
  max-width: 320px;
}

.ajouterCollab {
  color: #73ab24;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  font-weight: bold;
  margin-left: 10px;
}

.ajouterCollab i {
  font-size: 14px;
}

/* ===========================
   POPUP AJOUT COLLABORATEUR
   =========================== */
#collabBox {
  position: absolute;
  z-index: 1000;
  background: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 340px;
  font-size: 14px;
  box-sizing: border-box;
  word-break: break-word;
  max-height: 90vh;
  overflow-y: auto;
  color: #333;
}

/* ===========================
   INPUTS NOM / PRÉNOM
   =========================== */
#collabBox .field {
  margin: 10px 0;
}

#collabBox input {
  width: 100%;
  height: 36px;
  padding: 6px 8px;
  box-sizing: border-box;
}

/* ===========================
   BOUTON AJOUTER
   =========================== */
#validerCollab {
  width: 100%;
  padding: 8px;
  margin-top: 10px;
  border: none;
  border-radius: 4px;
  background-color: #73ab24;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

#validerCollab:hover {
  background-color: #5d8d1b;
}

/* ===========================
   BOUTON FERMER (CROIX)
   =========================== */
#closeCollab {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  background: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 0;
  transition: color 0.2s;
}

#closeCollab:hover {
  color: #555;
}

/* ===========================
   POPUP MODIFIER COLLABORATEUR
   =========================== */
#modifierCollabBox {
  position: absolute;
  z-index: 1000;
  background: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 340px;
  font-size: 14px;
  box-sizing: border-box;
  word-break: break-word;
  max-height: 90vh;
  overflow-y: auto;
  color: #333;
}

#modifierCollabBox .field {
  margin: 10px 0;
}

#modifierCollabBox input {
  width: 100%;
  height: 36px;
  padding: 6px 8px;
  box-sizing: border-box;
}

#validerModifierCollab {
  width: 100%;
  padding: 8px;
  margin-top: 10px;
  border: none;
  border-radius: 4px;
  background-color: #73ab24;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

#validerModifierCollab:hover {
  background-color: #5d8d1b;
}

#closeModifierCollab {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  background: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 0;
  transition: color 0.2s;
}

#closeModifierCollab:hover {
  color: #555;
}

.ajouter-collab,
.ajouter-collab * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#listing_agences {
  width: 100%;
}

/* Bloc devis : s'assure que le contenu commence en haut */
#suivi .bloc.devis {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.date-ajout {
  width: 80px;
}

.derniere-relance {
  width: 130px;
}

.statut {
  width: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.client {
  flex: 1;
  min-width: 150px;
}

.pdf {
  width: 80px;
  text-align: center;
}

.pdf a {
  color: #73ab24;
  transition: color 0.2s;
}

.pdf a:hover {
  color: #5e8f1e;
}

.pdf i {
  font-size: 18px;
}

.collaborateur {
  width: 150px;
}

.toggle-details {
  width: 30px;
  margin-left: auto;
  text-align: right;
  cursor: pointer;
}

.date_statut {
  width: 220px;
}

.statut-icon,
.statut-icon-admin {
  font-size: 16px;
  cursor: pointer;
}

.statut-icon.en-attente,
.statut-icon-admin.en-attente {
  color: #ff8800;
}

.statut-icon.accepte,
.statut-icon-admin.accepte {
  color: #73ab24;
}

.statut-icon.refuse,
.statut-icon-admin.refuse {
  color: #ff1100;
}

.statut-menu {
  position: absolute;
  top: 20px;
  left: -10px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 5px;
  z-index: 100;
  white-space: nowrap;
}

.statut-menu span {
  display: block;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  color: #fff;
}

.statut-menu span.accepte {
  background-color: #73ab24;
}

.statut-menu span.refuse {
  background-color: #ff1100;
}

.statut-menu span:hover {
  opacity: 0.8;
}

.statut-menu span.reset {
  background-color: #ccc;
}

/* Conteneur des détails harmonisé avec la ligne */
.ligne-details {
  display: none;
  padding: 12px 15px;
  background-color: #fdfdfd;
  border-left: 3px solid #73ab24;
  margin-bottom: 8px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #333;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Réduit l'espace entre les paragraphes dans les détails */
.ligne-details p {
  margin: 2px 0;
  line-height: 1.35;
}

/* Sections dans les détails */
.details-section {
  margin-bottom: 8px;
}

.details-section h4 {
  margin-bottom: 6px;
  font-size: 15px;
  color: #444;
  border-bottom: 1px solid #ddd;
  padding-bottom: 2px;
}

/* Grille de détails */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 16px;
}

/* Items de détails */
.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-item.full {
  grid-column: 1 / -1;
}

.detail-item .label {
  font-weight: 500;
  margin-bottom: 2px;
  color: #555;
  font-size: 13.5px;
}

.detail-item .value {
  word-wrap: break-word;
  font-size: 14px;
  color: #333;
}

.detail-item a:hover {
  text-decoration: underline;
}

.section-title {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  color: #444;
  margin-bottom: 8px;
  gap: 8px;
}

.section-title i {
  color: #73ab24;
  font-size: 18px;
  min-width: 20px;
  text-align: center;
}

/* ==========================================
   STYLES POUR LES FILTRES DE DEVIS
   ========================================== */

/* Conteneur de la ligne de filtres */
.filtres-ligne {
  margin-bottom: 15px;
  padding: 12px 15px;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Conteneur d'un filtre individuel */
.filtre-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Icônes des filtres */
.filtre-item i {
  color: #73ab24;
  font-size: 14px;
}

/* Selects de filtrage */
.filtre-item select {
  padding: 6px 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  background-color: #fff;
  cursor: pointer;
}

#filtreStatut {
  min-width: 150px;
}

#filtreCollab {
  min-width: 200px;
}

/* Bouton réinitialiser les filtres */
.btn-reset-filtres {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: #73ab24;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn-reset-filtres:hover {
  background-color: #5e8f1e;
}

.btn-reset-filtres:active {
  background-color: #4d7618;
}

.btn-reset-filtres i {
  color: white;
}

/* Compteur de résultats */
.filtre-resultats {
  margin-left: auto;
  font-size: 14px;
  color: #555;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filtre-resultats i {
  color: #73ab24;
}

/* Bouton export Excel */
.btn-export-excel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  margin-left: 10px;
  background-color: #73ab24;
  color: white;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn-export-excel:hover {
  background-color: #5e8f1e;
}

.btn-export-excel i {
  font-size: 14px;
  color: white;
}

/* Message "aucun résultat" */
.aucun-resultat {
  margin-top: 40px;
  text-align: center;
  color: #666;
}

.aucun-resultat i {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: 0.3;
  display: block;
}

.aucun-resultat p {
  font-size: 14px;
  margin-bottom: 10px;
}

.aucun-resultat .btn-reset-filtres {
  font-size: 13px;
  padding: 6px 12px;
}

/* ==========================================
   PAGINATION
   ========================================== */

/* Conteneur de la pagination */
.pagination-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 15px;
  gap: 8px;
}

.pagination-container label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.pagination-container select {
  padding: 6px 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 14px;
  cursor: pointer;
  min-width: 80px;
}

.relance-sans-email {
  color: red;
}

/* ==========================================
   RELANCES MANUELLES - Popup et styles
   À ajouter dans style.css
   ========================================== */

/* Texte "À relancer" cliquable */
.relance-a-effectuer {
  color: #ff1100;
  cursor: pointer;
  transition: color 0.2s;
  cursor: pointer;
}

.relance-a-effectuer:hover {
  color: #cc0d00;
}

/* Overlay de la popup (fond sombre) */
.popup-relance-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Contenu de la popup */
.popup-relance-content {
  background-color: white;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 280px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Question "Relance effectuée ?" */
.popup-relance-question {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px 0;
}

/* Conteneur des boutons */
.popup-relance-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Boutons OUI et NON */
.popup-relance-oui,
.popup-relance-non {
  padding: 8px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.1s;
}

.popup-relance-oui {
  background-color: #73ab24;
  color: white;
}

.popup-relance-oui:hover {
  background-color: #5e8f1e;
  transform: scale(1.05);
}

.popup-relance-non {
  background-color: #e0e0e0;
  color: #333;
}

.popup-relance-non:hover {
  background-color: #c0c0c0;
  transform: scale(1.05);
}

.popup-relance-oui:active,
.popup-relance-non:active {
  transform: scale(0.98);
}

/* ==========================================
   POPUP STATUT - Style identique à popup relance
   À ajouter dans style.css
   ========================================== */

/* Overlay de la popup statut (fond sombre) */
.popup-statut-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

/* Contenu de la popup statut */
.popup-statut-content {
  background-color: white;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 300px;
  animation: slideDown 0.3s ease;
}

/* Question "Changer le statut ?" */
.popup-statut-question {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px 0;
}

/* Conteneur des boutons */
.popup-statut-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Boutons de statut */
.popup-statut-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.popup-statut-btn i {
  font-size: 16px;
}

/* Bouton Accepté (vert) */
.popup-statut-btn.accepte {
  background-color: #73ab24;
  color: white;
}

.popup-statut-btn.accepte:hover {
  background-color: #5e8f1e;
  transform: scale(1.02);
}

/* Bouton Refusé (rouge) */
.popup-statut-btn.refuse {
  background-color: #dc3545;
  color: white;
}

.popup-statut-btn.refuse:hover {
  background-color: #c82333;
  transform: scale(1.02);
}

/* Bouton Réinitialiser (gris) */
.popup-statut-btn.reset {
  background-color: #6c757d;
  color: white;
}

.popup-statut-btn.reset:hover {
  background-color: #5a6268;
  transform: scale(1.02);
}

.popup-statut-btn:active {
  transform: scale(0.98);
}

.sourcing-bar--refuse {
  background: linear-gradient(90deg, #73ab24 0%, #a0d468 100%);
}

/* Lien cliquable sur le chiffre de refus */
.stat-refuse-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.stat-refuse-link:hover {
  color: #e74c3c;
}

/* Popup motifs de refus */
#popup-motifs-refus-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#popup-motifs-refus-content {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  width: 480px;
  max-width: 95vw;
  padding: 24px;
}

#popup-motifs-refus-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

#popup-motifs-refus-header span {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#popup-motifs-refus-header span i {
  color: #e74c3c;
  margin-right: 8px;
}

#popup-motifs-refus-close {
  background: none;
  border: none;
  font-size: 16px;
  color: #999;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

#popup-motifs-refus-close:hover {
  color: #333;
  background: #f0f0f0;
}

#popup-motifs-refus-body .sourcing-item {
  padding: 4px 0;
}

#popup-motifs-refus-body .sourcing-label {
  flex: 0 0 230px;
}

/* Responsive */
@media (max-width: 768px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 6px 12px;
  }

  .filtres-ligne {
    flex-wrap: wrap;
  }

  .filtre-resultats {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}
