.treejs {
  box-sizing: border-box;
  font-size: 14px;
  color: #333;
}
.treejs *:after,
.treejs *:before {
  box-sizing: border-box;
}
.treejs-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}
.treejs-toolbar .treejs-toolbar-left-controls {
  flex-grow: 1;
}
.treejs-toolbar .treejs-search-input {
  padding: 6px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
  min-width: 180px;
  max-width: 300px;
}
.treejs-toolbar .treejs-search-input:focus {
  outline: none;
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}
.treejs-toolbar .treejs-toolbar-right-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.treejs-toolbar .treejs-toggler-button {
  padding: 4px 6px;
  cursor: pointer;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
}
.treejs-toolbar .treejs-toggler-button:hover:not(:disabled) {
  background-color: #5a6268;
}
.treejs-toolbar .treejs-toggler-button:disabled {
  background-color: #f5f5f5;
  color: rgba(0, 0, 0, 0.25);
  cursor: not-allowed;
  opacity: 0.65;
}
.treejs-toolbar .treejs-toggler-button .material-symbols-outlined {
  font-size: 20px;
  vertical-align: middle;
}
.treejs-nodes {
  list-style: none;
  margin: 0;
  overflow: hidden;
  transition: height 150ms ease-out, opacity 150ms ease-out;
  padding-left: 20px;
}
.treejs > .treejs-nodes {
  padding-left: 0;
}
.treejs-node {
  line-height: 20px;
  position: relative;
}
.treejs > .treejs-nodes > .treejs-node.treejs-placeholder {
  padding-left: 20px;
}
.treejs-switcher {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  cursor: pointer;
  position: relative;
  transition: transform 150ms ease-out;
}
.treejs-switcher:before {
  position: absolute;
  top: 8px;
  left: 6px;
  display: block;
  content: ' ';
  border: 4px solid transparent;
  border-top: 4px solid rgba(0, 0, 0, 0.4);
  transition: border-color 150ms;
}
.treejs-switcher:hover:before {
  border-top: 4px solid rgba(0, 0, 0, 0.65);
}
.treejs-checkbox {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  cursor: pointer;
  position: relative;
}
.treejs-checkbox:before {
  transition: all 0.3s;
  cursor: pointer;
  position: absolute;
  top: 2px;
  left: 2px;
  content: ' ';
  display: block;
  width: 16px;
  height: 16px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
}
.treejs-node:not(.treejs-node__disabled) > .treejs-checkbox:hover:before {
  box-shadow: 0 0 2px 1px #1890ff;
}
.treejs-node__close > .treejs-switcher {
  transform: rotate(-90deg);
}
.treejs-node__close > .treejs-nodes {
  height: 0;
}
.treejs-node__checked > .treejs-checkbox:before {
  background-color: #1890ff;
  border-color: #1890ff;
}
.treejs-node__checked > .treejs-checkbox:after {
  position: absolute;
  content: ' ';
  display: block;
  top: 5px;
  left: 8px;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.treejs-node__halfchecked > .treejs-checkbox:before {
  background-color: #1890ff;
  border-color: #1890ff;
}
.treejs-node__halfchecked > .treejs-checkbox:after {
  position: absolute;
  content: ' ';
  display: block;
  top: 9px;
  left: 5px;
  width: 10px;
  height: 2px;
  background-color: white;
}
.treejs-node__disabled {
  color: rgba(0, 0, 0, 0.25);
}
.treejs-node__disabled > .treejs-label {
  cursor: not-allowed;
}
.treejs-node__disabled > .treejs-checkbox {
  cursor: not-allowed;
}
.treejs-node__disabled > .treejs-checkbox:before {
  cursor: not-allowed;
  border-color: #d9d9d9 !important;
  background-color: #f5f5f5 !important;
}
.treejs-node__disabled > .treejs-checkbox:hover:before {
  box-shadow: none !important;
}
.treejs-node__disabled.treejs-node__checked > .treejs-checkbox:after {
  border-color: #d9d9d9;
}
.treejs-node__disabled.treejs-node__halfchecked > .treejs-checkbox:after {
  background-color: #d9d9d9;
}
.treejs-label {
  vertical-align: middle;
  cursor: pointer;
  padding-left: 4px;
}

