/*!
 * jQuery ComboTree Plugin 
 * Author:  Erhan FIRAT
 * Mail:    erhanfirat@gmail.com
 * Licensed under the MIT license
 * Version: 1.2.1
 */

:root {
  --ct-bg: #fff;
  --ct-btn-hover: #e8e8e8;
  --ct-btn-active: #ddd;
  --ct-btn-color: #555;
  --ct-border-color: #e1e1e1;
  --ct-border-radius: 5px;
  --ct-tree-hover: #efefef;
  --ct-selection: #418eff;
  --ct-padding: 8px;
}

.combo-tree-wrapper {
  position: relative;
  text-align: left !important;
}

.combo-tree-input-wrapper {
  position: relative;
}

.combo-tree-arrow-btn {
  position: absolute;
  right: 0px;
  bottom: 0px;
  top: 0px;
  box-sizing: border-box;
  border: 1px solid var(--ct-border-color);
  border-radius: 0 var(--ct-border-radius) var(--ct-border-radius) 0;
  background: var(--ct-border-color);
  cursor: pointer;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+/Edge */
  user-select: none; /* Standard */
}
.combo-tree-arrow-btn:hover {
  background: var(--ct-btn-hover);
}
.combo-tree-arrow-btn:active {
  background: var(--ct-btn-active);
}
.combo-tree-input-box:focus + .combo-tree-arrow-btn {
  color: var(--ct-btn-color);
  border-top: 1px solid var(--ct-selection);
  border-right: 1px solid var(--ct-selection);
  border-bottom: 1px solid var(--ct-selection);
}

.combo-tree-arrow-btn-img {
  font-size: 1.25rem;
}

.combo-tree-drop-down-container {
  display: none;
  background: var(--ct-bg);
  border: 1px solid var(--ct-border-color);
  position: absolute;
  width: 100%;
  box-sizing: border-box;
  z-index: 999;
  max-height: 250px;
  overflow-y: auto;
}

.combo-tree-drop-down-container ul {
  padding: 0px;
  margin: 0;
}

.combo-tree-drop-down-container li {
  list-style-type: none;
  padding-left: 15px;
}

.combo-tree-drop-down-container li .selectable {
  cursor: pointer;
}

.combo-tree-drop-down-container li .not-selectable {
  cursor: not-allowed;
}

.combo-tree-drop-down-container li:hover {
  background-color: var(--ct-tree-hover);
}
.combo-tree-drop-down-container li:hover ul {
  background-color: var(--ct-bg);
}
.combo-tree-drop-down-container
  li
  span.combo-tree-list-item-title.comboTreeItemHover,
.combo-tree-drop-down-container label.comboTreeItemHover {
  background-color: var(--ct-selection);
  color: var(--ct-bg);
  border-radius: 2px;
}

span.combo-tree-list-item-title,
.combo-tree-drop-down-container .selectAll {
  display: block;
  padding: 3px var(--ct-padding);
}
.combo-tree-drop-down-container label {
  cursor: pointer;
  width: 100%;
  display: block;
}
.combo-tree-drop-down-container .combo-tree-list-item-title input,
.combo-tree-drop-down-container .selectAll input {
  position: relative;
  top: 2px;
  margin: 0px 4px 0px 0px;
}
.combo-tree-parent-plus {
  position: relative;
  left: -12px;
  top: 4px;
  width: 4px;
  float: left;
  cursor: pointer;
}

.combo-tree-input-box {
  padding: var(--ct-padding);
  border-radius: var(--ct-border-radius);
  border: 1px solid var(--ct-border-color);
  width: 100%;
  box-sizing: border-box;
  padding-right: 24px;
}
.combo-tree-input-box:focus {
  border: 1px solid var(--ct-selection);
  outline-width: 0;
}

.multiples-filter {
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid var(--ct-border-color);
}
