/* =========================================================
  01. BASE LAYOUT
  ========================================================= */

.container-fluid {
  font-family: "Kumbh Sans", "Helvetica Neue", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

/* =========================================================
  01b. SUCCESS MODAL
  ========================================================= */
#saveSuccessBody li {
  padding: 4px 0px;
}
#saveSuccessBody li::before {
  content: "✅";
  margin-right: 8px;
}

/* =========================================================
  02. HEADER
  ========================================================= */
/* Header section wrapper (header + disclaimer) */
.header-section {
  display: flex;
  flex-direction: column;
  margin: 0px 10px 10px 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Mobile: header responsive */
@media (max-width: 1090px) {
  .header-section {
    margin: 0px 6px 6px 6px;
    border-radius: 10px;
  }

  .header-container {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 10px;
  }

  .header-container .more-info {
    justify-self: auto;
  }

  .header-container .header-title {
    justify-self: auto;
    text-align: center;
  }

  .header-container .header-be {
    justify-self: auto;
  }

  .disclaimer {
    padding: 6px 10px 8px;
  }
}

@media (max-width: 767px) {
  .header-container .more-info img {
    width: 32px;
    height: auto;
  }

  .header-container .more-info a {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .header-container .header-title h3 {
    font-size: 14px;
    margin: 0;
  }

  .header-container .header-be img {
    width: 28px;
    height: auto;
  }

  .header-container .header-be a {
    font-size: 10px;
  }

  .disclaimer p {
    font-size: 11px;
    line-height: 1.4;
  }
}

/* Main header container */
.header-container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  padding: 16px 24px;
}

.sidebar-search-field {
  position: relative;
}

.sidebar-search-field .form-control {
  padding-right: 44px;
}

.search-clear-btn {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 18px;
  line-height: 1;
}

.search-clear-btn:hover,
.search-clear-btn:focus-visible {
  background: #f8f9fa;
  color: #dc3545;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-50%) scale(1.05);
}

.search-clear-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.search-clear-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.8);
}


.modal-shaded .modal-content {
  position: relative;
  overflow: hidden;
}

.modal-shaded .modal-content::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 999;
}

.modal-shaded .modal-content>* {
  position: relative;
  z-index: 1000;
}




.log-btns {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: #0d6efd;
  border: 2px solid #0d6efd;
  border-radius: 32px;
  min-height: 34px;
  line-height: 1.1;
  padding: 4px 14px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  white-space: nowrap;
  font-family: inherit;
}

.log-btns:hover {
  background: #0d6efd;
  color: #fff;
  transform: translateY(-1px) scale(1.04);
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.header-container img {
  width: 40px;
  height: 40px;
  margin-right: 8px;
}

.header-container .more-info img {
  width: 80px !important;
  height: auto;
}

.lang {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 10px;
}

.lang img {
  max-width: 100%;
}

/* Header title */
.header-title a {
  color: #101820;
  text-decoration: none;
}

.header-title h3 {
  display: flex;
  font-size: 24px;
  margin: 8px 0 0 0;
  text-align: center;
}

/* Belgium area (right side) */
.header-be {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 120px;
  white-space: nowrap;
}

.header-be img {
  width: 30px;
  height: 20px;
  max-width: 100%;
}

/* Disclaimer */
.disclaimer {
  background-color: #f8d8c0;
  display: table;
  margin: 20px;
  border-radius: 50px;
  text-align: center;
  padding: 0 10px;
}

/* =========================================================
  03. FILTERS + ACTION BAR
  ========================================================= */

/* Filters container */
.filters {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  flex-wrap: wrap;
  border-radius: 12px;
  margin-bottom: 15px;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.16px;
  align-items: start;
}

.main-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.action-sidebar {
  position: relative;
  top: auto;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: none;
  overflow-y: visible;
  padding: 15px;
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.96) 55%, rgba(236, 244, 255, 0.98) 100%);
  border: 1px solid #d5e5ff;
  box-shadow: 0 16px 38px rgba(14, 43, 86, 0.12);
}

.action-sidebar.is-page-scroll {
  position: static;
  top: auto;
}

@media (min-width: 768px) {
  .action-sidebar.is-page-scroll {
    position: relative;
    top: auto;
  }

  /* Laptop/smaller screens: scrollable sidebar */
  @media (max-height: 800px) {
    .action-sidebar.is-page-scroll {
      max-height: calc(100vh - 10px);
      overflow-y: auto;
    }
  }
}

.sidebar-block {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e3edff;
  border-radius: 14px;
  padding: 11px;
  --sidebar-btn-min-height: 40px;
  --sidebar-btn-padding: 7px 14px;
  --sidebar-btn-gap: 8px;
  --sidebar-btn-font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: var(--sidebar-btn-gap);
}

/* Variable d'épaisseur de bordure pour la sidebar */
:root {
  --sidebar-border-width: 1px;
}

/* Forcer une épaisseur harmonisée pour les éléments de la sidebar */
.action-sidebar,
.sidebar-block,
.sidebar-language-btn,
.sidebar-section,
.sidebar-accordion .accordion-item,
.sidebar-form-control {
  border-width: var(--sidebar-border-width);
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d4e2fb;
  background: #fff;
}

/* Boutons d'actions/profile ciblés (auth / password / users / custom) */

#profile-auth-container .log-btns,
#profile-password-container .log-btns,
#profile-users-container .log-btns,
.sidebar-block .custom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sidebar-btn-gap);
  min-height: var(--sidebar-btn-min-height);
  padding: var(--sidebar-btn-padding);
  font-size: var(--sidebar-btn-font-size);
  line-height: 1;
  border-radius: 32px;
  box-sizing: border-box;
}

/* Conserver l'arrondi pour les boutons de langue */
.sidebar-language-switch .sidebar-language-btn,
.sidebar-block .sidebar-language-btn {
  border-radius: 999px;
}

/* Laisser les boutons de langue dans leur grille (ne pas forcer full-width) */
.sidebar-language-switch .sidebar-language-btn {
  min-height: 34px;
  /* valeur existante conservée */
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3b4f73;
}

.sidebar-language-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.sidebar-language-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid #b8cff7;
  background: #fff;
  color: #0f4fbf;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.18s ease;
}

.sidebar-language-btn:hover {
  background: #0f4fbf;
  color: #fff;
  transform: translateY(-1px);
}

.sidebar-language-btn.is-active {
  background: linear-gradient(180deg, #1e5fcb 0%, #0e4ebd 100%);
  border-color: #0e4ebd;
  color: #fff;
}

.filters .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.sidebar-section-title-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sidebar-filter-field {
  width: 100%;
}

.sidebar-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0f4fbf;
  flex: 0 0 auto;
  line-height: 1;
  transition: color 0.18s ease, transform 0.18s ease;
}

.sidebar-icon-btn:hover,
.sidebar-icon-btn:focus-visible {
  background: transparent;
  color: #083b90;
  transform: translateY(-1px);
}

#resetFiltersBtn .btn-icon,
#homeBtn .btn-icon {
  font-size: 19px;
}

.sidebar-accordion-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sidebar-accordion .accordion-item {
  border: 1px solid #e1ebff;
  border-radius: 12px;
  overflow: visible;
}

.sidebar-accordion .accordion-button {
  min-height: 40px;
  padding-right: 3.32px;
  border-radius: 12px !important;
  border: none;
  box-shadow: none;
}

.sidebar-accordion .accordion-button:not(.collapsed) {
  background-color: #edf3ff;
  color: #0f4fbf;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  box-shadow: none;
}

.sidebar-accordion .accordion-button.collapsed {
  background-color: transparent;
  color: inherit;
}

.sidebar-accordion .accordion-collapse {
  border: none;
}

.sidebar-accordion .accordion-body {
  border-top: 1px solid #e1ebff;
  padding: 10px 12px;
}

.sidebar-accordion #itemCountBadge {
  top: 50% !important;
  right: 14px;
  left: auto !important;
  transform: translateY(-50%) !important;
  z-index: 1;
}

#filterBar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 0;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

#filterBar .sidebar-title {
  padding: 11px 0 0 11px !important;
}

#filterBar>.col-auto {
  padding: 0;
  flex: 0 0 auto;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0.432px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e8f0ff;
}

.sidebar-section-title {
  margin: 0 0 3px;
  padding: 0 3px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #51678f;
}

.sidebar-switch-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.action-sidebar .sidebar-switch-wrap .pro-switch .pro-switch-label {
  width: 220px;
}

#profile-auth-container {
  display: flex;
  justify-content: center;
}


#profile-auth-container .log-btns,
#profile-auth-container .custom-btn {
  width: 100%;
  min-height: 42px;
  justify-content: center;
}



#profile-password-container .log-btns {
  width: 100%;
  justify-content: center;
}

#profile-users-container .log-btns {
  width: 100%;
  justify-content: center;
}

@media (max-width: 767px) {
  .filters .row>[class^="col-"] {
    margin-bottom: 10px;
  }

  #filterBar>.col-auto {
    flex: 1 1 calc(50% - 9px);
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  #filterBar>.col-auto {
    flex-basis: 100%;
    min-width: 100%;
  }
}

/* =========================================================
  04. SWITCHES + ACCORDIONS
  ========================================================= */

/* Toggle switch */
.form-check {
  display: flex;
  align-items: center;
  margin-right: 0;
  margin-bottom: 0;
}

#toggleViewIcon {
  margin-right: 8px;
  vertical-align: middle;
}

/* Main switch styles */
.form-switch {
  position: relative;
  display: inline-block;
}

.form-switch .form-check-input {
  appearance: none;
  width: 150px;
  height: 35px;
  background-color: #ccc;
  border-radius: 20px;
  position: relative;
  transition: background-color 0.3s ease;
  cursor: pointer;
  padding: 0;
}

.form-switch .form-check-input::before {
  content: attr(data-off);
  position: absolute;
  left: 35px;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(0, 0, 0);
  font-size: 14px;
  font-weight: bold;
  transition: opacity 0.2s ease;
}

.form-switch .form-check-input::after {
  content: "";
  width: 30px;
  height: 30px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.form-switch .form-check-input:checked {
  background-color: #acccfc;
  --bs-form-switch-bg: none;
}

.form-switch .form-check-input:checked::before {
  content: attr(data-on);
  left: 5px;
}

.form-switch .form-check-input:checked::after {
  transform: translateX(115px);
}


/* Pro/Amateur switch (elegant pill design) */
.pro-switch {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  position: relative;
  padding-left: 0;
}

.pro-switch .pro-switch-input {
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.pro-switch .pro-switch-label {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 220px;
  min-height: 40px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #cfe0ff;
  background: linear-gradient(180deg, #f6f9ff 0%, #eaf1ff 100%);
  cursor: pointer;
  user-select: none;
  margin: 0;
  font-weight: normal;
}

.pro-switch .pro-switch-option {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #6b7280;
  transition: color 0.22s ease;
}

.pro-switch .pro-switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(16, 24, 40, 0.2);
  transition: transform 0.24s ease;
}

.pro-switch .pro-switch-input:not(:checked)+.pro-switch-label .pro-switch-option.pro {
  color: #0b5ed7;
}

.pro-switch .pro-switch-input:checked+.pro-switch-label .pro-switch-option.amateur {
  color: #0b5ed7;
}

.pro-switch .pro-switch-input:checked+.pro-switch-label .pro-switch-thumb {
  transform: translateX(100%);
}

.pro-switch .pro-switch-input:focus-visible+.pro-switch-label {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 3px 10px rgba(13, 110, 253, 0.12);
}

@media (max-width: 576px) {
  .pro-switch .pro-switch-label {
    width: 200px;
    min-height: 38px;
  }
}

.accordion-body {
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 12px;
}

.accordion-button {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  height: 35px;
}

.accordion .item-list {
  max-height: 300px;
  overflow: auto;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  padding: 0;
}

.item-list li {
  padding: 10px 0;
}

.item-list li a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.item-list li a:hover {
  background-color: #f3eae2;
}

.form-check-input[type="checkbox"] {
  margin-top: 8px;
}

.form-check .form-check-input {
  float: left;
  margin-left: 0;
}



/* =========================================================
  05. DETAIL CARDS (cardBody1, cardBody2, cardBody3)
  ========================================================= */

#cardBody1>.card,
#cardBody2>.card,
#cardBody3>.card {
  border: 2px solid #bdbdbd;
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.12), 0 1.5px 4px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 7px;
  transition: box-shadow 0.2s;
}

#cardBody1>.card:not(:last-child),
#cardBody2>.card:not(:last-child),
#cardBody3>.card:not(:last-child) {
  margin-bottom: 10px;
}

/* Spacing between detail blocks */
#cardBody1,
#cardBody2,
#cardBody3 {
  margin-bottom: 10px;
}

/* Cleanup: legacy generic card shadows */
.card,
.card2,
.card3 {
  border: none;
  margin-bottom: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Harmonized card headers */
.card-header,
.card-header1,
.card-header2,
.card-header3 {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  position: relative;
  padding: 7px;
}

.card-header {
  background-color: #f8d8c0;
  border-bottom: 0;
}

.card-header1 {
  background-color: #f1edea;
}

.card-header2 {
  background-color: #fde021;
}

.card-header3 {
  background-color: #e74f3d;
  color: #fff;
}

.card-body {
  margin-bottom: 16px;
}

.card-body>p {
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: bold;
}

p {
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: normal;
}

/* Lists and labels */
.arrow-list {
  list-style-type: none;
  padding-left: 0;
}

dl,
ol,
ul {
  margin-top: 5px;
  margin-bottom: 0;
}

label {
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 5px;
  margin-top: 5px;
}

.modal .form-label {
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 5px;
  margin-top: 5px;
}

.label-unique {
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 0;
}

.date-label-unique {
  display: inline-block;
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 5px;
}

.checkbox-label {
  font-weight: normal;
}

.edit-form {
  padding-left: 30px;
}

/* Detail card body helpers */
.label-container label,
.label-container p {
  display: block;
}

.card-body2 .activity,
.card-body2 .domaine,
.card-body2 .fonctions,
.card-body2 .cluster {
  display: flex;
  align-items: start;
  background-size: auto 100%;
  margin-bottom: 10px;
}

.card-body3 .syno,
.card-body3 .esco {
  background-size: auto 100%;
  margin-bottom: 10px;
}

.pills {
  background-color: #f1edea;
  color: black;
  text-decoration: none;
  padding: 5px;
  border-radius: 10px;
  display: inline-block;
  font-size: 12px;
  margin: 5px;
  transition: 0.15s background-color, 0.15s border-color, 0.15s color,
    0.15s fill;
  font-weight: 600;
  white-space: wrap;
}

.pills:hover {
  background-color: #f0e8df;
  color: black;
}

#PillsCheckboxes,
#PillsCluster {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pillsfilters {
  display: inline-flex;
  background-color: #f8d8c0;
  color: black;
  padding: 5px;
  margin: 5px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  position: relative;
}

/* ESCO links container */
.links-container {
  display: flex;
  gap: 15px;
  flex-direction: column;
  margin-bottom: 15px;
}

.links-container a {
  color: blue;
  text-decoration: underline;
}

/* =========================================================
  06. GRID CARDS (all cards view)
  ========================================================= */

/* All cards */
#cardBodyall {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

#cardBodyall.table-view-container {
  display: block !important;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

#cardBodyall.table-view-container .table-responsive {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
}

#cardBodyall.table-view-container table {
  min-width: 1200px;
  width: 100%;
}


.grid {
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: 30px;
}

.card-all {
  background-color: #fff;
  border-radius: 20px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  display: flex;
  cursor: pointer;
  position: relative;
  flex-direction: column;
  transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.card-all:hover {
  transform: translateY(-2px);
  box-shadow: -3px 1px 0px 0px rgb(255, 0, 0), -5px 3px 0px 0px #ffff00,
    -8px 5px 0px 0px rgb(0, 0, 0);
}

.card-header-all {
  background-color: #f8d8c0;
  padding: 10px;
  border-radius: 20px 20px 0 0;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  height: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comment-date-pill {
  display: inline-block;
  background: #dc3545;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  vertical-align: middle;
}

.sortable-th {
  cursor: pointer;
  user-select: none;
}
.sortable-th:hover {
  background: #e9ecef;
}
.sort-indicator {
  margin-left: 4px;
  font-size: 11px;
}

.comment-pills-row {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 3px;
}

.comment-count-pill {
  display: inline-block;
  background: #48854b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  vertical-align: middle;
}

.card-header-all2 {
  background-color: #f1edea;
  padding: 10px;
  font-size: 14px;
  font-weight: 400;

  text-align: center;
  height: auto;
}

.card-body-all {
  padding: 7px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.description-text-all {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 96px;
  position: relative;
}

.no-description-text-all {
  font-weight: bold;
  margin-top: 10%;
  text-align: center;
}

.fa1::before {
  margin-right: 5px;
  content: "\f0eb";
  color: #1cafff;
  font-size: 20px;
  transition: all 0.2s ease-in-out;
}

.fa1:hover::before {
  transform: scale(1.2);
  color: #e70a11;
}

/* Domain icons spacing */
.domains {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  margin-left: -7px;
  width: 100%;
  box-sizing: border-box;
}

/* Wrapper for each domain icon */
.domain-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  position: relative;
}

/* Domain icon visual style */
.domain-icon {
  font-size: 22px;
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
}

/* Domain icon hover effect */
.domain-icon:hover {
  transform: scale(1.2);
}

/* Tooltip style */
.tooltiptextIcon {
  visibility: hidden;
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 100;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  white-space: nowrap;
  max-width: 220px;
  margin-top: 5px;
  pointer-events: none;
  font-size: 15px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Show tooltip only on icon hover */
.domain-icon-wrapper:hover .tooltiptextIcon {
  visibility: visible;
  opacity: 1;
}

/* Scroll to top button */
#scrollTopBtn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: #0d6efd;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrollTopBtn.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

#scrollTopBtn:hover {
  background: #0b5ed7;
}




.pillsFunction {
  display: inline-block;
  background-color: #ffe066;
  color: #333;
  border-radius: 10px;
  padding: 5px;
  margin: 5px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #ffd700;
  transition: 0.15s background-color, 0.15s border-color, 0.15s color,
    0.15s fill;
  white-space: wrap;
}

.pillsFunction:hover,
.pillsFunction:focus {
  background-color: #dad2a6;
  color: #222;
}

/* =========================================================
  07. TABLE VIEW + DATATABLES
  ========================================================= */

/* Lignes de tableau en mode carte arrondie */
#cardBodyall.table-view-container table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0 8px;
}

#cardBodyall.table-view-container table.dataTable tbody td {
  background: #fff;
  border-top: 1px solid #dfe3e8;
  border-bottom: 1px solid #dfe3e8;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease;
}


/* Suppression du zebra striping partout (vue liste DataTables) */

/* Suppression du zebra striping partout (vue liste DataTables) */
table.dataTable tbody tr.odd td,
table.dataTable tbody tr.even td {
  background: #fff !important;
}

/* Forcer le fond blanc sur toutes les lignes, même si DataTables recharge le style */
table.dataTable tbody tr {
  background: #fff !important;
}


/* Effet 3D sur hover pour toutes les lignes de DataTables */
table.dataTable tbody tr:hover td {
  background: #fdfefe !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 35, 67, 0.16);
}

table.dataTable tbody td:first-child {
  border-left: 1px solid #dfe3e8;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

/* Boutons de zoom DataTables toujours visibles et bien placés */
.dt-table-zoom {
  display: inline-flex !important;
  gap: 8px;
  margin-right: 16px;
  vertical-align: middle;
}

.dt-zoom-btn {
  background: #f5f5f5;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.15s;
}

.dt-zoom-btn:hover {
  background: #e0e0e0;
}

#cardBodyall.table-view-container table.dataTable tbody td:last-child {
  border-right: 1px solid #dfe3e8;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Header: sans flèches de tri, bordure complète, teinte douce */
#cardBodyall.table-view-container table.dataTable thead th {
  background: #f4f7fb !important;
  border: 1px solid #d6dee8 !important;
}

#cardBodyall.table-view-container table.dataTable thead th:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

#cardBodyall.table-view-container table.dataTable thead th:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

#cardBodyall.table-view-container table.dataTable thead th .dt-column-order,
#cardBodyall.table-view-container table.dataTable thead th button {
  display: none !important;
}

/* =========================================================
  08. CRUD MODAL
  ========================================================= */

/* CRUD modal */

/* Darker backdrop and subtle blur behind modals for clearer focus */
.modal-backdrop {
  --bs-backdrop-bg: #081a36;
  --bs-backdrop-opacity: 0.62;
  backdrop-filter: blur(2px);
}

body.modal-stack-nested-open .modal-backdrop.show {
  backdrop-filter: blur(3px);
  opacity: 0.78 !important;
}

.modal.modal-underlay-dimmed .modal-content {
  filter: brightness(0.74) saturate(0.9);
  transition: filter 0.2s ease;
}

.modal-fullscreen {
  max-width: 90vw;
  width: 90vw;
  height: 90vh;
  min-height: 90vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  top: 25px;
  left: 0;
  right: 0;
  bottom: 0;
  position: fixed;
  z-index: 1055;
  border-radius: 18px;
  box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.18);
  background: #fff;
}

.mt-2 {
  display: flex;
}

.me-4 {
  margin-right: 32px !important;
  margin-top: 10px;
}

.form-check-label {
  margin-top: 15px;
  margin-left: 7px;
  font-weight: normal;
}

.quill-container {
  height: 120px;
}

/* Internal remarks: read-only wrappers */
.quill-readonly-wrapper {
  position: relative;
  border-radius: 6px;
  background-color: #f8f9fa;
  opacity: 0.72;
}

.quill-readonly-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: not-allowed;
  border-radius: 6px;
}

/* Shared icon baseline for all button icons */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-right: 10px;
  font-style: normal;
}

/* users crud modal */
.modal .modal-content .modal-header,
.modal-footer {
  background-color: aliceblue;
}

/* =========================================================
  09. ACTION BUTTONS (filter bar)
  ========================================================= */

.custom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-height: 42px;
  width: 100%;
  min-width: 124px;
  padding: 8px 15px;
  border: 1px solid #0d6efd;
  color: #0d6efd;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  font-size: 0.932px;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
}

#internalCommentsFilterBadge,
#archivedToggleBadge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #48854b;
  color: #fff;
  padding: 3px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  z-index: 1;
  pointer-events: none;
}

.custom-btn:hover {
  background: #0d6efd;
  color: #fff;
  border-color: #0b5ed7;
  transform: translateY(-1px);
}

.custom-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.custom-btn:active {
  transform: translateY(0);
}

.custom-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.custom-btn:disabled:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: #0d6efd;
  border-color: #0d6efd;
}

#filterBar .custom-btn {
  width: 100%;
}

#filterBar .custom-btn .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-width: 26px;
  background: none;
  color: inherit;
  font-size: 1.16px;
  line-height: 1;
  transition: transform 0.18s ease;
}

#filterBar .custom-btn .btn-label {
  display: block;
  align-items: center;
  font-weight: bold;
  white-space: normal;
  text-align: center;
  margin-top: 2px;
  line-height: 1.05;
  max-height: 48px;
  overflow: hidden;
}

#filterBar .custom-btn .btn-icon-stack {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

#filterBar .custom-btn:hover .btn-icon {
  transform: scale(1.06);
}

#filterBar .custom-btn:focus-visible .btn-icon {
  transform: scale(1.06);
}

/* Sidebar action sections: wrapper titre + action list */
#filterBar [data-sidebar-section] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

#filterBar [data-sidebar-section] .sidebar-section-title {
  margin-bottom: 0.16px;
}

#filterBar [data-sidebar-section]>.col-auto {
  padding: 0;
}

#filterBar [data-sidebar-section]>.col-auto.is-full-width {
  grid-column: 1 / -1;
}

#filterBar [data-sidebar-section] .custom-btn {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  min-width: 0;
  width: 100%;
  padding: 7px 3px;
  border-radius: 12px;
  text-align: center;
}

#filterBar [data-sidebar-section] .custom-btn .btn-icon,
#filterBar [data-sidebar-section] .custom-btn .btn-icon-stack {
  font-size: 20px;
  margin-right: 0;
}

#sidebar-actions-js {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 6px;
  margin: 5px;
}

#sidebar-actions-js .col-auto {
  padding: 0;
}

#filterBar [data-sidebar-section] .custom-btn .btn-label {
  font-weight: bold;
  font-size: 12px;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 767px) {
  .workspace-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .action-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    box-shadow: 0 10px 25px rgba(14, 43, 86, 0.1);
  }

  #filterBar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 7px;
  }

  .sidebar-section {
    width: 100%;
  }

  .custom-btn {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .sidebar-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #d4e2fb;
    border-radius: 8px;
    color: #0f4fbf;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
  }

  .sidebar-toggle-btn:hover,
  .sidebar-toggle-btn:focus-visible {
    background: #f0f5ff;
    color: #083b90;
  }

  .sidebar-toggle-btn.is-active .sidebar-toggle-icon {
    font-size: 16px;
  }

  .action-sidebar {
    display: none;
  }

  .action-sidebar.is-visible {
    display: flex;
  }
}

/* Hide toggle button on big screens */
@media (min-width: 768px) {
  .sidebar-toggle-btn {
    display: none;
  }



  @media (max-width: 540px) {
    .sidebar-language-switch {
      grid-template-columns: repeat(3, minmax(66px, 1fr));
    }

    #filterBar {
      flex-direction: column;
    }
  }

  /* =========================================================
  10. INTERNAL COMMENTS + QUILL HELPERS
  ========================================================= */

  /* Profile block: replace inline styles previously present in ./php/filterbar.php */
  .profile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .profile-auth-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
  }

  .profile-comments-wrap {
    display: block;
  }

  .profile-comments-btn {
    border-radius: 32px;
    border: 2px solid #0d6efd;
    padding: 7px 13px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

#myCommentsBadge {
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #48854b;
}

#searchInput {
  padding-right: 30px;
}

#myCommentsPagination {
  display: none;
}

#importUsersFile {
  display: none;
}

#restoreConfirmMessage {
  white-space: pre-line;
}

.pills-containers {
  margin-bottom: 10px;
}

.modal-xl-custom {
  max-width: 90vw;
}

.form-col-wide {
  min-width: 180px;
  max-width: 250px;
}

.form-col-full {
  min-width: 300px;
}

.form-col-narrow {
  min-width: 140px;
}

.marc-section {
  margin-bottom: 12px;
  padding: 8px;
  background: #fce4ec;
  border-radius: 4px;
}

.marc-title {
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 4px;
  color: #000;
  cursor: pointer;
  user-select: none;
}

.panel-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.marc-toggle-icon,
.comment-toggle-icon {
  display: inline-block;
  font-size: 10px;
  margin-right: 4px;
  transition: transform 0.2s;
}

.comment-toggle-icon {
  margin-right: 6px;
  width: 12px;
}

.comment-entry-box {
  margin-top: 6px;
  padding: 4px 0;
}

.comment-entry-box-alt {
  margin-top: 6px;
  padding: 8px;
  background: #f5f5f5;
  border-radius: 4px;
}

.comment-meta {
  display: block;
  font-weight: 500;
  color: #000;
}

.comment-meta-alt {
  display: block;
  font-weight: 700;
  color: #666;
  cursor: pointer;
  user-select: none;
}

.comment-content {
  font-size: 13px;
  color: #333;
}

.panel-container {
  margin-bottom: 12px;
  margin-top: 12px;
  padding: 8px;
  background: #f0f0f0;
  border-radius: 4px;
}

.panel-title {
  margin: 0 0 8px 0;
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

.comment-content-panel {
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}

.editing-badge {
  display: inline-block;
  background: #fd7e14;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-right: 8px;
}

.btn-container {
  display: flex;
  gap: 8px;
}

.comment-meta-panel {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.btn-icon-grid {
  border: 0;
  background: transparent;
  padding: 2px 4px;
  line-height: 1;
}

.users-search-input {
  max-width: 200px;
}

.users-sort-select {
  max-width: 150px;
}

.pagination-label {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logout-link {
  margin-left: 8px;
}

.marc-comments {
  background: #fce4ec;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
}

.history-comments {
  background: #f0f0f0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
}

.history-comments .ql-container.ql-snow {
  border: none;
}

  @media (min-width: 992px) {
    .profile-actions {
      gap: 12px;
    }
  }

  .internal-comments-history {
    min-height: 220px;
    max-height: 300px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 12px;
  }

  .internal-comments-history-editable {
    background: #fff;
    border-color: #86b7fe;
  }

  .internal-comments-history-editable:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
  }

  .internal-comments-history .empty-text {
    color: #6c757d;
    margin: 0;
    font-style: italic;
  }

  .internal-comment-entry {
    border-left: 3px solid #0d6efd;
    padding: 8px 8px 8px 12px;
    margin-bottom: 12px;
    background: #f5f5f5;
    border-radius: 4px;
  }

  .internal-comment-meta {
    font-size: 13px;
    color: #000;
    font-weight: 700;
    margin-bottom: 6px;
  }


  .internal-input-quill {
    flex: 1;
    min-height: 200px;
    height: auto;
  }

  #internalRemarksModal .modal-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }

  #internalRemarksTabContent {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }

  #internalRemarksTabContent .tab-pane {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }

  #internalRemarksTabContent .tab-pane:not(.active) {
    display: none;
  }

  #internalRemarksTabContent .ql-container {
    flex: 1;
  }

  .resizable-table {
    table-layout: auto;
    width: 100%;
  }

  .resizable-table th.resize-col {
    position: relative;
    cursor: col-resize;
    user-select: none;
  }

  .resizable-table th.resize-col::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    cursor: col-resize;
    background: transparent;
  }

  .resizable-table th.resize-col:hover::after {
    background: #0d6efd;
  }

  .resizable-table th.resize-col.resizing {
    background: #e9ecef;
  }
}