.chat-area {
    display: flex;
    height: 100vh;
}
.chatlist {
    outline: 0;
    height: 100%;
    overflow: hidden;
    width: 400px;
    float: left;
    padding: 15px;
    padding-top: 50px;
    background: #ffcd1f;
}
.chatbox {
    width: 100%;
    overflow: hidden;
    height: 100%;
    border-left: 1px solid #fff;
}
.chatlist .nav-tabs {
    display: block;
}
.chatlist .nav-tabs li {
    float: unset;
    border: 0 !important;
    transition: 0.9s;
}
/*.chatlist .nav-tabs li:hover {
    background: #ffffff;
}*/
body .chatlist .nav-tabs li a {
    border-bottom: 1px solid #ffffff9e !important;
    margin-bottom: 5px !important;
    padding-bottom: 5px !important;
    display: block;
    padding: 5px;
}
body .chatlist .nav-tabs li a .d-flex {
    align-items: center;
}
.flex-shrink-0 img {
    width: 50px;
    border-radius: 100%;
    height: 50px;
    border: 2px solid #fff;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}
.nav-tabs {
    border-bottom: 0px solid #dee2e6;
}
.chatlist h3 {
    color: #03004c;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-transform: capitalize;
    margin-bottom: 0;
    margin-top: 0;
}
.message img {
    width: 200px;
    display: block;
}
.chatlist p {
    color: #343434;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-transform: capitalize;
    margin-bottom: 0;
}
.tab-content #home, .tab-content #menu1, .tab-content #menu2 {
    margin-top: 0;
    padding: 0px !important;
}
.msg-head {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}
.msg-body ul {
    padding: 20px;
    overflow: hidden;
}
.msg-body ul li.sender {
    display: block;
    margin: 15px 0 15px 45px !important;
}
.msg-body ul li {
    list-style: none;
    margin: 15px 0;
}
p {
    margin-top: 0;
    margin-bottom: 0;
}
.msg-body ul li.sender p {
    color: #000;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    padding: 15px;
    background: #f5f5f5;
    display: inline-block;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-bottom: 0;
}
.time {
    display: block;
    color: #000;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
}
.msg-body ul li.repaly {
    display: block;
    width: 100%;
    text-align: right;
    position: relative;
}
.msg-body ul li.repaly p {
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    padding: 15px;
    background: #04004c;
    display: inline-block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    margin-bottom: 0;
}
li.repaly .time {
    margin-right: 20px;
}
.time {
    display: block;
    color: #000;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
}

.send-box form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}
.send-box .form-control {
    display: block;
    width: 85%;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #222;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ccc;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.send-box textarea {
    width: 100% !important;
    min-width: unset !important;
    margin-right: 10px;
    padding: 10px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.send-box button {
    border: none;
    background: green;
    color: #fff;
    border-radius: 0.25rem;
    font-size: 14px;
    font-weight: 400;
    margin-left: 1%;
    padding: 7px 20px;
    height: 40px;
}
.moreoption {
    display: flex;
    align-items: center;
    justify-content: end;
    margin-bottom: 0;
}
.send-box form button {
    width: 20%;
}
.chatperson {
    background: #f1f1f1;
}
.chatperson_view a {
    justify-content: center;
    margin-top: 20px;
}
.chatperson_view .flex-grow-1 {
    text-align: center;
}
.chatperson_view .flex-grow-1 h3 {
    font-size: 20px;
    margin-bottom: 0px;
}
.view_contract a {
    margin: 0 0 10px;
    border: 1px solid #ccc !important;
    border-radius: 25px;
    padding: 7px 20px;
}
.view_contract {
    text-align: center;
}
.msg-body {
    overflow-y: auto;
    height: 56vh;
}.modal-body {
    padding: 0;
}
.send-box form button, .send-box form textarea {
    height: 44px;
    margin: 0 2px;
}
.send-box form button i {
    font-size: 13px;
}
.chatperson_view {
    padding: 10px;
    background: #fff;
}
.attach input#upload {
    box-shadow: none !important;
    border: 0px solid #ccc;
}
#upload {
    display: inline-block;
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}
.send-btns .button-wrapper span.label {
    position: relative;
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    cursor: pointer;
    color: #343945;
    font-weight: 400;
    text-transform: capitalize;
    font-size: 13px;
}
.send-btns .button-wrapper {
    position: relative;
    width: 50px;
    height: 40px;
    text-align: left;
    background: #F6F7FA;
    border-radius: 3px;
    padding: 5px 15px;
    margin-right: 5px;
    overflow: hidden;
    margin-left: 1%;
    display: flex;
    justify-content: center;
}
.send-btns .button-wrapper span.label i {
    font-size: 16px;
    margin-right: 10px;
}
.send-box {
    display: flex;
    padding: 15px 15px 15px 15px;
    border-top: 1px solid #ccc;
    align-items: flex-start;
}
.moreoption .navbar {
    padding: 0;
}
.msg-head h3 {
    color: #222;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0;
}


#messageList {
    padding: 10px !important;
    margin: 0 5px;
}

.message {
    max-width: max-content;
    clear: both;
    word-wrap: break-word;
    border-radius: 10px;
}

.sender {
    background-color: #dcf8c6;
    text-align: left;
    padding: 10px !important;
    margin-right: 10px !important;
    background: #e1ffc7;
    float: right;
    border-radius: 5px 0px 5px 5px;
    position: relative;
}
.receiver {
    background-color: #ffffff;
    text-align: left;
    padding: 10px !important;
    margin-right: 40px !important;
    border-radius: 5px 5px 5px 0px;
    position: relative;

}
.timestamp {
    display: block;
    font-size: 0.8em;
    color: #888;
}
li.message.sender:after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0px 0 13px 13px;
    border-color: transparent transparent transparent #e1ffc7;
    top: 1px;
    right: -7px;
}
li.message.receiver:after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0px 10px 10px 0;
    border-color: transparent #fff transparent transparent;
    top: 0;
    left: -7px;
}


.msg-body::-webkit-scrollbar-track
{
    border: 1px solid #ccc;
    background-color:#adb5bd;
}

.msg-body::-webkit-scrollbar
{
    width: 10px;
    background-color: #adb5bd;
}

.msg-body::-webkit-scrollbar-thumb
{
    background-color: #ccc;  
}
.message_img {
    background: #fff !important;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}
 #chatContainer:before {
    background-color: #f5f5fc;
    content: '';
    background-image: url(../../../images/background_wall.webp);
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.3;
    pointer-events: stroke;
    position: absolute;
    left: 0;
    right: 0;
    z-index: -1;
    width: 100%;
    height: 56vh;
    top: 0;
}
  #chatContainer {width: 100%;margin: auto;padding: 20px;}#messageList {list-style-type: none;padding: 0;}#messageList li {padding: 5px 0;display: flex;}#messageList li.sent {justify-content: flex-end;width: 60%;margin-left: auto;}#messageList li.received {width: 60%;margin-right: auto;justify-content: flex-start;}.send-box textarea {width: calc(100% - 60px);margin-right: 10px;}.message {padding: 10px;border-radius: 5px;}.sent .message {background-color: #005c4b;color: #fff;}.received .message {background-color: #202C32;
    color: #fff;}.badge {font-weight: bold;color: #14b74d !important;margin-left: 10px;border: 1px solid #14b74d;border-radius: 100%;}.file {position: relative;display: flex;justify-content: center;align-items: center;}.file > label {font-size: 1rem;font-weight: 300;cursor: pointer;outline: 0;user-select: none;border-color: rgb(216, 216, 216) rgb(209, 209, 209) rgb(186, 186, 186);border-style: solid;border-radius: 4px;border-width: 1px;background-color: hsl(0, 0%, 100%);color: hsl(0, 0%, 29%);padding-left: 14px;padding-right: 13px;padding-top: 9px;padding-bottom: 9px;display: flex;justify-content: center;align-items: center;}

    .file > input[type='file'] {width: 68px;position: absolute;font-size: 0px;border: 0px !important;top: 0;height: 44px;opacity: 0;background: red;} 

   

    @media (max-width: 767px) {
.chat-area {
    display: block !important;
    margin-top: 80px !important;
    height: auto !important;
}
ul#user-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    margin-top: 10px !important !important;
}
body .chatlist .nav-tabs li a {
    border-bottom: 0px solid #ffffff9e !important;
}
.ms-3 {
    margin-left: 0rem !important;
}
.chatlist h3 {
    font-size: 12px !important;
}
.chatlist p {
    font-size: 12px !important;
}
    .chatlist {
    width: 100% !important;
}
body .chatlist .nav-tabs li a {
    padding: 5px;
    background: #f1f1f1;
    margin: 2px;
    height: 132px;
    overflow-y: auto;
}
.chatlist {
    padding: 10px !important;
}
.chatlist .nav-tabs li.active a {
    border-bottom: 3px solid green !important;
}
.profile_img .submit-field {
    width: 100px !important;
}

}