.node-template {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.node-frame {
    border-image-source: url("assets/media/frame/wood_frame.jpg");
    border-image-slice: 70;
    border-image-repeat: stretch;
    border-style: solid;
    border-width: 22px;
    height: 270px;
    width: 200px;
    /* padding: 10px 20px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    background: #FFF;
}

.node-lg {
    border-width: 10px;
    height: 155px;
    width: 130px;
}

.node-lg .img-border {
    height: 126px;
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse farthest-corner at right bottom, #FEDB37 0%, #FDB931 8%, #9f7928 30%, #8A6E2F 40%, transparent 80%),
        radial-gradient(ellipse farthest-corner at left top, #FFFFFF 0%, #FFFFAC 8%, #D1B464 25%, #5d4a1f 62.5%, #5d4a1f 100%);
}

.node-lg .img-border img {
    object-fit: cover;
    width: 98%;
    height: 98%;
}

.node-lg .sign {
    height: 20px;
    width: 98px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 5px;
    background: radial-gradient(ellipse farthest-corner at right bottom, #FEDB37 0%, #FDB931 8%, #9f7928 30%, #8A6E2F 40%, transparent 80%),
        radial-gradient(ellipse farthest-corner at left top, #FFFFFF 0%, #FFFFAC 8%, #D1B464 25%, #5d4a1f 62.5%, #5d4a1f 100%);
}

.node-lg .sign span {
    width: 98%;
    height: 90%;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 6.6px;
    font-weight: 600;
    background-color: #FFF;
}

.node-lg .position {
    height: 20px;
    width: 98px;
    background-color: #FFF;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    font-size: 6.6px;
    font-weight: 600;
    text-align: center;
}

.genealogy-scroll::-webkit-scrollbar {
    width: 5px;
    height: 8px;
}

.genealogy-scroll::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #e4e4e4;
}

.genealogy-scroll::-webkit-scrollbar-thumb {
    background: #212121;
    border-radius: 10px;
    transition: 0.5s;
}

.genealogy-scroll::-webkit-scrollbar-thumb:hover {
    background: #d5b14c;
    transition: 0.5s;
}

.genealogy-body {
    white-space: nowrap;
    overflow-y: hidden;
    padding: 10px;
}

.genealogy-tree {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    width: 100%;
}

.genealogy-tree ul {
    padding-top: 20px;
    position: relative;
    padding-left: 0px;
    display: flex;
}

.genealogy-tree li {
    float: left;
    align-items: center;
    list-style-type: none;
    position: relative;
    padding: 20px 5px 0 5px;
    display: flex;
    flex-direction: column;
}

.genealogy-tree li::before,
.genealogy-tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #FFF;
    width: 50%;
    height: 18px;
}

.genealogy-tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #FFF;
}

.genealogy-tree li:only-child::after,
.genealogy-tree li:only-child::before {
    display: none;
}

.genealogy-tree li:only-child {
    padding-top: 0;
}

.genealogy-tree li:first-child::before,
.genealogy-tree li:last-child::after {
    border: 0 none;
}

.genealogy-tree li:last-child::before {
    border-right: 2px solid #FFF;
    border-radius: 0 5px 0 0;
    -webkit-border-radius: 0 5px 0 0;
    -moz-border-radius: 0 5px 0 0;
}

.genealogy-tree li:first-child::after {
    border-radius: 5px 0 0 0;
    -webkit-border-radius: 5px 0 0 0;
    -moz-border-radius: 5px 0 0 0;
}

.genealogy-tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #FFF;
    width: 0;
    height: 20px;
}

.genealogy-tree ul ul.single-child::before {
    height: 40px;
}

.genealogy-tree ul ul.multi-child::before {
    height: 20px;
}

.genealogy-tree ul.single-child {
    padding-top: 40px !important;
}

.genealogy-tree ul.multi-child {
    padding-top: 20px !important;
}

.genealogy-tree li a:hover+ul li::after,
.genealogy-tree li a:hover+ul li::before,
.genealogy-tree li a:hover+ul::before,
.genealogy-tree li a:hover+ul ul::before {
    border-color: #FFF;
}


.member-view-box {
    padding: 0px 20px;
    text-align: center;
    border-radius: 4px;
    position: relative;
}

.node-frame node-lg {
    width: 60px;
    position: relative;
}

.node-frame node-lg img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background-color: #000;
    z-index: 1;
}

.btn-expand-tree {
    width: 31px;
    height: 31px;
    border-radius: 100% !important;
    border: solid 1px #DFDFDF;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: -20px;
    background-color: #FFF;
}

.btn-expand-tree.expand::before,
.btn-expand-tree:not(.expand)::before {
    content: "\eb24";
    font-family: keenicons-outline !important;
    line-height: 1;
    font-size: 1.5rem;
    color: var(--bs-text-muted);
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    transition: 0.2s;
}

.btn-expand-tree.expand::before {
    transform: rotate(0deg);
}

.btn-expand-tree:not(.expand)::before {
    transform: rotate(180deg);
}

.node-flag {
    width: 100px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    /* margin-bottom: 10px; */
    border-radius: 10px;
    border: 2px solid #FFF;
    background-color: #FFF;
}

.node-flag img {
    width: 93%;
    height: 90%;
    object-fit: cover;
    border-radius: 7px;
}

.org-chart {
    overflow: hidden;
    border-radius: 15px;
    background: url("assets/media/svg/world.svg");
    background-size: cover;
    background-color: rgb(47 112 175 / 33%);
    background-blend-mode: color-burn;
}