
.fs-7 {
  font-size: 0.9rem !important;
}
.fs-8 {
  font-size: 0.8rem !important;
}
.fs-9 {
  font-size: 0.7rem !important;
}

.tooltip-large .tooltip-inner {
  max-width: none;
}

.selectable {
    cursor: pointer;
}

/*.selected {
    box-sizing: border-box;
    border: 3px solid red !important;
    z-index: 100;
}*/

.selection_temporary {
    position: absolute;
    border: 3px solid green;
}

.link-subtle {
  color: inherit;
  text-decoration: inherit;
  cursor: inherit;
}
.link-subtle:hover {
  color: var(--bs-link-color);
  text-decoration: underline;
  cursor: pointer;
}

.draggable {
    position: absolute;
    left: 0px;
    top: 0px; 
    cursor: grab;
    user-select: none;
}

.draggable.dragging {
    cursor: grabbing;
}

.table-borders-vertical {
  border-collapse: separate;
  border-spacing: 0;
}

.table-hover-cell tbody tr td:hover {
  filter: brightness(85%);
}

.modal.center-with-flex.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.modal-dialog.width-fit-content {
  display: inline-block;
  max-width: 90vw;
  min-width: 300px;
  width: auto;
}


.scroll-vh70 {
  max-height: 70vh;
  overflow-y: auto;
}

.vertical-cell {
  padding: 0;
  text-align: center;
  vertical-align: middle;
  width: 1px; /* largeur minimale */
}

.vertical-cell-content {
  writing-mode: sideways-lr;
  /*transform: rotate(180deg); nécessaire pour que l'écriture aille de bas en haut comme attendu */
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  border-style : hidden!important;
}


input.show-validity:user-invalid {
    border: 2px solid red;
    background-color: #ffe6e6;
}

input.show-validity:user-valid {
    border: 2px solid green;
    background-color: #e6ffe6;
}

.clickable-row {
  cursor: pointer;
}

.table_sorting_ascending::after {
  font-family: "bootstrap-icons";
  content: "\f128";
  color: white;
}
.table_sorting_descending::after {
  font-family: "bootstrap-icons";
  content: "\f148";
  color: white;
}
.table_sorting_ascending, .table_sorting_descending { cursor: pointer; }


.tooltip-img {
  position: relative;
  cursor: pointer;
  color: var(--bs-link-color);
}

/* L’image est cachée par défaut */
.tooltip-img img {
  display: none;
  position: absolute;
  top: 1.5em;
  left: 0;
  width: 200px;
  border: 1px solid #ccc;
  background: white;
  z-index: 10;
  padding: 4px;
}

/* Apparition au survol */
.tooltip-img:hover img {
  display: block;
}


.loading-spinner {
  width: 50px;
  padding: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #25b09b;
  --_m: 
    conic-gradient(#0000 10%,#000),
    linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
          mask: var(--_m);
  -webkit-mask-composite: source-out;
          mask-composite: subtract;
  animation: l3 1s infinite linear;
}
@keyframes l3 {to{transform: rotate(1turn)}}