.botaoChat {
    float: right;
    padding: 3px 5px 8px 5px;
    cursor: pointer;
    height: 14px;
    width: 90px;
    background: #ED2224 !important;

    z-index: 9999;
    position: fixed !important;
    bottom: 0;
    right: 6px;

    -moz-border-radius: 5px 5px 0 0 !important; /* FF1+ */
    -webkit-border-radius: 5px 0 0 0 !important; /* Saf3-4 */
    border-radius: 5px 5px 0 0 !important; /* Opera 10.5, IE 9, Saf5, Chrome */
}

.botaoChat.offline {
    background-color: #999 !important
}

.boxUser {
    position: fixed;
    bottom: 0;
    top: 48px;
    right: 0;
    width: 172px;
    border-left: 1px solid #CECECE;
    background: #FFFFFF;
    padding-bottom: 0 !important;
}

.boxUser.overlay {
    position: absolute;
}

.boxUser .offline {
    background-color: #CCC;
    z-index: 2;
    opacity: 0.5;
    width: 100%;
    height: 100%;
    position: absolute;
}

.boxUser .msgConectando {
    background-color: white;
    width: 208px;
    height: 60px;
    padding-top: 18px;
    text-align: center;
    z-index: 2;
    position: fixed;
    bottom: 0;
    color: red;
}

.chat {
    background: #FDFDFD;
    -moz-box-shadow: 0 0 5px #ececec;
    -webkit-box-shadow: 0 0 5px #ececec;
    box-shadow: 0 0 5px #ececec;
    width: 100%;
}

.lista_usuarios {
    height: calc(100% - 90px);
}

.listaChatItem {
    padding: 0 !important;
}

.block-fluid.users{
    border-left: 0;
}

.ferramentas_chat{
    padding: 2px 0;
    position: absolute;
    background-color: #E4E8ED;
    width: 100%;
    bottom: 25px;
}

.ferramentas_chat input {
    width: 100%;
}

.botaoCriarGrupo{
    padding:4px 46px !important;
    margin-top: 2px;
}

/* conversa */

#chatboxtab {
    height: 34px;
    bottom: 17px;
    padding-right: 168px;
    right: 0;
    z-index: 777;
    position: fixed;
    top: auto;
    width: auto;
}

.chatboxhead {
    background: linear-gradient(to bottom, #71a7e1 , #5884b3 ) !important;
    color: #FFFFFF !important;
    display: flex;
}

.chatboxhead.novo_evento{
    background: #ed2224 !important;
}

.chatboxtitle {
    /*float: left;*/
    padding: 7px 0 0 4px;
    font-weight: bold;
    /*width: calc(100% - 52px);
    box-sizing: border-box;*/
    font-size: 12px;
    white-space: nowrap;;
    overflow: hidden;
    flex: 1;
}

.chatboxtitle textarea {
    height: 20px !important;
    width: 200px !important;
    resize: none;
    border: 0;
    padding: 0 2px;
    font-size: 12px;
}

.chatboxoptions {
    list-style: none;
    display: flex;
}

.chatboxoptions i {    
    margin-left: 0 !important;
}

.chatboxoptions i:first-child {
    padding-right: 10px;
}

.chatboxoptions i:last-child {
    padding-right: 10px;
}

.chatboxoptions a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-family: Verdana, Arial, "Bitstream Vera Sans", sans-serif;
}

.conversa {
    float: right;
    position: relative;
    width: 200px;
    margin-right:5px;
}

.conversa.aberta {
    top: -278px;
}

.conversa.minimizada {
    top: -9px;
}

.conversa.fechada {
    display: none;
}

.conversa:first-of-type {
    margin-right: 8px;
}

.chatboxcontent {
    font-family: arial, sans-serif;
    font-size: 11px;
    color: #333333;
    height: 250px;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    border-left: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
    border-bottom: 1px solid #eeeeee;
    background-color: #e5e5e5;
    line-height: 1.3em;
    box-sizing: border-box;
}

.chatboxcontent .discussion {
    list-style: none;
    background: #e5e5e5;
    margin: 0;
}

.chatboxcontent .discussion li {
    padding: 0.2rem;
    overflow: hidden;
    display: flex;
}

.chatboxcontent .discussion .avatar {
    width: 25px;
    position: relative;
}

.chatboxcontent .discussion .avatar img {
    display: block;
    width: 22px;
    height: 22px;
}

.chatboxcontent p {
    padding: 1px 3px 1px 5px;
    margin: 0;
    clear: both;
}

.chatboxcontent .nomeMensagem {
    border-bottom: 1px dotted #cccccc;
    width: 100%;
}

.chatboxcontent .nomeMensagem strong {
    padding: 5px;
}

.chatboxcontent .other .avatar::after {
    content: "";
    position: absolute;
    top: 0;
    right: -10px;
    width: 0;
    height: 0;
    border: 5px solid white;
    border-left-color: transparent;
    border-bottom-color: transparent;
}

.chatboxcontent .self {
    /* switch horizontal layout */
    justify-content: flex-end;
    /* switch vertical layout */
    align-items: flex-end;
}

.chatboxcontent .self .messages {
    order: 1;
    border-bottom-right-radius: 0;
    background-color: #cfd8dc;
}

.chatboxcontent .self .avatar {
    order: 2;
}

.chatboxcontent .self .avatar::after {
    order: 2;
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border: 5px solid white;
    border-right-color: transparent;
    border-top-color: transparent;
    border-left-color: #cfd8dc;
    border-bottom-color: #cfd8dc;
}

.chatboxcontent .messages {
    background: white;
    padding: 6px 6px 0 6px;
    border-radius: 2px;
    margin-left: 10px;
}

.chatboxcontent .messages p {
    font-size: 0.8rem;
    word-wrap: normal;
}

.chatboxcontent .messages time {
    font-size: 0.7rem;
    color: #7aacde;
}

.chatboxinput {
    width: 100%;
    border-bottom: 1px solid #cccccc;
}

.chatboxtextarea {
    width: 100%;
    height: 100%;
    padding: 6px 3px 3px 3px;
    border-top: 1px solid #CCC;
    margin: 0;
    resize: none;
    overflow: hidden;
    background: #FFFFFF;
    border-radius: 0;
}

/* end conversa */


@media only screen and (min-width: 768px) {
    .boxUser {
        width: 212px;
    }

    .lista_usuarios {
        padding: 1px;
        position:relative;
        height: calc(100% - 93px);
    }

    .chatUsuario div {
        padding-top: 7px;
        padding-left: 10px;
        font-size: 12px;
    }

    /*  CHAT  */
    .botaoChat {
        height: 16px;
        width: 190px;
    }

    .chat {
        bottom: 30px;
        top: 0;
        right: 0;
        z-index: 1000;

        border-left: 1px solid #CCC;
        width: 222px;
    }

    .listaChat {
        float: left;
        width: 100%;
        border-bottom: 1px dotted #cccccc;
        cursor: pointer;
        font-size: 11px;
    }

    .listaChatHover {
        float: left;
        width: 100%;
        border-bottom: 1px dotted #254B72;
        cursor: pointer;
        font-size: 11px;
        background: #FDFDFD;
    }

    .ferramentas_chat{
        width: auto;
        padding: 2px;
        bottom: 27px;
    }

    .botaoCriarGrupo{
        padding:4px 56px !important;
    }

    #chatboxtab {
        padding-right: 206px;
    }

    .conversa {
        width: 264px;
        margin-right: 6px;
    }

    .conversa.aberta {
        top: -323px;
    }

    .conversa:first-of-type {
        margin-right: 10px;
    }

    .chatboxcontent {
        height: 280px;
    }

    .chatboxcontent .discussion .avatar img {
        width: 25px;
        height: 25px;
    }
}

/* CUSTOMIZAÇÃO */
.boxUser {
    z-index: 16;
}

#chatboxtab {    
    height: 0;
    bottom:0;
    z-index: 1030;    
}

#chatboxtab .conversa {
    transition: all .3s ease;
}

.conversa.aberta {    
    top: 0;
    transform: translateY(-100%);
}

.conversa.minimizada {
    top: -43px;
    transform: none;
}

.chatboxtextarea {
    height: initial!important;
    overflow-y: auto;
    padding: 10px;
}

.chatboxtextarea::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

.chatboxtextarea::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: rgba(0,0,0,0.3)
    ;
}

.chatboxcontent::-webkit-scrollbar {
    width: 6px;
    background: rgba(0,0,0,0.2)
;
}

.chatboxcontent::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: rgba(0,0,0,0.3)
    ;
}

