//.custom-select {
//    $caret :                                                url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1792'%3E%3Cpath fill='#{$gray-800}' d='M1024 704q0 26-19 45l-448 448q-19 19-45 19t-45-19l-448-448q-19-19-19-45t19-45 45-19h896q26 0 45 19t19 45z'/%3E%3C/svg%3E");
//
//    background-image:                                       $caret !important;
//    background-size:                                        $font-size-base * 0.6;
//    padding-right:                                          $font-size-base * 1.6 !important;
//  }
.genealogy {
  .genealogy-sub-title {
    font-size: $genealogy-sub-title-font-size;
    display: inline-block;
    line-height: 50px;
    padding-left: 20px;
  }

  .genealogy-main-container {
    padding-top: 20px;
    padding-bottom: 0px;
    padding-left: 10px !important;
    padding-right: 10px !important;
    background-color: #e9ecef;
  }
  .genealogy-main-wrapper {
    padding-left:10px;
    padding-right:10px;
  }
  .genealogy-base-container {
    background-color: #ffffff;
    padding: 5px;
    margin-bottom: 20px;
  }
  .genealogy-search-container {
    height:50px;
    position: relative;
  }
  .genealogy-search-left {
    display: inline-block;
    font-size: 0.9rem;
  }
  .genealogy-search-right{
    display: inline-block;
    position: absolute;;
    right: 0px;
  }
  .genealogy-search-right-group {
    display: flex;
    margin-right:10px;
    margin-top:10px;
  }
  .genealogy-search-right-display {
    font-size: 0.9rem;
    line-height:28px;
  }
  .genealogy-search-right-depth {
    width:120px;
  }
  .genealogy-search-right-member {
    width:200px;
  }

  .genealogy-busy-icon-container {
    height:100%;
    text-align: center;
  }
  .genealogy-busy-icon-align {
    vertical-align: middle;
    display: inline-block;
    height: 100%;
  }
  .genealogy-busy-icon-content {
    vertical-align: middle;
  }

  .genealogy-back-icon-container {
    height: 25px;
    width: 25px;
    border: none;
    text-align: center;
    border-radius: 25px;
    border: 1px solid #ff8ec1;
    background-color: #ffffff;
    color: #ff8ec1;
    line-height: 25px;
    display: inline-block;
    cursor: pointer;
    vertical-align: middle;
  }
  .genealogy-back-icon-content {
    height: 100%;
  }

  .genealogy-tree-base-container {
    height:75vh;
    overflow:auto;
  }

  .genealogy-tree-base-wrapper {
    display: inline-block;
  }



  .genealogy-tree-item-container {
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .genealogy-tree-child-container {
    padding-left: 25px;
  }

  .genealogy-tree-item-content {
    font-size: 0.8rem;
    white-space: nowrap;
    height:30px;
  }

  .genealogy-tree-item-content:hover {
    background-color: #d0d0d0;
  }

  .genealogy-tree-item-left {
    display:inline-block;
    vertical-align: middle;
    padding-left: 5px;
    padding: 2px;
  }
  .genealogy-tree-item-left-group {
    display: flex;
  }
  .genealogy-tree-item-right {
    vertical-align: middle;
    padding-right: 5px;
    padding: 2px;
    float: right;
  }
  .genealogy-tree-item-right-group {
    display: flex;
  }

  .genealogy-tree-icon-expand {
    height: 25px;
    width: 25px;
    text-align: center;
    line-height: 25px;
    cursor: pointer;
  }
  .genealogy-tree-icon-collapse {
    height: 25px;
    width: 25px;
    text-align: center;
    line-height: 25px;
    cursor: pointer;
  }
  .genealogy-tree-icon-blank {
    height: 25px;
    width: 25px;
  }

  .genealogy-tree-icon-status-user-container {
    height: 25px;
    width: 25px;
  }
  .genealogy-tree-icon-status-user {
    height: 25px;
    width: 25px;
    fill: #16428b !important;
  }

  .genealogy-tree-icon-status-active {
    height: 25px;
    width: 25px;
    border: none;
    text-align: center;
    border-radius: 25px;
    background-color: #57d816;
    color: #ffffff;
    line-height: 25px;
  }
  .genealogy-tree-icon-status-inactive {
    height: 25px;
    width: 25px;
    border: none;
    text-align: center;
    border-radius: 25px;
    background-color: #e8373a;
    color: #ffffff;
    line-height: 25px;
  }
  .genealogy-tree-icon-status-other {
    height: 25px;
    width: 25px;
    border: none;
    text-align: center;
    border-radius: 25px;
    background-color: #8c8c8c;
    color: #ffffff;
    line-height: 25px;
  }

  .genealogy-tree-item-member-user {
    padding-left: 3px;
    line-height: 25px;
    color: #000000;
    cursor: pointer;
  }

  .genealogy-tree-item-member-active {
    padding-left: 3px;
    line-height: 25px;
    color: #000000;
    cursor: pointer;
  }

  .genealogy-tree-item-member-inactive {
    padding-left: 3px;
    line-height: 25px;
    color: #8c8c8c;
    cursor: pointer;
  }

  .genealogy-tree-item-member-other {
    padding-left: 3px;
    line-height: 25px;
    color: #000000;
    cursor: pointer;
  }

  .genealogy-tree-item-member-selected {
    background-color: #ffff7e;
  }

  .genealogy-tree-item-direct-downline {
    background-color: #f2528d;
    color: #ffffff;
    padding: 3px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .genealogy-tree-item-total-downline {
    background-color: #029dd6;
    color: #ffffff;
    padding: 3px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .genealogy-tree-item-highest-rank {
    background-color: #0892a0;
    color: #ffffff;
    padding: 3px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .genealogy-tree-item-expiry-date {
    background-color: #08b363;
    color: #ffffff;
    padding: 3px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .genealogy-tree-item-left-downline {
    background-color: #ff7900;
    color: #ffffff;
    padding: 3px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .genealogy-tree-item-right-downline {
    background-color: #726a63;
    color: #ffffff;
    padding: 3px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .genealogy-legend-wrapper {
    padding-left:10px;
    padding-right:10px;
  }
  .genealogy-legend-detail-container {
    background-color: #ffffff;
    margin-bottom: 20px;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  .genealogy-legend-status-container {
    background-color: #ffffff;
    margin-bottom: 20px;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .genealogy-legend-label {
    font-size: 0.8rem;
    color: #666666;
    margin-top: 7px;
    margin-bottom: 7px;
  }
  .genealogy-legend-value {
    font-size: 0.8rem;
    color: #000000;
    margin-top: 7px;
    margin-bottom: 7px;
    display: inline-block;
    text-transform: uppercase;
  }
  .genealogy-legend-click {
    cursor: pointer;
  }

  .genealogy-legend-expiry-holder {
    height: 20px;
    width: 20px;
    border-radius: 20px;
    background-color: #57d816;
    text-align: center;
    display: inline-block;
  }
  .genealogy-legend-expiry-icon {
    fill: #ffffff !important;
    height: 10px;
    width: 10px;
    position: relative;
    top: -2px;
  }

  .genealogy-legend-icon-direct-downline {
    height: 20px;
    width: 20px;
    border: none;
    background-color: #f2528d;
    margin-top: 7px;
    margin-bottom: 7px;
  }
  .genealogy-legend-icon-total-downline {
    height: 20px;
    width: 20px;
    border: none;
    background-color: #029dd6;
    margin-top: 7px;
    margin-bottom: 7px;
  }
  .genealogy-legend-icon-highest-rank {
    height: 20px;
    width: 20px;
    border: none;
    background-color: #0892a0;
    margin-top: 7px;
    margin-bottom: 7px;
  }
  .genealogy-legend-icon-expiry-date {
    height: 20px;
    width: 20px;
    border: none;
    background-color: #08b363;
    margin-top: 7px;
    margin-bottom: 7px;
  }
  .genealogy-legend-icon-left-downline {
    height: 20px;
    width: 20px;
    border: none;
    background-color: #ff7900;
    margin-top: 7px;
    margin-bottom: 7px;
  }
  .genealogy-legend-icon-right-downline {
    height: 20px;
    width: 20px;
    border: none;
    background-color: #726a63;
    margin-top: 7px;
    margin-bottom: 7px;
  }
  .genealogy-legend-icon-active-status {
    height: 20px;
    width: 20px;
    border: none;
    border-radius: 20px;
    background-color: #57d816;
    margin-top: 7px;
    margin-bottom: 7px;
  }
  .genealogy-legend-icon-inactive-status {
    height: 20px;
    width: 20px;
    border: none;
    border-radius: 20px;
    background-color: #e8373a;
    margin-top: 7px;
    margin-bottom: 7px;
  }
  .genealogy-legend-icon-other-status {
    height: 20px;
    width: 20px;
    border: none;
    border-radius: 20px;
    background-color: #8c8c8c;
    margin-top: 7px;
    margin-bottom: 7px;
  }

  .genealogy-legend-item-direct-downline {
    color: #f2528d;
    margin-top: 7px;
    margin-bottom: 7px;
    margin-left: 10px;
    font-size: 0.8rem;
  }
  .genealogy-legend-item-total-downline {
    color: #029dd6;
    margin-top: 7px;
    margin-bottom: 7px;
    margin-left: 10px;
    font-size: 0.8rem;
  }
  .genealogy-legend-item-highest-rank {
    color: #0892a0;
    margin-top: 7px;
    margin-bottom: 7px;
    margin-left: 10px;
    font-size: 0.8rem;
  }
  .genealogy-legend-item-expiry-date {
    color: #08b363;
    margin-top: 7px;
    margin-bottom: 7px;
    margin-left: 10px;
    font-size: 0.8rem;
  }
  .genealogy-legend-item-left-downline {
    color: #ff7900;
    margin-top: 7px;
    margin-bottom: 7px;
    margin-left: 10px;
    font-size: 0.8rem;
  }
  .genealogy-legend-item-right-downline {
    color: #726a63;
    margin-top: 7px;
    margin-bottom: 7px;
    margin-left: 10px;
    font-size: 0.8rem;
  }
  .genealogy-legend-item-active-status {
    color: #000000;
    margin-top: 7px;
    margin-bottom: 7px;
    margin-left: 10px;
    font-size: 0.8rem;
  }
  .genealogy-legend-item-inactive-status {
    color: #000000;
    margin-top: 7px;
    margin-bottom: 7px;
    margin-left: 10px;
    font-size: 0.8rem;
  }
  .genealogy-legend-item-other-status {
    color: #8c8c8c;
    margin-top: 7px;
    margin-bottom: 7px;
    margin-left: 10px;
    font-size: 0.8rem;
  }

  .genealogy-legend-label-status {
    font-size: 0.8rem;
  }

  .genealogy-legend-horizontal-rule {
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .genealogy-pnp-table-alternate-column {
    background-color: $genealogy-alternate-column-color;
  }

  .genealogy-pnp-table-align-left {
    text-align: left;
  }
  .genealogy-pnp-table-align-center {
    text-align: center;
  }
  .genealogy-pnp-table-align-right {
    text-align: right;
  }

  .genealogy-pnp-legend-close {
    text-align: right;
  }

  .genealogy-pnp-legend-label {
    text-align: left;
    font-size: 0.9rem;
    font-weight: bold;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .genealogy-pnp-legend-value {
    text-align: left;
    font-size: 0.9rem;
    font-weight: normal;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .genealogy-php-close-icon-container {
    height: 25px;
    width: 25px;
    border: none;
    text-align: center;
    border-radius: 25px;
    border: 1px solid #ff8ec1;
    background-color: #ffffff;
    color: #ff8ec1;
    line-height: 25px;
    display: inline-block;
    cursor: pointer;
    vertical-align: middle;
  }
  .genealogy-php-close-icon-content {
    height: 100%;
  }

  .filter-holder {
    padding: 8px;
    margin: 10px 0px 10px 0px;
  }
  .placement-network-tree {
    #memberTreeDiagram {
      background-color: #EDF0F5;
    }
    .node {
      cursor: pointer;
      border: 0px;
      border-radius: 8px;
      z-index: 999;
      stroke-width: 1.5px;
      .rect {
        z-index: 1099;
        &.hover {
          fill: #fff;
          stroke: steelblue;
          stroke-width: 1px;
          border: 1px solid steelblue;
        }
      }
      .circle {
        stroke: steelblue;
        stroke-width: 1.5px;
      }

      .text {
        font: 10px sans-serif;
        font-weight: 600;
      }
      .flag {
        background: #cccccc !important;
        color: #ffffff !important;
        white-space: normal;
      }
    }
    .link {
      fill: none;
      stroke: #ccc;
      stroke-width: 1px;
    }

    .about {
      &.name {
        fill: #a0a0a0;
        font: 10px sans-serif;
        font-weight: 500;
      }
      &.code {
        fill: #181919;
        font: 11px sans-serif;
        font-weight: bold;
      }
    }

    .tooltip {
      // top: 324px !important;
      opacity: 0;
      position: fixed;
      text-align: left;
      width: 300px;
      padding: 10px;
      font: 11px sans-serif;
      background: #fff;
      border-radius: 7px;
      box-shadow: 0 0 6px #ccc;
      border: 1px solid #d6d6d6 !important;
      pointer-events: none;
      z-index: 3163;
      .member-details {
        width: 100%;
        float: left;
        div {
          margin-bottom: 15px;

          @include media-breakpoint-down(md) {
            margin-bottom: 0px;
          }
        }
      }
    }

    .member-hover-details {
      margin: 5px;
    }
    span {
      &.member-label {
        width: 52%;
        text-align: left;
        padding-right: 10px;
      }
      &.member-label-data {
        width: 46%;
        float: right;
        font-weight: bold;
        text-transform: uppercase;
      }
    }
  }
  .popover {
    top: 200px;
    left: 21px;
    opacity: 1;
  }
  .list-group {
    max-height: 200px;
    overflow: auto;
    .list-group-item {
      &:hover {
        background: $gray-400;
      }
    }
  }

  .genealogy-gradient-container {
    background: radial-gradient(ellipse at bottom, #5091DD 0%, #071241 100%);
  }

  .genealogy-scroll-up-button {
    position: absolute;
    bottom: 54px;
    right: 106px;
  }
}
