.personEditThickbox {
    width: 800px;
    height: auto;
    position: fixed;
    left: 50%;
    margin-left: -415px;
    border-radius: 5px;
    z-index: 103; /* 1px higher than the overlay layer */
    background-color: #fff;
    padding: 15px;
    overflow-y: auto;
    overflow-x: hidden;
}

.personEditThickbox table {
    margin-bottom: 20px;
}

.personEditThickbox h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.thickboxCloseButton {
    float: right;
}

.toggle_next_element {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.personEditViewWrapper {
    width: 908px;
    display: table;
    position: relative;
    padding: 10px 10px;
    border-top: 1px solid #cfd6e3;
    border-right: 1px solid #cfd6e3;
    border-left: 1px solid #cfd6e3;
}

.personEditViewWrapperLast {
    border-bottom: 1px solid #cfd6e3;
    margin-bottom: 20px;
}

.personEditViewWrapper:nth-of-type(odd) {
    background-color: rgba(207, 214, 227, 0.2);
}


.personAddDateFields {
    width: 59px !important;
}

.personInfo input[type=text] {
    width: 200px;
}

.personInfo td {
    width: 209px;
}

#person_form h2, #personResultListWrapper h2 {
    margin-top: 0;
}

#personResultSort {
    float: right;
    display: none;
}

#personResultListTableWrapper {
    position: relative;
    overflow-y: auto;
}

#addPersonCreateDiv {
    width: 424px;
    float: left;
    border-right: 1px solid #cfd6e3;
    margin-right: 20px;
    padding-right: 20px;
}

#person_results {
    width: 465px;
    float: right;
}

.person_list_entry {
    color: #768a96;
    font-weight: bold;
}

.person_result_list_div:hover {
    border: 1px solid #cfd6e3;
    background-color: #cfd6e3;
    color: #000;
}

.person_result_list_div {
    padding: 6px 15px;
    border: 1px solid #58593d;
    border-radius: 6px;
    margin-right: 15px;
    font-weight: normal;
    background-color: rgba(207,214,227,0.2);
    display: table;
    width: 412px;
}

#sortOrder_chosen {
    margin-right: 20px;
}

.person_result_list_div:not(last-of-type) {
    margin-bottom: 6px;
}

#personEditForm {
    display: table;
}

#personEditForm h3 {
    margin: 0;
}

#personEditForm h1 {
    display: inline-block;
}

.transferInput {
    width: 50px !important;
    cursor: pointer;
    text-align: center;
}

.personThickboxButtonClearer {
    clear: both;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #cfd6e3;
}

#addressEditContainer table, #titleEditContainer table, #professionEditContainer table, #nicknameEditContainer table, #religionEditContainer table, #socialnetworkEditContainer table {
    margin-top: 10px;
    font-size: 13px;
}

#addressEditContainer table input, #edit_marriage_frame table input, #edit_mother_frame table input, #edit_father_frame table input, #edit_children_frame table input, #titleEditContainer table input, #professionEditContainer table input, #nicknameEditContainer table input, #religionEditContainer table input, #socialnetworkEditContainer table input  {
    width: 200px;
}

#addressEditContainer table select, #edit_marriage_frame table select, #edit_mother_frame table select, #edit_father_frame table select, #edit_children_frame table select, #titleEditContainer table select, #professionEditContainer table select, #nicknameEditContainer table select, #religionEditContainer table select, #socialnetworkEditContainer table select {
    width: 208px;
}

#addressEditContainer table td, #edit_marriage_frame table td, #edit_mother_frame table td, #edit_father_frame table td, #edit_children_frame table td, #titleEditContainer table td, #professionEditContainer table td, #nicknameEditContainer table td, #religionEditContainer table td, #socialnetworkEditContainer table td {
    width: 208px;
}

.personDataDateFields {
    width: 59px !important;
}

#search_marriage_search, #search_mother_search, #search_father_search, #search_children_search, #search_adoption_search {
    margin-top: 10px;
}

#marriage_data, #adoptee_data {
    width: 100%;
}

#select_marriage, #select_mother_select, #select_father_select, #select_children_select, #select_adoptee {
    width: 100%;
    margin-bottom: 10px;
    height: 221px;
}

#personResultListWrapper {
    position:relative;
}

.personDataButtonSubmit {
    background-color: #47a447 !important;
    float: right;
}

.personDataButtonSubmitNotPlausible{
    background-color: #ff8400 !important;
    float: right;
    margin-right: 11px;
}

#edit_marriage_frame table, #edit_mother_frame table, #edit_father_frame table, #edit_children_frame table {
    border-right: 1px solid #cfd6e3;
    padding-right: 30px;
    margin-right: 30px;
}

#select_marriage_container, #select_mother, #select_father, #select_children, #select_adoptee_container {
    width: 313px;
}

#select_mother_select, #select_father_select, #select_children_select {
    height: 248px !important;
}

#person_result_preview_content tr:nth-of-type(odd) {
    background-color: rgba(207,214,227,0.2);
}


#person_result_preview_content tr:last-of-type {
    background-color: #fff !important;
}

.personDataDeleteLabel {
    position: absolute;
    left: 453px;
}

.personDataDelete {
    margin-right: 4px;
}

.dateField {
    width: 30px !important;
}

.dateFieldSmall {
    width: 15px !important;
}

.rowEdit{
    display: none;
}

.rowEditRelation{
    border: 1px solid #58593d;
    border-radius: 3px;
    padding: 3px;
    /*width: 150px;*/
    position: relative;
    height: 16px;
    background-color: #fff;
    font-size: 12px;
    line-height: 16px;
}

.personEditRow input[type=text] {
    width: 137px;
}

.editRowContentConfirm{
    display: none;
}

.editRowContentCancel{
    display: none;
}

.personDetails i{
    cursor: pointer;
}

.markedDelete{
    background-color: #FF4444;
}

#select_relation_select{
    width: 100%;
    margin-bottom: 10px;
    height: 221px;
}

.searchPerson{
    position: absolute;
    padding: 3px;
    top: 0px;
    right: 0px;
    background-color: #FFFFFF;
}

.relationName{
    white-space: nowrap;
}

.cellSearchRight{
    padding-left: 5px;
    font-weight: bold;
}

.cellSearchLeft {
    font-weight: bold;
}


.cellSearchLeft.active{
    border-left: 1px solid #58593d;
    border-top: 1px solid #58593d;
    border-bottom: 1px solid #58593d;
    border-radius: 3px 0 0 3px;
    padding: 3px;
    background-color: #fff;
    font-size: 12px;
    line-height: 15px;
}

.cellSearchRight.active{
    border-right: 1px solid #58593d;
    border-top: 1px solid #58593d;
    border-bottom: 1px solid #58593d;
    border-radius: 0 3px 3px 0;
    padding: 3px 3px 3px 5px;
    position: relative;
    background-color: #fff;
    font-size: 12px;
    line-height: 15px;
}

.updateError{
    border: 1px solid #FF0000;
}

.personEditRow {
    width: 786px;
    clear: both;
    padding: 2px 0;
    float: right;
    height: 26px;
}

.personInfoLink, .personEditRowInfo {
    width: 14px;
}

.personEditRow > .personInfo{
    padding: 0px !important;
}

.personViewRow {
    width: 752px;
    clear: both;
    padding: 2px 0;
    float: right;
    height: 26px;
}

.personEditRow > div {
    float: left;
    padding: 0 5px !important;
    box-sizing: border-box;
    line-height: 26px;
    height: 26px;
    vertical-align: middle;
    display: inline;
}

.personViewRow > div {
    float: left;
    padding: 0 5px !important;
    box-sizing: border-box;
    line-height: 26px;
    height: 26px;
    vertical-align: middle;
}

.personEditRow .chosen-container {
    width: 100% !important;
    height: 26px !important;
    margin-top: 0;
}

.genderSelect .chosen-container {
    width: 100%;
}

.personEditRow h3 {
    padding: 0;
}

.personEditRowIdentifier {
    width: 122px;
    overflow-x: hidden;
    font-weight: 600;
}

.personEditRowTo, .personEditRowFrom {
    width: 104px;
    max-width: 104px;
}

.personEditRowTo.updateError, .personEditRowFrom.updateError {
    padding: 2px 5px !important;
    height: auto;
    margin-top: -3px;
}

.personEditRowFromLong {
    width: 208px;
    max-width: 208px;
}

.personEditRowActions {
    text-align: right;
    width: 40px;
    max-width: 40px;
    padding-right: 5px;
}

.personEditRowActions i {
    line-height: 26px;
}

.personEditRowActions .fa-pencil {
    float: left;
}

.personEditRowActions .fa-trash {
    float: right;
}

.personEditRowName {
    width: 172px;
    max-width: 172px;
}

.personEditRowFirstname {
    width: 172px;
    max-width: 172px;
    padding-left: 5px;
}

.personEditRowExtra {
    width: 100px;
    max-width: 100px;
}

.personEditRowGender {
    width: 80px;
    max-width: 80px;
}

.personEditRowTitle{
    width: 100% !important;
}

.deleteRowActive {
    color: #FF0000;
    margin-left: 5px;
}

.personEditCity {
    float: left;
}

.personEditRow input[type=text] {
    height: 16px;
}

#personEditMaintainerInfo {
    width: 930px;
    box-sizing: border-box;
    text-align: right;
    margin-top: -10px;
    margin-bottom: 7px;
    clear:both;
}

.personEditRow .inline_help {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-x: hidden;
}

span.rowContent {
    white-space: nowrap;
    font-weight: bold;
    /*font-size: 14px;*/
}

#archive_save {  
    background-color: #3276b1;
    position: relative;
}

#archive_save:hover {
    background-color: #265884; 
}

#archive_save:disabled {
    opacity: 0.3;
}

#archive_search {
    background-color: #47a447;
    position: relative;
}

#archive_search:hover {
    background-color: #337433;
}

#archive_save {
    width: 208px;
} 

#archive_search {
    width: 190px;
}

#archive_search .fa, #archive_save .fa {
    position: absolute;
    right: 8px;
}

.personAddConfirmDeath, .personAddConfirmDeath a {
    font-size: 10px;
}

.personAddConfirmDeath input {
    margin-left: 0;
}

#graveyardListAdd {
    width: 172px;
    margin-right: 1px;
    height: 26px;
    line-height: 16px;
}

#graveyardListContainer td {
    padding-bottom: 4px;
}

.personEditInputNewGraveyard {
    height: 60px;
}

.personEditMemorialPageLink {
    float: right;
    margin-right: 11px;
    margin-top: 2px;
    line-height: 16px;
}

.personGenderSelect + .chosenIcon-container .chosen-single span {
    padding-left: 10px;
    font-size: 12px;
}

.personGenderSelect + .chosenIcon-container .chosen-single span::before, .personGenderSelect + .chosenIcon-container .chosen-results li::before {
    left: 5px;
}

.personGenderSelect + .chosenIcon-container .chosen-results {
    margin-right: 0;
    padding-right: 4px;
}

.personGenderSelect + .chosenIcon-container .chosen-results li {
    padding-left: 14px;
    font-size: 12px;
}

.inline_help.plain{
    background-color: transparent;
}

.personEditInputSmall {
    width: 50px !important;
}

.personEditTitleName {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 18px;
    clear: both;
}

.personEditInputZipCode {
    width: 38px !important;
}

.personEditInputCity {
    width: 103px !important;
    display: inline-block;
}

.personEditOutputZipCode {
    width: 38px;
    text-overflow: ellipsis;
    overflow-x: hidden;
    display: inline-block;
}

.personEditOutputCity {
    float: right;
    min-width: 120px;
}

.personEditInputGraveNumber {
    width: 81px !important;
}

.personEditRowCountry .chosen-drop {
    width: 200px;
}

.personEditInputName {
    width: 152px !important;
}

.personEditOutputCity.inline_help {
    width: 120px;
}

#personEditInputGravesiteImage {
    padding-left: 0; 
    width: 113px; 
    height: 26px; 
    margin-top: -2px;
}

.personEditInputFirstTitle, .personEditInputMiddleTitle {
    width: 42px !important;
}

.personEditInputFirstName, .personEditInputLastName {
    width: 99px !important;
}

.personEditInputLastTitle {
    width: 82px !important;
}

.personSearchContent {
    max-width: 260px;
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
}

#person_results #person_result_preview_content .buttonSuccess {
    height: 26px;
}

.personViewMemorialPageLink {
    position: absolute;
    right: 40px;
    top: 15px;
    line-height: 14px;
    vertical-align: middle;
    margin: 0;
}

.personViewGravesiteImageLink {
    position: absolute;
    right: 80px;
    top: 15px;
    margin: 0;
}

.personViewMemorialPageLink img {
    height: 14px;
    vertical-align: middle;
}