[page_name="ChatRoom"] {
    height: calc( 100vh - 140px);
    display: flex;
}
[page_name="ChatRoom"] .card-header.panel-heading {
    background: white;
    border-radius: 0 !important;
}

[page_name="ChatRoom"].maximized {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh !important;
    z-index: 99;
    background: var(--live-background-color);
}

[page_name="ChatRoom"].maximized .container-chat{
    height: calc(100vh - 234px) !important;
}

#chatroom {
    display: flex;
    flex-direction: row;
    flex: 1;
    margin: 25px;
    background: var(--live-background-color);
    box-shadow: var(--box-shadow);
    border-radius: var(--panel-border-radius);
}

#chatroom-atendimentos {
    border-radius: var(--panel-border-radius);
    flex: 1;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    min-width:380px;
    border-right: 1px solid var(--content-border-color);
}

#count-chat-filtros{
    position: absolute;
    right: 10px;
    font-size: 8px;
    top: 10px;
}

.chat-combos-info-row{
    background-color: #eceff4;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
}

.chat-combos-info-row .select2 {
    height: 28px !important;
    width: 28px !important;
    font-size: 12px!important;
    width: 300px !important;
}

.chat-combos-info-row .select2 .select2-selection {
    border-bottom-left-radius: 0px !important;
    border-top-left-radius: 0px !important;
}

.chat-combos-info-row .input-group-text{
    font-size: 14px !important;
    padding: 5px 7px !important;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
}

    


#chatroom-emptychat,
#chatroom-chat {
    flex: 4;
    position: relative;
}

#chatroom-chat form .card-body, #chatroom-chat form .tabpanel_chat{
    padding: 0px !important;
}

#chatroom-chat .card.panel {
    padding: 0px;
}

#chatroom-atendimentos .chatroom-filters{
    padding: 10px;
    border-bottom: 1px solid var(--content-border-color);
}

#chatroom-atendimentos .chatroom-filters .room_select_fila_atendimento_id
{
    width: calc(100% - 131px);
    font-size: 12px;
    float: left;
    margin-right: 4px;
}

#chatroom-filtros-avancado-container{
    width:300px;
}

#chatroom-filtros-avancado-container .btn{
    font-size: 12px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    min-height: 30px;
}

#chatroom-filtros-avancado-container .col-sm-12{
    padding-left:0px;
    padding-right:0px;
    width: 300px;
}

#chatroom-filtros-avancado-container label{
    width: 100%;
    font-size: 12px;
}

#chatroom-filtros-avancado-container .form-control{
    width: 300px;
    font-size: 12px;
    height: 40px;
}

#chatroom-filtros-avancado-container .tdate-group .tfield{
    height: 40px;
    font-size: 12px;
    width: 100%;
}

#chatroom-filtros-avancado-container span.tdate-group-addon{
    height: 40px;
    min-height: 25px;
    font-size: 12px !important;
    padding: 0px !important;
    width: 25px;

}

#chatroom-atendimentos .chatroom-filters i{
    cursor:pointer;
    float: right;
    /* margin-left:7px; */
    /* margin-top:5px; */
}

#chatroom-atendimentos .chatroom-filters i:hover, #chatroom-atendimentos .chatroom-filters i.fa-spin{
    color:#2ecc71;
}

#chatroom-atendimentos .item-atendimento .photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-position: center;
    background-size: contain;
}

#chatroom-atendimentos .item-atendimento .noreads{
    top: 25px;
    left: 25px;
    right: unset;
}

#chatroom-atendimentos .item-atendimento-ativo{
    background-color: #f4f4f4;
}


#chatroom-atendimentos {
    height: 100%;
}

#chatroom-atendimentos .photo[photo=''] {
    display: none;
}

.icon-canal-room{
    position: absolute;
    bottom: -5px;
    left: 35px;
    border-radius: 50%;
    padding: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.icon-canal-room.whatsapp {
    background: #4CAF50;
}

.icon-canal-room.facebook {
    color: white;
    background: #457ff5;
    width: 20px;
    height: 21px;
}

.icon-canal-room.instagram {
    background: #f07df0;
}

#chatroom-atendimentos .datahora {
    position: absolute;
    top: 5px;
    right: 5px;
}

#chatroom-atendimentos .photo-icon[photo=''] {
    display: flex !important;
    width: 60px;
    height: 60px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.chatroom-atendimento {
    height: 100%;
    overflow: auto;
    padding: 0px 0 10px 0px;
    direction: rtl;
}

.chatroom-atendimento>div {
    direction: ltr;
}

#chatroom-atendimentos .name-container {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#chatroom-atendimentos .name {
    width: 100%;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#chatroom-atendimentos .date {
    position: absolute;
    top: 0px;
    right: 0;
    font-size: 75%;
}

#chatroom-atendimentos .phone {
    font-size: 75%;
}

[data-situacao-id=""],
.chat_room_fila_atendimento:empty {
     display: none;
 }

.item-atendimento {
    display: flex;
    flex-direction: revert;
    justify-content: flex-start;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid #dfe4ed;
    padding: 10px;
    cursor: pointer;
    position: relative;
}

.popover {
    max-width: 350px;
}

.popover-body {
    padding: 0px !important;
}

.popover-body .panel-heading{
    color: #6d798f;
    background-color: #f7f8fc;
    border-color: #dde5ec;
    margin:0px;
}

.popover-body .panel-default{
    padding: 0px;
    margin: 0px;
    border: 0px;
}

.popover-body .panel-body{
    width: 100%;
    margin: 0px;
    border: 0px;
    padding: 15px;
    padding-top: 0px;
}

.popover-close{
    font-size:16px;
}

.popover-close:hover{
    cursor: pointer;
    color: #2ECC71;
}

#chatroom-chat:empty {
    background-image: url(../../../../app/images/bgchat.png);
    background-size: contain;
    background-color: #F7F4F4;
}

.item-atendimento.higlight {
    background: #c8dacb;
    transition: 3s;
}

.chatroom-preview {
    text-overflow: ellipsis;
    width: 290px;
    display: block;
    max-height: 15px;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.25;
    margin-top: 5px;
}

.context-atendimento {
    position: fixed;
    z-index: 9999999999999999999999;
    background: white;
    width: fit-content;
    height: fit-content;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid lightgrey;
    cursor: pointer;
}

#chatroom-atendimentos .item-atendimento .noreads[data-force="N"]:empty {
    display: none;
}

.chatroom-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    margin-bottom: 4px;
}

#chatroom-atendimentos .item-atendimento .chat_room_situacao_atendimento {
    width: 4px;
    height: 85px;
    border-radius: 4px;
}

.chatroom-title-acoes {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: row;
    gap: 4px;
}

.periodo-filtros-avancados {
    display: flex;
    width: 300px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.periodo-filtros-avancados-campo {
    flex: 1;
    width: 130px;
}

.periodo-filtros-avancados-divisor {
    flex: 0 0 auto;
    white-space: nowrap;
    color: #666;
    font-size: 0.9em;
}

.periodo-filtros-avancados input, 
.periodo-filtros-avancados select {
    width: 100% !important;
}
#tbutton_ver_filter {
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

#tbutton_ver_filter.filter-chat-active {
    background-color: var(--button-primary-background) !important;
    color: #fff !important;
}

#tbutton_ver_filter.filter-chat-active #count-chat-filtros {
    background-color: #fff !important;
    color: var(--button-primary-background) !important;
}

#tbutton_ver_filter:active {
    transform: scale(0.92);
}