.over-x {
  overflow-x: scroll;
}
.over-y {
  overflow-y: scroll;
}

.over-x::-webkit-scrollbar {
  height: 4px;
}

.over-y::-webkit-scrollbar {
  width: 2px;
}

.over-x::-webkit-scrollbar-track,
.over-y::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px transparent;
}

.over-x::-webkit-scrollbar-thumb,
.over-y::-webkit-scrollbar-thumb {
  outline: 1px solid #c4c4c4;
  background: #c4c4c4;
  border-radius: 8px;
}

.light-check {
  opacity: 0.7;
  color: #333;
}

.my-alert {
  border-left: 4px solid #dc3232;
  background: #fbeaea;
  color: #222;
  padding: 1rem 1rem;
  border-radius: 0;
}

.email-verification-banner {
  align-items: center;
  background: #fff7f1;
  border: 1px solid rgba(230, 113, 49, 0.28);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  color: #28313d;
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
}

.email-verification-banner__icon {
  align-items: center;
  background: rgba(230, 113, 49, 0.12);
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.email-verification-banner__content {
  flex: 1 1 auto;
  min-width: 0;
}

.email-verification-banner__title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.25;
}

.email-verification-banner__text {
  color: #5f6875;
  font-size: 0.86rem;
  line-height: 1.4;
}

.email-verification-banner__text span {
  color: #28313d;
}

.email-verification-banner__button {
  flex: 0 0 auto;
}

@media (max-width: 767.98px) {
  .email-verification-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .email-verification-banner__button {
    justify-content: center;
    margin-left: 52px;
    width: calc(100% - 52px);
  }
}

.dropdown-item:focus,
.dropdown-item:hover,
.dropdown-item.active,
.dropdown-item:active {
  background-color: #e9ecef;
  color: var(--bs-body-color);
}

.bg-danger-hover:hover {
  color: rgb(220, 53, 69);
  background-color: rgba(220, 53, 70, 0.127);
}

.toast {
  z-index: 1500;
}

.no-element {
  background: var(--light) !important;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

.shadow-default {
  box-shadow: 0px 8px 13px -3px rgba(0, 0, 0, 0.07);
}

.font-montserrat {
  font-family: "Montserrat", sans-serif;
}

.fw-semibold {
  font-weight: 500 !important;
}

.fw-extralight {
  font-weight: 200 !important;
}

.fs-14 {
  font-size: 14px;
}

.fs-13 {
  font-size: 13px !important;
}

.fs-12 {
  font-size: 12px;
}

.fs-11 {
  font-size: 11px;
}

.fs-10 {
  font-size: 10px !important;
}

.text-justify {
  text-align: justify !important;
}

.text-opacity-70 {
  opacity: 0.7;
}

.table-container {
  min-height: 35vh;
}

#my-table thead tr th {
  text-align: center;
}

.dot-indicator {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
}

.ajax-link {
  color: currentColor !important;
  text-decoration: none !important;
}

a {
  color: currentColor;
  text-decoration: none;
}

.pdf-viewer-modal {
  z-index: 1070;
}

.pdf-viewer-modal .modal-content {
  background: #1f2328;
  color: #fff;
}

.pdf-viewer-toolbar {
  align-items: center;
  background: #222831;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  gap: 0.75rem;
  min-height: 64px;
}

.pdf-viewer-title {
  align-items: center;
  display: flex;
  font-weight: 500;
  gap: 0.6rem;
  min-width: 0;
}

.pdf-viewer-title i {
  color: var(--primary);
}

.pdf-viewer-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-viewer-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  margin-left: auto;
}

.pdf-viewer-actions .btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 34px;
}

.pdf-viewer-body {
  background: #111418;
  height: calc(100vh - 64px);
  overflow: hidden;
  padding: 0;
  position: relative;
}

.pdf-viewer-frame {
  background: #fff;
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.pdf-viewer-loading {
  align-items: center;
  background: #111418;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  gap: 0.55rem;
  inset: 0;
  justify-content: center;
  position: absolute;
  z-index: 1;
}

.some-template-list {
  max-height: 200px;
  padding-left: 25px !important;
}

@media (max-width: 768px) {
  .pdf-viewer-toolbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: 104px;
    padding: 0.7rem;
  }

  .pdf-viewer-actions {
    justify-content: flex-start;
    margin-left: 0;
    width: 100%;
  }

  .pdf-viewer-actions .btn {
    min-width: 36px;
  }

  .pdf-viewer-body {
    height: calc(100vh - 104px);
  }
}

.text-truncate {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card {
  border: none;
  overflow: hidden;
}

.email-card-container .form-label {
  font-weight: 500;
}

/** ====----------------- */
/** style pour l'editeur quill */
#editor-container {
  height: auto;
  min-height: 150px;
  background-color: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 8px 4px;
}

.ql-toolbar {
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
  border-bottom: 1px solid #ced4da;
}

#emoji-palette {
  top: 0 !important;
}

.quill-description ul,
.quill-description ol {
  list-style: initial !important;
  padding-left: 1.5rem !important;
}

.quill-description ul {
  list-style-type: disc !important;
}

.quill-description ol {
  list-style-type: decimal !important;
}

.ql-container {
  height: auto !important;
}

.ql-editor {
  min-height: 200px;
}

.editor-container {
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

/** ====----------------- */

/* style de la page par defaut */
.main-defaut-container {
  color: #000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Gotham";
}

.hero-container {
  text-align: center;
  max-width: 700px;
  padding: 2rem;
}

.hero-container .logo {
  width: 300px;
  height: auto;
  padding: 0 10px;
  margin-bottom: 2.5rem;
}
.hero-container h1 {
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-container p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.hero-container .btn-lg {
  /* padding: 0.75rem 1.5rem; */
  padding: 0.75rem 4.5rem;
  font-size: 1.1rem;
  border-radius: 50px;
}
.hero-container .btn-pill {
  border-radius: 50px;
  padding: 0.75rem 4.5rem;
  font-size: 1rem;
}

.profile-doc-link:hover {
  text-decoration: underline;
  color: var(--primary);
}

/* Styles pour les selects avec recherche */
.autocomplete-filter {
  max-height: 250px;
  overflow-y: auto;
  position: absolute;
  background: white;
  border-radius: 4px;
  margin-top: 2px;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.autocomplete-filter .autocomplete-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #f8f9fa;
  font-size: 0.875rem;
}

.autocomplete-filter .autocomplete-item:hover {
  background-color: #f8f9fa;
}

.autocomplete-filter .autocomplete-item:last-child {
  border-bottom: none;
}

.document-page-logo {
  max-width: 150px;
  max-height: 100px;
  margin-bottom: 20px;
}

.module-block {
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.module-block:last-child {
  border-bottom: none !important;
}

/* =================================================
gestion du profile document
=====================================================*/

/* ====== Zone principale ====== */
.profile-doc {
  position: relative;
  display: flex;
  width: 100%;
  height: 100vh; /* Utilise toute la hauteur de l'écran */
  overflow: hidden; /* Important : empêche scroll global */
}

/* ==== Colonne 1 : FACTURES ==== */
.profile-doc .factures-container {
  /* flex: 0 0 35%;
    max-width: 35%; */
  max-width: 100%;
  height: 100vh;
  /* overflow: scroll; */
  background: #fff;
  padding-top: 30px;
  padding-right: 5px;
  overflow-y: auto;
  scrollbar-width: none; /* Masque scrollbar */
}

/* ==== Colonne 2 : PREVIEW ==== */
.profile-doc .preview-container {
  /* flex: 0 0 45%;
    max-width: 45%; */
  max-width: 100%;
  height: 100vh;
  position: sticky; /* Agit comme fixed mais reste dans le flux */
  top: 0;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-left: 0px;
  border-left: 1px solid var(--border);
}

.profile-doc .iframe-box {
  flex-grow: 1;
  overflow-y: auto;
  scrollbar-width: none; /* Masque scrollbar */
}

.iframe-box::-webkit-scrollbar {
  display: none;
}

.iframe-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==== Colonne 3 : INFOS ==== */
.profile-doc .infos-container {
  max-width: 100%;
  height: 100vh;
  position: sticky;
  top: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.profile-doc .infos-box {
  padding: 20px;
  padding-right: 0;
  overflow-y: auto;

  scrollbar-width: none;
}

.infos-box::-webkit-scrollbar {
  display: none;
}

/* affichage de la top-bar */
.fixed-to-top {
  width: 100%;
}

/* affichage du modal des nouveautes*/
.my-h-50 {
  max-height: 40vh;
}

.min-vh-80 {
  min-height: 80vh;
}

.feature-restricted {
  opacity: 0.6;
  /* cursor: not-allowed; */
  position: relative;
}

.badge.pro {
  padding: 0.3em 0.5em;
  font-size: 10px !important;
}

.feature-restricted:hover {
  opacity: 0.8;
}

#advanced-filters label {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

/* 
.feature-restricted::after {
    content: "🔒";
    margin-left: 5px;
    font-size: 0.8em;
} */

.custom-modal .modal-dialog {
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-modal .modal-content {
  background: #fff;
  max-width: 390px;
  width: 100%;
  border: 1px solid var(--primary);
  box-shadow: 0 12px 30px rgba(74, 144, 226, 0.3);
  padding: 1.5rem 1.8rem;
  text-align: center;
  animation: fadeInScale 0.3s ease forwards;
}

.custom-modal .modal-body {
  padding-top: 0;
}

/* Illustration */
.custom-modal .modal-illustration {
  margin-bottom: 0.7rem;
}

/* Titre */
.custom-modal .modal-title {
  color: #2c3e50;
}

.custom-modal .modal-text {
  color: #4a4a4a;
  margin-bottom: 1rem;
}

.custom-modal .modal-btn {
  margin-top: 0.8rem;
  padding: 0.6rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Features list */
.custom-modal .features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.custom-modal .features-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.6rem;
  position: relative;
}

.custom-modal .features-list li h6 {
  color: #4d5358;
  font-weight: 500 !important;
  margin: 0;
  margin-bottom: 0.2rem;
  font-size: 14px !important;
}

.custom-modal .features-list li p {
  margin: 0;
  padding: 0;
  font-size: 11px;
  font-family: "Montserrat", sans-serif;
}

.custom-modal .features-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.8rem;
  line-height: 1;
}

/* last refunds */
.refund-item {
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.tiny-badge {
  /* padding: 0.3em 0.5em; */
  padding: 0.4em 0.5em;
  font-size: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.refund-item:hover {
  background-color: #f8f9fa;
  border-left-color: var(--bs-primary);
}

/* Styles supplémentaires pour l'onglet Partage */
.access-list {
  max-height: 300px;
  overflow-y: auto;
}

.access-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s;
}

.access-item:hover {
  background-color: #f8f9fa;
}

.access-item.owner {
  background-color: rgba(13, 110, 253, 0.05);
}

.access-item.current-user {
  background-color: rgba(25, 135, 84, 0.05);
}

.access-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.access-info {
  flex-grow: 1;
}

.access-name {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.access-name strong {
  margin-right: 8px;
}

.access-details {
  font-size: 0.85rem;
  color: #6c757d;
}

.access-actions {
  flex-shrink: 0;
}

.history-item {
  display: flex;
  align-items: flex-start;
  padding: 10px;
  border-bottom: 1px solid #e9ecef;
}

.history-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.history-info {
  flex-grow: 1;
}

.history-title {
  font-weight: 500;
  margin-bottom: 2px;
}

.history-date {
  font-size: 0.85rem;
  color: #6c757d;
}

.history-details {
  font-size: 0.85rem;
  color: #6c757d;
  font-style: italic;
}

.share-summary .alert {
  border-radius: 8px;
}

/* Animation d’apparition */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

#btn-ajouter-remise-globale {
  text-align: end;
  color: var(--primary);
}

#btn-ajouter-remise-globale:hover {
  text-decoration: underline;
  cursor: pointer;
}

.custom-label {
  font-size: 11px;
  padding: 0;
  margin: 0;
  margin-bottom: 0.2rem;
}

/* ====  style de la page reglages ==== */
.reglage-sidebar {
  position: relative;
  min-width: 190px;
  min-height: calc(100vh - 170px);
  background-color: #fff;
  padding: 1rem !important;
}

.reglage-group {
  margin-bottom: 0.8rem;
}

.reglage-group .group-title {
  text-transform: uppercase;
  color: var(--secondary-rgb); /* #6c757d */
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

#societeDropdown {
  width: auto;
  max-width: 170px;
  overflow: hidden;
}

#societe_membre {
  width: auto;
  max-width: 250px;
  overflow: hidden;
}

.nav-subitems {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.nav-subitems li a {
  display: flex;
  align-items: center;
  padding: 5px 12px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.nav-subitems li a:hover {
  background-color: #e9ecef;
}

.nav-subitems li.active > a {
  background-color: var(--secondary-rgb);
  color: #fff;
}

.reglage-group .sidebar-icon-label span {
  margin-left: -5px;
}

#societe-card .card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px dashed #dee2e6;
}

#societe-card .card:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

#societe-card .modal-content {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Style pour les cellules de remise */
.remise-cellule {
  position: relative;
}

.remise-cellule.d-none {
  display: table-cell !important; /* Toujours occuper l'espace */
}

.remise-cellule.d-none .input-remise,
.remise-cellule.d-none .remise {
  display: none;
}

.remise-cellule.d-none .remise-placeholder {
  display: inline;
  color: var(--secondary-rgb);
  font-style: italic;
}

.remise-cellule:not(.d-none) .remise-placeholder {
  display: none;
}

.remise-cellule:not(.d-none) .input-remise,
.remise-cellule:not(.d-none) .remise {
  display: block;
  width: 80px;
  margin: 0 auto;
}

/* Colonne remise */
.col-remise.d-none {
  display: none !important;
}

.timeline-item {
  border-left: 3px solid var(--primary-dark);
  padding-left: 1rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.6rem;
  top: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--primary-dark);
  /* background: var(--bs-primary); */
  border: 3px solid #fff;
}

/* == profil Membre == */

.my-custom-tab .profile-header {
  background: linear-gradient(135deg, var(--blue-dark-bg), var(--bs-primary));
  color: #fff;
  border-radius: 15px;
  margin-top: -80px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Header amélioré */
.library-header-compact {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.avatar-compact {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  /* object-fit: cover; */
  object-fit: contain;
  background: var(--bg-light);
}

.tiny-img {
  height: 50px;
  width: 50px;
  border-radius: 4px;
  /* object-fit: cover; */
  object-fit: contain;
  background: var(--bg-light);
}

.bg-linear {
  background: linear-gradient(135deg, var(--blue-dark-bg), var(--bs-primary));
  color: #fff;
}

#usageSurveyForm .form-check-label {
  margin-left: 8px !important;
}

.my-custom-tab .avatar-wrapper {
  width: 120px;
  height: 120px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 4px solid #fff;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.rounded-full {
  border-radius: 100%;
}

.my-custom-tab .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  border-radius: 50%;
  display: block;
}

.my-custom-tab .camera-icon {
  right: 6px;
  width: 30px;
  height: 30px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.my-custom-tab .camera-icon-2,
.my-custom-tab .infobulle {
  position: absolute;
  top: -5px;
  right: 12px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 15px;
  height: 15px;
  font-size: 8px;
  line-height: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.label-infobulle {
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 15px;
  height: 15px;
  font-size: 8px;
  line-height: 0px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.label-infobulle:hover,
.my-custom-tab .camera-icon:hover,
.my-custom-tab .infobulle:hover,
.my-custom-tab .camera-icon-2:hover {
  background-color: var(--primary-dark);
  color: #000;
}

.value-infobulle {
  color: #8e8c8c;
  cursor: pointer;
}

.value-infobulle:hover {
  color: var(--primary-dark);
}

.my-custom-tab .infobulle {
  top: -5px;
  right: 30px;
}

.my-custom-tab .stat-card {
  background: #fff;
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.my-custom-tab .nav-pills .nav-link {
  color: var(--blue-dark-bg);
  border-radius: 8px;
  margin: 0 3px;
  font-weight: 500;
}

.my-custom-tab .nav-pills .nav-link.active {
  background: var(--bs-primary);
  color: #fff;
}

.my-custom-tab .nav-pills .nav-link.expanded {
  background-color: var(--primary-dark);
  color: #fff;
}

.dashboard-tabs {
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  background: rgba(var(--bs-primary-rgb), 0.08);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.16);
  border-radius: 5px;
}

.dashboard-tabs .nav-link {
  padding: 0.375rem 0.75rem;
  color: var(--blue-dark-bg);
  border: 1px solid transparent;
  border-radius: var(--bs-border-radius);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.dashboard-tabs .nav-link:hover:not(.active) {
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.12);
  border-color: rgba(var(--bs-primary-rgb), 0.18);
}

.dashboard-tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--bs-primary) 0%,
    var(--primary-dark) 100%
  );
  border-color: rgba(var(--bs-primary-rgb), 0.18);
  box-shadow: 0 8px 18px rgba(var(--bs-primary-rgb), 0.24);
}

/* Socle réutilisable pour les pages qui figent leur zone de contenu sur desktop. */
body.sticky-layout-page {
  --sticky-layout-top: 60px;
  --sticky-layout-desktop-top: 3.5rem;
}

body.sticky-layout-page .main-content,
body.sticky-layout-page .my-main {
  overflow: visible !important;
}

body.sticky-layout-page .main-content {
  display: flex;
  flex-direction: column;
}

body.sticky-layout-page .my-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.sticky-layout-section {
  position: sticky;
  top: var(--sticky-layout-top, 60px);
  z-index: 40;
}

/* Le header global reste collé en haut quand la page active le layout sticky. */
.sticky-layout-fixed-top {
  position: sticky;
  top: 0;
  z-index: 90;
}

.dashboard-filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-filter-tutorial {
  display: flex;
  justify-content: flex-start;
}

@media (min-width: 992px) {
  body.sticky-layout-page {
    --sticky-layout-top: var(--sticky-layout-desktop-top, 3.5rem);
  }

  .dashboard-filter-toolbar {
    flex-direction: row;
    align-items: flex-start;
  }

  .dashboard-filter-tutorial {
    justify-content: flex-end;
  }

  html:has(body.sticky-layout-page),
  body.sticky-layout-page {
    height: 100%;
    overflow: hidden;
  }

  body.sticky-layout-page .wrapper {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }

  body.sticky-layout-page .main-content {
    position: fixed;
    right: 0;
    left: 0;
    width: calc(100% - var(--main-sidebar-width));
    height: 100svh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  body.sticky-layout-page .sidebar.collapsed + .main-content {
    width: 100%;
  }

  body:has(.dashboard-page) .table-section.compressed,
  body:has(.dashboard-page) .table-section.table-doc.compressed {
    width: 100%;
    flex: 0 0 100%;
  }

  body:has(.dashboard-page) .lateral-sidebar:not(.active) {
    display: none;
  }

  body:has(.dashboard-page) #lateral-wrapper {
    min-height: 0;
  }

  body:has(.dashboard-page) .lateral-sidebar.active,
  body:has(.dashboard-page) .lateral-sidebar.is-doc.active {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: min(52rem, 100vw);
    height: 100svh;
    z-index: 1045;
    background: #fff;
    box-shadow: -12px 0 32px rgba(15, 23, 42, 0.18);
  }
}

.badge-abonnement {
  background: linear-gradient(45deg, #ffd700, #ffa500);
  color: #000;
  font-weight: 600;
}

.my-custom-tab .badge-certified {
  color: white;
  padding: 5px 12px;
  top: 20px;
  right: 20px;
  border-radius: 20px;
  font-weight: 500;
}

.text-blue {
  color: var(--bs-primary) !important;
}

.messaging-upgrade-modal__content {
  border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
  border-radius: 1.25rem;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.modal-elevated {
  z-index: 4305;
}

.modal-backdrop.modal-elevated-backdrop {
  z-index: 4300;
}

.toast.toast-elevated {
  z-index: 4315;
}

.messaging-image-preview-modal {
  border: 0;
  background: rgba(8, 15, 26, 0.94);
}

.messaging-image-preview-modal .modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.messaging-image-preview-modal__viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.messaging-image-preview-modal__image {
  max-width: 100%;
  max-height: calc(100vh - 5rem);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.messaging-upgrade-modal__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  color: var(--bs-primary);
  background: linear-gradient(
    135deg,
    rgba(var(--bs-primary-rgb), 0.12),
    rgba(230, 113, 49, 0.18)
  );
}

.messaging-upgrade-modal__eyebrow {
  color: rgba(18, 60, 105, 0.68);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.messaging-upgrade-modal__title {
  color: var(--blue-dark-bg);
  font-weight: 500;
}

.messaging-upgrade-modal__text {
  color: rgba(18, 60, 105, 0.74);
  line-height: 1.6;
}

.messaging-upgrade-modal__highlights {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.messaging-upgrade-modal__highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(var(--bs-primary-rgb), 0.08);
  border-radius: 1rem;
  color: var(--blue-dark-bg);
  background: rgba(var(--bs-primary-rgb), 0.04);
}

.messaging-upgrade-modal__highlight i {
  color: var(--bs-primary);
  margin-top: 0.15rem;
}

.my-custom-tab .chart-container {
  position: relative;
  height: 250px;
}

.my-custom-tab .transition-width {
  transition: width 0.4s ease;
}

.my-custom-tab .nav-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  color: #6c757d;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
}

.my-custom-tab .nav-tabs .nav-link:hover {
  border-bottom-color: #dee2e6;
  background: none;
  color: #495057;
}

.my-custom-tab .nav-tabs .nav-link.active {
  border-bottom-color: var(--bs-primary);
  color: var(--bs-primary);
  background: transparent;
}

#formFilters .nav-tabs .nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 12px;
}

.my-custom-tab table.profile-fields tr td {
  border: 0;
  border-bottom: 1px solid #eff0f1;
}

.my-custom-tab table.table-sm {
  margin-bottom: 0;
}

.my-custom-tab table.table-sm tr td {
  padding: 0.25rem 0;
}

.my-custom-tab table.table-sm tr:last-child td {
  padding-bottom: 0;
  border: none;
}

.my-custom-tab .image-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 5px;
}

.my-custom-tab .image-container img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

caption {
  caption-side: top !important;
}

/*========= gestion du overlay sur les icon des documents =======*/
.my-custom-tab .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(59, 69, 81, 0.79);
  display: none;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  border-radius: 6px;
  z-index: 2;
}

.my-custom-tab .rge-container:hover .overlay,
.my-custom-tab .kbis-container:hover .overlay,
.my-custom-tab .assurance-container:hover .overlay,
.my-custom-tab .autre_doc-container:hover .overlay {
  display: flex;
}

.my-custom-tab .overlay a {
  color: #fff;
  font-size: 18px;
}

/*========= gestion du responsive des filtres =======*/
#formFilters .form-label,
#formFilters .btn-group label,
#formFilters .statut-tab,
#formFilters .state-tab,
#formFilters .etat-tab,
#formFilters .type-tab,
#advanced-filters button,
#advanced-filters a {
  white-space: nowrap;
}

/*========= gestion des credits LEADS =======*/
.credit-card {
  width: 100%;
  max-width: 220px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  border: 2px solid transparent;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  text-align: center;
}

.credit-card:hover {
  border: 2px solid var(--primary);
  box-shadow: 0 2px 15px rgba(var(--bs-primary-rgb), 0.3);
}

.credit-card ul {
  text-align: start;
}

/* ============ Cagnotte Card Styles ============= */
.cagnotte-container {
  background: #fff;
  border-radius: 0 8px 8px 0;
  padding: 18px 24px;
  box-shadow: 2px 0 0 rgba(0, 142, 83, 0.475);
  width: 100%;
  max-width: 220px;
  transition: all 0.2s ease-in-out;
}

.cagnotte-container:hover {
  transform: translateY(-5px);
}

.cagnotte-label {
  font-size: 14px;
  color: #888;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cagnotte-value {
  font-size: 28px;
  font-weight: 600;
  color: #222;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.cagnotte-unit {
  font-size: 14px;
  font-weight: 400;
  color: #666;
}

/*========= gestion du scan de la facture d'achat =======*/
.scan-preview-item {
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}

.scan-preview-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.preview-image {
  transition: all 0.2s ease;
}

.preview-image:hover {
  transform: scale(1.05);
}

#cropContainer {
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Scrollbar personnalisée pour la zone de prévisualisation */
#scanPreview::-webkit-scrollbar {
  width: 6px;
}

#scanPreview::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#scanPreview::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

#scanPreview::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.collaborateur-itemm {
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.collaborateur-item:hover {
  background-color: #e7f1ff;
}

.collaborateur-item.selected {
  background-color: #e7f1ff;
  border-left: 3px solid #0d6efd;
}

.collaborateur:last-child {
  border-bottom: none !important;
}

/* ==== style de gestion des produits dans le devis/facture ===*/
#attachListsModal .table-container,
#addContactsModal .table-container {
  max-height: 55vh;
  overflow-y: auto;
}

/* Animation pour l'affichage de l'encart */
.product-detail-card {
  border-left: 1px solid #eeeeee;
  height: 100%;
  /* box-shadow: -1px 0 6px rgba(0, 0, 0, 0.06); */
}

.encart-prix-marge {
  position: relative;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 2px solid #ff9900;
  border-radius: 8px;
}

.encart-prix-marge > div {
  text-align: center;
}

.product-detail-card > .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(
    135deg,
    var(--blue-dark-bg) 0%,
    var(--bs-primary) 100%
  );
  color: #fff;
}

/* ========================= */
.products-container,
.product-info-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  min-height: 45vh;
  max-height: 670px;
  overflow-y: auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 9px;
  align-content: start;
}

.product-card {
  position: relative;
  background-color: #fff;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: default;
  transition: all 0.18s ease;
  box-shadow: 0 1px 4px #0000000a;
  height: 190px;
  overflow: hidden;
}

.product-card.small-card {
  height: 165px;
}

.product-card.middle-card {
  height: 205px;
}

#repairModal .products-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
}

#repairModal .product-card {
  height: 210px;
}

#repairModal .product-image {
  height: 55px;
}

.product-card .product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
  min-height: 32px;
}

.product-card .product-name {
  flex: 1;
  overflow: hidden;
  font-weight: 500;
  font-size: 12px;
  margin: 0;
  line-height: 1.3;
  white-space: normal;
}

.product-card .product-image {
  width: 100%;
  height: 80px;
  background-color: #f5f5f5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #f0f0f0;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.product-card .actions-btn {
  position: absolute;
  display: flex;
  gap: 4px;
  bottom: 10px;
  right: 10px;
  z-index: 10;
  background: #fff;
}

.product-card.is-locked,
.product-card:hover,
.product-card.active {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(255, 214, 81, 0.25);
}

#bibliotheque-libraries .product-card:hover {
  transform: translateY(-2px);
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.3);
}

.product-price {
  font-size: 11px;
  color: #28a745;
  /* margin-bottom: 12px; */
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

/** ======= style tutoriel ==== **/
#tutorielModal .modal-content {
  border: none;
  overflow: hidden;
}

#tutorielModal .modal-header {
  background: linear-gradient(135deg, var(--blue-bg) 0%, var(--purple-bg) 100%);
  border-radius: 0.75rem 0.75rem 0 0;
  padding: 1.5rem 1rem 0.5rem 1rem;
}

#tutorielModal .modal-body {
  max-height: 65vh;
  overflow: hidden;
}

.tutoriel-description {
  height: 80%;
  overflow: auto;
}

/* Bouton play */
.play-btn {
  width: 60px;
  height: 60px;
  background: rgba(var(--bs-warning-rgb), 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(var(--bs-warning-rgb), 0.3);
}

.play-btn:hover {
  transform: scale(1.1);
  background: rgba(var(--bs-warning-rgb), 0.3);
}

.video-thumbnail {
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-thumbnail:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-thumbnail:hover .play-btn {
  background: rgba(var(--bs-warning-rgb), 0.4);
}

/* Icônes circulaires */
.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Bouton tutoriel */
.tutoriel-btn,
.bg-gardient-blue {
  background: linear-gradient(135deg, var(--blue-bg) 0%, var(--purple-bg) 100%);
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tutoriel-btn {
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 10px;
}

.tutoriel-btn:hover,
.bg-gardient-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, var(--purple-bg) 0%, var(--blue-bg) 100%);
}

.tutoriel-btn:active {
  transform: translateY(0);
}

/* Animation d'entrée */
#tutorielModal .modal-content {
  animation: fadeInUp 0.5s ease;
}

/* Corrige les sauts de ligne Quill */
.tutoriel-description p {
  margin-bottom: 0 !important;
}

/* Image plein largeur */
#featureImage {
  max-height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.options-container {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}

.options-container::-webkit-scrollbar {
  width: 5px;
}

.options-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
}

#settings-container label,
.config-title {
  font-size: 11px !important;
  color: #888 !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  margin-bottom: 4px !important;
  display: block !important;
}

.config-title {
  margin-top: 10px;
}

#settings-container .form-check-label {
  color: #505050 !important;
  text-transform: none !important;
  font-weight: 400 !important;
}

#shipping-inputs .form-check,
#shipping-inputs .form-check-label {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
}

#menuiserie h6,
.list-group-item {
  color: #888 !important;
}

#empty-selection {
  font-size: 12px;
  color: #bbb;
}

.list-group-item-action.additional-email {
  background-color: #f5f5f5 !important;
  border-radius: 5px !important;
  margin-bottom: 4px !important;
  font-size: 11px !important;
  color: #555 !important;
}

#products-container {
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
}

.list-product {
  border: 1px solid #eeeeee;
  border-radius: 7px;
  padding: 8px 10px;
  background-color: #fafafa;
  transition: border-color 0.15s;
}

.list-product .chart-product-name {
  color: #404040 !important;
  padding-bottom: 4px;
  margin-bottom: 5px;
  margin-right: 5px;
  border-bottom: 1px solid #efefef;
  font-weight: 500;
  font-size: 11px;
}

.search-product {
  border: 1px solid #e0e0e0;
  border-top: 0;
}

#urgency-btns label {
  flex: 1 !important;
  padding: 5px 2px !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  text-align: center !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #777;
  transition: all 0.15s ease;
  text-transform: none !important;
  /* text-transform: lowercase !important; */
}

#urgency-btns .btn-check:checked + .btn {
  border: 1px solid #e77131 !important;
  color: #e77131 !important;
  background: #e7713112 !important;
}

.edit-product-btn,
.copy-product-btn,
.delete-product-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: #777;
  transition: color 0.15s;
}

.edit-product-btn:hover {
  color: var(--primary);
}

.copy-product-btn:hover {
  color: var(--success);
}

.delete-product-btn:hover {
  color: #dc3545;
}

.price-request-history {
  background-color: #fff;
  color: #505050;
  font-family: Montserrat, sans-serif;
  font-weight: 400;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-right: -10px;
}

.price-request-history:hover {
  border-color: #e77131;
}

.kpi-card {
  transition: transform 0.2s;
  border-left: 4px solid transparent;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}
.kpi-card.success {
  border-left-color: #28a745;
}
.kpi-card.warning {
  border-left-color: #ffc107;
}
.kpi-card.info {
  border-left-color: #17a2b8;
}
.kpi-card.primary {
  border-left-color: #007bff;
}
.kpi-card.secondary {
  border-left-color: #6c757d;
}

.image-box {
  /* max-width: 300px;
    min-height: 200px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px dashed rgba(var(--bs-secondary-rgb), 1);
  padding: 16px;
}

.btn-smm {
  padding: 0.25rem 0.25rem !important;
  font-size: 8px !important;
  border-radius: 5px !important;
}

/* ===== style pour les card library ===== */
.library-card {
  width: 175px;
  height: 210px; /* 151px */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid #ffe5d0;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.library-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.avatar-wrapper {
  width: 49px;
  height: 47px;
  border: 1px solid #ffe5d0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* border-radius: 50%; */
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-letter {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffe5d0;
  color: var(--primary);
  font-weight: bold;
  border-radius: 50%;
}

/** =============== PREVIEW DOCUMENTATION ================ **/
#preview-docs-list .list-group-item {
  border-left: none;
  border-right: none;
  border-radius: 0;
}

#preview-docs-list .list-group-item:first-child {
  border-top: none;
}

#preview-docs-list .list-group-item:last-child {
  border-bottom: none;
}

.doc-link {
  color: #0d6efd;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.doc-link:hover {
  text-decoration: underline;
}

.doc-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 6px;
  color: #6c757d;
}

.doc-info {
  flex: 1;
}

.doc-title {
  font-weight: 500;
  color: #212529;
}

.doc-meta {
  font-size: 10px;
  color: #6c757d;
}

.doc-actions {
  display: flex;
  gap: 0.5rem;
}

.doc-actions .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

.file-pdf {
  color: #dc3545;
}
.file-doc {
  color: #0d6efd;
}
.file-xls {
  color: #198754;
}
.file-txt {
  color: #6c757d;
}
.link-icon {
  color: #0d6efd;
}

/* --------------------- */
.docs-mini-list {
  max-height: 150px;
  overflow-y: auto;
}

.doc-mini-item {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-bottom: 1px dashed #dee2e6;
  font-size: 0.9rem;
}

.doc-mini-item:last-child {
  border-bottom: none;
}

.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  background: white;
}

.doc-item .doc-info {
  flex: 1;
}

.doc-item .doc-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.doc-item .doc-meta {
  font-size: 0.8rem;
  color: #6c757d;
}

.doc-item .doc-actions {
  display: flex;
  gap: 0.5rem;
}

.doc-item .btn-icon {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

/*
#preview-docs-list {
    display: flex;
    flex-direction: column;
    height: calc(95vh - 200px);
} */

#docsContent {
  max-height: 200px;
  overflow-y: auto;
  margin-left: 12px;
}

#preview-title-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1; /* prend tout l'espace restant */
}

.preview-body {
  position: relative;
  display: flex;
  flex-direction: column;
  /* height: calc(100% - 50px); */
}

/*
#iframe-wrapper {
    flex: 1;
    display: flex;
} */

/* IFRAME WRAPPER */
.iframe-wrapper {
  height: calc(95vh - 400px);
  display: flex;
}

#productPreviewModal .iframe-wrapper {
  height: 350px;
  display: flex;
}

/* IFRAME */
#previewFrame {
  width: 100%;
  height: 100%;
  border: none;
}

.info-modal .modal-content {
  border-radius: 14px;
  overflow: hidden;
  animation: popIn 0.15s ease-out;
}

.info-modal .modal-body {
  font-size: 0.9rem;
  line-height: 1.4;
}

.btn-quick-action {
  /* background: linear-gradient(135deg, var(--primary) 0%, #3a56d4 100%); */
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  color: #fff;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

/*
.shade-swatch {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.15);
} */

.shade-swatch {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid #ddd;
  transition: transform 0.2s;
  cursor: pointer;
}

.shade-swatch:hover {
  transform: scale(1.2);
}

#shadeCategoryList .shade-category-item {
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 4px;
}
#shadeCategoryList .shade-category-item:hover {
  background: #f0f0f0;
}
#shadeCategoryList .shade-category-item.active {
  background: #e7f0ff;
  border-left: 3px solid #0d6efd;
}
#shadeCategoryList .shade-category-item .category-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
}

.category-item .shade-count {
  font-size: 0.75rem;
  background: #e9ecef;
  padding: 2px 10px;
  border-radius: 10px;
}

@keyframes popIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.info-modal .modal-content {
  border-radius: 14px;
  overflow: hidden;
  animation: popIn 0.15s ease-out;
}

.info-modal .modal-body {
  font-size: 0.9rem;
  line-height: 1.4;
}

.btn-quick-action {
  /* background: linear-gradient(135deg, var(--primary) 0%, #3a56d4 100%); */
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  color: #fff;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==== Bandeau affichant les jours d'essai restant ==== */
.trial-countdown-banner {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  color: #1e293b;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 10%,
    rgba(255, 154, 60, 0.95) 50%,
    rgba(255, 107, 107, 0.92) 100%
  );
  /* overflow: hidden; */
  isolation: isolate;
  animation: trialBannerIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* SHIMMER PREMIUM */
.trial-countdown-shimmer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 32%,
    rgba(255, 107, 107, 0.318) 45%,
    rgba(255, 107, 107, 0.08) 50%,
    rgba(255, 255, 255, 0.5) 55%,
    transparent 68%,
    transparent 100%
  );
  background-size: 240% 100%;
  transform: skewX(-12deg);
  pointer-events: none;
  animation: trialBannerShimmer 8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes trialBannerShimmer {
  0% { background-position: 240% 0; opacity: 0; }
  15% { opacity: 1; }
  80% { opacity: 1; }
  100% { background-position: -240% 0; opacity: 0; }
}

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

.trial-countdown-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.trial-countdown-text .title,
.trial-countdown-text .description {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.trial-countdown-text .title {
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.trial-countdown-text .description {
  font-size: 10px;
}

.trial-countdown-cta {
  flex-shrink: 0;
  font-weight: 500;
  font-size: 10px;
  white-space: nowrap;
  border: 1px solid #1a1a1a;
  background: #1a1a1a;
  color: #fff;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(60, 50, 40, 0.06);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.trial-countdown-cta:hover {
  background: #fff;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.12);
}

.trial-countdown-cta:active {
  transform: translateY(0);
}

.trial-countdown-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  border-radius: 10px;
  font-size: 0.85rem;
  background: linear-gradient(135deg, #ff9a3c 0%, #ff6b6b 100%);
  border-left-color: #ff9a3c;
  box-shadow: 0 2px 6px rgba(255, 107, 107, 0.25);
  backdrop-filter: blur(2px);
}

.trial-hourglass {
  display: inline-block;
  transform-origin: center;
  animation: trial-hourglass-flip 4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  text-shadow: 0 1px 2px rgba(120, 90, 30, 0.2);
}

@keyframes trial-hourglass-flip {
  0%, 35% { transform: rotate(0deg) scale(1); }
  45% { transform: rotate(180deg) scale(1.1); }
  55%, 100% { transform: rotate(180deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .trial-countdown-banner,
  .trial-countdown-shimmer,
  .trial-hourglass {
    animation: none;
  }
  .trial-countdown-cta {
    transition: none;
  }
}

/* ==== Bandeau affichant les jours d'essai restant ==== */
.trial-countdown-banner {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  color: #1e293b;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 10%,
    rgba(255, 154, 60, 0.95) 50%,
    rgba(255, 107, 107, 0.92) 100%
  );
  /* overflow: hidden; */
  isolation: isolate;
  animation: trialBannerIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* SHIMMER PREMIUM */
.trial-countdown-shimmer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 32%,
    rgba(255, 107, 107, 0.318) 45%,
    rgba(255, 107, 107, 0.08) 50%,
    rgba(255, 255, 255, 0.5) 55%,
    transparent 68%,
    transparent 100%
  );
  background-size: 240% 100%;
  transform: skewX(-12deg);
  pointer-events: none;
  animation: trialBannerShimmer 8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes trialBannerShimmer {
  0% { background-position: 240% 0; opacity: 0; }
  15% { opacity: 1; }
  80% { opacity: 1; }
  100% { background-position: -240% 0; opacity: 0; }
}

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

.trial-countdown-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.trial-countdown-text .title,
.trial-countdown-text .description {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.trial-countdown-text .title {
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.trial-countdown-text .description {
  font-size: 10px;
}

.trial-countdown-cta {
  flex-shrink: 0;
  font-weight: 500;
  font-size: 10px;
  white-space: nowrap;
  border: 1px solid #1a1a1a;
  background: #1a1a1a;
  color: #fff;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(60, 50, 40, 0.06);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.trial-countdown-cta:hover {
  background: #fff;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.12);
}

.trial-countdown-cta:active {
  transform: translateY(0);
}

.trial-countdown-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  border-radius: 10px;
  font-size: 0.85rem;
  background: linear-gradient(135deg, #ff9a3c 0%, #ff6b6b 100%);
  border-left-color: #ff9a3c;
  box-shadow: 0 2px 6px rgba(255, 107, 107, 0.25);
  backdrop-filter: blur(2px);
}

.trial-hourglass {
  display: inline-block;
  transform-origin: center;
  animation: trial-hourglass-flip 4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  text-shadow: 0 1px 2px rgba(120, 90, 30, 0.2);
}

@keyframes trial-hourglass-flip {
  0%, 35% { transform: rotate(0deg) scale(1); }
  45% { transform: rotate(180deg) scale(1.1); }
  55%, 100% { transform: rotate(180deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .trial-countdown-banner,
  .trial-countdown-shimmer,
  .trial-hourglass {
    animation: none;
  }
  .trial-countdown-cta {
    transition: none;
  }
}


















@keyframes popIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 1200px) {
  .my-custom-tab .nav-tabs .nav-link {
    padding: 0.5rem 0.65rem;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .profile-doc {
    flex-direction: column;
    height: auto;
    width: 100vw;
    max-width: 100%;
  }
  .profile-doc {
    flex-direction: column;
    height: auto;
    width: 100vw;
    max-width: 100%;
  }

  .factures-container {
    max-height: 60vh;
  }
  .factures-container {
    max-height: 60vh;
  }

  .infos-container {
    max-height: 20vh;
  }
  .infos-container {
    max-height: 20vh;
  }

  .infos-box {
    max-height: 100%;
  }
  .infos-box {
    max-height: 100%;
  }

  .preview-container {
    max-height: 50vh;
  }
  .preview-container {
    max-height: 50vh;
  }

  .preview-box {
    max-height: 100%;
  }
  .preview-box {
    max-height: 100%;
  }

  .reglage-sidebar {
    width: 100%;
    min-height: auto;
    height: auto;
    margin-top: 10px !important;
  }

  .access-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .access-avatar {
    margin-bottom: 8px;
    margin-right: 0;
  }

  .access-actions {
    margin-top: 8px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .my-custom-tab .nav-tabs .nav-link {
    padding: 0.35rem 0.5rem;
    font-size: 13px;
  }
  .my-custom-tab .badge-certified {
    top: 10px;
    right: 10px;
    font-size: 12px;
  }
  .my-custom-tab .avatar-wrapper {
    width: 100px;
    height: 100px;
  }
  .cagnotte-container {
    padding: 12px 24px;
  }
  .cagnotte-value {
    font-size: 24px;
  }
  .reglage-sidebar {
    width: 100%;
    min-height: auto;
    height: auto;
    margin-top: 10px !important;
  }

  .access-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .access-avatar {
    margin-bottom: 8px;
    margin-right: 0;
  }

  .access-actions {
    margin-top: 8px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .my-custom-tab .nav-tabs .nav-link {
    padding: 0.35rem 0.5rem;
    font-size: 13px;
  }
  .my-custom-tab .badge-certified {
    top: 10px;
    right: 10px;
    font-size: 12px;
  }
  .my-custom-tab .avatar-wrapper {
    width: 100px;
    height: 100px;
  }
  .cagnotte-container {
    padding: 12px 24px;
  }
  .cagnotte-value {
    font-size: 24px;
  }

  #docsContent {
    max-height: none;
    height: auto;
    overflow: visible !important;
    margin-left: 0;
  }

  .preview-body {
    min-height: 250px;
  }

  #previewFrame {
    height: auto;
  }
}

@media (max-width: 564px) {
  .my-custom-tab .avatar-wrapper {
    width: 80px;
    height: 80px;
  }

  .products-container {
    padding: 0px;
    padding-right: 5px;
  }
  
  .trial-countdown-cta span {
    display: none;
  }
}

/* Gestion des chantiers */
.chantier-nav {
  position: relative;
}

.sidebar .chantier-nav__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  text-align: left;
}

.chantier-nav__chevron {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.chantier-nav__trigger[aria-expanded="true"] .chantier-nav__chevron {
  transform: rotate(90deg);
}

.chantier-nav-menu {
  width: 292px;
  padding: 0.6rem;
  border: 1px solid #f1d4c5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(244, 111, 34, 0.16);
  z-index: 1090;
}

.chantier-nav-menu[popover] {
  position: fixed;
  inset: auto;
  margin: 0;
}

.chantier-nav-menu[hidden] {
  display: none;
}

.chantier-nav-menu > p {
  margin: 0;
  padding: 0.45rem 0.7rem 0.55rem;
  color: #f46f22;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
}

.chantier-nav-menu a {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  color: #172033;
  text-decoration: none;
}

.chantier-nav-menu a:hover,
.chantier-nav-menu a:focus-visible,
.chantier-nav-menu a.active {
  background: #fff3eb;
  color: #172033;
}

.chantier-nav-menu a.active {
  box-shadow: inset 3px 0 0 #f46f22;
}

.chantier-nav-menu a i {
  width: 18px;
  color: #f46f22;
  text-align: center;
}

.chantier-workspace {
  min-height: calc(100vh - 70px);
  background: #f4f7fa;
}

.chantier-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto 1.25rem;
  max-width: 1540px;
}

.chantier-page-header h1 {
  margin: 0;
  color: #102541;
  font-size: 1.65rem;
  line-height: 1.25;
}

.chantier-page-header p {
  margin: 0.35rem 0 0;
  color: #69778c;
}

.chantier-page-header__eyebrow {
  color: #f46f22 !important;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
}

.chantier-new-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.chantier-navigation-shell {
  max-width: 1540px;
  margin: 0 auto 1rem;
  padding: 0.35rem;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
}

.chantier-context-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 0 0.35rem;
  border-bottom: 1px solid #eef2f6;
}

.chantier-context-tabs a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  color: #465870;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.chantier-context-tabs a:hover,
.chantier-context-tabs a:focus-visible {
  color: #102541;
  background: #fff8f3;
}

.chantier-context-tabs a.active {
  color: #102541;
  background: #fff3eb;
  box-shadow: inset 0 -2px 0 #f46f22;
}

.chantier-context-tabs a i {
  color: #f46f22;
}

.chantier-section-tabs {
  display: flex;
  margin: 0.35rem 0 0;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0;
}

.chantier-navigation-shell .chantier-section-tabs:first-child {
  margin-top: 0;
}

.chantier-section-tabs a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  color: #465870;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
}

.chantier-section-tabs a:hover,
.chantier-section-tabs a:focus-visible,
.chantier-section-tabs a.active {
  background: #fff3eb;
  color: #102541;
}

.chantier-section-tabs a.active {
  box-shadow: inset 0 -2px 0 #f46f22;
}

.chantier-section-tabs a i {
  color: #f46f22;
}

.chantier-custom-period.d-none {
  display: none !important;
}

.chantier-kpis,
.chantier-overview-grid,
.chantier-panel {
  width: 100%;
  max-width: 1540px;
  margin-right: auto;
  margin-left: auto;
}

.chantier-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.chantier-kpi,
.chantier-panel {
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
}

.chantier-kpi {
  min-height: 114px;
  padding: 1rem 1.15rem;
}

.chantier-kpi span {
  display: block;
  margin-bottom: 0.7rem;
  color: #69778c;
  font-size: 0.83rem;
}

.chantier-kpi strong {
  color: #102541;
  font-size: 1.6rem;
  font-weight: 500;
}

.chantier-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.9fr);
  gap: 0.9rem;
}

.chantier-overview-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.chantier-panel {
  padding: 1.1rem;
}

.chantier-panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chantier-panel__heading h2,
.chantier-planning-toolbar h2 {
  margin: 0;
  color: #102541;
  font-size: 1.08rem;
  font-weight: 500;
}

.chantier-panel__heading p {
  margin: 0.25rem 0 0;
  color: #768397;
  font-size: 0.82rem;
}

.chantier-finance-summary {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  gap: 1.2rem;
  min-height: 188px;
}

.chantier-finance-primary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem;
  border-radius: 8px;
  background: #172a46;
  color: #fff;
}

.chantier-finance-primary span,
.chantier-finance-primary small {
  color: #cbd5e1;
}

.chantier-finance-primary strong {
  margin: 0.55rem 0;
  font-size: 2rem;
  font-weight: 500;
}

.chantier-finance-breakdown {
  display: grid;
  gap: 0;
  margin: 0;
}

.chantier-finance-breakdown > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e7ecf2;
}

.chantier-finance-breakdown > div:last-child {
  border-bottom: 0;
}

.chantier-finance-breakdown dt {
  color: #69778c;
  font-weight: 400;
}

.chantier-finance-breakdown dd {
  margin: 0;
  color: #102541;
  font-size: 1.05rem;
  font-weight: 500;
}

.chantier-priority-list {
  display: grid;
  gap: 0.35rem;
}

.chantier-priority-item {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: transparent;
  color: #172033;
  text-align: left;
}

.chantier-priority-item:last-child {
  border-bottom: 0;
}

.chantier-priority-item:disabled {
  cursor: default;
  opacity: 1;
}

.chantier-priority-item strong,
.chantier-priority-item small {
  display: block;
}

.chantier-priority-item strong {
  font-weight: 500;
}

.chantier-priority-item small {
  margin-top: 0.2rem;
  color: #778397;
}

.chantier-empty-state {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: #748196;
  text-align: center;
}

.chantier-empty-state i {
  color: #46a46c;
}

.chantier-kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  max-width: 1540px;
  margin: 0 auto;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.chantier-kanban-actions {
  display: flex;
  max-width: 1540px;
  justify-content: flex-end;
  margin: 0 auto 0.75rem;
}

.chantier-kanban-column {
  min-height: 320px;
  padding: 0.8rem;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease;
}

.chantier-kanban-column.is-drag-over {
  border-color: #f46f22;
  background: #fff7f1;
}

.chantier-kanban-column h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  color: #102541;
  font-size: 0.92rem;
  font-weight: 500;
}

.chantier-kanban-column h2 strong {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: #eef3f7;
  color: #5c6b80;
  font-size: 0.76rem;
}

.chantier-kanban-column__items {
  display: grid;
  gap: 0.55rem;
  min-height: 260px;
}

.chantier-kanban-column__items:has(:not(.chantier-empty-state)) {
  grid-auto-rows: min-content;
}

.chantier-kanban-card {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  height: fit-content;
  padding: 0.62rem 0.7rem;
  border: 1px solid #e1e7ee;
  border-radius: 8px;
  background: #f9fbfd;
  color: #26364d;
  text-align: left;
}

.chantier-kanban-card:hover,
.chantier-kanban-card:focus-visible {
  border-color: #f46f22;
  background: #fff7f1;
}

.chantier-kanban-card[draggable="true"] {
  cursor: grab;
}

.chantier-kanban-card[draggable="true"]:active {
  cursor: grabbing;
}

.chantier-kanban-card.is-dragging {
  opacity: 0.55;
}

.chantier-kanban-card strong {
  overflow: hidden;
  color: #102541;
  font-size: 0.92rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chantier-kanban-card span {
  overflow: hidden;
  color: #778397;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chantier-column-list {
  display: grid;
  gap: 0.55rem;
}

.chantier-column-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #f9fbfd;
}

.chantier-column-item.is-editing {
  border-color: #ffb385;
  background: #fff7f1;
}

.chantier-column-item > span:first-child {
  display: grid;
  min-width: 0;
}

.chantier-column-item strong,
.chantier-linked-item strong {
  overflow: hidden;
  color: #102541;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chantier-column-item small,
.chantier-linked-item small {
  color: #778397;
  font-size: 0.75rem;
}

.chantier-column-form__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.chantier-column-form__heading strong {
  color: #102541;
  font-weight: 500;
}

.chantier-column-form__heading .btn-link {
  padding: 0;
  color: #ed6b2d;
  font-weight: 500;
  text-decoration: none;
}

.chantier-column-form__heading .btn-link:hover,
.chantier-column-form__heading .btn-link:focus-visible {
  color: #c74d15;
  text-decoration: underline;
}

.chantier-linked-list {
  display: grid;
  gap: 0.55rem;
}

.chantier-linked-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
  color: #26364d;
  text-align: left;
}

.chantier-linked-item:hover,
.chantier-linked-item:focus-visible {
  border-color: #f46f22;
  background: #fff7f1;
}

.chantier-linked-item > span {
  display: grid;
  min-width: 0;
}

.chantier-table-wrap {
  border: 1px solid #e2e7ed;
  border-radius: 8px;
}

.chantier-table {
  min-width: 980px;
}

.chantier-table__select {
  width: 42px;
  text-align: center;
}

.chantier-table thead th {
  padding: 0.75rem;
  border-bottom: 1px solid #dce3eb;
  background: #f7f9fb;
  color: #5f6d82;
  font-size: 0.76rem;
  font-weight: 500;
}

.chantier-table tbody td {
  padding: 0.85rem 0.75rem;
  color: #26364d;
}

.chantier-clickable-row,
.chantier-subcontractor-row {
  cursor: pointer;
}

.chantier-clickable-row:hover td,
.chantier-clickable-row:focus-visible td,
.chantier-subcontractor-row:hover td,
.chantier-subcontractor-row:focus-visible td {
  background: #fff7f1;
}

.chantier-table__title {
  display: block;
  max-width: 280px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: #102541;
  font-weight: 500;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chantier-table__meta {
  display: block;
  max-width: 300px;
  overflow: hidden;
  margin-top: 0.18rem;
  color: #778397;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chantier-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  background: #f4f6f8;
  color: #4c5b70;
  font-size: 0.72rem;
  white-space: nowrap;
}

.chantier-status.is-progress,
.chantier-calendar__event.is-progress {
  border-color: #b8d3ee;
  background: #e9f3fb;
  color: #185b8d;
}

.chantier-status.is-warning,
.chantier-calendar__event.is-warning {
  border-color: #f3c89e;
  background: #fff3e9;
  color: #a54b12;
}

.chantier-status.is-done,
.chantier-calendar__event.is-done {
  border-color: #b9ddc7;
  background: #edf8f1;
  color: #287447;
}

.chantier-status.is-cancelled,
.chantier-calendar__event.is-cancelled {
  border-color: #e3c6c6;
  background: #faf0f0;
  color: #934545;
}

.chantier-action-menu {
  display: inline-flex;
  width: 36px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.chantier-row-actions,
.chantier-reception-actions {
  display: inline-flex;
  gap: 0.35rem;
  justify-content: flex-end;
}

.chantier-margin {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
}

.chantier-margin small {
  color: #778397;
  font-size: 0.72rem;
}

.chantier-margin.text-danger small {
  color: #dc3545;
}

.chantier-margin.text-success small {
  color: #198754;
}

.chantier-status-select {
  min-width: 150px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.chantier-status-select.is-progress {
  border-color: #b8d3ee;
  background-color: #e9f3fb;
  color: #185b8d;
}

.chantier-status-select.is-warning {
  border-color: #f3c89e;
  background-color: #fff3e9;
  color: #a54b12;
}

.chantier-status-select.is-done {
  border-color: #b9ddc7;
  background-color: #edf8f1;
  color: #287447;
}

.chantier-status-select.is-cancelled {
  border-color: #e3c6c6;
  background-color: #faf0f0;
  color: #934545;
}

.chantier-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #f3c89e;
  border-radius: 8px;
  background: #fff7ef;
  color: #26364d;
}

.chantier-filter-panel {
  margin-bottom: 0.9rem;
  padding: 0.85rem;
}

.chantier-filters {
  display: grid;
  grid-template-columns:
    minmax(260px, 1.4fr) minmax(190px, 0.7fr) minmax(200px, 0.8fr)
    auto;
  gap: 0.65rem;
}

.chantier-search {
  position: relative;
}

.chantier-search i {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  color: #8793a5;
  transform: translateY(-50%);
}

.chantier-search input {
  width: 100%;
  height: 100%;
  min-height: 42px;
  padding: 0.55rem 0.8rem 0.55rem 2.35rem;
  border: 1px solid #d6dee8;
  border-radius: 6px;
  outline: 0;
}

.chantier-search input:focus {
  border-color: #f46f22;
  box-shadow: 0 0 0 0.2rem rgba(244, 111, 34, 0.14);
}

.chantier-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 0.3rem;
  margin-top: 1rem;
}

.chantier-pagination a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #d8e0e9;
  border-radius: 6px;
  color: #44536a;
  text-decoration: none;
}

.chantier-pagination a.active {
  border-color: #f46f22;
  background: #f46f22;
  color: #fff;
}

.chantier-planning-panel {
  padding: 1rem;
}

.chantier-planning-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.chantier-planning-toolbar > :last-child {
  justify-self: end;
}

.chantier-calendar-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid #d8e0e9;
  border-radius: 8px;
  background: #fff;
}

.chantier-calendar-switch button {
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #465870;
  font-weight: 500;
}

.chantier-calendar-switch button.active,
.chantier-calendar-switch button:hover,
.chantier-calendar-switch button:focus-visible {
  background: #f46f22;
  color: #fff;
}

.chantier-calendar-switch button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.18rem rgba(244, 111, 34, 0.16);
}

.chantier-revenue-chart {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dce3eb;
}

.chantier-revenue-chart svg {
  display: block;
  width: 100%;
  min-height: 180px;
}

.chantier-revenue-chart text {
  fill: #69778c;
  font-size: 0.78rem;
}

.chantier-revenue-chart__area {
  fill: rgba(244, 111, 34, 0.12);
}

.chantier-revenue-chart__grid {
  stroke: #e8edf3;
  stroke-width: 1;
}

.chantier-revenue-chart__line {
  fill: none;
  stroke: #f46f22;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chantier-revenue-chart__point {
  fill: #fff;
  stroke: #f46f22;
  stroke-width: 3;
}

.chantier-calendar-scroll {
  overflow-x: auto;
  border: 1px solid #dce3eb;
  border-radius: 8px;
}

.chantier-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(142px, 1fr));
  min-width: 994px;
}

.chantier-calendar.is-day {
  display: block;
  min-width: 720px;
}

.chantier-calendar.is-week {
  grid-template-columns: repeat(7, minmax(164px, 1fr));
  min-width: 1148px;
}

.chantier-calendar__loading {
  grid-column: 1 / -1;
  min-height: 320px;
  padding: 2rem;
  color: #748196;
  text-align: center;
}

.chantier-calendar__weekday {
  padding: 0.65rem;
  border-right: 1px solid #dce3eb;
  border-bottom: 1px solid #dce3eb;
  background: #f6f8fa;
  color: #56657a;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

.chantier-calendar__weekday span,
.chantier-calendar__weekday strong {
  display: block;
  font-weight: 500;
}

.chantier-calendar__day {
  position: relative;
  min-height: 122px;
  padding: 0.5rem;
  border-right: 1px solid #e0e6ed;
  border-bottom: 1px solid #e0e6ed;
  background: #fff;
}

.chantier-calendar__day.is-outside {
  background: #f8f9fb;
  color: #9ba5b4;
}

.chantier-calendar__day.is-today {
  box-shadow: inset 0 0 0 2px #f46f22;
}

.chantier-calendar__date {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.chantier-calendar__event {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  width: 100%;
  overflow: hidden;
  margin-bottom: 0.25rem;
  padding: 0.28rem 0.4rem;
  border: 1px solid #d8e1ea;
  border-radius: 4px;
  background: #f2f5f8;
  color: #35465d;
  font-size: 0.7rem;
  text-align: left;
}

.chantier-calendar__event strong,
.chantier-calendar__event span {
  display: block;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chantier-calendar__event span {
  color: #748196;
  font-size: 0.66rem;
}

.chantier-calendar__day--week {
  min-height: 420px;
}

.chantier-calendar__empty {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  color: #748196;
  font-size: 0.8rem;
  text-align: center;
}

.chantier-calendar-day-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 68px;
  border-bottom: 1px solid #e0e6ed;
  background: #fff;
}

.chantier-calendar-day-row__time {
  padding: 0.8rem 0.75rem;
  border-right: 1px solid #e0e6ed;
  color: #748196;
  font-size: 0.78rem;
  text-align: right;
}

.chantier-calendar-day-row__content {
  padding: 0.55rem 0.75rem;
}

.chantier-management-modal .modal-dialog {
  max-width: min(1080px, calc(100vw - 1.5rem));
  margin: 0.75rem auto;
}

.chantier-management-modal .modal-content {
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
  border: 0;
  border-radius: 8px;
}

.chantier-management-modal form {
  display: flex;
  min-height: 0;
  max-height: calc(100vh - 1.5rem);
  flex-direction: column;
}

.chantier-management-modal .modal-header,
.chantier-management-modal .modal-footer {
  flex: 0 0 auto;
  background: #fff;
}

.chantier-management-modal .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  background: #f6f8fa;
}

.chantier-management-modal .modal-header,
.chantier-fiche-modal .modal-header {
  min-height: 72px;
  border-bottom: 1px solid #e2e8f0;
}

.chantier-management-modal .modal-footer {
  border-top: 1px solid #e2e8f0;
}

.chantier-editor-tabs,
.chantier-fiche-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.chantier-editor-tabs button,
.chantier-fiche-tabs button {
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #172033;
  font-weight: 500;
  white-space: nowrap;
}

.chantier-editor-tabs button:hover,
.chantier-editor-tabs button:focus-visible,
.chantier-editor-tabs button.active,
.chantier-fiche-tabs button:hover,
.chantier-fiche-tabs button:focus-visible,
.chantier-fiche-tabs button.active {
  border-color: #f46f22;
  background: #fff3eb;
  color: #f46f22;
}

.chantier-editor-tabs button:focus-visible,
.chantier-fiche-tabs button:focus-visible,
.chantier-nav-menu a:focus-visible,
.chantier-section-tabs a:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.18rem rgba(244, 111, 34, 0.16);
}

.chantier-editor-panel,
.chantier-fiche-panel {
  display: none;
}

.chantier-editor-panel.active,
.chantier-fiche-panel.active {
  display: block;
}

.chantier-editor-empty,
.chantier-editor-note {
  padding: 1rem;
  border: 1px dashed #d7e0ea;
  border-radius: 8px;
  background: #fbfcfe;
  color: #69778c;
}

.chantier-editor-empty strong,
.chantier-editor-note strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #102541;
  font-weight: 500;
}

.chantier-editor-empty p,
.chantier-editor-note p {
  margin: 0;
}

.chantier-address-suggestions {
  position: relative;
  z-index: 20;
  margin-top: 0.35rem;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 37, 65, 0.12);
  overflow: hidden;
}

.chantier-address-suggestion {
  display: block;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  background: #fff;
  color: #102541;
  text-align: left;
}

.chantier-address-suggestion:last-child {
  border-bottom: 0;
}

.chantier-address-suggestion:hover,
.chantier-address-suggestion:focus {
  background: #fff3ed;
  outline: none;
}

.chantier-address-suggestion span,
.chantier-address-suggestion small {
  display: block;
}

.chantier-address-suggestion span {
  font-weight: 500;
}

.chantier-address-suggestion small {
  margin-top: 0.15rem;
  color: #69778c;
}

.chantier-map-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #fff;
}

.chantier-map-card strong {
  display: block;
  color: #102541;
  font-weight: 500;
}

.chantier-map-card p {
  margin: 0.25rem 0 0;
  color: #69778c;
}

.chantier-map-canvas {
  display: grid;
  min-height: 320px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #f5f8fb;
  color: #69778c;
}

.chantier-route-summary {
  width: fit-content;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: #fff3ed;
  color: #102541;
  font-weight: 500;
}

.chantier-date-field.is-muted {
  opacity: 0.55;
}

.chantier-fiche-modal .modal-dialog {
  max-width: min(1120px, calc(100vw - 1.5rem));
  margin: 0.75rem auto;
}

.chantier-fiche-modal .modal-content {
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
  border: 0;
  border-radius: 8px;
}

.chantier-fiche-modal .modal-body {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  background: #f6f8fa;
}

.chantier-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.chantier-fiche-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.chantier-fiche-toolbar h3 {
  margin: 0;
  color: #102541;
  font-size: 1rem;
  font-weight: 500;
}

.chantier-fiche-toolbar p {
  margin: 0.2rem 0 0;
  color: #778397;
  font-size: 0.8rem;
}

.chantier-fiche-finance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.chantier-fiche-finance article {
  min-height: 86px;
  padding: 0.9rem;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
}

.chantier-fiche-finance span {
  display: block;
  margin-bottom: 0.4rem;
  color: #69778c;
  font-size: 0.76rem;
}

.chantier-fiche-finance strong {
  color: #102541;
  font-size: 1.15rem;
  font-weight: 500;
}

.chantier-fiche-margin {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  margin: 0;
}

.chantier-fiche-margin strong {
  color: inherit;
}

.chantier-fiche-margin small {
  display: block;
  color: inherit;
  line-height: 1.2;
}

.chantier-fiche-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.chantier-mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.chantier-mini-calendar__day {
  min-height: 72px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  padding: 0.65rem;
  background: #fff;
  color: #667085;
}

.chantier-mini-calendar__day span {
  display: block;
  font-size: 0.75rem;
}

.chantier-mini-calendar__day strong {
  display: block;
  margin-top: 0.45rem;
  color: #10233f;
  font-size: 1.1rem;
  font-weight: 500;
}

.chantier-mini-calendar__day.is-active {
  border-color: #eb6d2f;
  background: #fff3eb;
}

.chantier-management-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.35rem;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  background: #f7f9fb;
}

.chantier-management-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #5f6d82;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chantier-management-tab:hover,
.chantier-management-tab:focus-visible {
  border-color: #ffd9c4;
  background: #fff7f1;
  color: #ed6b2d;
  outline: none;
}

.chantier-management-tab.active {
  border-color: #ffb385;
  background: #fff1e8;
  color: #102541;
  box-shadow: inset 0 -2px 0 #ed6b2d;
}

.chantier-check-picker {
  overflow: hidden;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
}

.chantier-check-picker__search {
  position: relative;
  border-bottom: 1px solid #e6edf4;
}

.chantier-check-picker__search i {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  z-index: 1;
  color: #7a8799;
  transform: translateY(-50%);
}

.chantier-check-picker__search .form-control {
  border: 0;
  border-radius: 0;
  padding-left: 2.25rem;
  box-shadow: none;
}

.chantier-check-picker__list {
  display: grid;
  gap: 0.2rem;
  max-height: 190px;
  overflow: auto;
  padding: 0.45rem;
}

.chantier-check-picker__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 34px;
  margin: 0;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  color: #26364d;
  cursor: pointer;
}

.chantier-check-picker__item:hover,
.chantier-check-picker__item:focus-within {
  background: #fff7f1;
}

.chantier-check-picker__item .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}

.chantier-check-picker__item .form-check-label {
  margin: 0;
  font-size: 0.88rem;
}

.chantier-check-picker__count {
  padding: 0.45rem 0.75rem;
  border-top: 1px solid #e6edf4;
  color: #6b778c;
  font-size: 0.78rem;
}

.chantier-info-row {
  padding: 0.75rem;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  background: #fff;
}

.chantier-info-row dt {
  margin-bottom: 0.25rem;
  color: #778397;
  font-size: 0.72rem;
  font-weight: 500;
}

.chantier-info-row__label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chantier-info-help {
  display: inline-grid;
  width: 1.1rem;
  height: 1.1rem;
  place-items: center;
  border: 1px solid #d7e0ea;
  border-radius: 50%;
  background: #fff;
  color: #778397;
  font-size: 0.62rem;
  line-height: 1;
}

.chantier-info-help:hover,
.chantier-info-help:focus {
  border-color: #eb6d2f;
  color: #eb6d2f;
  outline: none;
}

.chantier-info-row dd {
  margin: 0;
  color: #26364d;
  font-weight: 500;
}

.chantier-fiche-text,
.chantier-pv-card {
  margin-top: 0.75rem;
  padding: 0.9rem;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  background: #fff;
}

.chantier-fiche-text h3 {
  margin: 0 0 0.35rem;
  color: #102541;
  font-size: 0.92rem;
  font-weight: 500;
}

.chantier-fiche-text p {
  margin: 0;
  color: #5f6d82;
  white-space: pre-wrap;
}

.chantier-lot-grid,
.chantier-document-grid {
  display: grid;
  gap: 0.75rem;
}

.chantier-lot-card,
.chantier-document-card {
  padding: 0.85rem;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  background: #fff;
}

.chantier-lot-card header,
.chantier-document-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.chantier-lot-card h4,
.chantier-document-card h4 {
  margin: 0;
  color: #102541;
  font-size: 0.96rem;
  font-weight: 500;
}

.chantier-lot-card p,
.chantier-document-card p {
  margin: 0.35rem 0;
  color: #64748b;
}

.chantier-document-card small,
.chantier-task-item small {
  color: #778397;
}

.chantier-document-card__icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 6px;
  background: #fff1e8;
  color: #f46f22;
}

.chantier-card-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.3rem;
}

.chantier-task-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0;
}

.chantier-task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #f9fbfd;
}

.chantier-task-item strong,
.chantier-task-item small {
  display: block;
}

.chantier-form-section {
  padding: 1rem;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  background: #fff;
}

.chantier-form-section + .chantier-form-section {
  margin-top: 0.9rem;
}

.chantier-form-section__heading {
  margin-bottom: 0.85rem;
}

.chantier-form-section__heading h3 {
  margin: 0;
  color: #102541;
  font-size: 1rem;
  font-weight: 500;
}

.chantier-form-section__heading p {
  margin: 0.2rem 0 0;
  color: #778397;
  font-size: 0.8rem;
}

.chantier-collaborators {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.chantier-collaborators label {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #e0e6ed;
  border-radius: 6px;
}

.chantier-collaborators label:has(input:checked) {
  border-color: #f5ae82;
  background: #fff5ee;
}

.chantier-access-list {
  display: grid;
  gap: 0.75rem;
}

.chantier-access-section {
  display: grid;
  gap: 0.75rem;
}

.chantier-access-section + .chantier-access-section {
  padding-top: 0.8rem;
  border-top: 1px solid #eef2f6;
}

.chantier-access-section > h3 {
  margin: 0;
  color: #102541;
  font-size: 0.95rem;
  font-weight: 500;
}

.chantier-access-card {
  padding: 0.85rem;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
}

.chantier-access-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eef2f6;
}

.chantier-access-card header select {
  width: min(180px, 100%);
}

.chantier-access-card__person {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #102541;
}

.chantier-access-card__person span {
  display: grid;
  gap: 0.15rem;
}

.chantier-access-card__avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: #fff1e8;
  color: #f46f22;
}

.chantier-access-card__person strong,
.chantier-access-role,
.chantier-access-editor__topline strong {
  font-weight: 500;
}

.chantier-access-card__person small {
  color: #778397;
}

.chantier-access-role {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #f4f7fa;
  color: #68758a;
  font-size: 0.82rem;
}

.chantier-access-editor {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.75rem;
}

.chantier-access-editor__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #778397;
  font-size: 0.82rem;
}

.chantier-access-editor__topline strong {
  color: #102541;
  text-align: right;
}

.chantier-access-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chantier-access-preset {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  border: 1px solid #dce3eb;
  border-radius: 999px;
  background: #fff;
  color: #465870;
  font-size: 0.82rem;
}

button.chantier-access-preset {
  cursor: pointer;
}

.chantier-access-preset.is-active {
  border-color: #f46f22;
  background: #fff5ee;
  color: #102541;
}

.chantier-access-permissions-label {
  color: #555f6d;
  font-size: 0.9rem;
}

.chantier-access-accordion {
  display: grid;
  overflow: hidden;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
}

.chantier-access-group + .chantier-access-group {
  border-top: 1px solid #e6ebf1;
}

.chantier-access-group__header {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 0;
  background: #f4f6f8;
  color: #3f4650;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.chantier-access-group__header i {
  color: #102541;
  transition: transform 0.18s ease;
}

.chantier-access-group__header[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.chantier-access-group__body {
  padding: 1rem 1.25rem 1.1rem;
  background: #fff;
}

.chantier-access-group__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.chantier-access-group__bar > span {
  color: #f46f22;
  font-size: 0.82rem;
  font-weight: 500;
}

.chantier-access-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #555f6d;
  font-size: 0.82rem;
  cursor: pointer;
}

.chantier-access-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.chantier-access-switch span {
  position: relative;
  display: inline-flex;
  width: 30px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid #d5dce4;
  border-radius: 999px;
  background: #eef2f6;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.chantier-access-switch span::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a6b0bd;
  content: "";
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.chantier-access-switch input:checked + span,
.chantier-access-switch input:indeterminate + span {
  border-color: #f46f22;
  background: #fff1e8;
}

.chantier-access-switch input:checked + span::after {
  background: #f46f22;
  transform: translateX(14px);
}

.chantier-access-switch input:indeterminate + span::after {
  background: #f46f22;
  transform: translateX(7px);
}

.chantier-access-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.5rem;
}

.chantier-access-options label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #465870;
  font-size: 0.9rem;
  cursor: pointer;
}

.chantier-access-options input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: #f46f22;
}

.chantier-access-options label:has(input:checked) {
  color: #102541;
}

.chantier-access-inline {
  padding: 0.85rem;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
}

.chantier-access-inline__heading {
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .chantier-access-card header,
  .chantier-access-group__bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .chantier-access-options {
    grid-template-columns: 1fr;
  }
}

.chantier-finance-list {
  display: grid;
}

.chantier-finance-row {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #e7ecf2;
}

.chantier-finance-row:last-child {
  border-bottom: 0;
}

.chantier-finance-row > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chantier-finance-row__actions {
  justify-content: flex-end;
}

.chantier-finance-row__actions .btn {
  flex: 0 0 auto;
}

.chantier-finance-row strong,
.chantier-finance-row small {
  display: block;
}

.chantier-finance-row small {
  margin-top: 0.16rem;
  color: #778397;
  font-size: 0.74rem;
}

.chantier-revenue-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 720px;
}

.chantier-revenue-mode {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #fff;
  color: #102541;
  text-align: left;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.chantier-revenue-mode:hover,
.chantier-revenue-mode.active {
  border-color: #f46f22;
  background: #fff6ef;
}

.chantier-revenue-mode.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.chantier-revenue-mode__radio {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 0.1rem;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
}

.chantier-revenue-mode.active .chantier-revenue-mode__radio {
  border-color: #f46f22;
}

.chantier-revenue-mode.active .chantier-revenue-mode__radio::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f46f22;
  content: "";
}

.chantier-revenue-mode strong,
.chantier-revenue-mode small {
  display: block;
}

.chantier-revenue-mode strong {
  font-weight: 500;
}

.chantier-revenue-mode small {
  margin-top: 0.2rem;
  color: #778397;
}

.chantier-devis-list {
  display: grid;
  gap: 0.75rem;
}

.chantier-devis-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #fff;
}

.chantier-devis-row__main,
.chantier-devis-row__amount {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chantier-devis-row__icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff4ed;
  color: #f46f22;
}

.chantier-devis-row__content strong,
.chantier-devis-row__content small,
.chantier-devis-row__amount span,
.chantier-devis-row__amount strong {
  display: block;
}

.chantier-devis-row__content strong {
  color: #102541;
  font-weight: 500;
}

.chantier-devis-row__content small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.2rem;
  color: #778397;
}

.chantier-devis-row__badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #eef8f1;
  color: #1e8e4d;
  font-size: 0.72rem;
  line-height: 1;
}

.chantier-devis-row__amount {
  min-width: 150px;
  justify-content: flex-end;
  text-align: right;
}

.chantier-devis-row__amount span {
  color: #778397;
  font-size: 0.72rem;
}

.chantier-devis-row__amount strong {
  color: #102541;
  font-weight: 500;
}

.chantier-category-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 3px;
  background: var(--category-color);
}

.chantier-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.chantier-category-quick-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.chantier-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chantier-category-pill {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem 0.45rem 0.7rem;
  border: 1px solid #ffd7c2;
  border-radius: 8px;
  background: #fff7f1;
  color: #26364d;
}

.chantier-category-pill strong {
  font-weight: 500;
}

.chantier-category-pill small {
  color: #69778c;
  font-size: 0.72rem;
}

.chantier-category-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 72px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
}

.chantier-category-item strong,
.chantier-category-item small {
  display: block;
}

.chantier-category-item strong {
  color: #26364d;
  font-weight: 500;
}

.chantier-category-item small {
  margin-top: 0.18rem;
  color: #778397;
  font-size: 0.72rem;
}

.chantier-subcontractor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.chantier-subcontractor-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
}

.chantier-subcontractor-item__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 6px;
  background: #edf3f8;
  color: #315b7d;
}

.chantier-subcontractor-item h3 {
  margin: 0;
  color: #26364d;
  font-size: 0.94rem;
  font-weight: 500;
}

.chantier-subcontractor-item p {
  margin: 0.18rem 0 0.55rem;
  color: #778397;
  font-size: 0.76rem;
}

.chantier-subcontractor-item dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin: 0;
}

.chantier-subcontractor-item dl > div {
  display: flex;
  gap: 0.35rem;
}

.chantier-subcontractor-item dt,
.chantier-subcontractor-item dd {
  margin: 0;
  font-size: 0.72rem;
}

.chantier-subcontractor-item dt {
  color: #8490a2;
  font-weight: 400;
}

.chantier-subcontractor-item dd {
  color: #405069;
}

.chantier-subcontractor-item__actions {
  display: flex;
  gap: 0.3rem;
}

@media (max-width: 991.98px) {
  .chantier-nav-menu {
    position: static;
    width: auto;
    margin: 0.25rem 0 0.5rem 0.65rem;
    padding: 0.35rem;
    border: 0;
    border-left: 2px solid #e2e8f0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .chantier-nav-menu > p {
    display: none;
  }

  .chantier-nav-menu a {
    min-height: 38px;
    padding: 0.45rem 0.6rem;
  }

  .chantier-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chantier-kanban {
    grid-template-columns: repeat(4, minmax(250px, 1fr));
  }

  .chantier-overview-grid,
  .chantier-finance-summary {
    grid-template-columns: 1fr;
  }

  .chantier-fiche-finance,
  .chantier-fiche-grid {
    grid-template-columns: 1fr 1fr;
  }

  .chantier-filters {
    grid-template-columns: 1fr 1fr;
  }

  .chantier-category-quick-form {
    grid-template-columns: 1fr;
  }

  .chantier-revenue-modes {
    grid-template-columns: 1fr;
  }

  .chantier-collaborators {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chantier-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chantier-subcontractor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .chantier-workspace {
    padding: 1rem !important;
  }

  .chantier-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .chantier-new-btn {
    justify-content: center;
  }

  .chantier-kpis,
  .chantier-filters,
  .chantier-collaborators,
  .chantier-fiche-finance,
  .chantier-fiche-grid,
  .chantier-category-grid,
  .chantier-revenue-modes,
  .chantier-subcontractor-grid {
    grid-template-columns: 1fr;
  }

  .chantier-kpi {
    min-height: 92px;
  }

  .chantier-panel__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .chantier-planning-toolbar {
    grid-template-columns: 1fr;
  }

  .chantier-planning-toolbar h2 {
    grid-row: 1;
  }

  .chantier-planning-toolbar > :last-child {
    justify-self: start;
  }

  .chantier-management-modal .modal-dialog {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
  }

  .chantier-management-modal .modal-content,
  .chantier-management-modal form,
  .chantier-fiche-modal .modal-content {
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .chantier-fiche-modal .modal-dialog {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
  }

  .chantier-fiche-modal .modal-body {
    max-height: calc(100vh - 150px);
  }

  .chantier-fiche-toolbar,
  .chantier-lot-card header,
  .chantier-document-card,
  .chantier-devis-row,
  .chantier-task-item {
    align-items: stretch;
    flex-direction: column;
  }

  .chantier-devis-row__amount {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    flex-direction: row;
    text-align: left;
  }
}

.chantier-invitation-page {
  min-height: 100vh;
}

.chantier-invitation-shell {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: 1rem;
}

.chantier-invitation-card {
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(15, 38, 71, 0.08);
  margin: 0 auto;
  max-width: 620px;
  padding: 2rem;
  width: 100%;
}

.chantier-invitation-logo {
  display: block;
  height: auto;
  margin-bottom: 1.5rem;
  max-width: 160px;
}

.chantier-invitation-eyebrow {
  color: #ed6b2d;
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}

.chantier-invitation-card h1 {
  color: #0b2341;
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.chantier-invitation-card p {
  color: #6b7890;
}

.chantier-invitation-summary {
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  margin: 1.25rem 0;
}

.chantier-invitation-summary div {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.chantier-invitation-summary div + div {
  border-top: 1px solid #edf1f6;
}

.chantier-invitation-summary dt {
  color: #718096;
  font-weight: 500;
}

.chantier-invitation-summary dd {
  color: #0b2341;
  margin: 0;
}

.chantier-invitation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chantier-invitation-note {
  font-size: 0.95rem;
  margin: 1rem 0 0;
}

.chantier-assignment-source {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chantier-assignment-source label {
  cursor: pointer;
}

.chantier-assignment-source input {
  position: absolute;
  opacity: 0;
}

.chantier-assignment-source span {
  align-items: center;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  color: #506078;
  display: inline-flex;
  font-weight: 500;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
}

.chantier-assignment-source input:checked + span {
  background: #fff4ed;
  border-color: #ed6b2d;
  color: #0b2341;
}

.chantier-company-picker__search {
  position: relative;
}

.chantier-company-picker__search i {
  color: #8794a8;
  left: 0.9rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.chantier-company-picker__search .form-control {
  padding-left: 2.35rem;
}

.chantier-company-picker__results {
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  margin-top: 0.5rem;
  max-height: 220px;
  overflow: auto;
}

.chantier-company-result {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  color: #0b2341;
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  text-align: left;
  width: 100%;
}

.chantier-company-result:last-child {
  border-bottom: 0;
}

.chantier-company-result:hover,
.chantier-company-result.is-selected {
  background: #fff4ed;
}

.chantier-company-result small {
  color: #718096;
  display: block;
}

.chantier-inline-check {
  align-items: center;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  display: flex;
  gap: 0.6rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
}

/* Gestion des chantiers */
.chantier-nav {
  position: relative;
}

.sidebar .chantier-nav__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  text-align: left;
}

.chantier-nav__chevron {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.chantier-nav__trigger[aria-expanded="true"] .chantier-nav__chevron {
  transform: rotate(90deg);
}

.chantier-nav-menu {
  width: 292px;
  padding: 0.6rem;
  border: 1px solid #f1d4c5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(244, 111, 34, 0.16);
  z-index: 1090;
}

.chantier-nav-menu[popover] {
  position: fixed;
  inset: auto;
  margin: 0;
}

.chantier-nav-menu[hidden] {
  display: none;
}

.chantier-nav-menu > p {
  margin: 0;
  padding: 0.45rem 0.7rem 0.55rem;
  color: #f46f22;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
}

.chantier-nav-menu a {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  color: #172033;
  text-decoration: none;
}

.chantier-nav-menu a:hover,
.chantier-nav-menu a:focus-visible,
.chantier-nav-menu a.active {
  background: #fff3eb;
  color: #172033;
}

.chantier-nav-menu a.active {
  box-shadow: inset 3px 0 0 #f46f22;
}

.chantier-nav-menu a i {
  width: 18px;
  color: #f46f22;
  text-align: center;
}

.chantier-workspace {
  min-height: calc(100vh - 70px);
  background: #f4f7fa;
}

.chantier-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto 1.25rem;
  max-width: 1540px;
}

.chantier-page-header h1 {
  margin: 0;
  color: #102541;
  font-size: 1.65rem;
  line-height: 1.25;
}

.chantier-page-header p {
  margin: 0.35rem 0 0;
  color: #69778c;
}

.chantier-page-header__eyebrow {
  color: #f46f22 !important;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
}

.chantier-new-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.chantier-navigation-shell {
  max-width: 1540px;
  margin: 0 auto 1rem;
  padding: 0.35rem;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
}

.chantier-context-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 0 0.35rem;
  border-bottom: 1px solid #eef2f6;
}

.chantier-context-tabs a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  color: #465870;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.chantier-context-tabs a:hover,
.chantier-context-tabs a:focus-visible {
  color: #102541;
  background: #fff8f3;
}

.chantier-context-tabs a.active {
  color: #102541;
  background: #fff3eb;
  box-shadow: inset 0 -2px 0 #f46f22;
}

.chantier-context-tabs a i {
  color: #f46f22;
}

.chantier-section-tabs {
  display: flex;
  margin: 0.35rem 0 0;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0;
}

.chantier-navigation-shell .chantier-section-tabs:first-child {
  margin-top: 0;
}

.chantier-section-tabs a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  color: #465870;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
}

.chantier-section-tabs a:hover,
.chantier-section-tabs a:focus-visible,
.chantier-section-tabs a.active {
  background: #fff3eb;
  color: #102541;
}

.chantier-section-tabs a.active {
  box-shadow: inset 0 -2px 0 #f46f22;
}

.chantier-section-tabs a i {
  color: #f46f22;
}

.chantier-custom-period.d-none {
  display: none !important;
}

.chantier-kpis,
.chantier-overview-grid,
.chantier-panel {
  width: 100%;
  max-width: 1540px;
  margin-right: auto;
  margin-left: auto;
}

.chantier-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.chantier-kpi,
.chantier-panel {
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
}

.chantier-kpi {
  min-height: 114px;
  padding: 1rem 1.15rem;
}

.chantier-kpi span {
  display: block;
  margin-bottom: 0.7rem;
  color: #69778c;
  font-size: 0.83rem;
}

.chantier-kpi strong {
  color: #102541;
  font-size: 1.6rem;
  font-weight: 500;
}

.chantier-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.9fr);
  gap: 0.9rem;
}

.chantier-overview-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.chantier-panel {
  padding: 1.1rem;
}

.chantier-panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chantier-panel__heading h2,
.chantier-planning-toolbar h2 {
  margin: 0;
  color: #102541;
  font-size: 1.08rem;
  font-weight: 500;
}

.chantier-panel__heading p {
  margin: 0.25rem 0 0;
  color: #768397;
  font-size: 0.82rem;
}

.chantier-finance-summary {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  gap: 1.2rem;
  min-height: 188px;
}

.chantier-finance-primary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem;
  border-radius: 8px;
  background: #172a46;
  color: #fff;
}

.chantier-finance-primary span,
.chantier-finance-primary small {
  color: #cbd5e1;
}

.chantier-finance-primary strong {
  margin: 0.55rem 0;
  font-size: 2rem;
  font-weight: 500;
}

.chantier-finance-breakdown {
  display: grid;
  gap: 0;
  margin: 0;
}

.chantier-finance-breakdown > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e7ecf2;
}

.chantier-finance-breakdown > div:last-child {
  border-bottom: 0;
}

.chantier-finance-breakdown dt {
  color: #69778c;
  font-weight: 400;
}

.chantier-finance-breakdown dd {
  margin: 0;
  color: #102541;
  font-size: 1.05rem;
  font-weight: 500;
}

.chantier-priority-list {
  display: grid;
  gap: 0.35rem;
}

.chantier-priority-item {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: transparent;
  color: #172033;
  text-align: left;
}

.chantier-priority-item:last-child {
  border-bottom: 0;
}

.chantier-priority-item:disabled {
  cursor: default;
  opacity: 1;
}

.chantier-priority-item strong,
.chantier-priority-item small {
  display: block;
}

.chantier-priority-item strong {
  font-weight: 500;
}

.chantier-priority-item small {
  margin-top: 0.2rem;
  color: #778397;
}

.chantier-empty-state {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: #748196;
  text-align: center;
}

.chantier-empty-state i {
  color: #46a46c;
}

.chantier-kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  max-width: 1540px;
  margin: 0 auto;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.chantier-kanban-actions {
  display: flex;
  max-width: 1540px;
  justify-content: flex-end;
  margin: 0 auto 0.75rem;
}

.chantier-kanban-column {
  min-height: 320px;
  padding: 0.8rem;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease;
}

.chantier-kanban-column.is-drag-over {
  border-color: #f46f22;
  background: #fff7f1;
}

.chantier-kanban-column h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  color: #102541;
  font-size: 0.92rem;
  font-weight: 500;
}

.chantier-kanban-column h2 strong {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: #eef3f7;
  color: #5c6b80;
  font-size: 0.76rem;
}

.chantier-kanban-column__items {
  display: grid;
  gap: 0.55rem;
  min-height: 260px;
}

.chantier-kanban-column__items:has(:not(.chantier-empty-state)) {
  grid-auto-rows: min-content;
}

.chantier-kanban-card {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  height: fit-content;
  padding: 0.62rem 0.7rem;
  border: 1px solid #e1e7ee;
  border-radius: 8px;
  background: #f9fbfd;
  color: #26364d;
  text-align: left;
}

.chantier-kanban-card:hover,
.chantier-kanban-card:focus-visible {
  border-color: #f46f22;
  background: #fff7f1;
}

.chantier-kanban-card[draggable="true"] {
  cursor: grab;
}

.chantier-kanban-card[draggable="true"]:active {
  cursor: grabbing;
}

.chantier-kanban-card.is-dragging {
  opacity: 0.55;
}

.chantier-kanban-card strong {
  overflow: hidden;
  color: #102541;
  font-size: 0.92rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chantier-kanban-card span {
  overflow: hidden;
  color: #778397;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chantier-column-list {
  display: grid;
  gap: 0.55rem;
}

.chantier-column-bulkbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #f3c6ac;
  border-radius: 8px;
  background: #fff7f1;
}

.chantier-column-bulkbar > span:first-child {
  display: grid;
  min-width: 0;
}

.chantier-column-bulkbar strong {
  color: #102541;
  font-weight: 600;
}

.chantier-column-bulkbar small {
  color: #6f7c8f;
  font-size: 0.75rem;
}

.chantier-column-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #f9fbfd;
}

.chantier-column-item.is-editing {
  border-color: #ffb385;
  background: #fff7f1;
}

.chantier-column-item.is-selected {
  border-color: #ed6b2d;
  background: #fffaf6;
}

.chantier-column-item__label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.chantier-column-item__label > span {
  display: grid;
  min-width: 0;
}

.chantier-column-item strong,
.chantier-linked-item strong {
  overflow: hidden;
  color: #102541;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chantier-column-item small,
.chantier-linked-item small {
  color: #778397;
  font-size: 0.75rem;
}

.chantier-column-form__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.chantier-column-form__heading strong {
  color: #102541;
  font-weight: 500;
}

.chantier-column-form__heading .btn-link {
  padding: 0;
  color: #ed6b2d;
  font-weight: 500;
  text-decoration: none;
}

.chantier-column-form__heading .btn-link:hover,
.chantier-column-form__heading .btn-link:focus-visible {
  color: #c74d15;
  text-decoration: underline;
}

.chantier-linked-list {
  display: grid;
  gap: 0.55rem;
}

.chantier-linked-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
  color: #26364d;
  text-align: left;
}

.chantier-linked-item:hover,
.chantier-linked-item:focus-visible {
  border-color: #f46f22;
  background: #fff7f1;
}

.chantier-linked-item > span {
  display: grid;
  min-width: 0;
}

.chantier-table-wrap {
  border: 1px solid #e2e7ed;
  border-radius: 8px;
}

.chantier-table {
  min-width: 980px;
}

.chantier-table__select {
  width: 42px;
  text-align: center;
}

.chantier-table thead th {
  padding: 0.75rem;
  border-bottom: 1px solid #dce3eb;
  background: #f7f9fb;
  color: #5f6d82;
  font-size: 0.76rem;
  font-weight: 500;
}

.chantier-table tbody td {
  padding: 0.85rem 0.75rem;
  color: #26364d;
}

.chantier-clickable-row,
.chantier-subcontractor-row {
  cursor: pointer;
}

.chantier-clickable-row:hover td,
.chantier-clickable-row:focus-visible td,
.chantier-subcontractor-row:hover td,
.chantier-subcontractor-row:focus-visible td {
  background: #fff7f1;
}

.chantier-table__title {
  display: block;
  max-width: 280px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: #102541;
  font-weight: 500;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chantier-table__meta {
  display: block;
  max-width: 300px;
  overflow: hidden;
  margin-top: 0.18rem;
  color: #778397;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chantier-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  background: #f4f6f8;
  color: #4c5b70;
  font-size: 0.72rem;
  white-space: nowrap;
}

.chantier-status.is-progress,
.chantier-calendar__event.is-progress {
  border-color: #b8d3ee;
  background: #e9f3fb;
  color: #185b8d;
}

.chantier-status.is-warning,
.chantier-calendar__event.is-warning {
  border-color: #f3c89e;
  background: #fff3e9;
  color: #a54b12;
}

.chantier-status.is-done,
.chantier-calendar__event.is-done {
  border-color: #b9ddc7;
  background: #edf8f1;
  color: #287447;
}

.chantier-status.is-cancelled,
.chantier-calendar__event.is-cancelled {
  border-color: #e3c6c6;
  background: #faf0f0;
  color: #934545;
}

.chantier-action-menu {
  display: inline-flex;
  width: 36px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.chantier-row-actions,
.chantier-reception-actions {
  display: inline-flex;
  gap: 0.35rem;
  justify-content: flex-end;
}

.chantier-margin {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
}

.chantier-margin small {
  color: #778397;
  font-size: 0.72rem;
}

.chantier-margin.text-danger small {
  color: #dc3545;
}

.chantier-margin.text-success small {
  color: #198754;
}

.chantier-status-select {
  min-width: 150px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.chantier-status-select.is-progress {
  border-color: #b8d3ee;
  background-color: #e9f3fb;
  color: #185b8d;
}

.chantier-status-select.is-warning {
  border-color: #f3c89e;
  background-color: #fff3e9;
  color: #a54b12;
}

.chantier-status-select.is-done {
  border-color: #b9ddc7;
  background-color: #edf8f1;
  color: #287447;
}

.chantier-status-select.is-cancelled {
  border-color: #e3c6c6;
  background-color: #faf0f0;
  color: #934545;
}

.chantier-task-status-select {
  width: auto;
  min-width: 130px;
  max-width: 160px;
  padding-block: 0.35rem;
}

.chantier-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #f3c89e;
  border-radius: 8px;
  background: #fff7ef;
  color: #26364d;
}

.chantier-filter-panel {
  margin-bottom: 0.9rem;
  padding: 0.85rem;
}

.chantier-filters {
  display: grid;
  grid-template-columns:
    minmax(260px, 1.4fr) minmax(190px, 0.7fr) minmax(200px, 0.8fr)
    auto;
  gap: 0.65rem;
}

.chantier-search {
  position: relative;
}

.chantier-search i {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  color: #8793a5;
  transform: translateY(-50%);
}

.chantier-search input {
  width: 100%;
  height: 100%;
  min-height: 42px;
  padding: 0.55rem 0.8rem 0.55rem 2.35rem;
  border: 1px solid #d6dee8;
  border-radius: 6px;
  outline: 0;
}

.chantier-search input:focus {
  border-color: #f46f22;
  box-shadow: 0 0 0 0.2rem rgba(244, 111, 34, 0.14);
}

.chantier-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 0.3rem;
  margin-top: 1rem;
}

.chantier-pagination a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #d8e0e9;
  border-radius: 6px;
  color: #44536a;
  text-decoration: none;
}

.chantier-pagination a.active {
  border-color: #f46f22;
  background: #f46f22;
  color: #fff;
}

.chantier-planning-panel {
  padding: 1rem;
}

.chantier-planning-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.chantier-planning-toolbar > :last-child {
  justify-self: end;
}

.chantier-calendar-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid #d8e0e9;
  border-radius: 8px;
  background: #fff;
}

.chantier-calendar-switch button {
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #465870;
  font-weight: 500;
}

.chantier-calendar-switch button.active,
.chantier-calendar-switch button:hover,
.chantier-calendar-switch button:focus-visible {
  background: #f46f22;
  color: #fff;
}

.chantier-calendar-switch button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.18rem rgba(244, 111, 34, 0.16);
}

.chantier-revenue-chart {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dce3eb;
}

.chantier-revenue-chart svg {
  display: block;
  width: 100%;
  min-height: 180px;
}

.chantier-revenue-chart text {
  fill: #69778c;
  font-size: 0.78rem;
}

.chantier-revenue-chart__area {
  fill: rgba(244, 111, 34, 0.12);
}

.chantier-revenue-chart__grid {
  stroke: #e8edf3;
  stroke-width: 1;
}

.chantier-revenue-chart__line {
  fill: none;
  stroke: #f46f22;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chantier-revenue-chart__point {
  fill: #fff;
  stroke: #f46f22;
  stroke-width: 3;
}

.chantier-calendar-scroll {
  overflow-x: auto;
  border: 1px solid #dce3eb;
  border-radius: 8px;
}

.chantier-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(142px, 1fr));
  min-width: 994px;
}

.chantier-calendar.is-day {
  display: block;
  min-width: 720px;
}

.chantier-calendar.is-week {
  grid-template-columns: repeat(7, minmax(164px, 1fr));
  min-width: 1148px;
}

.chantier-calendar__loading {
  grid-column: 1 / -1;
  min-height: 320px;
  padding: 2rem;
  color: #748196;
  text-align: center;
}

.chantier-calendar__weekday {
  padding: 0.65rem;
  border-right: 1px solid #dce3eb;
  border-bottom: 1px solid #dce3eb;
  background: #f6f8fa;
  color: #56657a;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

.chantier-calendar__weekday span,
.chantier-calendar__weekday strong {
  display: block;
  font-weight: 500;
}

.chantier-calendar__day {
  position: relative;
  min-height: 122px;
  padding: 0.5rem;
  border-right: 1px solid #e0e6ed;
  border-bottom: 1px solid #e0e6ed;
  background: #fff;
}

.chantier-calendar__day.is-outside {
  background: #f8f9fb;
  color: #9ba5b4;
}

.chantier-calendar__day.is-today {
  box-shadow: inset 0 0 0 2px #f46f22;
}

.chantier-calendar__date {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.chantier-calendar__event {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  width: 100%;
  overflow: hidden;
  margin-bottom: 0.25rem;
  padding: 0.28rem 0.4rem;
  border: 1px solid #d8e1ea;
  border-radius: 4px;
  background: #f2f5f8;
  color: #35465d;
  font-size: 0.7rem;
  text-align: left;
}

.chantier-calendar__event strong,
.chantier-calendar__event span {
  display: block;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chantier-calendar__event span {
  color: #748196;
  font-size: 0.66rem;
}

.chantier-calendar__event-badge {
  display: inline-flex !important;
  align-items: center;
  width: fit-content;
  margin-top: 0.2rem;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #35465d !important;
  font-size: 0.64rem !important;
  font-weight: 600 !important;
}

.chantier-calendar__day--week {
  min-height: 420px;
}

.chantier-calendar__empty {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  color: #748196;
  font-size: 0.8rem;
  text-align: center;
}

.chantier-calendar-day-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 68px;
  border-bottom: 1px solid #e0e6ed;
  background: #fff;
}

.chantier-calendar-day-row__time {
  padding: 0.8rem 0.75rem;
  border-right: 1px solid #e0e6ed;
  color: #748196;
  font-size: 0.78rem;
  text-align: right;
}

.chantier-calendar-day-row__content {
  padding: 0.55rem 0.75rem;
}

.chantier-management-modal .modal-dialog {
  max-width: min(1080px, calc(100vw - 1.5rem));
  margin: 0.75rem auto;
}

.chantier-management-modal .modal-content {
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
  border: 0;
  border-radius: 8px;
}

.chantier-management-modal form {
  display: flex;
  min-height: 0;
  max-height: calc(100vh - 1.5rem);
  flex-direction: column;
}

.chantier-management-modal .modal-header,
.chantier-management-modal .modal-footer {
  flex: 0 0 auto;
  background: #fff;
}

.chantier-management-modal .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  background: #f6f8fa;
}

.chantier-management-modal .modal-header,
.chantier-fiche-modal .modal-header {
  min-height: 72px;
  border-bottom: 1px solid #e2e8f0;
}

.chantier-management-modal .modal-footer {
  border-top: 1px solid #e2e8f0;
}

.chantier-editor-tabs,
.chantier-fiche-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.chantier-editor-tabs button,
.chantier-fiche-tabs button {
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #172033;
  font-weight: 500;
  white-space: nowrap;
}

.chantier-editor-tabs button:hover,
.chantier-editor-tabs button:focus-visible,
.chantier-editor-tabs button.active,
.chantier-fiche-tabs button:hover,
.chantier-fiche-tabs button:focus-visible,
.chantier-fiche-tabs button.active {
  border-color: #f46f22;
  background: #fff3eb;
  color: #f46f22;
}

.chantier-editor-tabs button:focus-visible,
.chantier-fiche-tabs button:focus-visible,
.chantier-nav-menu a:focus-visible,
.chantier-section-tabs a:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.18rem rgba(244, 111, 34, 0.16);
}

.chantier-editor-panel,
.chantier-fiche-panel {
  display: none;
}

.chantier-editor-panel.active,
.chantier-fiche-panel.active {
  display: block;
}

.chantier-editor-empty,
.chantier-editor-note {
  padding: 1rem;
  border: 1px dashed #d7e0ea;
  border-radius: 8px;
  background: #fbfcfe;
  color: #69778c;
}

.chantier-editor-empty strong,
.chantier-editor-note strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #102541;
  font-weight: 500;
}

.chantier-editor-empty p,
.chantier-editor-note p {
  margin: 0;
}

/* Composant adresse (autocomplétion) */
.address-autocomplete__field {
  position: relative;
}

.address-autocomplete__suggestions {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 1060;
  max-height: 280px;
  margin-top: 0.35rem;
  overflow-y: auto;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 37, 65, 0.12);
}

.address-autocomplete__suggestions[hidden] {
  display: none;
}

.address-autocomplete__option {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  border: 0;
  color: #102541;
  text-align: left;
  transition: background-color 0.2s;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.address-autocomplete__option:last-child {
  border-bottom: 0;
}

.address-autocomplete__option:hover,
.address-autocomplete__option.is-active {
  background-color: #f8f9fa;
  outline: none;
}

.address-autocomplete__option-title,
.address-autocomplete__option-sub {
  display: block;
}

.address-autocomplete__option-title {
  font-weight: 500;
}

.address-autocomplete__option-sub {
  margin-top: 0.15rem;
  color: #69778c;
}

.address-autocomplete__status {
  padding: 0.75rem 0.9rem;
  color: #69778c;
  font-size: 0.85rem;
}

.chantier-map-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #fff;
}

.chantier-map-card strong {
  display: block;
  color: #102541;
  font-weight: 500;
}

.chantier-map-card p {
  margin: 0.25rem 0 0;
  color: #69778c;
}

.chantier-map-canvas {
  display: grid;
  min-height: 320px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #f5f8fb;
  color: #69778c;
}

.chantier-route-summary {
  width: fit-content;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: #fff3ed;
  color: #102541;
  font-weight: 500;
}

.chantier-date-field.is-muted {
  opacity: 0.55;
}

.chantier-fiche-modal .modal-dialog {
  max-width: min(1120px, calc(100vw - 1.5rem));
  margin: 0.75rem auto;
}

.chantier-fiche-modal .modal-content {
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
  border: 0;
  border-radius: 8px;
}

.chantier-fiche-modal .modal-body {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  background: #f6f8fa;
}

.chantier-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.chantier-fiche-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.chantier-fiche-toolbar h3 {
  margin: 0;
  color: #102541;
  font-size: 1rem;
  font-weight: 500;
}

.chantier-fiche-toolbar p {
  margin: 0.2rem 0 0;
  color: #778397;
  font-size: 0.8rem;
}

.chantier-fiche-finance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.chantier-fiche-finance article {
  min-height: 86px;
  padding: 0.9rem;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
}

.chantier-fiche-finance span {
  display: block;
  margin-bottom: 0.4rem;
  color: #69778c;
  font-size: 0.76rem;
}

.chantier-fiche-finance strong {
  color: #102541;
  font-size: 1.15rem;
  font-weight: 500;
}

.chantier-fiche-margin {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  margin: 0;
}

.chantier-fiche-margin strong {
  color: inherit;
}

.chantier-fiche-margin small {
  display: block;
  color: inherit;
  line-height: 1.2;
}

.chantier-fiche-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.chantier-mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.chantier-mini-calendar__day {
  min-height: 72px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  padding: 0.65rem;
  background: #fff;
  color: #667085;
}

.chantier-mini-calendar__day span {
  display: block;
  font-size: 0.75rem;
}

.chantier-mini-calendar__day strong {
  display: block;
  margin-top: 0.45rem;
  color: #10233f;
  font-size: 1.1rem;
  font-weight: 500;
}

.chantier-mini-calendar__day.is-active {
  border-color: #eb6d2f;
  background: #fff3eb;
}

.chantier-management-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.35rem;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  background: #f7f9fb;
}

.chantier-management-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #5f6d82;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chantier-management-tab:hover,
.chantier-management-tab:focus-visible {
  border-color: #ffd9c4;
  background: #fff7f1;
  color: #ed6b2d;
  outline: none;
}

.chantier-management-tab.active {
  border-color: #ffb385;
  background: #fff1e8;
  color: #102541;
  box-shadow: inset 0 -2px 0 #ed6b2d;
}

.chantier-check-picker {
  overflow: hidden;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
}

.chantier-check-picker__search {
  position: relative;
  border-bottom: 1px solid #e6edf4;
}

.chantier-check-picker__search i {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  z-index: 1;
  color: #7a8799;
  transform: translateY(-50%);
}

.chantier-check-picker__search .form-control {
  border: 0;
  border-radius: 0;
  padding-left: 2.25rem;
  box-shadow: none;
}

.chantier-check-picker__list {
  display: grid;
  gap: 0.2rem;
  max-height: 190px;
  overflow: auto;
  padding: 0.45rem;
}

.chantier-check-picker__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 34px;
  margin: 0;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  color: #26364d;
  cursor: pointer;
}

.chantier-check-picker__item:hover,
.chantier-check-picker__item:focus-within {
  background: #fff7f1;
}

.chantier-check-picker__item .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}

.chantier-check-picker__item .form-check-label {
  margin: 0;
  font-size: 0.88rem;
}

.chantier-check-picker__count {
  padding: 0.45rem 0.75rem;
  border-top: 1px solid #e6edf4;
  color: #6b778c;
  font-size: 0.78rem;
}

.chantier-info-row {
  padding: 0.75rem;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  background: #fff;
}

.chantier-info-row dt {
  margin-bottom: 0.25rem;
  color: #778397;
  font-size: 0.72rem;
  font-weight: 500;
}

.chantier-info-row__label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chantier-info-help {
  display: inline-grid;
  width: 1.1rem;
  height: 1.1rem;
  place-items: center;
  border: 1px solid #d7e0ea;
  border-radius: 50%;
  background: #fff;
  color: #778397;
  font-size: 0.62rem;
  line-height: 1;
}

.chantier-info-help:hover,
.chantier-info-help:focus {
  border-color: #eb6d2f;
  color: #eb6d2f;
  outline: none;
}

.chantier-info-row dd {
  margin: 0;
  color: #26364d;
  font-weight: 500;
}

.chantier-fiche-text,
.chantier-pv-card {
  margin-top: 0.75rem;
  padding: 0.9rem;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  background: #fff;
}

.chantier-pv-note {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-top: 0.8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #f7f9fb;
  color: #4c5b70;
  font-size: 0.85rem;
}

.chantier-pv-note.is-warning {
  border-color: #f3c89e;
  background: #fff7ef;
  color: #8c4211;
}

.chantier-pv-followups {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.chantier-pv-followups h4 {
  margin: 0;
  color: #102541;
  font-size: 0.86rem;
  font-weight: 600;
}

.chantier-pv-followup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  color: #26364d;
  text-decoration: none;
}

.chantier-pv-followup:hover {
  border-color: #b8d3ee;
  color: #185b8d;
}

.chantier-pv-followup strong,
.chantier-pv-followup small {
  display: block;
}

.chantier-pv-followup small {
  margin-top: 0.15rem;
  color: #5f6d82;
}

.chantier-fiche-text h3 {
  margin: 0 0 0.35rem;
  color: #102541;
  font-size: 0.92rem;
  font-weight: 500;
}

.chantier-fiche-text p {
  margin: 0;
  color: #5f6d82;
  white-space: pre-wrap;
}

.chantier-lot-grid,
.chantier-document-grid {
  display: grid;
  gap: 0.75rem;
}

.chantier-lot-card,
.chantier-document-card {
  padding: 0.85rem;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  background: #fff;
}

.chantier-lot-card header,
.chantier-document-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.chantier-lot-card h4,
.chantier-document-card h4 {
  margin: 0;
  color: #102541;
  font-size: 0.96rem;
  font-weight: 500;
}

.chantier-lot-card p,
.chantier-document-card p {
  margin: 0.35rem 0;
  color: #64748b;
}

.chantier-document-card small,
.chantier-task-item small {
  color: #778397;
}

.chantier-document-card__icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 6px;
  background: #fff1e8;
  color: #f46f22;
}

.chantier-card-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.3rem;
}

.chantier-task-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0;
}

.chantier-task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.55rem;
  border: 1px solid #edf1f5;
  border-left: 4px solid #94a3b8;
  border-radius: 6px;
  background: #f9fbfd;
}

.chantier-task-item.is-planned {
  border-left-color: #64748b;
  background: #f8fafc;
}

.chantier-task-item.is-progress {
  border-left-color: #2563eb;
  background: #eff6ff;
}

.chantier-task-item.is-warning {
  border-left-color: #d97706;
  background: #fffbeb;
}

.chantier-task-item.is-done {
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.chantier-task-item__main {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.chantier-task-item__main > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.chantier-task-item__main:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
  border-radius: 4px;
}

.chantier-task-item__status {
  width: 0.65rem;
  height: 0.65rem;
  flex: 0 0 0.65rem;
  border-radius: 999px;
  background: #94a3b8;
}

.chantier-task-item.is-planned .chantier-task-item__status {
  background: #64748b;
}

.chantier-task-item.is-progress .chantier-task-item__status,
.chantier-task-detail__header.is-progress .chantier-task-item__status {
  background: #2563eb;
}

.chantier-task-item.is-warning .chantier-task-item__status,
.chantier-task-detail__header.is-warning .chantier-task-item__status {
  background: #d97706;
}

.chantier-task-item.is-done .chantier-task-item__status,
.chantier-task-detail__header.is-done .chantier-task-item__status {
  background: #16a34a;
}

.chantier-task-item strong,
.chantier-task-item small {
  display: block;
}

.chantier-task-detail {
  display: grid;
  gap: 1rem;
}

.chantier-task-detail__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #94a3b8;
  border-radius: 6px;
  background: #f8fafc;
}

.chantier-task-detail__header.is-progress {
  border-left-color: #2563eb;
  background: #eff6ff;
}

.chantier-task-detail__header.is-warning {
  border-left-color: #d97706;
  background: #fffbeb;
}

.chantier-task-detail__header.is-done {
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.chantier-task-detail__header strong,
.chantier-task-detail__header small {
  display: block;
}

.chantier-task-detail__header small {
  color: #64748b;
}

.chantier-form-section {
  padding: 1rem;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  background: #fff;
}

.chantier-form-section + .chantier-form-section {
  margin-top: 0.9rem;
}

.chantier-form-section__heading {
  margin-bottom: 0.85rem;
}

.chantier-form-section__heading h3 {
  margin: 0;
  color: #102541;
  font-size: 1rem;
  font-weight: 500;
}

.chantier-form-section__heading p {
  margin: 0.2rem 0 0;
  color: #778397;
  font-size: 0.8rem;
}

.chantier-collaborators {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.chantier-collaborators label {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #e0e6ed;
  border-radius: 6px;
}

.chantier-collaborators label:has(input:checked) {
  border-color: #f5ae82;
  background: #fff5ee;
}

.chantier-access-list {
  display: grid;
  gap: 0.75rem;
}

.chantier-access-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #eef2f6;
}

.chantier-access-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border: 1px solid #dce3eb;
  border-radius: 8px 8px 0 0;
  background: #fff;
  color: #465870;
  font-weight: 500;
}

.chantier-access-tabs button.is-active {
  border-color: #f46f22;
  border-bottom-color: #fff;
  background: #fff5ee;
  color: #102541;
}

.chantier-access-tabs span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #eef2f6;
  color: #68758a;
  font-size: 0.78rem;
}

.chantier-access-tabs button.is-active span {
  background: #f46f22;
  color: #fff;
}

.chantier-access-section {
  display: grid;
  gap: 0.75rem;
}

.chantier-access-card {
  padding: 0.85rem;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
}

.chantier-access-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eef2f6;
}

.chantier-access-card header select {
  width: min(180px, 100%);
}

.chantier-access-card__person {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #102541;
}

.chantier-access-card__person span {
  display: grid;
  gap: 0.15rem;
}

.chantier-access-card__avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: #fff1e8;
  color: #f46f22;
}

.chantier-access-card__person strong,
.chantier-access-role,
.chantier-access-editor__topline strong {
  font-weight: 500;
}

.chantier-access-card__person small {
  color: #778397;
}

.chantier-access-role {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #f4f7fa;
  color: #68758a;
  font-size: 0.82rem;
}

.chantier-access-editor {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.75rem;
}

.chantier-access-editor__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #778397;
  font-size: 0.82rem;
}

.chantier-access-editor__topline strong {
  color: #102541;
  text-align: right;
}

.chantier-access-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chantier-access-preset {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  border: 1px solid #dce3eb;
  border-radius: 999px;
  background: #fff;
  color: #465870;
  font-size: 0.82rem;
}

button.chantier-access-preset {
  cursor: pointer;
}

.chantier-access-preset.is-active {
  border-color: #f46f22;
  background: #fff5ee;
  color: #102541;
}

.chantier-access-permissions-label {
  color: #555f6d;
  font-size: 0.9rem;
}

.chantier-access-accordion {
  display: grid;
  overflow: hidden;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
}

.chantier-access-group + .chantier-access-group {
  border-top: 1px solid #e6ebf1;
}

.chantier-access-group__header {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 0;
  background: #f4f6f8;
  color: #3f4650;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.chantier-access-group__header i {
  color: #102541;
  transition: transform 0.18s ease;
}

.chantier-access-group__header[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.chantier-access-group__body {
  padding: 1rem 1.25rem 1.1rem;
  background: #fff;
}

.chantier-access-group__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.chantier-access-group__bar > span {
  color: #f46f22;
  font-size: 0.82rem;
  font-weight: 500;
}

.chantier-access-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #555f6d;
  font-size: 0.82rem;
  cursor: pointer;
}

.chantier-access-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.chantier-access-switch span {
  position: relative;
  display: inline-flex;
  width: 30px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid #d5dce4;
  border-radius: 999px;
  background: #eef2f6;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.chantier-access-switch span::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a6b0bd;
  content: "";
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.chantier-access-switch input:checked + span,
.chantier-access-switch input:indeterminate + span {
  border-color: #f46f22;
  background: #fff1e8;
}

.chantier-access-switch input:checked + span::after {
  background: #f46f22;
  transform: translateX(14px);
}

.chantier-access-switch input:indeterminate + span::after {
  background: #f46f22;
  transform: translateX(7px);
}

.chantier-access-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.5rem;
}

.chantier-access-options label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #465870;
  font-size: 0.9rem;
  cursor: pointer;
}

.chantier-access-options input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: #f46f22;
}

.chantier-access-options label:has(input:checked) {
  color: #102541;
}

.chantier-access-inline {
  padding: 0.85rem;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
}

.chantier-access-inline__heading {
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .chantier-access-card header,
  .chantier-access-group__bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .chantier-access-options {
    grid-template-columns: 1fr;
  }
}

.chantier-finance-list {
  display: grid;
}

.chantier-finance-row {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #e7ecf2;
}

.chantier-finance-row:last-child {
  border-bottom: 0;
}

.chantier-finance-row > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chantier-finance-row__actions {
  justify-content: flex-end;
}

.chantier-finance-row__actions .btn {
  flex: 0 0 auto;
}

.chantier-planning-event-row {
  align-items: stretch;
}

.chantier-planning-event-row__main {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.chantier-planning-event-row__main:not(:disabled) {
  cursor: pointer;
}

.chantier-planning-event-row__main:not(:disabled):hover strong,
.chantier-planning-event-row__main:not(:disabled):focus-visible strong {
  color: #ed6b2d;
}

.chantier-planning-event-row__main:focus-visible {
  outline: 2px solid rgba(237, 107, 45, 0.35);
  outline-offset: 3px;
}

.chantier-planning-event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.chantier-planning-event-badges span {
  width: fit-content;
  margin-top: 0;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #eef6ff;
  color: #24547a;
  font-size: 0.68rem;
  font-weight: 600;
}

.chantier-finance-row strong,
.chantier-finance-row small {
  display: block;
}

.chantier-finance-row small {
  margin-top: 0.16rem;
  color: #778397;
  font-size: 0.74rem;
}

.chantier-revenue-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 720px;
}

.chantier-revenue-mode {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #fff;
  color: #102541;
  text-align: left;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.chantier-revenue-mode:hover,
.chantier-revenue-mode.active {
  border-color: #f46f22;
  background: #fff6ef;
}

.chantier-revenue-mode.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.chantier-revenue-mode__radio {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 0.1rem;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
}

.chantier-revenue-mode.active .chantier-revenue-mode__radio {
  border-color: #f46f22;
}

.chantier-revenue-mode.active .chantier-revenue-mode__radio::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f46f22;
  content: "";
}

.chantier-revenue-mode strong,
.chantier-revenue-mode small {
  display: block;
}

.chantier-revenue-mode strong {
  font-weight: 500;
}

.chantier-revenue-mode small {
  margin-top: 0.2rem;
  color: #778397;
}

.chantier-devis-list {
  display: grid;
  gap: 0.75rem;
}

.chantier-devis-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #fff;
}

.chantier-devis-row__main,
.chantier-devis-row__amount {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chantier-devis-row__icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff4ed;
  color: #f46f22;
}

.chantier-devis-row__content strong,
.chantier-devis-row__content small,
.chantier-devis-row__amount span,
.chantier-devis-row__amount strong {
  display: block;
}

.chantier-devis-row__content strong {
  color: #102541;
  font-weight: 500;
}

.chantier-devis-row__content small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.2rem;
  color: #778397;
}

.chantier-devis-row__badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #eef8f1;
  color: #1e8e4d;
  font-size: 0.72rem;
  line-height: 1;
}

.chantier-devis-row__amount {
  min-width: 150px;
  justify-content: flex-end;
  text-align: right;
}

.chantier-devis-row__amount span {
  color: #778397;
  font-size: 0.72rem;
}

.chantier-devis-row__amount strong {
  color: #102541;
  font-weight: 500;
}

.chantier-category-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 3px;
  background: var(--category-color);
}

.chantier-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.chantier-category-quick-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.chantier-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chantier-category-pill {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem 0.45rem 0.7rem;
  border: 1px solid #ffd7c2;
  border-radius: 8px;
  background: #fff7f1;
  color: #26364d;
}

.chantier-category-pill strong {
  font-weight: 500;
}

.chantier-category-pill small {
  color: #69778c;
  font-size: 0.72rem;
}

.chantier-category-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 72px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
}

.chantier-category-item strong,
.chantier-category-item small {
  display: block;
}

.chantier-category-item strong {
  color: #26364d;
  font-weight: 500;
}

.chantier-category-item small {
  margin-top: 0.18rem;
  color: #778397;
  font-size: 0.72rem;
}

.chantier-subcontractor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.chantier-subcontractor-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
}

.chantier-subcontractor-item__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 6px;
  background: #edf3f8;
  color: #315b7d;
}

.chantier-subcontractor-item h3 {
  margin: 0;
  color: #26364d;
  font-size: 0.94rem;
  font-weight: 500;
}

.chantier-subcontractor-item p {
  margin: 0.18rem 0 0.55rem;
  color: #778397;
  font-size: 0.76rem;
}

.chantier-subcontractor-item dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin: 0;
}

.chantier-subcontractor-item dl > div {
  display: flex;
  gap: 0.35rem;
}

.chantier-subcontractor-item dt,
.chantier-subcontractor-item dd {
  margin: 0;
  font-size: 0.72rem;
}

.chantier-subcontractor-item dt {
  color: #8490a2;
  font-weight: 400;
}

.chantier-subcontractor-item dd {
  color: #405069;
}

.chantier-subcontractor-item__actions {
  display: flex;
  gap: 0.3rem;
}

@media (max-width: 991.98px) {
  .chantier-nav-menu {
    position: static;
    width: auto;
    margin: 0.25rem 0 0.5rem 0.65rem;
    padding: 0.35rem;
    border: 0;
    border-left: 2px solid #e2e8f0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .chantier-nav-menu > p {
    display: none;
  }

  .chantier-nav-menu a {
    min-height: 38px;
    padding: 0.45rem 0.6rem;
  }

  .chantier-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chantier-kanban {
    grid-template-columns: repeat(4, minmax(250px, 1fr));
  }

  .chantier-overview-grid,
  .chantier-finance-summary {
    grid-template-columns: 1fr;
  }

  .chantier-fiche-finance,
  .chantier-fiche-grid {
    grid-template-columns: 1fr 1fr;
  }

  .chantier-filters {
    grid-template-columns: 1fr 1fr;
  }

  .chantier-category-quick-form {
    grid-template-columns: 1fr;
  }

  .chantier-revenue-modes {
    grid-template-columns: 1fr;
  }

  .chantier-collaborators {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chantier-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chantier-subcontractor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .chantier-workspace {
    padding: 1rem !important;
  }

  .chantier-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .chantier-new-btn {
    justify-content: center;
  }

  .chantier-kpis,
  .chantier-filters,
  .chantier-collaborators,
  .chantier-fiche-finance,
  .chantier-fiche-grid,
  .chantier-category-grid,
  .chantier-revenue-modes,
  .chantier-subcontractor-grid {
    grid-template-columns: 1fr;
  }

  .chantier-kpi {
    min-height: 92px;
  }

  .chantier-panel__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .chantier-planning-toolbar {
    grid-template-columns: 1fr;
  }

  .chantier-planning-toolbar h2 {
    grid-row: 1;
  }

  .chantier-planning-toolbar > :last-child {
    justify-self: start;
  }

  .chantier-management-modal .modal-dialog {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
  }

  .chantier-management-modal .modal-content,
  .chantier-management-modal form,
  .chantier-fiche-modal .modal-content {
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .chantier-fiche-modal .modal-dialog {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
  }

  .chantier-fiche-modal .modal-body {
    max-height: calc(100vh - 150px);
  }

  .chantier-fiche-toolbar,
  .chantier-lot-card header,
  .chantier-document-card,
  .chantier-devis-row,
  .chantier-planning-event-row,
  .chantier-task-item {
    align-items: stretch;
    flex-direction: column;
  }

  .chantier-devis-row__amount {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    flex-direction: row;
    text-align: left;
  }
}

.chantier-invitation-page {
  min-height: 100vh;
}

.chantier-invitation-shell {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: 1rem;
}

.chantier-invitation-card {
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(15, 38, 71, 0.08);
  margin: 0 auto;
  max-width: 620px;
  padding: 2rem;
  width: 100%;
}

.chantier-invitation-logo {
  display: block;
  height: auto;
  margin-bottom: 1.5rem;
  max-width: 160px;
}

.chantier-invitation-eyebrow {
  color: #ed6b2d;
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}

.chantier-invitation-card h1 {
  color: #0b2341;
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.chantier-invitation-card p {
  color: #6b7890;
}

.chantier-invitation-summary {
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  margin: 1.25rem 0;
}

.chantier-invitation-summary div {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.chantier-invitation-summary div + div {
  border-top: 1px solid #edf1f6;
}

.chantier-invitation-summary dt {
  color: #718096;
  font-weight: 500;
}

.chantier-invitation-summary dd {
  color: #0b2341;
  margin: 0;
}

.chantier-invitation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chantier-invitation-note {
  font-size: 0.95rem;
  margin: 1rem 0 0;
}

.chantier-assignment-source {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chantier-assignment-source label {
  cursor: pointer;
}

.chantier-assignment-source input {
  position: absolute;
  opacity: 0;
}

.chantier-assignment-source span {
  align-items: center;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  color: #506078;
  display: inline-flex;
  font-weight: 500;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
}

.chantier-assignment-source input:checked + span {
  background: #fff4ed;
  border-color: #ed6b2d;
  color: #0b2341;
}

.chantier-company-picker__search {
  position: relative;
}

.chantier-company-picker__search i {
  color: #8794a8;
  left: 0.9rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.chantier-company-picker__search .form-control {
  padding-left: 2.35rem;
}

.chantier-company-picker__results {
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  margin-top: 0.5rem;
  max-height: 220px;
  overflow: auto;
}

.chantier-company-result {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  color: #0b2341;
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  text-align: left;
  width: 100%;
}

.chantier-company-result:last-child {
  border-bottom: 0;
}

.chantier-company-result:hover,
.chantier-company-result.is-selected {
  background: #fff4ed;
}

.chantier-company-result small {
  color: #718096;
  display: block;
}

.chantier-inline-check {
  align-items: center;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  display: flex;
  gap: 0.6rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
}
