.bootstrap-tagsinput input {
  max-width: none;
}

.text-transparent {
  color: transparent;
}

/* POUR LE FORMULAIRE DE CREATION D'UTILISATEURS SI LDAP NON CONFIGURÉ ET MOT DE PASSE OBLIGATOIRE */
.invalid-feedback {
  display: block !important;
  color: #dc3545 !important;
  font-size: 0.875rem !important;
  margin-top: 0.25rem !important;
  font-weight: 500 !important;
}

.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.ajusted {
  width: 1px;
  white-space: nowrap;
}

.card-title {
  font-weight: 0 !important;
  /*text-transform: uppercase !important;*/
}

.page-title {
  padding: 1.25rem 0 !important;
}

/*.navbar-collapse {*/
/*    !*padding-left: 0  !important;*!*/
/*}*/

.sidebar-user .btn-float > span {
  padding-top: 0.4rem;
}

/*.table thead th {*/
/*    border-bottom: 0px solid #b7b7b7;*/
/*}*/
/*.table th {*/
/*    border-top: 0px solid #ddd;*/
/*}*/
/*.card-header {*/
/*    border-bottom: 0px solid rgba(0,0,0,.125);*/
/*}*/
/*.card-body + .table, .card-body + div[class*="table-responsive"], .card-header:not([class*="bg-"]) + .table, .card-header:not([class*="bg-"]) + div[class*="table-responsive"], .navbar-light + .table, .navbar-light + div[class*="table-responsive"], .table + .card-body, div[class*="table-responsive"] + .card-body {*/
/*    border-top: 0px solid #ddd;*/
/*}*/
/*.table-bordered th {*/
/*    border: 0px solid #ddd;*/
/*}*/

/*.chart--container {*/
/*    min-height: 344px;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*}*/
/*.zc-ref {*/
/*    display: none;*/
/*}*/
/*#myChart svg.zc-svg{*/
/*    margin-top: 20px;*/
/*}*/

#chart-pyramide-ages,
#chart-tranches-ages,
#chart-pyramide-csp,
#chart-genres {
  width: 100%;
  height: 365px;
}

/*#chart-genres {*/
/*    width: 100%;*/
/*    height: 200px;*/
/*}*/

#chart-beneficaires-evolution-entrees-sorties {
  width: 100%;
  height: 409px;
}
#chart-connexions {
  width: 100%;
  height: 409px;
}

#chart_ressources_humaines {
  width: 100%;
  height: 290px;
}

#chartdiv_dynamique {
  width: 100%;
  height: 500px;
  max-width: 100%;
}

/*.AmChartsLogo {*/
/*    display: none !important;*/
/*}*/

/*Pour résoudre le problème d'affichage des graphique caché*/
.tab-map .tab-content .tab-pane {
  position: absolute;
  top: -9999px;
  left: -9999px;
  display: inline;
}
.tab-map .tab-content .tab-pane.active {
  position: inherit !important;
}

.tab-content {
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-top: 0px;
  padding: 15px 15px 15px 15px !important;
}

.dataTables_wrapper {
  border-top: 0px !important;
}

.datatable-header {
  padding: 0px !important;
}

.navbar-brand {
  margin-right: 0 !important;
}

img.profil:hover {
  -ms-transform: scale(2.5); /* IE 9 */
  -webkit-transform: scale(2.5); /* Safari 3-8 */
  transform: scale(2.5);
}

.block {
  display: inline-block; /* display inline with ability to provide width/height */
}

/*.navbar-dark {*/
/*    !*background-color: #004280 !important;*!*/
/*    background-color: #0b68aa !important;*/
/*}*/
/*.sidebar-dark {*/
/*    !*background-color: #0156a5 !important;*!*/
/*    background-color: #0b77bf !important;*/
/*}*/

@media (min-width: 768px) {
  .sidebar-xs .sidebar-main .sidebar-user > .nav-item > .nav-link > span {
    display: none !important;
  }
}

.nav-sidebar > .nav-item > .nav-link {
  font-weight: 400 !important;
}

.navbar-brand img {
  height: 1.5rem !important;
}

.rounded-flat {
  border-radius: 0px !important;
}

/* Migration */

.form-label {
  --form-label-margin-bottom: none !important;
}

.card-title {
  margin-bottom: 0 !important;
}

.card-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.125) !important;
}

.table th,
.table td {
  vertical-align: inherit !important;
}
table > :not(caption) > * > * {
  padding: var(--table-cell-padding-y) var(--table-cell-padding-x);
  background-color: var(--table-bg);
  border-bottom-width: var(--table-border-width);
  box-shadow: unset !important;
}

.badge-slate {
  color: #fff !important;
  background-color: #607d8b !important;
}
a.badge-slate:hover,
a.badge-slate:focus {
  color: #fff !important;
  text-decoration: none !important;
}
a.badge-slate:hover:not(.badge-light),
a.badge-slate:focus:not(.badge-light) {
  box-shadow: 0 0 0 62.5rem rgba(0, 0, 0, 0.075) inset !important;
}

.dataTables_info {
  padding: 0.375rem 0.75rem !important;
}

a {
  color: #fff !important;
}

/*Navigation métier*/
.metier .nav-link {
  padding-bottom: 0px !important;
  margin-bottom: 0px !important;
  padding-top: 0px !important;
  margin-top: 0px !important;
}
/*.metier .nav-group-sub .nav-link{*/
/*    padding-left: calc(var(--nav-link-padding-x)  + var(--icon-font-size)) !important;*/
/*}*/
/*.rome{*/
/*    padding-left: calc(var(--nav-link-padding-x) * 2  + var(--icon-font-size)) !important;*/
/*}*/

.metier .nav-item-submenu > .nav-link::after {
  top: inherit;
}

.metier {
  --sidebar-width: 24.75rem;
}

.border-0 {
  border: 0px !important;
}

.tox:not(.tox-tinymce-inline) .tox-editor-header {
  border: 1px solid #eee !important;
  box-shadow: none !important;
}

.tox-tinymce {
  border: 1px solid #eee !important;
}

#progress-bar {
  display: block;
  text-align: center;
  width: 0;
  height: 10px;
  background: red;
  transition: width 0.3s;
}

#progress-bar.hide {
  opacity: 0;
  transition: opacity 1.3s;
}

#progressBar {
  width: 100%;
  height: 20px;
  background-color: #f0f0f0;
  margin-bottom: 10px;
  display: none;
}
#progress {
  width: 0%;
  height: 100%;
  background-color: #4caf50;
}

#progressTimer {
  width: 100%;
  height: 5px;
}

/* CSS for the loading icon */
#loading {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 100%;
  height: 100%;
}

#loading::after {
  content: "";
  width: 100px;
  height: 100px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.warning {
  background-color: #f99 !important;
}

.form-section {
  background: #f8f9fa;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.form-section-title {
  color: #495057;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}
.field-group {
  margin-bottom: 15px;
}
.field-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 5px;
}
.meta-info {
  font-size: 0.9rem;
  color: #6c757d;
}
.readonly-field {
  background-color: #e9ecef;
  cursor: not-allowed;
}

.item {
  background: #ebf5fb !important;
}
.manifestation {
  background: #f4ecf7 !important;
}
.oeuvre {
  background: #e9f7ef !important;
}
.oeuvrefactice {
  background: #fef3ed !important;
}

.item {
  background: #ebf5fb !important;
}
.manifestation {
  background: #f4ecf7 !important;
}
.oeuvre {
  background: #e9f7ef !important;
}
.oeuvrefactice {
  background: #fef3ed !important;
}
.ligne {
  background: #eaecee !important;
}

/* Badge styles for legend */
.badge.item {
  background: #ebf5fb !important;
  color: #2c3e50 !important;
  border: 1px solid #3498db;
}
.badge.manifestation {
  background: #f4ecf7 !important;
  color: #2c3e50 !important;
  border: 1px solid #9b59b6;
}
.badge.oeuvre {
  background: #e9f7ef !important;
  color: #2c3e50 !important;
  border: 1px solid #27ae60;
}
.badge.oeuvrefactice {
  background: #fef3ed !important;
  color: #2c3e50 !important;
  border: 1px solid #95a5a6;
}

/* Geography-style legend styles */
.legend-container {
  background: #fff;
  border: 2px solid #333;
  border-radius: 4px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  max-width: 400px;
}

.legend-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-color {
  width: 20px;
  height: 16px;
  border: 1px solid #333;
  flex-shrink: 0;
  border-radius: 2px;
}

.legend-color.item {
  background: #ebf5fb;
  border-color: #3498db;
}

.legend-color.manifestation {
  background: #f4ecf7;
  border-color: #9b59b6;
}

.legend-color.oeuvre {
  background: #e9f7ef;
  border-color: #27ae60;
}

.legend-label {
  font-size: 12px;
  color: #333;
  font-weight: 500;
  line-height: 1.3;
}

table thead tr:first-child th.item {
  background-color: #d8effb !important;
}

table tr:first-child th.manifestation {
  background-color: #f3defb !important;
}

table tr:first-child th.oeuvre {
  background: #d4f9e3 !important;
}

table tr:first-child th.oeuvrefactice {
  background: #fde7da !important;
}

table tr:first-child th.ligne {
  background: #d3d4d6 !important;
}

.text-upper {
  text-transform: uppercase;
}

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

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

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

/* tooltip */
.tooltip-danger .tooltip-inner {
  background-color: #f8d7da; /* fond alert-danger */
  color: #842029; /* texte alert-danger */
  border: 1px solid #f5c2c7;
  max-width: 300px; /* si la liste est longue */
}
.tooltip-danger .tooltip-arrow::before {
  border-top-color: #f8d7da; /* flèche */
}

/* Style de base pour la popup SweetAlert2 */
.swal2-popup {
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-weight: var(--body-font-weight);
  line-height: var(--body-line-height);
  color: var(--body-color);
  text-align: var(--body-text-align);
  background: #fff; /* ou une couleur adaptée */
  border-radius: 0.5em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.swal2-html-container {
  text-align: inherit !important;
}

/* Style du titre */
.swal2-title {
  font-weight: 500;
  font-size: calc(var(--body-font-size) * 1.4);
  margin-bottom: 0.5em;
}

/* Style du contenu */
.swal2-content {
  font-size: var(--body-font-size);
  margin: 0.5em 0 1em 0;
  color: var(--body-color);
}

/* Style des boutons */
.swal2-actions button {
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-weight: var(--body-font-weight);
  padding: 0.5em 1.2em;
  border-radius: 0.3em;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.swal2-confirm {
  background-color: #3085d6;
  color: white;
}

.swal2-confirm:hover {
  background-color: #2565a8;
}

.swal2-cancel {
  background-color: #aaa;
  color: white;
}

.swal2-cancel:hover {
  background-color: #888;
}
/*
.swal2-icon {
  width: 30px !important;
  height: 30px !important;
  font-size: 30px !important;
}

.swal2-popup-custom {
    max-height: 80vh;
    overflow-y: auto;
}
*/

#page-spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.1);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.spinner-wrapper {
  text-align: center;
}

/* la  classe text-success ne suffit pas pour changer la couleur visuelle de la case à cocher. 
Il  faut ajouter accent-color en CSS pour obtenir un effet vert visible.
*/
.checkbox-success {
  accent-color: #198754; /* Vert Bootstrap */
}

.checkbox-danger {
  accent-color: #dc3545; /* Rouge Bootstrap */
}

td.wrap-text-200 {
  white-space: normal !important;
  word-break: break-word;
  max-width: 200px;
}

td.wrap-text-300 {
  white-space: normal !important;
  word-break: break-word;
  max-width: 300px;
}
td.wrap-text-400 {
  white-space: normal !important;
  word-break: break-word;
  max-width: 400px;
}
td.wrap-text-500 {
  white-space: normal !important;
  word-break: break-word;
  max-width: 500px;
}

.reset-font-size {
  font-size: revert !important;
}

.tooltip-large {
  max-width: 450px; /* ajuste : 300, 400, 500… */
  text-align: left;
}

.tooltip-large ul {
  padding-left: 1rem;
}

.popover-validation {
  max-width: 520px;
}

.popover-validation ul {
  padding-left: 1rem;
  margin-bottom: 0;
}

.popover-validation li {
  margin-bottom: 0.25rem;
}

.form-control.is-invalid,
.was-validated .form-control:invalid,
.form-control.is-valid,
.was-validated .form-control:valid {
  background-image: none !important;
  padding-right: 0.75rem !important; /* valeur normale Bootstrap */
}

.form-check-input.check-danger {
  border-color: #dc3545;
}

.form-check-input.check-danger:checked {
  background-color: #dc3545;
  border-color: #dc3545;
}

.status-box {
  all: unset;
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  border: none !important;
}

.status-ok {
  background: #2ecc71;
} /* vert */
.status-none {
  background: #bdc3c7;
} /* gris */
.status-check {
  background: #f39c12;
} /* orange */

.text-violet {
  color: #8b5cf6 !important;
}
