#confirmation_window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    z-index: 55556;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.305);
}

.confirmation_window__inner {
    padding: 30rem 45rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 30rem;
    border-radius: 5rem;
    box-shadow: 0px 4px 10px rgb(87 131 172 / 60%);
}

.confirmation_window__logo {
    width: 300px;
    margin: 0 auto;
}

.confirmation_window__text p {
    font-size: 16rem;
    text-align: center;
    color: #2F6E5B;
}

.confirmation_window__action {
    display: flex;
    justify-content: center;
    gap: 30rem;
}

.confirmation_window__btn {
    padding: 10rem 15rem;
    border-radius: 5rem;
    font-size: 18rem;
}

.confirmation_window__btn:hover {
    background: #76b3a1;
    border: 1px solid #76b3a1;
}

.confirmation_window--remove {
    color: #fff;
    background: #2F6E5B;
    border: 1px solid #2F6E5B;
}

.confirmation_window--cancel {
    color: #2F6E5B;
    border: 1px solid #2F6E5B;
}



/* Create Tree */


#treeCreate {
    z-index: 999;
}

.start_tree {
    position: absolute;
    right: 35rem;
    top: 10rem;
    display: flex;
    justify-content: space-evenly;
}

.tree_control {
    display: flex;
    flex-direction: column;
}


#createTreeND_Start {
    display: flex;
    /* padding: 5rem 10rem; */
    /* background-color: #2F6E5B; */
    border-radius: 5rem;
    color: white;
    text-transform: uppercase;
    cursor: pointer !important;
    border: none;
    font-size: 16rem;
    font-weight: 400;
    font-family: "Montserrat";
    width: 50px;
    height: 50px;
    transition: all .2s ease-in-out;
    align-self: baseline;
    margin: -18px 0 0px 0;
}

#createTreeND_Start svg {
    width: 100%;
    height: 100%;
}


.tree-selection input[type="text"] {
    font-family: "Montserrat", sans-serif;
    background: transparent;
    border: none !important;
    border-bottom: 1px solid #cbcbcb !important;
    width: 320px;
    height: 46rem;
    font-size: 16rem;
    border-radius: 0;
    padding-right: 5rem;
    padding-left: 5rem;
}



.tableTreeList {
    width: 100%;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    border-collapse: collapse;
    outline: 1px solid #e3e3e3;
    margin-top: 15rem;
}

.tableTreeList th {
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    background-color: #F8F8F8;
    padding: 12px 10px;
}

.tableTreeList td {
    font-weight: 400;
    font-size: 14px;
    padding: 12px 10px;
}

.tableTreeList tbody tr:nth-child(odd) td {
    background-color: #fff;
}



.modal {
    /* display: flex; */
    display: none;
    align-items: center;
}

.modal .modal-content {
    background-color: white;
    width: 100%;
    max-width: 900px;
    border-radius: 15px;
    position: relative;
}

.modal__btn-close {
    position: absolute;
    right: 31.5px;
    top: 30px;
}

.modal__title {
    background-color: #F5F2F3;
    text-align: center;
    font-weight: 600;
    font-size: 24px;
    padding: 23px 70px 23px 23px;
    border-radius: 15px 15px 0 0;
    font-family: Source Serif Pro;
}

.modal__form {
    display: flex;
    background: #fff;
}

.modal__field {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 10px;
}

.modal__field span {
    font-size: 14px;
}

.modal__after-but-select {
    margin-bottom: 30px !important;
}

.modal__input {
    border: 1px solid rgba(183, 189, 206, 0.3);
    border-radius: 8px;
    padding: 14px 10px;
    width: 303px;
    height: 47px;
}

.modal__label {
    position: absolute;
    left: 10px;
    font-size: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: all .3s ease;
}

#create-tree .modal__input:focus {
    border-color: #326E5B;
    padding-bottom: 5px;
}

#create-tree .modal__input:valid {
    padding-bottom: 5px;
}

#create-tree .modal__input:focus+.modal__label {
    /* top: 4px; */
    top: 12px;
    font-size: 12px;
    color: #B7BDCE;
    transition: all .3s ease;
    pointer-events: none;
}

#create-tree .modal__input:valid+.modal__label {
    transform: translateY(0);
    top: 4px;
    font-size: 12px;
    color: #B7BDCE;
}

#create-tree .modal__input[type=email]:not([value=""]) {
    padding-bottom: 5px;
}

#create-tree .modal__input[type=email]:not([value=""])+.modal__label {
    transform: translateY(0);
    top: 4px;
    font-size: 12px;
    color: #B7BDCE;
}


#create-tree .modal__input[readonly] {
    padding-bottom: 5px;
}

#create-tree .modal__input[readonly]+.modal__label {
    transform: translateY(0);
    top: 4px;
    font-size: 12px;
    color: #B7BDCE;
}

.modal__edit-form {
    padding: 28px 60px 32px;
}

.modal__edit-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
}

.modal__buttons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

#create-tree .modal__box_mb {
    margin-bottom: 28px;
}

#create-tree .modal__title-input {
    font-family: Source Serif Pro;
    font-weight: 400;
    font-size: 20px;
    margin-bottom: 5px;
}

#create-tree .modal__title-input i {
    width: 18px;
    height: 18px;
    border: 1px solid #B7BDCE;
    display: inline-block;
    border-radius: 50%;
    padding-left: 4px;
    font-size: 14px;
    color: #B7BDCE;
    margin-left: 2px;
}

#create-tree .modal__date {
    font-size: 16px;
}

#create-tree .modal__date-title {
    font-size: 12px;
    color: #B7BDCE;
    margin-bottom: 4px;
}

#create-tree .modal__edit-pass {
    border: 1px solid #B7BDCE;
    border-radius: 100px;
    text-align: center;
    padding: 14px 10px;
    font-weight: 700;
    font-size: 16px;
}

#create-tree .modal__delete-user {
    font-weight: 700;
    font-size: 16px;
    color: #B7BDCE;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

#create-tree .modal__delete-user:hover {
    color: #FD2F2F;
}

#create-tree .modal__delete-user:hover::after {
    content: 'Нажмите, если хотите удалить пользователя';
    position: absolute;
    top: 50px;
    left: 0;

    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(7.5px);
    border-radius: 5px;

    padding: 10px;

    font-weight: 400;
    font-size: 14px;
    line-height: 18px;

    display: flex;
    align-items: center;
    text-align: center;

    /* Black */
    color: #444444;
}

.select {
    border: 1px solid rgba(183, 189, 206, 0.3);
    border-radius: 8px;
    width: 303px;
    height: 47px;
    margin-bottom: 10px;
    position: relative;
}

.new-person__select {
    width: 47%;
}

.select__btn-tree {
    height: 100%;
    font-weight: 400;
    font-size: 16px;
    padding: 15px 10px;
}

.select:after {
    content: "";
    position: absolute;
    top: 45%;
    right: 15rem;
    width: 6rem;
    height: 6rem;
    -webkit-transform: translateY(-50%) rotate(45deg);
    -ms-transform: translateY(-50%) rotate(45deg);
    transform: translateY(-50%) rotate(45deg);
    border-right: 2rem solid #B7BDCE;
    border-bottom: 2rem solid #B7BDCE;
    -webkit-transition: 0.2s ease;
    -o-transition: 0.2s ease;
    transition: 0.2s ease;
}

.select__btn {
    padding: 12px 10px;
    font-size: 16px;
}

.select__dropdown {
    background-color: #fff;
    border: 1rem solid #F0F4F7;
    display: none;
    position: relative;
    z-index: 1;
    margin-top: 5px;
    overflow: hidden;
}

.select ul {
    list-style: none;
    padding-left: 0;
    border-radius: 12px;
}

.select li {
    padding: 15px;
    border-bottom: 1rem solid #B7BDCE;
    color: #B7BDCE;
    font-size: 16px;
}

.select li:hover {
    color: #444;
}

.select li:last-child {
    border: none;
}

.modal__submit {
    background: #326E5B;
    border-radius: 100px;
    width: 100%;
    max-width: 303px;
    height: 50px;

    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

.modal__success {
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    color: #326E5B;

    background-image: url(/wp-content/themes/nasldnew/assets/icon/user/ico_time-circle.svg);
    background-repeat: no-repeat;
    background-position: left center;
    height: 50px;
    padding: 15px 0 15px 40px;
}

.modal__error {
    margin-top: 25px;
    font-size: 14px;
    color: #FD2F2F;
}

.new-person-radio input[type="radio"]+label {
    font-size: 18px;
    font-family: 'Source';
}




.persons_not_incoming_list {
    width: 100%;
    z-index: 5;
    position: absolute;
    background: #fff;
    border: 1px solid;
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
    border: 1px solid #F0F4F7;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgb(0 0 0 / 25%);
    max-height: 260px;
    overflow-y: scroll;
}

.not_incoming_person:last-child {
    padding: 15px 15px;

}

.not_incoming_person:not(:last-child) {
    border-bottom: 1px solid #e3e3e3;
    padding: 15px 15px;
}

.not_incoming_person:hover {
    color: #0c0c0c;
    cursor: pointer;
}

.not_incoming_person img {
    width: 56px;
    height: 56px;
    border-radius: 66px;
    margin-right: 15px;
    object-fit: cover;
}

.not_incoming_person {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
}



/* FIRST PERSON */

.page-template-tree .nd-wrap-content .nd-content .content__tree {
    overflow: hidden;

    /* position: relative;
    height: 100%;
    width: 100%;
    background: #F6F6F6 !important;
    padding: 18px 4px 4px !important; */
    /* Удалить !important */
}
.page-template-tree .nd-wrap-content .nd-content .modal-content {
    height: 100%;
}
.create_first-main {
    font-family: 'Source Serif Pro';
    box-shadow: 0px 2px 20px 0px #0000001a;
    background: #FAFAFA;

    font-family: 'Source Serif Pro';

    font-style: normal;

}

.create_first-top {
    font-weight: 600;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
}

.create_first-body {
    padding: 25px 60px;
    background: #fff;
    height: 100%;
}

.create_first-body #createTreeND {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.create_first-body .new-person-flex {
    width: auto;
    display: flex;
}


.create_first-main .new-person-flex:nth-child(1) {
    width: auto;
}

.create_first-main .new-person-flex:nth-child(2) {
    margin: 0 20px;
    width: 175px;
}

.create_first-main .new-person-flex:nth-child(3) {
    width: 50%;
    margin-left: auto;
}

.create_first-main .new-person-flex:nth-child(4) {
    width: 100%;
    margin-left: auto;
}

.create_first-main .new-person-flex:nth-child(5) {
    width: 100%;
    margin-left: auto;
}

.create_first-main .new-person__box-image {
    width: unset;
    height: max-content;
}

.create_first-main .person_avatar {
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 80px;
}

.create_first-body .new-person-radio {
    display: flex;
    justify-content: space-between;
    min-width: 175px;
}

.create_first-body .first-person-sex .new-person-radio {
    display: flex;
    justify-content: space-between;
    min-width: 175px;
    margin-left: 50%;
    gap: 35px;
}

.create_first-body .first-person-sex {
    display: flex;
    justify-content: space-between;
    min-width: 175px;
    width: 100%;
}



/* INFO PERSON */

.card__container {
    position: absolute;
    /* overflow-y: visible; */
    /* overflow-x: hidden; */
    top: 80px;
    right: 25px;
    height: auto;
    max-height: fit-content;
    width: 300px;
    display: none;
    flex-flow: column;
    bottom: 20rem;
    background: white;
    border-radius: 11rem;
    box-shadow: 0px 4px 11px #ccc;
    z-index: 55555;
}
@media only screen and (max-width: 376px) {
    .card__container {
        top: 0;
        right: 5px;
    }
}

.card__ndmodal-img-container {
    display:flex;
    flex-direction: column;
    min-height: 200rem;
    border-top-left-radius: 11rem;
    border-top-right-radius: 11rem;
    display: flex;
    align-content: center;
    padding: 10px;
}
.card__container.F .card__ndmodal-img-container {
    background-color: #643A73;
}

.card__container.M .card__ndmodal-img-container {
    background-color: #326E5B;
}

.card__info h3 {
    margin: 20rem 0;
}
.card__container.F .card__info h3  {
    color: #643A73;
}
.card__container.M .card__info h3 {
    color: #326E5B;
}

.card__container.F .close_btn {
    background-color: #643A73;

}
.card__container.M .close_btn {
    background-color: #326E5B;

}



.card__container.F .card__info div.card__info__action {
    color: #643A73;
}

.card__container.M .card__info div.card__info__action {
    color: #326E5B;
}


.card__img-wrapper {
    width: 120rem;
    height: 120rem;
    border-radius: 60rem;
    margin:auto;
    overflow: hidden;
}
.card__img-wrapper img {
    object-fit: cover;
    width: 100%;
    height: auto;
}

.card__info {

    padding: 20rem;

}
.card__info svg {
    width: 20px;
}


.card__container .close_btn {
    position: absolute;
    box-shadow: 0px 4px 4px rgb(0 0 0 / 35%);
    top: -7rem;
    right: -4rem;
    display: flex;
    justify-content: center;
}
.card__container .close_btn svg {
    margin: auto;
}
.card__container .birth_place {
    display: flex;
}
.card__container .birth_place i{
    display: flex;
    width: 25px;
    height: 25px;
}
.card__container .birth_place i::before{
    display: flex;
}
.card__container.F .birth_place i::before{
    background-color: #643A73;
}
.card__container.M .birth_place i::before{
    background-color: #2F6E5B;
}

.card__container.F .birth_place svg * {
    fill: #643A73;
}
.card__container.M .birth_place svg *{
    fill: #2F6E5B;
}

.card__container .card__info div.card__info__action {
    display: flex;
    margin-bottom:5rem;
    align-items: center;
    gap: 15rem;
}

.card__container #card--remove {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    margin-left: auto;
    cursor:pointer;
    background: transparent;
}
.card__container #card--remove.card--remove__disabled:hover {
    cursor: not-allowed	;
}
.card__container #card--remove i{
    width: 24px;
    height: 24px;
}
.card__container #card--remove i::before{
    background-color: #B7BDCE;
}
.card__container #card--remove:hover i::before{
    background-color: #E24242;
}
.card__container #card--remove:hover .card--remove__help {

    opacity: 1;
    visibility: visible;
    min-width: 320px;
    cursor: default;

}
.card__container #card--remove .card--remove__help{
    visibility: hidden;
    opacity: 0;
    transition: .5s;
    position: absolute;
    bottom: 0;
    left: 0;
    width: max-content;
    transform: translate(-88%, 150%);
    font-family: "Proxima Nova";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;

    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    text-align: center;
    padding: 6px 14px;
    z-index: 100;
    background-color: #fff;
    color: #5B5B5B;
}


.card__container #card--remove .card--remove__help::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 15px;
    transform: translate(-70%, -14px);
    border-top: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
    margin: auto 0;
}

@media only screen and (max-width: 768px) {
    .card__container #card--remove .card--remove__help {
        top: unset;
        left: 0;
        transform: translate(-88%, -150%);
    }
    .card__container #card--remove .card--remove__help::before {
        bottom: 0;
        transform: translate(-80%, 19px);
        border-top: 10px solid #fff;
        border-bottom: 0;
    }
}



.card__container #card--chain {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    width: 20rem;
    height: 20rem;
    cursor:pointer;
}
.card__container #card--chain svg{
    width: 100%;
    height: 100%;
}


.birth_place p:first-child {
    font-weight: 700;
    margin-bottom: 5rem;
    color: #5B5B5B;
}
.birth_place p:nth-child(2) {
    color: lightslategrey;
}
.birth_place p:nth-child(3) {
    font-weight: 700;
    margin-bottom: 5rem;
    color: #5B5B5B;
}
.birth_place p:nth-child(4) {
    color: lightslategrey;
}
.birth_place div {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    width: 100%;
    margin-left: 20rem;
}


@media screen and (max-width: 768px) {

    .create_first-body {
        padding: 25px 26px;
        background: #fff;
        margin-bottom: 130px;
    }

    .create_first-main {
        height: 100%;
        overflow: auto;
    }
    .create_first-main .new-person__box-image .person_avatar {
        width: 100px;
        height: 100px;
    }

    .create_first-main .new-person__box-image .select_file_btn {
        /* top: unset;
        transform: translate(-50%,-50%); */
    }

    .create_first__title {
        font-family: 'Source Serif Pro';
        font-style: normal;
        font-weight: 700;
        font-size: 20px;
        line-height: 25px;
        text-align: center;
        color: #444444;
    }

    .create_first-main .new-person-flex:nth-child(1) {
        width: 50%;
        display: flex;
    }

    .create_first-main .new-person-flex:nth-child(2) {
        margin: 0;
        width: 100%;
        order: 4;
    }

    .create_first-main .new-person-flex:nth-child(3) {
        width: 100%;
        margin-left: unset;
        order: 3;
    }

    .create_first-main .new-person-flex:nth-child(4) {
        width: calc(50% - 15px);
        margin-left: unset;
        order: 2;
        margin: 0;
    }

    .create_first-main .new-person-flex:nth-child(5) {
        width: 100%;
        margin-left: unset;
    }

    .create_first-body .first-person-sex .new-person-radio {
        display: flex;
        flex-direction: column;
        margin-left: unset;
        justify-content: center;
        margin: unset;
        min-width: unset;
        width: 100%;
    }




    .create_first-main .new-person-flex__item input[type="radio"]+label {
        font: 400 18px Source;
    }

    .create_first-body .first-person-sex {
        min-width: unset;
        margin: unset;
    }

}