/*
 * Final, complete and corrected Tree View CSS
 * Directly from the working test.html, with colors adapted for the light theme.
 */

ul.list *,
ul.list *:before,
ul.list *:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul.list,
ul.list ul {
  margin:0;
  padding:0;
  list-style-type: none;
}

ul.list ul {
  position:relative;
  margin-left:10px;
}

ul.list ul:before {
  content:"";
  display:block;
  position:absolute;
  top:0;
  left:0;
  bottom:0;
  width:0;
  border-left:1px solid #ccc;
}

ul.list li  {
  position:relative;
  margin:0;
  padding:3px 12px;
  text-decoration: none;
  text-transform: uppercase;
  font-size:13px;
  font-weight:normal;
  line-height:20px;
}

ul.list li a {
  position:relative;
  color:#333;
  text-decoration: none;
  text-transform: uppercase;
  font-size:14px;
  font-weight:bold;
  line-height:20px;
}

ul.list li a:hover,
ul.list li a:hover+ul li a {
  color: #007bff;
}

ul.list ul li:before {
  content:"";
  display:block;
  position:absolute;
  top:10px;
  left: 0;
  width:8px;
  height:0;
  border-top:1px solid #ccc;
}

ul.list ul li:last-child:before {
  top: 10px;
  bottom: 0;
  height: auto;
  background: #fff; /* Use theme background to hide line */
}
