pragma-treeview{
  position: relative;
  width: 100%;
  height: 100%;
  display: block;

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

  .toolbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2rem;
    display: flex;
    align-items: center;

    input[type=checkbox] {
      display: block;
      width: 1.5rem;
      height: 1.5rem;
    }

    button {
      display: block;
      width: 1.5rem;
      height: 1.5rem;
    }
  }

  .body {
    position: absolute;
    top: 2rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: whitesmoke;
  }

  ul[role="tree"] {
    width: 100%;
    height: 100%;
    transform: translateZ(0);
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
  }

  li {
    cursor: pointer;
    line-height: 1.5rem;
    padding-left: 2rem;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    white-space: nowrap;
  }

  li:before {
    content: "";
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 16px solid var(--color-brand-dark);

    position: absolute;
    will-change: transform;
    transform: translate(-1.2rem, 0.2rem) rotate(90deg);
    transition: all 0.5s ease-out;
  }

  li[aria-expanded="true"]:before {
    transform: translate(-1.2rem, 0.2rem) rotate(180deg);
  }

  [aria-hidden="true"] {
    display: none;
  }

  [aria-hidden="false"] {
    display: block;
  }

  [aria-selected=true]::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    z-index: -1;
    height: 1.5rem;
    background: skyblue;
  }

  span {
    display: inline-block;
  }
}

.treeViewItem {
  @include no-mouse();
}
