body{
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.modal-dialog{
    z-index: 99999;
    margin-top: 60px;
}
.modal-header {
    display: block;
}

.close{
    opacity: 1;
}

.row{
    display: flex;
    flex-wrap: wrap;
}

.error_message{
    color: #d9534f;
}

/*********** Navbar ***********/
.navbar-main ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.navbar-main ul li{
    display: inline-block;
    margin-left: 10px;
}
#wrapper-nav .container-fluid .row{
    display: flex;
    align-items: center;
}

#wrapper-nav{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9;
    background: #fff;
    width: 100%;
    min-height: 66px;
    box-shadow: 0 4px 16px rgb(0 0 0 / 5%), 0 2px 6px rgb(0 0 0 / 5%), 0 1px 2px rgb(0 0 0 / 5%);
    padding: 10px;
}
.logo img{
    max-width: 100px;
}
button{
    background-color: #fff;
    color: #04263d;
    border: 1px solid #d3d3e7;
    display: flex;
    align-items: center;
    padding: 5px 15px;
    cursor: pointer;
}
.wrapper-btn{
    position: absolute;
    z-index: 9999;
}
.btn-botright{
  bottom: 30px;
  right: 30px;
}
.btn-botright a{
  display: block;
  margin-top: 2px;
}
.btn-botright a:first-child{
    margin-top: 0;
}
/*********** End Navbar ***********/

/*********** Form ************/
.p-main-form-content{
  max-height: 386px;
  overflow-y: scroll;
}
.imagePerson label{
  cursor: pointer;
  width: 100px;
  height: 100px;
  line-height: 100px;
  text-align: center;
  color: #fff;
  background: #d3d3d3;
  border-radius: 50%;
}
.form-isDeadTrue{
  display: none;
}
#previewImagePerson{
  display: none;
  cursor: pointer;
}
#backButton svg{
  transform: translate(-5px, 2px);
}
.imagePerson #previewImagePerson{
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
}
.imagePerson .btn-removeImagePerson img{
  width: 15px;
  height: auto;
  object-fit: cover;
}
.wrapper-imagePerson{
  position: relative;
  display: inline-block
}
.imagePerson .btn-removeImagePerson{
  position: absolute;
  top: 0;
  right: -10px;
  display: none;
  background: #D20E0F;
  cursor: pointer;
  width: 18px;
  height: 15px;
}
.imagePerson .btn-removeImagePerson svg {
  transform: translateY(-7px);
}
.imagePerson .btn-removeImagePerson svg rect{
  fill: #ffffff;
}
#backButton{
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 9;
  padding: 5px 10px;
}
.relationship-group > div{
  margin-right: 15px;
}
.relationship-group > div:last-child{
  margin-right: 0;
}
/*********** End Form ************/

#myDiagramDiv{
    width:100%;
    height: 100%;
    min-height: 100vh;
    background-color: #DAE4E4;
}
#myInspector table{
    min-width: 300px;
    padding: 10px;
}
#myInspector table input{
    width: 100%;
}

/*** Main ****/
#app .navbar {
    margin-bottom: 0;
}
.navbar img {
    max-width: 100px;
}
.m-page {
    background-image: url(../image/bg/family.png);
    height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}
.m-page .filter {
    position: absolute;
    width: 100%;
    height: auto;
    min-height: 100vh;
    left: 0px;
    top: 0px;
    background: rgba(0, 0, 0, 0.4);
}
#navbarSupportedContent .navbar-nav{
    float: right;
}
#addnewtree .modal-header{
    display: block;
}
.p-main-left {
    padding: 48px;
    padding-left: 80px;
}
.p-main-left h4 {
    font-family: "roboto", sans-serif;
}
.p-main-left h2 {
    font-family: "Merriweather", sans-serif;
    color: #26804c;
    margin-top: 12px;
    text-transform: uppercase;
    font-weight: bold;
}
.p-main-left p {
    font-family: "roboto", Arial;
    color: #629e7c;
}
.p-main-form .p-main-input i, .p-main-form .p-main-input svg, .p-main-pagination li, .p-main-left p, .p-main-right .reset a, .p-main-right #resetM label i {
    color: #fff;
}
.p-main-thumb {
    width: 100%;
}
.p-main-left .p-main-thumb img {
    width: 100%;
}
.p-main-nav-menu ul li a, .p-main-list-item h3 a, .p-main-left h2 {
    color: #0e8842;
}
.p-main-right {
    margin: 29px 35px;
    background: #fff;
    box-shadow: 0 7px 38px rgb(45 152 90 / 6%);
    border-radius: 5px;
    border: 1px solid #eee;
}
.p-main-login h3, .wrapper-nav h3 {
    border-bottom: 1px solid #eee;
    margin: 0 24px;
    padding: 48px;
}

.p-main-right h3 {
    font-size: 18px;
}
.p-main-login h3 {
    border-bottom: 1px solid #eee;
    margin: 0 24px;
    padding: 48px;
}
.p-main-right h3 b {
    font-size: 22px;
    display: block;
    margin-bottom: 9px;
    font-family: "roboto", Arial;
}
.p-main-right h3 span {
    color: #777;
}
.p-main-right .h-title a {
    display: inline-block;
    padding: 12px 18px 12px 18px;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    color: #000;
}
.p-main-right .h-title {
    margin-bottom: 20px;
    font-size: 20px;
}
.p-form {
    padding: 20px;
    margin-top: 110px;
}
.p-form h3 {
    padding: 0;
    margin: 0;
    border-bottom: 0;
    margin-bottom: 15px;
    font-size: 20px;
}
.p-form + h3 {
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
}
.p-form .g-row {
    margin-bottom: 15px;
}
.p-form .btn-actions .btn-primary {
    width: 100%;
    background-color: #2A90F3;
    border: 0;
}
.p-form .divider {
    border-top: 1px solid #9CA3AF;
    margin-top: 20px;
    position: relative;
}
.p-form .divider span {
    background: #fff;
    padding: 5px 15px;
    position: absolute;
    top: -15px;
    left: 130px;
    color: #9CA3AF;
}
.p-form .mt-20 {
    margin-top: 20px;
}
.sign-out-sso img {
    height: 16px;
}
.per p {
    text-align: center;
}
.p-main-flist {
    padding: 0;
}
.p-main-list-item {
    background: #fff;
    box-shadow: 0 0 10px #2ecc7126;
    margin: 0;
    border: 1px solid #ccefda;
    position: relative;
}
.p-main-list-item {
    border: 1px solid #2ecc7156;
    box-shadow: 0 0 10px #2ecc7126;
}

.p-main-flist .p-main-list-item {
    box-shadow: none;
    border-top-width: 0;
}

.p-main-flist .p-main-list-item:first-of-type {
    border-top-width: 1px;
}

.p-main-flist .more {
    display: inline-block;
    background: #2ecc71;
    color: #fff;
    width: 100%;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    margin-top: 23px;
    font-family: "Merriweather", sans-serif;
    text-transform: uppercase;
    font-family: "roboto", Arial;
    font-weight: bold;
}
.p-main-list-item .p-main-thumb {
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px #26ae60;
    margin: 14px 16px 14px 20px;
}
.p-main-list-item .p-main-thumb img {
    width: 100%;
}
.p-main-list-item h3 {
    margin: 0;
    padding: 0;
    border: 0;
    margin-top: 16px;
    font-size: 18px;
}
.p-main-flist .p-main-list-item h3 a {
    padding: 0;
    color: #0391a8;
}
.p-main-nav-menu ul li a, .p-main-list-item h3 a, .p-main-left h2 {
    color: #fff;
}
.p-main-list-item p {
    color: #777;
}
.p-main-flist .p-main-list-item p {
    margin: 0;
    font-size: 12px;
}
.p-main-flist .p-main-list-item p span {
    margin-right: 8px;
    margin-left: 3px;
}
.bg-0, .p-main-flist .more {
    background: #2ecc71;
    box-shadow: 0px 0px 7px #2ecc7145;
}


@media(max-width: 991px) {
    body{
        overflow: unset;
    }
    .btn-botright{
        bottom: 10px;
        right: 10px;
    }
    .navbar > .container{
        display: block;
    }
    .navbar > .container button{
        float: right;
        margin-top: 10px;
        position: relative;
    }
    .navbar > .container .navbar-collapse{
        position: absolute;
        right: 30px;
        top: 120%;
        z-index: 1;
        background: #fff;
        min-width: 100px;
    }
    #navbarSupportedContent .navbar-nav{
        margin: 0;
        display: block;
        float: unset;
    }
    .m-page .p-main-right.p-form{
        margin: 0;
    }
    .m-page .p-main-left{
        padding-left: 0;
        padding-right: 0;
    }
    .m-page .p-main-right.p-form .btn{
        white-space: unset;
    }
    .p-form .divider span{
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 180px;
    }
}

body{
  overflow: unset;
}
.m-page{
  min-height: 100vh;
  height: auto;
}
.m-page .filter{
  min-height: 100vh;
  height: 100%
}
.m-page .p-main-right{
    margin-left: 0;
    margin-right: 0;
}
.error_message{
    color: #E10029;
}
.media-body .fa-trash,
.media-body a{
  color: #777;
}

/* Toast notification */
.toast-item-wrapper {
    min-width: 250px;
    max-width: 250px;
    padding: 10px;
    box-sizing: border-box;
    color: #fff;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}
.toast-item-wrapper i.toast-icon {
    position: absolute;
    top: 12px;
    left: 0;
    width: 50px;
    text-align: center;
    vertical-align: middle;
    font-size: 2rem
}
.toast-item-wrapper .toast-close {
    font-size: 2rem;
    position: absolute;
    top: 0;
    right: 10px;
    width: 20px;
    text-align: center;
    cursor: pointer
}
.toast-item-wrapper.success {
    background-color: #29ab9f;
    border: 1px solid #1a9581
}
.toast-item-wrapper.error {
    background-color: #D70018;
    border: 1px solid #D70018
}
.toast-item-wrapper.error {
    color: #fff!important;
}
.toast-item-wrapper.warning {
    background-color: #fff1c0;
    border: 1px solid #f0c948;
    color: #333
}
.toast-item-wrapper.notice {
    background-color: #48a9f8;
    border: 1px solid #208ce4
}
.toast-item-wrapper.info {
    background-color: #7f97a3;
    border: 1px solid #6b8699
}
.toast-item-wrapper.toast-top-left {
    left: 20px;
    top: 20px
}
.toast-item-wrapper.toast-top-right {
    right: 20px;
    top: 20px
}
.toast-item-wrapper.toast-top-center {
    margin: 0 auto;
    top: 20px
}
.toast-item-wrapper.toast-bottom-left {
    left: 20px;
    bottom: 20px
}
.toast-item-wrapper.toast-bottom-right {
    right: 60px;
    bottom: 15px
}
.toast-item-wrapper.toast-bottom-center {
    margin: 0 auto;
    bottom: 20px
}
.toast-item-wrapper.toast-left-center {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.toast-item-wrapper.toast-right-center {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.toast-item-wrapper.fullscreen {
    left: 20px;
    right: 20px;
    width: calc(100% - 40px)
}
.toast-item-wrapper p {
    margin: 0
}
.toast-item-wrapper .toast-message {
    font-size: 13px
}
.toast-item-wrapper .toast-progress {
    width: 0;
    height: 3px;
    background-color: rgba(0, 0, 0, .5);
    position: absolute;
    bottom: 0;
    right: 0
}
.toast-item-wrapper.rtl {
    direction: rtl;
    text-align: right
}
.toast-item-wrapper.rtl i.toast-icon {
    left: auto;
    right: 0
}
.toast-item-wrapper.rtl .toast-close {
    right: auto;
    left: 0
}
.toast-item-wrapper.rtl p {
    text-align: right
}
.toast-item-wrapper.rtl .toast-progress {
    left: auto;
    right: 0
}
/* End toast notification*/