/*
https://codepen.io/wappsify/pen/zYojJOx
*/
.tree-view-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns items within to the left */
    justify-content: flex-start; /* Keeps the menu at the top */
    margin: auto;
    font-family: sans-serif;
    max-width: 350px;
    width: 100%; /* Ensures it spans full width if needed */
    align-self: flex-start; /* Aligns the entire menu to the left of the parent */
  }
  
  .tree-view-wrapper * {
    box-sizing: border-box;
  }
  
  .tree-view-wrapper > details {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .tree-view-wrapper > details > summary {
    color: white;
    padding: 8px;
    background-color: #79bcfa;
    border: 1px solid #174378;
    border-radius: 3px;
    cursor: pointer;
  }
  
  .tree-view-wrapper > details > summary::-webkit-details-marker {
    margin-right: 14px;
  }
  
  .tree-view-wrapper > details > details {
    margin: 5px 0;
    margin-left: 15px;
    position: relative;
  }
  
  .tree-view-wrapper > details > details::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -10px;
    width: 1px;
    height: calc(36px + 10px);
    background-color: #dfd6c7;
  }
  
  .tree-view-wrapper > details > details:last-child::after {
    height: calc(36px / 2 + 5px);
  }
  
  .tree-view-wrapper > details > details::before {
    content: "";
    position: absolute;
    top: calc(36px / 2);
    left: -10px;
    width: 8px;
    height: 1px;
    background-color: #f0520e;
  }
  
  .tree-view-wrapper > details > details[open]:not(:last-child)::after {
    height: calc(100% + 5px);
  }
  
  .tree-view-wrapper > details > details > summary {
    color: white;
    padding: 8px;
    background-color: #79bcfa;
    border: 1px solid #174378;
    border-radius: 3px;
    cursor: pointer;
  }
  
  .tree-view-wrapper > details > details > details {
    margin: 5px 0;
    margin-left: 15px;
    position: relative;
  }
  
  .tree-view-wrapper > details > details > details::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -10px;
    width: 1px;
    height: calc(28px + 10px);
    background-color: #c7d3df;
  }
  
  .tree-view-wrapper > details > details > details:last-child::after {
    height: calc(28px / 2 + 5px);
  }
  
  .tree-view-wrapper > details > details > details::before {
    content: "";
    position: absolute;
    top: calc(28px / 2);
    left: -10px;
    width: 8px;
    height: 1px;
    background-color: #c7d3df;
  }
  
  .tree-view-wrapper > details > details > details > summary {
    margin: 5px 0;
    padding: 5px 10px;
    background-color: #dfe7ec;
    border: 1px solid #c7d3df;
    border-radius: 3px;
    color: #545f69;
    position: relative;
  }
  
  .tree-view-wrapper > details > details > details > summary span {
    color: #041320;
  }
  
  .tree-view-wrapper ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
  
  .tree-view-wrapper li {
    margin: 5px 0;
    padding: 5px 10px;
    background-color: #ecdfdf;
    border: 1px solid #c7d3df;
    border-radius: 3px;
    color: #545f69;
    position: relative;
    margin-left: 15px;
  }
  
  .tree-view-wrapper li::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -10px;
    width: 1px;
    height: calc(28px + 10px);
    background-color: #dfc7c7;
  }
  
  .tree-view-wrapper li:last-child::after {
    height: calc(28px / 2 + 5px);
  }
  
  .tree-view-wrapper li::before {
    content: "";
    position: absolute;
    top: calc(28px / 2);
    left: -10px;
    width: 8px;
    height: 1px;
    background-color: #c7d3df;
  }
  