div[page_name="OrcamentoEventoProLoteWindow"] .label.label-default {
    background-color: #dbeafe;
}

.container-submenu ul li a
{
    display: flex;
    padding: var(--submenu-item-padding-vertical) var(--submenu-item-padding-horizontal);
    border-radius: var(--button-border-radius);
    min-height: var(--button-height);
    align-items: center;
    color: var(--submenu-text-color);
    font-size: var(--menu-font-size);
    overflow-wrap: anywhere;
    white-space: normal !important;
}
.container-submenu ul li a p
{
    margin: 0 !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    line-height: 1.2 !important;
}

.sidebar-mini:not(.fixed) .master-menu-content:not(.open) .container-submenu>ul>li>a {
        min-width: var(--header-box-width);
        transition: .3s;
        white-space: normal !important;
    }

.item-notification {
    display: flex !important;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 14px;
    gap: 12px;
    border-radius: 10px;
    transition: background .18s ease, transform .12s ease;
    text-decoration: none !important;
    margin: 2px 0;
    position: relative;
}

.item-notification:hover {
    background: var(--button-background, rgba(99,102,241,.06));
    transform: translateX(2px);
}

.item-notification > div:not(.pull-left) {
    flex: 1;
    min-width: 0;
}

.item-notification > div.pull-left {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: none;
    margin: 0;
    border-radius: 12px;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    position: relative;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(99,102,241,.25);
}

.item-notification > div > h6 {
    font-weight: 600;
    font-size: .82rem;
    margin-bottom: 0;
    color: var(--text-color-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-notification > div > div,
.item-notification > div > h6 {
    font-size: .82rem;
    margin-bottom: 0;
    color: var(--text-color-strong);
}

.item-notification .notif-message-preview {
    font-size: .72rem;
    color: var(--text-color-light, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.item-notification > div > h6 > small {
    font-size: .68rem;
    color: var(--text-color-light, #94a3b8);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-weight: 400;
}

.item-notification > div > h6 > small > i {
    font-size: .62rem;
    color: var(--text-color-light, #94a3b8);
}

.item-notification > div {
    align-items: flex-start;
    display: flex;
    gap: 1px;
    flex-direction: column !important;
}

.item-notification .notif-unread-dot {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.fast-drop-open .header {
    font-weight: 700;
    font-size: .9rem;
    padding: 14px 16px 8px;
    color: var(--text-color-strong);
    border-bottom: 1px solid var(--template-border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fast-drop-open .header::before {
    display: none !important;
    content: none !important;
}

.fast-drop-open .header .notif-header-icon {
    width: 14px;
    height: 14px;
    color: #6366f1;
    flex-shrink: 0;
}

.fast-drop-open .notif-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    margin-top: 4px;
    font-size: .8rem;
    font-weight: 600;
    color: #6366f1;
    text-decoration: none;
    border-top: 2px solid var(--template-border-color);
    background: var(--template-bg-color, #f8fafc);
    transition: background .15s ease;
}

.fast-drop-open .notif-footer-link:hover {
    background: rgba(99,102,241,.06);
}

.fast-drop-open .notif-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-color-light, #94a3b8);
    font-size: .82rem;
}

.fast-drop-open .notif-empty i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
    opacity: .4;
}

.label-contrato {
    margin-bottom: 2px;
}

.container-main {
    background: var(--menu-background-color) !important;
}

.master-container {
    border-radius: 25px 0px 0px 0px !important;
}
.container-live
{
    min-height: calc(100vh - var(--header-height) - 0px) !important;
}

.container-menu::after
{
    content: '';
    position: absolute;
    top: 25px;
    right: 0;
    bottom: 0;
    width: 1px;
    background: var(--menu-border-right);
    pointer-events: none;
}
.container-menu
{
    border-right: none !important;
    position: relative;
}

.master-container {
    
    overflow: hidden !important;
    
}
.leaflet-right {
    display: none !important;
}

/* ============================================
   Estilos do Kanban de Assistência
   ============================================ */

/* Card body principal */
.assistencia-card-body {
    font-size: 12px;
    line-height: 1.5;
}

.assistencia-card-body .card-section {
    margin-bottom: 4px;
}

.assistencia-card-body .card-section-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.assistencia-card-body .card-section-break {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

table.table.table-bordered:not(.fc-scrollgrid)
{
    border: 1px solid #dbe4ef !important;
    border-radius: 14px;
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

table.table.table-bordered:not(.fc-scrollgrid) > thead > tr > th
{
    padding: 12px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #dbe4ef !important;
    background: #f7fafc !important;
    color: #475569 !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: middle;
}

table.table.table-bordered:not(.fc-scrollgrid) > tbody > tr > td,
table.table.table-bordered:not(.fc-scrollgrid) > tbody > tr > th
{
    padding: 12px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf2f7 !important;
    color: #1e293b;
    background: #ffffff;
    vertical-align: middle;
}

table.table.table-bordered:not(.fc-scrollgrid) > tbody > tr:nth-child(even) > td,
table.table.table-bordered:not(.fc-scrollgrid) > tbody > tr:nth-child(even) > th
{
    background: #fbfdff;
}

table.table.table-bordered:not(.fc-scrollgrid) > tbody > tr:hover > td,
table.table.table-bordered:not(.fc-scrollgrid) > tbody > tr:hover > th
{
    background: #f8fbff;
}

table.table.table-bordered:not(.fc-scrollgrid) > tbody > tr:last-child > td,
table.table.table-bordered:not(.fc-scrollgrid) > tbody > tr:last-child > th
{
    border-bottom: 0 !important;
}

table.table.table-bordered.table-sm:not(.fc-scrollgrid) > thead > tr > th,
table.table.table-bordered.table-sm:not(.fc-scrollgrid) > tbody > tr > td,
table.table.table-bordered.table-sm:not(.fc-scrollgrid) > tbody > tr > th
{
    padding: 10px 12px !important;
}

.assistencia-card-body .card-icon-label {
    color: #555;
    font-weight: 500;
    white-space: nowrap;
}

.assistencia-card-body .card-icon-label i {
    width: 14px;
    margin-right: 3px;
}

.assistencia-card-body .card-value {
    color: #333;
}

.assistencia-card-body .associado-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.assistencia-card-body .associado-link a:hover {
    text-decoration: underline;
}

/* Bloco de localização (origem/destino) */
.assistencia-card-body .local-box {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px 10px;
    margin: 6px 0;
    border-left: 3px solid #dc3545;
}

.assistencia-card-body .local-linha {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 11px;
    color: #555;
}

.assistencia-card-body .local-linha:last-child {
    margin-bottom: 0;
}

.assistencia-card-body .local-linha i {
    flex-shrink: 0;
    margin-top: 2px;
}

.assistencia-card-body .local-linha span {
    word-break: break-word;
}

.evento-pro-card-body .evento-pro-card-frame {
    margin-top: 6px;
    padding: 10px;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.evento-pro-card-body .evento-pro-card-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.evento-pro-card-body .evento-pro-card-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #334155;
    line-height: 1.45;
    margin-bottom: 5px;
}

.evento-pro-card-body .evento-pro-card-line i {
    width: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.evento-pro-card-body .evento-pro-card-line span {
    min-width: 0;
    word-break: break-word;
}

.evento-pro-card-body .evento-pro-card-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 700;
}

.evento-pro-card-body .evento-pro-prazo-box {
    margin-top: 10px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #d9e2ec;
    background: #fff;
}

.evento-pro-prazo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
}

.evento-pro-prazo-grid-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.evento-pro-prazo-grid-item-full {
    grid-column: 1 / -1;
}

.evento-pro-kanban-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.evento-pro-kanban-badge-neutro {
    background: #eef2f7;
    border-color: #d7dee7;
    color: #4f5d75;
}

.evento-pro-kanban-badge-fase {
    color: #fff;
}

.evento-pro-kanban-badge-prioridade {
    background: #fff3e8;
    border-color: #ffd5b2;
    color: #b85c00;
}

.evento-pro-kanban-badge-valor {
    background: #ecfdf3;
    border-color: #86efac;
    color: #166534;
}

.evento-pro-kanban-badge-tipo {
    background: #eef6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

@media (max-width: 767px) {
    .evento-pro-prazo-grid {
        grid-template-columns: 1fr;
    }
}

.veiculo-item-list {
    padding: 3px;
    margin: 2px 0px 0px 0px;
    display: block;
    border-radius: 4px;
    border-bottom: 1px solid #ccc;
}

.header-box {
    height: 90% !important;
}

.container-login .panel-login {
    border-radius: 0px !important;
}

#chat-start-icon
{
    border-radius: var(--modules-button-radius);
    background: #fb7801;
    color: #ffffff;
}

#conteudo_modelo {
    margin: 10px 0px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
}

div[page_name="CobrancaKanbanView"] .kanban-board {
    /*height: calc(100vh - 290px);*/
}

a.nav-link.active {
    padding: 7px 12px 8px 12px !important;
}

.div-recaptcha {
    display: flex;
    justify-content: center;
    align-items: center;
}

.div-recaptcha .g-recaptcha {
    display: inline-block;
    margin: 10px auto 0;
}

.div-recaptcha .cf-turnstile {
    display: inline-block;
    margin: 10px auto 0;
}

@media (max-width: 480px) {
    .div-recaptcha {
        min-height: 74px;
    }

    .div-recaptcha .g-recaptcha {
        height: 68px;
        margin: 0 auto;
        transform: scale(0.88);
        transform-origin: center top;
    }

    .div-recaptcha .cf-turnstile {
        transform: scale(0.94);
        transform-origin: center top;
    }
}

@media (max-width: 360px) {
    .div-recaptcha {
        min-height: 66px;
    }

    .div-recaptcha .g-recaptcha {
        height: 63px;
        margin: 0 auto;
        transform: scale(0.82);
        transform-origin: center top;
    }

    .div-recaptcha .cf-turnstile {
        transform: scale(0.86);
        transform-origin: center top;
    }
}

.header-box {
    background: var(--header-box-background);
    width: var(--header-box-width);
    height: 100%;
    flex-shrink: 0;
    display: block;
    padding: 0px;
    position: relative;
}

.adianti-close-tab, .adianti-tab active {
    
    border: 1px solid #dedede;
    padding: 5px;
    border-radius: 5px;
}

#adianti_tab_content, .adianti_tab_content_actions {
    border-bottom: 0px solid var(--header-border-bottom) !important;
    margin-top: 10px !important;
}

/* Configuração dos itens de dashboard fixo dos módulos */
div[page_name="DashboardEvento"] .c3-axis-x text {
    font-size: 10px !important;
}

div[page_name="DashboardEvento"] .tick {
    
}

div[page_name="DashboardEvento"] .c3-legend-item {
    font-size: 10px !important;
}

.select2-container--default .select2-selection--single {
    /* max-width: 940px !important; */
}

div[page_name="DashboardEvento"] .card-title {
    color: var(--text-color-strong) !important;
    font-size: 20px !important;
    font-weight: 500 !important;
}

div[page_name="DashboardEvento"] .info-box {
    box-shadow: 0 1px 1px 1px rgb(0 0 0 / 10%) !important;
    border-radius: 6px !important;
}

div[page_name="DashboardEvento"] .card-body {
    background: #cccccc2e !important;
}

div[page_name="DashboardEvento"] .tabpanel_form_DashboardEvento {
    padding: 15px !important;
    margin-top: 3px !important;
    background: #ffffff !important;
    border-radius: 6px !important;
}

.kanban-stage {
    margin: 5px !important;
    padding: 5px !important;
}

/* Forçar alinhamento top em todas as células que contêm essas classes */
table td .payment-data,
table td .auditoria-info,
table td .alteracoes-log {
    vertical-align: top !important;
    display: block;
    width: 100%;
}

/* Garantir que a célula também esteja alinhada no topo */
table td:has(.payment-data),
table td:has(.auditoria-info),
table td:has(.alteracoes-log),
table td.auditoria-cell,
table td.alteracoes-cell {
    vertical-align: top !important;
}

/* Garantir que a célula tenha altura total */
table td:has(.payment-data),
table td:has(.auditoria-info),
table td:has(.alteracoes-log),
table td.auditoria-cell,
table td.alteracoes-cell {
    vertical-align: top !important;
    height: 100%;
    padding: 0; /* Remove padding da célula */
}

/* Fazer as divs preencherem toda a altura da célula */
.payment-data,
.auditoria-info, 
.alteracoes-log {
    vertical-align: top !important;
    height: 100% !important;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Garantir que o card dentro também preencha */
.payment-data .card,
.auditoria-info .card,
.alteracoes-log .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

/* O body do card deve expandir */
.payment-data .card-body,
.auditoria-info .card-body,
.alteracoes-log .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#agrupamento-pagamento-veiculo {
    border: 1px solid #ccc;
    padding: 5px;
    margin: 5px 0px;
    width: 100%;
    display: block;
    border-radius: 5px;
    background: #cccccc20;
}

#elemento_parcela_sem_desconto {
    color: #0015b5;
}

#elemento_aviso_contrato {
    color: #b50000;
}

/* box shadow janela window */  
div[page_name="TarefaAssistenciaForm"] .ui-dialog, 
div[page_name="VeiculoListAssistencia"] .ui-dialog, 
div[page_name="VeiculoListEventoPro"] .ui-dialog,
div[page_name="ContratoVeiculoAcrescimoParcelaForm"] .ui-dialog, 
div[page_name="ContratoVeiculoDescontoParcelaForm"] .ui-dialog, 
div[page_name="ReceberPagamentoVeiculoForm"] .ui-dialog,
div[page_name="TransferirEtapa"] .ui-dialog,
div[page_name="TransferirPipelineEvento"] .ui-dialog,
div[page_name="TWindow"] .ui-dialog,
div[page_name="TarefaEventoProForm"] .ui-dialog,
div[page_name="OrcamentoEventoProLoteWindow"] .ui-dialog,
div[page_name="MapaCoordenadasWindow"] .ui-dialog {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.bimagecarousel .splide__slide img {
    object-fit: contain !important;
}

.funcaoEtapa {
    width: 100% !important;
    margin-bottom: 5px !important;
}

.classificacao {
    font-size: 18px;
    font-weight: bold;
}

.b-info-card {
    border-radius: 6px;
    padding: 16px;
}

.b-info-card-icon {
    width: 60px !important;
    height: 60px !important;
    border-radius: 5px !important;
}

.b-info-card-title {
    font-size: 24px !important;
}

div[page_name="detailFormTipoLancamentoCartaoCartaoFormDetailCurtainPage"] {
    padding: 10px;
}

.modal-title {
    margin-right: 50px;
}
.info-box-text {
    text-transform: capitalize !important;
}

div[page_name="DashboardEvento"] .info-box-text {
    text-transform: initial !important;
}

.container-login .panel-login {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    height: 100% !important;
}

/*
.sidebar-mini .fixed-sidebar-mini-menu i {
        color: #1c6963 !important;
}
*/

.label {
    font-weight: 400 !important;
}

div[page_name="FluxoCaixaView"] .table td, .table th {
    padding: 15px 5px 15px 5px !important;
}

.despesa {
    color: #ef4545 !important;
}

.receita {
    color: #1ba39c !important;
}

.total_fluxocaixa {
    font-weight: 600; 
}
.titulos-fluxo-caixa {
    padding-left: 10px;
}

div[page_name="FluxoCaixaView"] .total_fluxocaixa {
    font-weight: bold; 
    font-size: 15px !important;
}
div[page_name="FluxoCaixaView"] #titulos-fluxo-caixa {
    position: sticky;
    left: 0;
    background-color: #f8f9fa;
    z-index: 2;
    border-right: 1px solid #dee2e6;
}
div[page_name="FluxoCaixaView"] .titulos-fluxo-caixa {
    
    font-size: 15px !important;
    font-weight: 600;
    color: #333;
    padding-left: 15px;
}
.operador_dre {
    font-weight: 300;
}

div[page-name="DREView"] .operador_dre {
    font-weight: 500;
    color: #3f5279;
    margin-right: 10px;
}

div[page-name="DREView"] .categoria_dre {
    font-size: 12px !important;
}

div[page-name="DREView"] .subcategoria_dre {
    font-style: italic !important;
}

div[page_name="EmpresaGestorForm"] img,
div[page_name="EmpresaForm"] img,
div[page_name="DashboardView"] img {
    max-height: 50px;
    max-width: 50px;
    border-radius: 5px;
    border: 1px solid #dfdfdf;
}
.iconpicker-popover {
    z-index: 999 !important;
    position: fixed !important;
}
.tabpanel_form_DashboardView, .tabpanel_form_DREView 
{
    padding: 0px !important;
}

div[page_name="DashboardView"] 
div[wrapped-widget="bdaterange"] {
    float: right;
}

div[page_name="DREView"] 
div[wrapped-widget="tspinner"] {
    float: right;
}

div[page_name="WidgetSystemList"] img,
div[page_name="WidgetList"] img
{
    max-height: 100px;
    width: 200px;
}

div[page_name="DashboardForm"] img
{
    max-height: 100px;
    width: 150px;
}

.tdatagrid_cell>img {
    max-height: 200px;
    width: 200px;
}

div[page_name="DashboardForm"] img
{
    max-height: 65px;
}

.linkLancamento, .linkPessoa {
    width: 100% !important;
}

#btnNovaProposta, #btnNovaNegociacao, #btnNovaCobranca, #btnNovoEvento {
    width: 100%;
}

div[page_name="LeadForm"] .select2-selection--multiple {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.MuiSvgIcon-root {
    fill: currentColor;
    width: 1em;
    height: 1em;
    display: inline-block;
    font-size: 1.5rem;
    transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    flex-shrink: 0;
    user-select: none;
}

/* ===== Modais Modernas: TemplateMensagemDocumento e TemplateDocumentoPdf ===== */
.modal-template-modern,
.modal-template-doc-pdf,
.modal-template-msg-doc,
.ui-dialog.modal-template-modern,
.ui-dialog.modal-template-doc-pdf,
.ui-dialog.modal-template-msg-doc,
[window_name="TemplateMensagemDocumento"] .ui-dialog,
[window_name="TemplateDocumentoPdf"] .ui-dialog,
.ui-dialog:has(form[name="form_TemplateDocumentoPdf"]),
.ui-dialog:has(form[name="form_TemplateMensagemDocumento"]),
.ui-dialog:has(#btnGerarDocumento),
.ui-dialog:has(#btnEnviarWhatsApp) {
    z-index: 2000050 !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    padding: 0 !important;
    overflow: visible !important;
    animation: modalModernFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body:has([window_name="comunicacao_window"]) .ui-widget-overlay,
body:has([window_name="template_window"]) .ui-widget-overlay,
body:has(div[window_name="TemplateMensagemDocumento"]) .ui-widget-overlay,
body:has(div[window_name="TemplateDocumentoPdf"]) .ui-widget-overlay,
body:has(.modal-template-modern) .ui-widget-overlay,
body:has(.modal-template-msg-doc) .ui-widget-overlay,
body:has(.modal-template-doc-pdf) .ui-widget-overlay,
body:has(.ui-dialog:has(form[name="form_TemplateDocumentoPdf"])) .ui-widget-overlay,
body:has(.ui-dialog:has(form[name="form_TemplateMensagemDocumento"])) .ui-widget-overlay,
body:has(.ui-dialog:has([window_name="comunicacao_window"])) .ui-widget-overlay,
body:has(.ui-dialog:has([window_name="template_window"])) .ui-widget-overlay {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    background: transparent !important;
}

[window_name="comunicacao_window"],
[window_name="template_window"],
.ui-dialog:has([window_name="comunicacao_window"]),
.ui-dialog:has([window_name="template_window"]) {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.1) !important;
    border-radius: 16px !important;
    border: none !important;
}

@keyframes modalModernFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== Titlebars das Modais Modernas ===== */
.ui-dialog:has(div[window_name="TemplateMensagemDocumento"]) .ui-dialog-titlebar,
div[window_name="TemplateMensagemDocumento"].ui-dialog .ui-dialog-titlebar,
.modal-template-msg-doc .ui-dialog-titlebar,
.ui-dialog.modal-template-msg-doc .ui-dialog-titlebar {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    padding: 14px 20px !important;
    border: none !important;
    border-radius: 16px 16px 0 0 !important;
    margin: 0 !important;
    display: block !important;
    position: relative !important;
    user-select: none !important;
}

.ui-dialog:has(div[window_name="TemplateDocumentoPdf"]) .ui-dialog-titlebar,
div[window_name="TemplateDocumentoPdf"].ui-dialog .ui-dialog-titlebar,
.modal-template-doc-pdf .ui-dialog-titlebar,
.ui-dialog.modal-template-doc-pdf .ui-dialog-titlebar {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    padding: 14px 20px !important;
    border: none !important;
    border-radius: 16px 16px 0 0 !important;
    margin: 0 !important;
    display: block !important;
    position: relative !important;
    user-select: none !important;
}

.ui-dialog:has(div[window_name="TemplateMensagemDocumento"]) .ui-dialog-title,
.ui-dialog:has(div[window_name="TemplateDocumentoPdf"]) .ui-dialog-title,
.modal-template-msg-doc .ui-dialog-title,
.modal-template-doc-pdf .ui-dialog-title {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.ui-dialog:has(div[window_name="TemplateMensagemDocumento"]) .ui-dialog-title::before,
div[window_name="TemplateMensagemDocumento"].ui-dialog .ui-dialog-title::before,
.modal-template-msg-doc .ui-dialog-title::before {
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    content: '\f086' !important;
    font-size: 15px !important;
    color: #ffffff !important;
}

.ui-dialog:has(div[window_name="TemplateDocumentoPdf"]) .ui-dialog-title::before,
div[window_name="TemplateDocumentoPdf"].ui-dialog .ui-dialog-title::before,
.modal-template-doc-pdf .ui-dialog-title::before {
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 400 !important;
    content: '\f1c1' !important;
    font-size: 15px !important;
    color: #ffffff !important;
}

/* ===== Botão Fechar (X) - Somente o ícone X, sem o texto 'Fechar' ===== */
.ui-dialog:has(div[window_name="TemplateMensagemDocumento"]) .ui-dialog-titlebar-close,
.ui-dialog:has(div[window_name="TemplateDocumentoPdf"]) .ui-dialog-titlebar-close,
.modal-template-msg-doc .ui-dialog-titlebar-close,
.modal-template-doc-pdf .ui-dialog-titlebar-close,
.modal-template-modern .ui-dialog-titlebar-close,
.ui-dialog.modal-template-modern .ui-dialog-titlebar-close {
    background: rgba(255, 255, 255, 0.22) !important;
    border: none !important;
    border-radius: 8px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    top: 50% !important;
    right: 14px !important;
    transform: translateY(-50%) !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important; /* Oculta qualquer nó de texto 'Fechar' */
    line-height: 0 !important;
    overflow: hidden !important;
    outline: none !important;
    box-shadow: none !important;
    text-indent: 0 !important;
}

.ui-dialog:has(div[window_name="TemplateMensagemDocumento"]) .ui-dialog-titlebar-close:hover,
.ui-dialog:has(div[window_name="TemplateDocumentoPdf"]) .ui-dialog-titlebar-close:hover,
.modal-template-msg-doc .ui-dialog-titlebar-close:hover,
.modal-template-doc-pdf .ui-dialog-titlebar-close:hover,
.modal-template-modern .ui-dialog-titlebar-close:hover,
.ui-dialog.modal-template-modern .ui-dialog-titlebar-close:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-50%) scale(1.06) !important;
}

/* Oculta os ícones padrões do jQuery UI */
.ui-dialog:has(div[window_name="TemplateMensagemDocumento"]) .ui-dialog-titlebar-close .ui-icon,
.ui-dialog:has(div[window_name="TemplateDocumentoPdf"]) .ui-dialog-titlebar-close .ui-icon,
.modal-template-msg-doc .ui-dialog-titlebar-close .ui-icon,
.modal-template-doc-pdf .ui-dialog-titlebar-close .ui-icon,
.modal-template-modern .ui-dialog-titlebar-close .ui-icon,
.ui-dialog.modal-template-modern .ui-dialog-titlebar-close .ui-icon,
.ui-dialog-titlebar-close .ui-button-icon,
.ui-dialog-titlebar-close .ui-button-icon-space {
    display: none !important;
}

/* Ícone X único, maior e perfeitamente centralizado */
.ui-dialog:has(div[window_name="TemplateMensagemDocumento"]) .ui-dialog-titlebar-close .close-x-icon,
.ui-dialog:has(div[window_name="TemplateDocumentoPdf"]) .ui-dialog-titlebar-close .close-x-icon,
.modal-template-msg-doc .ui-dialog-titlebar-close .close-x-icon,
.modal-template-doc-pdf .ui-dialog-titlebar-close .close-x-icon,
.modal-template-modern .ui-dialog-titlebar-close .close-x-icon,
.ui-dialog.modal-template-modern .ui-dialog-titlebar-close .close-x-icon {
    font-size: 16px !important;
    line-height: 1 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    user-select: none !important;
}

/* Suprime qualquer pseudo-elemento duplicado no botão fechar ou na titlebar */
.modal-template-msg-doc .ui-dialog-titlebar-close::before,
.modal-template-msg-doc .ui-dialog-titlebar-close::after,
.modal-template-doc-pdf .ui-dialog-titlebar-close::before,
.modal-template-doc-pdf .ui-dialog-titlebar-close::after,
.modal-template-modern .ui-dialog-titlebar-close::before,
.modal-template-modern .ui-dialog-titlebar-close::after,
.ui-dialog.modal-template-modern .ui-dialog-titlebar-close::before,
.ui-dialog.modal-template-modern .ui-dialog-titlebar-close::after,
.hide-titlebar-before::before,
.ui-dialog-titlebar.hide-titlebar-before::before,
.ui-dialog.modal-template-modern > .ui-dialog-titlebar::before,
.ui-dialog.modal-template-doc-pdf > .ui-dialog-titlebar::before,
.ui-dialog.modal-template-msg-doc > .ui-dialog-titlebar::before,
.modal-template-modern .ui-dialog-titlebar::before,
.modal-template-doc-pdf .ui-dialog-titlebar::before,
.modal-template-msg-doc .ui-dialog-titlebar::before {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    font-size: 0 !important;
}

div.modal-template-content,
[window_name="TemplateMensagemDocumento"] .ui-dialog-content,
[window_name="TemplateDocumentoPdf"] .ui-dialog-content,
div[name="TemplateMensagemDocumento"],
div[name="TemplateDocumentoPdf"] {
    padding: 18px 22px !important;
    background: #ffffff !important;
    border-radius: 0 0 16px 16px !important;
}

div.modal-template-content .panel-default,
[window_name="TemplateMensagemDocumento"] .panel-default,
[window_name="TemplateDocumentoPdf"] .panel-default {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

div.modal-template-content .panel-heading,
[window_name="TemplateMensagemDocumento"] .panel-heading,
[window_name="TemplateDocumentoPdf"] .panel-heading {
    display: none !important;
}

/* Card Moderno do Destinatário */
.modern-modal-dest-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.modern-modal-dest-card .dest-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.modern-modal-dest-card.pdf-dest .dest-avatar {
    background: #fee2e2;
    color: #ef4444;
}
.modern-modal-dest-card .dest-details {
    flex: 1;
    min-width: 0;
}
.modern-modal-dest-card .dest-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.modern-modal-dest-card .dest-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.modern-modal-dest-card .dest-badge {
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.modern-modal-dest-card .dest-badge.wpp {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.modern-modal-dest-card .dest-badge.email {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.modern-modal-dest-card .dest-badge.tel {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.modern-modal-dest-card .dest-badge.sem-dado {
    background: #f8fafc;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}

/* Botões Modernos de Comunicação */
#btnEnviarWhatsApp {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25) !important;
    transition: all 0.2s ease !important;
}
#btnEnviarWhatsApp:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}

#btnEnviarEmail {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.2s ease !important;
}
#btnEnviarEmail:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

#btnEnviarSMS {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25) !important;
    transition: all 0.2s ease !important;
}
#btnEnviarSMS:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35) !important;
}

#btnGerarDocumento {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25) !important;
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
}
#btnGerarDocumento:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35) !important;
}

div[window_name="TemplateMensagemDocumento"] button:disabled,
div[window_name="TemplateDocumentoPdf"] button:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
    filter: grayscale(0.5) !important;
}

div[window_name="TemplateMensagemDocumento"] button.is-loading,
div[window_name="TemplateDocumentoPdf"] button.is-loading {
    opacity: 0.85 !important;
    cursor: wait !important;
    pointer-events: none !important;
}

.modern-modal-dest-card .dest-warning-box {
    margin-top: 8px !important;
    padding: 7px 10px !important;
    background: #fffbeb !important;
    border: 1px solid #fef3c7 !important;
    border-radius: 8px !important;
    color: #92400e !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
}
.modern-modal-dest-card .dest-warning-box i {
    color: #f59e0b !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
}

/* ===== Modais Modernas de Importação (OFX, Fatura Cartão, XLSX Cotas, CSV Cobrança, Vincular Lançamento) ===== */
.modal-modern-import,
.ui-dialog.modal-modern-import,
.ui-dialog:has(form[name="form_ImportarOFXLancamento"]),
.ui-dialog:has(form[name="form_ImportarOFXLancamentoPareamento"]),
.ui-dialog:has(form[name="form_ImportarOFXLancamentoRevisao"]),
.ui-dialog:has(form[name="form_BuscarLancamentoVincular"]),
.ui-dialog:has(.modal-vincular-lancamento),
.ui-dialog.modal-vincular-lancamento,
.ui-dialog:has(form[name="form_ImportarCSVFaturaCartao"]),
.ui-dialog:has(form[name="form_ImportarCSVFaturaCartaoPareamento"]),
.ui-dialog:has(form[name="form_ImportarCSVFaturaCartaoRevisao"]),
.ui-dialog:has(form[name="form_ImportarXlsxFaixaPreco"]),
.ui-dialog:has(form[name="form_ImportarXlsxFaixaPrecoPareamento"]),
.ui-dialog:has(form[name="form_ImportarXlsxFaixaPrecoRevisao"]),
.ui-dialog:has(form[name="form_ImportarCSVCobranca"]),
.ui-dialog:has(.modal-modern-import-form),
div[window_name="ImportarOFXLancamento"].ui-dialog,
div[window_name="ImportarOFXLancamentoPareamento"].ui-dialog,
div[window_name="ImportarOFXLancamentoRevisao"].ui-dialog,
div[window_name="BuscarLancamentoVincular"].ui-dialog,
div[window_name="ImportarCSVFaturaCartao"].ui-dialog,
div[window_name="ImportarCSVFaturaCartaoPareamento"].ui-dialog,
div[window_name="ImportarCSVFaturaCartaoRevisao"].ui-dialog,
div[window_name="ImportarXlsxFaixaPreco"].ui-dialog,
div[window_name="ImportarXlsxFaixaPrecoPareamento"].ui-dialog,
div[window_name="ImportarXlsxFaixaPrecoRevisao"].ui-dialog,
div[window_name="ImportarCSVCobranca"].ui-dialog {
    z-index: 2000050 !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    border: none !important;
    padding: 0 !important;
    overflow: visible !important;
    animation: modalModernFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background: #ffffff !important;
}

/* Elevação de z-index pontual para modais de Fatura de Cartão para sobrepor a cortina lateral */
.ui-dialog:has(form[name*="ImportarCSVFaturaCartao"]),
div[window_name*="ImportarCSVFaturaCartao"].ui-dialog {
    z-index: 2000095 !important;
}

/* Z-Index superior para modal de busca e vínculo (filha da revisão) */
div[window_name="BuscarLancamentoVincular"].ui-dialog,
.ui-dialog:has(form[name="form_BuscarLancamentoVincular"]),
.ui-dialog.modal-vincular-lancamento,
.ui-dialog:has(.modal-vincular-lancamento) {
    z-index: 2000075 !important;
}

/* Titlebars das Modais de Importação e Conciliação (Gradient Roxo/Índigo OFX) */
body.theme-mode-modern .ui-dialog:has(form[name*="ImportarOFX"]) .ui-dialog-titlebar,
body.theme-mode-modern .ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) .ui-dialog-titlebar,
body.theme-mode-modern .ui-dialog:has(.modal-import-ofx) .ui-dialog-titlebar,
body.theme-mode-modern .ui-dialog:has(.modal-import-ofx-pareamento) .ui-dialog-titlebar,
body.theme-mode-modern .ui-dialog:has(.modal-import-ofx-revisao) .ui-dialog-titlebar,
body.theme-mode-modern .ui-dialog:has(.modal-vincular-lancamento) .ui-dialog-titlebar,
body.theme-mode-modern div[window_name*="ImportarOFX"].ui-dialog .ui-dialog-titlebar,
body.theme-mode-modern div[window_name="BuscarLancamentoVincular"].ui-dialog .ui-dialog-titlebar,
body.theme-mode-modern .modal-import-ofx .ui-dialog-titlebar,
body.theme-mode-modern .modal-import-ofx-pareamento .ui-dialog-titlebar,
body.theme-mode-modern .modal-import-ofx-revisao .ui-dialog-titlebar,
body.theme-mode-modern .modal-vincular-lancamento .ui-dialog-titlebar,
.ui-dialog:has(form[name*="ImportarOFX"]) .ui-dialog-titlebar,
.ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) .ui-dialog-titlebar,
.ui-dialog:has(.modal-import-ofx) .ui-dialog-titlebar,
.ui-dialog:has(.modal-import-ofx-pareamento) .ui-dialog-titlebar,
.ui-dialog:has(.modal-import-ofx-revisao) .ui-dialog-titlebar,
.ui-dialog:has(.modal-vincular-lancamento) .ui-dialog-titlebar,
div[window_name*="ImportarOFX"].ui-dialog .ui-dialog-titlebar,
div[window_name="BuscarLancamentoVincular"].ui-dialog .ui-dialog-titlebar,
.modal-import-ofx .ui-dialog-titlebar,
.modal-import-ofx-pareamento .ui-dialog-titlebar,
.modal-import-ofx-revisao .ui-dialog-titlebar,
.modal-vincular-lancamento .ui-dialog-titlebar {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%) !important;
}

.ui-dialog:has(form[name*="ImportarCSVFaturaCartao"]) .ui-dialog-titlebar,
.ui-dialog:has(.modal-import-fatura-cartao) .ui-dialog-titlebar,
.ui-dialog:has(.modal-import-cartao-pareamento) .ui-dialog-titlebar,
.ui-dialog:has(.modal-import-cartao-revisao) .ui-dialog-titlebar,
div[window_name*="ImportarCSVFaturaCartao"].ui-dialog .ui-dialog-titlebar,
.modal-import-fatura-cartao .ui-dialog-titlebar,
.modal-import-cartao-pareamento .ui-dialog-titlebar,
.modal-import-cartao-revisao .ui-dialog-titlebar {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
}

.ui-dialog:has(form[name*="ImportarXlsxFaixaPreco"]) .ui-dialog-titlebar,
.ui-dialog:has(.modal-import-xlsx-faixa-preco) .ui-dialog-titlebar,
.ui-dialog:has(.modal-import-veiculo-pareamento) .ui-dialog-titlebar,
.ui-dialog:has(.modal-import-veiculo-revisao) .ui-dialog-titlebar,
div[window_name*="ImportarXlsxFaixaPreco"].ui-dialog .ui-dialog-titlebar,
.modal-import-xlsx-faixa-preco .ui-dialog-titlebar,
.modal-import-veiculo-pareamento .ui-dialog-titlebar,
.modal-import-veiculo-revisao .ui-dialog-titlebar {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.ui-dialog:has(form[name="form_ImportarCSVCobranca"]) .ui-dialog-titlebar,
.ui-dialog:has(.modal-import-csv-cobranca) .ui-dialog-titlebar,
div[window_name="ImportarCSVCobranca"].ui-dialog .ui-dialog-titlebar,
.modal-import-csv-cobranca .ui-dialog-titlebar {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.ui-dialog:has(.modal-modern-import) .ui-dialog-titlebar,
.ui-dialog.modal-modern-import .ui-dialog-titlebar,
.ui-dialog:has(form[name*="Importar"]) .ui-dialog-titlebar,
.ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) .ui-dialog-titlebar,
.ui-dialog:has(.modal-vincular-lancamento) .ui-dialog-titlebar,
div[window_name="BuscarLancamentoVincular"].ui-dialog .ui-dialog-titlebar {
    color: #ffffff !important;
    padding: 15px 22px !important;
    border: none !important;
    border-radius: 16px 16px 0 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    user-select: none !important;
    flex-shrink: 0 !important;
}

.ui-dialog:has(.modal-modern-import) .ui-dialog-title,
.ui-dialog.modal-modern-import .ui-dialog-title,
.ui-dialog:has(form[name*="Importar"]) .ui-dialog-title,
.ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) .ui-dialog-title,
.ui-dialog:has(.modal-vincular-lancamento) .ui-dialog-title,
div[window_name="BuscarLancamentoVincular"].ui-dialog .ui-dialog-title {
    color: #ffffff !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Botão Fechar (X) das Modais de Importação e Vínculo - fixado à direita com X perfeitamente centralizado */
.ui-dialog:has(.modal-modern-import) .ui-dialog-titlebar-close,
.ui-dialog.modal-modern-import .ui-dialog-titlebar-close,
.ui-dialog:has(form[name*="Importar"]) .ui-dialog-titlebar-close,
.ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) .ui-dialog-titlebar-close,
.ui-dialog:has(.modal-vincular-lancamento) .ui-dialog-titlebar-close,
div[window_name*="Importar"].ui-dialog .ui-dialog-titlebar-close,
div[window_name="BuscarLancamentoVincular"].ui-dialog .ui-dialog-titlebar-close {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    background: rgba(255, 255, 255, 0.22) !important;
    border: none !important;
    border-radius: 8px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    padding: 0 !important;
    margin: 0 0 0 auto !important;
    color: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: visible !important;
    outline: none !important;
    box-shadow: none !important;
    text-indent: 0 !important;
}

.ui-dialog:has(.modal-modern-import) .ui-dialog-titlebar-close:hover,
.ui-dialog.modal-modern-import .ui-dialog-titlebar-close:hover,
.ui-dialog:has(form[name*="Importar"]) .ui-dialog-titlebar-close:hover,
.ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) .ui-dialog-titlebar-close:hover,
.ui-dialog:has(.modal-vincular-lancamento) .ui-dialog-titlebar-close:hover,
div[window_name*="Importar"].ui-dialog .ui-dialog-titlebar-close:hover,
div[window_name="BuscarLancamentoVincular"].ui-dialog .ui-dialog-titlebar-close:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    transform: scale(1.06) !important;
}

.ui-dialog:has(.modal-modern-import) .ui-dialog-titlebar-close .ui-icon,
.ui-dialog.modal-modern-import .ui-dialog-titlebar-close .ui-icon,
.ui-dialog:has(form[name*="Importar"]) .ui-dialog-titlebar-close .ui-icon,
.ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) .ui-dialog-titlebar-close .ui-icon,
.ui-dialog:has(.modal-vincular-lancamento) .ui-dialog-titlebar-close .ui-icon,
.ui-dialog:has(.modal-modern-import) .ui-dialog-titlebar-close .ui-button-icon,
.ui-dialog.modal-modern-import .ui-dialog-titlebar-close .ui-button-icon,
.ui-dialog:has(.modal-modern-import) .ui-dialog-titlebar-close .ui-button-icon-space {
    display: none !important;
}

.ui-dialog:has(.modal-modern-import) .ui-dialog-titlebar-close::after,
.ui-dialog.modal-modern-import .ui-dialog-titlebar-close::after,
.ui-dialog:has(form[name*="Importar"]) .ui-dialog-titlebar-close::after,
.ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) .ui-dialog-titlebar-close::after,
.ui-dialog:has(.modal-vincular-lancamento) .ui-dialog-titlebar-close::after,
div[window_name*="Importar"].ui-dialog .ui-dialog-titlebar-close::after,
div[window_name="BuscarLancamentoVincular"].ui-dialog .ui-dialog-titlebar-close::after {
    content: '\f00d' !important;
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    font-size: 13.5px !important;
    color: #ffffff !important;
    line-height: 30px !important;
    width: 30px !important;
    height: 30px !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: auto !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-indent: 0 !important;
    pointer-events: none !important;
}

.ui-dialog:has(.modal-modern-import) .ui-dialog-titlebar::before,
.ui-dialog.modal-modern-import .ui-dialog-titlebar::before,
.ui-dialog:has(form[name*="Importar"]) .ui-dialog-titlebar::before,
.ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) .ui-dialog-titlebar::before,
.ui-dialog:has(.modal-vincular-lancamento) .ui-dialog-titlebar::before,
div[window_name*="Importar"].ui-dialog .ui-dialog-titlebar::before,
div[window_name="BuscarLancamentoVincular"].ui-dialog .ui-dialog-titlebar::before {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

/* Centralização vertical e conteúdo interno das modais de importação e vínculo */
.ui-dialog:has(.modal-modern-import),
.ui-dialog.modal-modern-import,
.ui-dialog:has(form[name*="Importar"]),
.ui-dialog:has(form[name="form_BuscarLancamentoVincular"]),
.ui-dialog:has(.modal-vincular-lancamento),
.ui-dialog.modal-vincular-lancamento,
div[window_name*="Importar"].ui-dialog,
div[window_name="BuscarLancamentoVincular"].ui-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-height: 94vh !important;
    height: auto !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
}

/* Largura calibrada para 70% nas modais de Pareamento e Busca de Vínculo */
.ui-dialog:has(.modal-import-pareamento),
.ui-dialog.modal-import-pareamento,
.ui-dialog:has(form[name*="Pareamento"]),
.ui-dialog:has(form[name="form_BuscarLancamentoVincular"]),
.ui-dialog:has(.modal-vincular-lancamento),
.ui-dialog.modal-vincular-lancamento,
div[window_name*="Pareamento"].ui-dialog,
div[window_name="BuscarLancamentoVincular"].ui-dialog {
    width: 70vw !important;
    max-width: 1320px !important;
    min-width: 760px !important;
}

.ui-dialog:has(.modal-modern-import) > .ui-dialog-titlebar,
.ui-dialog.modal-modern-import > .ui-dialog-titlebar,
.ui-dialog:has(form[name*="Importar"]) > .ui-dialog-titlebar,
.ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) > .ui-dialog-titlebar,
.ui-dialog:has(.modal-vincular-lancamento) > .ui-dialog-titlebar,
div[window_name*="Importar"].ui-dialog > .ui-dialog-titlebar,
div[window_name="BuscarLancamentoVincular"].ui-dialog > .ui-dialog-titlebar {
    flex-shrink: 0 !important;
    margin: 0 !important;
    border-radius: 16px 16px 0 0 !important;
}

.ui-dialog:has(.modal-modern-import) > .ui-dialog-content,
.ui-dialog.modal-modern-import > .ui-dialog-content,
.ui-dialog:has(form[name*="Importar"]) > .ui-dialog-content,
.ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) > .ui-dialog-content,
.ui-dialog:has(.modal-vincular-lancamento) > .ui-dialog-content,
div[window_name*="Importar"].ui-dialog > .ui-dialog-content,
div[window_name="BuscarLancamentoVincular"].ui-dialog > .ui-dialog-content {
    background: #ffffff !important;
    padding: 18px 22px 0 22px !important;
    border-radius: 0 0 16px 16px !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    max-height: calc(94vh - 65px) !important;
    flex: 1 1 auto !important;
}

/* Modal de Revisão OFX: apenas UMA barra de rolagem (na tabela), rodapé sempre visível descontando altura */
.ui-dialog:has(.modal-import-ofx-revisao) > .ui-dialog-content,
.ui-dialog.modal-import-ofx-revisao > .ui-dialog-content,
.ui-dialog:has(.modal-import-revisao) > .ui-dialog-content,
.ui-dialog.modal-import-revisao > .ui-dialog-content,
div[window_name="ImportarOFXLancamentoRevisao"].ui-dialog > .ui-dialog-content {
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    max-height: calc(92vh - 55px) !important;
    padding: 14px 18px 12px 18px !important;
    box-sizing: border-box !important;
}

.ui-dialog:has(.modal-import-ofx-revisao) #tabela_container,
.ui-dialog.modal-import-ofx-revisao #tabela_container,
.ui-dialog:has(.modal-import-revisao) #tabela_container,
.ui-dialog.modal-import-revisao #tabela_container,
div[window_name="ImportarOFXLancamentoRevisao"].ui-dialog #tabela_container {
    max-height: calc(92vh - 380px) !important;
    overflow-y: auto !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
}

.ui-dialog:has(.modal-import-ofx-revisao) .revisao-footer-section,
.ui-dialog.modal-import-ofx-revisao .revisao-footer-section,
.ui-dialog:has(.modal-import-revisao) .revisao-footer-section,
.ui-dialog.modal-import-revisao .revisao-footer-section,
div[window_name="ImportarOFXLancamentoRevisao"].ui-dialog .revisao-footer-section {
    flex-shrink: 0 !important;
    margin-top: auto !important;
}

.ui-dialog:has(.modal-import-ofx-revisao),
.ui-dialog.modal-import-ofx-revisao,
.ui-dialog:has(.modal-import-revisao),
.ui-dialog.modal-import-revisao,
div[window_name="ImportarOFXLancamentoRevisao"].ui-dialog {
    height: auto !important;
    max-height: 92vh !important;
}

/* Correção Local: Ícones dos botões neutros (Cancelar / Voltar / Fechar / Ajuda) nas modais de importação e vínculo */
/* Garante altíssima especificidade para vencer regras globais de modern_engine.css (ex: button:has(i.fa-times) i { color: #fff !important }) */
body.theme-mode-modern .ui-dialog.modal-modern-import button[name*="cancelar" i] i,
body.theme-mode-modern .ui-dialog.modal-modern-import button[name*="fechar" i] i,
body.theme-mode-modern .ui-dialog.modal-modern-import button[name*="voltar" i] i,
body.theme-mode-modern .ui-dialog.modal-modern-import button.btn-modern-import-cancel i,
body.theme-mode-modern .ui-dialog.modal-modern-import button.btn-default i,
body.theme-mode-modern .ui-dialog.modal-modern-import button:not(.btn-primary):not(.btn-success):not(.btn-danger) i,
body.theme-mode-modern .ui-dialog:has(.modal-modern-import) button[name*="cancelar" i] i,
body.theme-mode-modern .ui-dialog:has(.modal-modern-import) button[name*="fechar" i] i,
body.theme-mode-modern .ui-dialog:has(.modal-modern-import) button[name*="voltar" i] i,
body.theme-mode-modern .ui-dialog:has(.modal-modern-import) button.btn-modern-import-cancel i,
body.theme-mode-modern .ui-dialog:has(.modal-modern-import) button.btn-default i,
body.theme-mode-modern .ui-dialog:has(.modal-modern-import) button:not(.btn-primary):not(.btn-success):not(.btn-danger) i,
body.theme-mode-modern .ui-dialog:has(form[name*="Importar"]) button[name*="cancelar" i] i,
body.theme-mode-modern .ui-dialog:has(form[name*="Importar"]) button[name*="fechar" i] i,
body.theme-mode-modern .ui-dialog:has(form[name*="Importar"]) button[name*="voltar" i] i,
body.theme-mode-modern .ui-dialog:has(form[name*="Importar"]) button.btn-modern-import-cancel i,
body.theme-mode-modern .ui-dialog:has(form[name*="Importar"]) button.btn-default i,
body.theme-mode-modern .ui-dialog:has(form[name*="Importar"]) button:not(.btn-primary):not(.btn-success):not(.btn-danger) i,
body.theme-mode-modern .ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) button[name*="cancelar" i] i,
body.theme-mode-modern .ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) button[name*="fechar" i] i,
body.theme-mode-modern .ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) button[name*="voltar" i] i,
body.theme-mode-modern .ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) button.btn-modern-import-cancel i,
body.theme-mode-modern .ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) button.btn-default i,
body.theme-mode-modern .ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) button:not(.btn-primary):not(.btn-success):not(.btn-danger) i,
body.theme-mode-modern .ui-dialog:has(.modal-vincular-lancamento) button[name*="cancelar" i] i,
body.theme-mode-modern .ui-dialog:has(.modal-vincular-lancamento) button[name*="fechar" i] i,
body.theme-mode-modern .ui-dialog:has(.modal-vincular-lancamento) button[name*="voltar" i] i,
body.theme-mode-modern .ui-dialog:has(.modal-vincular-lancamento) button.btn-modern-import-cancel i,
body.theme-mode-modern .ui-dialog:has(.modal-vincular-lancamento) button.btn-default i,
body.theme-mode-modern .ui-dialog:has(.modal-vincular-lancamento) button:not(.btn-primary):not(.btn-success):not(.btn-danger) i,
body.theme-mode-modern #btn_fechar_vincular i,
body.theme-mode-modern #btn_cancelar_ofx i,
body.theme-mode-modern #btn_cancelar_pareamento i,
body.theme-mode-modern #btn_voltar_pareamento i,
body.theme-mode-modern #btn_cancelar i,
body.theme-mode-modern #btn_voltar i,
#btn_fechar_vincular i,
#btn_cancelar_ofx i,
#btn_cancelar_pareamento i,
#btn_voltar_pareamento i,
#btn_cancelar i,
#btn_voltar i,
.btn-modern-import-cancel i,
.btn-modern-import-cancel span {
    color: #64748b !important;
    font-size: 13px;
}
body.theme-mode-modern #btn_fechar_vincular:hover i,
body.theme-mode-modern #btn_cancelar_ofx:hover i,
body.theme-mode-modern #btn_cancelar_pareamento:hover i,
body.theme-mode-modern #btn_voltar_pareamento:hover i,
body.theme-mode-modern #btn_cancelar:hover i,
body.theme-mode-modern #btn_voltar:hover i,
#btn_fechar_vincular:hover i,
#btn_cancelar_ofx:hover i,
#btn_cancelar_pareamento:hover i,
#btn_voltar_pareamento:hover i,
#btn_cancelar:hover i,
#btn_voltar:hover i,
.btn-modern-import-cancel:hover i,
.btn-modern-import-cancel:hover span {
    color: #1e293b !important;
}

/* Botão Vincular Lançamento na tabela de revisão (unlinked vs linked) */
body.theme-mode-modern .modal-modern-import .btn-vincular:not(.btn-success) i,
body.theme-mode-modern .ui-dialog:has(form[name="form_ImportarOFXLancamentoRevisao"]) .btn-vincular:not(.btn-success) i,
body.theme-mode-modern div[window_name="ImportarOFXLancamentoRevisao"] .btn-vincular:not(.btn-success) i,
.modal-modern-import .btn-vincular:not(.btn-success) i {
    color: #4f46e5 !important;
}
body.theme-mode-modern .modal-modern-import .btn-vincular.btn-success i,
body.theme-mode-modern .ui-dialog:has(form[name="form_ImportarOFXLancamentoRevisao"]) .btn-vincular.btn-success i,
body.theme-mode-modern div[window_name="ImportarOFXLancamentoRevisao"] .btn-vincular.btn-success i,
.modal-modern-import .btn-vincular.btn-success,
.modal-modern-import .btn-vincular.btn-success i {
    color: #ffffff !important;
    background-color: #059669 !important;
}

/* Botão Remover Linha na tabela de revisão */
body.theme-mode-modern .modal-modern-import .btn-remover i,
body.theme-mode-modern .ui-dialog:has(form[name="form_ImportarOFXLancamentoRevisao"]) .btn-remover i,
body.theme-mode-modern div[window_name="ImportarOFXLancamentoRevisao"] .btn-remover i,
.modal-modern-import .btn-remover i {
    color: #ef4444 !important;
}
body.theme-mode-modern .modal-modern-import .btn-remover:hover i,
body.theme-mode-modern .ui-dialog:has(form[name="form_ImportarOFXLancamentoRevisao"]) .btn-remover:hover i,
body.theme-mode-modern div[window_name="ImportarOFXLancamentoRevisao"] .btn-remover:hover i,
.modal-modern-import .btn-remover:hover i {
    color: #b91c1c !important;
}

/* Botões de Ação Principal (Salvar, Avançar, Buscar, Carregar, Vincular) - Ícone e Texto Branco Rigoroso */
.btn-modern-import-primary,
.btn-modern-import-primary *,
.btn-modern-import-primary i,
.btn-modern-import-primary span,
.btn-modern-import-primary:hover,
.btn-modern-import-primary:focus,
.btn-modern-import-primary:active,
.btn-modern-import-primary.is-processing-btn,
.btn-modern-import-primary.is-processing-btn *,
.btn-modern-import-primary.is-processing-btn i,
.btn-modern-import-primary.is-processing-btn span,
#btn_carregar_ofx,
#btn_carregar_ofx *,
#btn_carregar_ofx i,
#btn_carregar_ofx span,
#btn_avancar_pareamento,
#btn_avancar_pareamento *,
#btn_avancar_pareamento i,
#btn_avancar_pareamento span,
#btn_salvar_importacao,
#btn_salvar_importacao *,
#btn_salvar_importacao i,
#btn_salvar_importacao span,
#btn_buscar_vincular,
#btn_buscar_vincular *,
#btn_buscar_vincular i,
#btn_buscar_vincular span,
.btn-selecionar,
.btn-selecionar *,
.btn-selecionar i,
.btn-selecionar span {
    color: #ffffff !important;
}


.ui-dialog:has(form[name="form_ImportarOFXLancamento"]) .panel-heading,
.ui-dialog:has(form[name="form_ImportarOFXLancamentoPareamento"]) .panel-heading,
.ui-dialog:has(form[name="form_ImportarOFXLancamentoRevisao"]) .panel-heading,
.ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) .panel-heading,
.ui-dialog:has(.modal-vincular-lancamento) .panel-heading,
div[window_name="BuscarLancamentoVincular"] .panel-heading,
.ui-dialog:has(form[name="form_ImportarCSVFaturaCartao"]) .panel-heading,
.ui-dialog:has(form[name="form_ImportarCSVFaturaCartaoPareamento"]) .panel-heading,
.ui-dialog:has(form[name="form_ImportarCSVFaturaCartaoRevisao"]) .panel-heading,
.ui-dialog:has(form[name="form_ImportarXlsxFaixaPreco"]) .panel-heading,
.ui-dialog:has(form[name="form_ImportarXlsxFaixaPrecoPareamento"]) .panel-heading,
.ui-dialog:has(form[name="form_ImportarXlsxFaixaPrecoRevisao"]) .panel-heading,
.ui-dialog:has(form[name="form_ImportarCSVCobranca"]) .panel-heading,
.ui-dialog:has(form[name="form_ImportarOFXLancamento"]) .card-header,
.ui-dialog:has(form[name="form_ImportarOFXLancamentoPareamento"]) .card-header,
.ui-dialog:has(form[name="form_ImportarOFXLancamentoRevisao"]) .card-header,
.ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) .card-header,
.ui-dialog:has(.modal-vincular-lancamento) .card-header,
div[window_name="BuscarLancamentoVincular"] .card-header,
.ui-dialog:has(form[name="form_ImportarCSVFaturaCartao"]) .card-header,
.ui-dialog:has(form[name="form_ImportarCSVFaturaCartaoPareamento"]) .card-header,
.ui-dialog:has(form[name="form_ImportarCSVFaturaCartaoRevisao"]) .card-header,
.ui-dialog:has(form[name="form_ImportarXlsxFaixaPreco"]) .card-header,
.ui-dialog:has(form[name="form_ImportarXlsxFaixaPrecoPareamento"]) .card-header,
.ui-dialog:has(form[name="form_ImportarXlsxFaixaPrecoRevisao"]) .card-header,
.ui-dialog:has(form[name="form_ImportarCSVCobranca"]) .card-header,
.modal-modern-import .panel-heading,
.modal-modern-import .card-header,
.modal-import-pareamento .panel-heading,
.modal-import-pareamento .card-header,
.modal-import-revisao .panel-heading,
.modal-import-revisao .card-header,
.modal-vincular-lancamento .panel-heading,
.modal-vincular-lancamento .card-header {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    visibility: hidden !important;
}

.ui-dialog:has(form[name="form_ImportarOFXLancamento"]) .panel-default,
.ui-dialog:has(form[name="form_ImportarOFXLancamentoPareamento"]) .panel-default,
.ui-dialog:has(form[name="form_ImportarOFXLancamentoRevisao"]) .panel-default,
.ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) .panel-default,
.ui-dialog:has(.modal-vincular-lancamento) .panel-default,
div[window_name="BuscarLancamentoVincular"] .panel-default,
.ui-dialog:has(form[name="form_ImportarCSVFaturaCartao"]) .panel-default,
.ui-dialog:has(form[name="form_ImportarCSVFaturaCartaoPareamento"]) .panel-default,
.ui-dialog:has(form[name="form_ImportarCSVFaturaCartaoRevisao"]) .panel-default,
.ui-dialog:has(form[name="form_ImportarXlsxFaixaPreco"]) .panel-default,
.ui-dialog:has(form[name="form_ImportarXlsxFaixaPrecoPareamento"]) .panel-default,
.ui-dialog:has(form[name="form_ImportarXlsxFaixaPrecoRevisao"]) .panel-default,
.ui-dialog:has(form[name="form_ImportarCSVCobranca"]) .panel-default,
.modal-modern-import .panel-default,
.modal-import-pareamento .panel-default,
.modal-import-revisao .panel-default,
.modal-vincular-lancamento .panel-default {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    background: transparent !important;
}

.ui-dialog:has(form[name="form_ImportarOFXLancamento"]) .panel-footer,
.ui-dialog:has(form[name="form_ImportarOFXLancamentoPareamento"]) .panel-footer,
.ui-dialog:has(form[name="form_ImportarOFXLancamentoRevisao"]) .panel-footer,
.ui-dialog:has(form[name="form_BuscarLancamentoVincular"]) .panel-footer,
.ui-dialog:has(.modal-vincular-lancamento) .panel-footer,
div[window_name="BuscarLancamentoVincular"] .panel-footer,
.ui-dialog:has(form[name="form_ImportarCSVFaturaCartao"]) .panel-footer,
.ui-dialog:has(form[name="form_ImportarCSVFaturaCartaoPareamento"]) .panel-footer,
.ui-dialog:has(form[name="form_ImportarCSVFaturaCartaoRevisao"]) .panel-footer,
.ui-dialog:has(form[name="form_ImportarXlsxFaixaPreco"]) .panel-footer,
.ui-dialog:has(form[name="form_ImportarXlsxFaixaPrecoPareamento"]) .panel-footer,
.ui-dialog:has(form[name="form_ImportarXlsxFaixaPrecoRevisao"]) .panel-footer,
.ui-dialog:has(form[name="form_ImportarCSVCobranca"]) .panel-footer,
.modal-modern-import .panel-footer,
.modal-import-pareamento .panel-footer,
.modal-import-revisao .panel-footer,
.modal-vincular-lancamento .panel-footer {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 16px 24px 24px 24px !important;
    margin: 18px -22px 0 -22px !important;
    border-radius: 0 0 16px 16px !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 12px !important;
    box-sizing: border-box !important;
}

.modal-modern-import .panel-footer .btn,
.modal-modern-import .panel-footer button,
.modal-import-pareamento .panel-footer .btn,
.modal-import-pareamento .panel-footer button,
.modal-vincular-lancamento .panel-footer .btn,
.modal-vincular-lancamento .panel-footer button,
.btn-modern-import-primary,
.btn-modern-import-cancel {
    margin-bottom: 4px !important;
}

/* Resumo Moderno de Pareamento (Chips) */
.modern-pareamento-body-wrap {
    padding: 6px 18px 0 18px;
    box-sizing: border-box;
}

.modern-pareamento-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.modern-pareamento-summary .summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12.5px;
    color: #475569;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.modern-pareamento-summary .summary-chip span {
    color: #64748b;
    font-weight: 500;
}

.modern-pareamento-summary .summary-chip strong {
    color: #1e293b;
    font-weight: 700;
}

.modern-pareamento-summary .summary-chip.badge-count {
    margin-left: auto;
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

/* Card e Tabela Estruturada de Pareamento */
.modern-pareamento-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.modern-pareamento-card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 16px;
}

.modern-pareamento-card-header .title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-pareamento-card-header .subtitle {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.modern-pareamento-table-wrap {
    max-height: 290px;
    overflow-y: auto;
}

.modern-pareamento-table {
    margin: 0 !important;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.modern-pareamento-table thead th {
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 9px 16px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    position: sticky;
    top: 0;
    z-index: 2;
}

.modern-pareamento-table tbody td {
    padding: 8px 16px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 13px !important;
}

.modern-pareamento-table tbody tr:hover td {
    background-color: #f8fafc !important;
}

.modern-pareamento-table .campo-label {
    font-weight: 600;
    color: #1e293b;
    font-size: 13px;
    line-height: 1.25;
}

.modern-pareamento-table .campo-subtag {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 2px;
    font-family: monospace;
}

.modern-pareamento-select {
    height: 36px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 13px !important;
    color: #1e293b !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.modern-pareamento-select:focus {
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15) !important;
    outline: none !important;
}

.modern-exemplo-val {
    font-size: 12px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 8px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card e Tabela de Preview Moderno */
.modern-preview-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 6px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.modern-preview-card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-preview-card-header .preview-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-preview-card-header .preview-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.modern-preview-table-wrap {
    max-height: 150px;
    overflow: auto;
}

.modern-preview-table {
    margin: 0 !important;
    font-size: 12px !important;
    border-collapse: collapse;
    width: 100%;
}

.modern-preview-table thead th {
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
}

.modern-preview-table tbody td {
    padding: 5px 12px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    white-space: nowrap;
    color: #334155;
}

/* Cards informativos de cabeçalho interno das modais de importação */
.modern-import-head-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.modern-import-head-card .head-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.modern-import-head-card.ofx .head-card-avatar {
    background: #e0e7ff;
    color: #4f46e5;
}

.modern-import-head-card.cartao .head-card-avatar {
    background: #ede9fe;
    color: #7c3aed;
}

.modern-import-head-card.cota .head-card-avatar {
    background: #d1fae5;
    color: #059669;
}

.modern-import-head-card.cobranca .head-card-avatar {
    background: #fef3c7;
    color: #d97706;
}

.modern-import-head-card .head-card-body {
    flex: 1;
    min-width: 0;
}

.modern-import-head-card .head-card-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    margin-bottom: 2px;
}

.modern-import-head-card .head-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.modern-import-head-card .head-card-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.35;
}

/* Info Box de Orientações */
.modern-import-info-box {
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.5;
}

.modern-import-info-box.ofx {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.modern-import-info-box.cartao {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    color: #5b21b6;
}

.modern-import-info-box.cota {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.modern-import-info-box.cobranca {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #92400e;
}

.modern-import-info-box .info-box-header {
    font-weight: 700;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.modern-import-info-box ul {
    margin: 0;
    padding-left: 18px;
}

.modern-import-info-box li {
    margin-bottom: 3px;
}

.modern-import-info-box li:last-child {
    margin-bottom: 0;
}

/* Botões Modernos das Modais de Importação */
.btn-modern-import-primary {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    border-radius: 8px !important;
    padding: 9px 20px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-modern-import-primary.ofx {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
}
.btn-modern-import-primary.ofx:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
}

.btn-modern-import-primary.cartao {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25) !important;
}
.btn-modern-import-primary.cartao:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35) !important;
}

.btn-modern-import-primary.cota {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25) !important;
}
.btn-modern-import-primary.cota:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35) !important;
}

.btn-modern-import-primary.cobranca {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
}
.btn-modern-import-primary.cobranca:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35) !important;
}

.btn-modern-import-cancel {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    border-radius: 8px !important;
    padding: 9px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}
.btn-modern-import-cancel:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

.select2-container--open,
.select2-dropdown {
    z-index: 999999999 !important;
}

.jscolor-picker,
.pcr-app {
    z-index: 999999999 !important;
}

/* Color picker (Pickr) flutuante sempre visível à frente de painéis laterais (adianti_right_panel) e modais */
.pcr-app {
    z-index: 999999999 !important;
}

.pcr-app.visible {
    z-index: 999999999 !important;
}

.pcr-app[data-theme='classic'],
.pcr-app[data-theme='monolith'],
.pcr-app[data-theme='nano'] {
    z-index: 999999999 !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
}

.pcr-app .pcr-interaction input.pcr-save {
    background: var(--main-color, #4f46e5) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
}

.pcr-app .pcr-interaction input.pcr-clear {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
}

.btn-documento-pdf,
.btn-danger.btn-documento-pdf,
.btn-default.btn-documento-pdf,
a.btn.btn-documento-pdf,
button.btn.btn-documento-pdf {
    background-color: #dc3545 !important;
    color: #ffffff !important;
    border: 1px solid #dc3545 !important;
    font-weight: 500;
}

.btn-documento-pdf:hover,
.btn-danger.btn-documento-pdf:hover,
.btn-default.btn-documento-pdf:hover,
a.btn.btn-documento-pdf:hover,
button.btn.btn-documento-pdf:hover {
    background-color: #bb2d3b !important;
    color: #ffffff !important;
    border-color: #b02a37 !important;
}

.btn-documento-pdf i,
.btn-documento-pdf span,
.btn-documento-pdf label {
    color: #ffffff !important;
}

.btn-documento-pdf:hover i,
.btn-documento-pdf:hover span,
.btn-documento-pdf:hover label {
    color: #ffffff !important;
}

#btnTemplatePDF, #btnTemplateTEXTO {
    margin-right: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 5px;
    margin: 5px;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff !important;
    background-color: #327d04; 
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); 
}

.tag:hover {
    background-color: #0056b3; 
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2);
}

.tag:active {
    background-color: #004494; 
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2); 
    transform: translateY(1px);
}

div[window_name="template_window"] table {
    /*width: 100% !important;*/
    border-collapse: collapse;
    table-layout: auto;
}

div[window_name="template_window"] .table-bordered,
div[window_name="template_window"] thead,
div[window_name="template_window"] tr,
div[window_name="template_window"] tbody,
div[window_name="template_window"] table,
div[window_name="template_window"] .table thead th
{
    border: 1px solid #dfe4ed !important;
}

#elemento_variaveis_pessoa, #elemento_variaveis_modulo {
    height: 300px !important;
    overflow: scroll;
}

div[page_name="TemplateForm"] .variaveis-sistema td thead {
    /* padding: 5px !important;
    border: 1px solid #c0c0c0 !important; */
}

div[page_name="TemplateForm"] .table td, .table th {
    /* color: #0d1e03 !important;
    border-radius: 5px !important; */
}

div[page_name="TemplateForm"] .variaveis-sistema {
    /*border-collapse: collapse;*/ 
    width: 100% !important;
    background: #f9fffa40;
    border-radius: 10px !important;
    
}

.timeline-container,
.timeline-wrapper,
.timeline-item,
.timeline-row,
.timeline-content {
    text-align: left !important;
}

.timeline-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.timeline-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    text-align: left !important;
}

.timeline-start .timeline-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.timeline-details {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 52px !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.timeline-details > *,
.timeline-details p,
.timeline-details span,
.timeline-details div,
.timeline-tarefa-nome,
.timeline-datetime,
.timeline-user,
.timeline-observacao,
.timeline-observacao div,
.timeline-observacao span,
.timeline-anexos,
.timeline-anexo-item,
.timeline-alert-body {
    text-align: left !important;
}

@media (max-width: 576px) {
    .timeline-details {
        padding-left: 0 !important;
    }
}

#two-factor-container .tfield {
    width: 50px !important;
    height: 50px !important;
    margin: 0 5px !important;
    text-align: center !important;
    font-size: 20px !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 8px !important;
    outline: none !important;
}

/* Estilo quando o campo está com o cursor do mouse */
#two-factor-container .tfield:hover {
    border-color: #007bff !important; /* Cor da borda ao passar o mouse */
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5); /* Sombreamento */
}

/* Estilo quando o campo está em foco */
#two-factor-container .tfield:focus {
    border-color: #28a745 !important; /* Cor da borda ao focar */
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5); /* Sombreamento */
}

.kanban-item-content>hr{
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}
.arrow_steps .step {
}
.vencidos, .vencehoje, .avencer, .recebidos, .receberhoje, .areceber, .pagos, .pagarhoje, .apagar, .transicao, .emprestimo, .totalperiodo {
    padding-top: 10px !important;
    margin-top: -15px;
}
.tabpanel_detailFormAtividadeCobranca .tseparator {
    margin-top: 10px !important;
}

#detailFormDashboardWidgetDashboard {
    margin-top: 10px !important;
    padding: 10px !important;
}

div[page_name="TipoAtividadeForm"] .timeline>li {
    margin-bottom: 5px !important;
}
div[page_name="SystemMessageList"] .card-title,
div[page_name="SystemMessageFormView"] .card-title
{
    color: #ffffff !important;
}

div[page_name="NegociacaoFormView"] .label {
    margin: 0px 0px 10px 0px;
}
#container_timeline_lead,
#timeline_pessoa,
#container_timeline_proposta,
#container_timeline,
#container_timeline_veiculo {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-height: var(--timeline-lead-pessoa-max-height, calc(100vh - 280px)) !important;
    height: auto !important;
    overflow: visible !important;
}

#container_timeline_lead .timeline-container,
#timeline_pessoa .timeline-container,
#container_timeline_proposta .timeline-container,
#container_timeline .timeline-container,
#container_timeline_veiculo .timeline-container,
.lead-timeline-container,
.pessoa-timeline-container,
.proposta-timeline-container,
.negociacao-timeline-container,
.veiculo-timeline-container {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-height: var(--timeline-lead-pessoa-max-height, calc(100vh - 280px)) !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

#container_cobranca_timeline,
#cobranca_timeline_wrapper {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

#container_cobranca_timeline .timeline-container,
.cobranca-timeline-container {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-height: var(--cobranca-timeline-max-height, calc(100vh - 300px)) !important;
    height: var(--cobranca-timeline-max-height, calc(100vh - 300px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

div[page_name="EstruturaContas"] #tbutton_button_centro_de_custo, 
div[page_name="EstruturaContas"] #tbutton_button_grupo_de_lancamento, 
div[page_name="EstruturaContas"] #tbutton_button_grupo_de_conta, 
div[page_name="EstruturaContas"] #tbutton_button_plano_de_conta {
    width: 100% !important;
}
div[page_name="EstruturaContas"] .btreeview {
    margin-top: 10px !important;
}

div[page_name="TipoAtividadeForm"] .panel-body {
    height: 500px !important;
}

div[page_name="LancamentoChartPlanoContas"] .panel-default {
    border: none !important;
}

div[page_name="LancamentoChartPlanoContas"] .panel-default .panel-heading {
    margin-bottom: -30px !important;
}

.transicao {
    background: #fff9a750;
    margin-bottom: -10px !important;
}

.tile_count .tile_stats_count:before {
    /* border-left: 1px solid #ececec !important; */
}

#bcontainer_672d164192ebb {
    height: 160px !important;
}
.main-kanban-ear-left, .main-kanban-ear-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 81px;
    z-index: 10;
    cursor: pointer;
}

.main-kanban-ear-left {
    left: 15px;
    background: url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2042%2081%22%3E%3Cpath%20fill%3D%22%23535c69%22%20opacity%3D%220.3%22%20d%3D%22M0%2C0H1.023A40.977%2C40.977%2C0%2C0%2C1%2C42%2C40.977v0A40.024%2C40.024%2C0%2C0%2C1%2C1.977%2C81H0a0%2C0%2C0%2C0%2C1%2C0%2C0V0A0%2C0%2C0%2C0%2C1%2C0%2C0Z%22/%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M20.8%2C49.09l-8.014-8.576L20.8%2C31.939a0.762%2C0.762%2C0%2C0%2C0%2C0-1.026l-1.563-1.673a0.647%2C0.647%2C0%2C0%2C0-.959%2C0l-8.014%2C8.576h0L8.224%2C40a0.762%2C0.762%2C0%2C0%2C0%2C0%2C1.026L18.28%2C51.788a0.647%2C0.647%2C0%2C0%2C0%2C.959%2C0L20.8%2C50.116A0.761%2C0.761%2C0%2C0%2C0%2C20.8%2C49.09Z%22/%3E%3C/svg%3E) center left no-repeat;
}

.main-kanban-ear-right {
    right: 15px;
    background: url(data:image/svg+xml;charset=US-ASCII,%0A%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2042%2081%22%3E%3Cpath%20fill%3D%22%23535c69%22%20opacity%3D%220.3%22%20d%3D%22M40.024%2C0H42a0%2C0%2C0%2C0%2C1%2C0%2C0V81a0%2C0%2C0%2C0%2C1%2C0%2C0H40.977A40.977%2C40.977%2C0%2C0%2C1%2C0%2C40.024v0A40.024%2C40.024%2C0%2C0%2C1%2C40.024%2C0Z%22/%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M20.2%2C31.91l8.014%2C8.576L20.2%2C49.061a0.762%2C0.762%2C0%2C0%2C0%2C0%2C1.026l1.563%2C1.672a0.647%2C0.647%2C0%2C0%2C0%2C.958%2C0l8.014-8.576h0L32.776%2C41a0.762%2C0.762%2C0%2C0%2C0%2C0-1.025L22.72%2C29.212a0.647%2C0.647%2C0%2C0%2C0-.958%2C0L20.2%2C30.885A0.762%2C0.762%2C0%2C0%2C0%2C20.2%2C31.91Z%22/%3E%3C/svg%3E%0A) center right no-repeat;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: inline-block;
    overflow: scroll;
    padding-left: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
    /*height: 60px;
    font-size: 10px;*/
}

.sumario-estrutura-contas
{
    /*margin-bottom:-20px !important;
    margin-top: 20px;*/
}
/*################ BEGIN MOBILE ########################*/

@media (max-width: 980px) {
    
    div[page_name="DREView"] .btn-group {
        width: 95% !important;
        margin: 0px 0px 0px 10px;
    }
    div[page_name="DREView"] .fixed-table-toolbar {
        margin: -0px 0px 0px 0px !important;
    }
    .search {
        width: 190px;
    }
            
    .vencidos, .vencehoje, .avencer, .recebidos, .receberhoje, .areceber, .pagos, .pagarhoje, .apagar, .transicao, .emprestimo, .totalperiodo {
        padding-top: 10px !important;
        margin-top: -0px !important;
    }

    .sumario-estrutura-contas
    {
        margin-bottom: 0px;
    }
    
    div[page_name="EstruturaContas"] .row.tile_count {
        height: 260px !important;
    }

    .select2-container .select2-selection--multiple .select2-selection__rendered {
        display: inline-block;
        overflow: scroll;
        padding-left: 8px;
        text-overflow: ellipsis;
        white-space: nowrap;
        /*height: 55px !important;*/
        padding-bottom: 10px !important;
    }
    
    .select2-container--default .select2-selection--multiple .select2-selection__rendered li {
        /*
        font-size: 10px;*/
    }

    .vencidos, 
    .vencehoje, 
    .avencer, 
    .recebidos, 
    .receberhoje, 
    .areceber, 
    .pagos, 
    .pagahoje, 
    .apagar, 
    .transicao,
    .totalperiodo {
        padding: 10px 20px 10px 20px !important;
    }
    .btn-default, .btn-success, .btn-group, .btn-danger, .btn-warning, .btn-primary, .btn-info, .btn-secondary {
        width: 99% !important;
        height: 35px;
        margin: 2px 0px 2px 0px;
        text-align: center !important;
    }
    
    #btnMapearCSV {
        width: 100% !important;
        height: 35px;
    }
    
    .btn-group {
        width: 100% !important;
        height: 35px;
        margin: 2px 0px 2px 0px;
    }
    
    button[data-toggle="dropdown"].btn.dropdown-toggle {
    width: 99% !important;
    }

    .TOTALRECEITA, .TOTALDESPESA, .TOTALPAGO, .TOTALPENDENTE {
        display: block;
        width: 160px;
        margin-top: 10px;
    }
    .bdaterange-icon {
        width: 20px !important;
    }
    .datagrid-header-actions>div {
        width: 50% !important;
    }
    
    .datagrid-header-actions>div {
        display: block;
    }
    .nav-item {
        width: 100% !important;
    }
    .nav-tabs .nav-item {
        margin-bottom: -3px;
        margin: 0px 1px 0px 1px !important;
    }
    .tdate-group-addon {
        width: 20px !important;
        margin-top: 0px;
    }
    .TOTAL_VALOR {
        display:none;
    }
    .card-item {
        width: 140px !important;
    }
    
    [page_name="TWindow"] {
        width: 100% !important;  /* Força o contêiner principal a ocupar 100% da largura */
    }
    
    [page_name="TWindow"] .ui-dialog {
        width: 100% !important;  /* Redimensiona o diálogo interno para 100% de largura */
        left: 0 !important;      /* Garante que o diálogo fique alinhado à esquerda */
        top: 0 !important;       /* Ajusta a posição no topo, se necessário */
    }
    
    [page_name="ExtratoBancarioList"]  .datagrid-header-actions-left-actions  {
     
        display:none !important;   
    }
    [page_name="ExtratoBancarioList"]  .datagrid-header-actions-right-actions  {
     
        width: 100% !important;  
    }  
    
    [page_name="ExtruturaContas"] .card.panel {
        display: none !important;
    }
  

    #tbutton_button_button_saldoanterior, #tbutton_button_button_saldoatual {
        width: 100% !important;
    }
    
    .panel-title, .card-title {
        /*
        font-size: 17px !important;
        padding-right: 5px !important;
        */
    }
    
    #novaProposta, #btnBuscar, #btnLimpar, #novaCobranca {
        margin-top: 10px;
    }
    
    #btnBuscar, #btnLimpar {
        width: 80px !important;
    }
    
    #navbar-builder-top-submenu-collapse, #navbar-builder-top-menu-collapse {
        display: block !important;
        flex: 1 !important;
        padding-left: 0;
        padding-right: 0;
        border-right: unset;
        text-align: center;
    }
    
    #top-menu.container-menu {
        border-bottom: none !important;
    }
    
    #tkanban-layout-controller {
        max-width: 95% !important;
    }
    
    .kanban-stage.ui-sortable-handle {
        max-width: 300px !important;
    }

    .kanban-stage {
        max-width: 300px !important;
    }
    
    .tkanban-border-controler.ui-draggable.ui-draggable-handle {
        min-width: 35px !important;
    }
    
    .kanban-stage {
        margin: 5px !important;
    }
    
    [page_name="KanbanFilter"] .col-sm-2.fb-field-container  {
        margin: 5px 0px 5px 0px;
    }
    
    .kanban-item-sortable::-webkit-scrollbar {
        width: 25px !important;
        /*scrollbar-width: thin;*/
    }
  
    .main-kanban-ear-left, .main-kanban-ear-right {
        display: none !important;
    }


}

/*################ END MOBILE ########################*/

.kanban-item {
    background: #c2c0c010 !important;
}

/* BARRA DE ROLAGEM */

.kanban-board-wrapper {
    overflow-x: auto;
}

/* Estilos personalizados para a barra de rolagem horizontal */
.kanban-board-wrapper::-webkit-scrollbar {
    height: 10px; /* Define a altura da barra de rolagem horizontal */
}

.kanban-board-wrapper::-webkit-scrollbar-track {
   /*  background: #f0f0f0; /* Cor de fundo do trilho da barra de rolagem */
}

.kanban-board-wrapper::-webkit-scrollbar-thumb {
    /* background-color: #1c6963; /* Cor do polegar da barra de rolagem */
    /* border-radius: 4px; /* Borda arredondada */
    /* border: 1px solid #1c6963; /* Borda ao redor do polegar */
}

/* Firefox */
.kanban-board-wrapper {
    /*scrollbar-color: #fd9203 #f0f0f0; /* Cor do polegar e do trilho */
    /*scrollbar-width: thin; /* Define a largura da barra de rolagem */
}

/* Remove a personalização das barras de rolagem verticais */
.kanban-item-sortable::-webkit-scrollbar {
    /*width: auto; /* Deixa a barra vertical com o estilo padrão */
    /*scrollbar-width: thin;*/
}

/* BARRA DE ROLAGEM */

.float-right {
    float: right !important;
}

.fa-chart-simple {
    transform: rotate(180deg);
}

.fa-bars {
    transform: rotate(90deg);
}

.toggle-menu .fa-bars {
    transform: rotate(0deg) !important;
}

.kanban-board.ui-sortable {
    /* background: #fff !important; */
}

[page_name="KanbanFilterLead"] .tab-pane {
    padding: 0px !important;
}

[page_name="KanbanFilterNegociacao"] .tab-pane {
    padding: 0px !important;
}

[page_name="KanbanFilterEvento"] .tab-pane {
    padding: 0px !important;
}

[page_name="KanbanFilterProposta"] .tab-pane {
    padding: 0px !important;
}

[page_name="KanbanFilterCobranca"] .tab-pane {
    padding: 0px !important;
}

[page_name="KanbanFilterEventoPro"] form[name="form_KanbanFilterEventoPro"] {
    border-radius: 14px;
    padding: 14px 14px 8px 14px;
}

[page_name="KanbanFilterEventoPro"] .panel.panel-default {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

[page_name="KanbanFilterEventoPro"] .panel-body {
    background: transparent !important;
    padding: 0 !important;
}

[page_name="KanbanFilterEventoPro"] .card-body.panel-body {
    background: transparent !important;
}

[page_name="KanbanFilterEventoPro"] .fb-inline-field-container {
    margin-bottom: 8px;
}

[page_name="KanbanFilterEventoPro"] .fb-inline-field-container.control-label {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}


[page_name="KanbanFilterEventoPro"] .evento-pro-kanban-pipeline-badge {
    width: 100%;
    background: #129b69;
    font-weight: var(--panel-header-font-weight);
    font-size: var(--panel-header-font-size);
    color: var(--panel-header-color) !important;
    border-radius: 10px;
    padding: 10px 18px;
    margin: 2px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

[page_name="KanbanFilterNegociacao"] #kanban_negociacao_container,
[page_name="KanbanFilterCobranca"] #kanban_cobranca_container,
[page_name="KanbanFilterLead"] #kanban_lead_container,
[page_name="KanbanFilterProposta"] #kanban_proposta_container,
[page_name="KanbanFilterAssistencia"] #kanban_assistencia_container,
[page_name="KanbanFilterEvento"] #kanban_evento_container,
[page_name="KanbanFilterEventoPro"] #kanban_evento_pro_container {
    display: block;
    width: 100%;
}

.cobranca-timeline-wrapper,
#cobranca_timeline_wrapper,
.cobranca-right-column,
#cobranca_right_column {
    display: block;
    width: 100%;
}

#cobranca_timeline_wrapper .card,
#cobranca_timeline_wrapper .card-body,
#cobranca_timeline_wrapper .panel,
#cobranca_timeline_wrapper .panel-body {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.card-header {
    /*background: linear-gradient(0deg, #516283, #536485c7) !important;*/
}

div[page_name="EventoForm"] .card-header {
    /* background: #ffffff !important; */
}
.container-login .login-content [page-name="LoginForm"] .card-header .card-title {
    color: #ffffff !important;
}

div[page_name="LoginForm"] .card-header {
    display: none !important;
}

.itens-etapa {
    background: #ffffffcf;
    color: #1c6963;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 400;
}
.card.panel {
    overflow: hidden;
}

div[page_name="EventoForm"] .card.panel,
div[page_name="VeiculoForm"] .card.panel {
    overflow: initial !important;
}
.tabpanel_bcontainer_67143c44cbe19 
{
    padding: 0px !important;
}
div[page_name="PessoaForm"] .tseparator {
    margin-top: 10px !important;
}
div[page_name="EstruturaContas"] .tile_count .tile_stats_count .count {
    padding-top: 10px !important;
}

div[page_name="EstruturaContas"] .row.tile_count {
    height: 130px;
}

.tab-name {

    /*text-transform: uppercase;
    text-transform: capitalize;*/
    font-size: 12px;
    font-weight: bold;
}

.tile_count {
    margin-bottom: -20px !important;
    margin-top: 0px !important;
    /* color: #516283 !important; */
}
.tile_count .tile_stats_count  {
        font-size: 14px !important;
        /*text-transform: uppercase;
        text-transform: capitalize;*/
}
.tile_stats_count {
    font-size: 18px !important;
    text-align: left !important;
}
.count_top {
    font-size: 14px !important;
    font-weight: bold !important;
    letter-spacing: -0.5px !important;
}
.vencehoje>.count, .vencidos>.count {
    color: #f44336 !important;
}
.avencer>.count {
    color: #2687e9 !important;
}
.recebidos>.count, .receberhoje>.count {
    color: #28a745b0 !important;
}
.areceber>.count {
    color: #FFC107 !important;
}
.count span {
    font-size: 16px !important;
    letter-spacing: -1.5px;
}

div[page_name="LancamentoListDespesas"] .count span,
div[page_name="LancamentoListReceitas"] .count span{
    font-size: 20px !important;
    letter-spacing: -1.5px;
}

.count {
    line-height: 20px !important;
    text-align: left !important;
    /*text-shadow: 0.5px 0.5px  1px #00000075 !important;*/
    
}
.indice  {
    padding-bottom: 10px !important;
}
#percentual {
    font-size: 14px !important;
    padding-left: 5px;
    letter-spacing: -1px;
}
.pessoaItem {
    /*
    color: #516283;
    text-shadow: 0.5px 0.5px 1.5px #999;
    font-size: 15px;*/
    font-weight: bold;
    
}

.progress {
    background-color: #b3b6ba !important;
}
#pipeline_painel>.card-body {
    display: none !important;
}
.kanban-board-wrapper {
    border-radius: 5px !important;
}
.kanban-board {
    padding: 0px !important;
    padding-bottom: 0px !important;
    /* background: #ffffff !important; */
}
#pipeline_painel {
    margin-bottom: 0px;
}

.kanban-title-total {
    font-size: 1.4rem;
    font-weight: 300;
    text-align: center;
    padding-top: 10px;
    margin-bottom: -15px;
    color: #596989;
}

.kanban-title-interno {
    color: #ffffff !important;
    background: var(--main-color);
    border-radius: 5px !important;
    padding: 10px !important;
    font-size: 13px !important;
}
.kanban-item-title {
    font-size: 14px !important;
    font-weight: 200 !important;
    letter-spacing: -0.5px;
    background: #cccccc10;
    border-radius: 5px 5px 5px 5px;
    border-top: 1px solid #cfd2d775;
    /* box-shadow: 0px 1px 2px 0px rgb(0 0 0 / 10%); */
}
.kanban-item-actions {
    background: none !important;
}
/* Blur no overlay do right-panel (via ::before, não no próprio right-panel,
   para não criar containing block que prende position:fixed dos modais) */
.right-panel[style="display: block;"]::before {
   backdrop-filter: blur(7px);
}

/* Permitir que modais dentro do right-panel não sejam cortados */
div[window_name="comunicacao_window"].ui-dialog {
    position: fixed !important;
    z-index: 10000 !important;
}

.nav-link {
    
    /*
    border: 1px solid #d3dae7 !important;
    border-bottom: 1px solid #d3dae7 !important;
    background-color: #ffffff !important;
    margin: 0px 1px 0px 2px;
    */
}

.nav-link.active {
    
    /*
    color: #1c6963 !important;
    background-color: #fff !important;
    */
}

.nav-tabs .nav-link.active {
    
    /*
    font-weight: 600 !important;
    border-bottom: 1px solid #ffffff !important;
    border-top: 1px solid #d3dae7 !important;
    border-left: 1px solid #d3dae7 !important;
    border-right: 1px solid #d3dae7 !important;
    margin: 0px 2px;
    */
    
}

.container-live {
    padding: 10px 10px 10px;
}
#detailFormItemPropostaProposta, #detailFormPagamentoProposta, #detailFormJuridicoProposta, #detailFormItemCobrancaCobranca {
    padding: 15px !important;
}
#btnLimpar, #btnBuscar {
    width: 80px;
}

[page-name='KanbanFilter'] div.fb-inline-field-container > button#novoOrcamento {
    float: right !important;
}

[page-name='KanbanFilterCobranca'] div.fb-inline-field-container > button#novoOrcamento {
    float: right !important;
}

/* ALINHAR BOTÃO A DIREITA*/
#btnFiltrarDashboardEvento,
#tbutton_btnNovoParecerJuridico, 
#tbutton_button_gerar_pagamentos,
#btnGerarPagamentos,
#tbutton_button_novo_item, 
#tbutton_btn_salvar_dados_do_sinistro, 
#tbutton_button_abrir_vistorias_da_proposta, 
#btnGerarFinanceiroProposta, 
#btnGerarComprasProposta,
#btnGerarComissaoProposta,
#tbutton_btn_salvar_dados_trabalhistas, 
#tbutton_button_gerar_folha_de_pagamento, 
#NovoProdutoServico, 
#tbutton_btnNovoCheckList, 
#btnNovoPagamento,
#btnBuscarAgendamentos,
#btnVisualizarHtml,
#btnVisualizarTextoWhatsApp,
#btnVisualizarTextoSMS,
#btnTemplate,
#btnMapearCSV,
#tbutton_btnCadastrarEventoVinculado,
#tbutton_btnNovoPagamento
{
    display: block !important; 
    margin-left: auto !important;  
    margin-right: 0 !important;
    text-align: right !important;  
}

#AdicionarAtualizarProdutoServicoCurtain, #AdicionarAtualizarPagamentoCurtain {
    margin-top: 15px;
    display: block; 
    margin-left: 0;  
    margin-right: auto;
    text-align: left; 
}
#dadosColaborador .card-header.panel-heading, #b66c4b1718df36 .card-header.panel-heading {
    display: none;
}
.table thead th{
    font-weight: bold;
    /*text-transform: uppercase;
    text-transform: capitalize;*/
}

table[name="fieldList_lancamentosfolha"] th label{
    font-weight: bold !important;
    /*text-transform: uppercase;
    text-transform: capitalize;*/
    padding-bottom: 15px;
}

.btnGerar {
    position: relative;
}

#btnGerarFolhaPagamento, #tbutton_button_gerar_pagamento {
    transform: translateY(45%);
    right: 14px;
}
.table-striped tbody tr:nth-of-type(odd) {
    /* background: #ffffff !important; */
}
#listaCidadesEstado {
    margin-top: 15px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 250px !important;
    display: block !important;
    clear: both !important;
    overflow: visible !important;
}

.right-panel div[widget="bootstrapformbuilder"] .container-part,
.right-panel .card .container-part,
.right-panel [id^="listaCidades"] .container-part,
.right-panel #listaCidadesEstado .container-part,
#listaCidadesEstado .container-part,
#listaCidadesEstado > div {
    position: relative !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    display: block !important;
    float: none !important;
    clear: both !important;
    z-index: auto !important;
}

.right-panel > .container-part[page-name=EstadoForm] {
    overflow-y: auto !important;
    height: 100% !important;
}

/* Cortina lateral (right-panel) com prioridade de sobreposição sobre modais TWindow (.ui-dialog) */
#adianti_right_panel,
.right-panel {
    z-index: 2000070 !important;
}

#adianti_right_panel[style*="display: block"]::before,
.right-panel[style*="display: block"]::before {
    content: "" !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    z-index: -1 !important;
    pointer-events: auto !important;
}
input[name="desconto"], input[name="acrescimo"], input[name="valor"], input[name="placa"], input[name="item_proposta_proposta_valor_venda"], input[name="pagamento_proposta_valor"], input[name="valor_transferencia"] {
    font-size: 20px;
    font-weight: bold;
    width: 100%;
}

input[name="valor"]:focus, 
input[name="desconto"]:focus,
input[name="acrescimo"]:focus,
input[name="placa"]:focus, 
input[name="valor_venda"]:focus, 
input[name="item_proposta_proposta_valor_venda"]:focus, 
input[name="pagamento_proposta_valor"]:focus, 
input[name="valor_transferencia"]:focus {
    background: #fbffca;
    color: #1c6963 !important;
}
.totaldespesa, .TOTALDESPESA {
    background-color: #f44336;
}
.totalreceita, .TOTALRECEITA {
    background-color: #28a745b0;
}

.totalpago, .TOTALPAGO {
    background-color: #009688;
}
.totalpendente, .TOTALPENDENTE {
    background-color: #ffc107;
}
.totaldespesa, .TOTALDESPESA, .totalreceita, .TOTALRECEITA, .totalpago, .totalpendente, .TOTALPAGO, .TOTALPENDENTE {
    padding: 0px 10px;
    border-radius: 5px;
    font-size: 15px;
    color: #fff;
    font-weight: bold;
    white-space: nowrap;
    display: block;
    margin: 1px;
}

.total-compras-badge-wrap {
    display: inline-flex !important;
    flex-direction: column !important;
    width: fit-content !important;
    max-width: 100% !important;
    align-items: stretch !important;
    gap: 3px !important;
    vertical-align: middle !important;
    margin: 2px 0 !important;
}

.total-compras-badge-wrap .totalpago,
.total-compras-badge-wrap .totalpendente {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 3px 12px !important;
    margin: 0 !important;
    text-align: left !important;
    white-space: nowrap !important;
}
.total_valor_pago, .total_valor, .TOTAL_VALOR, .total_saldo {
    border: 1px solid #000;
    padding: 5px 10px; 
    border-radius: 5px; 
    font-size: 15px;
    min-width: 100px;
    white-space: nowrap;
    background: #cccccc2e;
    color: #000;
}
.panel-title, .card-title {
    /*text-transform: uppercase;
    text-transform: capitalize;
    letter-spacing: -0.2px;
    font-weight: bold;
    font-size: 18px;
    padding-left: 15px !important;*/
}
.badge {
    margin: 2px;
    padding: 5px;
}

.badgex {
    display: inline-block;
    padding: 0.5em 1em;
    margin: 0.2em;
    border-radius: 0.25em;
    color: white;
    background-color: #007bff;
}
#item_proposta_proposta_list.table-bordered td,
#item_proposta_proposta_list.table-bordered th,
#pagamento_proposta_list.table-bordered td, 
#pagamento_proposta_list.table-bordered th {
    border: none;
}
#item_proposta_proposta_list.table-bordered td,
#pagamento_proposta_list.table-bordered td {
    /*border-bottom: 1px solid #dfe4ed;*/
}
#tbutton_form_ItensChecklistPropostaCardList_show_hide {
    display: none !important;
}
.card-item {
    width: 180px !important;
}
.ExibirImagemChecklist {
    width: 156px;
    border: 1px solid #ccc;
    padding: 1px;
    margin: 1px 1px 5px 1px;
}


/* ############################# */


.image-container {
    text-align: center;
}

.thumbnail {
    width: 100%;
    cursor: pointer; 
}

[page_name="CobrancaForm"] [page_name="TWindow"] .ui-dialog,
[page_name="PropostaForm"] [page_name="TWindow"] .ui-dialog,
[page_name="NegociacaoFormView"] [page_name="TWindow"] .ui-dialog,
[page_name="LeadForm"] [page_name="TWindow"] .ui-dialog,
[page_name="PessoaForm"] [page_name="TWindow"] .ui-dialog,
[page_name="VeiculoForm"] [page_name="TWindow"] .ui-dialog {
    z-index: 3000 !important; 
    position: fixed !important; 
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important; 
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
}

div[page_name="EventoForm"] .modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 100;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.8); 
}

div[page_name="EventoForm"] .modal-content {
    margin: 80px auto;
    display: block;
    width: 100%; 
    max-width: 900px; 
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 55px;
    font-weight: bold;
    cursor: pointer; 
}
.table td, .table th {
    padding: 5px !important;
}

.card-body {
    padding: 10px !important;
}

div[page_name="EventoProDashboard"] .evento-pro-situacao-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

div[page_name="EventoProDashboard"] .evento-pro-situacao-btn {
    border: 1px solid #cfe0d7;
    background: #ffffff;
    color: #355f4a;
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 14px;
    line-height: 1.2;
    min-width: 88px;
    cursor: pointer;
    transition: all .15s ease;
}

div[page_name="EventoProDashboard"] .evento-pro-situacao-btn.active {
    background: #12a36f;
    color: #ffffff;
    border-color: #12a36f;
}

div[page_name="EventoProDashboard"] .evento-pro-situacao-btn:focus {
    outline: none;
}

div[page_name="EventoProDashboard"] .evento-pro-dashboard-table thead th {
    padding: 12px 18px !important;
    border-top: none !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

div[page_name="EventoProDashboard"] .evento-pro-dashboard-table tbody td {
    padding: 12px 18px !important;
    vertical-align: middle !important;
}
.splash-user-photo {
    width: 90px;
    height: 90px;
}
#tbutton_btnBuscarCNPJCPF, #tbutton_btnBuscarCEP {
    /* width: 160px !important; */
}
body table td{
    /*font-size: 12px !important;
    letter-spacing: -0.5px !important;*/
}
/* Fix min-height for CampanhaDashboard and CampanhaDashboardGeral */
.container-live:has(div[page_name="CampanhaDashboard"]),
.container-live:has(.campanha-dashboard-root),
.container-live:has(div[page_name="CampanhaDashboardGeral"]) {
    /* Reseta min-height para evitar espaço em branco */
    min-height: unset !important;
    
    /* Força altura máxima para garantir que o scroll fique DENTRO do container */
    height: calc(100vh - var(--header-height, 50px)) !important;
    max-height: calc(100vh - var(--header-height, 50px)) !important;
    
    /* Garante scroll apenas no container principal, mantendo sidebar fixa */
    overflow-y: auto !important;
    display: block !important;
}

/* Garante que o conteúdo interno não force o body a rolar */
body:has(.campanha-dashboard-root) {
    overflow: hidden !important;
}

/* ============================================
   WhatsApp Espelho de Conversas
   Design inspirado no WhatsApp Web
   ============================================ */
.wae-root {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
    background: #eae6df;
    border-radius: 4px;
    overflow: hidden;
}

/* Quando dentro de modal TWindow, ocupa todo o espaço disponível */
.window_modal .wae-root {
    height: 100%;
}

.wae-topbar {
    background: #075e54;
    color: #fff;
    min-height: 46px;
    flex-shrink: 0;
    gap: 6px;
    font-size: 14px;
    border-bottom: 1px solid #064e46;
    cursor: grab;
}
.wae-topbar:active { cursor: grabbing; }
.wae-topbar .fab.fa-whatsapp { font-size: 22px; }
.wae-topbar .text-muted { color: rgba(255,255,255,.7) !important; }
.wae-topbar .btn-outline-secondary {
    color: #fff;
    border-color: rgba(255,255,255,.4);
}
.wae-topbar .btn-outline-secondary:hover {
    background: rgba(255,255,255,.1);
}
.wae-topbar-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,.8);
    font-size: 16px;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
}
.wae-topbar-close:hover {
    color: #fff;
    background: rgba(255,255,255,.15);
}

.wae-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Sidebar */
.wae-sidebar {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wae-sidebar-header {
    min-height: 42px;
    display: flex;
    align-items: center;
}

.wae-instance-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.wae-instance-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    transition: background .15s ease;
    border-bottom: 1px solid #f0f0f0;
}
.wae-instance-item:hover {
    background: #f5f6f6;
}
.wae-instance-item.active {
    background: #e8f5e9;
    border-left: 3px solid #25d366;
}

.wae-inst-avatar-wrap {
    flex-shrink: 0;
}
.wae-inst-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
}
.wae-inst-avatar-fallback {
    width: 40px;
    height: 40px;
    background: #dfe5e7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 18px;
}
.wae-inst-info {
    overflow: hidden;
    min-width: 0;
}
.wae-inst-info .font-weight-bold {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chat area */
.wae-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #eae6df;
    min-width: 0;
}

.wae-chat-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.wae-chat-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.wae-chat-header {
    flex-shrink: 0;
}

.wae-chat-footer {
    flex-shrink: 0;
}

/* Message container - WhatsApp pattern background */
.wae-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 60px;
    background-color: #efeae2;
    background-image: url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='p' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='3' cy='3' r='1.5' fill='%23d4cfc6' opacity='.25'/%3E%3Ccircle cx='33' cy='33' r='1' fill='%23d4cfc6' opacity='.2'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23p)'/%3E%3C/svg%3E");
    display: flex;
    flex-direction: column;
}

/* Date separator */
.wae-date-sep {
    text-align: center;
    margin: 8px 0 6px;
}
.wae-date-sep span {
    background: #e1f2fb;
    color: #54656f;
    font-size: 11.5px;
    padding: 4px 14px;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(0,0,0,.08);
    font-weight: 500;
}

/* Bubbles */
.wae-bubble {
    max-width: 65%;
    padding: 4px 8px 3px;
    margin: 1px 0;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.3;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 1px 0.5px rgba(0,0,0,.1);
}
.wae-bubble-sent {
    background: #d9fdd3;
    align-self: flex-end;
    border-top-right-radius: 0;
}
.wae-bubble-received {
    background: #fff;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.wae-sender {
    font-size: 11px;
    font-weight: 600;
    color: #075e54;
    margin-bottom: 0;
    line-height: 1.2;
}

.wae-media-tag {
    font-size: 11px;
    color: #128c7e;
    font-style: italic;
    margin-bottom: 2px;
}
.wae-media-tag i { margin-right: 3px; }

/* Media preview - imagem preenche largura do bubble */
.wae-media-preview {
    position: relative;
    margin: 4px -8px 6px -8px;
    overflow: hidden;
}
/* Quando imagem é o primeiro elemento (sem sender acima), cola no topo */
.wae-media-preview:first-child {
    margin-top: -3px;
    border-radius: 8px 8px 0 0;
}
.wae-bubble-sent .wae-media-preview:first-child {
    border-radius: 8px 0 0 0;
}
.wae-bubble-received .wae-media-preview:first-child {
    border-radius: 0 8px 0 0;
}
.wae-media-preview img {
    width: 100%;
    display: block;
    cursor: pointer;
}

/* Bubble com mídia: largura mínima quando tem texto */
.wae-bubble-media {
    min-width: 260px;
    padding-top: 3px;
}
/* Quando tem só mídia sem texto, meta fica sobre a imagem */
.wae-bubble-media-only .wae-media-preview {
    margin-bottom: 0;
}
.wae-bubble-media-only .wae-meta {
    position: absolute;
    bottom: 4px;
    right: 6px;
    background: rgba(0,0,0,.45);
    border-radius: 10px;
    padding: 1px 6px;
}
.wae-bubble-media-only .wae-time {
    color: #fff;
}
.wae-bubble-media-only .wae-meta i {
    color: #fff !important;
}

.wae-text {
    white-space: pre-wrap;
    line-height: 1.25;
    padding: 0 1px;
}

.wae-video-thumb {
    position: relative;
    display: inline-block;
    width: 100%;
}
.wae-video-thumb img {
    width: 100%;
    display: block;
}
.wae-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,.85);
    font-size: 36px;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
    pointer-events: none;
}

.wae-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    margin-top: 0;
    line-height: 1;
}
.wae-time {
    font-size: 10.5px;
    color: #8696a0;
}
.wae-meta i {
    font-size: 13px;
}

/* Toast notification */
.wae-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 280px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    animation: waeToastIn .2s ease;
}
@keyframes waeToastIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive: sidebar collapses on small screens */
@media (max-width: 768px) {
    .wae-sidebar {
        width: 220px;
        min-width: 220px;
        max-width: 220px;
    }
    .wae-messages {
        padding: 12px 16px;
    }
    .wae-bubble {
        max-width: 85%;
    }
    .wae-bubble-media {
        min-width: 200px;
    }
    .wae-bubble-media-only {
        max-width: 280px;
    }
}

/* ===== Áudio Player ===== */
.wae-audio-player {
    padding: 6px 0 2px;
}
.wae-audio-player audio {
    height: 36px;
    border-radius: 18px;
}

/* ===== Vídeo Player ===== */
.wae-media-player {
    margin: 4px -8px 6px -8px;
    overflow: hidden;
}
.wae-media-player:first-child {
    margin-top: -3px;
    border-radius: 8px 8px 0 0;
}
.wae-bubble-sent .wae-media-player:first-child {
    border-radius: 8px 0 0 0;
}
.wae-bubble-received .wae-media-player:first-child {
    border-radius: 0 8px 0 0;
}
.wae-media-player video {
    display: block;
    background: #000;
}

/* ===== Documento Card ===== */
.wae-media-doc {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 4px -4px 4px -4px;
    background: rgba(0,0,0,.04);
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
}
.wae-media-doc:hover {
    background: rgba(0,0,0,.08);
}
.wae-doc-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}
.wae-doc-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.wae-doc-name {
    font-size: 12px;
    font-weight: 600;
    color: #303030;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wae-doc-action {
    font-size: 10.5px;
    color: #128c7e;
    margin-top: 1px;
}

/* ===== Placeholder (mídia não baixada) ===== */
.wae-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    margin: 4px -4px 4px -4px;
    background: rgba(0,0,0,.04);
    border: 1px dashed rgba(0,0,0,.15);
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
    color: #128c7e;
    font-size: 12px;
}
.wae-media-placeholder:hover {
    background: rgba(0,0,0,.08);
}
.wae-media-placeholder i {
    font-size: 18px;
}

/* ===== Download overlay (sobre thumbnail) ===== */
.wae-media-download-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.55);
    color: #fff;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s;
}
.wae-media-download-overlay:hover {
    background: rgba(0,0,0,.7);
}
.wae-media-download-overlay i {
    margin-right: 4px;
}

/* ===== Modal de Imagem (fullscreen overlay) ===== */
.wae-img-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: waeModalFadeIn .2s ease;
}
@keyframes waeModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.wae-img-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
.wae-img-modal-content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.wae-img-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    color: #333;
}
.wae-img-modal-close:hover {
    background: #f0f0f0;
}

/* ===== Mídia preenche 100% da largura do bubble, bubble limitado ===== */
.wae-media-preview img,
.wae-media-player video {
    width: 100%;
}
/* Bubble com mídia + texto: texto define a largura, mídia acompanha */
.wae-bubble-media {
    max-width: min(65%, 480px);
}
/* Bubble com mídia sem texto: largura compacta (sobrescreve acima) */
.wae-bubble.wae-bubble-media-only {
    max-width: 330px;
}

/* ===== Localização ===== */
.wae-location-card {
    margin: 4px -4px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0,0,0,.03);
}
.wae-location-map {
    max-height: 150px;
    overflow: hidden;
}
.wae-location-map img {
    width: 100%;
    display: block;
    object-fit: cover;
}
.wae-location-map-placeholder {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5e9;
    color: #128c7e;
    font-size: 28px;
}
.wae-location-info {
    padding: 6px 10px;
}
.wae-location-name {
    font-weight: 600;
    font-size: 12px;
    color: #303030;
}
.wae-location-addr {
    font-size: 11px;
    color: #667781;
    margin-top: 1px;
}
.wae-location-link {
    display: inline-block;
    font-size: 11px;
    color: #128c7e;
    margin-top: 3px;
    text-decoration: none;
}
.wae-location-link:hover { text-decoration: underline; }

/* ===== Pagamento / PIX ===== */
.wae-payment-card {
    margin: 4px -4px;
    padding: 10px 12px;
    background: rgba(0,0,0,.03);
    border-radius: 6px;
    border-left: 3px solid #128c7e;
}
.wae-payment-header {
    font-size: 12px;
    font-weight: 600;
    color: #128c7e;
    margin-bottom: 4px;
}
.wae-payment-header i { margin-right: 4px; }
.wae-payment-title {
    font-size: 11px;
    color: #303030;
    font-weight: 500;
}
.wae-payment-amount {
    font-size: 18px;
    font-weight: 700;
    color: #075e54;
    margin: 4px 0;
}
.wae-payment-pix {
    font-size: 11px;
    color: #667781;
}
.wae-payment-pix i { margin-right: 3px; }
.wae-payment-merchant {
    font-size: 11px;
    color: #667781;
}
.wae-payment-item {
    font-size: 11px;
    color: #303030;
    padding: 2px 0;
    border-top: 1px solid rgba(0,0,0,.06);
    margin-top: 3px;
}

/* ===== Carrossel ===== */
.wae-carousel {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0 6px;
    margin: 4px -4px;
    scroll-snap-type: x mandatory;
}
.wae-carousel::-webkit-scrollbar { height: 4px; }
.wae-carousel::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 2px; }
.wae-carousel-card {
    flex: 0 0 220px;
    background: rgba(0,0,0,.04);
    border-radius: 8px;
    overflow: hidden;
    scroll-snap-align: start;
}
.wae-carousel-img img {
    width: 100%;
    display: block;
    max-height: 140px;
    object-fit: cover;
}
.wae-carousel-body {
    padding: 6px 10px;
    font-size: 11px;
    color: #303030;
    line-height: 1.3;
}
.wae-carousel-btns {
    padding: 4px 10px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* ===== Botão Pill (usado em carousel e interactive) ===== */
.wae-btn-pill {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    color: #128c7e;
    border: 1px solid #128c7e;
    border-radius: 14px;
    background: transparent;
}
a.wae-btn-pill.wae-btn-link {
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}
a.wae-btn-pill.wae-btn-link:hover {
    background: #128c7e;
    color: #fff;
}
a.wae-btn-pill.wae-btn-link i {
    font-size: 9px;
    margin-right: 3px;
}

/* ===== Menu de Opções (ListMessage) ===== */
.wae-list-card {
    margin: 4px -4px;
    padding: 6px 0;
}
.wae-list-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #128c7e;
    padding: 4px 10px 2px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.wae-list-row {
    padding: 4px 10px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.wae-list-row:last-child { border-bottom: none; }
.wae-list-row-title {
    font-size: 12px;
    font-weight: 500;
    color: #303030;
}
.wae-list-row-title i {
    font-size: 9px;
    color: #128c7e;
    margin-right: 4px;
}
.wae-list-row-desc {
    font-size: 10.5px;
    color: #667781;
    margin-left: 17px;
}
.wae-list-btn {
    text-align: center;
    padding: 6px 10px;
    margin: 4px 6px 0;
    border: 1px solid #128c7e;
    border-radius: 6px;
    color: #128c7e;
    font-size: 12px;
    font-weight: 500;
}
.wae-list-btn i { margin-right: 4px; }

/* ===== Resposta de Lista ===== */
.wae-list-response {
    padding: 6px 10px;
    margin: 4px -4px;
    background: rgba(18,140,126,.08);
    border-radius: 6px;
    border-left: 3px solid #128c7e;
    font-size: 12px;
    color: #075e54;
}
.wae-list-response i { margin-right: 4px; color: #128c7e; }
.wae-list-response-text { font-weight: 600; }
.wae-list-response-desc {
    font-size: 11px;
    color: #667781;
    margin-top: 1px;
    margin-left: 18px;
}

/* ===== Resposta de Template (botão selecionado) ===== */
.wae-template-reply {
    padding: 6px 10px;
    margin: 4px -4px;
    background: rgba(18,140,126,.08);
    border-radius: 6px;
    border-left: 3px solid #128c7e;
    font-size: 12px;
    color: #075e54;
}
.wae-template-reply i { margin-right: 4px; color: #128c7e; }

/* ===== Interactive com botões ===== */
.wae-interactive-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 0 2px;
}

/* ===== Modais Modernas Canônicas (Alertas, Confirmações e Diálogos Críticos) ===== */
@keyframes cModalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cModalScaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.cmodal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000100 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cModalFadeIn 0.2s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.cmodal-container {
    width: 520px;
    max-width: 92vw;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.28), 0 10px 25px rgba(0,0,0,0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: cModalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cmodal-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    color: #ffffff;
}
.cmodal-header.amber { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.cmodal-header.green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.cmodal-header.red   { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
.cmodal-header.blue  { background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%); }
.cmodal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cmodal-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 19px;
}
.cmodal-header-text h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}
.cmodal-header-text span {
    font-size: 12px;
    color: rgba(255,255,255,0.88);
}
.cmodal-btn-close {
    background: rgba(255,255,255,0.18) !important;
    border: none !important;
    color: #ffffff !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    transition: background 0.2s !important;
    padding: 0 !important;
}
.cmodal-btn-close:hover {
    background: rgba(255,255,255,0.32) !important;
}
.cmodal-body {
    padding: 22px 24px;
    background: #ffffff;
    color: #334155;
    font-size: 13.5px;
    line-height: 1.5;
}
.cmodal-alert-box {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.cmodal-alert-box.warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.cmodal-alert-box.danger  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.cmodal-alert-box.info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.cmodal-alert-box.success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.cmodal-alert-box i { font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.cmodal-footer {
    padding: 14px 24px 16px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.cmodal-btn {
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.cmodal-btn-secondary { background: #e2e8f0; color: #475569; }
.cmodal-btn-secondary:hover { background: #cbd5e1; color: #1e293b; }
.cmodal-btn-primary   { background: #4f46e5; color: #ffffff; }
.cmodal-btn-primary:hover   { background: #4338ca; }
.cmodal-btn-success   { background: #10b981; color: #ffffff; }
.cmodal-btn-success:hover   { background: #059669; }
.cmodal-btn-danger    { background: #ef4444; color: #ffffff; }
.cmodal-btn-danger:hover    { background: #dc2626; }

/* ==========================================================================
   ELEVAÇÃO GLOBAL DE TOASTS (iziToast) SOBRE CORTINAS E MODAIS
   Garante que notificações (warning, error, success, info) fiquem SEMPRE
   visíveis acima de qualquer cortina (#adianti_right_panel), split-modal ou overlay.
   ========================================================================== */
.iziToast-wrapper {
    z-index: 99999999 !important;
}
.iziToast-wrapper.iziToast-wrapper-center,
.iziToast-wrapper.iziToast-wrapper-topRight,
.iziToast-wrapper.iziToast-wrapper-topLeft,
.iziToast-wrapper.iziToast-wrapper-bottomRight,
.iziToast-wrapper.iziToast-wrapper-bottomLeft,
.iziToast-wrapper.iziToast-wrapper-topCenter,
.iziToast-wrapper.iziToast-wrapper-bottomCenter {
    z-index: 99999999 !important;
}
.iziToast-overlay {
    z-index: 99999990 !important;
}
.iziToast {
    z-index: 99999999 !important;
}

/* ==========================================================================
   ELEVAÇÃO GLOBAL DE MODAIS MODERNAS SOBRE CORTINAS LATERAIS
   Garante que modais flutuantes (Atualizar Escopo, Confirmação de Contrato,
   Limite de Exportação, etc.) abram SEMPRE acima de painéis e cortinas.
   ========================================================================== */
.scope-modal-overlay,
.cmodal-overlay,
.expmodal-overlay {
    z-index: 2000080;
}

/* ==========================================================================
   ALINHAMENTO GLOBAL DE BOTÕES DE FILTRO TOTALMENTE À DIREITA
   (Dashboards, Filtros de Kanbans, Fluxo de Caixa, DRE, Relatórios, etc.)
   Garante que qualquer container com .dashboard-filter-actions ou
   .btn-search-actions-wrap force a coluna inteira do Bootstrap (.fb-field-container)
   a ir para a extrema direita com margin-left: auto, ocultando labels vazios
   e alinhando os botões na borda direita do card.
   ========================================================================== */
.fb-field-container:has(.dashboard-filter-actions),
.fb-field-container:has(.btn-search-actions-wrap) {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: flex-end !important;
    margin-left: auto !important;
}

.fb-field-container:has(.dashboard-filter-actions) > .fb-inline-field-container:first-child:has(> label),
.fb-field-container:has(.btn-search-actions-wrap) > .fb-inline-field-container:first-child:has(> label) {
    display: none !important;
}

.fb-field-container:has(.dashboard-filter-actions) > .fb-inline-field-container:last-child,
.fb-field-container:has(.btn-search-actions-wrap) > .fb-inline-field-container:last-child {
    float: right !important;
    margin-left: auto !important;
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
}

.dashboard-filter-actions,
.btn-search-actions-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    height: 38px !important;
    width: 100% !important;
    white-space: nowrap !important;
    margin-left: auto !important;
}

.dashboard-filter-actions button,
.dashboard-filter-actions .btn,
.btn-search-actions-wrap button,
.btn-search-actions-wrap .btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
}