/* LESS Document */
/*************************/
/* Imports */
/*************************/
@import "/assets/css/google-fonts.css";
@import "/assets/fonts/bootstrap-icons/bootstrap-icons.css";
@import "/assets/fonts/fontawesome/css/all.min.css";
@import "/assets/plugins/custom/datatables/datatables.bundle.css";
@import "/assets/plugins/global/plugins.bundle.css";
@import "/assets/css/style.bundle.css";
/*===============================================================
  Blazor Error
=================================================================*/
.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 0.55555556rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}
.blazor-error-boundary::after {
  content: "An error has occurred.";
}
#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  -webkit-box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
          box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}
#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}
/*===============================================================
  Laisse Bootstrap gérer light/dark via data-bs-theme
=================================================================*/
:root {
  --app-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --app-navbar-bg: #212529;
  --app-navbar-fg: #f8f9fa;
  --app-navbar-border: rgba(255, 255, 255, 0.15);
  --app-offcanvas-width: 280px;
  --app-avatar-bg: var(--bs-escaliermtl);
  --app-avatar-fg: var(--bs-white);
  --bs-escaliermtl: #DC4405!important;
  --bs-escaliermtl-2: #cb8b2a!important;
  --bs-user: #212529;
  --bs-breakpoint-xs: 0;
  --bs-breakpoint-sm: 576px;
  --bs-breakpoint-md: 768px;
  --bs-breakpoint-lg: 992px;
  --bs-breakpoint-xl: 1200px;
  --bs-breakpoint-xxl: 1400px;
  --bs-bg-kpi-icons: #da4726!important;
}
/*===============================================================
  Ajustements spécifiques dark
=================================================================*/
html[data-bs-theme="dark"] {
  --bs-border-color: #444655;
  --app-navbar-border: color-mix(in srgb, var(--bs-border-color) 70%, transparent);
  --bs-user: #15171c;
}
/*===============================================================
  Global
=================================================================*/
html,
body {
  font-family: var(--app-font);
  /*padding-top: 25px;*/
}
body {
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 250px;
}
/* Pages */
body.bg-large {
  background-size: 100% 350px;
}
.page-large-bg body {
  background-size: 100% 350px;
}
[data-bs-theme=light] body:not(.app-blank) {
  background-image: url(../img/bg/page-bg-escalier.png);
}
[data-bs-theme=dark] body:not(.app-blank) {
  background-image: url(../img/bg/page-bg-escalier.png);
}
a {
  color: var(--bs-escaliermtl-2);
  text-decoration: none;
}
a:hover {
  color: var(--bs-secondary);
  text-decoration: underline;
}
.link-primary {
  color: #cb8b2a !important;
  text-decoration: none !important;
}
.link-primary:hover {
  color: #000 !important;
  text-decoration: underline !important;
  text-decoration-color: #cb8b2a !important;
}
/*===============================================================
  Login
=================================================================*/
/* Bloc gauche */
.auth-left-bg {
  position: relative;
  overflow: hidden;
  /* évite que les images débordent */
  background: #000;
  /* fond noir */
  min-height: 100%;
  /* au cas où */
}
/* Image #1 : haut gauche */
.auth-left-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/bg/bg-numero-1.png");
  background-repeat: no-repeat;
  background-position: top left;
  background-size: clamp(180px, 28vw, 380px);
  /* Responsive: taille qui s'adapte (min -> idéal -> max) */
  pointer-events: none;
  z-index: 0;
}
/* Image #2 : bas droite */
.auth-left-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/bg/bg-numero-2.png");
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: clamp(220px, 34vw, 420px);
  /* Responsive */
  pointer-events: none;
  z-index: 0;
}
/* (optionnel) si on ajoute du contenu plus tard dans le bloc */
.auth-left-bg > * {
  position: relative;
  z-index: 1;
}
/* (optionnel) Ajustement mobile */
@media only screen and (min-width: 630px) and (max-width: 991.98px) {
  .auth-left-bg {
    min-height: 45%;
  }
  .auth-left-bg::before {
    background-size: clamp(140px, 45vw, 200px);
  }
  .auth-left-bg::after {
    background-size: clamp(180px, 55vw, 320px);
  }
}
@media (max-width: 629.98px) {
  .auth-left-bg {
    min-height: 25%;
  }
  .auth-left-bg::before {
    background-size: clamp(130px, 25vw, 200px);
  }
  .auth-left-bg::after {
    background-size: clamp(100px, 25vw, 320px);
  }
}
/* Force les pages auth en thème light */
.auth-light-page {
  background-color: #fff !important;
  color-scheme: light;
}
/* Inputs login */
.auth-light-page .form-control {
  background-color: #fff !important;
  color: #111 !important;
  border-color: #d1d5db !important;
}
.auth-light-page .form-control::-webkit-input-placeholder {
  color: #9ca3af !important;
}
.auth-light-page .form-control::-moz-placeholder {
  color: #9ca3af !important;
}
.auth-light-page .form-control:-ms-input-placeholder {
  color: #9ca3af !important;
}
.auth-light-page .form-control::-ms-input-placeholder {
  color: #9ca3af !important;
}
.auth-light-page .form-control::placeholder {
  color: #9ca3af !important;
}
/* Checkbox */
.auth-light-page .form-check-input {
  background-color: #fff !important;
  border: 1px solid #d1d5db !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}
.auth-light-page .form-check-input:checked {
  background-color: #212529 !important;
  border-color: #212529 !important;
}
.auth-light-page .form-check-input:focus {
  border-color: #212529 !important;
  -webkit-box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.15) !important;
          box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.15) !important;
}
/* Label du checkbox */
.auth-light-page .form-check-label {
  color: #4b5563 !important;
}
/*===============================================================
  Header
=================================================================*/
/*.app-header {
    background-color: var(--app-navbar-bg);
}*/
/* Boutons icônes */
.app-icon-btn {
  width: 40px;
  height: 40px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 0;
}
[data-kt-app-layout=dark-header] .app-header {
  background-color: var(--app-navbar-bg);
  border-bottom: 0 !important;
}
[data-kt-app-layout=dark-header] .app-header-menu .menu > .menu-item > .menu-link .menu-title {
  color: #fff;
}
.theme-switch-icon {
  color: #c4cada !important;
}
.theme-switch-icon:hover {
  color: var(--bs-warning) !important;
}
/*===============================================================
  Avatar utilisateur
=================================================================*/
.app-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: -ms-grid;
  display: grid;
  place-items: center;
  font-weight: 600;
  background: var(--app-avatar-bg);
  color: var(--app-avatar-fg);
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
}
.symbol .symbol-label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-weight: 500;
  color: var(--app-avatar-fg) !important;
  background-color: var(--app-avatar-bg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border-radius: 0.85rem;
}
.symbol .symbol-label:not([class*="bg-"]) {
  background-color: var(--app-avatar-bg);
  color: var(--app-avatar-fg);
}
/* ==========================================================================
   Dropdowns
========================================================================== */
.dropdown-item {
  cursor: pointer !important;
}
.dropdown-item:focus,
.dropdown-item:hover {
  color: #eb9c4e !important;
}
.dropdown-item.active,
.dropdown-item:active {
  color: #eb9c4e !important;
  text-decoration: none;
}
.menu-link:hover {
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
  background-color: var(--bs-primary-light);
  color: var(--bs-text-warning) !important;
}
/* ==========================================================================
   Boutons icônes
========================================================================== */
.btn.btn-icon {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 0;
  height: calc(1.5em + 1.55rem + 2px);
  width: calc(1.5em + 1.55rem + 2px);
  line-height: 1;
}
.btn.btn-icon i {
  padding-right: 0;
}
.btn.btn-icon:not(.btn-outline):not(.btn-dashed):not(.border-hover):not(.border-active):not(.btn-flush) {
  border: 0;
}
.btn.btn-icon.btn-sm,
.btn-group-sm > .btn.btn-icon {
  height: calc(1.5em + 1.1rem + 2px);
  width: calc(1.5em + 1.1rem + 2px);
}
.btn.btn-icon.btn-lg,
.btn-group-lg > .btn.btn-icon {
  height: calc(1.5em + 2rem + 2px);
  width: calc(1.5em + 2rem + 2px);
}
.btn.btn-icon.btn-circle {
  border-radius: 50%;
}
.btn.btn-icon:focus {
  -webkit-box-shadow: none;
          box-shadow: none;
}
/* ==========================================================================
   Icônes
========================================================================== */
.kpi-icones {
  line-height: 1.2;
  font-size: calc(1.475rem + 2.7vw) !important;
  font-weight: 700;
  color: var(--bs-text-muted);
}
@media (min-width: 1200px) {
  .kpi-icones {
    font-size: 3.5rem !important;
  }
}
/* ==========================================================================
   KPI – header en grid (icône + titre + métrique)
========================================================================== */
.app-kpi-header {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: auto 1rem 1fr;
  grid-template-columns: auto 1fr;
  -webkit-column-gap: 1rem;
     -moz-column-gap: 1rem;
          column-gap: 1rem;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}
.app-kpi-icon {
  min-width: 70px;
}
.app-kpi-toolbar {
  text-align: right;
}
.app-kpi-title {
  display: block;
  margin-bottom: 0.25rem;
}
.app-kpi-metric {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  gap: 0.5rem;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.app-kpi-toolbar {
  text-align: right;
}
@media (max-width: 575.98px) {
  .app-kpi-metric {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    row-gap: 0.25rem;
  }
  .app-kpi-metric .badge {
    margin-left: auto;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
  }
  .app-kpi-title {
    white-space: normal;
  }
}
/* ============================================================
   KPI – métrique à droite + titre en dessous (cards compactes)
=============================================================== */
.app-kpi-header--metric-right {
  display: -ms-grid !important;
  display: grid !important;
  -ms-grid-columns: auto 1rem 1fr;
  grid-template-columns: auto 1fr;
  -webkit-column-gap: 1rem;
     -moz-column-gap: 1rem;
          column-gap: 1rem;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.app-kpi-header--metric-right .app-kpi-toolbar {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  -ms-grid-rows: auto 0.35rem auto;
  grid-template-rows: auto auto;
  justify-items: end;
  row-gap: 0.35rem;
}
.app-kpi-header--metric-right .app-kpi-toolbar > *:nth-child(1) {
  -ms-grid-row: 1;
  -ms-grid-column: 1;
}
.app-kpi-header--metric-right .app-kpi-toolbar > *:nth-child(2) {
  -ms-grid-row: 3;
  -ms-grid-column: 1;
}
/* FORCER l’ordre, sans changer le HTML */
.app-kpi-header--metric-right .app-kpi-metric {
  -ms-grid-row: 1;
  grid-row: 1;
}
.app-kpi-header--metric-right .app-kpi-title {
  -ms-grid-row: 2;
  grid-row: 2;
}
.app-kpi-header--metric-right .app-kpi-metric {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  gap: 0.5rem;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
/* Title */
.app-kpi-header--metric-right .app-kpi-title {
  -ms-grid-row: 2;
  grid-row: 2;
  text-align: right;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: none;
}
/* KPI metric toujours sur 2 lignes */
.app-kpi-header--metric-right .app-kpi-metric {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  /* force 2 lignes */
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  /* aligné à droite */
  gap: 0.25rem;
}
/* Nettoyage des marges Bootstrap inutiles */
.app-kpi-header--metric-right .app-kpi-metric .badge {
  margin-left: 0 !important;
  /* neutralise ms-2 / ms-sm-3 */
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  /* garde la largeur naturelle */
}
/* ============================================================
   KPI – title en haut, metric en dessous (variante dédiée)
=============================================================== */
.app-kpi-header--metric-right.app-kpi-header--title-top .app-kpi-toolbar {
  -ms-grid-rows: auto auto;
  grid-template-rows: auto auto;
}
.app-kpi-header--metric-right.app-kpi-header--title-top .app-kpi-title {
  -ms-grid-row: 1;
  grid-row: 1;
  text-align: center;
  -ms-grid-column-align: stretch;
      justify-self: stretch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-kpi-header--metric-right.app-kpi-header--title-top .app-kpi-metric {
  -ms-grid-row: 2;
  grid-row: 2;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  gap: 0.5rem;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
/* ============================================================
   KPI – title en haut : icône alignée avec la métrique
================================================================ */
.app-kpi-header--metric-right.app-kpi-header--title-top {
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}
.app-kpi-header--metric-right.app-kpi-header--title-top .app-kpi-icon {
  -ms-flex-item-align: end;
      -ms-grid-row-align: end;
      align-self: end;
  /* clé du fix */
}
/* ============================================================
   KPI – Titre centré en haut, icône + métrique en bas (2x2 grid)
=============================================================== */
.app-kpi-header--title-top-centered {
  display: -ms-grid !important;
  display: grid !important;
  -ms-grid-columns: auto 1rem 1fr;
  grid-template-columns: auto 1fr;
  -ms-grid-rows: auto 0.5rem auto;
  grid-template-rows: auto auto;
  -webkit-column-gap: 1rem;
     -moz-column-gap: 1rem;
          column-gap: 1rem;
  row-gap: 0.5rem;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: end;
  min-width: 0;
}
.app-kpi-header--title-top-centered > *:nth-child(1) {
  -ms-grid-row: 1;
  -ms-grid-column: 1;
}
.app-kpi-header--title-top-centered > *:nth-child(2) {
  -ms-grid-row: 1;
  -ms-grid-column: 3;
}
.app-kpi-header--title-top-centered > *:nth-child(3) {
  -ms-grid-row: 3;
  -ms-grid-column: 1;
}
.app-kpi-header--title-top-centered > *:nth-child(4) {
  -ms-grid-row: 3;
  -ms-grid-column: 3;
}
.app-kpi-header--title-top-centered .app-kpi-toolbar {
  display: contents;
}
.app-kpi-header--title-top-centered .app-kpi-title {
  grid-column: -1;
  -ms-grid-row: 1;
  grid-row: 1;
  -ms-grid-column-align: stretch;
      justify-self: stretch;
  width: 100%;
  min-width: 0;
  text-align: center;
  /* 1 ligne + ellipsis (ne coupe pas trop tôt) */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-kpi-header--title-top-centered .app-kpi-icon {
  -ms-grid-column: 1;
  grid-column: 1;
  -ms-grid-row: 2;
  grid-row: 2;
  -ms-grid-row-align: end;
      align-self: end;
}
.app-kpi-header--title-top-centered .app-kpi-metric {
  -ms-grid-column: 2;
  grid-column: 2;
  -ms-grid-row: 2;
  grid-row: 2;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  gap: 0.5rem;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  text-align: right;
  min-width: 0;
}
/* Mobile: badge à droite, largeur naturelle */
@media (max-width: 575.98px) {
  .app-kpi-header--title-top-centered .app-kpi-metric .badge {
    margin-left: auto;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
  }
}
/* ==========================================================================
   Widget
========================================================================== */
.widget-flat {
  position: relative;
  overflow: hidden;
}
@media (min-width: 1200px) and (max-width: 1500px) {
  .widget-flat i.widget-icon {
    display: none;
  }
}
.widget-icon {
  font-size: 20px;
  height: 40px;
  width: 40px;
  text-align: center;
  line-height: 40px;
  border-radius: 3px;
  display: inline-block;
}
/* ==========================================================================
   Backgrounds
========================================================================== */
.bg-escaliermtl {
  background-color: var(--bs-escaliermtl);
}
.bg-user {
  background-color: var(--bs-user);
}
[data-bs-theme="dark"] .bg-user {
  background-color: var(--bs-secondary);
}
.kpi-icons {
  background-color: var(--bs-bg-kpi-icons) !important;
}
.card-user {
  border: none;
}
[data-bs-theme="dark"] .card-user {
  border: 1px solid #1e2027 !important;
}
.user-bg {
  position: relative;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding-top: 30px;
  background-position: left 25px;
  background-size: 300px auto;
  background-image: url(/assets/img/bg/bg-dashbord-stripes.png);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.user-bg span {
  margin-top: 60px;
}
@media only screen and (min-width: 768px) and (max-width: 1080px) {
  .user-bg {
    background-size: 250px auto;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: end;
  }
  .user-bg span {
    margin-top: 20px;
    margin-right: 50px;
    padding-bottom: 50px;
  }
}
@media only screen and (min-width: 625px) and (max-width: 767px) {
  .user-bg {
    background-size: 200px auto;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: end;
  }
  .user-bg span {
    margin-top: 10px;
    margin-right: 95px;
    padding-bottom: 50px;
  }
}
@media only screen and (max-width: 624px) {
  .user-bg {
    background-image: none;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .user-bg span {
    margin-top: 0;
    margin-right: 0;
    padding-top: 25px;
    padding-bottom: 50px;
  }
}
.lignes-bg {
  position: relative;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding-top: 10px;
  background-position: left 25px;
  background-size: 275px auto;
  background-image: url(/assets/img/bg/bg-lignes.png);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.lignes-bg span {
  font-weight: 700;
  margin-top: 10px;
}
.icon-bg {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding-top: 10px;
  /* Deux images de fond */
  background-image: url(/assets/img/bg/bg-escalier-face.png), url(/assets/img/bg/bg-icon.png);
  background-repeat: no-repeat, no-repeat;
  background-position: 15px top,
    right bottom;
  /* Tailles indépendantes */
  background-size: 70px auto,
    90px auto;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.icon-bg span {
  font-weight: 700;
  margin-top: 10px;
}
/* ==========================================================================
   KPI Ring – Marge de profit
========================================================================== */
.app-kpi--profit {
  --ring-size: 150px;
  --ring-stroke: 8;
  --ring-success: #4cc38a;
  --ring-warning: #f59e0b;
  --ring-danger: #ef4444;
  --ring-track: #e9edf2;
  --ring-text: #6b7280;
}
/* Base */
.app-kpi--profit .kpi-ring {
  position: relative;
  width: var(--ring-size);
  height: var(--ring-size);
  margin: 0 auto;
  --progress: 0;
  --ring-color: var(--ring-success);
  /* default */
}
/* SVG */
.app-kpi--profit .kpi-ring__svg {
  width: 100%;
  height: 100%;
  -webkit-transform: rotate(-90deg);
          transform: rotate(-90deg);
}
.app-kpi--profit .kpi-ring__track {
  fill: none;
  stroke: var(--ring-track);
  stroke-width: var(--ring-stroke);
}
.app-kpi--profit .kpi-ring__value {
  fill: none;
  stroke: var(--ring-color);
  stroke-width: var(--ring-stroke);
  stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: calc(289 - (289 * var(--progress) / 100));
  -webkit-transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease;
  transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease;
}
/* Texte centré */
.app-kpi--profit .kpi-ring__center {
  position: absolute;
  inset: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.app-kpi--profit .kpi-ring__number {
  font-size: 26px;
  font-weight: 700;
  color: var(--ring-text);
}
/* Dark mode */
[data-bs-theme="dark"] .app-kpi--profit {
  --ring-track: rgba(148, 163, 184, 0.18);
  --ring-text: #e5e7eb;
}
/* ==========================================================================
   KPI Bars - Nouveaux clients
   Scope: .app-kpi--clients
============================================================================= */
.app-dashboard-kpis .app-kpi--clients {
  --bars-height: 90px;
  --bar-width: 12px;
  /* largeur de la barre */
  --col-width: 28px;
  /* largeur de la colonne (barre + label) */
  --bar-gap: 14px;
  /* espace entre colonnes */
  --bar-radius: 999px;
  --bar-neutral: rgba(100, 116, 139, 0.28);
  /* gris bleuté */
  --bar-active: #d08b21;
  /* orange accent */
  --label-color: rgba(100, 116, 139, 0.7);
}
[data-bs-theme="dark"] .app-dashboard-kpis .app-kpi--clients {
  --bar-neutral: rgba(148, 163, 184, 0.22);
  --label-color: rgba(148, 163, 184, 0.7);
}
/* Wrapper global : UNE seule grille (6 colonnes) */
.app-dashboard-kpis .app-kpi--clients .kpi-bars {
  width: 100%;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: var(--col-width) var(--bar-gap) var(--col-width) var(--bar-gap) var(--col-width) var(--bar-gap) var(--col-width) var(--bar-gap) var(--col-width) var(--bar-gap) var(--col-width);
  grid-template-columns: repeat(6, var(--col-width));
  -ms-grid-rows: var(--bars-height) 10px auto;
  grid-template-rows: var(--bars-height) auto;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-column-gap: var(--bar-gap);
     -moz-column-gap: var(--bar-gap);
          column-gap: var(--bar-gap);
  row-gap: 10px;
  margin-top: 18px;
  margin-left: auto;
  margin-right: auto;
}
.app-dashboard-kpis .app-kpi--clients .kpi-bars > *:nth-child(1) {
  -ms-grid-row: 1;
  -ms-grid-column: 1;
}
.app-dashboard-kpis .app-kpi--clients .kpi-bars > *:nth-child(2) {
  -ms-grid-row: 1;
  -ms-grid-column: 3;
}
.app-dashboard-kpis .app-kpi--clients .kpi-bars > *:nth-child(3) {
  -ms-grid-row: 1;
  -ms-grid-column: 5;
}
.app-dashboard-kpis .app-kpi--clients .kpi-bars > *:nth-child(4) {
  -ms-grid-row: 1;
  -ms-grid-column: 7;
}
.app-dashboard-kpis .app-kpi--clients .kpi-bars > *:nth-child(5) {
  -ms-grid-row: 1;
  -ms-grid-column: 9;
}
.app-dashboard-kpis .app-kpi--clients .kpi-bars > *:nth-child(6) {
  -ms-grid-row: 1;
  -ms-grid-column: 11;
}
.app-dashboard-kpis .app-kpi--clients .kpi-bars > *:nth-child(7) {
  -ms-grid-row: 3;
  -ms-grid-column: 1;
}
.app-dashboard-kpis .app-kpi--clients .kpi-bars > *:nth-child(8) {
  -ms-grid-row: 3;
  -ms-grid-column: 3;
}
.app-dashboard-kpis .app-kpi--clients .kpi-bars > *:nth-child(9) {
  -ms-grid-row: 3;
  -ms-grid-column: 5;
}
.app-dashboard-kpis .app-kpi--clients .kpi-bars > *:nth-child(10) {
  -ms-grid-row: 3;
  -ms-grid-column: 7;
}
.app-dashboard-kpis .app-kpi--clients .kpi-bars > *:nth-child(11) {
  -ms-grid-row: 3;
  -ms-grid-column: 9;
}
.app-dashboard-kpis .app-kpi--clients .kpi-bars > *:nth-child(12) {
  -ms-grid-row: 3;
  -ms-grid-column: 11;
}
/* IMPORTANT : les wrappers ne doivent pas créer une 2e grille */
.app-dashboard-kpis .app-kpi--clients .kpi-bars__chart,
.app-dashboard-kpis .app-kpi--clients .kpi-bars__labels {
  display: contents;
}
/* Barres = rangée 1 */
.app-dashboard-kpis .app-kpi--clients .kpi-bar {
  -ms-grid-row: 1;
  grid-row: 1;
  -ms-grid-row-align: end;
      align-self: end;
  -ms-grid-column-align: center;
      justify-self: center;
  width: var(--bar-width);
  height: 20%;
  /* fallback si JS n'a pas encore appliqué la hauteur */
  border-radius: var(--bar-radius);
  background: var(--bar-neutral);
  -webkit-transition: height 0.35s ease, background 0.25s ease, opacity 0.25s ease;
  transition: height 0.35s ease, background 0.25s ease, opacity 0.25s ease;
}
/* Barre active */
.app-dashboard-kpis .app-kpi--clients .kpi-bar.is-active {
  background: var(--bar-active);
  opacity: 1;
}
.app-dashboard-kpis .app-kpi--clients .kpi-bar:not(.is-active) {
  opacity: 0.9;
}
/* Labels = rangée 2 */
.app-dashboard-kpis .app-kpi--clients .kpi-label {
  -ms-grid-row: 2;
  grid-row: 2;
  -ms-grid-column-align: center;
      justify-self: center;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--label-color);
  letter-spacing: 0.06em;
}
/* ==========================================================================
   hauteur commune aux 3 cards
========================================================================== */
.app-dashboard-kpis {
  --kpi-top-height: 220px;
  /* ajuste au besoin */
}
/* force toutes les cards du bloc à cette hauteur */
.app-dashboard-kpis .card {
  height: var(--kpi-top-height);
}
/* ==========================================================================
   Data tables pagination
========================================================================== */
.page-link.active,
.active > .page-link {
  z-index: 3;
  color: #fff;
  background-color: var(--bs-warning) !important;
  border-color: var(--bs-warning) !important;
}
.table {
  --bs-table-color-type: initial;
  --bs-table-bg-type: initial;
  --bs-table-color-state: initial;
  --bs-table-bg-state: initial;
  --bs-table-color: var(--bs-body-color);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--bs-border-color);
  --bs-table-accent-bg: transparent;
  --bs-table-striped-color: var(--bs-body-color);
  --bs-table-striped-bg: rgba(var(--bs-gray-300-rgb), 0.35);
  --bs-table-active-color: var(--bs-body-color);
  --bs-table-active-bg: var(--bs-gray-100);
  --bs-table-hover-color: var(--bs-body-color);
  --bs-table-hover-bg: var(--bs-gray-100);
  width: 100%;
  margin-bottom: 1rem;
  vertical-align: top;
  border-color: var(--bs-table-border-color);
}
.table:not(.table-bordered).table-row-dashed tr {
  border-bottom-width: 1px;
  border-bottom-style: dashed;
  border-bottom-color: #cdcdcd !important;
}
/* Dark mode */
[data-bs-theme="dark"] .table:not(.table-bordered).table-row-dashed tr {
  border-bottom-width: 1px;
  border-bottom-style: dashed;
  border-bottom-color: rgba(var(--bs-gray-300-rgb), 0.9) !important;
}
.table:not(.table-bordered) td:first-child,
.table:not(.table-bordered) th:first-child,
.table:not(.table-bordered) tr:first-child {
  padding-left: 1.25rem !important;
}
.table:not(.table-bordered) td:last-child,
.table:not(.table-bordered) th:last-child,
.table:not(.table-bordered) tr:last-child {
  padding-right: 1.25rem !important;
}
#soumissions thead {
  border-top: 1px dashed rgba(var(--bs-gray-500-rgb), 0.4);
}
#soumissions thead th {
  border-bottom: 1px dashed rgba(var(--bs-gray-500-rgb), 0.4);
}
#soumissions td.actions-col .btn.btn-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  min-width: auto;
}
#soumissions td.actions-col i {
  font-size: 1.1rem;
}
#soumissions td.actions-col .btn + .btn {
  margin-left: 4px;
}
#soumissions td.actions-col .btn {
  margin: 0;
}
#soumissions_wrapper .dataTables_length {
  margin-bottom: 1rem;
  /* ajuste: 0.75rem / 1rem / 1.5rem */
}
/* ==========================================================================
   Daterangepicker
========================================================================== */
/*.daterangepicker {
    color: var(--bs-gray-800);
}*/
.daterangepicker td.active,
.daterangepicker td.active:hover {
  background-color: #e78b2f;
  border-color: transparent;
  color: #fff;
}
.daterangepicker td.in-range {
  background-color: rgba(203, 139, 42, 0.25);
  border-color: transparent;
  color: #000;
  border-radius: 0;
}
.daterangepicker td.available:hover,
.daterangepicker th.available:hover {
  background-color: rgba(203, 139, 42, 0.5);
  border-color: transparent;
  color: inherit;
}
/* ====== Daterangepicker (Dan Grossman) - Bootstrap 5 Dark ====== */
:root[data-bs-theme="dark"] .daterangepicker,
body[data-bs-theme="dark"] .daterangepicker {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
  -webkit-box-shadow: var(--bs-box-shadow);
          box-shadow: var(--bs-box-shadow);
}
/* Petite flèche */
:root[data-bs-theme="dark"] .daterangepicker:before,
body[data-bs-theme="dark"] .daterangepicker:before {
  border-bottom-color: var(--bs-border-color);
}
:root[data-bs-theme="dark"] .daterangepicker:after,
body[data-bs-theme="dark"] .daterangepicker:after {
  border-bottom-color: var(--bs-body-bg);
}
/* Tables calendrier */
:root[data-bs-theme="dark"] .daterangepicker .calendar-table,
body[data-bs-theme="dark"] .daterangepicker .calendar-table {
  background: var(--bs-body-bg);
  border: 0;
  color: var(--bs-body-color);
}
:root[data-bs-theme="dark"] .daterangepicker .calendar-table th,
:root[data-bs-theme="dark"] .daterangepicker .calendar-table td,
body[data-bs-theme="dark"] .daterangepicker .calendar-table th,
body[data-bs-theme="dark"] .daterangepicker .calendar-table td {
  color: var(--bs-body-color);
}
/* Jours hors mois */
:root[data-bs-theme="dark"] .daterangepicker td.off,
:root[data-bs-theme="dark"] .daterangepicker td.off.in-range,
body[data-bs-theme="dark"] .daterangepicker td.off,
body[data-bs-theme="dark"] .daterangepicker td.off.in-range {
  color: var(--bs-secondary-color);
  opacity: 0.55;
  background-color: transparent;
}
/* Hover */
:root[data-bs-theme="dark"] .daterangepicker td.available:hover,
body[data-bs-theme="dark"] .daterangepicker td.available:hover {
  background: rgba(var(--bs-emphasis-color-rgb), 0.12);
}
/* Range */
:root[data-bs-theme="dark"] .daterangepicker td.in-range,
body[data-bs-theme="dark"] .daterangepicker td.in-range {
  background: rgba(var(--bs-primary-rgb), 0.18);
  color: var(--bs-body-color);
}
/* Start/End */
:root[data-bs-theme="dark"] .daterangepicker td.active,
:root[data-bs-theme="dark"] .daterangepicker td.active:hover,
body[data-bs-theme="dark"] .daterangepicker td.active,
body[data-bs-theme="dark"] .daterangepicker td.active:hover {
  background: var(--bs-primary);
  color: #fff;
}
/* Footer + boutons */
:root[data-bs-theme="dark"] .daterangepicker .drp-buttons,
body[data-bs-theme="dark"] .daterangepicker .drp-buttons {
  border-top: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
}
:root[data-bs-theme="dark"] .daterangepicker .drp-buttons .btn,
body[data-bs-theme="dark"] .daterangepicker .drp-buttons .btn {
  border-radius: var(--bs-border-radius);
}
/* Selects (mois/année/heure) */
:root[data-bs-theme="dark"] .daterangepicker select,
body[data-bs-theme="dark"] .daterangepicker select {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  border: 1px solid var(--bs-border-color);
}
/* Fix visibilité (dates + flèches) pour daterangepicker en Bootstrap dark */
:root[data-bs-theme="dark"] .daterangepicker,
body[data-bs-theme="dark"] .daterangepicker {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
}
/* Titre du mois (header) */
:root[data-bs-theme="dark"] .daterangepicker .drp-calendar .calendar-table th.month,
body[data-bs-theme="dark"] .daterangepicker .drp-calendar .calendar-table th.month {
  color: var(--bs-body-color);
}
/* Flèches (ce sont des borders sur un span) */
:root[data-bs-theme="dark"] .daterangepicker .calendar-table th.prev span,
:root[data-bs-theme="dark"] .daterangepicker .calendar-table th.next span,
body[data-bs-theme="dark"] .daterangepicker .calendar-table th.prev span,
body[data-bs-theme="dark"] .daterangepicker .calendar-table th.next span {
  border-color: var(--bs-body-color) !important;
  opacity: 0.9;
}
/* Hover background des flèches (prev / next) en dark */
:root[data-bs-theme="dark"] .daterangepicker .calendar-table th.prev:hover,
:root[data-bs-theme="dark"] .daterangepicker .calendar-table th.next:hover,
body[data-bs-theme="dark"] .daterangepicker .calendar-table th.prev:hover,
body[data-bs-theme="dark"] .daterangepicker .calendar-table th.next:hover {
  background-color: #d08b21;
  cursor: pointer;
}
/* Couleur de base des cellules */
:root[data-bs-theme="dark"] .daterangepicker .calendar-table td,
:root[data-bs-theme="dark"] .daterangepicker .calendar-table th,
body[data-bs-theme="dark"] .daterangepicker .calendar-table td,
body[data-bs-theme="dark"] .daterangepicker .calendar-table th {
  color: var(--bs-body-color);
}
/* Jours hors mois / désactivés : les rendre lisibles */
:root[data-bs-theme="dark"] .daterangepicker td.off,
:root[data-bs-theme="dark"] .daterangepicker td.off.in-range,
:root[data-bs-theme="dark"] .daterangepicker td.disabled,
body[data-bs-theme="dark"] .daterangepicker td.off,
body[data-bs-theme="dark"] .daterangepicker td.off.in-range,
body[data-bs-theme="dark"] .daterangepicker td.disabled {
  color: rgba(var(--bs-body-color-rgb), 0.45) !important;
  text-decoration: none;
}
:root[data-bs-theme="dark"] .daterangepicker td.disabled,
body[data-bs-theme="dark"] .daterangepicker td.disabled {
  opacity: 1 !important;
}
/* Hover */
:root[data-bs-theme="dark"] .daterangepicker td.available:hover,
body[data-bs-theme="dark"] .daterangepicker td.available:hover {
  background: rgba(203, 139, 42, 0.5);
}
/* Range */
:root[data-bs-theme="dark"] .daterangepicker td.in-range,
body[data-bs-theme="dark"] .daterangepicker td.in-range {
  background: rgba(203, 139, 42, 0.25);
  color: var(--bs-body-color);
}
/* Start/End */
:root[data-bs-theme="dark"] .daterangepicker td.active,
:root[data-bs-theme="dark"] .daterangepicker td.active:hover,
body[data-bs-theme="dark"] .daterangepicker td.active,
body[data-bs-theme="dark"] .daterangepicker td.active:hover {
  background: var(--bs-escaliermtl-2);
  color: #fff;
}
/* =================================================
   Pour simple datepicker
==================================================== */
/* Supprimer contour des selects du daterangepicker */
.daterangepicker select.monthselect,
.daterangepicker select.yearselect {
  border: 0 !important;
  outline: none !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
  background-color: transparent;
}
.daterangepicker select.monthselect:focus,
.daterangepicker select.yearselect:focus {
  border: 0 !important;
  outline: none !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}
.daterangepicker select.monthselect,
.daterangepicker select.yearselect {
  padding: 2px 4px;
  border-radius: var(--bs-border-radius-sm);
}
:root[data-bs-theme="dark"] .daterangepicker select.monthselect:hover,
:root[data-bs-theme="dark"] .daterangepicker select.yearselect:hover {
  background: rgba(var(--bs-emphasis-color-rgb), 0.08);
}
/* Dark mode : dropdown des select du daterangepicker */
:root[data-bs-theme="dark"] .daterangepicker select.monthselect,
:root[data-bs-theme="dark"] .daterangepicker select.yearselect {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}
/* Options dans le menu */
:root[data-bs-theme="dark"] .daterangepicker select.monthselect option,
:root[data-bs-theme="dark"] .daterangepicker select.yearselect option {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}
/* =================================================
   Heures datepicker
==================================================== */
.daterangepicker .calendar-time {
  margin-top: 4px;
  padding: 8px 10px;
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
/* RESET + tailles stables */
.daterangepicker .calendar-time select.hourselect,
.daterangepicker .calendar-time select.minuteselect,
.daterangepicker .calendar-time select.ampmselect {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  height: 34px;
  padding: 0 10px;
  /* padding right */
  border-radius: 8px;
  border: 1px solid #d0d5dd;
  background-color: #fff;
  font-size: 13px;
  width: 64px;
  /* fixe = jamais coupé */
  max-width: none !important;
  text-align: left !important;
  /* évite les bugs de rendu */
  -moz-text-align-last: left !important;
       text-align-last: left !important;
  /* important: éviter le style "custom select" qui coupe */
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  appearance: menulist;
  /* éviter héritages weird */
  background-image: none !important;
}
/* minutes */
.daterangepicker .calendar-time select.minuteselect {
  width: 72px;
}
/* AM/PM */
.daterangepicker .calendar-time select.ampmselect {
  width: 64px;
}
.daterangepicker .timepicker-label {
  font-size: 13px;
  font-weight: 600;
  margin: 10px 0 6px 0;
  text-align: center;
  color: #495057;
}
/* inverse l’ordre de bouttons */
/*.daterangepicker .drp-buttons{
    display: flex !important;
    justify-content: flex-end;
    gap: 8px;
    flex-direction: row-reverse; 
}*/
/* =================================================
   SweetAlert2 – Boutons
==================================================== */
/* Bouton OK / Confirm */
.swal2-confirm {
  background-color: #ffba08 !important;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600;
}
/* Hover */
.swal2-confirm:hover {
  background-color: #e0a800 !important;
}
/* Bouton Annuler */
.swal2-cancel {
  background-color: #dc3545 !important;
  color: #fff !important;
  border-radius: 6px;
}
/* Hover */
.swal2-cancel:hover {
  background-color: #bb2d3b !important;
}
/* Bouton info / neutral */
.swal2-deny {
  background-color: #6c757d !important;
  color: #fff !important;
}
/* =================================================
   Fix pour les selects et datepicker
==================================================== */
/* Hauteur uniforme pour tes filtres */
.form-control-kpi {
  height: 38px;
  line-height: 1.2;
}
select.form-control-kpi {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}
#calendar-icon-1 {
  height: 38px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
/* =================================================
   Kpi cards 2 (light/dark)
==================================================== */
.kpi2-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 992px) {
  .kpi2-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}
.kpi2-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed var(--bs-border-dashed-color);
  /*background: var(--bs-card-bg);*/
}
[data-bs-theme="dark"] .kpi2-card {
  border-color: rgba(255, 255, 255, 0.12);
  -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
/* Accent bar */
.kpi2-accent {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 7px;
  width: 100%;
  z-index: 1;
}
.kpi2-month .kpi2-accent {
  background: -webkit-gradient(linear, left top, right top, from(#F79009), to(#F04438));
  background: linear-gradient(90deg, #F79009, #F04438);
}
.kpi2-ytd .kpi2-accent {
  background: -webkit-gradient(linear, left top, right top, from(#12B76A), to(#2E90FA));
  background: linear-gradient(90deg, #12B76A, #2E90FA);
}
.kpi2-avg .kpi2-accent {
  background: -webkit-gradient(linear, left top, right top, from(#7A5AF8), to(#F63D68));
  background: linear-gradient(90deg, #7A5AF8, #F63D68);
}
.kpi2-top,
.kpi2-bottom {
  position: relative;
  z-index: 2;
}
.kpi2-label {
  font-size: 14px;
  color: var(--bs-gray-600);
  font-weight: 700;
  margin: 2px 0 8px;
}
[data-bs-theme="dark"] .kpi2-label {
  color: var(--bs-gray-500);
}
.kpi2-value {
  font-size: 30px;
  font-weight: 900;
  color: var(--bs-gray-900);
  letter-spacing: -0.6px;
  line-height: 1.05;
}
[data-bs-theme="dark"] .kpi2-value {
  color: var(--bs-gray-100);
}
.kpi2-sub {
  font-size: 12px;
  color: var(--bs-gray-500);
  margin-top: 8px;
  font-weight: 600;
}
.kpi2-badge {
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(var(--bs-success-rgb), 0.12);
  color: var(--bs-success);
  white-space: nowrap;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
}
[data-bs-theme="dark"] .kpi2-badge {
  background: rgba(var(--bs-success-rgb), 0.18);
}
.kpi2-badge.negative {
  background: rgba(var(--bs-danger-rgb), 0.12);
  color: var(--bs-danger);
}
[data-bs-theme="dark"] .kpi2-badge.negative {
  background: rgba(var(--bs-danger-rgb), 0.18);
}
.kpi2-bottom {
  margin-top: 14px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 10px;
}
.kpi2-chip {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  background: rgba(var(--bs-secondary-rgb), 0.1);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-gray-900);
}
[data-bs-theme="dark"] .kpi2-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--bs-gray-100);
}
.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}
.kpi2-watermark {
  position: absolute;
  right: -10px;
  bottom: -14px;
  font-size: 96px;
  -webkit-transform: rotate(-10deg);
          transform: rotate(-10deg);
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  color: rgba(0, 0, 0, 0.06);
}
[data-bs-theme="dark"] .kpi2-watermark {
  color: rgba(255, 255, 255, 0.1);
  /* dark visible */
}
/* Option */
.kpi2-watermark i {
  display: block;
  -webkit-filter: blur(0.1px);
          filter: blur(0.1px);
}
.kpi2-content {
  position: relative;
  z-index: 2;
}
.kpi2-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
  color: #F04438;
  /* fallback */
}
[data-bs-theme="dark"] .kpi2-icon {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}
.kpi2-icon--month {
  color: #F04438;
}
.kpi2-icon--ytd {
  color: #12B76A;
}
.kpi2-icon--avg {
  color: #7A5AF8;
}
/* =================================================
   KPI2 – Financial cards (scoped to .kpi2-grid only)
   Dégradés + sans accent bar
==================================================== */
.kpi2-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 992px) {
  .kpi2-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}
/* base card */
.kpi2-grid .kpi2-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed var(--bs-border-dashed-color);
  background: var(--bs-card-bg);
}
.kpi2-grid .kpi2-accent {
  display: none !important;
}
[data-bs-theme="dark"] .kpi2-grid .kpi2-card {
  border-color: rgba(255, 255, 255, 0.12);
  -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
/* =================================================
   Accent variables per card
   (utilise une seule source de vérité)
==================================================== */
.kpi2-grid .kpi2-month {
  --kpi2-a: 245, 158, 11;
}
/* amber */
.kpi2-grid .kpi2-ytd {
  --kpi2-a: 46, 144, 250;
}
/* blue */
.kpi2-grid .kpi2-avg {
  --kpi2-a: 14, 165, 164;
}
/* teal */
/* -----------------------------
   Dégradé discret dans la carte
------------------------------*/
.kpi2-grid .kpi2-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(120% 70% at 10% 0%, rgba(var(--kpi2-a), 0.14) 0%, rgba(var(--kpi2-a), 0.06) 40%, rgba(var(--kpi2-a), 0) 70%), -webkit-gradient(linear, left top, left bottom, from(rgba(var(--kpi2-a), 0.06)), color-stop(55%, rgba(var(--kpi2-a), 0)));
  background: radial-gradient(120% 70% at 10% 0%, rgba(var(--kpi2-a), 0.14) 0%, rgba(var(--kpi2-a), 0.06) 40%, rgba(var(--kpi2-a), 0) 70%), linear-gradient(180deg, rgba(var(--kpi2-a), 0.06) 0%, rgba(var(--kpi2-a), 0) 55%);
}
[data-bs-theme="dark"] .kpi2-grid .kpi2-card::before {
  background: radial-gradient(120% 70% at 10% 0%, rgba(var(--kpi2-a), 0.22) 0%, rgba(var(--kpi2-a), 0.1) 40%, rgba(var(--kpi2-a), 0) 70%), -webkit-gradient(linear, left top, left bottom, from(rgba(var(--kpi2-a), 0.1)), color-stop(55%, rgba(var(--kpi2-a), 0)));
  background: radial-gradient(120% 70% at 10% 0%, rgba(var(--kpi2-a), 0.22) 0%, rgba(var(--kpi2-a), 0.1) 40%, rgba(var(--kpi2-a), 0) 70%), linear-gradient(180deg, rgba(var(--kpi2-a), 0.1) 0%, rgba(var(--kpi2-a), 0) 55%);
}
.kpi2-grid .kpi2-card > * {
  position: relative;
  z-index: 1;
}
.kpi2-grid .kpi2-card .fa-thin {
  color: rgb(var(--kpi2-a)) !important;
  opacity: 0.95;
}
.kpi2-grid .kpi2-card .fa-thin {
  padding: 10px;
  border-radius: 14px;
  background: rgba(var(--kpi2-a), 0.1);
  border: 1px solid rgba(var(--kpi2-a), 0.18);
}
[data-bs-theme="dark"] .kpi2-grid .kpi2-card .fa-thin {
  background: rgba(var(--kpi2-a), 0.14);
  border-color: rgba(var(--kpi2-a), 0.24);
}
/* -----------------------------
   Bullets vendeurs: teinte par carte 
------------------------------*/
.kpi2-grid .kpi2-card .bullet.bg-warning {
  background-color: rgba(var(--kpi2-a), 0.95) !important;
}
.kpi2-grid .kpi2-card .fw-bolder.text-gray-700 {
  color: var(--bs-gray-800) !important;
}
[data-bs-theme="dark"] .kpi2-grid .kpi2-card .fw-bolder.text-gray-700 {
  color: var(--bs-gray-200) !important;
}
/* Option : hover très subtil */
.kpi2-grid .kpi2-card:hover {
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
  -webkit-transition: 180ms ease;
  transition: 180ms ease;
}
/* =================================================
   KPI2 – Financial cards (Orange family, full-card gradient)
   Scoped to .kpi2-grid only
==================================================== */
/* base */
.kpi2-grid .kpi2-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--bs-card-bg);
}
.kpi2-grid .kpi2-accent {
  display: none !important;
}
[data-bs-theme="dark"] .kpi2-grid .kpi2-card {
  border-color: rgba(255, 255, 255, 0.1);
  -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
/* -------------------------------------------------
   ORANGE FAMILY TOKENS (3 nuances proches)
   a1 = amber, a2 = orange, a3 = coral
-------------------------------------------------- */
.kpi2-grid .kpi2-a1 {
  --kpi2-a: 245, 158, 11;
  --kpi2-b: 251, 146, 60;
}
/* #F59E0B -> #FB923C */
.kpi2-grid .kpi2-a2 {
  --kpi2-a: 251, 146, 60;
  --kpi2-b: 249, 115, 22;
}
/* #FB923C -> #F97316 */
.kpi2-grid .kpi2-a3 {
  --kpi2-a: 249, 115, 22;
  --kpi2-b: 244, 63, 94;
}
/* #F97316 -> #F43F5E (coral/rose chaud) */
/* -------------------------------------------------
   FULL CARD GRADIENT (subtil, lisible)
-------------------------------------------------- */
.kpi2-grid .kpi2-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(135deg, rgba(var(--kpi2-a), 0.16) 0%, rgba(var(--kpi2-b), 0.1) 45%, rgba(var(--kpi2-a), 0.06) 100%), radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 55%);
}
/* dark mode: on garde le gradient mais moins “blanc” */
[data-bs-theme="dark"] .kpi2-grid .kpi2-card::before {
  background: linear-gradient(135deg, rgba(var(--kpi2-a), 0.18) 0%, rgba(var(--kpi2-b), 0.12) 45%, rgba(var(--kpi2-a), 0.07) 100%), radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 55%);
}
.kpi2-grid .kpi2-card > * {
  position: relative;
  z-index: 1;
}
/* -------------------------------------------------
   Icon right: chip assorti (et override Metronic i[...] muted)
-------------------------------------------------- */
.kpi2-grid .kpi2-card .fa-thin {
  color: rgb(var(--kpi2-a)) !important;
  padding: 10px;
  border-radius: 14px;
  background: rgba(var(--kpi2-a), 0.12);
  border: 1px solid rgba(var(--kpi2-a), 0.22);
}
[data-bs-theme="dark"] .kpi2-grid .kpi2-card .fa-thin {
  background: rgba(var(--kpi2-a), 0.14);
  border-color: rgba(var(--kpi2-a), 0.26);
}
/* -------------------------------------------------
   Bullets vendeurs: match orange family
   (ton HTML est bg-warning -> on le remplace ici)
-------------------------------------------------- */
.kpi2-grid .kpi2-card .bullet.bg-warning {
  background-color: rgba(var(--kpi2-a), 0.95) !important;
}
/* Montants vendeurs (meilleure lisibilité) */
.kpi2-grid .kpi2-card .fw-bolder.text-gray-700 {
  color: var(--bs-gray-800) !important;
}
[data-bs-theme="dark"] .kpi2-grid .kpi2-card .fw-bolder.text-gray-700 {
  color: var(--bs-gray-200) !important;
}
/* hover subtil */
.kpi2-grid .kpi2-card {
  -webkit-transition: -webkit-transform 180ms ease, -webkit-box-shadow 180ms ease;
  transition: -webkit-transform 180ms ease, -webkit-box-shadow 180ms ease;
  transition: transform 180ms ease, box-shadow 180ms ease;
  transition: transform 180ms ease, box-shadow 180ms ease, -webkit-transform 180ms ease, -webkit-box-shadow 180ms ease;
}
.kpi2-grid .kpi2-card:hover {
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}
/* ==========================================================
   KPI v3 - Scoped styles (won't affect the rest)
============================================================= */
.kpi3 .kpi3-col {
  border: 1px solid var(--bs-border-color);
  border-radius: 18px;
  background: var(--bs-card-bg);
}
/* Header icon */
.kpi3 .kpi3-col__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(0, 0, 0, 0.02);
  color: var(--kpi3-accent, #F1416C) !important;
}
[data-bs-theme="dark"] .kpi3 .kpi3-col__icon {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}
/* --- KPI3: empêcher de recolorer les icons --- */
.kpi3 .kpi3-col__icon,
.kpi3 .kpi3-leader__pict,
.kpi3 .kpi3-row__mini {
  color: var(--kpi3-accent, #F1416C);
}
/* force l'icône à hériter du parent */
.kpi3 .kpi3-col__icon > i,
.kpi3 .kpi3-leader__pict > i,
.kpi3 .kpi3-row__mini > i {
  color: inherit !important;
}
/* Leader card */
.kpi3 .kpi3-leader {
  border-radius: 16px;
  /*border: 1px dashed rgba(0,0,0,.10);*/
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.02)), to(rgba(0, 0, 0, 0)));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0));
  padding: 16px;
}
[data-bs-theme="dark"] .kpi3 .kpi3-leader {
  border-color: rgba(255, 255, 255, 0.12);
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.06)), to(rgba(255, 255, 255, 0.02)));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}
.kpi3 .kpi3-value {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.05;
}
.kpi3 .kpi3-sub {
  font-size: 12px;
  font-weight: 600;
}
/* Leader pictogram (right) */
.kpi3 .kpi3-leader__pict {
  width: 44px;
  height: 44px;
  /*border-radius: 14px;*/
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  /*background: rgba(0,0,0,.03);*/
  /*border: 1px solid rgba(0,0,0,.06);*/
  color: var(--kpi3-accent, #F1416C);
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
}
[data-bs-theme="dark"] .kpi3 .kpi3-leader__pict {
  /*background: rgba(255,255,255,.06);*/
  border-color: rgba(255, 255, 255, 0.1);
}
/* Progress */
.kpi3 .kpi3-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
[data-bs-theme="dark"] .kpi3 .kpi3-progress {
  background: rgba(255, 255, 255, 0.08);
}
.kpi3 .kpi3-progress__bar {
  height: 100%;
  border-radius: 999px;
  background: var(--kpi3-accent, #F1416C);
}
/* Divider */
.kpi3 .kpi3-divider {
  height: 1px;
  width: 100%;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}
[data-bs-theme="dark"] .kpi3 .kpi3-divider {
  border-top-color: rgba(255, 255, 255, 0.12);
}
/* Rows */
.kpi3 .kpi3-rows {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 10px;
}
.kpi3 .kpi3-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(0, 0, 0, 0.01);
}
[data-bs-theme="dark"] .kpi3 .kpi3-row {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.kpi3 .kpi3-row__left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  min-width: 0;
}
.kpi3 .kpi3-row__label {
  font-weight: 700;
  color: var(--bs-gray-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px;
}
[data-bs-theme="dark"] .kpi3 .kpi3-row__label {
  color: var(--bs-gray-200);
}
.kpi3 .kpi3-row__mini {
  width: 32px;
  height: 32px;
  /*border-radius: 12px;*/
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  /*border: 1px solid rgba(0,0,0,.06);
  background: rgba(0,0,0,.02);*/
  color: var(--kpi3-accent, #F1416C);
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
}
/*[data-bs-theme="dark"] .kpi3 .kpi3-row__mini{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}*/
.kpi3 .kpi3-row__right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
}
.kpi3 .kpi3-row__value {
  font-weight: 800;
  color: var(--bs-gray-700);
  white-space: nowrap;
}
[data-bs-theme="dark"] .kpi3 .kpi3-row__value {
  color: var(--bs-gray-200);
}
.kpi3 .kpi3-row__delta {
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.kpi3 .kpi3-pos {
  background: rgba(var(--bs-success-rgb), 0.12);
  color: var(--bs-success);
  border-color: rgba(var(--bs-success-rgb), 0.18);
}
.kpi3 .kpi3-neg {
  background: rgba(var(--bs-danger-rgb), 0.12);
  color: var(--bs-danger);
  border-color: rgba(var(--bs-danger-rgb), 0.18);
}
.kpi3 .kpi3-col--perf {
  --kpi3-accent: #F59E0B;
}
.kpi3 .kpi3-col--perf .kpi3-leader {
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(245, 158, 11, 0.08)), to(rgba(245, 158, 11, 0.02)));
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02));
}
[data-bs-theme="dark"] .kpi3 .kpi3-col--perf .kpi3-leader {
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(245, 158, 11, 0.16)), to(rgba(245, 158, 11, 0.05)));
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.05));
}
.kpi3 .kpi3-col--activity {
  --kpi3-accent: #2E90FA;
  /* bleu */
}
.kpi3 .kpi3-col--activity .kpi3-leader {
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(46, 144, 250, 0.08)), to(rgba(46, 144, 250, 0.02)));
  background: linear-gradient(180deg, rgba(46, 144, 250, 0.08), rgba(46, 144, 250, 0.02));
}
[data-bs-theme="dark"] .kpi3 .kpi3-col--activity .kpi3-leader {
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(46, 144, 250, 0.16)), to(rgba(46, 144, 250, 0.05)));
  background: linear-gradient(180deg, rgba(46, 144, 250, 0.16), rgba(46, 144, 250, 0.05));
}
.kpi3 .kpi3-col--ops {
  --kpi3-accent: #0EA5A4;
}
.kpi3 .kpi3-col--ops .kpi3-leader {
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(14, 165, 164, 0.08)), to(rgba(14, 165, 164, 0.02)));
  background: linear-gradient(180deg, rgba(14, 165, 164, 0.08), rgba(14, 165, 164, 0.02));
}
[data-bs-theme="dark"] .kpi3 .kpi3-col--ops .kpi3-leader {
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(14, 165, 164, 0.16)), to(rgba(14, 165, 164, 0.05)));
  background: linear-gradient(180deg, rgba(14, 165, 164, 0.16), rgba(14, 165, 164, 0.05));
}
/* ==========================================================
   KPI3 – Labels sur 2 lignes max (sans ...)
   ========================================================== */
.kpi3 .kpi3-row__label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  /* nombre de lignes contrôlable */
  overflow: hidden;
  white-space: normal;
  /* autorise le retour à la ligne */
  line-height: 1.25;
  /* contrôle la hauteur */
  max-width: 100%;
}
.kpi3 .kpi3-row__left {
  min-width: 0;
  /* essentiel pour le line-clamp */
}
.kpi3 .kpi3-divider {
  height: 1px;
  width: 100%;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
}
[data-bs-theme="dark"] .kpi3 .kpi3-divider {
  border-top-color: rgba(255, 255, 255, 0.18);
}
/* Teinte par colonne */
.kpi3 .kpi3-col--perf .kpi3-divider {
  border-top-color: rgba(245, 158, 11, 0.35);
}
[data-bs-theme="dark"] .kpi3 .kpi3-col--perf .kpi3-divider {
  border-top-color: rgba(245, 158, 11, 0.45);
}
.kpi3 .kpi3-col--activity .kpi3-divider {
  border-top-color: rgba(46, 144, 250, 0.35);
}
[data-bs-theme="dark"] .kpi3 .kpi3-col--activity .kpi3-divider {
  border-top-color: rgba(46, 144, 250, 0.45);
}
.kpi3 .kpi3-col--ops .kpi3-divider {
  border-top-color: rgba(14, 165, 164, 0.35);
}
[data-bs-theme="dark"] .kpi3 .kpi3-col--ops .kpi3-divider {
  border-top-color: rgba(14, 165, 164, 0.45);
}
.kpi3 .kpi3-row {
  border: 1px dashed rgba(0, 0, 0, 0.08);
}
[data-bs-theme="dark"] .kpi3 .kpi3-row {
  border-color: rgba(255, 255, 255, 0.1);
}
/* Teinte par colonne */
.kpi3 .kpi3-col--perf .kpi3-row {
  border-color: rgba(245, 158, 11, 0.25);
}
[data-bs-theme="dark"] .kpi3 .kpi3-col--perf .kpi3-row {
  border-color: rgba(245, 158, 11, 0.3);
}
.kpi3 .kpi3-col--activity .kpi3-row {
  border-color: rgba(46, 144, 250, 0.25);
}
[data-bs-theme="dark"] .kpi3 .kpi3-col--activity .kpi3-row {
  border-color: rgba(46, 144, 250, 0.3);
}
.kpi3 .kpi3-col--ops .kpi3-row {
  border-color: rgba(14, 165, 164, 0.25);
}
[data-bs-theme="dark"] .kpi3 .kpi3-col--ops .kpi3-row {
  border-color: rgba(14, 165, 164, 0.3);
}
.kpi3 .kpi3-col--perf {
  --kpi3-accent: #F59E0B;
  --kpi3-accent-rgb: 245, 158, 11;
}
.kpi3 .kpi3-col--activity {
  --kpi3-accent: #2E90FA;
  --kpi3-accent-rgb: 46, 144, 250;
}
.kpi3 .kpi3-col--ops {
  --kpi3-accent: #0EA5A4;
  --kpi3-accent-rgb: 14, 165, 164;
}
.kpi3 .kpi3-col__icon {
  border: 1px solid rgba(var(--kpi3-accent-rgb), 0.25) !important;
  color: var(--kpi3-accent);
}
.kpi3 .kpi3-leader {
  border: 1px solid rgba(var(--kpi3-accent-rgb), 0.25) !important;
}
[data-bs-theme="dark"] .kpi3 .kpi3-col__icon,
[data-bs-theme="dark"] .kpi3 .kpi3-leader {
  border-color: rgba(var(--kpi3-accent-rgb), 0.35) !important;
}
.kpi3 .kpi3-col__icon > i,
.kpi3 .kpi3-leader__pict > i,
.kpi3 .kpi3-row__mini > i {
  color: inherit !important;
}
/* =========================================================
   KPI2 (Top financial cards) — Scoped only to .kpi2-grid
   Manages: icon chips, badge, progress bar
========================================================= */
/* Right column */
.kpi2-grid .kpi2-right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  gap: 10px;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
}
/* =========================================================
   KPI2 – Icon chip (centered like bottom section icons)
========================================================= */
.kpi2-grid .kpi2-iconchip {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: #F59E0B;
  line-height: 1;
}
/* Icône FA – centrage */
.kpi2-grid .kpi2-iconchip > i {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin: 0;
  -webkit-transform: translateY(1px);
          transform: translateY(1px);
  color: inherit !important;
}
/* Dark mode */
[data-bs-theme="dark"] .kpi2-grid .kpi2-iconchip {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.28);
}
/* Badge under icon */
.kpi2-grid .kpi2-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  line-height: 1;
  padding: 10px 12px;
}
/* Subtitle */
.kpi2-grid .kpi2-sub {
  font-size: 12px;
  font-weight: 600;
}
/* separator/progress */
.kpi2-grid .kpi2-sep {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
[data-bs-theme="dark"] .kpi2-grid .kpi2-sep {
  background: rgba(255, 255, 255, 0.12);
}
.kpi2-grid .kpi2-sep__bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #F59E0B;
}
/* vendeurs: */
.kpi2-grid .kpi2-card .bullet.bg-warning {
  background-color: rgba(245, 158, 11, 0.95) !important;
}
.kpi2-grid .kpi2-card .fw-bolder.text-gray-700 {
  color: var(--bs-gray-800) !important;
}
[data-bs-theme="dark"] .kpi2-grid .kpi2-card .fw-bolder.text-gray-700 {
  color: var(--bs-gray-200) !important;
}
/* ==========================================================
   DataTables (Metronic) — chevrons visibles & taille texte
============================================================= */
table.dataTable thead th.dt-orderable-asc,
table.dataTable thead th.dt-orderable-desc {
  position: relative;
}
table.dataTable thead th.dt-orderable-asc::after,
table.dataTable thead th.dt-orderable-desc::after,
table.dataTable thead th.dt-ordering-asc::after,
table.dataTable thead th.dt-ordering-desc::after {
  content: "" !important;
  display: inline-block !important;
  width: 1.5em;
  height: 1.5em;
  margin-left: 0.4em;
  vertical-align: middle;
  background-color: currentColor !important;
  -webkit-mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  -webkit-mask-size: contain !important;
  mask-repeat: no-repeat !important;
  mask-position: center !important;
  mask-size: contain !important;
}
/* ================================
   ÉTAT NEUTRE (avant clic)
   Chevron DOWN discret
================================ */
table.dataTable thead th.dt-orderable-asc::after,
table.dataTable thead th.dt-orderable-desc::after {
  opacity: 0.35 !important;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 11l-4-4h8l-4 4z'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 11l-4-4h8l-4 4z'/%3E%3C/svg%3E") !important;
}
table.dataTable thead th.dt-orderable-asc,
table.dataTable thead th.dt-orderable-desc {
  color: var(--bs-gray-700) !important;
}
/* ================================
   TRI ASCENDANT → chevron UP
================================ */
table.dataTable thead th.dt-ordering-asc {
  color: var(--bs-warning) !important;
}
table.dataTable thead th.dt-ordering-asc::after {
  opacity: 1 !important;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 5l4 4H4l4-4z'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 5l4 4H4l4-4z'/%3E%3C/svg%3E") !important;
}
/* ================================
   TRI DESCENDANT → chevron DOWN
================================ */
table.dataTable thead th.dt-ordering-desc {
  color: var(--bs-warning) !important;
}
table.dataTable thead th.dt-ordering-desc::after {
  opacity: 1 !important;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 11l-4-4h8l-4 4z'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 11l-4-4h8l-4 4z'/%3E%3C/svg%3E") !important;
}
/* ==========================================================
   Table — dashed plus doux dans le THEAD (dark mode)
============================================================= */
[data-bs-theme="dark"] .table.table-row-dashed thead tr {
  border-bottom-color: rgba(var(--bs-gray-500-rgb), 0.4) !important;
}
.table.table-row-dashed thead tr {
  border-bottom-color: rgba(var(--bs-gray-400-rgb), 0.45) !important;
}
/* ==========================================================
   Daterangepicker — FORCE la couleur active (override final)
   (à laisser en dernier dans le fichier)
============================================================= */
.daterangepicker .drp-calendar td.active,
.daterangepicker .drp-calendar td.active:hover,
.daterangepicker .drp-calendar td.active.start-date,
.daterangepicker .drp-calendar td.active.end-date,
.daterangepicker .drp-calendar td.active.start-date:hover,
.daterangepicker .drp-calendar td.active.end-date:hover {
  background-color: #e78b2f !important;
  border-color: transparent !important;
  color: #fff !important;
}
/* ==========================================================
   Daterangepicker — FORCE in-range (override final)
============================================================= */
.daterangepicker .drp-calendar td.in-range,
.daterangepicker .drp-calendar td.in-range.available:not(.active):not(.off):not(.today),
.daterangepicker .drp-calendar td.in-range:hover,
.daterangepicker .drp-calendar td.in-range.available:hover:not(.active):not(.off):not(.today) {
  background-color: rgba(203, 139, 42, 0.25) !important;
  border-color: transparent !important;
  color: inherit !important;
  border-radius: 0 !important;
}
/* ==========================================================
   Forms
============================================================= */
/*.form-select.form-select-solid {
    background-color: var(--bs-gray-600);
    border-color: var(--bs-gray-600);
    color: var(--bs-gray-700);
    transition: color .2s ease;
}*/
/* ============================================================
   CONTRAT 
============================================================ */
.esc-contrat {
  /* Variables locales */
  /*--esc-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;*/
  /* Palette (se base sur Bootstrap, mais reste safe si absent) */
  /*--esc-bg: var(--bs-body-bg, #fff);*/
  --esc-text: var(--bs-body-color, #111);
  --esc-border: rgba(0, 0, 0, 0.18);
  --esc-muted: rgba(0, 0, 0, 0.65);
  --esc-band: #212529;
  /* bande bleue */
  --esc-band-text: #fff;
  --esc-soft: rgba(159, 182, 211, 0.18);
  --esc-note: #f3e6b6;
  /* jaune pâle */
  --esc-danger: #cc1f1a;
  font-family: var(--esc-font);
  color: var(--esc-text);
}
[data-bs-theme="dark"] .esc-contrat {
  --esc-border: rgba(255, 255, 255, 0.22);
  --esc-muted: rgba(255, 255, 255, 0.7);
  --esc-band: rgba(140, 170, 210, 0.35);
  --esc-band-text: var(--bs-body-color, #f1f1f1);
  --esc-soft: rgba(140, 170, 210, 0.12);
  --esc-note: rgba(243, 230, 182, 0.2);
}
.esc-contrat__page {
  background: var(--esc-bg);
  padding: 16px;
}
/* Header */
.esc-contrat__companyName {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 20px;
  line-height: 1.1;
}
.esc-contrat__companyMeta {
  /*font-size: 12px;
  color: var(--esc-muted);*/
  line-height: 1.8;
}
.esc-contrat__logoBox {
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  padding: 10px 12px;
  border: 2px solid var(--esc-border);
  border-radius: 6px;
  text-align: center;
  min-width: 90px;
}
.esc-contrat__projBox {
  /*border: 2px solid var(--esc-border);*/
  padding: 10px 12px;
}
.esc-contrat__projRow {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  gap: 10px;
  margin-bottom: 6px;
}
@media (max-width: 575.98px) {
  .esc-contrat__projRow {
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
  }
}
.esc-contrat__projLabel {
  font-size: 12px;
  color: var(--esc-muted);
}
.esc-contrat__projValue {
  border: 2px solid var(--esc-border);
  padding: 2px 10px;
  font-weight: 800;
  font-size: 20px;
}
.esc-contrat__projMeta {
  /*font-size: 12px;
  color: var(--esc-text);*/
  line-height: 1.8;
  text-align: right;
}
/* Panels */
.esc-contrat__panel {
  border: 1px solid var(--esc-border);
  background: transparent;
}
.esc-contrat__panel--soft {
  background: var(--esc-soft);
}
.esc-contrat__panelTitle {
  background: var(--esc-band);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 8px 10px;
  font-size: 12px;
  /*border-bottom: 2px solid var(--esc-border);*/
}
.esc-contrat__panelBody {
  padding: 10px;
  font-size: 12px;
}
.esc-contrat__kv {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 6px;
  line-height: 1.35;
}
.esc-contrat__kv > span {
  color: var(--esc-muted);
  min-width: 110px;
}
/* Bands */
.esc-contrat__band {
  background: var(--esc-band);
  color: var(--esc-band-text);
  font-weight: 900;
  text-align: center;
  padding: 7px 10px;
  border: 2px solid var(--esc-border);
}
.esc-contrat__subBand {
  background: transparent;
  /*border: 2px solid var(--esc-border);*/
  border-top: 0;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  padding: 6px 10px;
  margin-bottom: 0;
}
/* Table */
.esc-contrat__tableWrap {
  /*border: 2px solid var(--esc-border);
  border-top: 0;*/
  overflow-x: auto;
}
.esc-contrat__table {
  /*font-size: 12px;
  color: var(--esc-text);*/
  margin: 0;
}
.esc-contrat__table thead th {
  background: rgba(159, 182, 211, 0.35);
  color: var(--esc-band-text);
  border-bottom: 1px dashed var(--esc-border) !important;
  font-weight: 800;
}
[data-bs-theme="dark"] .esc-contrat__table thead th {
  background: rgba(140, 170, 210, 0.18);
}
.esc-contrat__table td,
.esc-contrat__table th {
  border-color: var(--esc-border) !important;
  vertical-align: top;
}
.esc-contrat__section td {
  background: rgba(0, 0, 0, 0.08);
  font-weight: 900;
}
[data-bs-theme="dark"] .esc-contrat__section td {
  background: rgba(255, 255, 255, 0.07);
}
.esc-contrat__item {
  font-weight: 800;
}
.esc-contrat__noteRow td {
  background: var(--esc-note);
}
/* Validity box */
.esc-contrat__validity {
  border: 2px solid var(--esc-border);
  padding: 8px 10px;
  text-align: center;
}
.esc-contrat__validLine {
  color: var(--esc-danger);
  font-weight: 900;
  font-size: 12px;
  line-height: 1.35;
}
/* Callout */
.esc-contrat__callout {
  border: 2px solid var(--esc-border);
  background: var(--esc-note);
  padding: 10px;
  font-size: 12px;
  line-height: 1.4;
}
/* Payment grid */
.esc-contrat__payGrid {
  display: -ms-grid;
  display: grid;
  gap: 8px;
}
.esc-contrat__payRow {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 56px 10px 1fr 10px auto;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  border-bottom: 1px solid var(--esc-border);
  padding-bottom: 8px;
}
.esc-contrat__payPct {
  color: var(--esc-danger);
  font-weight: 900;
}
.esc-contrat__payLabel {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
}
.esc-contrat__payAmt {
  color: var(--esc-danger);
  font-weight: 900;
  white-space: nowrap;
}
/* Signatures */
.esc-contrat__sigRow {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 18px 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.esc-contrat__sigLine {
  height: 28px;
  border-bottom: 2px solid var(--esc-border);
}
.esc-contrat__sigLabel {
  font-size: 11px;
  color: var(--esc-muted);
  margin-top: 6px;
  text-align: center;
}
.esc-contrat__smallNote {
  color: var(--esc-danger);
  font-weight: 800;
  font-size: 11px;
}
/* Totals */
.esc-contrat__totals {
  border: 2px solid var(--esc-border);
  padding: 12px;
  font-size: 12px;
}
.esc-contrat__totRow {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}
.esc-contrat__totRow--grand {
  font-size: 14px;
  font-weight: 900;
}
.esc-contrat__hr {
  border-color: var(--esc-border);
  opacity: 1;
  margin: 10px 0;
}
.esc-contrat__highlight {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 8px 10px;
  border: 2px solid var(--esc-border);
  background: rgba(255, 230, 0, 0.25);
  font-weight: 900;
}
.esc-contrat__warning {
  border: 2px solid var(--esc-border);
  padding: 8px 10px;
  background: rgba(255, 230, 0, 0.18);
  font-weight: 800;
  text-align: center;
}
.esc-contrat .esc-logo {
  width: 250px;
  max-width: 100%;
  height: auto;
}
/* par défaut */
.esc-contrat .esc-logo--dark {
  display: none;
}
/* mode dark */
[data-bs-theme="dark"] .esc-contrat .esc-logo--light {
  display: none;
}
[data-bs-theme="dark"] .esc-contrat .esc-logo--dark {
  display: inline-block;
}
/* Bloc complet */
.materials-block {
  border: 1px solid var(--bs-card-border-color);
  border-radius: 0.375rem;
  overflow: hidden;
}
/* Titre */
.materials-block__title {
  text-align: center;
  font-weight: 600;
  padding: 0.5rem 0;
  background: #6c757d;
  color: #fff;
  text-transform: uppercase;
}
/* Lignes (2 colonnes) */
.materials-block .materials-row {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  background: var(--bs-light);
  border-top: 1px solid var(--bs-card-border-color);
}
.materials-block .materials-cell {
  padding: 0.5rem 1rem;
}
.materials-block .materials-cell--right {
  border-left: 1px solid var(--bs-card-border-color);
}
/* NOUVELLE classe (évite conflit avec .material-row) */
.materials-block .materials-field {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 200px 0.75rem minmax(0, 1fr);
  grid-template-columns: 200px minmax(0, 1fr);
  /* label fixe + input flexible */
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-column-gap: 0.75rem;
     -moz-column-gap: 0.75rem;
          column-gap: 0.75rem;
}
.materials-block .materials-field label {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}
.materials-block .materials-field input {
  min-width: 0;
}
/* Mobile */
@media (max-width: 767.98px) {
  .materials-block .materials-row {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
  .materials-block .materials-cell--right {
    border-left: 0;
    border-top: 1px solid var(--bs-card-border-color);
  }
  .materials-block .materials-field {
    -ms-grid-columns: 160px minmax(0, 1fr);
    grid-template-columns: 160px minmax(0, 1fr);
  }
}
.category-header {
  background: #e9ecef;
  padding: 0.5rem;
  overflow: hidden;
}
[data-bs-theme="dark"] .category-header {
  background: #2b2b40;
}
.category-header:first-child {
  margin: 0;
}
.item-line {
  border-bottom: 1px dashed #cdcdcd;
  padding: 0.4rem 0;
  -webkit-transition: background-color 0.2s;
  transition: background-color 0.2s;
}
[data-bs-theme="dark"] .item-line {
  border-bottom: 1px dashed #444655;
}
.item-input:focus {
  outline: none;
  border-color: #667eea;
  -webkit-box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
          box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}
.item-qty,
.item-amount {
  text-align: right;
}
.totals-section {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.total-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 0.3rem 0;
  font-size: 0.9rem;
}
.total-row.total-final {
  font-size: 1.1rem;
  font-weight: bold;
  color: #667eea;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 2px solid #667eea;
}
.payment-schedule {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.payment-item {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 0.75rem;
  border-radius: 5px;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
.signature-section {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.signature-box {
  border: 1px dashed #dee2e6;
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
  min-height: 80px;
  background: #f8f9fa;
}
.price-valid {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 0.75rem;
  border-radius: 4px;
  margin: 1rem 0;
  font-size: 0.85rem;
}
.materials-box,
.replacement-box {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.materials-title {
  background: #6c757d;
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 0.75rem;
}
.material-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 0.3rem 0;
  font-size: 0.85rem;
}
.permit-section {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.permit-line {
  padding: 0.4rem 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.85rem;
}
.permit-line:last-child {
  border-bottom: none;
}
.confirmation-box {
  border: 1px dashed #dee2e6;
  border-radius: 8px;
  padding: 1rem;
}
[data-bs-theme="dark"] .confirmation-box {
  border: 1px dashed var(--bs-border-color);
}
.initials-box {
  border: 2px solid #dee2e6;
  width: 60px;
  height: 40px;
  display: inline-block;
  text-align: center;
  border-radius: 4px;
  background: #f8f9fa;
}
.item-header-row {
  font-weight: 600;
  color: #495057;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #dee2e6;
}
/* Scoped styles (ne touche pas au reste du site) */
.fi-banner {
  --fi-bg-left: #1c2034;
  /* bleu très foncé */
  --fi-bg-mid: #000000;
  /* noir */
  --fi-green: #10c26e;
  /* vert accent */
  --fi-text: #ffffff;
  --fi-text-dark: #1c2034;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
/* IMPORTANT: le noir est sur le parent pour qu'il "touche" la diagonale */
.fi-banner__inner {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  width: 100%;
  min-height: 72px;
  overflow: hidden;
  background: var(--fi-bg-mid);
  border: 1px solid #000;
}
/* Bleu à gauche, puis transparent => on voit le noir du parent */
.fi-banner__left {
  position: relative;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
  padding: 10px 20px;
  color: var(--fi-text);
}
.fi-banner__brand {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
}
.fi-banner__logo {
  height: 22px;
  width: auto;
  display: block;
}
/* Fallback texte si vous n’avez pas encore l’image du logo */
.fi-banner__logoText {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 22px;
  line-height: 1;
  color: #fff;
}
/* petit accent vert (optionnel) */
.fi-banner__logoText::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--fi-green);
  border-radius: 2px;
  margin-right: 6px;
  -webkit-transform: skewX(-15deg);
          transform: skewX(-15deg);
  vertical-align: middle;
}
.fi-banner__features {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  font-weight: 600;
  font-size: 16px;
}
.fi-banner__item {
  white-space: nowrap;
  opacity: 0.95;
}
.fi-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fi-green);
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
}
/* === WEDGE DROIT (identique au visuel: bande verte sur la diagonale) === */
.fi-banner__right {
  /* Ajuster ces 3 variables */
  --fi-cut-top: 26%;
  /* position diagonale en haut */
  --fi-cut-bot: 8%;
  /* position diagonale en bas */
  --fi-band: 10px;
  /* épaisseur bande verte */
  position: relative;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 300px;
          flex: 0 0 300px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  padding: 10px 20px;
  color: var(--fi-text-dark);
  background: transparent;
}
/* Panneau blanc */
.fi-banner__right::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: -1px;
  left: -1px;
  /* <- important */
  background: #ffffff;
  clip-path: polygon(var(--fi-cut-top) 0%, 100% 0%, 100% 100%, var(--fi-cut-bot) 100%);
  z-index: 1;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
}
/* Bande verte */
.fi-banner__right::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: -1px;
  left: -1px;
  /* <- important */
  background: var(--fi-green);
  clip-path: polygon(calc(var(--fi-cut-top) - var(--fi-band)) 0%, var(--fi-cut-top) 0%, var(--fi-cut-bot) 100%, calc(var(--fi-cut-bot) - var(--fi-band)) 100%);
  z-index: 2;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
}
.fi-banner__cta {
  position: relative;
  z-index: 3;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
  text-align: right;
}
/* Responsive */
@media (max-width: 640px) {
  .fi-banner__inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .fi-banner__right {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
    width: 100%;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    text-align: center;
  }
  .fi-banner__right::before {
    clip-path: none;
  }
  .fi-banner__right::after {
    clip-path: none;
    height: 6px;
    top: 0;
    bottom: auto;
    background: var(--fi-green);
  }
  .fi-banner__cta {
    text-align: center;
  }
}
/* Ajuste l'espace entre texte et montants */
:root {
  --invoice-gap: 10px;
  --amt-bg: #c7d6e6;
  /* bleu doux */
}
.invoice-lines {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr var(--invoice-gap) -webkit-max-content;
  -ms-grid-columns: 1fr var(--invoice-gap) max-content;
  grid-template-columns: 1fr -webkit-max-content;
  grid-template-columns: 1fr max-content;
  /* montants auto (selon le plus grand) */
  -webkit-column-gap: var(--invoice-gap);
     -moz-column-gap: var(--invoice-gap);
          column-gap: var(--invoice-gap);
  row-gap: 8px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.invoice-lines .label {
  text-align: right;
  white-space: nowrap;
  margin: 0;
}
.invoice-lines .amount {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 1.1rem;
  /* montants plus grands */
}
/* Montants à mettre en évidence (fond bleu) */
.invoice-lines .amount.bg-amt {
  background: var(--amt-bg);
  padding: 4px 8px;
  border-radius: 3px;
}
[data-bs-theme="dark"] .invoice-lines .amount.bg-amt {
  background-color: #006ae6 !important;
}
/* Montants "forts" (Sous-total / Total / Solde) */
.invoice-lines .amount.strong {
  font-weight: 700;
}
.initiales-wrapper {
  white-space: nowrap;
  /* empêche INITIALES de couper */
}
.initiales-wrapper input {
  width: 100%;
  /* même largeur que le label */
  min-width: 120px;
  /* ajuste si tu veux un peu plus large */
}
.initiales-input {
  width: 110px;
  text-transform: uppercase;
  font-weight: 600;
}
/* Style du texte placeholder */
.initiales-input::-webkit-input-placeholder {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.initiales-input::-moz-placeholder {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.initiales-input:-ms-input-placeholder {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.initiales-input::-ms-input-placeholder {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.initiales-input::placeholder {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.signature-line {
  position: relative;
  width: 100%;
  margin-top: 30px;
  /* hauteur de la zone signature */
}
.signature-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-top: 1px solid #dee2e6;
}
[data-bs-theme="dark"] .signature-line::before {
  border-top: 1px solid var(--bs-border-color);
}
.signature-line span {
  display: block;
  padding-top: 8px;
}
/*[data-bs-theme="dark"] .bg-light-warning {
    background-color: #c59a00 !important;
}*/
.nav-line-tabs .nav-item .nav-link.active,
.nav-line-tabs .nav-item .nav-link:hover:not(.disabled),
.nav-line-tabs .nav-item.show .nav-link {
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid var(--bs-secondary);
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
}
.checkbox-row {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 100px 28px 80px 28px 80px 28px 80px 28px 80px 28px 80px 28px 80px;
  grid-template-columns: 100px 80px 80px 80px 80px 80px 80px;
  /* desktop */
  -webkit-column-gap: 28px;
     -moz-column-gap: 28px;
          column-gap: 28px;
  row-gap: 0;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 14px;
}
/* checkbox + label */
.checkbox-row .form-check {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  margin: 0;
}
.checkbox-row .form-check-label {
  white-space: nowrap;
}
/* MOBILE: chaque ligne devient verticale */
@media (max-width: 767.98px) {
  .checkbox-row {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    /* 1 colonne */
    -webkit-column-gap: 0;
       -moz-column-gap: 0;
            column-gap: 0;
    row-gap: 10px;
    /* espace entre items */
  }
  .checkbox-row .form-check {
    width: 100%;
    /* prend toute la largeur */
  }
}
.option-row {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 220px 30px 90px 30px 90px 30px 90px;
  grid-template-columns: 220px 90px 90px 90px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-column-gap: 30px;
     -moz-column-gap: 30px;
          column-gap: 30px;
  margin-bottom: 18px;
}
.option-label {
  font-weight: 500;
}
.option-row .form-check {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  margin: 0;
}
/* Mobile */
@media (max-width: 767.98px) {
  .option-row {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .option-label {
    margin-bottom: 6px;
  }
}
.option-row-long {
  display: -ms-grid;
  display: grid;
  grid-template-columns: 200px repeat(auto-fit, -webkit-max-content);
  grid-template-columns: 200px repeat(auto-fit, max-content);
  -webkit-column-gap: 30px;
     -moz-column-gap: 30px;
          column-gap: 30px;
  row-gap: 12px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.option-row-long .form-check {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  margin: 0;
}
.option-label {
  font-weight: 500;
}
/*Permis
=============================================== */
.permit-row {
  -webkit-column-gap: 30px;
     -moz-column-gap: 30px;
          column-gap: 30px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}
.permit-options {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 12px 30px;
  /* row-gap / column-gap */
}
.permit-options .form-check {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  margin: 0;
  white-space: nowrap;
}
/* Mobile : tout en colonne */
@media (max-width: 767.98px) {
  .permit-row {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
  .permit-options {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 10px;
  }
}
/*Stationnement
=============================================== */
.stationnement-row {
  display: block;
  /* au cas où une ancienne règle grid traîne */
  width: 100%;
}
/* la ligne contenant les 2 paires */
.stationnement-fields {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
  gap: 40px;
  /* ajuste l’espace entre les 2 blocs */
}
/* chaque bloc (icône + input) prend 50% */
.stationnement-pair {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0px;
          flex: 1 1 0;
  min-width: 0;
  /* important pour que l’input puisse shrink */
}
/* l’input s’étire dans son bloc */
.stationnement-input {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0px;
          flex: 1 1 0;
  min-width: 0;
}
/* icône fixe */
.stationnement-icon {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
}
/* Mobile : 1 bloc par ligne */
@media (max-width: 767.98px) {
  .stationnement-fields {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
    gap: 15px;
  }
}
/*Plans pour installation
=============================================== */
.checks-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 110px 40px 90px 40px 80px 40px minmax(0, 1fr);
  grid-template-columns: 110px 90px 80px minmax(0, 1fr);
  -webkit-column-gap: 40px;
     -moz-column-gap: 40px;
          column-gap: 40px;
  row-gap: 18px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
  min-width: 0;
}
.checks-grid .form-check,
.checks-grid .checks-pair {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
.checks-grid .form-check-label {
  white-space: nowrap;
}
.checks-pair {
  width: 100%;
  min-width: 0;
  gap: 12px;
}
.checks-input {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  width: 100%;
  min-width: clamp(160px, 18vw, 260px);
}
/* Empêche le débordement dans la colonne */
.checks-grid * {
  min-width: 0;
}
/* Mobile: tout en colonne */
@media (max-width: 767.98px) {
  .checks-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    -webkit-column-gap: 0;
       -moz-column-gap: 0;
            column-gap: 0;
  }
  .checks-pair {
    width: 100%;
  }
  .checks-input {
    width: 100%;
    min-width: 0;
  }
}
/* Necessaire
=============================================== */
/* Conteneur principal */
.necessaire-row {
  width: 100%;
}
/* Grille responsive par colonnes */
.necessaire-check {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  -webkit-column-gap: 40px;
     -moz-column-gap: 40px;
          column-gap: 40px;
  row-gap: 18px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
  min-width: 0;
}
/* Checkbox + label */
.necessaire-check .form-check {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
.necessaire-check .form-check-label {
  white-space: nowrap;
  line-height: 1.2;
}
/* Bloc Autre */
.necessaire-autre {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
/* Input Autre fluide type "col Bootstrap" */
.necessaire-autre-input {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  width: 100%;
  min-width: clamp(160px, 18vw, 260px);
}
/* Neutralise ms-2 si présent */
.necessaire-autre-input.ms-2 {
  margin-left: 0 !important;
}
/* Sécurité anti-débordement */
.necessaire-check,
.necessaire-check * {
  min-width: 0;
}
/* Mobile */
@media (max-width: 767.98px) {
  .necessaire-check {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    -webkit-column-gap: 0;
       -moz-column-gap: 0;
            column-gap: 0;
  }
  .necessaire-autre {
    width: 100%;
  }
  .necessaire-autre-input {
    min-width: 0;
    width: 100%;
  }
}
.form-check-input:checked {
  background-color: #e78b2f;
  border-color: #e78b2f !important;
}
/* QuickGrid
=============================================== */
.table > :not(caption) > * > * {
  padding: 0;
}
.quickgrid[theme=default] .col-title {
  gap: 0.4rem;
  font-weight: bold;
  color: #fff !important;
  padding: 0.75rem !important;
}
button.col-title {
  border: none;
  background: none;
  position: relative;
  cursor: pointer;
}
.quickgrid[theme=default] .sort-indicator {
  opacity: 1;
}
.quickgrid[theme=default] > tbody > tr > td {
  padding: 0.75rem calc(0.4rem + var(--col-gap)) 0.75rem 0.4rem;
}
.quickgrid[theme=default].table-row-dashed thead,
.quickgrid[theme=default].table-row-dashed thead tr,
.quickgrid[theme=default].table-row-dashed thead th {
  border-top: none !important;
  border-bottom: none !important;
}
/* --- RESET TOTAL de l'indicateur QuickGrid (évite flip/icone native) --- */
.quickgrid[theme=default] .sort-indicator {
  display: -webkit-inline-box !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-orient: vertical !important;
  -webkit-box-direction: normal !important;
      -ms-flex-direction: column !important;
          flex-direction: column !important;
  -webkit-box-pack: center !important;
      -ms-flex-pack: center !important;
          justify-content: center !important;
  -webkit-box-align: center !important;
      -ms-flex-align: center !important;
          align-items: center !important;
  width: 12px !important;
  height: 14px !important;
  margin-left: 4px !important;
  background: none !important;
  background-image: none !important;
  -webkit-transform: none !important;
          transform: none !important;
  opacity: 1 !important;
}
/* au cas où QuickGrid cible via th... */
.quickgrid[theme=default] th .sort-indicator {
  -webkit-transform: none !important;
          transform: none !important;
  /* IMPORTANT */
  background: none !important;
  background-image: none !important;
}
/* --- DOUBLE FLÈCHE --- */
.quickgrid[theme=default] .sort-indicator::before,
.quickgrid[theme=default] .sort-indicator::after {
  content: "" !important;
  display: block !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0.25 !important;
  /* inactif par défaut */
}
/* ▲ */
.quickgrid[theme=default] .sort-indicator::before {
  border-left: 4px solid transparent !important;
  border-right: 4px solid transparent !important;
  border-bottom: 5px solid currentColor !important;
  margin-bottom: 2px !important;
}
/* ▼ */
.quickgrid[theme=default] .sort-indicator::after {
  border-left: 4px solid transparent !important;
  border-right: 4px solid transparent !important;
  border-top: 5px solid currentColor !important;
}
/* --- ÉTATS via aria-sort (FIABLE) --- */
/* none */
.quickgrid[theme=default] th[aria-sort="none"] .sort-indicator::before,
.quickgrid[theme=default] th[aria-sort="none"] .sort-indicator::after {
  opacity: 0.25 !important;
}
/* ascending: ▲ actif */
.quickgrid[theme=default] th[aria-sort="ascending"] .sort-indicator::before {
  opacity: 1 !important;
}
.quickgrid[theme=default] th[aria-sort="ascending"] .sort-indicator::after {
  opacity: 0.25 !important;
}
/* descending: ▼ actif */
.quickgrid[theme=default] th[aria-sort="descending"] .sort-indicator::before {
  opacity: 0.25 !important;
}
.quickgrid[theme=default] th[aria-sort="descending"] .sort-indicator::after {
  opacity: 1 !important;
}
/* Premier th du thead padding a 0 */
.quickgrid[theme=default] > thead > tr > th:first-child {
  padding-left: 0 !important;
}
/* Aligne le dernier header à droite */
.quickgrid[theme=default] thead th:last-child .col-header-content {
  -webkit-box-pack: end !important;
      -ms-flex-pack: end !important;
          justify-content: flex-end !important;
}
.quickgrid[theme=default] thead th:last-child .col-title {
  -webkit-box-pack: end !important;
      -ms-flex-pack: end !important;
          justify-content: flex-end !important;
  text-align: right !important;
}
/* Centre la quatrieme colonne Authentification */
.quickgrid[theme=default] thead th:nth-child(4) .col-header-content {
  -webkit-box-pack: center !important;
      -ms-flex-pack: center !important;
          justify-content: center !important;
}
.quickgrid[theme=default] thead th:nth-child(4) .col-title {
  -webkit-box-pack: center !important;
      -ms-flex-pack: center !important;
          justify-content: center !important;
  text-align: center !important;
}
.quickgrid[theme=default] tbody td:nth-child(4) {
  text-align: center !important;
}
.quickgrid[theme=default] thead {
  background-color: var(--bs-dark) !important;
}
/* QUICK GRID = Mobile */
@media (max-width: 991.98px) {
  .table-responsive {
    overflow-x: visible !important;
    /* enlever scroll horizontal */
  }
  .quickgrid[theme=default] thead {
    display: none !important;
    /* cacher le header */
  }
  .quickgrid[theme=default],
  .quickgrid[theme=default] tbody {
    display: block;
  }
  /* Tuer le "striped" Bootstrap (les variables + bg sur les td) */
  .quickgrid[theme=default].table-striped > tbody > tr:nth-of-type(odd) > *,
  .quickgrid[theme=default].table-striped > tbody > tr:nth-of-type(even) > * {
    --bs-table-bg-type: transparent !important;
    --bs-table-bg-state: transparent !important;
    --bs-table-accent-bg: transparent !important;
    background-color: transparent !important;
    background: transparent !important;
  }
  /* Enlever tous les borders pointillés (table-row-dashed) */
  .quickgrid[theme=default].table-row-dashed tbody tr,
  .quickgrid[theme=default].table-row-dashed tbody td {
    border-bottom: 0 !important;
  }
  /* CARD */
  .quickgrid[theme=default] tbody tr {
    display: block;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    /* plus visible */
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    outline: 1px solid rgba(255, 255, 255, 0.06);
    /* contour subtil visible */
    outline-offset: 0;
  }
  /* cellules */
  .quickgrid[theme=default] tbody td {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    text-align: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    width: 100%;
    padding: 10px 0 !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
  }
  /* badge centré */
  .quickgrid[theme=default] tbody td:nth-child(4) {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 6px;
  }
  /* actions centrées */
  .quickgrid[theme=default] tbody td:last-child > div {
    -webkit-box-pack: center !important;
        -ms-flex-pack: center !important;
            justify-content: center !important;
  }
  /* LIGHT theme: contour foncé subtil */
  html[data-bs-theme="light"] .quickgrid[theme=default] tbody tr {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    outline: 1px solid rgba(0, 0, 0, 0.04) !important;
  }
  /* DARK theme: contour blanc subtil (ton actuel) */
  html[data-bs-theme="dark"] .quickgrid[theme=default] tbody tr {
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    outline: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  .quickgrid[theme=default] tbody tr {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    outline: 1px solid rgba(0, 0, 0, 0.04) !important;
  }
  .quickgrid[theme=default] > tbody > tr > td {
    padding: 0 calc(0.4rem + var(--col-gap)) 0.25rem 0.4rem;
  }
}
/* QuickGrid pour page contrat seulement*/
.quickgrid[theme=default] thead th.qg-montant {
  text-align: right !important;
}
/* Aligner le conteneur flex du header à droite */
.quickgrid[theme=default] thead th.qg-montant .col-header-content {
  -webkit-box-pack: end !important;
      -ms-flex-pack: end !important;
          justify-content: flex-end !important;
}
.quickgrid[theme=default] thead th.qg-montant .col-title {
  -webkit-box-pack: end !important;
      -ms-flex-pack: end !important;
          justify-content: flex-end !important;
  text-align: right !important;
  width: auto !important;
  -webkit-box-flex: 0 !important;
      -ms-flex-positive: 0 !important;
          flex-grow: 0 !important;
}
/* Texte + indicateur collés à droite */
.quickgrid[theme=default] thead th.qg-montant .col-title-text {
  text-align: right !important;
}
/* TD Montant: aligner à droite */
.quickgrid[theme=default] tbody td.qg-montant {
  text-align: right !important;
}
/* ==========================================
   QuickGrid Alignment Utilities
   ========================================== */
/* ===== START ===== */
.quickgrid[theme=default] thead th.qg-th-start {
  text-align: left !important;
}
.quickgrid[theme=default] thead th.qg-th-start .col-header-content {
  -webkit-box-pack: start !important;
      -ms-flex-pack: start !important;
          justify-content: flex-start !important;
}
.quickgrid[theme=default] tbody td.qg-th-start {
  text-align: left !important;
}
.quickgrid[theme=default] thead th.qg-th-start .col-title {
  -webkit-box-pack: center !important;
      -ms-flex-pack: center !important;
          justify-content: center !important;
  text-align: center !important;
  width: auto !important;
  -webkit-box-flex: 0 !important;
      -ms-flex-positive: 0 !important;
          flex-grow: 0 !important;
}
.quickgrid[theme=default] thead th.qg-th-start .col-title-text {
  text-align: center !important;
}
.quickgrid[theme=default] thead th.qg-th-start .col-header-content {
  -webkit-box-pack: start !important;
      -ms-flex-pack: start !important;
          justify-content: flex-start !important;
}
/* ===== CENTER ===== */
.quickgrid[theme=default] thead th.qg-th-center {
  text-align: center !important;
}
.quickgrid[theme=default] thead th.qg-th-center .col-header-content {
  -webkit-box-pack: center !important;
      -ms-flex-pack: center !important;
          justify-content: center !important;
}
.quickgrid[theme=default] tbody td.qg-th-center {
  text-align: center !important;
}
.quickgrid[theme=default] thead th.qg-th-center .col-title {
  -webkit-box-pack: center !important;
      -ms-flex-pack: center !important;
          justify-content: center !important;
  text-align: center !important;
  width: auto !important;
  -webkit-box-flex: 0 !important;
      -ms-flex-positive: 0 !important;
          flex-grow: 0 !important;
}
.quickgrid[theme=default] thead th.qg-th-center .col-title-text {
  text-align: center !important;
}
/* ===== END ===== */
.quickgrid[theme=default] thead th.qg-th-end {
  text-align: right !important;
}
.quickgrid[theme=default] thead th.qg-th-end .col-header-content {
  -webkit-box-pack: end !important;
      -ms-flex-pack: end !important;
          justify-content: flex-end !important;
}
.quickgrid[theme=default] tbody td.qg-th-end {
  text-align: right !important;
}
.quickgrid[theme=default] thead th.qg-th-end .col-title {
  -webkit-box-pack: center !important;
      -ms-flex-pack: center !important;
          justify-content: center !important;
  text-align: center !important;
  width: auto !important;
  -webkit-box-flex: 0 !important;
      -ms-flex-positive: 0 !important;
          flex-grow: 0 !important;
}
.quickgrid[theme=default] thead th.qg-th-end .col-title-text {
  text-align: center !important;
}
/* ===== Désactiver les utilitaires d'alignement en mobile ===== */
@media (max-width: 991.98px) {
  .quickgrid[theme=default] tbody td.qg-th-start,
  .quickgrid[theme=default] tbody td.qg-th-center,
  .quickgrid[theme=default] tbody td.qg-th-end {
    text-align: center !important;
  }
  .quickgrid[theme=default] tbody td.qg-th-start > *,
  .quickgrid[theme=default] tbody td.qg-th-center > *,
  .quickgrid[theme=default] tbody td.qg-th-end > * {
    -webkit-box-pack: center !important;
        -ms-flex-pack: center !important;
            justify-content: center !important;
  }
  /* Désactiver largeurs fixes en mobile */
  .quickgrid[theme=default] .w-75px,
  .quickgrid[theme=default] .w-100px,
  .quickgrid[theme=default] .w-150px {
    width: auto !important;
  }
}
/* ==========================================
   Dropdown component
============================================= */
.page-warning-dropdown a.btn.btn-secondary {
  background-color: var(--bs-warning);
  border-color: var(--bs-warning);
  color: var(--bs-warning-inverse);
}
.page-warning-dropdown a.btn.btn-secondary:hover,
.page-warning-dropdown a.btn.btn-secondary:focus,
.page-warning-dropdown a.btn.btn-secondary:active {
  background-color: #eb9c4e !important;
  border-color: #eb9c4e !important;
  color: #fff !important;
}
.page-warning-dropdown .btn.btn-secondary .ki-duotone {
  color: #fff !important;
}
.page-warning-dropdown .btn.btn-secondary:hover .ki-duotone,
.page-warning-dropdown .btn.btn-secondary:focus .ki-duotone,
.page-warning-dropdown .btn.btn-secondary:active .ki-duotone {
  color: #fff !important;
}
/* ==========================================================================
   Modal
========================================================================== */
.modalRdg {
  display: block;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  width: 100%;
  height: 100%;
  outline: 0;
}
/* ==========================================================================
   Désectiver les flèches des inputs type number
========================================================================== */
/* Enlève les flèches dans Chrome, Edge, Safari */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Enlève les flèches dans Firefox */
input[type=number] {
  -moz-appearance: textfield;
}
.w-info {
  width: 110px;
}
@media (max-width: 767.98px) {
  .w-info {
    width: 100%;
  }
}
.w-qty {
  width: 80px;
}
.w-price {
  width: 100px;
}
.w-pourcent {
  width: 100px;
}
.w-total-depot {
  width: 150px;
}
.w-mois {
  width: 150px;
}
.permit-label {
  width: 280px;
}
@media (max-width: 575.98px) {
  .permit-label {
    text-align: center;
  }
}
/* ==========================================================================
   Search
========================================================================== */
.description-suggestions-search {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}
/* items */
.description-suggestions-search .suggestion-item {
  padding: 6px 10px;
  cursor: pointer;
}
.description-suggestions-search .suggestion-item:hover {
  background: #f1f3f5;
}
/* =========================
   DARK MODE
========================= */
[data-bs-theme="dark"] .description-suggestions-search {
  background: #1e1e2d;
  border: 1px solid #2b2b40;
  border-top: none;
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
[data-bs-theme="dark"] .description-suggestions-search .suggestion-item {
  color: #d1d5db;
}
[data-bs-theme="dark"] .description-suggestions-search .suggestion-item:hover {
  background: #2b2b40;
}
.description-suggestions-search {
  border-radius: 0 0 6px 6px;
}
.description-suggestions-search::-webkit-scrollbar {
  width: 6px;
}
.description-suggestions-search::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
[data-bs-theme="dark"] .description-suggestions-search::-webkit-scrollbar-thumb {
  background: #555;
}
.description-suggestions-search {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}
.description-suggestions-search .suggestion-item {
  color: #212529;
}
[data-bs-theme="dark"] .description-suggestions-search {
  background: #1e1e2d;
  border: 1px solid #2b2b40;
  border-top: none;
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.45);
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.45);
}
[data-bs-theme="dark"] .description-suggestions-search .suggestion-item {
  color: #d1d5db;
}
/* =========================
   Notes contrat
========================= */
.notes-textarea {
  height: 100%;
  min-height: 140px;
  resize: none;
  overflow-y: auto;
}
.form-check-input {
  border: 1px solid var(--bs-gray-900);
}
.modal-body-orange-band {
  position: relative;
  background-color: var(--bs-app-bg-color);
  /* on garde le fond actuel */
  overflow: hidden;
  z-index: 1;
}
.modal-body-orange-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  /* hauteur de la bande orange */
  background-color: #cb8b2a;
  z-index: 0;
}
.modal-body-orange-band > * {
  position: relative;
  z-index: 1;
}
/* ==========================================================
   MEMBER DASHBOARD
   Version aligned with admin dashboard look
============================================================= */
.memberdash {
  --memberdash-radius-xl: 24px;
  --memberdash-radius-lg: 18px;
  --memberdash-radius-md: 14px;
  --memberdash-board-bg: var(--bs-card-bg);
  --memberdash-card-bg: var(--bs-card-bg);
  --memberdash-row-bg: transparent;
  --memberdash-border: rgba(255, 255, 255, 0.08);
  --memberdash-border-soft: rgba(255, 255, 255, 0.1);
  --memberdash-dashed: rgba(255, 255, 255, 0.14);
  --memberdash-title: var(--bs-gray-100);
  --memberdash-text: var(--bs-gray-200);
  --memberdash-muted: var(--bs-gray-500);
  --memberdash-subtle: var(--bs-gray-600);
  --memberdash-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  --memberdash-shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.14);
}
[data-bs-theme="light"] .memberdash,
html:not([data-bs-theme="dark"]) .memberdash {
  --memberdash-border: rgba(15, 23, 42, 0.08);
  --memberdash-border-soft: rgba(15, 23, 42, 0.1);
  --memberdash-dashed: rgba(59, 130, 246, 0.18);
  --memberdash-title: #0f172a;
  --memberdash-text: #0f172a;
  --memberdash-muted: #8a94b2;
  --memberdash-subtle: #98a2b3;
  --memberdash-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  --memberdash-shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.05);
}
/* Board */
.memberdash .memberdash-board {
  border-radius: 30px;
  border: 1px solid var(--memberdash-border);
  background: var(--memberdash-board-bg);
  -webkit-box-shadow: var(--memberdash-shadow);
          box-shadow: var(--memberdash-shadow);
  overflow: hidden;
}
.memberdash .memberdash-title {
  color: var(--memberdash-title) !important;
  letter-spacing: -0.03em;
}
/* Grid */
.memberdash .memberdash-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}
@media (max-width: 1399.98px) {
  .memberdash .memberdash-grid {
    -ms-grid-columns: (minmax(0, 1fr))[2];
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 991.98px) {
  .memberdash .memberdash-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
/* Card */
.memberdash .memberdash-card {
  --memberdash-accent: 245, 158, 11;
  position: relative;
  border-radius: var(--memberdash-radius-xl);
  border: 1px solid var(--memberdash-border);
  background: var(--memberdash-card-bg);
  -webkit-box-shadow: var(--memberdash-shadow-soft);
          box-shadow: var(--memberdash-shadow-soft);
  padding: 26px 24px 24px;
  min-height: 200px;
  overflow: hidden;
}
.memberdash .memberdash-card--amber {
  --memberdash-accent: 245, 158, 11;
}
.memberdash .memberdash-card--blue {
  --memberdash-accent: 59, 130, 246;
}
.memberdash .memberdash-card--orange {
  --memberdash-accent: 249, 115, 22;
}
.memberdash .memberdash-card--purple {
  --memberdash-accent: 139, 92, 246;
}
.memberdash .memberdash-card--teal {
  --memberdash-accent: 13, 148, 136;
}
/* Header */
.memberdash .memberdash-card__head {
  margin-bottom: 18px;
}
.memberdash .memberdash-card__heading {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 14px;
}
.memberdash .memberdash-card__icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 18px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border: 1px solid rgba(var(--memberdash-accent), 0.35);
  color: rgb(var(--memberdash-accent));
  background: rgba(var(--memberdash-accent), 0.08);
}
.memberdash .memberdash-card__icon i {
  color: inherit !important;
}
.memberdash .memberdash-card__title {
  /*color: var(--memberdash-title) !important;*/
  font-size: 1.05rem;
  font-weight: 800 !important;
  line-height: 1.2;
  margin: 0 0 2px;
}
.memberdash .memberdash-card__subtitle {
  /*color: var(--memberdash-muted) !important;*/
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}
/* Rows */
.memberdash .memberdash-item {
  display: -ms-grid !important;
  display: grid !important;
  -ms-grid-columns: minmax(125px, 1.4fr) 16px minmax(125px, 1.15fr) 16px minmax(120px, 1fr) 16px 56px;
  grid-template-columns: minmax(125px, 1.4fr) minmax(125px, 1.15fr) minmax(120px, 1fr) 56px;
  gap: 16px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 14px 16px;
  border-radius: var(--memberdash-radius-lg);
  border: 1px dashed var(--memberdash-dashed);
  background: transparent;
  -webkit-transition: background 0.2s ease;
  transition: background 0.2s ease;
}
.memberdash .memberdash-item:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.035);
}
[data-bs-theme="light"] .memberdash .memberdash-item:nth-of-type(even) {
  background: rgba(15, 23, 42, 0.045);
}
.memberdash .memberdash-item > div {
  min-width: 0;
}
.memberdash .memberdash-item > div,
.memberdash .memberdash-col-client,
.memberdash .memberdash-col-date,
.memberdash .memberdash-col-client .d-flex,
.memberdash .memberdash-col-date .d-flex {
  min-width: 0;
}
.memberdash .memberdash-col-client .memberdash-value,
.memberdash .memberdash-col-date .memberdash-value {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.memberdash .memberdash-col-task .memberdash-value {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}
.memberdash .memberdash-col-client,
.memberdash .memberdash-col-date {
  min-width: 0;
}
.memberdash .memberdash-col-client > .d-flex,
.memberdash .memberdash-col-date > .d-flex {
  min-width: 0;
  width: 100%;
}
.memberdash .memberdash-col-task .memberdash-value,
.memberdash .memberdash-col-client .memberdash-value,
.memberdash .memberdash-col-date .memberdash-value {
  display: block;
  min-width: 0;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.memberdash .memberdash-col-task,
.memberdash .memberdash-col-client,
.memberdash .memberdash-col-date {
  min-width: 0;
}
.memberdash .memberdash-col-task > .d-flex,
.memberdash .memberdash-col-client > .d-flex,
.memberdash .memberdash-col-date > .d-flex {
  min-width: 0;
  width: 100%;
}
.memberdash .memberdash-item + .separator {
  display: none;
}
@media (max-width: 1225px) {
  .memberdash .memberdash-item {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 10px;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: start;
  }
  .memberdash .memberdash-item > .text-end {
    -ms-grid-column-align: end;
        justify-self: end;
  }
}
/* Typography */
.memberdash .memberdash-item .fw-bold.text-gray-800,
.memberdash .memberdash-item .text-gray-800 {
  color: var(--memberdash-text) !important;
}
.memberdash .memberdash-item .text-gray-500 {
  color: var(--memberdash-muted) !important;
}
.memberdash .memberdash-item .fs-7 {
  font-size: 0.95rem !important;
  line-height: 1.35;
}
.memberdash .memberdash-item .d-flex.flex-column > span:first-child {
  font-weight: 600 !important;
}
.memberdash .memberdash-item .text-danger {
  color: #f1416c !important;
  font-weight: 700;
}
/* Action button */
.memberdash .memberdash-item__action {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(var(--memberdash-accent), 0.28);
  background: rgba(var(--memberdash-accent), 0.1);
  color: rgb(var(--memberdash-accent)) !important;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: all 180ms ease;
  transition: all 180ms ease;
}
.memberdash .memberdash-item__action {
  -ms-grid-column-align: end;
      justify-self: end;
}
.memberdash .memberdash-item__action:hover {
  background: rgba(var(--memberdash-accent), 0.16);
  border-color: rgba(var(--memberdash-accent), 0.38);
}
.memberdash .memberdash-item__action i,
.memberdash .memberdash-item__action .path1,
.memberdash .memberdash-item__action .path2 {
  color: inherit !important;
}
/* Empty state */
.memberdash .memberdash-empty {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  min-height: 82px;
  padding: 16px 18px;
  border-radius: var(--memberdash-radius-lg);
  border: 1px dashed var(--memberdash-dashed);
  background: transparent;
  color: var(--memberdash-subtle);
  font-weight: 600;
}
/* Loading */
.memberdash .loading-component,
.memberdash loadingcomponent {
  display: block;
  min-height: 90px;
}
@media (max-width: 575.98px) {
  .memberdash .memberdash-board {
    border-radius: 22px;
  }
  .memberdash .memberdash-card {
    padding: 20px 18px 18px;
    min-height: auto;
  }
  .memberdash .memberdash-card__icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 16px;
  }
}
.memberdash .memberdash-item--3cols {
  display: -ms-grid !important;
  display: grid !important;
  -ms-grid-columns: 1fr 16px 1fr 16px 56px;
  grid-template-columns: 1fr 1fr 56px;
  gap: 16px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.memberdash .memberdash-item--3cols > div {
  min-width: 0;
}
.memberdash .memberdash-item--3cols .text-end {
  -ms-grid-column-align: end;
      justify-self: end;
}
.memberdash .memberdash-item--3cols .memberdash-col-client,
.memberdash .memberdash-item--3cols .memberdash-col-date {
  -ms-grid-column-align: stretch;
      justify-self: stretch;
}
.memberdash .memberdash-item--3cols .memberdash-col-client > .d-flex,
.memberdash .memberdash-item--3cols .memberdash-col-date > .d-flex {
  width: 100%;
  min-width: 0;
}
