@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

* {
    font-family: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 600;
    font-size: 0.9rem;
}

body {
    background: #f8f9fc !important;
    height: 100%;
    transition: background 0.3s linear;
}

.main_logo_menu {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: 0.5s;
}

.main_logo_menu:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.main_logo_menu.active {
    filter: grayscale(0%);
    opacity: 1;
}

.only_desktop {
    display: inherit;
}

.only_mobile {
    display: none;
}

#nav_top {
    background: #2f2f2f;
    height: 45px;
}

.nav_bar_divider {
    border-left: 1px solid #555555;
    margin: 0 20px;
    /*width: 1px;*/
    height: 25px;
}

/* PHONE TOPS */
.phone_top_wrapper .phone_status_desc {
    max-width: 0 !important;
    overflow: hidden;
    white-space: nowrap;
    transition: 0.5s;
    font-size: 1em;
    padding: 0;
}

.phone_top_wrapper:hover .phone_status_desc {
    max-width: 400px !important;
    padding: 8px 10px;
    visibility: visible;
    display: inherit;
}

/* BLOCO CONTENT */
#block_content {
    margin-left: 70px;
    display: block;
}

/* MENU PRINCIPAL LATERAL */
#menu_lateral_principal_wrapper {
    float: left;
    width: 70px;
    height: 100%;
    text-align: center;
    position: fixed;
    overflow: hidden;
    transition: width 0.5s;
    background: #343a40;
    z-index: 1040;
}

#menu_lateral_principal_wrapper:hover,
#menu_lateral_principal_wrapper.menu_hover {
    width: 250px;
    z-index: 1040;
    overflow: auto;
}

#menu_lateral_principal_wrapper span.text-link {
    display: none;
    trasition: 1s;
}

#menu_lateral_principal_wrapper:hover span.text-link,
#menu_lateral_principal_wrapper.menu_hover span.text-link {
    display: inline;
}

#menu_lateral_principal li {
    width: 100%;
}

#menu_lateral_principal li a.level_2 {
    border: 0 solid #424242;
    height: 40px;
    line-height: 40px;
    border-radius: 5px;
    color: #ccc;
    padding: 0 10px;
    display: block;
    text-align: center;
    white-space: nowrap;
}

#menu_lateral_principal li a.level_2:hover {
    border: 0 solid #424242;
    height: 40px;
    line-height: 40px;
    border-radius: 5px;
    color: #fff;
    padding: 0 10px;
    display: block;
    text-align: center;
    white-space: nowrap;
}

#menu_lateral_principal li a.level_1 {
    border: 1px solid #424242;
    height: 40px;
    border-radius: 5px;
    color: #ccc;
    padding: 5px 10px;
    display: block;
    text-align: center;
    white-space: nowrap;
}

#menu_lateral_principal li a.level_1:hover {
    border: 1px solid #fff;
    height: 40px;
    border-radius: 5px;
    color: #fff;
    padding: 5px 10px;
    display: block;
    text-align: center;
}

#menu_lateral_principal li.nav-active a.level_1 {
    border: 1px solid #17a373;
    height: 40px;
    border-radius: 5px;
    background: rgb(28, 200, 138);
    background: linear-gradient(146deg,
            rgba(28, 200, 138, 1) 0%,
            rgba(23, 163, 113, 1) 77%);
    color: #fff;
    padding: 5px 10px;
    display: block;
    text-align: center;
}

#menu_lateral_principal_wrapper:hover li a,
#menu_lateral_principal_wrapper.menu_hover li a {
    text-align: left !important;
    text-decoration: none !important;
}

#menu_lateral_principal_wrapper #user_profile_side .menu_user_name {
    visibility: visible;
    white-space: nowrap;
    width: 20px;
    height: 20px;
    color: #666;
    text-overflow: ellipsis;
    line-height: 20px;
    display: block;
    overflow: hidden;
    margin: 0 auto;
}

#menu_lateral_principal_wrapper:hover #user_profile_side .menu_user_name,
#menu_lateral_principal_wrapper.menu_hover #user_profile_side .menu_user_name {
    visibility: visible;
    color: #ccc;
    width: 100%;
}

/* * * * * * * * * * * * */

#chat_header {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#chat_list_wrapper {
    display: flex;
    flex-flow: column;
    height: calc((var(--vh, 1vh) * 100) - 45px);
}

#chat_filters_container {
    background: #ebebeb;
    text-align: left;
}

#chat_container {
    height: calc((var(--vh, 1vh) * 100) - 45px);
    overflow: hidden;
}

#statuses_container {
    height: calc((var(--vh, 1vh) * 100) - 45px);
    overflow: auto;
    padding: 0 15px;
}

.icon-True {
    color: green;
    border: 1px solid green;
}

.att_item {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    width: 25px;
    border-radius: 2px;
    height: 25px;
}

.att_item_large {
    border-radius: 2px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 200px;
    height: 200px;
}

.icon-False,
.icon-None {
    color: #ccc;
    border: 1px solid #ccc;
}

#menu_lateral li.nav-item a {
    display: block;
    border-bottom: 1px solid #555;
    padding-top: 7px;
    height: 50px;
    color: #828282;
}

#menu_lateral li.nav-item a:hover {
    color: #fff;
}

#menu_lateral li.nav-item a span {
    font-size: 90%;
}

.actions_options option {
    padding: 5px;
    border-radius: 5px;
}

.fs-1 {
    font-size: 0.5rem;
}

.fs-2 {
    font-size: 0.65rem;
}

.fs-3 {
    font-size: 0.75rem;
}

.fs-4 {
    font-size: 0.85rem;
}

.fs-5 {
    font-size: 0.95rem;
}

.fs-6 {
    font-size: 1rem;
}

.fs-65 {
    font-size: 1.1rem;
}

.fs-7 {
    font-size: 1.25rem;
}

.fs-8 {
    font-size: 1.5rem;
}

.fs-9 {
    font-size: 1.75rem;
}

.fs-10 {
    font-size: 2rem;
}

.fs-image {
    font-size: 3rem;
}

#phone-header {
    background: #009688;
    padding: 15px;
}

.chat_tag_item {
    cursor: default;
    border: 1px solid #ebebeb;
    position: relative;
    padding: 5px 10px;
}

.chat_tag_item .delete_chat_tag {
    display: none;
}

.chat_tag_item:hover .delete_chat_tag {
    display: inherit;
    position: absolute;
    right: 5px;
    top: 5px;
    color: #c22b2b;
    text-shadow: 0 0 5px rgba(255, 255, 255, 1);
}

.chat_info_tab_internal_title {
    color: #3b5998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-weight: 600;
    padding: 10px 20px;
    text-align: center;
    min-height: 30px;
}

.chat_info_tab_internal_title .change_chat_name {
    visibility: hidden;
}

.chat_info_tab_internal_title:hover .change_chat_name {
    visibility: visible;
}

.chat_info_tab_internal_content {
    height: calc(100vh - 131px);
    overflow: auto;
    /*padding: 25px;*/
    /*background: #f8f9fa;*/
    background: rgb(240, 240, 240);
}

#notes_internal_content {
    height: calc(100vh - 205px);
}

@media (max-width: 575.98px) {
    #save_note {
        margin-bottom: 151px;
    }
}

.chat_info_tab_card {
    margin: 5px 0;
    background: #fff;
    padding: 15px 20px;
    -webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
}

.chat_info_tab_card_title {
    margin-bottom: 2px;
}

.pointer {
    cursor: pointer;
}

.text_true {
    color: green;
}

.text_false {
    color: red;
}

.text_null {
    color: gray;
}

.grabber {
    cursor: move;
}

.fa-toggle-on {
    color: green !important;
}

.fa-toggle-off {
    color: #ccc !important;
}

.text-muted {
    color: #ccc !important;
}

.text-muted2 {
    color: #aaa !important;
}

#opened-chat {
    border: 1px solid #ccc;
}

.opened-chat {
    border: 2px solid red;
}

.nav-chat-container {
    overflow: auto;
}

.nav-chat-item {
    /*height: 66px;*/
    display: block;
    vertical-align: center;
    border-top: 1px solid #ebebeb;
    background-color: #fff;
    color: #555;
    font-weight: 400;
    text-decoration: none;
    /*clear: both;*/
}

.nav-chat-item:hover {
    background-color: #ebebeb;
}

.nav-chat-active {
    background-color: #ebebeb;
}

.nav-chat-name {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: -0.3px;
}

.nav-chat-active .nav-chat-name {
    color: #4e73df;
}

.nav-chat-item .nav-chat-item-pic {
    float: left;
}

.nav-chat-item-l1 {
    display: flex;
}

.nav-chat-item-l1 .l-p1 {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 15px;
}

.nav-chat-item-l1 .l-p2 {
    flex-grow: 0;
    white-space: nowrap;
}

#chat-header {
    padding: 15px;
    background-color: #666;
    height: 90px;
}

#chat-header-name {
    float: left;
    font-size: 150%;
    color: #fff;
    line-height: 25px;
}

#chat_messages_wrapper {
    width: 100%;
    overflow: auto;
    background: #e1d8cf;
    background-image: url("/static/chatbg.png");
    background-repeat: repeat repeat;
}

.chat_tabs {
    color: #a0a0a0;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border: 1px solid rgb(222, 226, 230);
    border-left: none;
    border-top: none;
    background: rgb(248, 249, 250);
}

.chat_tabs:hover {
    color: rgb(78, 115, 223);
}

.chat_tabs.active {
    color: rgb(78, 115, 223);
    background: #fff;
    border-bottom: none;
}

.messages_in_out {
    width: 100%;
}

#chat_info {
    /*overflow: auto;*/
}

.icon-chat {
    /**/
    text-align: center;
    cursor: pointer;
    width: 40px;
    margin-left: 5px;
    border-radius: 5px;
}

.icon-chat:hover {
    color: rgb(29, 200, 138) !important;
}

.op1 {
    opacity: 0.1;
}

.op2 {
    opacity: 0.2;
}

.op3 {
    opacity: 0.3;
}

.op4 {
    opacity: 0.4;
}

.op5 {
    opacity: 0.5;
}

.op6 {
    opacity: 0.6;
}

.op7 {
    opacity: 0.7;
}

.op8 {
    opacity: 0.8;
}

.op9 {
    opacity: 0.9;
}

.bold0 {
    font-weight: bold;
}

.bold1 {
    font-weight: 200;
}

.bold2 {
    font-weight: 300;
}

.bold3 {
    font-weight: 400;
}

.bold4 {
    font-weight: 500;
}

.bold5 {
    font-weight: 600;
}

.bold6 {
    font-weight: 700;
}

.bold7 {
    font-weight: 800;
}

.bold8 {
    font-weight: 900;
}

.icon-chat i {
    font-size: 175%;
}

.fica-topo-fixo {
    width: 100%;
    position: fixed;
    z-index: 1000;
}

.msg {
    border: 1px solid #ccc;
    padding: 3px;
    border-radius: 5px;
    /*margin-top:5px;
    max-width:60%;*/
    /*clear:both;*/
}

.msg-data {
    border: 1px solid #ccc;
    padding: 3px;
    border-radius: 5px;
    margin: 20px 0;
    /*clear:both;*/
    text-align: center;
    float: left;
    width: 100%;
    background: #fff;
    opacity: 0.5;
}

.msg-container {
    border-bottom: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
}

.msg-container .m-cont-in {
    padding: 7px 8px;
    position: relative;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*.msg-container .m-info {*/
/*    display: none;*/
/*    opacity: 0;*/
/*    transition-property: opacity;*/
/*    transition-duration: 1s;*/
/*    transition-delay: 2s;*/
/*}*/
/*.msg-container:hover .m-info{*/
/*    display: block;*/
/*    opacity: 1;*/
/*}*/
.msg-tick {
    width: 10px;
    height: 10px;
}

.msg-contentT {
    font-size: 1rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.msg-status-pending-superuser,
.msg-status-sending-superuser,
.msg-status-resend-superuser {
    opacity: 0.65;
}

.msg-status-pending,
.msg-status-sending,
.msg-status-resend {
    opacity: 1;
}

.msg-status-error-superuser,
.msg-status-error {
    background-color: #ffb2b2 !important;
}

/* --- Containers SEMPRE em flex (com ou sem erro) --- */
#dialog_advanced,
#dialog_advanced_conditions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

/* Quando marcar erro no container, mantém flex e mostra tudo */
#dialog_advanced_conditions.conditions-container-error,
#dialog_advanced.conditions-container-error {
  display: flex !important;
  visibility: visible !important;
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
  max-height: none !important;
  opacity: 1 !important;
  padding: 10px !important;
  margin: 10px 0 !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

/* Se algum JS injetar display inline, volta pra flex (com ou sem erro) */
#dialog_advanced[style*="display"],
#dialog_advanced_conditions[style*="display"] {
  display: flex !important;
}
#dialog_advanced.conditions-container-error[style*="display"],
#dialog_advanced_conditions.conditions-container-error[style*="display"] {
  display: flex !important;
}

/* Evita esconder via utilitários */
#dialog_advanced.d-none,
#dialog_advanced_conditions.d-none,
#dialog_advanced.conditions-container-error.d-none,
#dialog_advanced_conditions.conditions-container-error.d-none {
  display: flex !important;
}

/* Pai visível quando houver erro, sem mudar o fluxo */
#dialog_triggers:has(.conditions-container-error) {
  display: block !important;
  visibility: visible !important;
}

/* Pílulas: não esticar; compactas e em linha */
.advanced_condition {
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap;
  max-width: max-content;
}

/* Pílula em estado de erro (visual) */
#dialog_advanced.conditions-container-error .advanced_condition,
#dialog_advanced_conditions.conditions-container-error .advanced_condition {
  visibility: visible !important;
  height: auto !important;
  min-height: 25px !important;
  background-color: #ffcccc !important;
  border: 2px solid #ff4444 !important;
  color: #cc0000 !important;
}

/* Input da pílula em edição: não alongar */
.advanced_condition .cond-input {
  display: inline-block;
  width: auto;
  min-width: 60px;
  max-width: 220px;
  padding: 2px 8px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}

/* Se tiver margem negativa no texto da pílula, zera */
.advanced_condition .cond-text { margin-right: 0; }

.msg-status-processed-superuser,
.msg-status-processed {
    max-width: 315px;
}


/* Estilos para erro de sintaxe na caixa de gatilhos */
.conditions-container-error {
    border: 2px solid #dc3545 !important;
    border-radius: 8px !important;
    background-color: #f8d7da !important;
    padding: 15px !important;
    margin: 10px 0 !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2) !important;
}

.condition-error {
    background-color: #f5c6cb !important;
    border: 1px solid #dc3545 !important;
    border-radius: 4px !important;
    padding: 5px 10px !important;
    margin: 5px 0 !important;
    color: #721c24 !important;
}

/* Força a caixa de condições avançadas a ser visível quando há erro */
/* --- Containers SEMPRE em flex (com ou sem erro) --- */
#dialog_advanced,
#dialog_advanced_conditions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

/* Quando marcar erro no container, mantém flex e mostra tudo */
#dialog_advanced_conditions.conditions-container-error,
#dialog_advanced.conditions-container-error {
  display: flex !important;
  visibility: visible !important;
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
  max-height: none !important;
  opacity: 1 !important;
  padding: 10px !important;
  margin: 10px 0 !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

/* Se algum JS injetar display inline, volta pra flex (com ou sem erro) */
#dialog_advanced[style*="display"],
#dialog_advanced_conditions[style*="display"] {
  display: flex !important;
}
#dialog_advanced.conditions-container-error[style*="display"],
#dialog_advanced_conditions.conditions-container-error[style*="display"] {
  display: flex !important;
}

/* Evita esconder via utilitários */
#dialog_advanced.d-none,
#dialog_advanced_conditions.d-none,
#dialog_advanced.conditions-container-error.d-none,
#dialog_advanced_conditions.conditions-container-error.d-none {
  display: flex !important;
}

/* Pai visível quando houver erro, sem mudar o fluxo */
#dialog_triggers:has(.conditions-container-error) {
  display: block !important;
  visibility: visible !important;
}

/* Pílulas: não esticar; compactas e em linha */
.advanced_condition {
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap;
  max-width: max-content;
}

/* Pílula em estado de erro (visual) */
#dialog_advanced.conditions-container-error .advanced_condition,
#dialog_advanced_conditions.conditions-container-error .advanced_condition {
  visibility: visible !important;
  height: auto !important;
  min-height: 25px !important;
  background-color: #ffcccc !important;
  border: 2px solid #ff4444 !important;
  color: #cc0000 !important;
}

/* Input da pílula em edição: não alongar */
.advanced_condition .cond-input {
  display: inline-block;
  width: auto;
  min-width: 60px;
  max-width: 220px;
  padding: 2px 8px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}

/* Se tiver margem negativa no texto da pílula, zera */
.advanced_condition .cond-text { margin-right: 0; }

.msg-status-processed-superuser,
.msg-status-processed {
    max-width: 315px;
}


/* Estilos para erro de sintaxe na caixa de gatilhos */
.conditions-container-error {
    border: 2px solid #dc3545 !important;
    border-radius: 8px !important;
    background-color: #f8d7da !important;
    padding: 15px !important;
    margin: 10px 0 !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2) !important;
}

.condition-error {
    background-color: #f5c6cb !important;
    border: 1px solid #dc3545 !important;
    border-radius: 4px !important;
    padding: 5px 10px !important;
    margin: 5px 0 !important;
    color: #721c24 !important;
}

/* Força a caixa de condições avançadas a ser visível quando há erro */
/* --- Containers SEMPRE em flex (com ou sem erro) --- */
#dialog_advanced,
#dialog_advanced_conditions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

/* Quando marcar erro no container, mantém flex e mostra tudo */
#dialog_advanced_conditions.conditions-container-error,
#dialog_advanced.conditions-container-error {
  display: flex !important;
  visibility: visible !important;
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
  max-height: none !important;
  opacity: 1 !important;
  padding: 10px !important;
  margin: 10px 0 !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

/* Se algum JS injetar display inline, volta pra flex (com ou sem erro) */
#dialog_advanced[style*="display"],
#dialog_advanced_conditions[style*="display"] {
  display: flex !important;
}
#dialog_advanced.conditions-container-error[style*="display"],
#dialog_advanced_conditions.conditions-container-error[style*="display"] {
  display: flex !important;
}

/* Evita esconder via utilitários */
#dialog_advanced.d-none,
#dialog_advanced_conditions.d-none,
#dialog_advanced.conditions-container-error.d-none,
#dialog_advanced_conditions.conditions-container-error.d-none {
  display: flex !important;
}

/* Pai visível quando houver erro, sem mudar o fluxo */
#dialog_triggers:has(.conditions-container-error) {
  display: block !important;
  visibility: visible !important;
}

/* Pílulas: não esticar; compactas e em linha */
.advanced_condition {
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap;
  max-width: max-content;
}

/* Pílula em estado de erro (visual) */
#dialog_advanced.conditions-container-error .advanced_condition,
#dialog_advanced_conditions.conditions-container-error .advanced_condition {
  visibility: visible !important;
  height: auto !important;
  min-height: 25px !important;
  background-color: #ffcccc !important;
  border: 2px solid #ff4444 !important;
  color: #cc0000 !important;
}

/* Input da pílula em edição: não alongar */
.advanced_condition .cond-input {
  display: inline-block;
  width: auto;
  min-width: 60px;
  max-width: 220px;
  padding: 2px 8px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}

/* Se tiver margem negativa no texto da pílula, zera */
.advanced_condition .cond-text { margin-right: 0; }

.msg-status-processed-superuser,
.msg-status-processed {
    max-width: 315px;
}

.msg-is-out-False {
    background-color: #fff;
    float: left;
}

.msg-deleted {
    opacity: 0.65;
}

.bg-sent-msg {
    background-color: #dcf8c6;
    float: right;
    /* max-width: 315px; */
}

.msq-quoted-see:hover {
    background-color: #fffcad;
}

#msg_send_container {
    background-color: #efeeee;
}

.msg-name {
    font-weight: bold;
    display: block;
}

.msg-content {
    padding: 0 7px;
}

.msg-caption {
    font-size: 14px;
    display: block;
}

.msg-image {
    display: block;
    min-width: 200px;
    height: 150px;
    border-radius: 5px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.msg-image-small {
    width: 100px;
    height: 75px;
    border-radius: 5px;
    /*box-shadow: inset 0px 0px 3px 0px rgba(0,0,0,0.5);*/
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: block;
}

.msg-image-to-send {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: block;
}

.msg-timestamp,
.msg-is-edited {
    color: #555;
    font-size: 75%;
}

.msg-quoted {
    /*font-size: 90%;*/
    color: #111;
    display: block;
    padding: 5px;
    background-color: #d1edbb;
    transition: 0.3s;
    border-radius: 5px;
    margin-bottom: 5px;
}

#reply_msg_wrapper {
    max-height: 100px;
}

#reply_msg_content {
    max-height: 80px;
    padding: 5px;
    overflow: auto;
}

@keyframes fa-blink {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.fa-blink {
    -webkit-animation: fa-blink 2.75s linear infinite;
    -moz-animation: fa-blink 2.75s linear infinite;
    -ms-animation: fa-blink 2.75s linear infinite;
    -o-animation: fa-blink 2.75s linear infinite;
    animation: fa-blink 2.75s linear infinite;
}

@keyframes pump-blink {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.pump-blink {
    -webkit-animation: pump-blink 1.75s linear infinite;
    -moz-animation: pump-blink 1.75s linear infinite;
    -ms-animation: pump-blink 1.75s linear infinite;
    -o-animation: pump-blink 1.75s linear infinite;
    animation: pump-blink 1.75s linear infinite;
}

#code_editor {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Bootstrap Toggle v2.2.2 corrections for Bootstrap 4*/
.toggle-off {
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.05);
}

.toggle.off {
    border-color: rgba(0, 0, 0, 0.25);
}

.toggle-handle {
    background-color: white;
    border: thin rgba(0, 0, 0, 0.25) solid;
}

/* BUTTON XS */
.btn-group-xs>.btn,
.btn-xs {
    padding: 0.25rem 0.4rem;
    font-size: 0.875rem;
    line-height: 0.5;
    border-radius: 0.2rem;
}

.table-stats {
    border: 1px solid #ccc;
    width: 100%;
    border-radius: 5px;
}

.table-stats th {
    background-color: #ebebeb;
    padding: 5px;
    font-size: 11px;
    border: 1px solid #ccc;
}

.table-stats td {
    background-color: #fff;
    padding: 5px;
    border: 1px solid #ebebeb;
}

.table-stats td a {
    font-size: 11px;
}

.table-stats td {
    font-size: 11px;
}

.table-stats th:first-child {
    width: 200px;
}

.table-stats th:last-child {
    max-width: 400px !important;
    text-wrap: avoid;
}

.stats-title {
    font-size: 16px;
    border: 1px solid #ccc;
    border-bottom: none;
    max-width: 300px;
    padding: 5px;
    background-color: #fff;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}

.blink_me {
    animation: blinker 2s linear infinite;
}

.label_input {
    color: #0b90c4;
    font-size: 13px;
    font-weight: bold;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.action_to_add {
    background-color: #ebebeb;
    /*border: 1px solid #ccc;*/
    border-bottom: 3px solid #ccc;
    padding: 5px;
    margin-bottom: 20px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;

    &:has(.interactive-product input:invalid) {

        .dialog_action_toggle_this {
            .save_action_in_dialog {
                pointer-events: none;
            }
        }
    }

}

.emojis_container, .emojis_container2 {
    max-height: 300px;
    overflow: auto;
}

.emojis_container span, .emojis_container2 span {
    float: left;
    height: 25px;
    width: 25px;
    cursor: pointer;
    font-weight: 100;
}

#emojis_faces_in_chat span {
    display: block;
    text-align: center;
    vertical-align: center;
    float: left;
    height: 30px;
    width: 30px;
    line-height: 30px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 175%;
}

#emojis_faces_in_chat span:hover {
    font-size: 250%;
}

/* ATTACHMENTS */
.attach_modal_item {
    display: block;
    height: 125px;
    line-height: 125px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    opacity: 0.8;
}

.attach_modal_item:hover {
    opacity: 1;
}

.ui-sortable-helper {
    border: 2px solid #e89f3c;
    box-shadow: 0 6px 8px 0 rgba(0, 0, 0, 0.5);
}

.ui-sortable-placeholder {
    border: 2px dashed #e89f3c;
    visibility: visible !important;
}

.ui-autocomplete {
    max-height: 350px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
    /* add padding to account for vertical scrollbar */
    padding-right: 20px;
}

.nav-item .nav-link {
    padding: 10px;
}

.nav-item .active {
    border-bottom: 1px solid #f8f9fa !important;
    background: #f8f9fa !important;
    padding: 10px;
}

#menu_lateral li.nav-active {
    background: rgb(248, 249, 252);
    -webkit-box-shadow: inset 17px 0 18px -16px rgba(0, 0, 0, 0.5) !important;
    box-shadow: inset 17px 0 18px -16px rgba(0, 0, 0, 0.5) !important;
}

#menu_lateral li.nav-active span,
#menu_lateral li.nav-active i {
    color: rgb(52, 58, 64);
}

.shadow {
    -webkit-box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.page_header {
    padding: 30px 25px 20px;
    -webkit-box-shadow: inset 5px 43px 17px -41px rgba(0, 0, 0, 0.1) !important;
    box-shadow: inset 5px 43px 17px -41px rgba(0, 0, 0, 0.4) !important;
}

.new_page_title {
    font-size: 2rem;
    color: #555;
    font-weight: 400;
}

.unlink-chat-user {
    display: none;
}

.parent_td_unlink:hover .unlink-chat-user {
    display: inline;
}

.text-primary {
    color: #4e73df !important;
}

.text-success {
    color: #1cc88a !important;
}

.text-info {
    color: #36b9cc !important;
}

.text-warning {
    color: #f6c23e !important;
}

.text-danger {
    color: #e74a3b !important;
}

.text-secondary {
    color: #858796 !important;
}

.bg-primary {
    background-color: #4e73df !important;
}

.bg-success {
    background-color: #1cc88a !important;
}

.bg-info {
    background-color: #36b9cc !important;
}

.bg-warning {
    background-color: #f6c23e !important;
}

.bg-danger {
    background-color: #e74a3b !important;
}

.bg-secondary {
    background-color: #858796 !important;
}

.boleft-primary {
    border-left: 5px solid #4e73df !important;
}

.boleft-success {
    border-left: 5px solid #1cc88a !important;
}

.boleft-info {
    border-left: 5px solid #36b9cc !important;
}

.boleft-warning {
    border-left: 5px solid #f6c23e !important;
}

.boleft-danger {
    border-left: 5px solid #e74a3b !important;
}

.boleft-secondary {
    border-left: 5px solid #858796 !important;
}

.badge-primary {
    background-color: #4e73df !important;
}

.badge-EM_ATENDIMENTO {
    color: #fff;
    background-color: #4e73df !important;
}

.badge-success {
    background-color: #1cc88a !important;
}

.badge-RESOLVIDO {
    color: #fff;
    background-color: #1cc88a !important;
}

.badge-info {
    background-color: #36b9cc !important;
}

.badge-FECHADO {
    color: #fff;
    background-color: #36b9cc !important;
}

.badge-warning {
    background-color: #f6c23e !important;
}

.badge-AGUARDANDO {
    background-color: #f6c23e !important;
}

.badge-danger {
    background-color: #e74a3b !important;
}

.badge-ABERTO {
    color: #fff;
    background-color: #e74a3b !important;
}

.badge-secondary {
    background-color: #858796 !important;
}

.btn-primary {
    background-color: #4e73df !important;
    border: 1px solid #4e73df;
}

.btn-success {
    background-color: #1cc88a !important;
    border: 1px solid #1cc88a;
}

.btn-info {
    background-color: #36b9cc !important;
    border: 1px solid #36b9cc;
}

.btn-warning {
    background-color: #f6c23e !important;
    border: 1px solid #f6c23e;
}

.btn-danger {
    background-color: #e74a3b !important;
    border: 1px solid #f67684;
}

.btn-secondary {
    background-color: #858796 !important;
    border: 1px solid #858796;
}

.btn-outline-primary {
    border: 1px solid #4e73df !important;
}

.btn-outline-success {
    border: 1px solid #1cc88a !important;
}

.btn-outline-info {
    border: 1px solid #36b9cc !important;
}

.btn-outline-warning {
    border: 1px solid #f6c23e !important;
}

.btn-outline-danger {
    border: 1px solid #f67684 !important;
}

.btn-outline-secondary {
    border: 1px solid #858796 !important;
}

.alert-primary {
    background-color: rgb(78, 115, 223, 0.2) !important;
    border: 1px solid rgb(78, 115, 223, 0.2);
}

.alert-success {
    background-color: rgb(29, 200, 138, 0.2) !important;
    border: 1px solid rgb(29, 200, 138, 0.2);
}

.alert-info {
    background-color: rgb(54, 185, 204, 0.2) !important;
    border: 1px solid rgb(54, 185, 204, 0.2);
}

.alert-warning {
    background-color: rgb(246, 194, 63, 0.2) !important;
    border: 1px solid rgb(246, 194, 63, 0.2);
}

.alert-danger {
    background-color: rgb(231, 73, 59, 0.2) !important;
    border: 1px solid rgb(231, 73, 59, 0.2);
}

.alert-secondary {
    background-color: rgb(133, 135, 150, 0.2) !important;
    border: 1px solid rgb(133, 135, 150, 0.2);
}

.card-header {
    font-size: 1.2rem;
    font-weight: 700;
}

.btn-circle {
    width: 30px;
    height: 30px;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    line-height: 1.428571429;
    border-radius: 15px;
}

.btn-circle.btn-lg {
    width: 50px;
    height: 50px;
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.33;
    border-radius: 25px;
}

.btn-circle.btn-xl {
    width: 70px;
    height: 70px;
    padding: 10px 16px;
    font-size: 24px;
    line-height: 1.33;
    border-radius: 35px;
}

div.row_msg .reply_msg {
    visibility: hidden;
}

div.row_msg:hover .reply_msg {
    visibility: visible;
}

div.row_msg .selecting-msgs {
    visibility: hidden;
}

div.row_msg:hover .selecting-msgs:not(.not-send-reaction) {
    visibility: visible;
}

@media (max-width: 1200px) {
    #block_content {
        margin-left: 0;
        display: block;
    }

    #menu_lateral_principal_wrapper {
        display: none;
    }

    #menu_lateral_principal_wrapper.menu_hover {
        display: inherit;
    }

    .only_desktop {
        display: none !important;
    }

    .only_mobile {
        display: inherit !important;
    }
}

.hide-text-td {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chats-name-list {
    max-height: 308px;
    overflow-y: scroll;
}

.chats-name-item {
    list-style-type: none;
    padding: 0;
    margin: 0;
    line-height: 3rem;
    font-size: 1.1rem;
    border-bottom: 1px solid #e5e5e5;
}

.chats-name-item input {
    margin-right: 15px;
}

/* Checkbox image */
.image-checkbox {
    cursor: pointer;
}

.image-checkbox .favorite_star {
    background-image: url("/static/favorite-unchecked.svg");
    width: 16px;
    height: 16px;
    position: absolute;
    margin-top: -7px;
}

.change_chat_name {
    padding-left: 15px;
}

#favorite_chat_toggle {
    display: none;
}

#favorite_chat_toggle:checked+.favorite_star {
    background-image: url("/static/favorite-checked.svg");
}

/* Checkbox filter Icons */
#chat_filters_container .uil-favorite {
    font-size: 18px;
    color: #f6c23e;
    padding-right: 6px;
}

#chat_filters_container .uil-archive {
    font-size: 18px;
    color: #c1c1c1;
    padding-right: 6px;
}

#chat_filters_container .uil-envelope-times {
    font-size: 18px;
    color: #e74a3b;
    padding-right: 6px;
}

#chat_filters_container .fa-broadcast-tower {
    font-size: 14px;
    color: #696969;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-right: 6px;
}

.nav-chat-item-link {
    width: 100%;
    padding: 15px 10px;
}

.input-group-text.primary {
    color: rgb(255, 255, 255);
    background-color: rgb(50, 118, 177);
    border-color: rgb(40, 94, 142);
}

#tagsOnList {
    margin: 0;
    padding: 0;
}

#tagsOnList li {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#link-notes-filters {
    display: block;
    width: 100%;
    background-color: #f8f9fa;
    color: #333;
    text-align: center;
    border-top: 1px solid #e5e6e6;
    border-bottom: 1px solid #e5e6e6;
    height: 24px;
    font-size: 12px;
    line-height: 24px;
}

.disabled {
    pointer-events: none;
    cursor: not-allowed !important;
}

.cg_pagination {
    height: 32px;
    padding: 2px 16px;
    color: #333;
    font-size: 11px;
    line-height: 24px;
    position: fixed;
    background-color: #f0f0f0;
    width: calc(29.75% - 15px);
}

.cg_pagination select {
    background-color: #fff;
    border: none;
    margin-left: 10px;
}

.cg_pagination button {
    background-color: #fff;
    border: none;
    color: #333;
    width: 22px;
    height: 22px;
    line-height: 0px;
}

.cg_pagination button.disabled {
    background-color: #f8f9fa !important;
    color: #cccccc !important;
}

#notes_search_results,
#notes_list {
    margin-top: 30px;
}

#notesFilterPreviousPage {
    margin-left: 15px;
}

#notesFilterPreviousPage {
    margin-left: 15px;
}

.cg_pagination select {
    background-color: #fff;
    border: none;
    margin-left: 10px;
}

.cg_pagination button {
    background-color: #fff;
    border: none;
    color: #333;
    width: 22px;
    height: 22px;
    line-height: 0px;
}

.cg_pagination button.disabled {
    background-color: #f8f9fa !important;
    color: #cccccc !important;
}

#notesFilterPreviousPage {
    margin-left: 15px;
}

#notesResultsLenght,
#notesResultsLenght-footer {
    padding-left: 15px;
    color: #333;
    font-size: 11px;
    line-height: 24px;
}

#form-login-2fa {
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

#form-login-2fa .form-control {
    display: block;
    height: 72px;
    margin-right: 0.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 0;
}

#form-login-2fa .form-control:last-child {
    margin-right: 0;
}

.pag {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 50px;
    padding: 0 50px;
}

.pag__page {
    color: rgba(51, 51, 51, 0.5);
}

.pag__pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 25px;
}

.pag__select {
    margin-left: 8px;
    height: 100%;
    background-color: #fff;
    border: 0;
}

.pag__wrapperButtons {
    display: flex;
    gap: 7px;
    margin: 0 8px 0 15px;
}

.pag__button {
    width: 25px;
    height: 100%;
    background-color: #fff;
    border: 0;
}

.pag__button--disabled {
    background-color: rgba(239, 238, 238, 0.5);
    pointer-events: none;
}

.pag__button--disabled svg {
    fill: #cccccc;
    stroke: #cccccc;
}

.pag__count {
    color: rgba(51, 51, 51, 0.5);
}

/* loading */
@-webkit-keyframes radial {
    0% {
        -webkit-transform: rotate(calc(var(--base) * 1deg)) translateY(150%);
        transform: rotate(calc(var(--base) * 1deg)) translateY(150%);
    }

    100% {
        -webkit-transform: rotate(calc((var(--base) + 1440) * 1deg)) translateY(150%);
        transform: rotate(calc((var(--base) + 1440) * 1deg)) translateY(150%);
    }
}

@keyframes radial {
    0% {
        -webkit-transform: rotate(calc(var(--base) * 1deg)) translateY(150%);
        transform: rotate(calc(var(--base) * 1deg)) translateY(150%);
    }

    100% {
        -webkit-transform: rotate(calc((var(--base) + 1440) * 1deg)) translateY(150%);
        transform: rotate(calc((var(--base) + 1440) * 1deg)) translateY(150%);
    }
}

.radial:after,
.radial:before {
    --color: #1fbd89;
    background-color: var(--color);
    -webkit-animation: radial 0.75s infinite linear;
    animation: radial 0.75s infinite linear;
    content: "";
    display: block;
    height: 10px;
    width: 5px;
}

.radial:after {
    --secondary: #1fbd89;
    --color: var(--secondary);
    --base: 0;
}

.radial:before {
    --primary: #e7f3ef;
    --base: 180;
    --color: var(--primary);
}

/* Busca no login */
.loginSearch {
    margin-top: 50px;
}

.loginSearch__form {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 0 1.25rem;
    margin-top: 30px;
    margin-bottom: 20px;
}

.loginSearch__title {
    text-align: center;
}

.loginSearch__load {
    display: none !important;
    height: 55px;
    margin-bottom: 20px;
}

.loginSearch__notFound {
    display: none;
    background: #d65745;
    border-radius: 10px;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    margin: 1.25rem;
    width: 70%;
    margin-inline: auto;
}

.loginSearch__notFound h3 {
    font-size: 18px;
}

.loginSearch__results {
    display: none;
}

.loginSearch--show {
    display: block !important;
}

.loginSearch__load--show {
    display: grid !important;
    place-items: center;
}

/* input de busca celulares e chatbot */
.phonesSearch {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    gap: 25px;
}

.phonesSearch label {
    all: unset;
}

.phonesSearch__clear {
    font-size: 20px;
    height: 34.4px;
}

.phonesSearch__loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 130px;
}

.chat-new-messages-btn {
    all: unset;
    width: 160px;
    display: flex;
    place-content: center;
    position: absolute;
    bottom: 90px;
    left: calc(50% - 80px);
    background-color: #4e73df;
    color: #f8f9fa;
    padding: 10px 0 10px 0;
    outline: none !important;
}

.chat-new-messages-btn>span {
    margin-left: 5px;
}

chat-new-messages-btn,
svg {
    margin-right: 4px;
    bottom: 1px;
    position: relative;
}

.chat-new-messages-btn--anim {
    animation: shake 0.7s cubic-bezier(0.785, 0.135, 0.15, 0.86) both;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(5px);
    }

    50% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

.show_long_scheduled_message {
    text-decoration: underline;
    color: blue;
}

#endomessage_notifications .alert-info {
    color: #ffffff;
    background-color: #5296d5 !important;
    border-color: #5296d5;
}

#endomessage_notifications .alert-danger {
    color: #ffffff;
    background-color: #d65745 !important;
    border-color: #d65745;
}

#endomessage_notifications .alert-warning {
    color: #333333;
    background-color: #eac645 !important;
    border-color: #eac645;
}

#endomessage_notifications .close span {
    color: #ffffff !important;
    font-size: 30px;
}

#endomessage_notifications .alert-warning .close span {
    color: #333333 !important;
    font-size: 30px;
}

#endomessage_notifications h4 {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
}

#endomessage_notifications p {
    margin-top: 20px;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
}

#endomessage_notifications a {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    color: #ffffff;
}

#endomessage_notifications .alert-warning a {
    color: #333333;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
}

#endomessage_notifications .btn-light {
    font-family: "Roboto", sans-serif;
    color: #333333;
    font-weight: 400 !important;
    font-size: 12px !important;
    line-height: 18px !important;
    background: #ffffff !important;
    border: 1px solid #595b5a !important;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 32px;
}

#endomessage_notifications .False {
    display: none;
}

.cg-alert-info {
    /* background: rgba(39, 111, 134, 0.09); */
    background: rgba(234, 198, 69, 0.3);
    border: 1px solid #eac645;
    border-radius: 2px;
    margin-top: -15px;
    margin-bottom: 20px;
}

.cg-alert-info h2 {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    /* color: #276F86; */
    color: #121212;
}

.cg-alert-info p {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    /* color: #276F86; */
    color: #121212;
}

.cg-alert-info a {
    width: 176px;
    height: 32px;
    /* background: #276F86; */
    background: #eac645;
    border-radius: 3px;
    color: #ffffff;
    font-family: "Nunito";
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
}

.cg-alert-info a:hover {
    color: #ffffff;
    background: #eac645;
}

.cg-alert-info button span {
    font-size: 1em !important;
}

.msg-quoted-status h3 {
    font-size: 0.9rem;
    font-weight: bold;
    color: #499760;
}

.msg-quoted-status img {
    display: block;
    width: 174px;
}

#create_group_chat_summary h6 {
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.5em;
    padding-bottom: 10px;
}

#create_group_chat_summary .modal-body {
    padding: 1.5em;
}

#create_group_chat_summary .msg-summary {
    margin-top: 20px;
    display: none;
    text-align: center;
}

#create_group_chat_summary .msg-summary h3 {
    margin: 0;
    color: #77797C;
    font-size: 12px;
    font-weight: bolder;
    line-height: 18px;
}

#create_group_chat_summary .close-btn {
    border: 2px solid #DFDFE6;
    border-radius: 100%;
}

.dark-theme #create_group_chat_summary .close-btn,
.dark-theme #create_group_chat_summary .msg-summary h3 {
    color: #DFDFE6 !important;
}

.announcement {
    max-inline-size: 300px;
}

.announcement-img {
    /* max-inline-size: 300px; */
    inline-size: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
}

.announcement-box {
    inline-size: 100%;
    padding: 10px;
    background-color: #f8f9fa;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;

    >span {
        color: #1C1F1A;
        display: block;
        font-weight: bold;
        margin-block-end: 5px
    }

    ;

    >p {
        color: #40483C;
        max-width: 300px;
        font-size: 11px;
        margin: 0;
    }

    ;

    >a {
        >span {
            color: #40483C;
            display: block;
            font-size: 11px;
            margin-top: 5px;
        }
    }

}

.announcement-msg {
    inline-size: 100%;
    margin-block-start: 10px;
    display: block;
}

.announcement-video {
    position: relative;
    min-height: 100px;
    overflow: hidden;

    .announcement-img {
        filter: blur(3px);
    }

    .announcement-play {
        background-color: #ffff;
        position: absolute;
        inline-size: 50px;
        aspect-ratio: 1;
        border-radius: 50%;
        inset: 0;
        margin: auto;
        display: grid;
        place-items: center;
        opacity: 0.7;
    }

    i {
        font-size: 25px;
        color: #5A5553;
        left: 3px;
        position: relative;
        top: 1px;
    }
}

.cg_modal_endomessage {

    /* Fontes estão com 110% do Figma pra compensar esse 0.9em do reset atual */
    .modal-title {
        font-family: Nunito;
        font-size: 17.6px;
        font-weight: 500;
    }

    .small-text {
        color: #77797C;
        text-align: center;
        font-family: Nunito;
        font-size: 13.2px;
        font-weight: 900;
    }

    .full-text {
        color: #77797C;
        text-align: center;
        font-family: Nunito;
        font-size: 13.2px;
        font-weight: 400;
    }

    .modal-footer {
        border-bottom: 5px solid;

        .btn {
            display: flex;
            width: 180px;
            height: 34px;
            padding: 8px 33px 8px 32px;
            justify-content: center;
            align-items: center;
            flex-shrink: 0;
            border-radius: 2px;
            border: 1px solid rgba(35, 75, 152, 0.08);
            background: #FBFBFB;
            color: #333;
            font-family: Nunito;
            font-size: 13.2px;
            font-weight: 400;
            line-height: 19.8px;
        }
    }
}

.interactive-messages {
    width: 300px;
    font-size: 12px;
    border-radius: 8px;
    word-break: break-word;

    >span {
        display: block;
        font-weight: bold;
        font-size: 14px;
        padding-inline: 12px;
        padding-block-start: 5px;

    }

    >p {
        padding-inline: 12px;
        margin-top: 8px;
        font-size: 12px;
    }
}

.interactive-messages__button, .interactive-order-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    height: 25px;
    border-top: 1px solid #dfe1e5;
    padding-inline: 6px;
    color: #4e73df;
    font-size: 10px;
    margin-top: 8px;
    cursor: pointer;

    i {
        font-size: 10px;
    }
}

.interactive-options {
    border-radius: 8px;
    width: 300px;
    background-color: #FFFFFF;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: 5px;
    display: none;

    &[open] {
        display: block
    }
}

.interactive-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-inline: 19px;
    word-break: break-word;

    &:not(:first-child) {
        margin-top: 10px;
    }
}

.interactive__title-button {
    display: block;
    font-size: 12px;
    font-weight: bold;
}

.interactive__btn-description {
    font-size: 10px;
    color: #aaa;
}

.interactive__quick-reply {
    inline-size: 250px;
    background-color: transparent;

    .interactive_quick_reply__img {
        max-inline-size: 100%;
    }

    .interactive__quick-reply__file {
        min-height: 60px;
        background-color: #d1edbb;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 10px;
        gap: 10px;

        i {
            font-size: 25px;
            color: #F14645;
        }

        .interactive__quick-reply__file__text {
            display: grid;
            word-break: break-word;
        }
    }

    .interactive__quick-reply__header {
        font-size: 18px;
        font-weight: bold;
        display: block;
    }

    .interactive_quick_reply__text {
        font-size: 16px;
        margin-block-start: 5px;
        display: block;
    }

    .interactive__quick-reply__rodape {
        font-size: 14px;
        display: block;
        margin-block-end: 15px;
        margin-block-start: 5px;
    }

    .interactive_quick_reply__btn {
        block-size: 30px;
        border: 1px solid gray;
        border-radius: 10px;
        display: grid;
        place-items: center;
        margin-block-end: 5px;
    }

}




.interactive-product-chat {
    width: 300px;
    font-size: 12px;
    border-radius: 8px;
    word-break: break-word;

    >span {
        display: block;
        font-weight: bold;
        font-size: 14px;
        padding-inline: 12px;
        padding-block-start: 5px;

    }

    >p {
        padding-inline: 12px;
        margin-top: 8px;
        font-size: 12px;
    }
}

.interactive-product_options {
    border-radius: 8px;
    width: 100%;
    background-color: #FFFFFF;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: 5px;
    padding-inline: 19px;

    display: none;

    &[open] {
        display: block
    }
}

.interactive-product__title-button {
    display: block;
    font-size: 12px;
    font-weight: bold;
}

.interactive-product__type {
    display: block;
    font-size: 12px;
    color: #aaa;
}

.interactive-order__catalog {
    display: flex;
    align-items: center;
    padding-left: 10px;
    height: 30px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1.5px dashed #dfe1e5;

    span {
        color: #58665C;
    }
}

.interactive-order {
    width: 300px;
    font-size: 12px;
    border-radius: 8px;
    word-break: break-word;

    .interactive-order__cart-icon {
        padding-inline: 12px;
        margin-top: 12px;
    }

    span {
        font-weight: bold;
        font-size: 14px;
    }

    >p {
        padding-inline: 12px;
        margin-top: 8px;
        font-size: 12px;
    }
}

.interactive-order__options {
    border-radius: 8px;
    width: 100%;
    background-color: #f8f9fa;
    padding-block: 15px;
    padding-inline: 19px;

    display: none;

    &[open] {
        display: block
    }
}


.input-selet-user-number, .input-selet-user-number[readonly] {
    width: 28px;
    text-align: center;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    background-color: #FFF !important;
    ;
    border: none !important;
}

.input-selet-user-number:focus, .input-selet-user-number:focus-visible {
    outline: none;
    box-shadow: none;
}

.btn-alter-value-user {
    width: 18px;
    height: 18px;
    color: #5C6369;
    background-color: #f3f3f3;
    border: none;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-alter-value-user:focus, .btn-alter-value-user:focus-visible, .btn-alter-value-user:active {
    border: none;
    outline: none;
}

.close-dialog-user {
    cursor: pointer;
}

.modal-title-user {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    color: #333;
}

.form-label-add-user {
    font-size: 12px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    color: #333;
}

.text-muted-user {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    font-family: 'Nunito', sans-serif;
    margin-bottom: 0rem !important;
}

.btn-submit-user {
    border: none;
    background-color: #1FBD89;
    border-radius: 2px;
}

.modal-body-user {
    padding: 0.4rem 1rem !important;
}

.footer-modal-user {
    border: none !important;
    padding-top: 0 !important;
}

.pb-00rem {
    padding-bottom: 0.0rem !important;
}

.modal-content-user {
    margin-top: 150px;
    width: 362px;
    border: none;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
}

.title-modal-qr-code {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    font-family: 'Nunito';
}

.subtitle-modal-qr-code {
    font-size: 10px;
    font-weight: 400;
    color: #333333;
    font-family: 'Nunito';
}

.text-modal-qr-code,
.title-modal-qr-code,
.subtitle-modal-qr-code {
    color: #000000;
}

.button-modal-qr-code {
    border: none !important;
    color: white !important;
    background-color: #1FBD89 !important;
    border-radius: 2px !important;
    padding: 6px 24px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.bg-modal-qr-code {
    border-radius: 4px;
    box-shadow: 0px 4px 4px 0px #0000001A;
    background-color: #ffffff;
}

body.dark-theme .bg-modal-qr-code {
    border-radius: 4px;
    box-shadow: 0px 4px 4px 0px #0000001A;
    background-color: #303030 !important;
}

body.dark-theme .text-modal-qr-code,
body.dark-theme .title-modal-qr-code,
body.dark-theme .subtitle-modal-qr-code {
    color: #ffffff !important;
}

.qr-code-wrapper {
    background-color: #ffffff;
    padding: 4px;
    border-radius: 4px;
    display: block;
}

body.dark-theme .qr-code-wrapper {
    background-color: #666666;
}

.px-10 {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem;
}

.pb-6 {
    padding-bottom: 2.0rem !important;
}

/* Manual Trigger Box Styles */
#manual_trigger_box {
    margin-top: 10px;
    transition: all 0.3s ease;
}

#manual_trigger_box.d-none {
    display: none !important;
}

#manual_trigger_input {
    width: 100%;
    min-height: 60px;
    resize: vertical;
}

/* ===== MENSAGEM DE ERRO PARA GATILHOS DUPLICADOS ===== */
.duplicate-trigger-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: slideInFromTop 0.3s ease;
}

.duplicate-trigger-error .fa-exclamation-triangle {
    color: #dc3545;
}

.duplicate-trigger-error.fade-out {
    animation: slideOutToTop 0.3s ease forwards;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutToTop {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ===== DESTAQUE PARA PÍLULAS COM ERRO DE SINTAXE ===== */
.advanced_condition.syntax-error {
    background: #ff6b6b !important;
    border: 2px solid #dc3545 !important;
    color: #fff !important;
    animation: syntaxErrorPulse 2s infinite;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.4);
}

.advanced_condition.syntax-error .cond-text {
    color: #fff !important;
    font-weight: bold;
}

.advanced_condition.syntax-error:hover {
    background: #ff5252 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.5);
}

/* Ícones da pílula com erro ficam mais visíveis */
.advanced_condition.syntax-error .edit-condition,
.advanced_condition.syntax-error .remove_advanced_condition {
    opacity: 0.9;
    color: #fff;
}

.advanced_condition.syntax-error .edit-condition:hover,
.advanced_condition.syntax-error .remove_advanced_condition:hover {
    opacity: 1;
    transform: scale(1.2);
}

@keyframes syntaxErrorPulse {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px rgba(220, 53, 69, 0.4);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.03);
        box-shadow: 0 0 15px rgba(220, 53, 69, 0.6);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px rgba(220, 53, 69, 0.4);
    }
}

/* Tooltip de erro para pílulas */
.advanced_condition .error-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(220, 53, 69, 0.95);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    max-width: 200px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.advanced_condition .error-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(220, 53, 69, 0.95);
}

.advanced_condition.syntax-error:hover .error-tooltip {
    opacity: 1;
}

/* ===== ESTILOS PARA VALIDAÇÃO DE ERRO ===== */
.advanced_condition.condition-error {
    background: #ff6b6b !important;
    border-color: #dc3545 !important;
    color: #fff !important;
    animation: pulse-error 2s infinite;
}

.conditions-container-error {
    border: 2px solid #dc3545 !important;
    background-color: #f8d7da !important;
}

@keyframes pulse-error {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}


#dialog-edit-form button[type="submit"]:disabled,
.btn-success:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================================ */
/* ESTILOS DO EDITOR DE DIÁLOGOS - PÍLULAS DE GATILHO */
/* ============================================================================ */

/* ============ ESTILO DAS PÍLULAS DE GATILHO ============ */
.advanced_condition {
    border: 1px solid #ebebeb;
    padding: 3px 6px;
    margin: 2px 4px 2px 0;
    margin-left: 0px;
    display: inline-block;
    background: yellow;
    color: #000;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 12px;
    line-height: 1.2;
    vertical-align: top;
    white-space: nowrap;
    width: auto;
    min-width: auto;
    max-width: none;
}

#dialog_advanced_conditions {
    overflow: hidden;
    padding: 8px;
    min-height: 40px;
    line-height: normal;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

[id^="dialog_advanced_conditions_"] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

#manual_trigger_box {
    max-width: 720px;
    transition: all 0.3s ease;
}

/* ============ ÍCONES DAS PÍLULAS ============ */
.advanced_condition .edit_advanced_condition,
.advanced_condition .remove_advanced_condition {
    margin-left: 0px !important;
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 10px;
    pointer-events: auto;
    z-index: 10;

}

.advanced_condition .edit_advanced_condition:hover {
    color: #1976d2 !important;
    transform: scale(1.1);
    opacity: 1;
}

.advanced_condition .remove_advanced_condition:hover {
    color: #d32f2f !important;
    transform: scale(1.1);
    opacity: 1;
}

/* ============ VALIDAÇÃO DE ERRO ============ */
.advanced_condition.condition-error {
    background: #ff6b6b !important;
    border-color: #dc3545 !important;
    color: #fff !important;
    animation: pulse-error 2s infinite;
}

@keyframes pulse-error {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* ============ ESTADO DE EDIÇÃO ============ */
.advanced_condition.editing {
    background: #fff3e0 !important;
    border-color: #ff9800 !important;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.3) !important;
}

.advanced_condition input.cond-input {
    border: none !important;
    background: #fff !important;
    outline: none !important;
    width: 50px !important;
}

.advanced_condition .cond-text {
    margin-right: -10px;
}

/* ============ BOTÃO MANUAL TRIGGER ============ */
#show_manual_trigger {
    transition: all 0.2s ease !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
    margin-top: 0 !important;
    vertical-align: top !important;
}

#show_manual_trigger:hover {
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

#show_manual_trigger.active {
    background-color: #495057 !important;
    border-color: #3d4449 !important;
    color: white !important;
}

/* ============ FLEXBOX E ALINHAMENTO ============ */
.d-flex:has(#show_manual_trigger) {
    align-items: center !important;
}

.d-flex:has(#show_manual_trigger) small {
    line-height: 1.5 !important;
    margin-top: 0 !important;
}

/* ============ DROPDOWN FIXES ============ */
.normalize-dropdown {
    transform: none !important;
    top: 100% !important;
}

.cg-relative {
    position: relative !important;
}

/* ============ RESPONSIVIDADE ============ */
@media (max-width: 768px) {
    .advanced_condition {
        font-size: 11px;
        padding: 2px 4px;
        margin-bottom: 3px;
    }

    .advanced_condition .edit_advanced_condition,
    .advanced_condition .remove_advanced_condition {
        font-size: 9px;
        margin-left: 3px;
    }
}

@media (max-width: 576px) {
    .advanced_condition {
        font-size: 10px;
        padding: 2px 3px;
    }

    .advanced_condition .edit_advanced_condition,
    .advanced_condition .remove_advanced_condition {
        font-size: 8px;
        margin-left: 2px;
    }

    #show_manual_trigger {
        width: 100%;
        margin-bottom: 10px;
    }

    #manual_trigger_input {
        font-size: 14px;
    }
}