#tree {
  background-color: inherit !important;
  height: 100% !important;
  width: 100% !important;
  padding: 0rem;
  visibility: visible;
  overflow: none;
  background-color: inherit;
  padding: 0rem 0rem 0rem 2rem;


}

#page_body_tree_container {
  position: relative;
}

.tree_error {
  height: 100%;
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-right: 2rem !important;
}

.tree_parent_logic_banner {
  position: absolute !important;
  top: 1vh;
  right: 1vw !important;
  left: auto !important;
  z-index: 20;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  width: max-content;
  max-width: min(38rem, calc(100% - 20rem - 2vw));
  padding: 0.6rem 0.9rem;
  border: var(--border-width) solid var(--purple-light);
  border-radius: var(--border-radius);
  background-color: var(--grey-background) !important;
  color: var(--purple-dark);
  box-shadow: 0rem 0.35rem 0.85rem rgba(55, 20, 55, 0.16);
}

.tree_parent_logic_banner.positive {
  border-left: 0.35rem solid var(--green-border);
}

.tree_parent_logic_banner.negative {
  border-left: 0.35rem solid var(--darkred);
}

.tree_parent_logic_banner_main {
  min-width: 0;
  flex: 1 1 auto;
}

.tree_parent_logic_kicker {
  color: var(--purple-medium);
  font-size: calc(0.82 * var(--font-size-button));
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tree_parent_logic_title_row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.15rem;
}

.tree_parent_logic_title {
  color: var(--purple-dark);
  font-family: 'Manrope-SemiBold', sans-serif;
  font-size: var(--font-size-header_small);
  line-height: 1.25;
  word-break: break-word;
}

.tree_parent_logic_status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  font-size: calc(0.9 * var(--font-size-button));
  line-height: 1.2;
  border: var(--border-width) solid var(--purple-light);
  color: var(--purple-dark);
  background-color: rgba(255, 255, 255, 0.55);
}

.tree_parent_logic_status.positive {
  background-color: var(--green);
  border-color: var(--green-border);
  color: var(--green-border);
}

.tree_parent_logic_status.negative {
  background-color: var(--darkred);
  border-color: var(--darkred);
  color: white;
}

.tree_parent_logic_explanation {
  margin-top: 0.3rem;
  color: var(--black);
  font-size: calc(0.95 * var(--font-size-body));
  line-height: 1.4;
}

@media (max-width: 900px) {
  .tree_parent_logic_banner {
    top: 1vh;
    right: 1vw !important;
    left: 1vw !important;
    width: auto;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
  }
}


 /* .page_header_horizontal_short_tree {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  background-color: inherit;
  padding: 1vh 1vw;
  background-color: inherit;
  animation: flyInFromLeft 0.5s ease-in-out !important;  
  overflow: hidden;
} */



.container_right_align_tree {
  height: 3vh !important;
  position: absolute;
  margin-right: 0vw;
  background-color: yellow;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  width: 100%;
}

#filename_selected_baum > div {
  padding: 0px !important;
}

#filename_selected_baum {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

#filename_selected_baum Img {
  
  height: var(--tab-img) !important;
  width: var(--tab-img) !important;

}

#tree_selected_baum Img {
  height: var(--tab-img) !important;
  width: var(--tab-img) !important;
}

#filename_selected_baum {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 15vw !important;
  overflow: hidden;

}




#tree_selected_baum {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 15vw !important;

}

/* #current_filename_baum {
  width: 20vw;
  display: flex;
  flex: row;
  justify-content: center;
  align-items: center;
} */

.custom_button_filename_tree {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  border: none;
  font-size: var(--font-size-button) !important;

  height: 100%;
  color: white;
  padding:0rem;
  margin: 0rem;
  border-radius: 0px;

  height: var(--button-height) !important;
  background-color: var(--purple-dark) !important;
  width: 25vw !important;
  white-space: nowrap;
  padding-left: calc(0.5* var(--tab-img));
  /* overflow: non; */
}

.popover_dropdown_menu_bottom_tree, .popover_dropdown_menu_bottom_tree_trees {
  width: 15vw !important;
  margin: 0rem;
  padding: 0rem;
  border-radius: 0px !important;
  background-color: var(--purple-dark) !important;
  /* overflow: hidden; */
  border-left: none;
  margin-left: calc(-0.5 * var(--tab-img)) !important;
  margin-left: 0px !important;
  /* margin-left: -1.5vw !important; */
  overflow: hidden;
}

#filename_selected_baum_popover {
  max-height: 80vh;
  overflow-x: hidden;
  overflow-y: auto;
  /* scrollbar-color: #858484 transparent; */
  scrollbar-width: var(--scrollbar-width);
}

#filename_selected_baum_popover::-webkit-scrollbar {
  width: var(--scrollbar-width) !important;
  height: var(--scrollbar-width) !important;
}




#download_cytoscape {
  margin-left: 0.5vw;
}


#tabs_explanation_decision {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;


}

.raw_rule {
  background-color: white;
  color: black;
  padding: 0.5vw;
  border-radius: var(--border-radius);
  margin-top: 0.5vw;
  word-wrap: break-word !important;
}

#tab_content {
  background-color: inherit;
  overflow-x: scroll !important;
  max-height: 90vh !important;
}
#tab_content > u, a {
  color: white !important;
}

#tab_content > div > table {
  overflow-x: scroll;
}
#tab_content > div > table > tbody > tr, #tab_content > div > table > tbody > td {
  background-color: black !important;


}

.tree_extraction_step_modal_dialog {
  --bs-modal-width: calc(var(--page-content-width) - var(--sidebar-width)) !important;
  width: calc(var(--page-content-width) - var(--sidebar-width)) !important;
  min-width: calc(var(--min-page-content-width) - var(--sidebar-width)) !important;
  max-width: calc(var(--page-content-width) - var(--sidebar-width)) !important;
}

.tree_extraction_step_modal_dialog > .modal-content,
.tree_extraction_step_modal_dialog .modal-body {
  width: 100% !important;
  max-width: 100% !important;
}

.tree_extraction_step_modal_dialog .modal-body {
  padding-left: 2vw !important;
  padding-right: 2vw !important;
    border-bottom-right-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

.tree_extraction_step_modal_dialog #title_label_basic {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

#sidebar_tree_page.offcanvas_custom {
  width: clamp(360px, 30vw, 520px) !important;
  background-color: var(--black) !important;
  border-left: var(--border-width) solid rgba(255, 255, 255, 0.16) !important;
}

#sidebar_tree_page .offcanvas-body {
  overflow: hidden !important;
}

#sidebar_tree_page #explanations_tree {
  display: flex;
  flex-direction: column;
  height: 100% !important;
  padding: 0rem !important;
  overflow: hidden !important;
  color: white;
}

#sidebar_tree_page #tabs_explanation_decision {
  flex-shrink: 0;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0.85rem 1rem 0.7rem 1rem;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.12) !important;
}

#sidebar_tree_page #tabs_explanation_decision.nav.nav-tabs {
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.12) !important;
}

#sidebar_tree_page #tabs_explanation_decision > .nav-item {
  flex: 1 1 0;
}

#sidebar_tree_page #tabs_explanation_decision > .nav-item > a {
  width: 100%;
  min-height: var(--button-height);
  display: flex;
  justify-content: center;
  align-items: center;
  border: var(--border-width) solid rgba(255, 255, 255, 0.16) !important;
  border-radius: var(--border-radius) !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: var(--font-size-button) !important;
  padding: 0rem 0.7rem !important;
}

#sidebar_tree_page #tabs_explanation_decision > .nav-item > a:hover {
  background-color: var(--purple-medium) !important;
  color: white !important;
}

#sidebar_tree_page #tabs_explanation_decision > .nav-item > .active {
  background-color: var(--purple-light) !important;
  color: white !important;
  border-color: rgba(255, 255, 255, 0.36) !important;
}

#sidebar_tree_page #tab_content {
  flex: 1 1 auto;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 1rem;
  background-color: transparent;
}

#sidebar_tree_page #tab_content p {
  margin-bottom: 0rem;
}

.tree_sidebar_header {
  padding: 0.2rem 0rem 1rem 0rem;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.9rem;
}

.tree_sidebar_kicker,
.tree_sidebar_section_title,
.tree_sidebar_field_label {
  color: rgba(255, 255, 255, 0.58);
  font-size: calc(0.82 * var(--font-size-button));
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tree_sidebar_title_row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.25rem;
}

.tree_sidebar_title {
  color: white;
  font-family: 'Manrope-SemiBold', sans-serif;
  font-size: var(--font-size-header_small);
  line-height: 1.35;
  word-break: break-word;
}

.tree_sidebar_status_badge {
  flex: 0 0 auto;
  max-width: 45%;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: calc(0.9 * var(--font-size-button));
  line-height: 1.2;
  text-align: center;
  border: var(--border-width) solid rgba(255, 255, 255, 0.22);
  color: white;
  background-color: rgba(255, 255, 255, 0.08);
}

.tree_sidebar_status_badge.positive,
.tree_sidebar_note.positive {
  background-color: rgba(218, 255, 205, 0.14);
  border-color: rgba(218, 255, 205, 0.34);
}

.tree_sidebar_status_badge.negative,
.tree_sidebar_note.negative {
  background-color: rgba(255, 235, 229, 0.14);
  border-color: rgba(255, 235, 229, 0.34);
}

.tree_sidebar_status_badge.warning,
.tree_sidebar_note.warning {
  background-color: rgba(255, 243, 205, 0.16);
  border-color: rgba(255, 243, 205, 0.34);
}

.tree_sidebar_section {
  margin-bottom: 0.85rem;
  padding: 0.85rem;
  border: var(--border-width) solid rgba(255, 255, 255, 0.11);
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.045);
}

.tree_sidebar_section_title {
  margin-bottom: 0.6rem;
}

.tree_sidebar_section_body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.tree_sidebar_note,
.tree_sidebar_empty {
  border: var(--border-width) solid rgba(255, 255, 255, 0.13);
  border-radius: var(--border-radius);
  padding: 0.7rem;
  background-color: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--font-size-body);
  line-height: 1.55;
}

.tree_sidebar_note.info {
  background-color: rgba(160, 140, 160, 0.18);
  border-color: rgba(160, 140, 160, 0.38);
}

.tree_sidebar_rule.raw_rule {
  background-color: rgba(255, 255, 255, 0.94);
  color: var(--black);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  margin-top: 0rem;
  font-size: var(--font-size-body);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.tree_sidebar_action_row {
  display: flex;
  justify-content: flex-start;
}

.tree_sidebar_action {
  min-height: var(--button-height) !important;
  color: white !important;
}

.tree_sidebar_evidence_section {
  background-color: transparent;
  padding: 0rem;
  border: none;
}

.tree_sidebar_evidence_item {
  border: var(--border-width) solid rgba(255, 255, 255, 0.13);
  border-radius: var(--border-radius);
  padding: 0.85rem;
  background-color: rgba(255, 255, 255, 0.055);
}

button.tree_sidebar_evidence_item {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
}

.tree_sidebar_evidence_item.overwritten {
  border-color: rgba(255, 243, 205, 0.34);
  background-color: rgba(255, 243, 205, 0.1);
}

.tree_sidebar_evidence_item.rule_based {
  border-color: rgba(160, 140, 160, 0.42);
  background-color: rgba(160, 140, 160, 0.14);
}

.tree_sidebar_evidence_header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.tree_sidebar_evidence_task {
  font-family: 'Manrope-SemiBold', sans-serif;
  color: white;
  line-height: 1.35;
  word-break: break-word;
}

.tree_sidebar_evidence_source {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.18rem 0.48rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-size: calc(0.82 * var(--font-size-button));
}

.tree_sidebar_evidence_source.overwritten {
  background-color: rgba(255, 243, 205, 0.18);
  color: white;
}

.tree_sidebar_evidence_source.rule_based {
  background-color: rgba(160, 140, 160, 0.24);
  color: white;
}

.tree_sidebar_field,
.tree_sidebar_answer_box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.65rem;
}

.tree_sidebar_markdown {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--font-size-body);
  line-height: 1.5;
  word-break: break-word;

}

.tree_sidebar_answer {
  padding: 0.55rem 0.65rem;
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--black);
  font-size: var(--font-size-body);
  line-height: 1.45;
  word-break: break-word;
  overflow-x: auto;
}

.tree_sidebar_answer p:last-child {
  margin-bottom: 0;
}

.tree_sidebar_answer table {
  width: 100%;
  border-collapse: collapse;
  /* color: var(--black); */
  word-break: normal;
}

.tree_sidebar_markdown table tr,
.tree_sidebar_markdown table tr:nth-child(even),
.tree_sidebar_answer table tr,
.tree_sidebar_answer table tr:nth-child(even),
.tree_sidebar_details_content table tr,
.tree_sidebar_details_content table tr:nth-child(even) {
  background-color: transparent !important;
}

.tree_sidebar_answer th,
.tree_sidebar_answer td {
  /* border: 1px solid rgba(55, 20, 55, 0.18); */
  padding: 0.35rem 0.45rem;
  text-align: left;
  vertical-align: top;
}

.tree_sidebar_answer th {
  /* background-color: rgba(95, 65, 95, 0.12); */
  font-weight: 700;
}

.tree_sidebar_details_content {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-body);
  line-height: 1.55;
  word-break: break-word;
}

.tree_sidebar_details_content table {
  width: 100%;
  color: white;
}

/* @media (max-width: 800px) {
  #sidebar_tree_page.offcanvas_custom {
    width: min(92vw, 520px) !important;
  }

  .tree_sidebar_title_row,
  .tree_sidebar_evidence_header {
    flex-direction: column;
  }

  .tree_sidebar_status_badge {
    max-width: 100%;
  }
} */
