//@import "~antd/dist/antd.less";
@import "../style/themes/default";

@marginOrgAndChildren: 15px;
@marginOrgsChildren: 10px;
@marginListsChildren: 10px;
@marginListAndChildren: 10px;
@listViewLeftOffset: 20px;

/* this gets rid of rectangle selection in Chrome */
*:focus {
  outline: 0;
}

.hierarchyChart {
  /* Helper, comment out once happy with layout */
  /*   border: 2px solid red; */
  background-color: inherit;
  padding: 10px;

  display: flex;
  justify-content: center;
  font-family: helvetica;
  line-height: 1.5;

  /* Aligns all the blocks to the top */
  * {
    vertical-align: top;
  }

  /* Cancels the default ol settings  */
  ol {
    list-style-type: none;
    padding-left: 0px;
  }

  .orgView {
    /* Helper, comment out once happy with layout */
    // border: 2px solid grey;
    // background-color: lightgrey;

    display: inline-flex;
    flex-direction: column;
    align-items: center;

    /* Displays the children nodes of an orgView as blocks (horizontally) */
    > input:checked ~ ol > li {
      display: inline-flex;
    }

    > ol {
      margin-top: @marginOrgAndChildren;
      display: inline-flex;
      > li ~ li {
        margin-left: @marginOrgsChildren;
      }
    }
  }

  /* Helper, comment out once happy with layout */
  .listView {
    // border: 2px solid green;
    // background-color: #f2f2f2;

    display: block;
    justify-content: left;

    .listView {
      margin-left: @listViewLeftOffset;
    }

    > input:checked ~ ol > li {
      display: flex; /* was block before, in case of issues*/
    }

    > ol {
      margin-top: @marginListAndChildren;
      > li ~ li {
        margin-top: @marginListsChildren;
      }
    }
  }
}
