#secure_message_holder{
    /*width:100vw;*/
    height:auto;
}
#secure_message_holder h3{
    text-align:center;
}

#secure_message_list{
    margin-top: 20px;
    width:100%;
}

#this_message{
    height:auto;
    resize:none;
    width:90%
}

.header_head{
    text-align:center;
    width:100%;
}

.contact_flex_line{
    display:flex;
    align-content: flex-start;
    justify-content: flex-start;
    margin-bottom: 4px;
    width:100%;
    cursor:pointer;
}

.sm_unread_notifier{
    /*background: #00965f;*/
    background: #eb0056;
    color: white;
    width: 17px;
    height: 17px;
    font-size: 0.7em;
    border-radius: 50%;
    position: absolute;
    top:0;
    right:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.user_likes_row .sm_contact_blob{
    max-width:25px;max-height:25px;
}

.sm_contact_blob{
    width: 45px;
    height: 45px;
    color: white;
    border-radius:50%;
    text-align:center;
    position:relative;
    /*font-size: 1.3em;*/
    padding: 4px;
    display:flex;
    flex-direction:column;
    background-repeat:no-repeat;
    justify-content: center;
}

.ui-dialog { z-index: 1000 !important ;}

.user_role_key{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
}

.user_role_key{
    color: #444;
    text-align:center;
    margin-bottom:30px;
}

#remove_filter{
    padding:10px;
    border: 1px solid #aaa;
    color: #aaa;
    border-radius: 5px;
}

.user_role_key table{
    width:100%;
}

.this_role_txt{
    color: #444;
    text-align:center;
    font-size: 1em;
    margin:0 auto;
}

.this_role_blob{
    width: 20px;
    height: 20px;
    margin:0 auto;
    border-radius:50%;
}

.organiser_role .sm_contact_blob, .organiser_role .this_role_blob{
    background:#000596;
    border: 2px solid #000596;
}

.delegate_role .sm_contact_blob, .delegate_role .this_role_blob{
    background: #968400;
    border: 2px solid #968400;
}

.crew_role .sm_contact_blob, .crew_role  .this_role_blob{
    background: #699600;
    border: 2px solid #699600;
}

.aide_role .sm_contact_blob, .aide_role .this_role_blob{
    background: #964600;
    border: 2px solid #964600;
}

.speaker_role .sm_contact_blob, .speaker_role .this_role_blob{
    background: #780096;
    border: 2px solid #780096;
}

.admin_role .sm_contact_blob, .admin_role .this_role_blob{
    background: #7E77CA;
    border: 2px solid #7E77CA;
}

.delegate .chat_person,
.admin .chat_person,
.crew .chat_person,
.aide .chat_person,
#single_chat_head_name .chat_person{
    background-position: 50% 50%;
    background-size:cover;
    background-repeat: no-repeat;
}




.sm_contact_name{
    display:flex;
    width:100%;
    justify-content: space-between;
    align-items:center;
    margin-left: 10px;
}

.clickable{
    cursor: pointer;
}

#user_search_line{
    display:flex;
}

#secure_message_user_search{
    display:block;
    z-index:500;
    max-width:100%;
    width:100%;
}
#secure_message_single_chat{
    /*overflow:hidden;*/
    position:absolute;
    top:0;
    left:0;
    right:0;
    display:block;
    background: #fff;
    z-index: 500;
}

#secure_message_user_search{
    margin-top: 55px;
    padding: 5px;
    background: #eee;
}

.admin-bar #secure_message_user_search{
    margin-top: 116px;
}

#secure_message_user_search #user_search_line{
    color: #555;
    padding-left: 10px;
}


.in_chat_image{
    /*
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content: space-between;
    */
}

.in_chat_image table td{
    padding:5px;
    width:50%;
}

.in_chat_image img{
    cursor:pointer;
    float:left;
}
.in_chat_image .view_command, .in_chat_image .download_command{
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    font-size: 0.8em;
    max-width:100px;
    background: #fff;
    border: 1px solid #7A0000;
    color: #7A0000;
    text-align:center;
}


.in_chat_image .view_command:hover, .in_chat_image .download_command:hover{
    color: #fff;
    background:#7A0000;

}

#single_chat_head .remove_chat_button{
    display:none;
}

.image_viewer{
    width:100vw;
    height:100vh;
    top:0;bottom:0;left:0;right:0;
    /*background: #000;*/
    background-color: rgba(60,60,60,0.8);
    /*opacity: 0.5;*/
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    /*position:relative;*/
    position:fixed;
    z-index: 50000;
}

#secure_message_holder .image_killer img{
    z-index: 60000;
    opacity: 1;
}

.image_killer{
    position:absolute;
    background:#eee;
    border: 1px solid #000;
    color: #000;
    padding: 2px;
    width: 40px;
    height:40px;
    font-size: 1.3em;
    text-align:center;
    top:10px;right:10px;
    cursor: pointer;
}

.chat_progress{
    transition: all 0.5s linear;
}

#secure_message_user_search #search_results{
    color: #555;
    overflow-y: scroll;
}

#secure_message_single_chat{
  /* padding:20px; */
  overflow-y:scroll;
  background: #DBDBDB /*#61CE70; */
}

#single_chat_holder{
   /* scroll-behavior: smooth; */
}


.typing_chat{
    width:100%;
    float:left;
    align-self:flex-start;
    background:transparent;
}
.typing_chat{
    display:none;
}

body .typing #typing_status.typing_chat{
    display:block;
}


#secure_message_user_search .message_user_searcher{
    border: 0;
    outline: 0;
    padding: 0;
    margin-left: 25px;
    max-height: fit-content;
}

#secure_message_user_search #user_search_text input{
    font-size: 1em;
    width:100%;
    padding:5px;
}

#single_chat_head_name{
    display:flex;
    width:100%;
    align-items:center;
    justify-content: flex-start;
}

#single_chat_head_name .sm_contact_blob{
    margin-left: 20px;
}

#single_chat_head_name .sm_contact_name{
    font-weight: bold;
}

#secure_message_inner #secure_message_user_search.unseen,
#secure_message_inner #secure_message_single_chat.unseen{
    z-index:-1;
    display:none;
}

#secure_message_inner{
    /*width:95%;*/
    height:100vh;
    margin: 0 auto;
    overflow-y: scroll;
    display:flex;
    flex-direction:column;
    align-items: flex-start;
    position:relative;
    color: #fff
}

#secure_message_header{
   width: 100%;
}

.flex_message_header_line{
    display:flex;
    justify-content: space-between;
    align-items:center;
}

.single_secure_message_holder{
    width:100%;
    /*height: 100%;*/
    /*margin-top:20px;*/
    position:relative;
    min-height: 66vh;
    display:flex;
}

#single_chat_chat{
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    position:fixed;
}
#single_chat_chat table{
    width:100%;
    background: white;
}

#single_chat_chat table.chatsendtable{
    background: #960037
}

.single_chat_dialogue{
    display:flex;
    flex-direction:column;
    justify-content: flex-end;
    align-items: center;
    width:98%;
    padding: 15px;
    margin-bottom:50px;
    overflow-y:scroll;
    padding:150px 5px 90px 5px;
    color: #555;
}


.chatsendtable td{
    vertical-align:middle;
    text-align:center;
}


.message_sender_holder{
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content:center;
}
.message_sender_holder textarea{
    height:50px;
    padding:25px 10px;
    font-size: 1.3em;
    /*height: var(--textarea-height);
    padding: calc(var(--textarea-height) / 2) 0;*/
    padding: 7px;
    outline: 0;
    border-radius: 0;
    overflow:hidden;
    box-sizing:border-box;
}

#photo_button_holder{
    font-size: 1.3em;
}

#photo_button_holder:hover{
    color: #960037;
    background:white;
    border:0;
}

.chatsendtable button.chatsendbutton{
    font-size: 1.3em;
    background: #960037;
    color:white;
}
.chatsendtable button.chatsendbutton:hover{
    color:#960037;
    background: white;
}

.chat_message{
    width:70%;
    background: white;
    border: 1px solid #eee;
    border-radius: 5px;
    position:relative;
    margin: 10px 0 10px 0;
    padding: 7px 7px 20px 7px;
    align-self: flex-start;
}


.chat_progress{
    font-size: 0.8em;
    position:absolute;
    bottom:0;
    right: 0;
}

.single_chat_dialogue .chat_message.mine{
    float:right;
    background: #B0F3BF; /*#EDF7E4;*/
    align-self: flex-end;
}


        html,body{ scroll-behavior: smooth;}

        #thesis_header_bar{
            z-index:50;
        }

        .elementor-location-footer{
           /* display:none; */
        }

        body #secure_message_holder{
            height:99vh;
        }
        body #secure_message_inner{
            height:99vh;
        }
        body #secure_message_single_chat{
            /*padding:5px;
            background: #0f264f;*/
        }
        body #single_chat_holder{
            position:relative;
            /*width:95vw;*/
            height:100vh;
            margin: 0 auto;
            overflow-y: scroll;
        }

        body #single_chat_holder #more_indicator{
            opacity: 0.7;
            border-radius: 50%;
            background: white;
            color: #888;
            font-size:3em;
            border: 1px solid #ddd;
            position:fixed;
            right: 50px;
            bottom:100px;
            display:none;
            cursor: pointer;
            z-index: 30000;
        }

        body #single_chat_holder #more_indicator.viewable{
            display:block;
        }

        #wpadminbar{
            z-index: 999;
        }

        body #single_chat_head{
            position:absolute;
            /*top:66px;*/
            right:0;left:0;
            z-index:1001;
            background: #960037; /*  #0f264f; */
            /*height: 65px;*/
            height: 6vh;
            padding-bottom: 8px;
        }

        body #single_chat_head_back{
            padding-left: 10px;
        }

        body.admin-bar #single_chat_head{
            top:116px;
        }


        #thesis_secure_message_header{
            position:fixed:
            top:0;right:0;left:0;
            display:flex;
            justify-content:space-between;
            padding:5px;
            background: #960029; /*#0f264f;*/
            color: white;
            z-index: 52; /*probs not enough */
        }

        #thesis_logo img{
            height:25px;
            width:auto;
        }

        body .contact_flex_line{
            width:100%;
        }


        body #single_chat_chat, body #single_chat_chat textarea{
            font-size: 1.1em;
            color: #555;
            border: #fff;
        }
        #chat_function_bar{
            height: 6vh;
            border-bottom: 2px solid #999;
            position:absolute;
            /*top: 70px;*/
            left:0;
            right:0;
            z-index: 99;
            padding: 0 10px;
        }

        #secure_message_list{
            margin-top: calc(70px + 6vh);
        }

        .admin-bar #chat_function_bar{
            position:fixed;
            top: 116px;
            left:0;
            right:0;
        }

        .admin-bar #secure_message_list{
            margin-top: calc(116px + 6vh);
        }

        body #user_search_line{
            height:6vh;
            align-items:center;
            border-bottom: 2px solid #999;
            margin-bottom:20px;
        }

        body .secure_message_holder{
            color: #FFF; /* #F1F200;*/
        }