/*Estilo Geral*/

/* Garantir que as notificações sempre apareçam acima de modais */
.notifyjs-corner {
    z-index: 9999 !important;
}

    .notifyjs-corner .notifyjs-wrapper {
        z-index: 9999 !important;
    }

    .notifyjs-corner .notifyjs-container {
        z-index: 9999 !important;
    }

#wrapper {
    height: 100%;
    display: flex;
    flex-direction: row;
}

#page-wrapper {
    max-height: 100% !important;
    min-height: 100% !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0px;
    flex: 1;
}

#mainchatreference,
#mainconsultpanel,
#mainconsultchat {
    height: 100%;
}

#copyrightverisys {
    font-size: 10px;
    text-align: center
}

.chat-session {
    position: relative;
}

.interaction-tabs {
    border: none;
    margin: 8px 8px -1px 8px;
}

.tab-content {
    margin: 0 8px;
    height: 100%;
}

    .tab-content > .active {
        display: flex !important;
        flex-direction: column;
    }

.tab-pane {
    height: 100%;
}


.sb1:before {
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    border-left: 10px solid #BBDEFB;
    border-right: 10px solid transparent;
    border-top: 10px solid #BBDEFB;
    border-bottom: 10px solid transparent;
    right: -18px;
    top: 6px;
}

.sb2:before {
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    border-left: 10px solid transparent;
    border-right: 10px solid #FFFFFF;
    border-top: 10px solid #FFF;
    border-bottom: 10px solid transparent;
    left: -18px;
    top: 6px;
}

.sb3::before {
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    border-left: 10px solid transparent;
    border-right: 10px solid #DEDEDE;
    border-top: 10px solid #DEDEDE;
    border-bottom: 10px solid transparent;
    left: -18px;
    top: 6px;
}

.control-label-margin {
    margin: 3px;
}

label .char-limit {
    margin: 3px;
}

.flex-container {
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.discussion {
    height: 100%;
}

.message {
    margin-bottom: 10px;
}

.chat-discussion-body,
.chat-discussion-footer {
    margin: 5px 15px;
}

.chat-discussion-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    background-color: #1ab394;
    border-color: #1ab394;
    max-height: 6%;
    height: 6%
}

.discussion-header {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    color: white;
}

    .discussion-header > * {
        margin: auto 0;
    }

.chat-discussion-body {
    height: 100%;
    max-height: 70%;
}

    .chat-discussion-body .chat-discussion {
        height: 100% !important;
    }

.chat-discussion-footer {
    height: 25%;
    max-height: 24%;
}

    .chat-discussion-footer > .chat-message-form {
        height: 100%;
    }


/*Mensagens discussão*/
.chat-message-row {
    display: flex;
    padding: 0 25px;
}

.message-content {
    display: block;
}

a.message-content {
    color: blue;
}

    a.message-content:hover {
        text-decoration: underline;
    }

.message-chat {
    word-break: break-word;
    border-radius: 10px;
    min-width: 40%;
    max-width: calc(100% - 120px);
}

    .message-chat.message-media {
        min-width: 20%;
        max-width: 33%;
    }

    .message-chat.message-image {
        min-width: 25%;
        max-width: 30%;
    }

    .message-chat.message-video {
        min-width: 33%;
        max-width: 33%;
    }

    .message-chat.message-audio {
        min-width: max-content;
        max-width: max-content;
    }


.message-author-chat {
    font-size: 9px;
    display: inline-block;
    color: black;
}

/*Estilo Agente*/
.chat-message-right {
    background-color: #BBDEFB;
    color: black;
    text-align: right;
    margin-left: auto;
}


/*Estilo Cliente*/

.chat-message-left {
    background-color: white;
    color: black;
    text-align: left;
    margin-right: auto;
}


/*Estilo Sistema*/

.chat-message-sistema {
    background-color: #0d47a1;
    color: white !important;
    word-break: break-word;
    max-width: calc(100% - 60px);
    width: 60%;
    margin: 5px auto;
    text-align: center;
}

    .chat-message-sistema .message-author-chat {
        color: white;
    }

.chat-separator {
    opacity: 0.7;
}

    .chat-separator hr {
        width: 100%;
        border: 1px solid #0d47a1;
        margin: auto 5px;
    }

    .chat-separator span {
        color: #0d47a1;
        text-align: center;
    }

/*Estilo Chat Supervisor*/
.chat-consult {
    overflow-y: auto;
    padding: 5px;
    scrollbar-width: thin;
    scrollbar-color: #bfbfbf transparent;
}

    .chat-consult::-webkit-scrollbar {
        width: 6px;
    }

    .chat-consult::-webkit-scrollbar-thumb {
        background: #bfbfbf;
    }

    .chat-consult > * {
        margin-bottom: 5px;
        display: flex;
    }

.chat-supervisor-content {
    display: block;
    word-break: break-word;
}

.chat-supervisor-message {
    padding: 5px;
    max-width: 80%;
    color: black;
    font-size: 12px;
    position: relative;
}

.desabilitar {
    pointer-events: none;
    opacity: 0.6;
}

.bloquear {
    cursor: not-allowed;
}

.time-left:after,
.time-right:before {
    color: rgb(170, 170, 170);
    position: absolute;
    bottom: 0px;
    font-size: 10px;
    display: block;
}

.time-left:after {
    content: attr(data-horario);
    color: rgb(170, 170, 170);
    right: -30px;
}

.time-right:before {
    content: attr(data-horario);
    left: -30px;
}

.chat-supervisor-message-left {
    flex-direction: row;
    text-align: start;
}


    .chat-supervisor-message-left .chat-supervisor-message {
        background-color: rgba(160, 160, 160, 0.3);
        border-radius: 0 5px 5px 5px;
    }

.chat-supervisor-message-right {
    flex-direction: row-reverse;
    text-align: end;
}

    .chat-supervisor-message-right .chat-supervisor-message {
        background-color: rgba(85, 193, 207, 0.5);
        border-radius: 5px 5px 0 5px;
    }

#btn_entrar {
    background-color: #0D47A1
}

/*Estilo Bot*/

#chat_message_left_bot {
    background-color: #dedede;
    color: black;
    border-color: #cffae2;
    border-radius: 12px;
    margin-left: 3%;
    word-break: break-word;
    max-width: calc(100% - 120px);
    min-width: 40%;
    float: left !important;
    margin-top: 5px;
}

#message_text_left_bot {
    color: black
}

#author_chat_left_bot {
    color: black;
    font-size: 9px;
}

#date_message_left_bot {
    color: black;
    font-size: 9px;
}

/*#metadesigner {*/
.metadesigner {
    background-color: #1ab394;
    border-color: #1ab394;
    align-content: center;
    text-align: center;
    display: flex;
    justify-content: space-between;
}

.discussion-btn-group {
    margin: 1px;
    width: auto;
    display: flex;
}

.btn-white.btn-sm {
    max-height: 35px;
}
/*#metacolor {*/
.metacolor {
    color: white;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    margin: auto 0;
}


/*Estilo Navegação barra lateral*/

#nav_notificacaointeracao {
    display: none
}

#nav_notificacao_consulta {
    display: none
}

/* Area de digitação */

/*#Div_btn_enviar {
    background-color: white;
    float: right;
    margin-top: -45px;
    margin-right: -7px;
    display: inline-block;
    width: 80px;
    height: 30px;
    border-radius: 30px;
}*/

.chat-message-form {
    display: flex;
    flex-direction: column;
    height: 30%;
    margin-bottom: 5px;
}

.text-group {
    display: flex;
    flex-direction: row;
}

.message-input {
    height: 100% !important;
    resize: none;
    border-radius: 5px 0 0 5px;
    overflow: auto;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: lightslategray transparent;
}

    .message-input::-webkit-scrollbar {
        width: 6px;
    }

    .message-input::-webkit-scrollbar-thumb {
        background: lightslategray;
    }

.label-group {
    width: 95%;
    margin: 0;
    font-size: 11px;
    line-height: 11px;
    display: flex;
    justify-content: space-between;
}

.chat-btn-group {
    width: 5% !important;
}

.btn-toolbar-group {
    margin-top: 3px;
}

/* Tribute */

.tribute-container {
    background-color: #efefef;
    border: 1px solid #efefef;
    border-radius: 4px;
    scrollbar-color: #8d969e transparent;
    scrollbar-width: thin;
}

    .tribute-container::-webkit-scrollbar {
        width: 6px;
    }

    .tribute-container::-webkit-scrollbar-thumb {
        background-color: #8d969e;
        border-radius: 12px;
    }

    .tribute-container ul {
        margin-top: 0 !important;
    }

    .tribute-container li:hover {
        background-color: #d3d3d3;
    }

/* Emoji */

.btn-emojis {
    font-size: 15px;
    padding: 3px 6px;
    height: 30px;
    width: 34px;
}

.emoji-icon {
    position: relative;
    top: -1px;
    right: 1px;
    line-height: 1;
}

.emoji-container {
    height: 155px;
    width: 240px;
    position: absolute;
    padding: 6px;
    right: 24px;
    bottom: 22px;
    z-index: 9;
    box-shadow: 0 7px 14px 0 rgba(0,0,0,.12);
}

    .emoji-container:before {
        content: "";
        width: 0px;
        height: 0px;
        position: absolute;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid #ffffff;
        border-bottom: 10px solid transparent;
        right: 28px;
        top: 151px;
    }

    .emoji-container.none {
        opacity: 0;
        visibility: hidden;
    }

        .emoji-container.none:before {
            opacity: 0;
            visibility: hidden;
        }

.emoji-grid {
    width: 100%;
    height: 100%;
    user-select: none;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color: #8d969e transparent;
    scrollbar-width: thin;
}

    .emoji-grid::-webkit-scrollbar {
        width: 6px;
    }

    .emoji-grid::-webkit-scrollbar-thumb {
        background-color: #8d969e;
        border-radius: 12px;
    }

.emoji-format {
    font-size: 18px;
    cursor: pointer;
}

/* Respostas rápidas*/

.answer-container {
    height: 320px;
    width: 450px;
    position: absolute;
    padding: 6px;
    right: 60px;
    bottom: 22px;
    z-index: 9;
    box-shadow: 0 7px 14px 0 rgba(0,0,0,.12);
}

    .answer-container:before {
        content: "";
        width: 0px;
        height: 0px;
        position: absolute;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid #ffffff;
        border-bottom: 10px solid transparent;
        right: 28px;
        top: 316px;
    }

    .answer-container.none {
        opacity: 0;
        visibility: hidden;
    }

        .answer-container.none:before {
            opacity: 0;
            visibility: hidden;
        }

.answer-list {
    width: 100%;
    height: 80%;
    user-select: none;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color: #8d969e transparent;
    scrollbar-width: thin;
}

    .answer-list::-webkit-scrollbar {
        width: 6px;
    }

    .answer-list::-webkit-scrollbar-thumb {
        background-color: #8d969e;
        border-radius: 12px;
    }

.answer-item {
    display: flex;
    margin-right: 5px;
    margin-bottom: 5px;
}

.answer-text {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

    .answer-text:hover {
        background-color: #f7f7f7d6;
    }

.answer-group-button {
    width: auto;
    height: auto;
    border: 1px solid;
    border-color: #e5e6e7;
    border-left: 0;
    display: flex;
    align-items: center;
}

.answer-btn {
    padding: 0.6vh 0.7vw;
    margin-right: 1px;
}

.answer-empty {
    color: #a94442;
    font-weight: 600;
    background-color: inherit;
    border: 1px solid #e7eaec;
    display: block;
    margin-bottom: -1px;
    padding: 10px 15px;
    position: relative;
    text-align: center;
    border-radius: 4px;
}

/* Arquivo temporário */
.btn-temporary-files {
    width: 34px;
}

/* Gravador de Áudio */

.btn-audio-recorder {
    width: 34px;
}

.btn-audio-recorder.btn-recording {
    background-color: #c0392b !important;
    border-color: #a93226 !important;
    animation: pulse-btn 1.2s ease-in-out infinite;
}

@keyframes pulse-btn {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.65; }
}

.audio-recorder-container {
    min-width: 280px;
    position: absolute;
    padding: 10px 12px;
    right: 60px;
    bottom: 22px;
    z-index: 9;
    border-radius: 4px;
    box-shadow: 0 7px 14px 0 rgba(0,0,0,.15);
}

    .audio-recorder-container:before {
        content: "";
        width: 0px;
        height: 0px;
        position: absolute;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid #ffffff;
        border-bottom: 10px solid transparent;
        right: 12px;
        bottom: -20px;
    }

    .audio-recorder-container.none {
        opacity: 0;
        visibility: hidden;
    }

        .audio-recorder-container.none:before {
            opacity: 0;
            visibility: hidden;
        }

.audio-recorder-phase {
    align-items: center;
    gap: 8px;
}

.audio-rec-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #c0392b;
    flex-shrink: 0;
    animation: pulse-dot 1s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%       { transform: scale(1.4); opacity: 0.6; }
}

.audio-recorder-timer {
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 38px;
}

.audio-recorder-actions {
    display: flex;
    gap: 6px;
    margin-left: 4px;
}

.audio-recorder-container audio {
    height: 32px;
    flex: 1;
    min-width: 160px;
}

.temporary-file-container {
    height: 175px;
    width: 370px;
    position: absolute;
    padding: 6px;
    right: 97px;
    bottom: 22px;
    z-index: 9;
    box-shadow: 0 7px 14px 0 rgb(0 0 0 / 12%);
}

    .temporary-file-container:before {
        content: "";
        width: 0px;
        height: 0px;
        position: absolute;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid #ffffff;
        border-bottom: 10px solid transparent;
        right: 28px;
        top: 171px;
    }

    .temporary-file-container.none {
        opacity: 0;
        visibility: hidden;
    }

        .temporary-file-container.none:before {
            opacity: 0;
            visibility: hidden;
        }


.temporary-file-details {
    width: 100%;
    height: 75%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 3px;
}

.temporary-file-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .temporary-file-label.success {
        border-color: #1ab394;
    }

    .temporary-file-label.danger {
        color: #a94442;
        font-weight: 600;
        border-color: #a94442;
        font-size: 13px;
    }

    .temporary-file-label span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 90%;
    }


.temporary-file-buttons {
    width: 100%;
    height: 25%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.temporary-file-result {
    width: 100%;
    height: 66%;
    border-radius: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .temporary-file-result.success {
        border-color: #1ab394;
        cursor: pointer;
    }

        .temporary-file-result.success:hover {
            text-decoration: underline;
        }

    .temporary-file-result.danger {
        border-color: #a94442;
        color: #a94442;
        font-weight: 600;
    }

.temporary-file-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

/*
    .chat-btn-group button {
        margin: 0 5px;
    }

.btn-enviar {
    width: 90px;
    height: 40px;
    border-radius: 30px;
}*/
/*
.btn-round-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}*/
/*******************/
.txtConsulta {
    margin-top: 0;
    display: inline-block;
    width: 90.5%;
    padding-top: 10px;
}

#btn_enviar_consulta {
    width: 9%;
    height: 41px;
    border-radius: 30px;
    float: right;
    overflow: hidden;
    margin-right: -2px
}

#side-navbar {
    height: 100%;
    background-color: #2f4050;
}

    #side-navbar .sidebar-collapse {
        max-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    #side-navbar .toggle-navbar-btn {
        position: absolute;
        right: -30px;
        top: 40px;
        width: 30px;
        height: 40px;
        padding: 5px 5px 2px 0px;
        background-color: #2f4050;
        color: white;
        border: none;
        border-radius: 0 10px 10px 0;
        cursor: pointer;
        display: none;
    }

@media only screen and (max-width:768px) {
    #side-navbar {
        display: block;
        position: fixed;
        width: 220px;
        left: calc(220px * -1);
        transition: left .5s;
    }

        #side-navbar .toggle-navbar-btn {
            display: block;
        }

        #side-navbar.showing {
            left: 0;
        }

    .nav-tabs li:first-child {
        margin-left: 25px;
    }
}

@media only screen and (max-height: 298px) {
    #config-footer {
        position: unset !important;
    }
}

#config-footer {
    position: absolute;
    background: rgba(255, 255, 255, 0.90);
    width: 100%;
    bottom: 0;
    padding: 3px 10px;
    display: flex;
    justify-content: space-between;
}

.config-icon {
    font-size: 140%;
    top: 0px;
}

.nav-name {
    color: white;
    padding: 0;
    width: auto;
}

h2.nav-name {
    margin-top: 0px;
    color: white;
    padding: 0;
}

h4.nav-name {
    margin: 0;
}

h5.nav-name {
    margin: 5px 0 0 0;
    /*margin: 0 0 15px 5px;*/
}

h6.nav-name {
    margin: 5px 0 0 0;
    /*margin: 0 0 15px 5px;*/
}

.nav-user-info > .btn {
    width: 100%;
}

.nav-img {
    margin-left: 9%;
    min-height: 45px;
    min-width: 45px;
    height: 25%;
    width: 23%;
}

.nav-container {
    display: flex;
}

    .nav-container > div {
        padding: 0 15px;
    }

.nav-profile {
    margin: 0 0 12px -15px;
    display: flex;
    align-items: flex-start;
}

.pause-menu {
    margin: 0;
}


#side-menu .nav-header {
    padding: 6px;
}

#side-menu .btn {
    padding: 3px 16px;
}

.Consulta {
    display: inline-block;
    width: 100%;
    border: 2px rgba(0,0,0,.4) solid;
    height: 45px;
    margin-top: 2vh;
    background-color: #fff;
    padding: 0;
    border-radius: 30px;
    display: none;
}

/*Bilhete*/

.ticket-body {
    max-height: 60vh;
    overflow-y: auto;
}

.ticket-label {
    background-color: #2f4050;
    color: white;
    border-radius: 8px 8px 0 0 !important;
}

.ticket-input {
    background-color: #fefefe;
}

.ticket-discussion {
}

.ticket-button-group {
    padding: 0px !important;
}

.ticket-btn {
    border: 1px solid black;
    padding: 0.6vh 0.7vw;
}

.ticket-close-btn {
    float: right !important;
    padding: 0 0.5vw;
    border-radius: 5px;
    background: #ec4758;
}

@media screen and (max-width:1200px) {
    #chat_message_left_agente {
        margin-right: 20px
    }
}

/******/

/*Controle de Volume*/
input[type=range]::-moz-focus-outer {
    border: 0;
}


#audioSliderDiv {
    display: flex;
    background: white;
    position: relative;
    width: max-content;
    padding: 1px 3px;
    border: 1px solid #d2d2d2;
    border-radius: 3px;
    margin-top: 5px;
}

.audio-slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 85% !important;
    background-color: rgb(25 170 141);
    height: 5px;
    cursor: pointer;
    outline: none;
    margin: auto;
    border: 1px solid #676a6c;
    border-left: none;
    border-right: none;
}

    .audio-slider::-ms-thumb {
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 10px;
        height: 15px;
        border-radius: 5px;
        background-color: #676a6c;
    }

    .audio-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 10px;
        height: 15px;
        border-radius: 5px;
        background-color: #676a6c;
    }

    .audio-slider::-moz-range-thumb {
        -moz-appearance: none;
        width: 10px;
        height: 15px;
        border-radius: 5px;
        background-color: #676a6c;
    }

.hover-pointer:hover {
    cursor: pointer;
}

.no-border-radius {
    border-radius: 0px !important;
}

.panel-heading h1 {
    margin: 5px auto;
}

/************************/

/*Arquivos*/

.download-btn {
    text-overflow: ellipsis;
    width: 100%;
    border-radius: 6px !important;
    font-size: 12px;
    font-weight: 700;
    margin-top: 5px;
    overflow: hidden;
    line-height: 32.4px;
    padding: 0px 8px;
    max-width: 418px;
}

.icon-right {
    float: right;
    font-size: 16px !important;
    margin-top: 7px;
    margin-left: 5px;
}


/* Media */

.media-container {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 5px;
}

.media-preview {
    max-height: 150px;
    overflow: hidden;
    border-radius: 5px;
    border: 2px solid #1ab394;
}

    .media-preview.video {
        height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

        .media-preview.video:hover {
            opacity: 0.8;
        }

.video-button {
    height: 50px;
    width: 50px;
    border-radius: 35px;
    font-size: 20px;
    background-color: #21b9bb;
    border-color: #21b9bb;
    color: #FFFFFF;
    border: none;
}

    .video-button:hover {
        background-color: #20a5a7;
    }

/*Imagens*/
.img-content {
    cursor: pointer;
    display: block;
    width: 100%;
}

    .img-content:hover {
        opacity: 0.8;
    }

/* Media Modal */
.media-modal {
    background: #f8fafb;
    display: flex;
    width: 70%;
    height: 75%;
    margin: auto;
    margin-top: 60px;
    flex-direction: column;
    align-items: center;
    border-radius: 5px;
    padding: 5px 0px 5px 0px;
}

    .media-modal .media-modal-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 90%;
        padding: 5px;
        background: #f8fafb;
    }

        .media-modal .media-modal-body .media-content {
            max-width: 90%;
            border: solid 1px #e5e5e5;
            border-radius: 5px;
            cursor: pointer;
            user-select: none;
        }

        .media-modal .media-modal-body img.media-content {
            max-height: 90%;
        }

        .media-modal .media-modal-body video.media-content {
            max-height: 100%;
        }

    .media-modal .media-modal-footer {
        width: 100%;
        height: 10%;
        display: flex;
        justify-content: right;
        align-items: flex-end;
        padding: 5px 10px;
        background: white;
        border-top: 1px solid #e5e5e5;
    }

/*Audio*/
.audio-wrapper {
    background: white;
    display: flex;
    height: 90px;
    width: 275px;
    padding: 5px;
    flex-wrap: wrap;
}

.audio-controller {
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

    .audio-controller .audio-button {
        width: 40px;
        height: 40px;
        border-radius: 40px;
    }

.audio-player {
    width: 58%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 6px;
}

    .audio-player .audio-details {
        width: 100%;
        height: 25%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

        .audio-player .audio-details .audio-name {
            flex: 1;
            min-width: 0;
            font-size: 12px;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
            line-height: 1;
            text-align: left;
        }

        .audio-player .audio-details .audio-time {
            font-size: 10px;
            line-height: 1;
            white-space: nowrap;
            min-width: fit-content;
            padding-left: 4px;
        }

    .audio-player .audio-progress-bar {
        background-color: #def1f1;
        width: 100%;
        height: 70%;
        border-radius: 5px;
        padding: 2px 5px;
    }

        .audio-player .audio-progress-bar .audio-test {
            font-size: 18px;
        }

.audio-misc {
    width: 22%;
    display: flex;
    flex-direction: column-reverse;
    height: 100%;
    justify-content: space-around;
    align-items: center;
}

    .audio-misc .audio-icon {
        font-size: 16px;
    }

    .audio-misc .audio-download {
        width: 25px;
        height: 25px;
        border-radius: 40px;
        font-size: 0px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .audio-misc .audio-volume {
        width: 25px;
        height: 25px;
        border-radius: 40px;
        font-size: 0px;
        display: flex;
        justify-content: center;
        align-items: center
    }

    .audio-misc .audio-speed {
        width: 100%;
        font-size: 10px;
        font-weight: bold;
        border: 1px solid #21b9bb;
        border-radius: 6px;
        background-color: #21b9bb;
        color: white;
        padding: 2px 0;
        cursor: pointer;
        text-align: center;
        outline: none;
    }

    .audio-misc .audio-speed option {
        background-color: white;
        color: #333;
        font-weight: normal;
    }

/*Consulta*/

.consult-container {
    position: absolute;
    top: 45px;
    right: 17px;
    max-height: 400px;
    width: 300px;
    box-shadow: rgba(100, 100, 100, 0.7) 0px 2px 5px;
    z-index: 1002;
}

    .consult-container::before {
        content: "";
        width: 0px;
        height: 0px;
        position: absolute;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid transparent;
        border-bottom: 10px solid #23c6c8;
        right: 60px;
        top: -18px;
    }

.consult-panel-title {
    font-weight: 800;
    font-size: medium;
}

.consult-list-title {
    font-weight: 600;
}

.supervisors-list-body {
    overflow: auto;
    max-height: 350px;
    padding: 5px;
    scrollbar-width: thin;
    scrollbar-color: #052351 transparent;
}

    .supervisors-list-body .list-group {
        margin-bottom: 10px;
    }

.supervisor-list-item {
    display: flex;
    justify-content: space-between;
    padding: 5px;
}

.supervisor-name {
    margin: auto 0;
    max-width: 65%;
    overflow: hidden;
    text-align: justify;
}

.panel-body.well {
    margin: 0;
}

.supervisor-chat-body {
    height: 350px;
    padding: 0;
    display: none;
}

    .supervisor-chat-body .panel {
        height: 100%;
        border: none;
    }

.consult-chat-title {
    display: flex;
    justify-content: space-between;
    padding: 0;
    border-radius: 0px;
    height: 11.5%;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 3px;
}

    .consult-chat-title h4 {
        margin: auto;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

    .consult-chat-title > button {
        margin: auto 5px;
    }

.consult-chat-discussion {
    height: 68.5%;
    padding: 5px;
    max-height: 68.5%;
}

.consult-chat-footer {
    height: 20%;
    padding: 3px;
    box-shadow: rgba(0, 0, 0, 0.4)0px -2px 3px;
}

.consult-input {
    font-size: 11px;
    width: 100%;
    resize: none;
    height: 100% !important;
    border-radius: 5px 0 0 5px;
}

.supervisor-consults-title {
    height: 8%;
    background-color: #1ab394;
    padding: 8px 5px;
}

    .supervisor-consults-title h1 {
        margin: 0;
        color: white;
    }

.supervisor-consults-options {
    height: 12%;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0,.2);
    border-bottom: 0px;
}

.supervisor-consults-body {
    height: 100%;
    border: 1px solid rgba(0, 0, 0,.2);
    background-color: white;
    overflow: auto;
    padding: 10px 20px;
}

    .supervisor-consults-body td {
        text-align: center;
        vertical-align: middle !important;
    }

    .supervisor-consults-body th {
        text-align: center;
    }

.consult-chat-system-message {
    font-size: 15px;
    line-height: 3;
}

.pending-aproval,
.rejected-consult {
    height: 100%;
    width: 100%;
}

.no-data-tr {
    display: none;
}

    .no-data-tr:only-child {
        display: table-row;
    }

.border-btn-group {
    width: 15%;
    display: flex;
    flex-direction: column;
}

    .border-btn-group > * {
        height: 100%;
        border-radius: 0;
        padding: 0;
    }

    .border-btn-group > .btn-enviar {
        flex: 0 0 70%;
        height: auto;
        min-height: 0;
    }

    .border-btn-group > .btn-enviar:only-child {
        flex: 1 1 100%;
    }

    .border-btn-group > .btn-template {
        flex: 0 0 30%;
        height: auto;
        min-height: 0;
    }

        .border-btn-group > *:first-child:not(:last-child):not(:only-child) {
            border-radius: 0 5px 0 0;
        }

        .border-btn-group > *:last-child:not(:first-child) {
            border-radius: 0 0 5px 0;
        }

        .border-btn-group > *:only-child {
            border-radius: 0 5px 5px 0;
        }

.btn.float-right {
    float: right;
    margin-left: 3px;
}

.btn.float-left {
    float: left;
    margin-left: 3px;
}

.history-discussion {
    background: lightgrey;
    height: 50vh;
    overflow-y: auto;
    padding-right: 0%;
    padding-left: 0%;
    border: 2px solid rgba(0, 0, 0,.2);
    border-radius: 2px 2px 2px 2px;
    scrollbar-width: thin;
    scrollbar-color: lightslategray transparent;
}

    .history-discussion::-webkit-scrollbar {
        width: 6px;
    }

    .history-discussion::-webkit-scrollbar-thumb {
        background: lightslategray;
    }

.panel-history {
    height: 98%;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: lightslategray transparent;
}

    .panel-history::-webkit-scrollbar {
        width: 6px;
    }

    .panel-history::-webkit-scrollbar-thumb {
        background: lightslategray;
    }

    .panel-history > div {
        padding: 20px 20px 0 20px;
        height: 100%;
        margin: 0;
    }

.collapse-history-header {
    display: flex;
    justify-content: space-evenly;
    color: black;
}

@keyframes pop {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/*
    .border-btn-group > div {
        display: flex;
        flex-direction: row;
    }

    .border-btn-group > * > * {
        width: 100%;
    }

        .border-btn-group > * > *:first-child:not(:last-child):not(:only-child) {
            border-radius: 0 5px 0 0;
        }

        .border-btn-group > * > *:last-child:not(:first-child) {
            border-radius: 0 0 5px 0;
        }

        .border-btn-group > * > *:only-child {
            border-radius: 0 5px 5px 0;
        }*/

/* ========================================
   REDIMENSIONAMENTO DA SIDEBAR (estilo Discord)
   ======================================== */

/* Ajustar sidebar para ser redimensionável */
#side-navbar {
    width: 220px; /* largura inicial padrão */
    min-width: 180px; /* largura mínima permitida */
    max-width: 400px; /* largura máxima permitida */
    position: relative;
    transition: none !important; /* remover transição para drag suave */
    flex-shrink: 0; /* não permitir que a sidebar encolha */
}

/* Handle/divisor para arrastar (borda direita da sidebar) */
.sidebar-resizer {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px; /* área clicável */
    cursor: ew-resize; /* cursor de redimensionamento horizontal */
    background-color: transparent;
    z-index: 1001;
    transition: background-color 0.2s ease;
}

    /* Feedback visual ao passar o mouse ou durante o drag */
    .sidebar-resizer:hover {
        background-color: rgba(26, 179, 148, 0.4); /* verde translúcido */
    }
    
    .sidebar-resizer.resizing {
        background-color: #1ab394 !important; /* cor verde sólida durante drag */
        box-shadow: 0 0 8px rgba(26, 179, 148, 0.8);
    }

/* Ajustar o page-wrapper para se adaptar dinamicamente à largura da sidebar */
#wrapper #page-wrapper {
    margin-left: 0 !important; /* sem margem, pois agora usa flexbox */
    transition: none !important; /* sem transição para arrastar suave */
}

/* Garantir que funciona em todas as media queries */
@media (min-width: 768px) {
    #wrapper #page-wrapper {
        margin-left: 0 !important;
    }
}

/* Prevenir seleção de texto durante o drag */
body.resizing,
body.resizing * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    cursor: ew-resize !important;
}

/* Ajustes para responsividade em telas menores */
@media only screen and (max-width:768px) {
    #side-navbar {
        width: 220px !important; /* manter largura fixa em mobile */
        position: fixed; /* sidebar fixa em mobile para não quebrar o layout */
    }
    
    .sidebar-resizer {
        display: none !important; /* esconder handle em mobile */
    }
    
    #wrapper {
        display: block; /* remover flexbox em mobile */
    }
    
    #wrapper #page-wrapper {
        margin-left: 0 !important; /* sem margem em mobile (sidebar fica oculta/sobreposta) */
        width: 100% !important;
    }
}

/* ===== Bloco de citação de mensagem (reply WhatsApp) ===== */
.message-quote {
    display: flex;
    flex-direction: row;
    background-color: rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    margin-bottom: 5px;
    overflow: hidden;
    max-width: 100%;
}

.chat-message-right .message-quote {
    background-color: rgba(0, 0, 0, 0.08);
}

.message-quote-bar {
    width: 4px;
    min-width: 4px;
    background-color: #25d366;
    border-radius: 4px 0 0 4px;
}

.chat-message-right .message-quote-bar {
    background-color: #128c7e;
}

.message-quote-content {
    display: flex;
    flex-direction: column;
    padding: 5px 8px;
    overflow: hidden;
}

.message-quote-author {
    font-size: 11px;
    font-weight: 700;
    color: #25d366;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.chat-message-right .message-quote-author {
    color: #128c7e;
}

.message-quote-text {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
    display: block;
}

.dark-mode .message-quote {
    background-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .message-quote-text {
    color: #ccc;
}

.message-quote-clickable {
    cursor: pointer;
    transition: filter 0.15s ease;
}

.message-quote-clickable:hover,
.message-quote-clickable:focus {
    filter: brightness(0.92);
    outline: none;
}

.dark-mode .message-quote-clickable:hover,
.dark-mode .message-quote-clickable:focus {
    filter: brightness(1.15);
}

@keyframes message-highlight-flash {
    0%, 100% {
        background-color: transparent;
    }

    50% {
        background-color: rgba(37, 211, 102, 0.22);
    }
}

.chat-message-row.message-highlight {
    animation: message-highlight-flash 1s ease-in-out 2;
    border-radius: 6px;
}

.dark-mode .chat-message-row.message-highlight {
    animation-name: message-highlight-flash-dark;
}

@keyframes message-highlight-flash-dark {
    0%, 100% {
        background-color: transparent;
    }

    50% {
        background-color: rgba(37, 211, 102, 0.18);
    }
}