/*--------------------- tree ----------------------*/
.tree-body {
  white-space: nowrap;
  overflow-y: hidden;
  min-height: 300px;
  padding: 0 0 30px 0;
  margin: 0;
  background: #f7f7f7;
}
.tree {
  padding: 0 50px 80px 80px; /* leave space for tooltips */
  width:  max-content;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 990;
  margin: 0 auto;
}
/*  full tree  */
.tree ul {
  position: relative;
  display: flex;
  padding: 16px 15px 0 0;
  margin: 0;
}
/*  member  */
.tree li {
  float: left;
  text-align: center;
  position: relative;
  padding: 20px 0 0 5px;  /* between generation */
  list-style-type: none;
}
/*  horizontal between generations  */
.tree li::before,
.tree li::after {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 1px solid var(--dark-border);
  width: 50%;
  height: 19px;

  height: 29px;     /* zzz */
  top: -10px;
}
/* vertical line between gens */
/* vertical line on top of 1st - nth boxes */
.tree li::after {
  right: auto;
  left: 50%;
  border-left: 1px solid var(--dark-border);
}
.tree li:only-child {
  padding-top: 0;
  padding-top: 20px;           /* zzz checked */
} /* quang */
.tree li:only-child::after,
.tree li:only-child::before {
  display: none;
}
.tree li:first-child {
  margin: 0;
} /* quang */
.tree li:first-child::before,
.tree li:last-child::after {
  border: 0 none;
}
/* vertical line on top of last box */
.tree li:last-child::before {
  border-right: 1px solid var(--dark-border);
  border-radius: 0 8px 0 0;
}
/* corner link between generations */
.tree li:first-child::after {
  border-radius: 8px 0 0 0;
}
/* vertical lines between generations */
.tree ul ul::before {
  content: "";
  position: absolute;
  left: 50%;
  border-left: 1px solid var(--dark-border);
  width: 0;

  height: 48px;
  top: -42px;
}
@media print {
  .tree ul ul::before {
    height: 18px;
    top: -12px;
  }
}
/* link under icons */
.tree li a {
  text-decoration: none;
  color: #666;
  color: var(--v-text);
  font: 11px arial, verdana, tahoma;
  display: inline-block;
  border-radius: 5px;
}
/* hover highlight links of the entire subtree */
.tree li a:hover + ul li::after,
.tree li a:hover + ul li::before,
.tree li a:hover + ul::before,
.tree li a:hover + ul ul::before {
  border-color: red;      /* no effect */
}

/*----------------  member-view  ----------------*/
.member-view-box,
.member-view-box-single {
  text-align: center;
  border-radius: 8px;
  position: relative;
  float: right;
  margin: 0 0 -7px 0;
  background: #f7f7f7;

  border: 10px solid transparent;      /* frame width */
  border-image: url(/gia_pha/img/borders/fg_03.png) 30 stretch;
  background-color: var(--v-beige);
  padding: 0;

  margin: 0 0 2px 0;      /* horizontal gap between boxes */
  margin: 0 0 0px 0;      /* horizontal gap between boxes */
  min-width: 100px;
  min-width: 60px;
}
.member-view-box-single {
  height: auto;
  width: auto;
  margin: 0 0 0 3px;       /* vertical gap between boxes */
  margin: 0 0 0 -2px;      /* vertical gap between boxes */
  min-width: 100px;
  min-width: 60px;
}

/*  icon   */
.member-image {
  width: 60px;
  position: relative;
  display: inline;
}
.member-image img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  background: inherit;
  z-index: 1;
  margin: 0 1px 1px 0;
  display: inline;
}
.member-details {
  padding: 0;
  margin: 0 auto;
}

.enlarge, .enlarge50, .enlarge100, .enlarge200, .enlarge300, .enlarge400, .enlarge500 {
  padding: 0;
  transform: scale(1);
  display: inline;
  margin: 0 auto;
}

@media print {
  .enlarge, .enlarge50, .enlarge100, .enlarge200, .enlarge300, .enlarge400, .enlarge500 {
    padding: 150px 0 150px 0;
    display: inline;
  }
  .enlarge50 {
    transform: scale(1);
  }
  .enlarge100 {
    transform: scale(2);
  }
  .enlarge200 {
    transform: scale(3);
  }
  .enlarge300 {
    transform: scale(4);
  }
  .enlarge400 {
    transform: scale(5);
  }
  .enlarge500 {
    transform: scale(6);
  }
}