/* collapsible tree */
.tree {
  border-radius: 4px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05) 0 1px #000000;
  -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05) 0 1px #000000;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05) 0 1px #000000;
  background-color: #fbfbfb;
  /*border: 1px solid #777777;*/
  margin-bottom: 10px;
  /*max-height: 300px;*/
  min-height: 20px;
  overflow-y: auto;
  padding: 19px;
  /*Remove connectors before root*/
}
.tree a {
  display: inline;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 90%;
}
.tree li {
  list-style-type: none;
  margin: 0px 0;
  padding: 4px 0px 0px 2px;
  position: relative;
  /*Remove connectors after last child*/
}
.tree li::before,
.tree li::after {
  content: '';
  left: -20px;
  position: absolute;
  right: auto;
}
.tree li::before {
  border-left: 1px solid #777777;
  bottom: 50px;
  height: 100%;
  top: 0;
  width: 1px;
  -webkit-transition: "border-color 0.1s ease 0.1s";
  -moz-transition: "border-color 0.1s ease 0.1s";
  -o-transition: "border-color 0.1s ease 0.1s";
  transition: "border-color 0.1s ease 0.1s";
}
.tree li::after {
  border-top: 1px solid #777777;
  height: 20px;
  top: 13px;
  width: 23px;
  -webkit-transition: "border-color 0.1s ease 0.1s";
  -moz-transition: "border-color 0.1s ease 0.1s";
  -o-transition: "border-color 0.1s ease 0.1s";
  transition: "border-color 0.1s ease 0.1s";
}
.tree li span {
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  /*border: 1px solid #777777;*/
  border-radius: 5px;
  display: inline-block;
  line-height: 14px;
  padding: 2px 4px;
  text-decoration: none;
  -webkit-transition: color 0.2s ease 0.1s, background-color 0.2s ease 0.1s, border-color 0.3s ease 0.2s;
  -moz-transition: color 0.2s ease 0.1s, background-color 0.2s ease 0.1s, border-color 0.3s ease 0.2s;
  -o-transition: color 0.2s ease 0.1s, background-color 0.2s ease 0.1s, border-color 0.3s ease 0.2s;
  transition: color 0.2s ease 0.1s, background-color 0.2s ease 0.1s, border-color 0.3s ease 0.2s;
}
.tree li.parent_li > span {
  cursor: pointer;
  /*Time for some hover effects*/
}
.tree li.parent_li > span:hover {
  background-color: #df8505;
  /*border: 1px solid #c67605;*/
  color: #fff;
}
.tree li.parent_li > span:hover + ul li::after {
  border-top-color: #f89406;
}
.tree li.parent_li > span:hover + ul li::before {
  border-left-color: #f89406;
}
.tree li.parent_li > span:hover + ul li span {
  background: #fddfb3;
  /*border: 1px solid #faa937;*/
  color: #000;
}
.tree li:last-child::before {
  height: 30px;
}
.tree > ul > li::before,
.tree > ul > li::after {
  border: 0;
}
