/* *******************************
scroll style
******************************** */

/* width */
.divChat ::-webkit-scrollbar {
  width: 8px;
}

/* Track */
.divChat ::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
 
/* Handle */
.divChat ::-webkit-scrollbar-thumb {
  background: #DFDFDF; 
}

/* Handle on hover */
.divChat ::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 186, 247,0.4);
}

/* *******************************
scroll style
******************************** */

.newChat{
    font-weight: bold !important;
    color: #EE0000 !important;
    text-transform: uppercase;
}

fieldset.chat {
    border-top: solid 1px #baeef8 !important;
    padding: 0 10px 10px 50%;
    border-bottom: none;
}
  
legend.chat {
    width: auto !important;
    border: none;
    padding-left: 4px;
    padding-right: 4px;
    font-size: 0.7rem;
    background-color: #FFF;
}

.float-none {
    float: none!important;
}

.mychat-title {
    color: #00BCE3 !important;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    font-size: 1.6rem;
    text-decoration: none;
    white-space: nowrap;
    font-weight: bolder;
  }

.mycaht-icon {
    font-size: 1.2rem;
    padding:2px 0px;
    margin-right: 4px !;
}

.mychat-bg{
    background-color:  rgb(246, 246, 246, 1) !important; 
    border-top: 1px solid #baeef8; 
  }

ol, ul {
    padding-left: 0.1rem !important;
    padding-right: 0.1rem !important;
}

.no-inline{
    display:contents !important;
}

.sigla{
    padding:8px 0px 0px 0px;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    font-weight: bolder;
    font-size: 1.1rem;

}

.sigla-yellow{
    background-color: hwb(49 31% 3%);
    color: #000;
}

.sigla-green{
    background-color: hwb(93 41% 4%);
    color: #000;
}

.sigla-cyan{
    background-color: rgb(79, 186, 247);
    color: #FFF;
}

.sigla-indigo{
    background-color: rgba(102, 16, 242,0.8);
    color: #FFF;
}

.chat-list .sigla-red{
    background-color: #EE0000;
    color: #FFF;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
    }
  }

.chat-header{
    min-height: 60px !important;
}
/* *******************************
message-area
******************************** */

.message-area {
    height: auto;
    overflow: hidden;
    padding: 8px 0px 4px 0px;
    background: #f5f5f5;
}

.chat-area {
    position: relative;
    width: 100%;
    background-color: #fff;
    border-radius: 0.3rem;
    height: 90vh;
    overflow: hidden;
    min-height: calc(100% - 1rem);
}

.chatlist {
    outline: 0;
    height: 100%;
    overflow: hidden;
    width: 300px;
    float: left;
    padding: 15px;
}

.chat-area .modal-content {
    border: none;
    border-radius: 0;
    outline: 0;
    height: 100%;
}

.chat-area .modal-dialog-scrollable {
    height: 100% !important;
}

.chatbox {
    width: auto;
    overflow: hidden;
    height: 100%;
    border-left: 1px solid #ccc;
}

.chatbox .modal-dialog,
.chatlist .modal-dialog {
    max-width: 100%;
    margin: 0;
}

.msg-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-area .form-control {
    display: block;
    width: 80%;
    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;
}

.chat-area .form-control:focus {
    outline: 0;
    box-shadow: inherit;
}

a.add img {
    height: 36px;
}

.chat-area .nav-tabs {
    border-bottom: 1px solid #dee2e6;
    align-items: center;
    justify-content: space-between;
    flex-wrap: inherit;
}

.chat-area .nav-tabs .nav-item {
    width: 100%;
}

.chat-area .nav-tabs .nav-link {
    width: 100%;
    color: #180660;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-transform: capitalize;
    margin-top: 5px;
    margin-bottom: -1px;
    background: 0 0;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.chat-area .nav-tabs .nav-item.show .nav-link,
.chat-area .nav-tabs .nav-link.active {
    color: #222;
    background-color: #fff;
    border-color: transparent transparent #000;
}

.chat-area .nav-tabs .nav-link:focus,
.chat-area .nav-tabs .nav-link:hover {
    border-color: transparent transparent #000;
    isolation: isolate;
}

.chatlist {
    outline: 0;
    height: 100%;
    overflow: hidden;
    width: 300px;
    float: left;
    padding: 0px;
}

.chatlist .bg-top{
    background-color: #E8E8E8 !important;
}

.chat-list h3 {
    color: #222;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    text-transform: capitalize;
    margin-bottom: 0;
}

.chat-list p {
    color: #343434;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2 !important;
    text-transform: capitalize;
    margin-bottom: 0;
}

.chat-list a.d-flex {
    margin-bottom: 15px;
    position: relative;
    text-decoration: none;
}

.chat-list .active {
    display: block;
    content: '';
    clear: both;
    position: absolute;
    bottom: 4px;
    left: 34px;
    height: 16px;
    width: 16px;
    font-size: 1.2rem;
    color: #EE0000 !important;
}

.msg-head h3 {
    color: #222;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0;
}

.msg-head p {
    color: #343434;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-transform: capitalize;
    margin-bottom: 0;
}

.msg-head {
    padding: 8px;
    border-bottom: 1px solid #ccc;
}

.moreoption {
    display: flex;
    align-items: center;
    justify-content: end;
}

.moreoption .navbar {
    padding: 0;
}

.moreoption li .nav-link {
    color: #222;
    font-size: 16px;
}

.active-todolist .moreoption li .nav-link {
    color: #FFF;
}

.moreoption .dropdown-toggle::after {
    display: none;
}

.moreoption .dropdown-menu[data-bs-popper] {
    top: 100%;
    left: auto;
    right: 0;
    margin-top: -0.4rem;
}

.msg-body ul {
    overflow: hidden;
}

.msg-body ul li {
    list-style: none;
    margin: 4px 0;
}

.msg-body ul li.sender {
    display: block;
    width: 100%;
    position: relative;
}

.msg-body .pMessaggio > p {
    line-height: 0.95 !important;
}

.msg-body ul li.sender .pMessaggio {
    /*color: #000;
    font-size: 12px;
    font-weight: 400;*/
    line-height: 1.4 !important;
    padding: 6px 8px 1px 8px;
    background: #f8e267;
    display: inline-block;
    border-radius: 6px;
    margin-bottom: 1px;
}

.msg-body ul li.sender .pMessaggio b {
    display: block;
    /*color: #180660;
    font-size: 14px;
    font-weight: 500;*/
    line-height: 1.5;
}

.msg-body .divMsgRisposta {
    padding: 4px 8px 4px 8px !important;
    margin-bottom: 8px !important;
    border-radius: 0.3rem;
}

.msg-body ul li.repaly {
    display: block;
    width: 100%;
    text-align: right;
    position: relative;
}

.msg-body ul li.repaly .pMessaggio {
    /*color: #fff;
    font-size: 12px;
    font-weight: 400;*/
    line-height: 1.4 !important;
    padding: 6px 8px 1px 8px;
    background: #46dcfa;
    display: inline-block;
    border-radius: 6px;
    margin-bottom: 1px;
}

.msg-body ul li.repaly .pMessaggio b {
    display: block;
    /*color: #061061;
    font-size: 14px;
    font-weight: 500;*/
    line-height: 1.5;
}

.msg-body ul li.repaly:after {
    display: block;
    content: '';
    clear: both;
}

.chatbox .btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0 rgba(13,110,253,.25) !important;
    background-color: #f1db7b;
}

.max-w-msg{
    max-width: 80% !important;
}

.bg-risposta-msg {
    background-color: rgba(129,190,206,0.2) !important;
    border-radius: 0.4rem !important;
    max-width: 84% !important;
    font-size: 00.75rem;
  }
  
.bg-in-msg{
    background-color: #EEE !important;
}

.chatbox .minitext{
    font-weight: lighter !important;
    font-size: 0.7rem !important;
}

.my-icon-chat {
    font-size: 0.9rem;
    padding:2px 0px;
    font-weight:600;
  }

.time {
    display: block;
    color: #000;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 400;
}

li.repaly .time {
    margin-right: 2px;
    font-size: 10px;
}

li.sender .time {
    margin-left: 2px;
    font-size: 10px;
}

.divider {
    position: relative;
    z-index: 1;
    text-align: center;
}

.msg-body h6 {
    text-align: center;
    font-weight: normal;
    font-size: 11px;
    color: #222;
    background: #fff;
    display: inline-block;
    padding: 0 4px;
    margin-top: 6px;
    margin-bottom: 0;
}

.divider:after {
    display: block;
    content: '';
    clear: both;
    position: absolute;
    top: 12px;
    left: 0;
    border-top: 1px solid #baeef8;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.send-box {
    padding: 15px;
    border-top: 1px solid #ccc;
}

.send-box form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.send-box .form-control {
    display: block;
    width: 88%;
    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 button {
    border: none;
    background: #0d6efd;
    padding: 6px 4px 5px 4px;
    color: #fff;
    border-radius: 0.25rem;
    font-size: 16px;
    font-weight: 400;
    width: 16%;
    margin-left: 1%;
}

.send-box button:hover {
    background: #2a7efd;
}

.send-box button i {
    margin-right: 5px;
}

.send-btns .button-wrapper {
    position: relative;
    width: 125px;
    height: auto;
    text-align: left;
    margin: 0 auto;
    display: block;
    background: #F6F7FA;
    border-radius: 3px;
    padding: 5px 15px;
    float: left;
    margin-right: 5px;
    margin-bottom: 5px;
    overflow: hidden;
}

.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;
}

#upload {
    display: inline-block;
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.send-btns .attach .form-control {
    display: inline-block;
    width: 120px;
    height: auto;
    padding: 5px 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: #343945;
    background-color: #F6F7FA;
    background-clip: padding-box;
    border: 1px solid #F6F7FA;
    border-radius: 3px;
    margin-bottom: 5px;
}

.send-btns .button-wrapper span.label img {
    margin-right: 5px;
}

.button-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    text-align: center;
    margin: 0 auto;
}

button:focus {
    outline: 0;
}

.add-apoint {
    display: inline-block;
    margin-left: 5px;
}

.add-apoint a {
    text-decoration: none;
    background: #F6F7FA;
    border-radius: 8px;
    padding: 8px 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    color: #343945;
}

.add-apoint a svg {
    margin-right: 5px;
}

.chat-icon {
    display: none;
}

.closess i {
    display: none;
}

@media (max-width: 767px) {
    .chat-icon {
        display: block;
        margin-right: 5px;
    }
    .chatlist {
        width: 100%;
    }
    .chatbox {
        width: 100%;
        position: absolute;
        left: 1000px;
        right: 0;
        background: #fff;
        transition: all 0.5s ease;
        border-left: none;
    }
    .showbox {
        left: 0 !important;
        transition: all 0.5s ease;
    }
    .msg-head h3 {
        font-size: 14px;
    }
    .msg-head p {
        font-size: 12px;
    }
    .msg-head .flex-shrink-0 img {
        height: 30px;
    }
    .send-box button {
        width: 28%;
    }
    .send-box .form-control {
        width: 70%;
    }
    .chat-list h3 {
        font-size: 14px;
    }
    .chat-list p {
        font-size: 12px;
    }
    .msg-body ul li.sender .pMessaggio {
        font-size: 12px;
        padding: 6px 8px 1px 8px;
        border-bottom-left-radius: 6px;
        border-top-right-radius: 6px;
        border-bottom-right-radius: 6px;
    }
    .msg-body ul li.repaly .pMessaggio {
        font-size: 12px;
        padding: 6px 8px 1px 8px;
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
        border-bottom-left-radius: 6px;
    }
}