:root {

  --color-highlight: #563A3C;
  --color-highlight-2: #9AA8E8;

  --scrollbar-width: 15px;

  --bs-accordion-body-padding-y: 0;
  --bs-accordion-body-padding-x: 0;
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 11px;
  margin: 0;
  padding: 0;

  overflow: hidden;
}


/* barre de défilement verticale */
::-webkit-scrollbar {
  width: var(--scrollbar-width);
  background-color: #E5E5E5;
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-highlight);
  border: solid 1px #000;
  border-radius: calc(var(--scrollbar-width) / 2);
}

/* barre de défilement horizontale */
::-webkit-scrollbar-horizontal {
  height: var(--scrollbar-width);
  background-color: #E5E5E5;
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-highlight);
}


/* ======================================= */

/*==================================*/


/* ======================================= */



.node {
  border: solid 1px #aaa;
  background-color: #ccc;
  padding: 0.25rem;
}

.node-header {
  display: flex;
  justify-content: space-between;
  border-bottom: solid 1px #000;
}

.node-caption {
  font-weight: bold;
}

.option {
  border: solid 1px #000;
  padding: 0 0.25rem;
  background-color: #eee;
  margin: 0.25rem 0;
  box-shadow: 3px 3px 3px #0008;
}

.option:last-child {
  margin: 0.25rem 0 0;
}

.option-header {
  display: flex;
  justify-content: space-between;
}

.option-trash {
  cursor: pointer;
}

.option-caption {
  font-weight: bold;
}



/* ====================================== */

#questionnaire-container {
  max-width: 300px;
  border: solid 1px #aaa;
  padding: 1rem;
}
#questionnaire {
  padding: 1rem;
  border: solid 1px #aaa;
  background-color: #E6E5E5;
}

#questionnaire .questionnaire-option {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
}


/* ======================================== */
.jstree-default .jstree-node {
  margin-left: 16px;
  border-left: dotted 1px #aaa;
}

.jstree-icon {
  font-style: normal;
}

.jstree-default .jstree-icon:empty {
  margin-left: 5px;
}

.jstree-node.tree-node--node {
  border-left: solid 1px var(--color-highlight-2);
  position: relative;
}

/* .jstree-node.tree-node--node.jstree-open::before {
  content: "▼";
  position: absolute;
  top: 0;
  left: 0;
  margin-left: 12px;
} */

/*
.jstree-node.tree-node--node::before {
  content: "▶";
  margin-left: 12px;
}
 */



/* ======================================== */
.jstree-icon {
  padding-right: 0 !important;
  /* background: none !important; */
}

.jstree-anchor {
  line-height: 24px;
  height: 24px;
}

.jstree-default .jstree-wholerow-clicked {
  /* background: transparent; */
}


.tree-node--node {
  /* font-weight: bold; */
  color: #fff;
}

.tree-node--node {
  margin-left: 24px;
}

.tree-node--node > .jstree-anchor {
  border: solid 1px var(--color-highlight-2);
  border-radius: 24px !important;
  background-color: #555555 !important;
  padding: 0 8px;
}

.tree-node--node > .jstree-anchor::before {
  content: '📦';
  margin-right: 4px;
}


.jstree-node.tree-node--option.jstree-leaf .jstree-icon {
  display: none;
}


.jstree-node.tree-node--option.jstree-leaf .jstree-anchor {
  border-left: solid 1px var(--color-highlight-2);
  margin-left: 16px;
  padding-left: 4px;
}


.tree-node--option {
  font-weight: lighter;
  color: #000;
}


.tree-node--option > .jstree-anchor::before {
  content: '🍃';
  margin-right: 4px;
}

.tree-node--option > .jstree-anchor {
  border: none;
  padding-left: 0px;
}

/* ======================================= */
.draggable {
  cursor: move;
  background-color: #0005;
}

#graph canvas {
  position: absolute !important;
  top: 0;
  left: 0;
}



.node-info__caption {
  width: 100%;
}