/**
 * Luuvi SaaS — Mobile Responsive Layer (<= 767.98px)
 *
 * REGRAS ESTRITAS:
 * 1. 100% das regras estao encapsuladas em @media (max-width: 767.98px) e breakpoints menores.
 *    Nenhuma propriedade CSS e aplicada em desktop (>= 768px).
 * 2. Nunca exibe elementos ocultados via inline style="display:none", .hidden ou [hidden].
 * 3. Preserva integralmente a toolbar do Summernote (.note-editor .note-toolbar).
 */

@media (max-width: 767.98px) {

    /* ======================================================================
       1. BLOQUEIO DE OVERFLOW GLOBAL E COMPACTAÇÃO DE ESPAÇOS LATERAIS / TOPO
       ====================================================================== */
    html,
    body,
    .master-container,
    .container-main,
    .container-live,
    body.theme-mode-modern .container-live {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .container-live,
    body.theme-mode-modern .container-live {
        padding: 4px 6px 14px !important;
    }

    #adianti_div_content,
    body.theme-mode-modern #adianti_div_content {
        padding: 4px 4px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .adianti_tabs_container {
        padding: 2px 4px !important;
        margin-bottom: 4px !important;
        min-height: 34px !important;
    }

    #adianti_tab_content .adianti-tab {
        padding: 4px 8px !important;
        font-size: 12px !important;
    }

    .card.panel,
    .card.panel.panel-default,
    div[widget="bootstrapformbuilder"].panel,
    .panel,
    body.theme-mode-modern .card.panel,
    body.theme-mode-modern .card.panel.panel-default,
    body.theme-mode-modern div[widget="bootstrapformbuilder"].panel,
    body.theme-mode-modern .panel {
        margin-bottom: 10px !important;
        border-radius: 10px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .card.panel>.card-body.panel-body,
    .card.panel>.panel-body,
    div[widget="bootstrapformbuilder"].panel>form>.panel-body,
    body.theme-mode-modern div[widget="bootstrapformbuilder"].panel>form>.panel-body,
    body.theme-mode-modern .card.panel.panel-default>.card-body.panel-body,
    body.theme-mode-modern .card.panel>.card-body.panel-body,
    body.theme-mode-modern .card.panel>.panel-body {
        padding: 10px 10px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Achatamento de cards/painéis aninhados (evita efeito túnel no mobile) */
    .tab-pane .card.panel,
    .panel-body .card.panel,
    .bpagecontainer .card.panel,
    .bContainer-fieldset,
    body.theme-mode-modern .bContainer-fieldset,
    body.theme-mode-modern div[widget="bootstrapformbuilder"].bContainer-fieldset,
    body.theme-mode-modern .card.panel.panel-default.bContainer-fieldset {
        margin-bottom: 8px !important;
        max-width: 100% !important;
    }

    .tab-pane .card.panel>.panel-body,
    .tab-pane .card.panel>.card-body.panel-body,
    .panel-body .card.panel>.panel-body,
    .panel-body .card.panel>.card-body.panel-body,
    .bpagecontainer .card.panel>.panel-body,
    .bpagecontainer .card.panel>.card-body.panel-body,
    .bpagecontainer .card.panel>form>.panel-body,
    .bContainer-fieldset .panel-body,
    body.theme-mode-modern .bContainer-fieldset .panel-body,
    body.theme-mode-modern div[widget="bootstrapformbuilder"].bContainer-fieldset>form>.panel-body,
    body.theme-mode-modern div[widget="bootstrapformbuilder"].bContainer-fieldset>.panel-body {
        padding: 8px 6px !important;
    }

    body.theme-mode-modern .bContainer-fieldset .bContainer-title {
        left: 10px !important;
        max-width: calc(100% - 20px) !important;
        font-size: 12px !important;
    }

    .form-group.tformrow,
    .panel-body .row {
        margin-left: -4px !important;
        margin-right: -4px !important;
    }

    .form-group.tformrow>[class*="col-"],
    .fb-field-container {
        padding-left: 4px !important;
        padding-right: 4px !important;
        margin-bottom: 8px !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .fb-inline-field-container {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    /* ======================================================================
       2. CABEÇALHOS EM 2 LINHAS INTELIGENTES & NAV-TABS + BOTÃO AJUDA (?)
       ====================================================================== */
    .card-header:not([style*="display:none" i]):not([style*="display: none" i]):not(.panel-header-hidden):not(:empty):not(.note-toolbar):not(.note-editor *),
    .panel-heading:not([style*="display:none" i]):not([style*="display: none" i]):not(.panel-header-hidden):not(:empty):not(.note-toolbar):not(.note-editor *),
    body.theme-mode-modern .card.panel>.card-header.panel-heading:not([style*="display:none" i]):not([style*="display: none" i]):not(.panel-header-hidden):not(:empty):not(.note-toolbar):not(.note-editor *),
    body.theme-mode-modern div[widget="bootstrapformbuilder"]>.card-header.panel-heading:not([style*="display:none" i]):not([style*="display: none" i]):not(.panel-header-hidden):not(:empty):not(.note-toolbar):not(.note-editor *),
    body.theme-mode-modern div[widget="bootstrapformbuilder"]>.panel-heading:not([style*="display:none" i]):not([style*="display: none" i]):not(.panel-header-hidden):not(:empty):not(.note-toolbar):not(.note-editor *),
    body.theme-mode-modern .card.panel.panel-default>.card-header:not([style*="display:none" i]):not([style*="display: none" i]):not(.panel-header-hidden):not(:empty):not(.note-toolbar):not(.note-editor *),
    body.theme-mode-modern .panel.panel-default>.panel-heading:not([style*="display:none" i]):not([style*="display: none" i]):not(.panel-header-hidden):not(:empty):not(.note-toolbar):not(.note-editor *),
    body.theme-mode-modern .card-header:not([style*="display:none" i]):not([style*="display: none" i]):not(.panel-header-hidden):not(:empty):not(.note-toolbar):not(.note-editor *),
    body.theme-mode-modern .panel-heading:not([style*="display:none" i]):not([style*="display: none" i]):not(.panel-header-hidden):not(:empty):not(.note-toolbar):not(.note-editor *) {
        position: relative !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding: 10px 12px !important;
        min-height: 44px !important;
        border-radius: 10px 10px 0 0 !important;
        box-sizing: border-box !important;
    }

    .card-header:has(.btn-help-info:not([style*="display:none" i]):not([style*="display: none" i])) .panel-title,
    .card-header:has(.btn-help-info:not([style*="display:none" i]):not([style*="display: none" i])) .card-title,
    .panel-heading:has(.btn-help-info:not([style*="display:none" i]):not([style*="display: none" i])) .panel-title,
    .panel-heading:has(.btn-help-info:not([style*="display:none" i]):not([style*="display: none" i])) .card-title {
        padding-right: 40px !important;
    }

    .card-header .btn-help-info:not([style*="display:none" i]):not([style*="display: none" i]),
    .panel-heading .btn-help-info:not([style*="display:none" i]):not([style*="display: none" i]) {
        position: absolute !important;
        top: 10px !important;
        right: 12px !important;
        margin: 0 !important;
        z-index: 3 !important;
    }

    .card-header .panel-title,
    .card-header .card-title,
    .panel-heading .panel-title,
    .panel-heading .card-title,
    body.theme-mode-modern .card.panel>.card-header.panel-heading .panel-title,
    body.theme-mode-modern .card.panel>.card-header.panel-heading .card-title,
    body.theme-mode-modern div[widget="bootstrapformbuilder"]>.panel-heading .panel-title,
    body.theme-mode-modern div[widget="bootstrapformbuilder"]>.panel-heading .card-title,
    body.theme-mode-modern .card-title,
    body.theme-mode-modern .panel-title {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        display: inline-flex !important;
        align-items: flex-start !important;
        gap: 7px !important;
    }

    .card-header .panel-title i,
    .card-header .card-title i,
    .panel-heading .panel-title i,
    .panel-heading .card-title i {
        margin-top: 2px !important;
        flex-shrink: 0 !important;
    }

    .card-header .header-actions,
    .panel-heading .header-actions,
    .card-header .pull-right,
    .panel-heading .pull-right,
    .card-header-actions,
    body.theme-mode-modern .card-header .pull-right,
    body.theme-mode-modern .panel-heading .pull-right,
    body.theme-mode-modern .card-header-actions {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        float: none !important;
        margin: 0 !important;
    }

    /* Quando o cabeçalho possui botões além do '?', promove título para linha 1 e ações para linha 2 */
    html body .card-header:has(.header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i])),
    html body .panel-heading:has(.header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i])) {
        align-items: flex-start !important;
    }

    html body .card-header:has(.header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i])) .panel-title,
    html body .card-header:has(.header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i])) .card-title,
    html body .panel-heading:has(.header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i])) .panel-title,
    html body .panel-heading:has(.header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i])) .card-title,
    html body.theme-mode-modern .card.panel>.card-header.panel-heading:has(.lmob-hdr-count-2, .lmob-hdr-has-menu) .panel-title,
    html body.theme-mode-modern .card.panel>.card-header.panel-heading:has(.lmob-hdr-count-2, .lmob-hdr-has-menu) .card-title,
    html body.theme-mode-modern div[widget="bootstrapformbuilder"]>.panel-heading:has(.lmob-hdr-count-2, .lmob-hdr-has-menu) .panel-title,
    html body.theme-mode-modern div[widget="bootstrapformbuilder"]>.panel-heading:has(.lmob-hdr-count-2, .lmob-hdr-has-menu) .card-title {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    html body.theme-mode-modern .card.panel>.card-header.panel-heading:has(.btn-help-info:not([style*="display:none" i]):not([style*="display: none" i])):has(.lmob-hdr-count-2, .lmob-hdr-has-menu) .panel-title,
    html body.theme-mode-modern div[widget="bootstrapformbuilder"]>.panel-heading:has(.btn-help-info:not([style*="display:none" i]):not([style*="display: none" i])):has(.lmob-hdr-count-2, .lmob-hdr-has-menu) .panel-title {
        padding-right: 42px !important;
    }

    html body .card-header:has(.header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i])) .header-actions:not(.lmob-hdr-count-1),
    html body .card-header:has(.header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i])) .pull-right:not(.lmob-hdr-count-1),
    html body .card-header:has(.header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i])) .card-header-actions:not(.lmob-hdr-count-1),
    html body .panel-heading:has(.header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i])) .header-actions:not(.lmob-hdr-count-1),
    html body .panel-heading:has(.header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i])) .pull-right:not(.lmob-hdr-count-1),
    html body .panel-heading:has(.header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .pull-right:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]), .card-header-actions:not(.lmob-hdr-count-1) a:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i])) .card-header-actions:not(.lmob-hdr-count-1) {
        flex: 1 1 100% !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin-top: 4px !important;
    }

    /* Cabeçalho com apenas 1 ação visível (ex: apenas 'Fechar' em modo View) + '?': lado a lado sem sobreposição */
    html body .card-header:has(.lmob-hdr-count-1),
    html body .panel-heading:has(.lmob-hdr-count-1),
    html body.theme-mode-modern .card.panel>.card-header.panel-heading:has(.lmob-hdr-count-1),
    html body.theme-mode-modern div[widget="bootstrapformbuilder"]>.panel-heading:has(.lmob-hdr-count-1) {
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    html body .card-header:has(.lmob-hdr-count-1) .panel-title,
    html body .card-header:has(.lmob-hdr-count-1) .card-title,
    html body .panel-heading:has(.lmob-hdr-count-1) .panel-title,
    html body .panel-heading:has(.lmob-hdr-count-1) .card-title,
    html body.theme-mode-modern .card.panel>.card-header.panel-heading:has(.lmob-hdr-count-1) .panel-title,
    html body.theme-mode-modern .card.panel>.card-header.panel-heading:has(.lmob-hdr-count-1) .card-title,
    html body.theme-mode-modern div[widget="bootstrapformbuilder"]>.panel-heading:has(.lmob-hdr-count-1) .panel-title,
    html body.theme-mode-modern div[widget="bootstrapformbuilder"]>.panel-heading:has(.lmob-hdr-count-1) .card-title {
        flex: 1 1 120px !important;
        width: auto !important;
        min-width: 0 !important;
        padding-right: 0 !important;
    }

    html body .card-header .header-actions.lmob-hdr-count-1,
    html body .panel-heading .header-actions.lmob-hdr-count-1,
    html body .card-header .pull-right.lmob-hdr-count-1,
    html body .panel-heading .pull-right.lmob-hdr-count-1,
    html body .card-header-actions.lmob-hdr-count-1,
    html body.theme-mode-modern .card-header .header-actions.lmob-hdr-count-1,
    html body.theme-mode-modern .panel-heading .header-actions.lmob-hdr-count-1,
    html body.theme-mode-modern .card-header .pull-right.lmob-hdr-count-1,
    html body.theme-mode-modern .panel-heading .pull-right.lmob-hdr-count-1,
    html body.theme-mode-modern .card-header-actions.lmob-hdr-count-1 {
        flex: 0 0 auto !important;
        width: auto !important;
        margin-top: 0 !important;
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        padding: 0 2px 0 6px !important;
    }

    html body .card-header .lmob-hdr-count-1>button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]),
    html body .panel-heading .lmob-hdr-count-1>button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]),
    html body .card-header .lmob-hdr-count-1>a.btn:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]),
    html body .panel-heading .lmob-hdr-count-1>a.btn:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]) {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        padding: 6px 12px !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    html body .card-header:has(.lmob-hdr-count-1) .btn-help-info:not([style*="display:none" i]):not([style*="display: none" i]),
    html body .panel-heading:has(.lmob-hdr-count-1) .btn-help-info:not([style*="display:none" i]):not([style*="display: none" i]) {
        position: static !important;
        top: auto !important;
        right: auto !important;
        margin: 0 !important;
        order: 99 !important;
        flex: 0 0 32px !important;
    }

    /* Fallback puro em CSS caso .btn-help-info esteja presente antes da classe JS .lmob-hdr-count-1 */
    html body .card-header:has(.btn-help-info:not([style*="display:none" i]):not([style*="display: none" i])) .header-actions:not(.lmob-hdr-count-1):not(.lmob-hdr-count-2):not(.lmob-hdr-has-menu),
    html body .panel-heading:has(.btn-help-info:not([style*="display:none" i]):not([style*="display: none" i])) .header-actions:not(.lmob-hdr-count-1):not(.lmob-hdr-count-2):not(.lmob-hdr-has-menu),
    html body .card-header:has(.btn-help-info:not([style*="display:none" i]):not([style*="display: none" i])) .pull-right:not(.lmob-hdr-count-1):not(.lmob-hdr-count-2):not(.lmob-hdr-has-menu),
    html body .panel-heading:has(.btn-help-info:not([style*="display:none" i]):not([style*="display: none" i])) .pull-right:not(.lmob-hdr-count-1):not(.lmob-hdr-count-2):not(.lmob-hdr-has-menu) {
        padding-right: 40px !important;
    }

    .card-header:not(.note-toolbar):not(.note-editor *) button:not(.btn-help-info):not(.lfc-btn-close):not(.note-btn):not([style*="display:none" i]):not([style*="display: none" i]),
    .card-header:not(.note-toolbar):not(.note-editor *) a.btn:not(.btn-help-info):not(.lfc-btn-close):not(.note-btn):not([style*="display:none" i]):not([style*="display: none" i]),
    .panel-heading:not(.note-toolbar):not(.note-editor *) button:not(.btn-help-info):not(.lfc-btn-close):not(.note-btn):not([style*="display:none" i]):not([style*="display: none" i]),
    .panel-heading:not(.note-toolbar):not(.note-editor *) a.btn:not(.btn-help-info):not(.lfc-btn-close):not(.note-btn):not([style*="display:none" i]):not([style*="display: none" i]) {
        align-self: stretch !important;
        width: auto !important;
        min-width: 110px !important;
        max-width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        height: auto !important;
        min-height: 36px !important;
        padding: 6px 12px !important;
        font-size: 12.5px !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        margin: 0 !important;
        flex: 1 1 calc(50% - 4px) !important;
        box-sizing: border-box !important;
    }

    html body .lmob-hdr-orig-hidden,
    html body.theme-mode-modern .lmob-hdr-orig-hidden,
    html body.theme-mode-modern form button.lmob-hdr-orig-hidden,
    html body.theme-mode-modern .datagrid-header-actions .lmob-hdr-orig-hidden {
        display: none !important;
    }

    .card-header .header-actions.lmob-hdr-has-menu,
    .panel-heading .header-actions.lmob-hdr-has-menu,
    .card-header .pull-right.lmob-hdr-has-menu,
    .panel-heading .pull-right.lmob-hdr-has-menu,
    .card-header-actions.lmob-hdr-has-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .card-header .lmob-hdr-has-menu>button:not(.lmob-hdr-menu-trigger):not(.btn-help-info):not(.lmob-hdr-orig-hidden),
    .panel-heading .lmob-hdr-has-menu>button:not(.lmob-hdr-menu-trigger):not(.btn-help-info):not(.lmob-hdr-orig-hidden),
    .card-header .lmob-hdr-has-menu>a.btn:not(.lmob-hdr-menu-trigger):not(.btn-help-info):not(.lmob-hdr-orig-hidden),
    .panel-heading .lmob-hdr-has-menu>a.btn:not(.lmob-hdr-menu-trigger):not(.btn-help-info):not(.lmob-hdr-orig-hidden) {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 84px !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 12px !important;
        white-space: nowrap !important;
    }

    html body button.lmob-hdr-menu-trigger {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 14px !important;
        margin: 0 !important;
        border-radius: 10px !important;
        border: 1px solid #cbd5e1 !important;
        background: #f8fafc !important;
        background-color: #f8fafc !important;
        color: #0f172a !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
    }

    html body button.lmob-hdr-menu-trigger i {
        color: var(--main-color, #059669) !important;
        font-size: 13.5px !important;
        flex: 0 0 auto !important;
    }

    html body button.lmob-hdr-menu-trigger .lmob-hdr-label {
        flex: 1 1 auto !important;
        text-align: left !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body button.lmob-hdr-menu-trigger .lmob-hdr-count {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 22px !important;
        height: 20px !important;
        padding: 0 6px !important;
        border-radius: 999px !important;
        background: var(--main-color, #059669) !important;
        color: #ffffff !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        flex: 0 0 auto !important;
    }

    html body button.lmob-hdr-menu-trigger .lmob-hdr-chev {
        color: #64748b !important;
        font-size: 11px !important;
        margin-left: 2px !important;
        flex: 0 0 auto !important;
    }

    /* Nav-tabs + botão de ajuda fixado na extremidade direita sem sobrepor abas */
    .nav-tabs:not(.tabs-left) {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        position: relative !important;
        align-items: center !important;
        gap: 4px !important;
        padding-bottom: 2px !important;
        scrollbar-width: none !important;
    }

    .nav-tabs:not(.tabs-left)::-webkit-scrollbar {
        display: none !important;
    }

    .nav-tabs:not(.tabs-left)>li.ch-nav-tabs-help-slot,
    .nav-tabs:not(.tabs-left)>.ch-nav-tabs-help-slot {
        position: sticky !important;
        right: 0 !important;
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        padding: 2px 2px 4px 12px !important;
        margin-left: auto !important;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 32%) !important;
        z-index: 3 !important;
    }

    /* ======================================================================
       3. NEUTRALIZAÇÃO DO LEGADO EM PERSONALIZADO.CSS & TOOLBARS DE LISTAS
       ====================================================================== */
    .btn.btn-help-info,
    button.btn-help-info,
    .input-group .btn,
    .input-group-append .btn,
    .input-group-prepend .btn,
    .modal-footer .btn,
    .modern-dialog-footer .btn,
    .ui-dialog-buttonpane .btn,
    .table td .btn:not(.dropdown-toggle),
    .table td button:not(.dropdown-toggle):not(.lmob-action-trigger),
    .btn-circle,
    .btn-sm,
    .btn-xs {
        width: auto !important;
    }

    .datagrid-header-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 6px 0 10px !important;
        box-sizing: border-box !important;
    }

    .datagrid-header-actions>div,
    .datagrid-header-actions-left-actions,
    .datagrid-header-actions-right-actions {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        align-items: center !important;
        justify-content: flex-start !important;
        float: none !important;
    }

    .datagrid-header-actions>div:empty {
        display: none !important;
    }

    .datagrid-header-actions:not(.lmob-dg-bar-has-menu) button:not(.btn-help-info):not(.lmob-hdr-menu-trigger):not(.lmob-hdr-orig-hidden):not([style*="display:none" i]):not([style*="display: none" i]),
    .datagrid-header-actions:not(.lmob-dg-bar-has-menu) a.btn:not(.btn-help-info):not(.lmob-hdr-menu-trigger):not(.lmob-hdr-orig-hidden):not([style*="display:none" i]):not([style*="display: none" i]),
    .datagrid-header-actions:not(.lmob-dg-bar-has-menu) div.btn:not(.btn-help-info):not(.lmob-hdr-menu-trigger):not(.lmob-hdr-orig-hidden):not([style*="display:none" i]):not([style*="display: none" i]),
    .datagrid-header-actions:not(.lmob-dg-bar-has-menu) .btn-group:not(.lmob-hdr-orig-hidden):not([style*="display:none" i]):not([style*="display: none" i]) {
        flex: 1 1 calc(50% - 4px) !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 36px !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    button.btn-help-info,
    a.btn-help-info,
    .btn.btn-help-info,
    html body button.btn-help-info,
    html body a.btn-help-info,
    html body .btn.btn-help-info,
    html body .datagrid-header-actions .btn-help-info,
    html body .datagrid-header-actions.lmob-dg-bar-has-menu .btn-help-info,
    html body .datagrid-header-actions.lmob-dg-bar-has-menu>div .btn-help-info,
    html body .btn-search-actions-wrap .btn-help-info,
    .datagrid-header-actions .btn-help-info,
    .btn-search-actions-wrap .btn-help-info {
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        flex: 0 0 32px !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 50% !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
        box-sizing: border-box !important;
    }

    .datagrid-header-actions .btn-help-info,
    html body .datagrid-header-actions .btn-help-info,
    .btn-search-actions-wrap .btn-help-info {
        position: static !important;
        top: auto !important;
        right: auto !important;
        margin-left: auto !important;
    }

    .datagrid-header-actions .btn-group>button.dropdown-toggle {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
    }

    html body .datagrid-header-actions.lmob-dg-bar-has-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 5px !important;
        padding: 8px 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .datagrid-header-actions:not(.lmob-dg-bar-has-menu):not(:has(.datagrid-header-actions-right-actions button:not(.btn-help-info):not(.lmob-hdr-orig-hidden), .datagrid-header-actions-right-actions a:not(.btn-help-info):not(.lmob-hdr-orig-hidden))) {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 5px !important;
        padding: 6px 6px 8px !important;
    }

    .datagrid-header-actions:not(.lmob-dg-bar-has-menu):not(:has(.datagrid-header-actions-right-actions button:not(.btn-help-info):not(.lmob-hdr-orig-hidden), .datagrid-header-actions-right-actions a:not(.btn-help-info):not(.lmob-hdr-orig-hidden)))>div:not([data-help-actions]):not(.datagrid-header-actions-right-actions) {
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 0 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 5px !important;
    }

    .datagrid-header-actions:not(.lmob-dg-bar-has-menu):not(:has(.datagrid-header-actions-right-actions button:not(.btn-help-info):not(.lmob-hdr-orig-hidden), .datagrid-header-actions-right-actions a:not(.btn-help-info):not(.lmob-hdr-orig-hidden)))>div[data-help-actions] {
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 5px !important;
    }

    .datagrid-header-actions:not(.lmob-dg-bar-has-menu):not(:has(.datagrid-header-actions-right-actions button:not(.btn-help-info):not(.lmob-hdr-orig-hidden), .datagrid-header-actions-right-actions a:not(.btn-help-info):not(.lmob-hdr-orig-hidden))) button:not(.btn-help-info):not(.lmob-hdr-menu-trigger):not(.lmob-hdr-orig-hidden):not([style*="display:none" i]):not([style*="display: none" i]),
    .datagrid-header-actions:not(.lmob-dg-bar-has-menu):not(:has(.datagrid-header-actions-right-actions button:not(.btn-help-info):not(.lmob-hdr-orig-hidden), .datagrid-header-actions-right-actions a:not(.btn-help-info):not(.lmob-hdr-orig-hidden))) a.btn:not(.btn-help-info):not(.lmob-hdr-menu-trigger):not(.lmob-hdr-orig-hidden):not([style*="display:none" i]):not([style*="display: none" i]) {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        padding: 0 8px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .datagrid-header-actions:not(.lmob-dg-bar-has-menu):not(:has(.datagrid-header-actions-right-actions button:not(.btn-help-info):not(.lmob-hdr-orig-hidden), .datagrid-header-actions-right-actions a:not(.btn-help-info):not(.lmob-hdr-orig-hidden))) .btn-group:not(.lmob-hdr-orig-hidden):not([style*="display:none" i]):not([style*="display: none" i]) {
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .datagrid-header-actions:not(.lmob-dg-bar-has-menu):not(:has(.datagrid-header-actions-right-actions button:not(.btn-help-info):not(.lmob-hdr-orig-hidden), .datagrid-header-actions-right-actions a:not(.btn-help-info):not(.lmob-hdr-orig-hidden))) .btn-group:not(.lmob-hdr-orig-hidden):not([style*="display:none" i]):not([style*="display: none" i])>button.dropdown-toggle {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 8px !important;
        font-size: 12px !important;
        height: 36px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body .datagrid-header-actions.lmob-dg-bar-has-menu>div,
    html body .datagrid-header-actions.lmob-dg-bar-has-menu>.datagrid-header-actions-left-actions {
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 0 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 5px !important;
    }

    html body .datagrid-header-actions.lmob-dg-bar-has-menu>div[data-help-actions],
    html body .datagrid-header-actions.lmob-dg-bar-has-menu>.datagrid-header-actions-right-actions,
    .datagrid-header-actions:not(.lmob-dg-bar-has-menu)>div[data-help-actions],
    .datagrid-header-actions:not(.lmob-dg-bar-has-menu) .datagrid-header-actions-right-actions:not(:has(button:not(.btn-help-info):not(.lmob-hdr-orig-hidden), a:not(.btn-help-info):not(.lmob-hdr-orig-hidden))) {
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 5px !important;
    }

    html body .datagrid-header-actions.lmob-dg-bar-has-menu .lmob-dg-primary-btn,
    html body .datagrid-header-actions.lmob-dg-bar-has-menu .datagrid-header-actions-left-actions:not([data-help-actions]):not(:has(.lmob-dg-primary-btn))>*:not(.lmob-hdr-menu-trigger):not(.lmob-hdr-orig-hidden):not(.btn-help-info):first-child {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 1 0% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: auto !important;
        height: 36px !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        padding: 0 8px !important;
        font-size: 12.5px !important;
    }

    html body .datagrid-header-actions.lmob-dg-bar-has-menu .lmob-dg-filter-btn:not(.btn-group),
    html body .datagrid-header-actions.lmob-dg-bar-has-menu .datagrid-header-actions-left-actions:not([data-help-actions])>*:not(.lmob-dg-primary-btn):not(.btn-group):not(.lmob-hdr-menu-trigger):not(.lmob-hdr-orig-hidden):not(.btn-help-info):not(:first-child) {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: 36px !important;
        margin: 0 !important;
        padding: 0 8px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    html body .datagrid-header-actions.lmob-dg-bar-has-menu .btn-group.lmob-dg-filter-btn {
        display: inline-flex !important;
        align-items: center !important;
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 36px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body .datagrid-header-actions.lmob-dg-bar-has-menu .btn-group.lmob-dg-filter-btn>button.dropdown-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 36px !important;
        margin: 0 !important;
        padding: 0 8px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
    }

    html body .datagrid-header-actions.lmob-dg-bar-has-menu button.lmob-hdr-menu-trigger.is-toolbar,
    html body button.lmob-hdr-menu-trigger.is-toolbar {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 42px !important;
        height: 36px !important;
        min-height: 36px !important;
        margin: 0 !important;
        padding: 0 8px !important;
        justify-content: center !important;
        gap: 4px !important;
    }

    /* ======================================================================
       4. LISTAS / DATAGRIDS CONTIDAS E AÇÕES AGRUPADAS NO MOBILE
       ====================================================================== */
    .lmob-table-scroll,
    .table-responsive:not(:has(.datagrid-header-actions)):not(:has(.lmob-table-scroll)) {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    .table-responsive:has(.lmob-table-scroll) {
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .lmob-table-scroll.lmob-has-scroll-right {
        box-shadow: inset -10px 0 12px -10px rgba(15, 23, 42, 0.2) !important;
    }

    table.tdatagrid_table:not(.tchecklist),
    .lmob-table-scroll>table:not(.tchecklist),
    .lmob-table-scroll>table.table:not(.tchecklist),
    .table-responsive>table.table:not(.tchecklist) {
        table-layout: auto !important;
        width: max-content !important;
        min-width: 100% !important;
        max-width: none !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        margin: 0 !important;
    }

    table.tdatagrid_table:not(.tchecklist) thead th,
    .lmob-table-scroll>table:not(.tchecklist) thead th,
    .lmob-table-scroll>table.table:not(.tchecklist) thead th,
    .table-responsive>table.table:not(.tchecklist) thead th {
        width: auto !important;
        max-width: none !important;
        white-space: nowrap !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
        vertical-align: middle !important;
    }

    table.tdatagrid_table:not(.tchecklist) tbody td,
    .lmob-table-scroll>table:not(.tchecklist) tbody td,
    .lmob-table-scroll>table.table:not(.tchecklist) tbody td,
    .table-responsive>table.table:not(.tchecklist) tbody td {
        width: auto !important;
        max-width: 260px !important;
        padding: 8px 10px !important;
        font-size: 12.5px !important;
        line-height: 1.35 !important;
        vertical-align: middle !important;
        overflow: visible !important;
    }

    /* TCheckList 2-3 colunas (ex: Usuários com acesso à Unidade): colunas fixas alinhadas à esquerda */
    html body table.tchecklist:not(:has(thead tr th:nth-child(4))):not(:has(tbody tr td:nth-child(4))),
    html body .lmob-table-scroll>table.tchecklist:not(:has(thead tr th:nth-child(4))):not(:has(tbody tr td:nth-child(4))) {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    html body table.tchecklist:not(:has(thead tr th:nth-child(4))):not(:has(tbody tr td:nth-child(4))) thead,
    html body table.tchecklist:not(:has(thead tr th:nth-child(4))):not(:has(tbody tr td:nth-child(4))) tbody {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    html body table.tchecklist:not(:has(thead tr th:nth-child(4))):not(:has(tbody tr td:nth-child(4))) thead tr,
    html body table.tchecklist:not(:has(thead tr th:nth-child(4))):not(:has(tbody tr td:nth-child(4))) tbody tr {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body table.tchecklist:not(:has(thead tr th:nth-child(4))):not(:has(tbody tr td:nth-child(4))) thead th:first-child,
    html body table.tchecklist:not(:has(thead tr th:nth-child(4))):not(:has(tbody tr td:nth-child(4))) tbody td:first-child {
        flex: 0 0 42px !important;
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 6px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    html body table.tchecklist:not(:has(thead tr th:nth-child(4))):not(:has(tbody tr td:nth-child(4))) thead th:not(:first-child),
    html body table.tchecklist:not(:has(thead tr th:nth-child(4))):not(:has(tbody tr td:nth-child(4))) tbody td:not(:first-child) {
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        text-align: left !important;
        justify-content: flex-start !important;
        padding: 8px 8px !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        box-sizing: border-box !important;
    }

    html body table.tchecklist:not(:has(thead tr th:nth-child(4))):not(:has(tbody tr td:nth-child(4))) thead th:not(:first-child) {
        font-size: 12px !important;
        font-weight: 700 !important;
    }

    html body table.tchecklist:not(:has(thead tr th:nth-child(4))):not(:has(tbody tr td:nth-child(4))) tbody td:not(:first-child) {
        font-size: 12.5px !important;
        line-height: 1.35 !important;
    }

    /* TCheckList com 4+ colunas (ex: Widgets permitidos): rolagem horizontal sem encavalar */
    html body div:has(> table.tchecklist:has(thead tr th:nth-child(4))),
    html body div:has(> table.tchecklist:has(tbody tr td:nth-child(4))),
    html body .tchecklist-wrapper:has(table.tchecklist:has(thead tr th:nth-child(4))),
    html body .tchecklist-wrapper:has(table.tchecklist:has(tbody tr td:nth-child(4))) {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body table.tchecklist:has(thead tr th:nth-child(4)),
    html body table.tchecklist:has(tbody tr td:nth-child(4)) {
        display: table !important;
        width: max-content !important;
        min-width: 100% !important;
        max-width: none !important;
        table-layout: auto !important;
        border-collapse: collapse !important;
        margin: 0 !important;
    }

    html body table.tchecklist:has(thead tr th:nth-child(4))>thead,
    html body table.tchecklist:has(tbody tr td:nth-child(4))>thead {
        display: table-header-group !important;
    }

    html body table.tchecklist:has(thead tr th:nth-child(4))>tbody,
    html body table.tchecklist:has(tbody tr td:nth-child(4))>tbody {
        display: table-row-group !important;
    }

    html body table.tchecklist:has(thead tr th:nth-child(4)) tr,
    html body table.tchecklist:has(tbody tr td:nth-child(4)) tr {
        display: table-row !important;
    }

    html body table.tchecklist:has(thead tr th:nth-child(4)) th:first-child,
    html body table.tchecklist:has(thead tr th:nth-child(4)) td:first-child,
    html body table.tchecklist:has(tbody tr td:nth-child(4)) th:first-child,
    html body table.tchecklist:has(tbody tr td:nth-child(4)) td:first-child {
        display: table-cell !important;
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        text-align: center !important;
        vertical-align: middle !important;
        padding: 8px 6px !important;
    }

    html body table.tchecklist:has(thead tr th:nth-child(4)) th:nth-child(2),
    html body table.tchecklist:has(thead tr th:nth-child(4)) td:nth-child(2),
    html body table.tchecklist:has(tbody tr td:nth-child(4)) th:nth-child(2),
    html body table.tchecklist:has(tbody tr td:nth-child(4)) td:nth-child(2) {
        display: table-cell !important;
        min-width: 56px !important;
        text-align: left !important;
        vertical-align: middle !important;
        padding: 8px 10px !important;
    }

    html body table.tchecklist:has(thead tr th:nth-child(4)) th:nth-child(n+3),
    html body table.tchecklist:has(thead tr th:nth-child(4)) td:nth-child(n+3),
    html body table.tchecklist:has(tbody tr td:nth-child(4)) th:nth-child(n+3),
    html body table.tchecklist:has(tbody tr td:nth-child(4)) td:nth-child(n+3) {
        display: table-cell !important;
        min-width: 140px !important;
        max-width: 240px !important;
        text-align: left !important;
        vertical-align: middle !important;
        padding: 8px 10px !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    /* Listas de CheckGroup / TDBCheckGroup (ex: Usuários permitidos): 1 coluna alinhada à esquerda */
    html body div:has(> div > input[checkgroup]) {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    html body div:has(> div > input[checkgroup])>br {
        display: none !important;
    }

    html body div:has(> input[checkgroup]) {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        text-align: left !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 5px 2px !important;
        box-sizing: border-box !important;
    }

    html body div:has(> input[checkgroup])>label {
        margin: 0 !important;
        text-align: left !important;
        flex: 1 1 0% !important;
        min-width: 0 !important;
        width: auto !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.35 !important;
    }

    html body.theme-mode-modern table.table th.tdatagrid_action.lmob-merged-action-hidden,
    html body.theme-mode-modern table.table td.tdatagrid_action.lmob-merged-action-hidden,
    html body.theme-mode-modern table.table[id*="Lancamento"] th.lmob-merged-action-hidden,
    html body.theme-mode-modern table.table[id*="Lancamento"] td.lmob-merged-action-hidden,
    html body.theme-mode-modern table.table.lancamento-datagrid-responsive th.lmob-merged-action-hidden,
    html body.theme-mode-modern table.table.lancamento-datagrid-responsive td.lmob-merged-action-hidden,
    html body table.tdatagrid_table th.lmob-merged-action-hidden,
    html body table.tdatagrid_table td.lmob-merged-action-hidden,
    .lmob-merged-action-hidden {
        display: none !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    th.lmob-action-group-th,
    td.lmob-action-group-cell,
    html body.theme-mode-modern table.table[id*="Lancamento"] th.tdatagrid_action.lmob-action-group-th,
    html body.theme-mode-modern table.table[id*="Lancamento"] td.tdatagrid_action.lmob-action-group-cell,
    html body.theme-mode-modern table.table.lancamento-datagrid-responsive th.tdatagrid_action.lmob-action-group-th,
    html body.theme-mode-modern table.table.lancamento-datagrid-responsive td.tdatagrid_action.lmob-action-group-cell {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 50px !important;
        padding: 6px 6px !important;
        text-align: center !important;
        position: sticky !important;
        left: 0 !important;
        z-index: 2 !important;
        background-color: #ffffff !important;
        box-shadow: 2px 0 6px rgba(15, 23, 42, 0.06) !important;
    }

    thead th.lmob-action-group-th {
        background-color: #f8fafc !important;
        z-index: 3 !important;
    }

    table.table-striped tbody tr:nth-of-type(odd) td.lmob-action-group-cell {
        background-color: #ffffff !important;
    }

    table.table-striped tbody tr:nth-of-type(even) td.lmob-action-group-cell {
        background-color: #fafbfd !important;
    }

    html body.theme-mode-modern .table td.tdatagrid_action.lmob-action-group-cell>.lmob-orig-hidden,
    html body.theme-mode-modern .table td.tdatagrid_action.lmob-action-group-cell>a:not(.lmob-action-trigger),
    html body.theme-mode-modern .table td.tdatagrid_action.lmob-action-group-cell>button:not(.lmob-action-trigger),
    html body.theme-mode-modern .table td.lmob-action-group-cell>.lmob-orig-hidden,
    html body.theme-mode-modern .table td.lmob-action-group-cell>a:not(.lmob-action-trigger),
    html body.theme-mode-modern .table td.lmob-action-group-cell>button:not(.lmob-action-trigger),
    td.lmob-action-group-cell>.lmob-orig-hidden,
    td.lmob-action-group-cell>a:not(.lmob-action-trigger),
    td.lmob-action-group-cell>button:not(.lmob-action-trigger) {
        display: none !important;
    }

    .lmob-action-trigger,
    body.theme-mode-modern .table td button.lmob-action-trigger {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        margin: 0 auto !important;
        border-radius: 8px !important;
        border: 1px solid #cbd5e1 !important;
        background: #f8fafc !important;
        color: #334155 !important;
        font-size: 13px !important;
        cursor: pointer !important;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
    }

    .lmob-action-trigger i {
        color: #334155 !important;
        margin: 0 !important;
        font-size: 13px !important;
    }

    /* Mantém dropdowns nativos já existentes compactos dentro das tabelas */
    table td .btn-group,
    body.theme-mode-modern .table td .btn-group {
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
    }

    table td .btn-group>.btn.dropdown-toggle,
    body.theme-mode-modern .table td .btn-group>.btn.dropdown-toggle,
    table td button[data-toggle="dropdown"].btn.dropdown-toggle {
        width: auto !important;
        min-width: 36px !important;
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 9px !important;
        font-size: 12px !important;
        margin: 0 !important;
    }

    /* Banner "Totais da página" com 100% da largura */
    .datagrid-totals-banner-container,
    body .datagrid-totals-banner-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 8px 0 0 !important;
        box-sizing: border-box !important;
    }

    .datagrid-totals-banner,
    body .datagrid-totals-banner {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        padding: 12px !important;
        gap: 10px !important;
        box-sizing: border-box !important;
    }

    .datagrid-totals-banner-cards,
    body .datagrid-totals-banner-cards {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        margin-left: 0 !important;
        gap: 8px !important;
    }

    .totals-banner-card,
    body .totals-banner-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;
    }

    .totals-banner-card-value,
    .totals-banner-card .totalreceita,
    .totals-banner-card .totaldespesa {
        width: 100% !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }

    /* ======================================================================
       5. PAGINAÇÃO COMPACTA E CONTIDA
       ====================================================================== */
    .panel-footer:has(.tpagenavigation),
    .card-footer:has(.tpagenavigation),
    .panel-footer:has(ul.pagination),
    .card-footer:has(ul.pagination),
    body.theme-mode-modern .panel-footer:has(.tpagenavigation),
    body.theme-mode-modern .card-footer:has(.tpagenavigation),
    body.theme-mode-modern .panel-footer:has(ul.pagination),
    body.theme-mode-modern .card-footer:has(ul.pagination) {
        padding: 10px 6px !important;
        overflow: hidden !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .tpagenavigation,
    body.theme-mode-modern .tpagenavigation {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        justify-content: center !important;
        padding: 2px 0 !important;
    }

    ul.pagination,
    body.theme-mode-modern ul.pagination {
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        gap: 3px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    ul.pagination>li.off,
    ul.pagination>li.lmob-page-hidden {
        display: none !important;
    }

    ul.pagination>li>a,
    ul.pagination>li>span,
    body.theme-mode-modern ul.pagination>li>a,
    body.theme-mode-modern ul.pagination>li>span {
        min-width: 32px !important;
        height: 32px !important;
        padding: 4px 8px !important;
        font-size: 12px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* ======================================================================
       6. CAMPOS DE FORMULÁRIO, BDATERANGE, TDATE, SELECT2 E RADIO/CHECK GROUP
       ====================================================================== */
    input.tfield,
    select.tcombo,
    textarea.tfield,
    .form-control,
    .select2-container {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .select2-container {
        width: 100% !important;
    }

    .bdaterange-container.tdate-group,
    body.theme-mode-modern .bdaterange-container.tdate-group {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .bdaterange-container.tdate-group input.tfield,
    body.theme-mode-modern .bdaterange-container.tdate-group input.tfield {
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        font-size: 12.5px !important;
        padding: 4px 4px !important;
        text-align: center !important;
    }

    .tdate-group:not(.bdaterange-container) {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    html body .tdate-group:not(.bdaterange-container) input.tfield {
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 108px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .bdaterange-container .bdaterange-icon,
    .tdate-group .tdate-group-addon {
        flex: 0 0 36px !important;
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .bdaterange-container .easepick-wrapper {
        max-width: calc(100vw - 16px) !important;
        left: 8px !important;
        right: 8px !important;
        margin: 0 auto !important;
        overflow-x: auto !important;
    }

    /* TRadioGroup & TCheckGroup (useButton / groupby) com quebra flexível sem cortes */
    div[tradiogroup],
    div[tcheckgroup] {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        box-sizing: border-box !important;
    }

    div[tradiogroup] .btn-group,
    div[tcheckgroup] .btn-group,
    .toggle-wrapper[data-toggle="buttons"] .btn-group {
        display: flex !important;
        flex-wrap: wrap !important;
        float: none !important;
        clear: both !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        gap: 6px !important;
        margin: 0 !important;
    }

    div[tradiogroup] label.btn,
    div[tcheckgroup] label.btn,
    .toggle-wrapper[data-toggle="buttons"] label.btn {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: fit-content !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 36px !important;
        padding: 6px 10px !important;
        margin: 0 !important;
        border-radius: 8px !important;
        white-space: normal !important;
        line-height: 1.25 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* Rodapé de formulários */
    .panel-footer:not(:has(.tpagenavigation)):not(:has(ul.pagination)),
    .card-footer:not(:has(.tpagenavigation)):not(:has(ul.pagination)) {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 10px 10px !important;
    }

    .panel-footer:not(:has(.tpagenavigation)):not(:has(ul.pagination)) button:not([style*="display:none" i]):not([style*="display: none" i]),
    .panel-footer:not(:has(.tpagenavigation)):not(:has(ul.pagination)) a.btn:not([style*="display:none" i]):not([style*="display: none" i]),
    .card-footer:not(:has(.tpagenavigation)):not(:has(ul.pagination)) button:not([style*="display:none" i]):not([style*="display: none" i]),
    .card-footer:not(:has(.tpagenavigation)):not(:has(ul.pagination)) a.btn:not([style*="display:none" i]):not([style*="display: none" i]) {
        flex: 1 1 calc(50% - 4px) !important;
        width: auto !important;
        min-width: 110px !important;
        margin: 0 !important;
        justify-content: center !important;
        text-align: center !important;
        min-height: 38px !important;
        height: auto !important;
        white-space: normal !important;
        line-height: 1.25 !important;
    }

    /* ======================================================================
       7. KPIs (100% LARGURA), DASHBOARDS EM PILHA VERTICAL, DRE & TFIELDLIST
       ====================================================================== */
    [class*="-kpi-grid"],
    .rbv-kpis,
    .empresa-kpi-banner,
    .cdash-kpi-grid,
    .cdash-taxa-grid,
    .campanha-kpi-grid,
    .portal-kpi-grid,
    .pcp-kpi-grid,
    .empresa-saldo-cards,
    .kpis-section .d-flex,
    .kpis-grid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Dashboards baseados em Bootstrap col-6 col-md-3 (ex.: ProdutoServicoDashboard e outros 11 módulos) */
    #adianti_div_content .row>.col-6.col-md-3,
    #adianti_div_content .row>.col-6.col-sm-3,
    #adianti_div_content .row>.col-6.col-lg-3,
    #adianti_div_content .row>.col-xs-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
        box-sizing: border-box !important;
    }

    .kpi-card,
    [class*="-kpi-card"]:not([class*="__"]),
    .rbv-kpi,
    .cdash-taxa-card,
    .dashboard-kpi-card,
    .indicador-card,
    .gauge-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 12px 14px !important;
        box-sizing: border-box !important;
    }

    /* Extrato Bancário: corrige ícones dos KPIs e garante grade vertical */
    .extrato-summary__grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .extrato-summary__hero {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .extrato-summary__context {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .extrato-kpi-card__header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .extrato-kpi-card__title {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .extrato-kpi-card__icon {
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        padding: 0 !important;
        flex: 0 0 38px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .extrato-kpi-card__title-icon {
        width: auto !important;
        padding: 0 !important;
        display: inline !important;
    }

    /* Empilhamento vertical obrigatório em blocos multi-coluna de todos os dashboards */
    .pcp-grid-2,
    .empresa-saldo-resumo,
    .rbv-charts-grid,
    .rgv-grid,
    .rbv-chart-card,
    .grafico-panel,
    .dashboard-widget {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        box-sizing: border-box !important;
    }

    .pcp-dash-wrap,
    .pcp-panel,
    .pcp-grid-2>div,
    .rgv-col-8,
    .rgv-col-7,
    .rgv-col-6,
    .rgv-col-5,
    .rgv-col-4 {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .pcp-panel {
        padding: 12px !important;
        overflow: hidden !important;
    }

    #adianti_div_content div[style*="display: grid"][style*="grid-template-columns"],
    #adianti_div_content div[style*="display:grid"][style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 12px !important;
        box-sizing: border-box !important;
    }

    #adianti_div_content div[style*="display: grid"][style*="grid-template-columns"]>*,
    #adianti_div_content div[style*="display:grid"][style*="grid-template-columns"]>* {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* DRE & Fluxo de Caixa: remove fixação da 1ª coluna no mobile para permitir leitura dos valores */
    .dre-dashboard-table-wrapper,
    .dre-table-responsive,
    .fluxo-caixa-dashboard-table-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .dre-dashboard-table th:first-child,
    .dre-dashboard-table td:first-child,
    .dre-dashboard-table thead th:first-child,
    .dre-table th:first-child,
    .dre-table td:first-child,
    .dre-orc-table th:first-child,
    .dre-orc-table td:first-child,
    .dre-orc-table thead th:first-child,
    .fluxo-caixa-dashboard-table th:first-child,
    .fluxo-caixa-dashboard-table td:first-child,
    .fluxo-caixa-dashboard-table thead th:first-child,
    div[page_name="FluxoCaixaView"] #titulos-fluxo-caixa {
        position: static !important;
        left: auto !important;
        z-index: auto !important;
        min-width: 140px !important;
        max-width: 220px !important;
        white-space: normal !important;
        box-shadow: none !important;
    }

    /* TFieldList global: cards multi-linha no mobile para nunca esmagar colunas */
    table.tfieldlist.lmob-fl-enhanced {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        border: none !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    table.tfieldlist.lmob-fl-enhanced>thead {
        display: none !important;
    }

    table.tfieldlist.lmob-fl-enhanced>tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    table.tfieldlist.lmob-fl-enhanced>tbody>tr {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px 10px !important;
        align-items: end !important;
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        border-left: 3px solid var(--main-color, #0284c7) !important;
        border-radius: 10px !important;
        padding: 10px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    table.tfieldlist.lmob-fl-enhanced>tbody>tr>td.field:not([style*="display:none" i]):not([style*="display: none" i]) {
        display: flex !important;
        flex-direction: column !important;
        grid-column: span 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-sizing: border-box !important;
    }

    table.tfieldlist.lmob-fl-enhanced>tbody>tr>td.field[data-lmob-span="full"] {
        grid-column: 1 / -1 !important;
    }

    table.tfieldlist.lmob-fl-enhanced>tbody>tr>td.field[data-lmob-label]:not([data-col])::before {
        content: attr(data-lmob-label);
        display: block !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        color: #334155 !important;
        margin-bottom: 4px !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    table.tfieldlist.lmob-fl-enhanced>tbody>tr>td.field[data-lmob-req="1"]:not([data-col])::before {
        color: #0f172a !important;
    }

    table.tfieldlist.lmob-fl-enhanced>tbody>tr>td.field input,
    table.tfieldlist.lmob-fl-enhanced>tbody>tr>td.field select,
    table.tfieldlist.lmob-fl-enhanced>tbody>tr>td.field textarea,
    table.tfieldlist.lmob-fl-enhanced>tbody>tr>td.field .select2-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    table.tfieldlist.lmob-fl-enhanced>tbody>tr>td.lmob-fl-actions-cell {
        grid-column: 1 / -1 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 0 0 0 !important;
        margin-top: 2px !important;
        border-top: 1px dashed #e2e8f0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        background: transparent !important;
    }

    table.tfieldlist.lmob-fl-enhanced>tbody>tr>td.lmob-fl-actions-cell .btn,
    table.tfieldlist.lmob-fl-enhanced>tbody>tr>td.lmob-fl-actions-cell button {
        width: auto !important;
        min-width: 36px !important;
        height: 34px !important;
        padding: 4px 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    table.tfieldlist.lmob-fl-enhanced>tfoot {
        display: block !important;
        width: 100% !important;
        margin-top: 8px !important;
    }

    table.tfieldlist.lmob-fl-enhanced>tfoot>tr {
        display: flex !important;
        justify-content: flex-end !important;
        width: 100% !important;
    }

    table.tfieldlist.lmob-fl-enhanced>tfoot>tr>td {
        border: none !important;
        padding: 0 !important;
    }

    table.tfieldlist.lmob-fl-enhanced>tfoot>tr>td:empty {
        display: none !important;
    }

    table.tfieldlist.lmob-fl-enhanced>tfoot>tr>td .btn {
        width: auto !important;
        min-width: 42px !important;
        height: 36px !important;
        padding: 6px 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    /* ======================================================================
       8. MODAIS MODERNAS, TWINDOW, CORTINA LATERAL E FILE VIEWER (100dvh + SCROLL)
       ====================================================================== */
    .modern-dialog-overlay {
        padding: 8px !important;
        width: 100vw !important;
        height: 100dvh !important;
        box-sizing: border-box !important;
    }

    .modern-dialog-container {
        width: 100% !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .modern-dialog-header,
    .modern-dialog-footer {
        flex-shrink: 0 !important;
        padding: 12px 14px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .modern-dialog-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: calc(100dvh - 140px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 14px !important;
    }

    /* Modais modernas customizadas do ERP */
    [class*="modal-overlay"]:not([style*="display:none" i]):not([style*="display: none" i]) {
        padding: 8px !important;
        width: 100vw !important;
        height: 100dvh !important;
        box-sizing: border-box !important;
    }

    [class*="modal-overlay"]>[class*="modal-dialog"],
    [class*="modal-overlay"]>[class*="modal-container"],
    [class*="modal-overlay"]>[class*="modal-card"],
    .checkin-modal-dialog,
    #lead-form-modal-container,
    #modal-eassist-sync>div,
    #rbv-drill-modal>div,
    #rbv-ia-modal>div,
    #rbv-sched-modal>div,
    #rbv-vis-modal>div {
        width: 100% !important;
        max-width: calc(100vw - 16px) !important;
        min-width: 0 !important;
        max-height: calc(100dvh - 16px) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        margin: auto !important;
        box-sizing: border-box !important;
    }

    [class*="modal-overlay"] [class*="modal-header"],
    [class*="modal-overlay"] [class*="modal-footer"] {
        flex-shrink: 0 !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 12px 14px !important;
    }

    [class*="modal-overlay"] [class*="modal-body"],
    .checkin-modal-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 12px 14px !important;
    }

    /* TWindow (.ui-dialog) — inclui modais centralizadas com translate(-50%, -50%) */
    html body .ui-dialog:not([style*="display:none" i]):not([style*="display: none" i]),
    html body.theme-mode-modern .ui-dialog:not([style*="display:none" i]):not([style*="display: none" i]),
    html body .ui-dialog.ui-widget[role="dialog"]:not([style*="display:none" i]):not([style*="display: none" i]),
    html body .ui-dialog:has(.modal-modern-import):not([style*="display:none" i]):not([style*="display: none" i]),
    html body .ui-dialog:has(form[name*="Importar"]):not([style*="display:none" i]):not([style*="display: none" i]),
    html body .ui-dialog:has(form[name="form_BuscarLancamentoVincular"]):not([style*="display:none" i]):not([style*="display: none" i]),
    html body .ui-dialog.campanha-modal-centered:not([style*="display:none" i]):not([style*="display: none" i]),
    html body .ui-dialog.modal-modern-import:not([style*="display:none" i]):not([style*="display: none" i]),
    html body .ui-dialog.modal-trava-contabil-config:not([style*="display:none" i]):not([style*="display: none" i]),
    html body .ui-dialog.modern-ia-window:not([style*="display:none" i]):not([style*="display: none" i]),
    html body [page_name] [page_name="TWindow"] .ui-dialog:not([style*="display:none" i]):not([style*="display: none" i]),
    html body div[window_name].ui-dialog:not([style*="display:none" i]):not([style*="display: none" i]) {
        position: fixed !important;
        transform: none !important;
        margin: 0 !important;
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        min-width: 0 !important;
        left: 8px !important;
        right: 8px !important;
        top: 8px !important;
        max-height: calc(100dvh - 16px) !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    html body .ui-dialog.campanha-modal-centered>.ui-dialog-content,
    html body .ui-dialog.modal-modern-import>.ui-dialog-content,
    html body .ui-dialog.modal-trava-contabil-config>.ui-dialog-content,
    html body .ui-dialog:has(.modal-modern-import)>.ui-dialog-content,
    html body .ui-dialog.modern-ia-window>.ui-dialog-content {
        max-height: calc(100dvh - 76px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #form_CampanhaGerarAction {
        min-height: 0 !important;
        overflow: visible !important;
    }

    .ui-dialog .ui-dialog-titlebar,
    body.theme-mode-modern .ui-dialog .ui-dialog-titlebar,
    html body.theme-mode-modern .ui-dialog .ui-dialog-titlebar {
        flex: 0 0 auto !important;
        padding: 12px 44px 12px 14px !important;
        height: auto !important;
        min-height: 44px !important;
        max-height: none !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
    }

    .ui-dialog .ui-dialog-title,
    body.theme-mode-modern .ui-dialog .ui-dialog-title,
    html body.theme-mode-modern .ui-dialog .ui-dialog-title {
        white-space: normal !important;
        line-height: 1.3 !important;
        overflow: visible !important;
        overflow-wrap: anywhere !important;
        text-overflow: clip !important;
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }

    .ui-dialog .ui-dialog-content,
    body.theme-mode-modern .ui-dialog .ui-dialog-content {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: calc(100dvh - 76px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }

    .ui-dialog .ui-dialog-buttonpane,
    body.theme-mode-modern .ui-dialog .ui-dialog-buttonpane {
        flex: 0 0 auto !important;
        padding: 10px 12px !important;
    }

    /* Bootstrap .modal */
    .modal .modal-dialog {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        margin: 8px auto !important;
    }

    .modal .modal-content {
        max-height: calc(100dvh - 16px) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .modal .modal-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 12px !important;
    }

    /* Cortina lateral (right-panel) */
    #adianti_right_panel.right-panel {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
    }

    #adianti_right_panel.right-panel>.container-part {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 100dvh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 8px !important;
        box-sizing: border-box !important;
    }

    /* Global File Viewer (.gfv-modal) */
    .gfv-modal {
        padding: 6px !important;
        height: 100dvh !important;
    }

    .gfv-dialog,
    .gfv-dialog.gfv-type-image,
    .gfv-dialog.gfv-type-pdf,
    .gfv-dialog.gfv-type-video,
    .gfv-dialog.gfv-type-audio {
        width: calc(100vw - 12px) !important;
        max-width: calc(100vw - 12px) !important;
        min-width: 0 !important;
        max-height: calc(100dvh - 12px) !important;
    }

    /* Versão Mobile da Barra de Ferramentas HTML (Summernote & TinyMCE) — Design em Cards */
    html body .note-editor,
    html body .note-editor.note-frame {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        border-radius: 12px !important;
    }

    html body .note-editor .note-toolbar,
    html body .note-editor .note-toolbar.panel-heading,
    html body .note-editor .note-toolbar.card-header {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        padding: 10px !important;
        min-height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #f8fafc !important;
        border-bottom: 1px solid #e2e8f0 !important;
        border-radius: 11px 11px 0 0 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    html body .note-editor .note-toolbar .note-btn-group,
    html body .note-editor .note-toolbar .btn-group {
        display: inline-flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        gap: 6px !important;
        float: none !important;
    }

    html body .note-editor .note-toolbar button.note-btn,
    html body .note-editor .note-toolbar .note-btn-group>.btn,
    html body .note-editor .note-toolbar .btn-group>.btn {
        width: auto !important;
        min-width: 36px !important;
        max-width: none !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 0 9px !important;
        margin: 0 !important;
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        font-size: 13px !important;
        line-height: 1 !important;
        border-radius: 8px !important;
        border: 1px solid #e2e8f0 !important;
        background: #ffffff !important;
        color: #334155 !important;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    html body .note-editor .note-toolbar button.note-btn:not(.dropdown-toggle):not(.note-current-fontname):not(:has(.note-current-fontname)):not(:has(.note-current-fontsize)):not(:has(.note-icon-caret)),
    html body .note-editor .note-toolbar .note-btn-group>.btn:not(.dropdown-toggle):not(:has(.note-current-fontname)):not(:has(.note-current-fontsize)):not(:has(.note-icon-caret)) {
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        padding: 0 !important;
    }

    html body .note-editor .note-toolbar .note-btn.active,
    html body .note-editor .note-toolbar .note-btn.btn-primary {
        background: #1d4ed8 !important;
        border-color: #1d4ed8 !important;
        color: #ffffff !important;
    }

    html body .note-editor .note-toolbar .note-btn.active i,
    html body .note-editor .note-toolbar .note-btn.btn-primary i {
        color: #ffffff !important;
    }

    html body .note-editor .note-toolbar .note-btn i,
    html body .note-editor .note-toolbar .note-btn .note-icon-caret {
        font-size: 13px !important;
        line-height: 1 !important;
    }

    html body .note-editor .note-toolbar .dropdown-menu {
        max-width: calc(100vw - 28px) !important;
        max-height: 55dvh !important;
        overflow-y: auto !important;
        overflow-x: auto !important;
        z-index: 2050 !important;
    }

    html body .note-editor .note-color-palette .note-color-btn {
        width: 20px !important;
        min-width: 20px !important;
        max-width: 20px !important;
        height: 20px !important;
        min-height: 20px !important;
        max-height: 20px !important;
        padding: 0 !important;
        flex: none !important;
        border-radius: 2px !important;
    }

    html body .note-editor .note-editing-area,
    html body .note-editor .note-editable {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    html body .note-editor .note-editable {
        min-height: 180px !important;
        padding: 10px 12px !important;
        font-size: 14px !important;
    }

    html body .note-modal .modal-dialog {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        margin: 8px auto !important;
    }

    html body .tox-tinymce {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        border-radius: 12px !important;
    }

    html body .tox .tox-toolbar__primary {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 8px !important;
        background: #f8fafc !important;
    }

    html body .tox .tox-toolbar__group {
        display: inline-flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 0 !important;
        border: none !important;
    }

    html body .tox .tox-tbtn {
        min-width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
        border: 1px solid #e2e8f0 !important;
        background: #ffffff !important;
        margin: 0 !important;
    }

    html body .tox .tox-toolbar,
    html body .tox .tox-toolbar__primary,
    html body .tox .tox-toolbar__overflow {
        flex-wrap: wrap !important;
        gap: 2px !important;
    }

    html body .tox .tox-tbtn {
        min-width: 30px !important;
        height: 30px !important;
        flex: 0 0 auto !important;
    }

    /* ======================================================================
       8.2 MODAIS DOC SIGN (ENVELOPE, DOSSIÊ, CERTIFICADO A1, CANAIS, PESSOA)
       ====================================================================== */
    #luuvi-sign-envelope-modal-overlay:not([style*="display:none" i]):not([style*="display: none" i]),
    #luuvi-sign-dossie-modal:not([style*="display:none" i]):not([style*="display: none" i]),
    #luuvi-sign-cert-modal:not([style*="display:none" i]):not([style*="display: none" i]),
    #luuvi-sign-canais-modal:not([style*="display:none" i]):not([style*="display: none" i]),
    #ls_submodal_busca_pessoa:not([style*="display:none" i]):not([style*="display: none" i]),
    #ls_submodal_alerta:not([style*="display:none" i]):not([style*="display: none" i]) {
        padding: 8px !important;
        width: 100vw !important;
        height: 100dvh !important;
        box-sizing: border-box !important;
    }

    #luuvi-sign-envelope-modal-overlay>.ls-modal-card,
    #luuvi-sign-dossie-modal>div,
    #luuvi-sign-cert-modal>div,
    #luuvi-sign-canais-modal>div,
    #ls_submodal_busca_pessoa>.ls-submodal-card,
    #ls_submodal_alerta>div {
        width: 100% !important;
        max-width: calc(100vw - 16px) !important;
        min-width: 0 !important;
        max-height: calc(100dvh - 16px) !important;
        border-radius: 14px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    #ls_submodal_busca_pessoa>.ls-submodal-card {
        height: calc(100dvh - 16px) !important;
    }

    #luuvi-sign-envelope-modal-overlay .ls-modal-header {
        padding: 12px 14px !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 10px !important;
        position: relative !important;
        flex-shrink: 0 !important;
    }

    #luuvi-sign-envelope-modal-overlay .ls-modal-header-main {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        padding-right: 78px !important;
        align-items: flex-start !important;
        gap: 10px !important;
        box-sizing: border-box !important;
    }

    #luuvi-sign-envelope-modal-overlay .ls-modal-title {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        font-size: 14px !important;
        line-height: 1.28 !important;
    }

    #luuvi-sign-envelope-modal-overlay .ls-modal-subtitle {
        font-size: 11px !important;
        line-height: 1.35 !important;
        white-space: normal !important;
    }

    #luuvi-sign-envelope-modal-overlay .ls-modal-header-actions {
        flex: 1 1 100% !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        position: static !important;
    }

    #luuvi-sign-envelope-modal-overlay .ls-modal-header .btn-help-info {
        position: absolute !important;
        top: 12px !important;
        right: 50px !important;
        width: 32px !important;
        height: 32px !important;
        margin: 0 !important;
    }

    #luuvi-sign-envelope-modal-overlay .ls-modal-header .ls-modal-btn-close {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        width: 32px !important;
        height: 32px !important;
        margin: 0 !important;
    }

    #luuvi-sign-envelope-modal-overlay .ls-modal-badge-icp {
        white-space: normal !important;
        max-width: 100% !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
        padding: 5px 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        box-sizing: border-box !important;
    }

    #luuvi-sign-modal-body-content {
        padding: 12px 14px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
    }

    #luuvi-sign-modal-body-content .ls-grid-2,
    #luuvi-sign-modal-body-content .ls-grid-4,
    #luuvi-sign-modal-body-content .ls-sig-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    #luuvi-sign-modal-body-content .ls-grid-2>div,
    #luuvi-sign-modal-body-content .ls-grid-4>div,
    #luuvi-sign-modal-body-content .ls-sig-grid>div {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #luuvi-sign-modal-body-content input[type="text"],
    #luuvi-sign-modal-body-content input[type="email"],
    #luuvi-sign-modal-body-content input[type="date"],
    #luuvi-sign-modal-body-content select,
    #luuvi-sign-modal-body-content textarea,
    #luuvi-sign-modal-body-content input[type="file"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    #luuvi-sign-modal-body-content input[type="file"] {
        overflow: hidden !important;
        font-size: 12px !important;
    }

    #luuvi-sign-modal-body-content .ls-sig-section-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    #luuvi-sign-modal-body-content .ls-sig-section-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
    }

    #luuvi-sign-modal-body-content .ls-sig-section-actions>button {
        flex: 1 1 100% !important;
        width: 100% !important;
        justify-content: center !important;
        white-space: normal !important;
        text-align: center !important;
    }

    #luuvi-sign-modal-body-content .ls-sig-row {
        padding: 12px !important;
    }

    #luuvi-sign-modal-body-content .ls-sig-grid>div:last-child {
        display: flex !important;
        justify-content: flex-end !important;
    }

    #luuvi-sign-modal-body-content .ls-sig-checks {
        flex-wrap: wrap !important;
        gap: 8px 14px !important;
    }

    #luuvi-sign-modal-body-content .ls-modal-footer {
        padding: 12px 0 2px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    #luuvi-sign-modal-body-content .ls-modal-footer-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 8px !important;
    }

    #luuvi-sign-modal-body-content .ls-modal-footer-actions>button {
        width: 100% !important;
        justify-content: center !important;
        white-space: normal !important;
        text-align: center !important;
        padding: 10px 12px !important;
    }

    #ls_submodal_busca_pessoa>.ls-submodal-card>div:nth-child(2)>div {
        flex-wrap: wrap !important;
    }

    #ls_submodal_busca_pessoa>.ls-submodal-card>div:nth-child(2) button {
        width: 100% !important;
        justify-content: center !important;
    }

    #luuvi-sign-dossie-modal>div>div:first-child,
    #luuvi-sign-cert-modal>div>div:first-child,
    #luuvi-sign-canais-modal>div>div:first-child {
        padding: 12px 14px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }

    #luuvi-sign-dossie-modal>div>div:nth-child(2),
    #luuvi-sign-cert-modal>div>div:nth-child(2),
    #luuvi-sign-canais-modal>div>div:nth-child(2),
    #luuvi-sign-canais-modal form {
        padding: 12px 14px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
    }

    #luuvi-sign-dossie-modal code {
        word-break: break-all !important;
        white-space: normal !important;
    }

    /* ======================================================================
       8.3 SINDICÂNCIA DE DISPARO (TIMELINE VERTICAL E ABAS ROLÁVEIS)
       ====================================================================== */
    .npd-view-wrap,
    .campanha-detalhe-view {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .npd-kpi-grid,
    .cview-kpi-grid {
        grid-template-columns: 1fr !important;
        padding: 12px 10px !important;
        gap: 8px !important;
    }

    .npd-alert,
    .cview-alert,
    .npd-stepper-wrap,
    .cview-stepper-wrap {
        margin: 12px 10px 0 10px !important;
        padding: 12px 14px !important;
        box-sizing: border-box !important;
    }

    .npd-stepper,
    .cview-stepper {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 14px !important;
        padding: 2px 0 !important;
    }

    .npd-step-connector,
    .cview-step-connector {
        display: none !important;
    }

    .npd-step-item,
    .cview-step-item {
        display: grid !important;
        grid-template-columns: 36px minmax(0, 1fr) !important;
        column-gap: 12px !important;
        row-gap: 2px !important;
        align-items: center !important;
        text-align: left !important;
        flex: none !important;
        width: 100% !important;
        position: relative !important;
    }

    .npd-step-item:not(:last-child)::after,
    .cview-step-item:not(:last-child)::after {
        content: "" !important;
        position: absolute !important;
        left: 17px !important;
        top: 36px !important;
        bottom: -14px !important;
        width: 2px !important;
        background: #e2e8f0 !important;
        z-index: 1 !important;
    }

    .npd-step-item.completed:not(:last-child)::after,
    .cview-step-item.completed:not(:last-child)::after {
        background: #10b981 !important;
    }

    .npd-step-item.active:not(:last-child)::after,
    .cview-step-item.active:not(:last-child)::after {
        background: linear-gradient(180deg, #0284c7 0%, #e2e8f0 100%) !important;
    }

    .npd-step-item.error:not(:last-child)::after,
    .cview-step-item.error:not(:last-child)::after {
        background: #ef4444 !important;
    }

    .npd-step-node,
    .cview-step-node {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        position: relative !important;
        z-index: 2 !important;
        margin: 0 !important;
    }

    .npd-step-label,
    .cview-step-label {
        grid-column: 2 !important;
        grid-row: 1 !important;
        margin-top: 0 !important;
        text-align: left !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
    }

    .npd-step-time,
    .cview-step-time {
        grid-column: 2 !important;
        grid-row: 2 !important;
        margin-top: 0 !important;
        text-align: left !important;
        font-size: 11.5px !important;
    }

    .npd-tabs-bar,
    .cview-tabs-bar {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 12px 10px 0 10px !important;
        gap: 6px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        scrollbar-width: thin !important;
    }

    .npd-tab-btn,
    .cview-tab-btn {
        flex: 0 0 auto !important;
        width: auto !important;
        white-space: nowrap !important;
        padding: 9px 12px !important;
        font-size: 12.5px !important;
        gap: 6px !important;
    }

    .npd-tab-content,
    .cview-tab-content {
        padding: 12px 10px 20px 10px !important;
        min-height: 0 !important;
    }

    .npd-card-header,
    .cview-card-header {
        padding: 12px 14px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .npd-card-body,
    .cview-card-body {
        padding: 12px 14px !important;
    }

    .npd-ctx-grid,
    .cview-ctx-grid,
    .npd-grid-2,
    .cview-grid-2,
    .npd-grid-3,
    .cview-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .npd-footer,
    .cview-footer {
        padding: 12px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .npd-footer>button,
    .npd-footer>a,
    .cview-footer>button,
    .cview-footer>a {
        flex: 1 1 auto !important;
        justify-content: center !important;
    }

    /* ======================================================================
       8.4 KANBANS / FUNIS, BARRA DE FILTROS, ALTURA FIXA E MAPA DE NAVEGAÇÃO
       ====================================================================== */
    body .btn-search-actions-wrap,
    body [page_name^="KanbanFilter"] .btn-search-actions-wrap,
    body #form_KanbanFilterLead .btn-search-actions-wrap {
        height: auto !important;
        min-height: 38px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        width: 100% !important;
        margin: 4px 0 !important;
    }

    body .btn-search-actions-wrap button:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]),
    body .btn-search-actions-wrap a.btn:not(.btn-help-info):not([style*="display:none" i]):not([style*="display: none" i]),
    body .btn-search-actions-wrap #btnBuscar,
    body .btn-search-actions-wrap #btnLimpar,
    body .btn-search-actions-wrap #novoLead,
    body .btn-search-actions-wrap #btnImportarCSVLead,
    body .btn-search-actions-wrap #novaProposta,
    body .btn-search-actions-wrap #novaCobranca,
    body [page_name^="KanbanFilter"] .btn-search-actions-wrap button:not(.btn-help-info) {
        flex: 1 1 calc(50% - 4px) !important;
        width: auto !important;
        min-width: 110px !important;
        max-width: 100% !important;
        height: 36px !important;
        min-height: 36px !important;
        margin: 0 !important;
        padding: 0 10px !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* Altura fixa confortável para o funil no mobile (evita esmagamento pela viewport dinâmica) */
    [id^="kanban_"][id$="_container"] {
        height: auto !important;
        max-height: none !important;
        min-height: 520px !important;
        overflow: visible !important;
    }

    .kanban-board-wrapper {
        height: 560px !important;
        min-height: 480px !important;
        max-height: 76dvh !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 12px !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    .kanban-board {
        height: 100% !important;
        min-height: 100% !important;
        align-items: stretch !important;
        padding: 6px 4px 12px 4px !important;
    }

    .kanban-stage,
    .kanban-stage.ui-sortable-handle {
        height: calc(100% - 8px) !important;
        max-height: calc(100% - 8px) !important;
        min-height: 400px !important;
        width: min(84vw, 310px) !important;
        min-width: min(84vw, 285px) !important;
        max-width: min(84vw, 320px) !important;
        display: flex !important;
        flex-direction: column !important;
        flex-shrink: 0 !important;
        margin: 4px 6px !important;
    }

    .kanban-item-sortable {
        flex: 1 1 auto !important;
        min-height: 300px !important;
        height: auto !important;
        max-height: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Mapa de navegação (Minimap) fixado fora da área rolável e operável por toque */
    #tkanban-layout-controller {
        max-width: calc(100vw - 24px) !important;
        touch-action: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        cursor: pointer !important;
        z-index: 30 !important;
        pointer-events: auto !important;
    }

    #tkanban-layout-controller.lmob-minimap-docked {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        margin: 8px auto 4px auto !important;
    }

    #tkanban-layout-controller.lmob-minimap-docked .tkanban-border-controler {
        position: absolute !important;
        top: 0 !important;
    }

    .tkanban-border-controler,
    .tkanban-border-controler.ui-draggable,
    .tkanban-border-controler.ui-draggable-handle {
        touch-action: none !important;
        pointer-events: auto !important;
        min-width: 28px !important;
        box-sizing: border-box !important;
    }

    /* ======================================================================
       8.5 MODAIS SLIDE / SPLIT, PERFIL, FICHA CADASTRAL CRM E CATCH-ALL MODERNAS
       ====================================================================== */
    [role="dialog"]:not(.ui-dialog):not(.wmodal-card):not(.fiscal-balloon-box):not(#fiscal-balloon-singleton):not([style*="display:none" i]):not([style*="display: none" i]),
    .cmodal-overlay:not([style*="display:none" i]):not([style*="display: none" i]),
    .cobmodal-overlay:not([style*="display:none" i]):not([style*="display: none" i]),
    .pipe-modal-overlay:not([style*="display:none" i]):not([style*="display: none" i]),
    .etapa-modal-overlay:not([style*="display:none" i]):not([style*="display: none" i]),
    .cat-excl-overlay:not([style*="display:none" i]):not([style*="display: none" i]),
    .base-update-overlay:not([style*="display:none" i]):not([style*="display: none" i]),
    .scope-modal-overlay:not([style*="display:none" i]):not([style*="display: none" i]),
    .spcm-modal-backdrop:not([style*="display:none" i]):not([style*="display: none" i]),
    .evp-enc-modal-overlay:not([style*="display:none" i]):not([style*="display: none" i]),
    #modal-nova-atividade-dialog:not([style*="display:none" i]):not([style*="display: none" i]) {
        padding: 6px !important;
        width: 100vw !important;
        height: 100dvh !important;
        box-sizing: border-box !important;
    }

    [role="dialog"]:not(.ui-dialog):not(.wmodal-card):not(.fiscal-balloon-box):not(#fiscal-balloon-singleton)>div,
    .cmodal-overlay>div,
    .cobmodal-overlay>.cobmodal-container,
    .pipe-modal-overlay>div,
    .etapa-modal-overlay>div,
    .cat-excl-overlay>div,
    .base-update-overlay>div,
    .scope-modal-overlay>div,
    .spcm-modal-backdrop>div,
    .evp-enc-modal-overlay>div,
    #modal-nova-atividade-dialog>div {
        width: 100% !important;
        max-width: calc(100vw - 12px) !important;
        min-width: 0 !important;
        max-height: calc(100dvh - 12px) !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
    }

    html body #fiscal-balloon-singleton.fiscal-balloon-box {
        height: auto !important;
        min-height: 0 !important;
        max-height: 72dvh !important;
        width: min(330px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
        min-width: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    html body #fiscal-balloon-singleton.fiscal-balloon-box .fiscal-balloon-body {
        height: auto !important;
        max-height: calc(72dvh - 46px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Perfil do Lead (#lead-modal-perfil) */
    body #lead-modal-perfil>div {
        height: calc(100dvh - 12px) !important;
        max-height: calc(100dvh - 12px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        display: flex !important;
        flex-direction: column !important;
    }

    body #lead-modal-perfil>div>div:nth-child(1) {
        padding: 12px 14px !important;
        gap: 8px !important;
        align-items: flex-start !important;
        flex-shrink: 0 !important;
    }

    body #lead-modal-perfil>div>div:nth-child(2) {
        position: sticky !important;
        top: 0 !important;
        z-index: 6 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x !important;
        justify-content: flex-start !important;
        padding: 0 10px !important;
        gap: 4px !important;
        height: 44px !important;
        min-height: 44px !important;
        flex-shrink: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body #lead-modal-perfil .leadprofile-tab-btn {
        flex: 0 0 auto !important;
        width: auto !important;
        white-space: nowrap !important;
        padding: 0 12px !important;
        font-size: 12px !important;
    }

    body #lead-modal-perfil>div>div:nth-child(3) {
        flex: 1 0 auto !important;
        min-height: 380px !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
        padding: 14px 12px !important;
        box-sizing: border-box !important;
    }

    body #lead-modal-perfil *,
    body #lead-form-modal-dialog *,
    body #negociacao-form-modal-dialog * {
        box-sizing: border-box !important;
    }

    body #lead-modal-perfil .row,
    body #lead-form-modal-dialog .row,
    body #negociacao-form-modal-dialog .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body #lead-modal-perfil .row>[class*="col-"],
    body #lead-form-modal-dialog .row>[class*="col-"],
    body #negociacao-form-modal-dialog .row>[class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        border-right: none !important;
    }

    body #lead-modal-perfil>div>div:nth-child(3) div,
    body #lead-form-modal-container form div,
    body #lead-form-modal-container input,
    body #lead-form-modal-container select,
    body #lead-form-modal-container textarea,
    body #lead-modal-perfil a {
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    body #lead-modal-perfil>div>div:nth-child(3) div[style*="justify-content: space-between"],
    body #lead-form-modal-container form div[style*="justify-content: space-between"] {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    body #lead-modal-perfil>div>div:nth-child(3) .col-md-6 {
        border-right: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 12px !important;
    }

    /* Negociação: card do cliente e botão Trocar Cliente na linha abaixo */
    body #negform_client_box_filled,
    body #negform_client_box_empty {
        padding: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body #negform_client_box_filled>div:first-child,
    body #negform_client_box_filled>div:nth-child(2),
    body #negform_client_box_empty {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
    }

    body #negform_client_box_filled>div:first-child>div:last-child {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
    }

    body #negform_client_box_filled button,
    body #negform_client_box_empty button {
        width: 100% !important;
        justify-content: center !important;
        white-space: normal !important;
        box-sizing: border-box !important;
    }

    body #negform_cli_acoes {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 6px !important;
    }

    body #lead-modal-perfil>div>div:nth-child(4) {
        flex-shrink: 0 !important;
        padding: 10px 12px !important;
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    body #lead-modal-perfil>div>div:nth-child(4)>div:first-child {
        width: 100% !important;
    }

    body #lead-modal-perfil>div>div:nth-child(4)>div:last-child {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    body #lead-modal-perfil>div>div:nth-child(4) button {
        width: 100% !important;
        margin: 0 !important;
        justify-content: center !important;
        padding: 8px 8px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    /* Forms Split / Slide (LeadForm, NegociacaoFormView, CobrancaFormView) */
    body #lead-form-modal-container,
    body #negociacao-form-modal-container,
    body .cobform-card {
        width: 100% !important;
        max-width: calc(100vw - 12px) !important;
        min-width: 0 !important;
        height: calc(100dvh - 12px) !important;
        max-height: calc(100dvh - 12px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        display: flex !important;
        flex-direction: column !important;
    }

    body #lead-form-modal-container>div:first-child,
    body #negociacao-form-modal-container>div:first-child,
    body .cobform-header {
        padding: 12px 14px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }

    body #lead-form-modal-container>div:nth-child(2),
    body #negociacao-form-modal-container>div:nth-child(2),
    body .cobform-split-body {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 0 auto !important;
        overflow: visible !important;
        height: auto !important;
    }

    body #lead-form-modal-container>div:nth-child(2)>div,
    body #negociacao-form-modal-container>div:nth-child(2)>div,
    body .cobform-col-left,
    body .cobform-col-right {
        flex: 1 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        border-right: none !important;
        overflow: visible !important;
        height: auto !important;
        padding: 12px !important;
        box-sizing: border-box !important;
    }

    body #lead-form-modal-container>div:nth-child(2)>div:nth-child(2),
    body #negociacao-form-modal-container>div:nth-child(2)>div:nth-child(2),
    body .cobform-col-right {
        border-top: 2px solid #e2e8f0 !important;
        padding: 0 !important;
    }

    body #lead-form-modal-container>div:nth-child(2)>div:nth-child(2)>div:nth-child(2),
    body #negociacao-form-modal-container>div:nth-child(2)>div:nth-child(1)>div:first-child,
    body #negociacao-form-modal-container>div:nth-child(2)>div:nth-child(2)>div:nth-child(2),
    body .cobform-tab-content-wrap {
        overflow-y: visible !important;
        flex: 1 0 auto !important;
        padding: 12px !important;
    }

    body #lead-form-modal-container>div:nth-child(2)>div:nth-child(2)>div:nth-child(2),
    body #negociacao-form-modal-container>div:nth-child(2)>div:nth-child(2)>div:nth-child(2),
    body .cobform-tab-content-wrap {
        min-height: 340px !important;
    }

    body .cobform-tab-nav,
    body .negform-tab-nav,
    body #lead-form-modal-container>div:nth-child(2)>div:nth-child(2)>div:first-child {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 44px !important;
        padding: 6px 10px !important;
        gap: 6px !important;
        box-sizing: border-box !important;
    }

    body .leadform-tab-pill,
    body .negform-tab-pill,
    body .cobform-tab-pill {
        flex: 0 0 auto !important;
        width: auto !important;
        white-space: nowrap !important;
    }

    body #lead-form-modal-container>div:nth-child(3),
    body #negociacao-form-modal-container>div:nth-child(2)>div:first-child>div:last-child,
    body .cobform-footer {
        flex-shrink: 0 !important;
        padding: 10px 12px !important;
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    body #lead-form-modal-container>div:nth-child(3)>div:first-child,
    body #negociacao-form-modal-container>div:nth-child(2)>div:first-child>div:last-child>div:first-child {
        width: 100% !important;
    }

    body #lead-form-modal-container>div:nth-child(3)>div:last-child,
    body #negociacao-form-modal-container>div:nth-child(2)>div:first-child>div:last-child>div:last-child {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    body #negform-wrap-botoes-extra:not([style*="display: none" i]):not([style*="display:none" i]) {
        display: contents !important;
    }

    body #lead-form-modal-container>div:nth-child(3) button,
    body #negociacao-form-modal-container>div:nth-child(2)>div:first-child>div:last-child button,
    body .cobform-footer button {
        width: 100% !important;
        margin: 0 !important;
        justify-content: center !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    /* Ficha Cadastral do CRM & Prospecção (#basecnpj-modal-ficha) */
    body #basecnpj-modal-ficha>div {
        height: calc(100dvh - 12px) !important;
        max-height: calc(100dvh - 12px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        display: flex !important;
        flex-direction: column !important;
    }

    body #basecnpj-modal-ficha>div>div:nth-child(1) {
        padding: 12px 14px !important;
        gap: 8px !important;
        align-items: flex-start !important;
        flex-shrink: 0 !important;
    }

    body #basecnpj-modal-ficha>div>div:nth-child(2) {
        position: sticky !important;
        top: 0 !important;
        z-index: 6 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x !important;
        justify-content: flex-start !important;
        padding: 0 10px !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body #basecnpj-modal-ficha .basecnpj-tab-btn {
        flex: 0 0 auto !important;
        width: auto !important;
        white-space: nowrap !important;
        padding: 10px 12px !important;
    }

    body #basecnpj-modal-ficha>div>div:nth-child(3) {
        flex: 1 0 auto !important;
        min-height: 360px !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
        padding: 14px 12px !important;
        box-sizing: border-box !important;
    }

    body #basecnpj-modal-ficha>div>div:nth-child(4) {
        flex-shrink: 0 !important;
        padding: 12px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    body #basecnpj-modal-ficha>div>div:nth-child(4)>div:last-child {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }

    body #basecnpj-modal-ficha>div>div:nth-child(4) button {
        width: 100% !important;
        margin: 0 !important;
        justify-content: center !important;
        padding: 9px 12px !important;
    }

    /* Outras modais modernas (.cobmodal, parceiro_saas, transferência, importação) */
    .cobmodal-header,
    .cobmodal-footer {
        padding: 12px 14px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .cobmodal-body {
        padding: 14px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .cobmodal-footer .cobmodal-btn {
        flex: 1 1 auto !important;
        justify-content: center !important;
    }

    [role="dialog"]:not(.ui-dialog) [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* ======================================================================
       8.6 FINANCEIRO: RELATÓRIO ANALÍTICO, FLUXO DE CAIXA, BALANÇO E PROVISIONADOS
       ====================================================================== */
    /* Relatório Analítico & Fluxo de Caixa: ações sem encavalamento e Analisar somente ícone */
    html body .btn-search-actions-wrap:has(button[name="btnAnalisar"]),
    html body .btn-search-actions-wrap:has(button[name="btn_fc_aplicar"]),
    html body #form_analise_custos .btn-search-actions-wrap,
    html body #form_FluxoCaixaView .btn-search-actions-wrap {
        height: auto !important;
        min-height: 38px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        width: 100% !important;
        margin: 4px 0 !important;
    }

    html body .btn-search-actions-wrap button[name="btnAnalisar"],
    html body .btn-search-actions-wrap button[name="btn_fc_aplicar"],
    html body #form_analise_custos button[name="btnAnalisar"],
    html body #form_FluxoCaixaView button[name="btn_fc_aplicar"] {
        flex: 0 0 38px !important;
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 !important;
        font-size: 0 !important;
        gap: 0 !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    html body .btn-search-actions-wrap button[name="btnAnalisar"]>span,
    html body .btn-search-actions-wrap button[name="btn_fc_aplicar"]>span,
    html body #form_analise_custos button[name="btnAnalisar"]>span,
    html body #form_FluxoCaixaView button[name="btn_fc_aplicar"]>span {
        font-size: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    html body .btn-search-actions-wrap button[name="btnAnalisar"] i,
    html body .btn-search-actions-wrap button[name="btn_fc_aplicar"] i,
    html body #form_analise_custos button[name="btnAnalisar"] i,
    html body #form_FluxoCaixaView button[name="btn_fc_aplicar"] i {
        font-size: 14px !important;
        line-height: 1 !important;
        margin: 0 !important;
    }

    html body .btn-search-actions-wrap:has(button[name="btnAnalisar"]) button:not([name="btnAnalisar"]):not(.btn-help-info),
    html body .btn-search-actions-wrap:has(button[name="btn_fc_aplicar"]) button:not([name="btn_fc_aplicar"]):not(.btn-help-info) {
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 38px !important;
        height: 38px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    html body .btn-search-actions-wrap:has(button[name="btnAnalisar"]) button[name="btnLimpar"] {
        flex: 0 0 38px !important;
        width: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
    }

    /* Balanço Patrimonial Gerencial */
    .bp-dashboard {
        padding: 6px 0 18px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .bp-kpis {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    .bp-kpi {
        width: 100% !important;
        min-width: 0 !important;
        padding: 12px !important;
        box-sizing: border-box !important;
    }

    .bp-conc-banner {
        padding: 10px 12px !important;
        gap: 8px !important;
        font-size: 12px !important;
    }

    .bp-card {
        border-radius: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .bp-card-head {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 10px 12px !important;
        gap: 6px !important;
    }

    .bp-card-head>div:first-child span {
        display: block !important;
        margin-left: 0 !important;
        margin-top: 3px !important;
    }

    .bp-split-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 8px !important;
    }

    .bp-col {
        min-width: 0 !important;
        width: 100% !important;
    }

    .bp-table-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .bp-table {
        width: max-content !important;
        min-width: 100% !important;
        font-size: 12px !important;
    }

    .bp-sub-cell {
        padding-left: 12px !important;
    }

    .bp-modal-overlay {
        padding: 8px !important;
        height: 100dvh !important;
    }

    .bp-modal-card {
        width: 100% !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
    }

    .bp-modal-head,
    .bp-modal-foot {
        padding: 12px 14px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .bp-modal-body {
        padding: 12px 14px !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    /* Modal de Pagamentos Provisionados (#modal-pagamentos-provisionados) */
    #modal-pagamentos-provisionados .prov-modal-dialog {
        width: 100% !important;
        max-width: calc(100vw - 12px) !important;
        min-width: 0 !important;
        height: calc(100dvh - 12px) !important;
        max-height: calc(100dvh - 12px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #modal-pagamentos-provisionados .prov-modal-head {
        position: relative !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px 14px !important;
        gap: 10px !important;
        flex-shrink: 0 !important;
    }

    #modal-pagamentos-provisionados .prov-head-title-wrap {
        width: 100% !important;
        padding-right: 40px !important;
        align-items: flex-start !important;
        gap: 10px !important;
        box-sizing: border-box !important;
    }

    #modal-pagamentos-provisionados .prov-head-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }

    #modal-pagamentos-provisionados .prov-title {
        font-size: 14.5px !important;
        line-height: 1.25 !important;
    }

    #modal-pagamentos-provisionados .prov-subtitle {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }

    #modal-pagamentos-provisionados .prov-head-badges {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
        position: static !important;
    }

    #modal-pagamentos-provisionados .prov-stat-badge {
        text-align: left !important;
        padding: 6px 10px !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    #modal-pagamentos-provisionados .prov-modal-head button.btn-help-info {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        margin: 0 !important;
    }

    #modal-pagamentos-provisionados .prov-modal-head .prov-btn-close {
        display: none !important;
    }

    #modal-pagamentos-provisionados .prov-modal-body {
        flex: 1 0 auto !important;
        overflow: visible !important;
        padding: 12px !important;
    }

    #modal-pagamentos-provisionados .prov-table-container {
        min-height: 240px !important;
        max-height: 46dvh !important;
        overflow: auto !important;
    }

    #modal-pagamentos-provisionados .prov-whatsapp-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 10px 12px !important;
    }

    #modal-pagamentos-provisionados .prov-wpp-right {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
    }

    #modal-pagamentos-provisionados .prov-wpp-select {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* ======================================================================
       8.7 ESTRUTURA DE CONTAS, CONFIGURAÇÃO FISCAL E DRE
       ====================================================================== */
    /* Estrutura de Contas: barra de filtros empilhada e rolagem horizontal na árvore BTreeView */
    .ec-tree-header-top {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .ec-tree-toolbar-controls {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .ec-row-tree-body,
    .ec-row-tree-body>div,
    .ec-row-tree-body .btreeview,
    .btreeview.btreeview-container,
    body #form_form_EstruturaContas .btreeview {
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .btreeview {
        padding: 10px 10px !important;
    }

    .btreeview>.btreeview-group,
    .btreeview>.btreeview-item,
    .btreeview>ul {
        min-width: 620px !important;
        width: max-content !important;
    }

    .btreeview-group-title,
    .btreeview-item {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        gap: 8px !important;
    }

    .btreeview .ec-node-content {
        flex-wrap: nowrap !important;
        width: auto !important;
        flex: 1 0 auto !important;
    }

    .btreeview-group-actions,
    .btreeview-item-actions {
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }

    /* Configuração Fiscal: badge API Fiscal e texto informativo sem distorção ou recorte */
    .sec-cred-row .cred-card-header,
    .cred-card-header {
        padding: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .sec-cred-row .cred-card-header>div,
    .cred-card-header>div {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .sec-cred-row .cred-card-header .badge,
    .cred-card-header .badge {
        white-space: normal !important;
        text-align: left !important;
        line-height: 1.35 !important;
        max-width: 100% !important;
        width: fit-content !important;
        height: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-left: 0 !important;
        word-break: break-word !important;
        box-sizing: border-box !important;
    }

    .sec-cred-row .cred-card-header span,
    .cred-card-header span {
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        line-height: 1.45 !important;
    }

    /* DRE: botões operacionais contidos no card, sem estourar altura/margem e banner de alerta em coluna */
    .form-container-header {
        margin: 8px 4px 0 4px !important;
    }

    html body #form_DREView .dre-filtros-operacionais-row {
        padding: 12px !important;
        overflow: visible !important;
    }

    html body #form_DREView .dre-filtros-actions-wrap {
        height: auto !important;
        min-height: 38px !important;
        max-height: none !important;
        overflow: visible !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body #form_DREView .dre-actions-divider {
        display: none !important;
    }

    html body #form_DREView #tbutton_btnAtualizar,
    html body #form_DREView button[name="btnAtualizar"],
    html body #form_DREView .dre-btn-atualizar {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    html body #form_DREView #tbutton_btnPrintPDF,
    html body #form_DREView #tbutton_btnAnaliseIa,
    html body #form_DREView #tbutton_btnConfigurarDRE,
    html body #form_DREView .dre-btn-pdf,
    html body #form_DREView .dre-btn-analise-ia,
    html body #form_DREView .dre-btn-configurar {
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 44px !important;
        max-width: 100% !important;
        height: 38px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    html body #form_DREView .dre-modelo-actions-wrap {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        height: auto !important;
    }

    html body #form_DREView .dre-modelo-info-badge,
    html body #form_DREView #tbutton_btnMetasOrcamento,
    html body #form_DREView #tbutton_btnVisaoOrcamento,
    html body #form_DREView #tbutton_btnAssistenteDreIa {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        height: auto !important;
        min-height: 38px !important;
        padding: 8px 12px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .dre-alert-banner,
    .dre-diag-banner {
        padding: 12px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .dre-diag-banner>div:first-child {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        position: relative !important;
    }

    .dre-diag-banner>div:first-child>div:first-child {
        min-width: 0 !important;
        width: 100% !important;
        padding-right: 28px !important;
        box-sizing: border-box !important;
    }

    .dre-diag-banner>div:first-child>div:last-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        flex-shrink: 1 !important;
        gap: 8px !important;
    }

    .dre-diag-banner .dre-alert-btn-config {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: normal !important;
        padding: 8px 12px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .dre-diag-banner .dre-alert-btn-close {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
    }

    .dre-diag-banner>div:nth-child(2) {
        padding-left: 0 !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 6px !important;
    }

    .dre-diag-banner>div:nth-child(2)>span {
        width: 100% !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        box-sizing: border-box !important;
    }

    /* ----------------------------------------------------------------------
       8.8 RODADA 7: COBRANÇA (TOPO/CLIENTE/RODAPÉ), CALENDÁRIO,
           RESUMO DO VEÍCULO, CHECKOUT PRODUTOS, LEGENDA E CONTRASTE GLOBAL
       ---------------------------------------------------------------------- */
    /* 8.8.1 Form de Cobrança (#cobranca-split-modal-dialog) */
    html body #cobranca-split-modal-dialog .cobform-header {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px 14px !important;
        flex-shrink: 0 !important;
    }

    html body #cobranca-split-modal-dialog .cobform-header>div:first-child {
        width: 100% !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding-right: 78px !important;
        box-sizing: border-box !important;
    }

    html body #cobranca-split-modal-dialog .cobform-header>div:first-child>div:first-child {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
        flex-shrink: 0 !important;
    }

    html body #cobranca-split-modal-dialog .cobform-header>div:first-child>div:last-child {
        min-width: 0 !important;
        flex: 1 1 0% !important;
    }

    html body #cobranca-split-modal-dialog .cobform-header>div:first-child>div:last-child>div:first-child {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
    }

    html body #cobranca-split-modal-dialog .cobform-header>div:first-child>div:last-child>span {
        display: block !important;
        margin-top: 4px !important;
        line-height: 1.3 !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    html body #cobranca-split-modal-dialog .cobform-header .btn-help-info {
        position: absolute !important;
        top: 10px !important;
        right: 48px !important;
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        margin: 0 !important;
    }

    html body #cobranca-split-modal-dialog .cobform-header .cobform-btn-close {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        margin: 0 !important;
    }

    html body #cobranca-split-modal-dialog .cobform-header>div:last-child {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding-top: 8px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
        box-sizing: border-box !important;
    }

    html body #cobranca-split-modal-dialog .cobform-header>div:last-child>div:has(#cobform_topo_valor_total) {
        display: flex !important;
        align-items: baseline !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin-left: 0 !important;
        text-align: left !important;
    }

    html body #cobranca-split-modal-dialog #cobform_topo_valor_total {
        font-size: 18px !important;
    }

    html body #cobranca-split-modal-dialog #btn_topo_transferir_cobranca,
    html body #cobranca-split-modal-dialog #btn_topo_liquidar_cobranca,
    html body #cobranca-split-modal-dialog #btn_topo_cancelar_cobranca {
        flex: 1 1 auto !important;
        justify-content: center !important;
        padding: 6px 10px !important;
        font-size: 11.5px !important;
        white-space: nowrap !important;
    }

    html body #cobranca-split-modal-dialog .cobform-split-body,
    html body #cobranca-split-modal-dialog .cobform-col-left,
    html body #cobranca-split-modal-dialog .cobform-col-right {
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    html body #cobranca-split-modal-dialog .cobform-col-left .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    html body #cobranca-split-modal-dialog .cobform-col-left .row>[class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
    }

    html body #cobranca-split-modal-dialog #cobform_client_box_filled,
    html body #cobranca-split-modal-dialog #cobform_client_box_empty {
        padding: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #cobranca-split-modal-dialog #cobform_client_box_empty {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    html body #cobranca-split-modal-dialog #cobform_client_box_filled>div:first-child {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
    }

    html body #cobranca-split-modal-dialog #cobform_client_box_filled>div:first-child>div:last-child {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
    }

    html body #cobranca-split-modal-dialog #cobform_cli_doc_badge {
        max-width: 100% !important;
    }

    html body #cobranca-split-modal-dialog #cobform_cli_doc_badge>span {
        margin-left: 0 !important;
        display: inline-flex !important;
        flex-wrap: wrap !important;
    }

    html body #cobranca-split-modal-dialog #cobform_client_box_filled>div:first-child button,
    html body #cobranca-split-modal-dialog #cobform_client_box_empty button {
        width: 100% !important;
        justify-content: center !important;
    }

    html body #cobranca-split-modal-dialog #cobform_client_box_filled>div:nth-child(2) {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
    }

    html body #cobranca-split-modal-dialog #cobform_client_box_filled>div:nth-child(2)>div:first-child {
        width: 100% !important;
        min-width: 0 !important;
    }

    html body #cobranca-split-modal-dialog #cobform_cli_nome,
    html body #cobranca-split-modal-dialog #cobform_cli_razao {
        width: 100% !important;
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    html body #cobranca-split-modal-dialog #cobform_cli_acoes {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html body #cobranca-split-modal-dialog #cobform_cli_acoes>a,
    html body #cobranca-split-modal-dialog #cobform_cli_acoes>span {
        flex: 1 1 auto !important;
        max-width: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
        box-sizing: border-box !important;
    }

    html body #cobranca-split-modal-dialog .cob-item-card,
    html body #cobranca-split-modal-dialog #cobform-resumo-itens,
    html body #cobranca-split-modal-dialog .cob-banner-gerar-pagamento,
    html body #cobranca-split-modal-dialog .cob-pagamento-item>div,
    html body #cobranca-split-modal-dialog .cob-msg-card>div:last-child {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    html body #cobranca-split-modal-dialog .cobform-footer {
        flex-shrink: 0 !important;
        padding: 10px 12px !important;
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    html body #cobranca-split-modal-dialog .cobform-footer>div:first-child {
        width: 100% !important;
    }

    html body #cobranca-split-modal-dialog .cobform-footer>div:last-child {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    html body #cobranca-split-modal-dialog #cobform_wrap_botoes_extra:not([style*="display: none" i]):not([style*="display:none" i]) {
        display: contents !important;
    }

    html body #cobranca-split-modal-dialog #btn_editar_cobranca_form,
    html body #cobranca-split-modal-dialog #btn_salvar_cobranca_form {
        grid-column: 1 / -1 !important;
    }

    html body #cobranca-split-modal-dialog .cobform-footer button {
        width: 100% !important;
        min-height: 36px !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    /* 8.8.2 Calendário (TFullCalendar / FullCalendar v5) */
    .fc,
    .tfullcalendar,
    html body.theme-mode-modern .fc,
    html body.theme-mode-modern .tfullcalendar {
        padding: 10px 8px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .fc .fc-toolbar.fc-header-toolbar,
    .tfullcalendar .fc-toolbar.fc-header-toolbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
        padding-bottom: 10px !important;
    }

    .fc .fc-toolbar-chunk,
    .tfullcalendar .fc-toolbar-chunk {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .fc .fc-toolbar-title,
    .tfullcalendar .fc-toolbar-title {
        font-size: 17px !important;
        line-height: 1.25 !important;
        text-align: center !important;
        margin: 0 !important;
    }

    html body.theme-mode-modern .fc .fc-header-toolbar .btn-group,
    html body.theme-mode-modern .tfullcalendar .fc-header-toolbar .btn-group,
    html body .fc .fc-header-toolbar .btn-group,
    html body .fc .fc-header-toolbar .fc-button-group {
        display: inline-flex !important;
        align-items: stretch !important;
        width: auto !important;
        max-width: 100% !important;
        overflow: visible !important;
        border-radius: 8px !important;
    }

    html body.theme-mode-modern .fc .fc-toolbar button.fc-prev-button,
    html body.theme-mode-modern .fc .fc-toolbar button.fc-next-button,
    html body.theme-mode-modern .tfullcalendar .fc-toolbar button.fc-prev-button,
    html body.theme-mode-modern .tfullcalendar .fc-toolbar button.fc-next-button,
    html body .fc .fc-toolbar button.fc-prev-button,
    html body .fc .fc-toolbar button.fc-next-button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 !important;
        margin: 0 !important;
        flex: 0 0 38px !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        background-image: none !important;
        border: 1px solid #cbd5e1 !important;
        color: #334155 !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    html body .fc .fc-toolbar button.fc-prev-button,
    html body .tfullcalendar .fc-toolbar button.fc-prev-button {
        border-radius: 8px 0 0 8px !important;
        border-right: none !important;
    }

    html body .fc .fc-toolbar button.fc-next-button,
    html body .tfullcalendar .fc-toolbar button.fc-next-button {
        border-radius: 0 8px 8px 0 !important;
        border-left: 1px solid #cbd5e1 !important;
    }

    html body.theme-mode-modern .fc .fc-toolbar button.fc-prev-button *,
    html body.theme-mode-modern .fc .fc-toolbar button.fc-next-button *,
    html body .fc .fc-toolbar button.fc-prev-button span,
    html body .fc .fc-toolbar button.fc-next-button span,
    html body .fc .fc-toolbar button.fc-prev-button i,
    html body .fc .fc-toolbar button.fc-next-button i,
    html body .fc .fc-toolbar button.fc-prev-button .fc-icon,
    html body .fc .fc-toolbar button.fc-next-button .fc-icon {
        color: #334155 !important;
        fill: #334155 !important;
        opacity: 1 !important;
        visibility: visible !important;
        font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", FontAwesome !important;
        font-weight: 900 !important;
        font-style: normal !important;
        font-size: 13px !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        height: auto !important;
    }

    html body .fc .fc-toolbar button.fc-prev-button span::before,
    html body .fc .fc-toolbar button.fc-prev-button .fa::before,
    html body .fc .fc-toolbar button.fc-prev-button .fc-icon::before,
    html body .tfullcalendar .fc-toolbar button.fc-prev-button span::before {
        content: "\f053" !important;
        color: #334155 !important;
    }

    html body .fc .fc-toolbar button.fc-next-button span::before,
    html body .fc .fc-toolbar button.fc-next-button .fa::before,
    html body .fc .fc-toolbar button.fc-next-button .fc-icon::before,
    html body .tfullcalendar .fc-toolbar button.fc-next-button span::before {
        content: "\f054" !important;
        color: #334155 !important;
    }

    html body .fc .fc-toolbar button.fc-today-button,
    html body .tfullcalendar .fc-toolbar button.fc-today-button {
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 14px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    html body .fc .fc-toolbar-chunk:last-child .btn-group,
    html body .fc .fc-toolbar-chunk:last-child .fc-button-group,
    html body .tfullcalendar .fc-toolbar-chunk:last-child .btn-group {
        width: 100% !important;
        display: flex !important;
    }

    html body .fc .fc-toolbar-chunk:last-child button,
    html body .tfullcalendar .fc-toolbar-chunk:last-child button {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        padding: 7px 6px !important;
        font-size: 12px !important;
        justify-content: center !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* 8.8.3 Resumo do Cadastro do Veículo (#modalResumoVeiculo & #modalAlertaVeiculoResumo) */
    html body #modalResumoVeiculo {
        padding: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body #modalResumoVeiculo .modal-dialog {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 6px !important;
        height: auto !important;
        min-height: calc(100dvh - 12px) !important;
        box-sizing: border-box !important;
    }

    html body #modalResumoVeiculo .modal-content {
        border-radius: 14px !important;
        height: calc(100dvh - 12px) !important;
        max-height: calc(100dvh - 12px) !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body #modalResumoVeiculo .modal-header {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 12px 14px !important;
        flex-shrink: 0 !important;
    }

    html body #modalResumoVeiculo .modal-header>div:last-child {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        z-index: 3 !important;
    }

    html body #modalResumoVeiculo .modal-header .close {
        width: 28px !important;
        height: 28px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 22px !important;
        line-height: 1 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    html body #modalResumoVeiculo .modal-header .header-info {
        order: 1 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px 8px !important;
        width: 100% !important;
        padding-right: 76px !important;
        box-sizing: border-box !important;
    }

    html body #modalResumoVeiculo .modal-header .placa-badge {
        white-space: nowrap !important;
        font-size: 14px !important;
        padding: 4px 10px !important;
        letter-spacing: 1.5px !important;
        flex: 0 0 auto !important;
    }

    html body #modalResumoVeiculo #btnCapturarTelaModal {
        order: 2 !important;
        align-self: flex-start !important;
        margin: 0 !important;
        font-size: 11.5px !important;
        padding: 5px 12px !important;
        width: auto !important;
    }

    html body #modalResumoVeiculo .modal-body {
        flex: 1 0 auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 12px 10px !important;
        min-height: 360px !important;
    }

    html body #modalResumoVeiculo .modal-body>.row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    html body #modalResumoVeiculo .modal-body>.row>[class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    html body #modalResumoVeiculo .card-section {
        padding: 12px !important;
        margin-bottom: 10px !important;
        border-radius: 10px !important;
    }

    html body #modalResumoVeiculo .card-section .row {
        margin-left: -4px !important;
        margin-right: -4px !important;
    }

    html body #modalResumoVeiculo .card-section .row>[class*="col-"] {
        padding-left: 4px !important;
        padding-right: 4px !important;
        min-width: 0 !important;
    }

    html body #modalResumoVeiculo .card-section .row>.col-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    html body #modalResumoVeiculo .card-section .row>.col-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 8px !important;
    }

    html body #modalResumoVeiculo .info-value {
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    html body #modalResumoVeiculo .semaforo {
        padding: 10px 12px !important;
        gap: 10px !important;
    }

    html body #modalResumoVeiculo .card-section>div[style*="max-height:180px"],
    html body #modalResumoVeiculo .card-section>div[style*="max-height:160px"] {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-height: 240px !important;
    }

    html body #modalResumoVeiculo table.tbl-compact {
        min-width: 480px !important;
        width: 100% !important;
    }

    html body #modalResumoVeiculo table.tbl-compact:has(th:only-child) {
        min-width: 0 !important;
    }

    html body #modalAlertaVeiculoResumo>div {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    html body #modalResumoVeiculo .modal-footer {
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 10px 12px !important;
        flex-shrink: 0 !important;
    }

    html body #modalResumoVeiculo .modal-footer>small {
        width: 100% !important;
        text-align: center !important;
        display: block !important;
        font-size: 11px !important;
        margin: 0 !important;
    }

    html body #modalResumoVeiculo .modal-footer>div {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    html body #modalResumoVeiculo .modal-footer>div>button {
        width: 100% !important;
        margin: 0 !important;
        padding: 8px 8px !important;
        font-size: 12px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    html body #modalResumoVeiculo .modal-footer>div>button:last-child:nth-child(odd) {
        grid-column: 1 / -1 !important;
    }

    /* 8.8.4 CheckoutProdutos (Aba Produtos / Cobertura) & Contraste Global de Botões Claros */
    .checkout-produtos-wrapper>div[style*="display: table"],
    .checkout-produtos-wrapper>div[style*="display:table"],
    .checkout-produtos-wrapper div[style*="vertical-align:top"] {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .checkout-produtos-wrapper form[name="form_search_product"] table,
    .checkout-produtos-wrapper form[name="form_search_product"] tbody,
    .checkout-produtos-wrapper form[name="form_search_product"] tr {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .checkout-produtos-wrapper form[name="form_search_product"] td:first-child:empty {
        display: none !important;
    }

    .checkout-produtos-wrapper form[name="form_search_product"] td:has(input[name="description"]) {
        flex: 1 1 100% !important;
        width: 100% !important;
        display: block !important;
        padding: 0 !important;
    }

    .checkout-produtos-wrapper form[name="form_search_product"] input[name="description"] {
        width: 100% !important;
        min-width: 100% !important;
        height: 36px !important;
        box-sizing: border-box !important;
    }

    .checkout-produtos-wrapper form[name="form_search_product"] td:has(button) {
        flex: 1 1 calc(50% - 4px) !important;
        display: block !important;
        padding: 0 !important;
    }

    .checkout-produtos-wrapper form[name="form_search_product"] button {
        width: 100% !important;
        height: 36px !important;
        justify-content: center !important;
    }

    /* Contraste CSS seguro para botões claros / outline / fc-button */
    body.theme-mode-modern button.btn-light:not([style*="background:#"]):not([style*="background: #"]) i,
    body.theme-mode-modern a.btn-light:not([style*="background:#"]):not([style*="background: #"]) i,
    body.theme-mode-modern button[class*="btn-outline-"]:not(.btn-outline-light) i,
    body.theme-mode-modern a[class*="btn-outline-"]:not(.btn-outline-light) i,
    body.theme-mode-modern .btn-group>.btn:not(.active):not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(:has(i.fa-plus)) i,
    body.theme-mode-modern .btn-group>.btn:not(.active):not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(:has(i.fa-plus)) span[class*="fa"] {
        color: currentColor !important;
    }

    /* 8.8.5 Rodapé de Legendas da Renovação Veicular / Listagens (.legenda-inadimplencia) */
    .legenda-inadimplencia {
        padding: 12px 10px !important;
        margin-top: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .legenda-inadimplencia>div:last-child {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 11.5px !important;
        width: 100% !important;
    }

    .legenda-inadimplencia .label {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 4px 8px !important;
        border-radius: 6px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
        white-space: nowrap !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* ======================================================================
       8.9 RODAPÉS DE AUDITORIA, ASSISTÊNCIA 24H, TARROWSTEP & PAINEL TV
       ====================================================================== */

    /* 8.9.1 Rodapés de auditoria padrão (Criado em / por / Atualizado em / por) */
    .standard-audit-footer,
    .assistencia-audit-footer,
    .evento-pro-audit-footer {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 12px 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .std-audit-group,
    .ast-audit-group,
    .ev-audit-group {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        column-gap: 6px !important;
        row-gap: 4px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .std-audit-divider,
    .ast-audit-divider,
    .ev-audit-divider {
        display: block !important;
        width: 100% !important;
        height: 1px !important;
        margin: 2px 0 !important;
        flex: none !important;
    }

    .std-audit-item,
    .ast-audit-item,
    .ev-audit-item,
    .std-audit-val,
    .std-audit-user,
    .ast-audit-val,
    .ast-audit-user,
    .ev-audit-val,
    .ev-audit-user {
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        max-width: 100% !important;
        line-height: 1.35 !important;
    }

    .std-audit-label,
    .ast-audit-label,
    .ev-audit-label {
        white-space: nowrap !important;
    }

    .std-audit-sep,
    .ast-audit-sep,
    .ev-audit-sep {
        margin: 0 2px !important;
    }

    .std-audit-badge,
    .ast-audit-badge,
    .ev-audit-badge {
        margin-left: 0 !important;
        align-self: flex-start !important;
        max-width: 100% !important;
        flex-wrap: wrap !important;
    }

    /* 8.9.2 Componente TArrowStep (funil / etapas horizontais roláveis) */
    html body .div_arrow_steps {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x !important;
        padding-bottom: 4px !important;
    }

    html body .div_arrow_steps .arrow_steps {
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        min-width: 100% !important;
        width: max-content !important;
        height: 44px !important;
    }

    html body .div_arrow_steps .arrow_steps .step {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        float: none !important;
        width: auto !important;
        flex: 0 0 auto !important;
        min-width: 112px !important;
        max-width: none !important;
        height: 44px !important;
        padding: 6px 14px 6px 24px !important;
        margin: 0 2px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    html body .div_arrow_steps .arrow_steps .step:first-child {
        padding-left: 14px !important;
    }

    html body .div_arrow_steps .arrow_steps .step:before,
    html body .div_arrow_steps .arrow_steps .step:after {
        border-top: 22px solid transparent !important;
        border-bottom: 22px solid transparent !important;
    }

    html body .div_arrow_steps .arrow_steps .step:after {
        border-left-width: 14px !important;
        right: -14px !important;
    }

    html body .div_arrow_steps .arrow_steps .step:before {
        border-left-width: 14px !important;
        left: 0 !important;
    }

    html body .div_arrow_steps .arrow_steps .step span {
        width: auto !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 160px !important;
        display: inline-block !important;
    }

    /* 8.9.3 Painel de Rastreamento e Acompanhamento da Assistência (DadosAssistenciaForm) */
    html body .painel-rastreamento {
        padding: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    html body .rastreamento-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
        padding-bottom: 12px !important;
    }

    html body .rastreamento-title {
        font-size: 13px !important;
        white-space: normal !important;
        line-height: 1.35 !important;
    }

    html body .rastreamento-links {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    html body .btn-rastreamento-link {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 11px !important;
        padding: 7px 8px !important;
        white-space: normal !important;
        line-height: 1.2 !important;
        box-sizing: border-box !important;
    }

    html body .timeline-rastreamento-wrapper {
        padding: 4px 0 8px 0 !important;
        margin: 4px 0 !important;
        overflow: visible !important;
    }

    html body .timeline-track-bg {
        display: none !important;
    }

    html body .painel-rastreamento .timeline-rastreamento {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 14px !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    html body .painel-rastreamento .timeline-item {
        display: grid !important;
        grid-template-columns: 38px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        column-gap: 12px !important;
        row-gap: 2px !important;
        align-items: center !important;
        text-align: left !important;
        flex: none !important;
        width: 100% !important;
        position: relative !important;
    }

    html body .painel-rastreamento .timeline-item:not(:last-child)::after {
        content: "" !important;
        position: absolute !important;
        left: 18px !important;
        top: 38px !important;
        bottom: -16px !important;
        width: 2px !important;
        background: #cbd5e1 !important;
        z-index: 0 !important;
    }

    html body .painel-rastreamento .timeline-item.completed:not(:last-child)::after {
        background: #10b981 !important;
    }

    html body .painel-rastreamento .timeline-icon {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        width: 38px !important;
        height: 38px !important;
        margin: 0 !important;
        font-size: 14px !important;
        position: relative !important;
        z-index: 1 !important;
    }

    html body .painel-rastreamento .timeline-label {
        grid-column: 2 !important;
        grid-row: 1 !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        white-space: normal !important;
        line-height: 1.25 !important;
    }

    html body .painel-rastreamento .timeline-time {
        grid-column: 2 !important;
        grid-row: 2 !important;
        font-size: 11px !important;
    }

    html body .rastreamento-footer-cards {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-top: 14px !important;
        width: 100% !important;
    }

    html body .rastreamento-obs-card,
    html body .rastreamento-avaliacao-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        box-sizing: border-box !important;
        padding: 12px 14px !important;
        margin: 0 !important;
    }

    html body .rastreamento-obs-text {
        white-space: pre-wrap !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    html body .cronometro-container {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 12px !important;
        box-sizing: border-box !important;
    }

    /* 8.9.4 Formulário de Assistência & Modal de Tarefas */
    html body .right-panel>.container-part[page-name="AssistenciaFormView"],
    html body .right-panel>.container-part[page-name="AssistenciaFormView"] .assistencia-view-layout,
    html body #assistencia_timeline_wrapper,
    html body #assistencia_right_column {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 100% !important;
    }

    html body .ast-header-card {
        padding: 14px !important;
        border-radius: 14px !important;
    }

    html body .ast-header-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    html body #btnVisualizarVeiculo,
    html body #btnGerarLancamentoAvulso,
    html body #btnGerarFinanceiroAssistencia,
    html body #btn_buscar_prestador {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        white-space: normal !important;
        line-height: 1.25 !important;
    }

    html body .assist-link-orig-flex {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
    }

    html body .assist-link-orig-flex>* {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    form[name="form_TarefaAssistenciaForm"],
    form[name="form_TarefaEventoProForm"] {
        width: 100% !important;
        max-width: 100% !important;
    }

    html body form[name="form_TarefaAssistenciaForm"] .dados-modelo-tarefa,
    html body form[name="form_TarefaEventoProForm"] .dados-modelo-tarefa,
    html body .dados-modelo-tarefa {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    html body form[name="form_TarefaAssistenciaForm"] .dados-modelo-tarefa .info-item,
    html body form[name="form_TarefaEventoProForm"] .dados-modelo-tarefa .info-item,
    html body .dados-modelo-tarefa .info-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    html body .dados-modelo-tarefa .info-icon {
        width: 36px !important;
        height: 36px !important;
        flex: 0 0 36px !important;
    }

    html body .dados-modelo-tarefa .info-content {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    html body .dados-modelo-tarefa .info-label {
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    html body .dados-modelo-tarefa .info-status {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    html body .dados-modelo-tarefa .btn-info-action,
    html body .dados-modelo-tarefa .btn-info-action.btn-primary {
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 !important;
        flex: 0 0 36px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        margin: 0 !important;
    }

    html body #modal-orientacao-tarefa-evp.tpl-modal-overlay {
        padding: 8px !important;
    }

    html body #modal-orientacao-tarefa-evp .tpl-modal-container {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        border-radius: 14px !important;
    }

    html body #modal-orientacao-tarefa-evp .tpl-modal-header {
        padding: 12px 14px !important;
        gap: 8px !important;
    }

    html body #modal-orientacao-tarefa-evp .tpl-btn-close {
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        height: 32px !important;
        flex: 0 0 32px !important;
        padding: 0 !important;
    }

    form[name="form_TarefaAssistenciaForm"] [data-toggle="buttons"].btn-group,
    form[name="form_TarefaEventoProForm"] [data-toggle="buttons"].btn-group {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
    }

    form[name="form_TarefaAssistenciaForm"] [data-toggle="buttons"].btn-group>.btn,
    form[name="form_TarefaEventoProForm"] [data-toggle="buttons"].btn-group>.btn {
        flex: 1 1 calc(50% - 6px) !important;
        min-width: 100px !important;
        border-radius: 8px !important;
        margin: 0 !important;
        text-align: center !important;
        white-space: normal !important;
    }

    form[name="form_TarefaAssistenciaForm"] .tdate-group,
    form[name="form_TarefaEventoProForm"] .tdate-group {
        width: 100% !important;
        max-width: 100% !important;
    }

    form[name="form_TarefaAssistenciaForm"] .card-footer button,
    form[name="form_TarefaAssistenciaForm"] .panel-footer button,
    form[name="form_TarefaEventoProForm"] .card-footer button,
    form[name="form_TarefaEventoProForm"] .panel-footer button {
        width: 100% !important;
        justify-content: center !important;
    }

    /* 8.9.5 Painel de Monitoramento de Assistências (PainelAssistenciaTvPage) */
    html body #painel-tv-container,
    html body.painel-tv-standalone #painel-tv-container {
        position: relative !important;
        inset: auto !important;
        height: auto !important;
        min-height: 100dvh !important;
        max-height: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px !important;
        gap: 10px !important;
        box-sizing: border-box !important;
    }

    html body #painel-tv-container .painel-tv-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px !important;
    }

    html body #painel-tv-container .painel-tv-title {
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    html body #painel-tv-container .painel-tv-filtros {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }

    html body #painel-tv-container .filtro-grupo {
        width: 100% !important;
        min-width: 0 !important;
    }

    html body #painel-tv-container .filtro-grupo select,
    html body #painel-tv-container .filtro-grupo input {
        width: 100% !important;
        max-width: 100% !important;
    }

    html body #painel-tv-container .painel-tv-config {
        width: 100% !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    html body #painel-tv-container .painel-tv-relogio {
        text-align: left !important;
    }

    html body #painel-tv-container .painel-tv-indicadores {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    html body #painel-tv-container .painel-tv-indicadores .indicador:last-child:nth-child(odd) {
        grid-column: 1 / -1 !important;
    }

    html body #painel-tv-container .painel-tv-main {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    html body #painel-tv-container .painel-tv-mapa-container {
        width: 100% !important;
        flex: none !important;
        min-height: 320px !important;
        height: auto !important;
    }

    html body #painel-tv-container #mapa-assistencias,
    html body #painel-tv-container .painel-tv-mapa {
        min-height: 280px !important;
        height: 280px !important;
        width: 100% !important;
    }

    html body #painel-tv-container .mapa-legenda {
        flex-wrap: wrap !important;
        gap: 6px 10px !important;
        padding: 8px 10px !important;
        justify-content: flex-start !important;
    }

    html body #painel-tv-container .painel-tv-lista-container {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        min-width: 0 !important;
        max-height: 520px !important;
    }

    html body #painel-tv-container .lista-atendimentos {
        max-height: 450px !important;
        overflow-y: auto !important;
    }

    html body #painel-tv-container .atendimento-card {
        padding: 10px 12px !important;
    }

    html body #painel-tv-container .atendimento-card-info,
    html body #painel-tv-container .atendimento-info {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
    }

    html body #painel-tv-container .painel-tv-alertas-bar {
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 8px 12px !important;
        height: auto !important;
    }

    /* ======================================================================
       8.10 TIPOS DE EVENTOS (TAREFAS/CHECKLIST), EVENTO PRO VIEW & LISTAS INTERNAS
       ====================================================================== */

    /* 8.10.1 Cortina lateral (right-panel), EventoProPanelStyleHelper & tabelas embutidas */
    html body #adianti_right_panel.right-panel>.container-part[page-name] {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #adianti_right_panel.right-panel>.container-part[page-name]>.container-fluid {
        padding: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #adianti_right_panel.right-panel>.container-part[page-name] .panel-body,
    html body #adianti_right_panel.right-panel>.container-part[page-name] .card-body {
        padding: 10px 8px !important;
    }

    html body #adianti_right_panel.right-panel>.container-part[page-name] .btn-group:not(.note-btn-group):not(.note-toolbar *):not(.note-editor *):not(.dropdown-menu):not(.bootstrap-select) {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
    }

    html body #adianti_right_panel.right-panel>.container-part[page-name] .btn-group:not(.note-btn-group):not(.note-toolbar *):not(.note-editor *):not(.dropdown-menu):not(.bootstrap-select)>.btn:not(.note-btn):not(.dropdown-toggle) {
        flex: 1 1 calc(50% - 6px) !important;
        min-width: 110px !important;
        height: auto !important;
        min-height: 34px !important;
        white-space: normal !important;
        line-height: 1.25 !important;
    }

    html body #adianti_right_panel [id^="bcontainer_"],
    html body #adianti_right_panel [id^="container_evento_pro_"],
    html body #adianti_right_panel #tarefaModeloEventoProTipoEvento,
    html body #adianti_right_panel #checklistModeloEventoProTipoEventoIntegrado,
    html body #adianti_right_panel .tab-content,
    html body #adianti_right_panel .tab-pane,
    html body #adianti_right_panel form,
    html body #adianti_right_panel .tvbox {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    html body .lmob-table-scroll {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
    }

    html body table.tdatagrid_table td .label[style*="width: 100%"],
    html body table.tdatagrid_table td .label[style*="width:100%"] {
        width: auto !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        display: inline-block !important;
        white-space: nowrap !important;
    }

    /* 8.10.2 EventoProFormView: Fluxo, Cards de Informação & Banner de Participação */
    html body .card-header:has(+ #formView_EventoPro),
    html body .panel-heading:has(+ #formView_EventoPro) {
        padding: 12px 12px !important;
        gap: 8px !important;
    }

    html body .card-header:has(+ #formView_EventoPro) .panel-title,
    html body .panel-heading:has(+ #formView_EventoPro) .panel-title {
        padding-right: 40px !important;
        flex-wrap: wrap !important;
        row-gap: 4px !important;
        line-height: 1.3 !important;
    }

    html body #formView_EventoPro .evento-pro-card-section {
        padding: 12px 12px 14px !important;
        margin-bottom: 12px !important;
        border-radius: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #formView_EventoPro .evento-pro-section-title {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding-bottom: 8px !important;
        margin-bottom: 10px !important;
    }

    html body #formView_EventoPro .evento-pro-section-title-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
    }

    html body #formView_EventoPro .evento-pro-section-title-action:not(.evento-pro-section-circle-action) {
        flex: 1 1 calc(50% - 6px) !important;
        min-width: 120px !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 6px 10px !important;
        white-space: normal !important;
        line-height: 1.25 !important;
    }

    html body #formView_EventoPro .evento-pro-section-circle-action {
        flex: 0 0 32px !important;
        width: 32px !important;
        height: 32px !important;
    }

    html body #formView_EventoPro .evento-pro-info-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }

    html body #formView_EventoPro .evento-pro-info-item {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: auto !important;
        padding: 9px 11px !important;
    }

    html body #formView_EventoPro .evento-pro-info-value,
    html body #formView_EventoPro .evento-pro-info-value a,
    html body #formView_EventoPro .evento-pro-badge,
    html body #formView_EventoPro .evento-pro-flow-list {
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        max-width: 100% !important;
        white-space: normal !important;
    }

    html body #formView_EventoPro .evento-pro-participacao-banner {
        grid-template-columns: 1fr !important;
    }

    html body #formView_EventoPro .evento-pro-participacao-banner-item {
        padding: 10px 12px !important;
    }

    html body #formView_EventoPro .evento-pro-participacao-banner-item+.evento-pro-participacao-banner-item {
        border-left: 0 !important;
        border-top: 1px solid #dcfce7 !important;
    }

    /* 8.10.3 Timeline do Evento & Abas de 2 Níveis */
    html body #evento_pro_timeline_wrapper,
    html body #evento_pro_right_column {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 100% !important;
    }

    html body #container_evento_pro_timeline .timeline-container {
        max-height: 360px !important;
        min-height: 0 !important;
        height: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #container_evento_pro_timeline .timeline-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 10px !important;
    }

    html body #container_evento_pro_timeline .timeline-toolbar-accent,
    html body #container_evento_pro_timeline .timeline-filter-rail {
        width: 100% !important;
        min-width: 0 !important;
    }

    html body #container_evento_pro_timeline .timeline-filter-nav {
        display: none !important;
    }

    html body #container_evento_pro_timeline .timeline-filter-strip {
        touch-action: pan-x !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body #container_evento_pro_timeline .timeline-item {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: none !important;
    }

    html body #container_evento_pro_timeline .timeline-item::after {
        display: none !important;
        content: none !important;
    }

    html body #container_evento_pro_timeline .timeline-row {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    html body #container_evento_pro_timeline .timeline-header {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 10px !important;
    }

    html body #container_evento_pro_timeline .timeline-badge {
        flex: 0 1 auto !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
        padding: 4px 10px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
        max-width: 100% !important;
    }

    html body #container_evento_pro_timeline .timeline-content {
        width: 100% !important;
        flex: 1 1 100% !important;
        padding: 10px 12px !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    html body #container_evento_pro_timeline .timeline-details,
    html body #container_evento_pro_timeline .timeline-tarefa-nome,
    html body #container_evento_pro_timeline .timeline-observacao {
        padding-left: 0 !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    html body #container_evento_pro_timeline .timeline-marker {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        flex: 0 0 32px !important;
        font-size: 13px !important;
    }

    html body #tab_evento_pro_topo .nav-tabs,
    html body #tab_evento_pro_dados_evento .nav-tabs,
    html body #tab_evento_pro_regulacao .nav-tabs,
    html body #tab_evento_pro_analise_tecnica .nav-tabs,
    html body #tab_evento_pro_liquidacao .nav-tabs,
    html body #tab_evento_pro_juridico .nav-tabs,
    html body #tab_TipoEventoTarefaModeloForm .nav-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x !important;
        gap: 4px !important;
    }

    html body #tab_evento_pro_topo .nav-tabs>li,
    html body #tab_evento_pro_dados_evento .nav-tabs>li,
    html body #tab_evento_pro_regulacao .nav-tabs>li,
    html body #tab_evento_pro_analise_tecnica .nav-tabs>li,
    html body #tab_evento_pro_liquidacao .nav-tabs>li,
    html body #tab_evento_pro_juridico .nav-tabs>li,
    html body #tab_TipoEventoTarefaModeloForm .nav-tabs>li {
        flex: 0 0 auto !important;
        float: none !important;
    }

    html body #tab_evento_pro_topo .nav-tabs>li>a,
    html body #tab_evento_pro_dados_evento .nav-tabs>li>a,
    html body #tab_evento_pro_regulacao .nav-tabs>li>a,
    html body #tab_evento_pro_analise_tecnica .nav-tabs>li>a,
    html body #tab_evento_pro_liquidacao .nav-tabs>li>a,
    html body #tab_evento_pro_juridico .nav-tabs>li>a,
    html body #tab_TipoEventoTarefaModeloForm .nav-tabs>li>a {
        white-space: nowrap !important;
        padding: 9px 12px !important;
        font-size: 12.5px !important;
    }

    html body #tab_evento_pro_topo>.panel-body,
    html body #tab_evento_pro_topo>.card-body,
    html body #tab_evento_pro_dados_evento>.panel-body,
    html body #tab_evento_pro_regulacao>.panel-body,
    html body #tab_evento_pro_analise_tecnica>.panel-body,
    html body #tab_evento_pro_liquidacao>.panel-body,
    html body #tab_evento_pro_juridico>.panel-body {
        padding: 8px 4px !important;
    }

    /* 8.10.4 Todas as Listas Internas, KPIs & Galeria de Vistorias */
    html body #formView_EventoPro [id^="container_evento_pro_"] .thbox,
    html body #formView_EventoPro #form_CooparticipacaoEventoProList,
    html body #formView_EventoPro #form_AnaliseCasoEventoProIaList>div>div[data-help-actions] {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        margin-bottom: 10px !important;
        box-sizing: border-box !important;
    }

    html body #formView_EventoPro [id^="container_evento_pro_"] .thbox button:not(.btn-help-info),
    html body #formView_EventoPro [id^="container_evento_pro_"] .thbox a.btn:not(.btn-help-info),
    html body #formView_EventoPro #form_CooparticipacaoEventoProList button:not(.btn-help-info),
    html body #formView_EventoPro #form_AnaliseCasoEventoProIaList button:not(.btn-help-info) {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 34px !important;
        white-space: normal !important;
        line-height: 1.25 !important;
        padding: 6px 12px !important;
    }

    html body #formView_EventoPro div[data-help-actions] {
        margin-left: auto !important;
        flex: 0 0 auto !important;
    }

    html body #formView_EventoPro div[data-help-actions] .btn-help-info,
    html body #formView_EventoPro button.btn-help-info,
    html body #formView_EventoPro a.btn-help-info {
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        flex: 0 0 32px !important;
        border-radius: 50% !important;
        padding: 0 !important;
    }

    /* ChecklistEventoProList toolbar + resumo em 2 colunas (5o card linha cheia) */
    html body #form_ChecklistEventoProList .thbox {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
        grid-template-columns: none !important;
    }

    html body #form_ChecklistEventoProList #evento_pro_checklist_summary {
        order: 3 !important;
        flex: 1 0 100% !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-top: 2px !important;
    }

    html body #form_ChecklistEventoProList #evento_pro_checklist_summary>div:last-child:nth-child(odd) {
        grid-column: 1 / -1 !important;
    }

    /* Resumos KPI inline em todas as listas internas (Rateio, Orcamento, Liquidacao, Terceiros, Parecer, Alcada, Juridico, Processo, Situacoes, Coop, Notif, Analise IA) */
    html body .rateio-indicators-grid,
    html body #formView_EventoPro [id^="container_evento_pro_"] div[style*="grid-template-columns"]:not(#evento_pro_checklist_summary):not(.vep-stats):not(.vep-file-grid) {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }

    /* OrcamentoEventoProList: banner de lote pendente com CTA em largura total */
    html body #formView_EventoPro #container_evento_pro_orcamento div[style*="justify-content:space-between"]>a {
        width: 100% !important;
        justify-content: center !important;
        white-space: normal !important;
        text-align: center !important;
    }

    /* TarefaEventoProList & TarefaModeloEventoProList: barra de totais e grupo de etapa */
    html body .tarefas-totais-bar {
        padding: 10px 12px !important;
        gap: 6px 10px !important;
        justify-content: flex-start !important;
    }

    html body .etapa-group-header {
        padding: 7px 12px !important;
        margin: 6px 0 4px 0 !important;
    }

    /* CooparticipacaoEventoProList: wrapper sem espaco morto mas com rolagem horizontal ativa */
    html body .cooparticipacao-grid-wrapper {
        padding-bottom: 12px !important;
        min-height: 120px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html body .cooparticipacao-grid-wrapper .lmob-table-scroll {
        overflow-x: auto !important;
        overflow-y: visible !important;
        max-width: 100% !important;
    }

    /* VistoriaEventoProList (.vep-*) */
    html body .evento-pro-vistoria-galeria,
    html body .vep-layout,
    html body .vep-sidebar,
    html body .vep-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    html body .vep-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        min-height: 0 !important;
    }

    html body .vep-sidebar,
    html body .vep-content {
        padding: 12px !important;
        border-radius: 12px !important;
    }

    html body .vep-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    html body .vep-toolbar-title {
        font-size: 16px !important;
    }

    html body .vep-toolbar-actions {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    html body .vep-filter-group {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x !important;
        padding-bottom: 2px !important;
        width: 100% !important;
        gap: 6px !important;
    }

    html body .vep-filter-button {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    html body .vep-search-tools {
        width: 100% !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
    }

    html body .vep-search-box {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    html body .vep-stats {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    html body .vep-stat-card {
        padding: 10px 12px !important;
    }

    html body .vep-stat-card:last-child:nth-child(odd) {
        grid-column: 1 / -1 !important;
    }

    html body .vep-pane-actions,
    html body .vep-vistoria-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
    }

    html body .vep-pane-actions>a,
    html body .vep-pane-actions>button,
    html body .vep-vistoria-actions>a,
    html body .vep-vistoria-actions>button {
        width: 100% !important;
        margin-left: 0 !important;
        justify-content: center !important;
        white-space: normal !important;
    }

    html body .vep-vistoria-group {
        padding: 12px !important;
    }

    html body .vep-vistoria-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    html body .vep-file-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    html body .vep-preview-dialog,
    html body .vep-preview-modal.is-pdf .vep-preview-dialog {
        width: calc(100vw - 12px) !important;
        max-width: calc(100vw - 12px) !important;
        margin: 6px auto !important;
        max-height: calc(100dvh - 12px) !important;
        border-radius: 14px !important;
    }

    html body .vep-preview-toolbar {
        min-height: 54px !important;
        padding: 10px 54px 10px 12px !important;
        flex-wrap: wrap !important;
    }

    html body .vep-preview-content,
    html body .vep-preview-modal.is-pdf .vep-preview-content {
        min-height: 240px !important;
        padding: 12px !important;
    }

    html body .vep-preview-modal.is-pdf .vep-preview-content iframe {
        height: 56dvh !important;
    }

    html body .vep-preview-nav {
        width: 36px !important;
        height: 36px !important;
    }

    html body .vep-preview-footer {
        justify-content: stretch !important;
    }

    html body .vep-preview-footer>a,
    html body .vep-preview-footer>button {
        flex: 1 1 calc(50% - 6px) !important;
        justify-content: center !important;
    }

    /* 8.10.5 Modais Modernas do EventoPro (Diagrama do Fluxo & Encerramento/Reabertura) */
    html body #eventopro-fluxo-modal-dialog {
        padding: 0 !important;
    }

    html body #eventopro-fluxo-modal-dialog .evp-fluxo-modal-container,
    html body #eventopro-fluxo-modal-dialog .evp-fluxo-modal-container.is-evp-fullscreen {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
    }

    html body #eventopro-fluxo-modal-dialog .evp-fluxo-modal-header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding: 10px 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #eventopro-fluxo-modal-dialog .evp-fluxo-modal-header-left {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    html body #eventopro-fluxo-modal-dialog .evp-fluxo-modal-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        flex: 0 0 32px !important;
    }

    html body #eventopro-fluxo-modal-dialog .evp-fluxo-modal-header-text {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    html body #eventopro-fluxo-modal-dialog .evp-fluxo-modal-header-text h4 {
        font-size: 13px !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        margin: 0 !important;
    }

    html body #eventopro-fluxo-modal-dialog .evp-fluxo-modal-header-text span {
        display: block !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        margin-top: 2px !important;
    }

    html body #eventopro-fluxo-modal-dialog .evp-fluxo-modal-header-actions {
        flex: 0 0 auto !important;
        margin-left: 4px !important;
    }

    html body #eventopro-fluxo-modal-dialog .evp-fluxo-btn-close {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
        padding: 0 !important;
    }

    html body #eventopro-fluxo-modal-dialog .evp-fluxo-modal-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: auto !important;
    }

    html body .evp-enc-modal-overlay {
        padding: 8px !important;
    }

    html body .evp-enc-modal-container {
        width: 100% !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        border-radius: 14px !important;
    }

    html body .evp-enc-modal-header,
    html body .evp-enc-modal-body,
    html body .evp-enc-modal-footer {
        padding: 12px 14px !important;
    }

    html body .evp-enc-options-grid {
        grid-template-columns: 1fr !important;
    }

    html body .evp-enc-modal-footer {
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    html body .evp-enc-modal-footer>button {
        width: 100% !important;
        justify-content: center !important;
    }

    /* ======================================================================
       8.11 MINHA CONTA (SaasMinhaContaDashboard) & DETALHES DO PLANO (SaasPlanoView)
       ====================================================================== */
    html body .dashboard-header {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 14px !important;
        box-sizing: border-box !important;
    }

    html body .dashboard-header-content {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    html body .dashboard-welcome h1 {
        font-size: 20px !important;
        line-height: 1.25 !important;
        flex-wrap: wrap !important;
    }

    html body .dashboard-welcome p {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    html body .dashboard-header-actions {
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        align-items: center !important;
    }

    html body .dashboard-header-actions .btn-checklist-config,
    html body .dashboard-header-actions .btn-faturas-topo {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        justify-content: center !important;
        padding: 9px 12px !important;
        font-size: 12.5px !important;
        box-sizing: border-box !important;
    }

    /* KPIs superiores: impede estouro de largura com textos longos */
    html body .kpi-resumo-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 16px !important;
        box-sizing: border-box !important;
    }

    html body .kpi-resumo-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 14px !important;
        gap: 12px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    html body .kpi-resumo-card .kpi-icon-wrap {
        width: 42px !important;
        height: 42px !important;
        font-size: 18px !important;
        flex-shrink: 0 !important;
    }

    html body .kpi-resumo-card .kpi-content-wrap {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    html body .kpi-resumo-card .kpi-label {
        font-size: 10.5px !important;
        white-space: normal !important;
    }

    html body .kpi-resumo-card .kpi-valor {
        font-size: 17px !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    html body .kpi-resumo-card .kpi-subtext {
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: break-word !important;
    }

    /* Hero do plano ativo */
    html body .plano-hero {
        padding: 16px !important;
        border-radius: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 16px !important;
        box-sizing: border-box !important;
    }

    html body .plano-hero-content {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
    }

    html body .plano-hero-info {
        flex: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    html body .plano-nome {
        font-size: 20px !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
        word-break: break-word !important;
    }

    html body .plano-detalhes {
        flex-direction: column !important;
        gap: 8px !important;
    }

    html body .plano-detalhe {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    html body .plano-detalhe .valor {
        font-size: 14.5px !important;
    }

    html body .plano-hero-recursos {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        padding: 9px 14px !important;
    }

    html body .plano-hero-saldo-cartao {
        flex: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    html body .saldo-api-card,
    html body .plano-hero-cartao {
        flex: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 14px !important;
        box-sizing: border-box !important;
    }

    html body .saldo-api-valor {
        font-size: 21px !important;
        margin-bottom: 10px !important;
    }

    html body .saldo-api-acoes {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    html body .saldo-api-btn {
        flex: 1 1 calc(50% - 4px) !important;
        justify-content: center !important;
        min-width: 110px !important;
        padding: 8px 10px !important;
        box-sizing: border-box !important;
    }

    /* Alertas, seções, consumo de recursos, faturas e planos disponíveis */
    html body .alerta {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: left !important;
        padding: 14px !important;
        gap: 10px !important;
        box-sizing: border-box !important;
    }

    html body .alerta-action {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    html body .excedente-alert {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 12px 14px !important;
        gap: 6px !important;
    }

    html body .excedente-alert span {
        margin-left: 0 !important;
        display: block !important;
    }

    html body .secao {
        padding: 14px !important;
        border-radius: 12px !important;
        margin-bottom: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    html body .secao-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
    }

    html body .secao-titulo {
        gap: 10px !important;
        align-items: flex-start !important;
        min-width: 0 !important;
    }

    html body .secao-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
    }

    html body .secao-titulo h3 {
        font-size: 16px !important;
        line-height: 1.25 !important;
    }

    html body .secao-titulo p {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    html body .secao-filtro,
    html body #filtro_periodo_container {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    html body .dashboard-consumo-filtros {
        width: 100% !important;
        flex-wrap: wrap !important;
        justify-content: stretch !important;
        gap: 8px !important;
    }

    html body .dashboard-consumo-select,
    html body .dashboard-consumo-pdf {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    html body .recursos-grid,
    html body .faturas-grid,
    html body .planos-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body .recurso-card,
    html body .fatura-card,
    html body .plano-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body .recurso-card,
    html body .fatura-card {
        padding: 14px !important;
    }

    html body .recurso-valores {
        flex-wrap: wrap !important;
        row-gap: 4px !important;
    }

    html body .recurso-valores .valor-atual {
        font-size: 22px !important;
    }

    html body .recurso-valores .badge-excedente {
        margin-left: 0 !important;
    }

    html body .plano-card-header {
        padding: 14px !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        align-items: center !important;
    }

    html body .plano-card-header h4 {
        font-size: 15.5px !important;
        flex: 1 1 140px !important;
        min-width: 0 !important;
        word-break: break-word !important;
    }

    html body .plano-card-header .btn-plano {
        flex: 0 0 auto !important;
        padding: 7px 14px !important;
        font-size: 11.5px !important;
    }

    html body .plano-card-body {
        padding: 14px !important;
    }

    html body .plano-valor-item {
        padding: 9px 12px !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }

    html body .plano-valor-nome {
        font-size: 12.5px !important;
        min-width: 0 !important;
        word-break: break-word !important;
    }

    html body .plano-valor-preco {
        font-size: 14.5px !important;
        white-space: nowrap !important;
    }

    html body .plano-resumo-item {
        align-items: flex-start !important;
        font-size: 12px !important;
        word-break: break-word !important;
    }

    html body .plano-resumo-item i {
        margin-top: 2px !important;
    }

    html body .plano-card-footer {
        padding: 12px 14px !important;
    }

    html body .plano-saiba-mais {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px 12px !important;
    }

    /* Modal Detalhes do Plano (#modal-saas-plano-detalhe em SaasPlanoView) */
    html body #modal-saas-plano-detalhe.spv-modal-overlay {
        padding: 0 !important;
        align-items: stretch !important;
        justify-content: stretch !important;
    }

    html body #modal-saas-plano-detalhe .spv-modal-container {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    html body #modal-saas-plano-detalhe .spv-header {
        position: relative !important;
        padding: 12px 14px 10px !important;
        gap: 0 !important;
        align-items: flex-start !important;
        flex-wrap: nowrap !important;
    }

    html body #modal-saas-plano-detalhe .spv-header-left {
        display: grid !important;
        grid-template-columns: 34px minmax(0, 1fr) !important;
        column-gap: 10px !important;
        row-gap: 2px !important;
        align-items: center !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    html body #modal-saas-plano-detalhe .spv-header-left>div:last-child {
        display: contents !important;
    }

    html body #modal-saas-plano-detalhe .spv-header-icon {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
        width: 34px !important;
        height: 34px !important;
        border-radius: 9px !important;
        font-size: 15px !important;
        align-self: start !important;
    }

    html body #modal-saas-plano-detalhe .spv-header-badge {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: start !important;
        max-width: calc(100% - 72px) !important;
        margin-bottom: 0 !important;
    }

    html body #modal-saas-plano-detalhe .spv-badge-active,
    html body #modal-saas-plano-detalhe .spv-badge-catalog {
        font-size: 9.5px !important;
        padding: 2px 7px !important;
        max-width: 100% !important;
        white-space: normal !important;
        line-height: 1.25 !important;
    }

    html body #modal-saas-plano-detalhe .spv-header-title {
        grid-column: 2 !important;
        grid-row: 2 !important;
        padding-right: 72px !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        word-break: break-word !important;
    }

    html body #modal-saas-plano-detalhe .spv-header-subtitle {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        margin-top: 5px !important;
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        max-width: 100% !important;
        word-break: break-word !important;
    }

    html body #modal-saas-plano-detalhe .spv-header>div:last-child {
        position: absolute !important;
        top: 10px !important;
        right: 12px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
        z-index: 5 !important;
    }

    html body #modal-saas-plano-detalhe .spv-header .btn-help-info {
        position: static !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        margin: 0 !important;
    }

    html body #modal-saas-plano-detalhe .spv-btn-close {
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
    }

    html body #modal-saas-plano-detalhe .spv-split-grid {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body #modal-saas-plano-detalhe .spv-col-left,
    html body #modal-saas-plano-detalhe .spv-col-right {
        display: block !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
        border-right: none !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-plano-detalhe .spv-col-left {
        border-bottom: 1px solid #e2e8f0 !important;
    }

    html body #modal-saas-plano-detalhe .spv-col-scroll {
        overflow: visible !important;
        height: auto !important;
        padding: 14px !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-plano-detalhe .spv-secao {
        margin-bottom: 16px !important;
    }

    html body #modal-saas-plano-detalhe .spv-secao-header-row {
        flex-wrap: wrap !important;
        gap: 6px !important;
        align-items: center !important;
    }

    html body #modal-saas-plano-detalhe .spv-secao-title {
        font-size: 12px !important;
        flex-wrap: wrap !important;
    }

    html body #modal-saas-plano-detalhe .spv-core-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    html body #modal-saas-plano-detalhe .spv-core-card {
        padding: 12px 10px !important;
        border-radius: 12px !important;
        min-width: 0 !important;
    }

    html body #modal-saas-plano-detalhe .spv-core-icon {
        font-size: 18px !important;
        margin-bottom: 4px !important;
    }

    html body #modal-saas-plano-detalhe .spv-core-val {
        font-size: 17px !important;
        word-break: break-word !important;
    }

    html body #modal-saas-plano-detalhe .spv-core-lbl {
        font-size: 10px !important;
    }

    html body #modal-saas-plano-detalhe .spv-valor-card {
        padding: 12px !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

    html body #modal-saas-plano-detalhe .spv-valor-info {
        min-width: 0 !important;
        flex: 1 1 140px !important;
    }

    html body #modal-saas-plano-detalhe .spv-valor-preco {
        font-size: 15.5px !important;
        white-space: nowrap !important;
    }

    html body #modal-saas-plano-detalhe .spv-action-box {
        margin-top: 14px !important;
    }

    html body #modal-saas-plano-detalhe .spv-btn-contratar {
        padding: 12px 14px !important;
        font-size: 13px !important;
    }

    html body #modal-saas-plano-detalhe .spv-modulo-card {
        padding: 12px 14px !important;
        border-radius: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    html body #modal-saas-plano-detalhe .spv-modulo-top {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    html body #modal-saas-plano-detalhe .spv-modulo-nome {
        font-size: 13.5px !important;
        word-break: break-word !important;
    }

    html body #modal-saas-plano-detalhe .spv-modulo-recurso {
        font-size: 11.5px !important;
        word-break: break-word !important;
    }

    html body #modal-saas-plano-detalhe .spv-modulo-limite-pill {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 7px 10px !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-plano-detalhe .spv-pill-val {
        font-size: 14.5px !important;
    }

    html body #modal-saas-plano-detalhe .spv-progressivo-box {
        padding: 10px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body #modal-saas-plano-detalhe .spv-prog-table {
        min-width: 240px !important;
        font-size: 11px !important;
    }

    html body #modal-saas-plano-detalhe .spv-prog-table th,
    html body #modal-saas-plano-detalhe .spv-prog-table td {
        padding: 6px 8px !important;
        white-space: nowrap !important;
    }

    html body #modal-saas-plano-detalhe .spv-ia-kpis {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    html body #modal-saas-plano-detalhe .spv-btn-ia-view {
        width: 100% !important;
        justify-content: center !important;
        padding: 9px 12px !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-plano-detalhe .spv-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    }

    html body #modal-saas-plano-detalhe .spv-footer-info {
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        align-items: flex-start !important;
    }

    html body #modal-saas-plano-detalhe .spv-footer-info i {
        margin-top: 2px !important;
        flex-shrink: 0 !important;
    }

    html body #modal-saas-plano-detalhe .spv-btn-modal-close {
        width: 100% !important;
        padding: 10px 16px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* ======================================================================
       8.12 DADOS DA EMPRESA, DASHBOARD DA UNIDADE, GUIA PIPELINE, AUTOMAÇÃO & TEMPLATE BUILDER
       ====================================================================== */

    /* 8.12.1 Dados da Empresa (EmpresaForm: CNPJ/CEP/UF/Cidade e botões S3/Financeiro/E-mail) */
    html body .empresa-input-wrapper {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        flex-wrap: nowrap !important;
        box-sizing: border-box !important;
    }

    html body .empresa-input-wrapper>input.tfield,
    html body .empresa-input-wrapper>select.tcombo,
    html body .empresa-input-wrapper>.select2-container {
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    html body .empresa-input-wrapper>button.btn,
    html body .empresa-input-wrapper>a.btn {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 38px !important;
        max-width: 112px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 12px !important;
        margin: 0 !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        box-sizing: border-box !important;
    }

    html body .empresa-input-wrapper>button[name="button_"],
    html body .empresa-input-wrapper>button[name="button_1"] {
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        padding: 0 !important;
    }

    html body #form_EmpresaForm #wrap-configurar-s3,
    html body #form_EmpresaForm div:has(> button[name="btnConfigFinanceira"]) {
        width: 100% !important;
        margin-left: 0 !important;
        display: flex !important;
    }

    html body #form_EmpresaForm button[name="btnConfigS3"],
    html body #form_EmpresaForm button[name="btnConfigFinanceira"],
    html body #form_EmpresaForm button[name="button_testar_envio_de_e_mail"] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 38px !important;
        padding: 8px 14px !important;
        white-space: normal !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* 8.12.2 Dashboard da Unidade (EmpresaSaldoApiDashboard) */
    html body .empresa-saldo-dashboard {
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    html body .empresa-saldo-header {
        padding: 14px !important;
        gap: 12px !important;
        margin-bottom: 14px !important;
        border-radius: 12px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        box-sizing: border-box !important;
    }

    html body .empresa-saldo-header h1 {
        font-size: 17px !important;
        line-height: 1.25 !important;
        flex-wrap: wrap !important;
    }

    html body .empresa-saldo-header p {
        font-size: 12.5px !important;
        row-gap: 6px !important;
    }

    html body .empresa-saldo-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    html body .empresa-saldo-btn,
    html body .empresa-saldo-actions .empresa-saldo-btn {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 38px !important;
        padding: 9px 14px !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    html body .empresa-saldo-cards,
    html body .empresa-saldo-resumo {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body .empresa-saldo-card,
    html body .empresa-saldo-recurso {
        padding: 14px !important;
        border-radius: 12px !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    html body .empresa-saldo-card-head {
        gap: 10px !important;
        align-items: flex-start !important;
    }

    html body .empresa-saldo-card-value {
        font-size: 20px !important;
        word-break: break-word !important;
    }

    html body .empresa-saldo-card-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    html body .empresa-saldo-alert {
        padding: 12px 14px !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
        box-sizing: border-box !important;
    }

    html body .empresa-saldo-panel {
        padding: 14px !important;
        border-radius: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body .empresa-saldo-panel-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
        padding-bottom: 12px !important;
    }

    html body .empresa-saldo-panel-header h2 {
        font-size: 15px !important;
        flex-wrap: wrap !important;
    }

    html body .empresa-saldo-periodo {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    html body .empresa-saldo-periodo select {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 38px !important;
        box-sizing: border-box !important;
    }

    html body .empresa-saldo-recurso-top {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    html body .empresa-saldo-recurso-value {
        font-size: 18px !important;
    }

    /* 8.12.3 Guia de Tipos de Lançamento da Pipeline (TipoLancamentoPipelineForm) */
    html body #guia-tipos-lancamento-pipeline {
        padding: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    html body #guia-tipos-lancamento-pipeline>div {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #guia-tipos-lancamento-pipeline>div:nth-child(2) {
        padding: 10px 12px !important;
    }

    html body #guia-tipos-lancamento-pipeline>div:nth-child(2)>div:first-child {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    html body #guia-tipos-lancamento-pipeline [style*="grid-template-columns"] {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html body #guia-tipos-lancamento-pipeline [style*="grid-template-columns"]>div {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-break: break-word !important;
    }

    html body #guia-tipos-lancamento-pipeline span {
        max-width: 100% !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    html body #guia-tipos-lancamento-pipeline>div:last-child {
        align-items: flex-start !important;
        padding: 10px !important;
    }

    /* 8.12.4 Automação de Pipeline (#pa-app em PipelineAutomacaoForm) */
    html body #pa-app .pa-form-wrapper {
        padding: 0 10px 18px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    html body #pa-app .pa-header {
        padding: 12px !important;
        margin: 0 -10px 12px -10px !important;
    }

    html body #pa-app .pa-header-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    html body #pa-app .pa-header-title {
        font-size: 16px !important;
        flex-wrap: wrap !important;
    }

    html body #pa-app .pa-btn-group {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
    }

    html body #pa-app .pa-btn-group .pa-btn {
        flex: 1 1 auto !important;
        justify-content: center !important;
        padding: 8px 12px !important;
    }

    html body #pa-app .pa-tabs-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 2px 10px !important;
        margin: 0 0 14px 0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    html body #pa-app .pa-tabs-nav::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    html body #pa-app .pa-tab-btn {
        flex: 0 0 auto !important;
        width: auto !important;
        white-space: nowrap !important;
        margin: 0 !important;
        padding: 7px 12px !important;
        font-size: 12.5px !important;
        line-height: 1.2 !important;
        border-radius: 999px !important;
        border: 1px solid #e2e8f0 !important;
        background: #f8fafc !important;
        color: #475569 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        box-sizing: border-box !important;
    }

    html body #pa-app .pa-tab-btn.active {
        background: #eff6ff !important;
        border-color: #3b82f6 !important;
        color: #1d4ed8 !important;
        font-weight: 700 !important;
    }

    html body #pa-app .pa-col-3,
    html body #pa-app .pa-col-4,
    html body #pa-app .pa-col-6,
    html body #pa-app .pa-col-8,
    html body #pa-app .pa-col-9 {
        flex: 0 0 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    html body #pa-app .pa-item-card {
        padding: 12px !important;
    }

    html body #pa-app .pa-item-fields {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    html body #pa-app .pa-item-field {
        min-width: 0 !important;
        width: 100% !important;
    }

    html body #pa-app .pa-tags-input {
        min-width: 100px !important;
    }

    html body #pa-app .pa-callout {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }

    /* 8.12.5 Template Builder (#templatepro-app em TemplateProForm) */
    html body #templatepro-app,
    html body .templatepro-form-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    html body #templatepro-app .tp-header {
        padding: 12px !important;
        margin-bottom: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #templatepro-app .tp-header-row1 {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 10px !important;
    }

    html body #templatepro-app .tp-header-h1 {
        font-size: 17px !important;
        flex-wrap: wrap !important;
        row-gap: 4px !important;
    }

    html body #templatepro-app .tp-btn-group {
        margin-left: 0 !important;
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        align-items: center !important;
    }

    html body #templatepro-app .tp-btn-group .tp-btn {
        flex: 1 1 auto !important;
        min-width: 90px !important;
        justify-content: center !important;
        padding: 7px 10px !important;
        font-size: 12px !important;
        height: 36px !important;
        box-sizing: border-box !important;
    }

    html body #templatepro-app .tp-btn-group .btn-help-info {
        flex: 0 0 32px !important;
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
    }

    html body #templatepro-app .tp-header-row2 {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px !important;
        margin-top: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #templatepro-app .tp-title-group,
    html body #templatepro-app .tp-header-row2 .tp-field-group,
    html body #templatepro-app .tp-header-row2 .tp-field-grow,
    html body #templatepro-app .tp-header-row2 .tp-field-narrow {
        flex: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #templatepro-app .tp-title-input,
    html body #templatepro-app #tp_modulo,
    html body #templatepro-app .tp-select {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #templatepro-app .tp-pills-wrap {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    html body #templatepro-app .tp-pill {
        justify-content: center !important;
        width: 100% !important;
        padding: 7px 8px !important;
        box-sizing: border-box !important;
    }

    html body #templatepro-app .tp-header-config {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #templatepro-app .tp-header-config .tp-field-group {
        flex: 1 1 130px !important;
        width: auto !important;
        min-width: 0 !important;
    }

    html body #templatepro-app .tp-radio-pills {
        width: 100% !important;
        display: flex !important;
    }

    html body #templatepro-app .tp-rpill {
        flex: 1 1 0% !important;
        justify-content: center !important;
        padding: 6px 8px !important;
        font-size: 11.5px !important;
        white-space: nowrap !important;
    }

    html body #templatepro-app .tp-main-row {
        flex-direction: column !important;
        min-height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html body #templatepro-app .tp-editor-area {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    html body #templatepro-app .tp-sidebar-left {
        order: 2 !important;
    }

    html body #templatepro-app .tp-sidebar-right {
        order: 3 !important;
    }

    html body #templatepro-app .tp-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        border-right: none !important;
        border-left: none !important;
        border-top: 1px solid #e2e8f0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        box-sizing: border-box !important;
    }

    html body #templatepro-app .tp-sidebar-body {
        max-height: 240px !important;
        overflow-y: auto !important;
    }

    html body #templatepro-app .tp-sidebar-expand-tab {
        display: none !important;
    }

    html body #templatepro-app .tp-tabs-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 6px 10px 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #templatepro-app .tp-tabs-nav::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    html body #templatepro-app .tp-tab-btn {
        flex: 0 0 auto !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        margin-bottom: 0 !important;
    }

    html body #templatepro-app .tp-tab-panel {
        padding: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #templatepro-app .tp-tab-panel .note-editor {
        overflow: visible !important;
        max-width: 100% !important;
    }

    html body #templatepro-app .tp-htmleditor,
    html body #templatepro-app .note-editable {
        min-height: 240px !important;
    }

    html body #templatepro-app .tp-editor-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    html body #templatepro-app .tp-toolbar-actions {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    html body #templatepro-app .tp-toolbar-actions .tp-btn,
    html body #templatepro-app .tp-editor-toolbar>.tp-btn {
        flex: 1 1 0% !important;
        justify-content: center !important;
    }

    html body #templatepro-app .tp-waba-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    html body #templatepro-app .tp-waba-section,
    html body #templatepro-app .tp-normal-section {
        padding: 12px !important;
        box-sizing: border-box !important;
    }

    html body #templatepro-app .tp-waba-btn-item,
    html body #templatepro-app .tp-media-upload-row,
    html body #templatepro-app .tp-carousel-img-upload,
    html body #templatepro-app .tp-menu-row-item,
    html body #templatepro-app .tp-carousel-card-btn-item {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    html body #templatepro-app .tp-waba-btn-item select,
    html body #templatepro-app .tp-waba-btn-item input,
    html body #templatepro-app .tp-carousel-card-btn-item select,
    html body #templatepro-app .tp-carousel-card-btn-item input {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 100% !important;
    }

    html body #templatepro-app .tp-wa-preview-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    html body #templatepro-app .tp-wa-device-switch {
        width: 100% !important;
        display: flex !important;
    }

    html body #templatepro-app .tp-wa-device-btn {
        flex: 1 1 0% !important;
        justify-content: center !important;
        padding: 6px 6px !important;
        font-size: 11px !important;
    }

    html body #templatepro-app .tp-wa-preview-stage {
        padding: 10px !important;
        overflow-x: auto !important;
    }

    html body #templatepro-app .tp-wa-device-frame {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    html body #templatepro-app .tp-capa-upload {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    html body #templatepro-app .tp-capa-upload input[type="file"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px !important;
        font-size: 12px !important;
        box-sizing: border-box !important;
    }

    html body #templatepro-app .tp-capa-current {
        flex-direction: column !important;
        align-items: flex-start !important;
        word-break: break-all !important;
    }

    html body #templatepro-app .tp-capa-preview-area img {
        max-width: 100% !important;
        height: auto !important;
    }

    html body .tp-premium-modal {
        padding: 8px !important;
    }

    html body .tp-premium-modal-content {
        width: 100% !important;
        max-width: calc(100vw - 16px) !important;
        max-height: 92dvh !important;
    }

    html body .tp-confirm-toast {
        left: 10px !important;
        right: 10px !important;
        max-width: calc(100vw - 20px) !important;
    }

    /* ======================================================================
       8.13 MEUS DOCUMENTOS (SystemDocumentList)
       ====================================================================== */
    html body .doc-wrapper {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    html body .doc-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 12px !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    html body .doc-sidebar-header {
        margin-bottom: 4px !important;
        font-size: 14px !important;
    }

    html body .doc-btn-upload,
    html body .doc-btn-text-file {
        width: 100% !important;
        padding: 9px 12px !important;
        font-size: 13px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    html body .doc-nav-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 2px 0 4px !important;
        margin: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    html body .doc-nav-list::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    html body .doc-nav-list>li {
        flex: 0 0 auto !important;
    }

    html body .doc-nav-item {
        padding: 7px 12px !important;
        border-radius: 999px !important;
        border: 1px solid #e2e8f0 !important;
        background: #ffffff !important;
        gap: 8px !important;
        white-space: nowrap !important;
        font-size: 12.5px !important;
    }

    html body .doc-nav-item.active {
        background: #2563eb !important;
        border-color: #2563eb !important;
        color: #ffffff !important;
    }

    html body .doc-nav-item-left {
        gap: 6px !important;
    }

    html body .doc-sidebar-footer {
        margin-top: 4px !important;
        padding-top: 10px !important;
        border-top: 1px solid #e2e8f0 !important;
    }

    html body .doc-s3-card-header {
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    html body .doc-s3-card-body {
        padding: 8px 10px 10px !important;
    }

    html body .doc-s3-feature {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    html body .doc-s3-feature-btn {
        width: auto !important;
        flex: 0 0 auto !important;
    }

    html body .doc-main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 14px 12px !important;
        box-sizing: border-box !important;
    }

    html body .doc-topbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    html body .doc-main-title {
        font-size: 18px !important;
        line-height: 1.25 !important;
        word-break: break-word !important;
    }

    html body .doc-top-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html body .doc-top-actions>div:first-child {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
        box-sizing: border-box !important;
    }

    html body .doc-search-wrap {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    html body .doc-top-actions .doc-btn-secondary,
    html body .doc-top-actions .doc-btn-primary {
        flex: 1 1 calc(50% - 4px) !important;
        width: auto !important;
        min-width: 110px !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 36px !important;
        padding: 7px 10px !important;
        font-size: 12px !important;
        justify-content: center !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    html body .doc-top-actions>span[data-help-actions] {
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }

    html body .doc-breadcrumbs {
        flex-wrap: wrap !important;
        gap: 6px !important;
        font-size: 12.5px !important;
        margin-bottom: 14px !important;
        padding-bottom: 10px !important;
    }

    html body .doc-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body .doc-card-folder,
    html body .doc-card-file {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 68px !important;
        padding: 10px 44px 10px 12px !important;
        box-sizing: border-box !important;
    }

    html body .doc-card-back {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 48px !important;
        padding: 10px 14px !important;
        box-sizing: border-box !important;
    }

    html body .doc-card-menu-btn {
        opacity: 1 !important;
        top: 50% !important;
        right: 8px !important;
        transform: translateY(-50%) !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
    }

    html body .doc-card-fav-star {
        opacity: 0.7 !important;
        width: 24px !important;
        height: 24px !important;
    }

    html body .doc-empty-state {
        padding: 28px 14px !important;
    }

    html body .doc-modal-overlay {
        padding: 8px !important;
    }

    html body .doc-modal-overlay:has(.preview-modal),
    html body .doc-modal-overlay:has(.preview-modal-dark) {
        padding: 0 !important;
    }

    html body .doc-modal-card,
    html body .doc-modal-card.large {
        width: 100% !important;
        max-width: calc(100vw - 16px) !important;
        max-height: 92dvh !important;
        display: flex !important;
        flex-direction: column !important;
    }

    html body .doc-modal-card.preview-modal,
    html body .doc-modal-card.preview-modal-dark {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
    }

    html body .doc-modal-card.preview-modal .doc-modal-body,
    html body .doc-modal-card.preview-modal iframe {
        height: auto !important;
        max-height: none !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
    }

    html body .doc-modal-header {
        padding: 12px 14px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    html body .doc-modal-title {
        font-size: 14.5px !important;
        min-width: 0 !important;
        flex: 1 1 140px !important;
        word-break: break-word !important;
    }

    html body .doc-modal-body {
        padding: 14px !important;
        flex: 1 1 auto !important;
        max-height: none !important;
    }

    html body .doc-modal-footer {
        padding: 12px 14px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    html body .doc-modal-footer>button,
    html body .doc-modal-footer>a {
        flex: 1 1 auto !important;
        justify-content: center !important;
    }

    html body .doc-preview-dark-header {
        padding: 10px 12px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    html body .doc-preview-title {
        max-width: 100% !important;
    }

    html body .doc-preview-toolbar-actions {
        width: 100% !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 6px !important;
    }

    html body .doc-preview-zoom-group {
        flex: 1 1 auto !important;
        justify-content: center !important;
    }

    html body .doc-audio-stage-card {
        padding: 20px 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    html body .doc-prop-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    html body .doc-prop-box.full {
        grid-column: span 1 !important;
    }

    html body .doc-url-input-wrap {
        flex-wrap: wrap !important;
    }

    html body .doc-url-input {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    html body .doc-btn-copy-url {
        flex: 1 1 auto !important;
        justify-content: center !important;
    }

    html body .doc-upload-queue-item {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    html body #doc-context-menu {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        max-height: 76dvh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 18px 18px 0 0 !important;
        border: 1px solid #e2e8f0 !important;
        border-bottom: none !important;
        padding: 10px 12px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.28) !important;
        box-sizing: border-box !important;
    }

    html body #doc-context-menu::before {
        content: "" !important;
        display: block !important;
        width: 38px !important;
        height: 4px !important;
        border-radius: 999px !important;
        background: #cbd5e1 !important;
        margin: 2px auto 10px !important;
    }

    html body #doc-context-menu>a {
        padding: 12px 14px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
        gap: 12px !important;
        min-height: 44px !important;
        box-sizing: border-box !important;
    }

    html body #doc-context-menu>a:active {
        background: #f1f5f9 !important;
    }

    html body #doc-context-menu>a i {
        width: 18px !important;
        text-align: center !important;
        font-size: 15px !important;
        flex-shrink: 0 !important;
    }

    html body #doc-context-menu>hr {
        margin: 6px 4px !important;
        border-top: 1px solid #e2e8f0 !important;
    }

    /* ======================================================================
       8.14 MODAIS DO PARCEIRO SAAS (Sub-representante, Novo Cliente & Cliente 360)
       ====================================================================== */
    html body #modal-saas-parceiro-sub-rep.cmodal-overlay {
        padding: 8px !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    html body #modal-saas-parceiro-sub-rep>div {
        width: 100% !important;
        max-width: calc(100vw - 16px) !important;
        max-height: 92dvh !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-parceiro-sub-rep>div>div:first-child {
        flex-shrink: 0 !important;
        padding: 12px 14px !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }

    html body #modal-saas-parceiro-sub-rep #form-parceiro-sub-rep {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 14px !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-parceiro-sub-rep label {
        white-space: normal !important;
        word-break: break-word !important;
    }

    html body #modal-saas-parceiro-sub-rep>div>div:last-child {
        flex-shrink: 0 !important;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-parceiro-sub-rep>div>div:last-child>button {
        flex: 1 1 auto !important;
        justify-content: center !important;
        text-align: center !important;
        min-height: 38px !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-parceiro-novo-cliente.cmodal-overlay,
    html body #modal-saas-parceiro-cliente-360.cmodal-overlay {
        padding: 0 !important;
    }

    html body #modal-saas-parceiro-novo-cliente .spnc-dialog,
    html body #modal-saas-parceiro-cliente-360>div {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    html body #modal-saas-parceiro-novo-cliente .spnc-header {
        padding: 12px 14px !important;
        gap: 8px !important;
    }

    html body #modal-saas-parceiro-novo-cliente .spnc-left,
    html body #modal-saas-parceiro-novo-cliente .spnc-right {
        padding: 14px !important;
    }

    html body #modal-saas-parceiro-novo-cliente .spnc-footer {
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    html body #modal-saas-parceiro-novo-cliente .spnc-footer>button {
        flex: 1 1 auto !important;
        justify-content: center !important;
    }

    /* ======================================================================
       8.15 SIMULADOR DE PLANOS & CAPACIDADE VPS (SaasSimuladorPlanoView)
       ====================================================================== */
    html body #saas-simulador-plano-root {
        padding: 8px 6px 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    html body #saas-simulador-plano-root .sim-top-banner {
        position: relative !important;
        padding: 12px !important;
        gap: 10px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #saas-simulador-plano-root .sim-top-banner-left {
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding-right: 40px !important;
        box-sizing: border-box !important;
    }

    html body #saas-simulador-plano-root .sim-top-banner-left>div:not(.sim-banner-icon) {
        min-width: 0 !important;
        flex: 1 1 0% !important;
    }

    html body #saas-simulador-plano-root .sim-banner-icon {
        flex: 0 0 36px !important;
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
        font-size: 15px !important;
        margin-top: 2px !important;
    }

    html body #saas-simulador-plano-root .sim-banner-badge {
        font-size: 9.5px !important;
        line-height: 1.3 !important;
        margin-bottom: 2px !important;
    }

    html body #saas-simulador-plano-root .sim-banner-title {
        font-size: 15.5px !important;
        line-height: 1.22 !important;
        word-break: break-word !important;
    }

    html body #saas-simulador-plano-root .sim-banner-sub {
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        margin-top: 4px !important;
    }

    html body #saas-simulador-plano-root .sim-top-banner-actions {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        min-width: 0 !important;
    }

    html body #saas-simulador-plano-root .sim-audit-select-wrap {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    html body #saas-simulador-plano-root .sim-select-audit {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 38px !important;
        box-sizing: border-box !important;
    }

    html body #saas-simulador-plano-root .sim-action-btns {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
    }

    html body.theme-mode-modern #saas-simulador-plano-root button.btn-sim-action,
    html body #saas-simulador-plano-root button.btn-sim-action {
        flex: 1 1 calc(50% - 4px) !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 38px !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: normal !important;
        line-height: 1.25 !important;
        box-sizing: border-box !important;
    }

    html body.theme-mode-modern #saas-simulador-plano-root button.btn-sim-action.btn-sim-create,
    html body #saas-simulador-plano-root button.btn-sim-action.btn-sim-create {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 40px !important;
        padding: 9px 12px !important;
    }

    html body.theme-mode-modern #saas-simulador-plano-root button.btn-sim-action.btn-sim-help.btn-help-info,
    html body #saas-simulador-plano-root button.btn-sim-action.btn-sim-help.btn-help-info {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        flex: 0 0 auto !important;
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        aspect-ratio: 1 / 1 !important;
        gap: 0 !important;
        align-self: auto !important;
        justify-content: center !important;
        z-index: 3 !important;
    }

    html body.theme-mode-modern #saas-simulador-plano-root button.btn-sim-action.btn-sim-help.btn-help-info span,
    html body #saas-simulador-plano-root button.btn-sim-action.btn-sim-help.btn-help-info span {
        display: none !important;
    }

    html body #saas-simulador-plano-root .sim-presets-bar {
        padding: 12px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #saas-simulador-plano-root .sim-presets-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        width: 100% !important;
    }

    html body.theme-mode-modern #saas-simulador-plano-root button.sim-preset-pill,
    html body #saas-simulador-plano-root button.sim-preset-pill {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 8px 12px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        box-sizing: border-box !important;
    }

    html body #saas-simulador-plano-root .sim-main-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html body #saas-simulador-plano-root .sim-col-left,
    html body #saas-simulador-plano-root .sim-col-right {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    html body #saas-simulador-plano-root .sim-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #saas-simulador-plano-root .sim-card-header {
        padding: 10px 12px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    html body #saas-simulador-plano-root .sim-card-title-wrap {
        min-width: 0 !important;
        flex: 1 1 0% !important;
        align-items: flex-start !important;
    }

    html body #saas-simulador-plano-root .sim-card-title {
        font-size: 13px !important;
        flex-wrap: wrap !important;
        word-break: break-word !important;
    }

    html body #saas-simulador-plano-root .sim-card-body {
        padding: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #saas-simulador-plano-root .sim-fields-grid-3,
    html body #saas-simulador-plano-root .sim-fields-grid-2 {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    html body #saas-simulador-plano-root .sim-field-group,
    html body #saas-simulador-plano-root .sim-input {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #saas-simulador-plano-root .sim-vert-presets {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    html body.theme-mode-modern #saas-simulador-plano-root button.sim-vert-btn,
    html body #saas-simulador-plano-root button.sim-vert-btn {
        flex: 1 1 auto !important;
        justify-content: center !important;
        padding: 6px 8px !important;
    }

    html body #saas-simulador-plano-root .sim-modules-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        max-height: 300px !important;
    }

    html body #saas-simulador-plano-root .sim-module-item {
        width: 100% !important;
        gap: 6px !important;
        padding: 8px !important;
        box-sizing: border-box !important;
    }

    html body #saas-simulador-plano-root .sim-mod-metrics {
        white-space: normal !important;
        word-break: break-word !important;
    }

    html body #saas-simulador-plano-root .sim-kpi-grid-4,
    html body #saas-simulador-plano-root .sim-two-subcards {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
    }

    html body #saas-simulador-plano-root .sim-kpi-card {
        padding: 12px 14px !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #saas-simulador-plano-root .sim-kpi-val {
        font-size: 19px !important;
        word-break: break-word !important;
    }

    html body #saas-simulador-plano-root .sim-bar-top {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        font-size: 11.5px !important;
    }

    html body #saas-simulador-plano-root .sim-card-body:has(> .sim-table-compact),
    html body #saas-simulador-plano-root .sim-card-body:has(> .sim-table-full) {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: 100% !important;
    }

    html body #saas-simulador-plano-root .sim-table-compact {
        min-width: 300px !important;
        font-size: 11.5px !important;
    }

    html body #saas-simulador-plano-root .sim-table-full {
        min-width: 680px !important;
        font-size: 11.5px !important;
    }

    html body #saas-simulador-plano-root .sim-table-full th,
    html body #saas-simulador-plano-root .sim-table-full td {
        white-space: nowrap !important;
        padding: 7px 8px !important;
    }

    html body #sim-floating-tooltip {
        max-width: calc(100vw - 24px) !important;
    }

    /* ======================================================================
       8.16 CONFIGURAÇÕES DO SAAS & PROTEÇÃO GLOBAL DE INPUT + BOTÃO INLINE
       ====================================================================== */
    html body div[style*="display: flex" i]:has(> input.tfield, > input.form-control, > select.tcombo, > .select2-container):has(> button.btn, > a.btn),
    html body div[style*="display:flex" i]:has(> input.tfield, > input.form-control, > select.tcombo, > .select2-container):has(> button.btn, > a.btn) {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body div[style*="display: flex" i]:has(> button.btn, > a.btn)>input.tfield,
    html body div[style*="display:flex" i]:has(> button.btn, > a.btn)>input.tfield,
    html body div[style*="display: flex" i]:has(> button.btn, > a.btn)>input.form-control,
    html body div[style*="display:flex" i]:has(> button.btn, > a.btn)>input.form-control,
    html body div[style*="display: flex" i]:has(> button.btn, > a.btn)>select.tcombo,
    html body div[style*="display:flex" i]:has(> button.btn, > a.btn)>select.tcombo,
    html body div[style*="display: flex" i]:has(> button.btn, > a.btn)>.select2-container,
    html body div[style*="display:flex" i]:has(> button.btn, > a.btn)>.select2-container {
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    html body div[style*="display: flex" i]:has(> input.tfield, > input.form-control, > select.tcombo, > .select2-container)>button.btn,
    html body div[style*="display:flex" i]:has(> input.tfield, > input.form-control, > select.tcombo, > .select2-container)>button.btn,
    html body div[style*="display: flex" i]:has(> input.tfield, > input.form-control, > select.tcombo, > .select2-container)>a.btn,
    html body div[style*="display:flex" i]:has(> input.tfield, > input.form-control, > select.tcombo, > .select2-container)>a.btn {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 38px !important;
        max-width: 132px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 12px !important;
        margin: 0 !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        box-sizing: border-box !important;
    }

    html body #form_SaasConfiguracaoForm button[name="buscar_cnpj"],
    html body #form_SaasConfiguracaoForm button[name="buscar_cep"],
    html body .saas-config-container button[name="buscar_cnpj"],
    html body .saas-config-container button[name="buscar_cep"] {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 38px !important;
        max-width: 132px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 12px !important;
        margin: 0 !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        box-sizing: border-box !important;
    }

    html body .saas-config-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    html body .saas-config-head-card {
        padding: 12px 14px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        margin-bottom: 10px !important;
    }

    html body .saas-config-head-left {
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
    }

    html body .saas-config-head-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 17px !important;
        flex-shrink: 0 !important;
    }

    html body .saas-config-head-title h3 {
        font-size: 15px !important;
        line-height: 1.25 !important;
    }

    html body .saas-config-head-title p {
        font-size: 11.5px !important;
        line-height: 1.35 !important;
    }

    html body .saas-config-head-card>div:last-child {
        width: 100% !important;
        gap: 6px !important;
    }

    html body .saas-tab-hero {
        padding: 12px 14px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    html body .saas-tab-hero-left {
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
    }

    html body .saas-tab-hero-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
        flex-shrink: 0 !important;
    }

    html body .saas-tab-hero-title {
        font-size: 14px !important;
        line-height: 1.25 !important;
    }

    html body .saas-tab-hero-desc {
        font-size: 11.5px !important;
    }

    html body .saas-tab-hero .btn-api-fiscal-saas {
        width: 100% !important;
        justify-content: center !important;
        height: auto !important;
        min-height: 36px !important;
        padding: 8px 12px !important;
        white-space: normal !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    html body .saas-secao-header {
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px 10px !important;
        margin-top: 12px !important;
        margin-bottom: 10px !important;
    }

    html body .saas-secao-titulo {
        font-size: 13px !important;
        line-height: 1.3 !important;
        flex: 1 1 200px !important;
        min-width: 0 !important;
    }

    html body .saas-section-badge {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    html body .saas-info-alert {
        padding: 10px 12px !important;
        font-size: 11.5px !important;
        box-sizing: border-box !important;
    }

    html body .saas-config-container .nav-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    html body .saas-config-container .nav-tabs::-webkit-scrollbar {
        display: none !important;
    }

    html body .saas-config-container .nav-tabs>li {
        flex: 0 0 auto !important;
    }

    html body .saas-config-container .nav-tabs>li>a {
        white-space: nowrap !important;
        padding: 8px 12px !important;
        font-size: 12.5px !important;
    }

    html body .saas-config-container button[name="button_testar_envio_de_e_mail"],
    html body .saas-config-container button[name="button_salvar_email"],
    html body .saas-config-container .btn-salvar-config-modern {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 38px !important;
        margin: 0 !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* ======================================================================
       8.17 CENTRAL DE AJUDA (CentralAjudaHubView / #central-ajuda-hub-root)
       ====================================================================== */
    html body #central-ajuda-hub-root,
    html body #central-ajuda-hub-root .cah-shell {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding: 4px 2px 14px !important;
        box-sizing: border-box !important;
    }

    html body #central-ajuda-hub-root .cah-hero {
        padding: 14px !important;
        border-radius: 14px !important;
        gap: 12px !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    html body #central-ajuda-hub-root .cah-hero-main {
        flex: 1 1 100% !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    html body #central-ajuda-hub-root .cah-hero-main h1 {
        font-size: 18px !important;
        line-height: 1.25 !important;
        word-break: break-word !important;
    }

    html body #central-ajuda-hub-root .cah-hero-main p {
        font-size: 12.5px !important;
    }

    html body #central-ajuda-hub-root .cah-hero-side {
        flex: 0 0 auto !important;
        width: 100% !important;
        align-items: stretch !important;
    }

    html body #central-ajuda-hub-root .cah-hero-kpis {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    html body #central-ajuda-hub-root .cah-kpi-pill {
        min-width: 0 !important;
        padding: 10px 12px !important;
    }

    html body #central-ajuda-hub-root .cah-kpi-pill strong {
        font-size: 18px !important;
    }

    html body #central-ajuda-hub-root .cah-hero-ai-btn {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 12px !important;
    }

    html body #central-ajuda-hub-root .cah-toolbar {
        padding: 10px !important;
        gap: 8px !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
    }

    html body #central-ajuda-hub-root .cah-search-box {
        flex: 1 1 100% !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    html body #central-ajuda-hub-root .cah-filter-pills {
        display: flex !important;
        width: 100% !important;
        gap: 6px !important;
    }

    html body #central-ajuda-hub-root .cah-pill {
        flex: 1 1 0% !important;
        justify-content: center !important;
        padding: 7px 8px !important;
        font-size: 11.5px !important;
        white-space: nowrap !important;
    }

    html body #central-ajuda-hub-root .cah-workspace {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    html body #central-ajuda-hub-root .cah-sidebar-col {
        position: static !important;
        min-height: auto !important;
        width: 100% !important;
    }

    html body #central-ajuda-hub-root .cah-sidebar {
        position: static !important;
        max-height: 290px !important;
        max-height: 260px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 8px !important;
    }

    html body #central-ajuda-hub-root .cah-mod-btn,
    html body #central-ajuda-hub-root .cah-mod-btn {
        padding: 7px 9px !important;
        min-height: 36px !important;
        width: 100% !important;
    }

    html body #central-ajuda-hub-root .cah-nav-item {
        min-height: 38px !important;
        padding: 6px 8px !important;
        min-height: 34px !important;
        width: 100% !important;
    }

    html body #central-ajuda-hub-root .cah-reader {
        min-height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html body #central-ajuda-hub-root .cah-article-header {
        padding: 14px !important;
        padding: 12px 14px !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    html body #central-ajuda-hub-root .cah-article-meta {
        flex: 1 1 100% !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    html body #central-ajuda-hub-root .cah-article-meta h2 {
        font-size: 16.5px !important;
        word-break: break-word !important;
    }

    html body #central-ajuda-hub-root .cah-breadcrumb {
        flex-wrap: wrap !important;
    }

    html body #central-ajuda-hub-root .cah-article-actions {
        flex: 0 0 auto !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    html body #central-ajuda-hub-root .cah-btn {
        width: 100% !important;
        flex: 1 1 140px !important;
        width: auto !important;
        min-width: 0 !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: normal !important;
        box-sizing: border-box !important;
    }

    html body #central-ajuda-hub-root .cah-btn-ai i {
        color: #ffffff !important;
    }

    html body #central-ajuda-hub-root .cah-article-body {
        padding: 14px !important;
        padding: 12px 14px !important;
        overflow-x: hidden !important;
    }

    html body #central-ajuda-hub-root .cah-article-body .ch-doc-hero,
    html body #central-ajuda-hub-root .cah-article-body .ch-doc-grid,
    html body #central-ajuda-hub-root .cah-article-body .ch-doc-cards,
    html body #central-ajuda-hub-root .cah-article-body .ch-doc-callout,
    html body #central-ajuda-hub-root .cah-article-body img,
    html body #central-ajuda-hub-root .cah-article-body video,
    html body #central-ajuda-hub-root .cah-article-body iframe {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #central-ajuda-hub-root .ch-doc-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: 100% !important;
    }

    html body #central-ajuda-hub-root .ch-doc-grid,
    html body #central-ajuda-hub-root .ch-doc-cards,
    html body #central-ajuda-hub-root .ch-doc-hero {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body #central-ajuda-hub-root .cah-article-footer {
        padding: 12px 14px !important;
        padding: 10px 14px !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    html body #central-ajuda-hub-root .cah-article-footer>span:empty {
        display: none !important;
    }

    html body #central-ajuda-hub-root .cah-pager-btn {
        width: 100% !important;
        padding: 8px 12px !important;
        justify-content: space-between !important;
        margin-left: 0 !important;
        box-sizing: border-box !important;
    }

    /* ======================================================================
       8.18 LOG DE WEBHOOK (WebhookLogHeaderList, WebhookLogDadosView, SaasWebhookLog)
       ====================================================================== */
    html body form[name="datagrid_formList_WebhookLog"],
    html body div:has(> form[name="datagrid_formList_WebhookLog"]) {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    html body button[name="btn_reprocessar_lote"] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 38px !important;
        justify-content: center !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    html body #WebhookLogHeaderList_datagrid {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: auto !important;
        border: none !important;
        background: transparent !important;
    }

    html body #WebhookLogHeaderList_datagrid>thead {
        display: block !important;
        width: 100% !important;
        margin-bottom: 8px !important;
    }

    html body #WebhookLogHeaderList_datagrid>thead>tr {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        padding: 4px 10px !important;
        box-sizing: border-box !important;
    }

    html body #WebhookLogHeaderList_datagrid>thead>tr>th:nth-child(1),
    html body #WebhookLogHeaderList_datagrid>thead>tr>th:nth-child(3),
    html body #WebhookLogHeaderList_datagrid>thead>tr>th:nth-child(4),
    html body #WebhookLogHeaderList_datagrid>thead>tr>th:nth-child(5) {
        display: none !important;
    }

    html body #WebhookLogHeaderList_datagrid>thead>tr>th:nth-child(2) {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        padding: 4px 2px !important;
        border: none !important;
        text-align: left !important;
    }

    html body #WebhookLogHeaderList_datagrid>thead>tr>th:nth-child(2)::after {
        content: "Selecionar todos os registros";
        font-size: 12.5px !important;
        font-weight: 600 !important;
        color: #334155 !important;
    }

    html body #WebhookLogHeaderList_datagrid>tbody {
        display: block !important;
        width: 100% !important;
    }

    html body #WebhookLogHeaderList_datagrid>tbody>tr {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        padding: 12px !important;
        margin-bottom: 12px !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
        box-sizing: border-box !important;
    }

    html body #WebhookLogHeaderList_datagrid>tbody>tr>td {
        display: block !important;
        height: auto !important;
        border: none !important;
        box-sizing: border-box !important;
    }

    html body #WebhookLogHeaderList_datagrid>tbody>tr>td:nth-child(2) {
        order: 1 !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 !important;
    }

    html body #WebhookLogHeaderList_datagrid>tbody>tr>td:nth-child(3) {
        order: 2 !important;
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        text-align: left !important;
        padding: 0 !important;
    }

    html body #WebhookLogHeaderList_datagrid>tbody>tr>td:nth-child(1) {
        order: 3 !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        margin-left: auto !important;
    }

    html body #WebhookLogHeaderList_datagrid>tbody>tr>td:nth-child(1)>a,
    html body #WebhookLogHeaderList_datagrid>tbody>tr>td:nth-child(1)>a .btn,
    html body #WebhookLogHeaderList_datagrid>tbody>tr>td:nth-child(1)>button.btn {
        width: auto !important;
        min-width: 0 !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 4px 12px !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        white-space: nowrap !important;
    }

    html body #WebhookLogHeaderList_datagrid>tbody>tr>td:nth-child(4) {
        order: 4 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    html body #WebhookLogHeaderList_datagrid>tbody>tr>td:nth-child(5) {
        order: 5 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    html body #WebhookLogHeaderList_datagrid .gateway-response,
    html body #WebhookLogHeaderList_datagrid .payment-data,
    html body #WebhookLogHeaderList_datagrid .safra-summary,
    html body #WebhookLogHeaderList_datagrid .gateway-response>.card,
    html body #WebhookLogHeaderList_datagrid .payment-data>.card,
    html body #WebhookLogHeaderList_datagrid .safra-summary>.card {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    html body #WebhookLogHeaderList_datagrid .gateway-response *,
    html body #WebhookLogHeaderList_datagrid .payment-data *,
    html body #WebhookLogHeaderList_datagrid .safra-summary * {
        white-space: normal !important;
        word-break: break-word !important;
    }

    html body #WebhookLogHeaderList_datagrid .btn-wlog-view-pagamento,
    html body #WebhookLogHeaderList_datagrid .payment-data a.btn {
        width: 100% !important;
        justify-content: center !important;
        height: auto !important;
        min-height: 34px !important;
        padding: 6px 10px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    html body .wlog-modal-container {
        padding: 10px 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    html body .wlog-modal-container .wlog-action-btn {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    html body .wlog-modal-container div:has(> .wlog-tab-btn) {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
    }

    html body .wlog-modal-container .wlog-tab-btn {
        width: 100% !important;
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: 38px !important;
        padding: 8px 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        font-size: 12.5px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    html body .wlog-modal-container .wlog-tab-btn > i {
        flex-shrink: 0 !important;
    }

    html body .wlog-modal-container .wlog-tab-btn > span {
        margin-left: auto !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 2px 8px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    html body .wlog-modal-container #wlog-bloco-payload > div:first-child,
    html body .wlog-modal-container #wlog-bloco-pagamento > div:first-child,
    html body .wlog-modal-container #wlog-saas-bloco-payload > div:first-child,
    html body .wlog-modal-container #wlog-saas-bloco-pagamento > div:first-child {
        padding: 12px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    html body .wlog-modal-container #wlog-bloco-payload > div:first-child > div:first-child,
    html body .wlog-modal-container #wlog-bloco-pagamento > div:first-child > div:first-child,
    html body .wlog-modal-container #wlog-saas-bloco-payload > div:first-child > div:first-child,
    html body .wlog-modal-container #wlog-saas-bloco-pagamento > div:first-child > div:first-child {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px 8px !important;
        width: 100% !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    html body .wlog-modal-container #wlog-bloco-payload > div:first-child > div:first-child > span,
    html body .wlog-modal-container #wlog-bloco-pagamento > div:first-child > div:first-child > span,
    html body .wlog-modal-container #wlog-saas-bloco-payload > div:first-child > div:first-child > span,
    html body .wlog-modal-container #wlog-saas-bloco-pagamento > div:first-child > div:first-child > span {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        line-height: 1.2 !important;
    }

    html body .wlog-modal-container #wlog-bloco-payload > div:first-child > div:last-child,
    html body .wlog-modal-container #wlog-bloco-pagamento > div:first-child > div:last-child,
    html body .wlog-modal-container #wlog-saas-bloco-payload > div:first-child > div:last-child,
    html body .wlog-modal-container #wlog-saas-bloco-pagamento > div:first-child > div:last-child {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    html body .wlog-modal-container #wlog-bloco-payload > div:first-child > div:last-child .btn,
    html body .wlog-modal-container #wlog-bloco-pagamento > div:first-child > div:last-child .btn,
    html body .wlog-modal-container #wlog-saas-bloco-payload > div:first-child > div:last-child .btn,
    html body .wlog-modal-container #wlog-saas-bloco-pagamento > div:first-child > div:last-child .btn {
        width: 100% !important;
        flex: 0 0 auto !important;
        height: 34px !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 10px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    html body .wlog-modal-container .wlog-pre-code {
        max-height: 45dvh !important;
        padding: 12px !important;
        font-size: 11.5px !important;
    }

    html body #SaasWebhookLogHeaderList_datagrid {
        min-width: 480px !important;
    }

    html body form[name="formList_SaasWebhookLog"] button[name="button_button_atualizar"] {
        width: 100% !important;
        justify-content: center !important;
        height: auto !important;
        min-height: 36px !important;
    }

    /* ======================================================================
       8.19 PÁGINA INICIAL WELCOME (WelcomeView / .welcome-shell & Modal Atalhos)
       ====================================================================== */
    html body .welcome-shell {
        padding: 8px 6px 18px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    html body .welcome-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    html body .welcome-hero {
        padding: 16px !important;
        border-radius: 14px !important;
    }

    html body .welcome-title {
        font-size: 20px !important;
        line-height: 1.25 !important;
        word-break: break-word !important;
    }

    html body .welcome-subtitle {
        font-size: 13px !important;
        line-height: 1.48 !important;
    }

    html body .welcome-hero-pills {
        gap: 6px !important;
        margin-top: 12px !important;
    }

    html body .welcome-hero-pill {
        font-size: 11px !important;
        padding: 5px 9px !important;
        max-width: 100% !important;
        flex-wrap: wrap !important;
    }

    html body .welcome-help-spotlight {
        padding: 16px !important;
        border-radius: 14px !important;
        gap: 12px !important;
    }

    html body .welcome-help-body h3 {
        font-size: 16.5px !important;
    }

    html body .welcome-help-body p {
        font-size: 12.5px !important;
    }

    html body .welcome-help-cta {
        padding: 10px 14px !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
    }

    html body .welcome-panel,
    html body .welcome-blog-panel,
    html body .welcome-panel-links {
        padding: 14px !important;
        border-radius: 14px !important;
        margin-top: 12px !important;
        box-sizing: border-box !important;
    }

    html body .welcome-panel-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
        padding-bottom: 10px !important;
    }

    html body .welcome-panel-header-left {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    html body .welcome-panel-header h4 {
        font-size: 15px !important;
        line-height: 1.3 !important;
    }

    html body .welcome-blog-all-btn,
    html body .btn-config-atalhos {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    html body .welcome-blog-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    html body .welcome-blog-cover {
        height: 135px !important;
        padding: 12px !important;
    }

    html body .welcome-blog-featured-body {
        padding: 14px !important;
    }

    html body .welcome-blog-featured-title {
        font-size: 15.5px !important;
    }

    html body .welcome-blog-featured-resumo {
        font-size: 12.5px !important;
    }

    html body .welcome-blog-featured-foot {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    html body .welcome-blog-meta {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    html body .welcome-blog-read-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    html body .welcome-blog-latest-item {
        padding: 11px 12px !important;
    }

    html body .welcome-blog-latest-content h5,
    html body .welcome-blog-latest-content p {
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    html body .welcome-links {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    html body .welcome-card-link {
        padding: 11px 12px !important;
        border-radius: 12px !important;
    }

    html body #modal-config-atalhos-overlay {
        padding: 8px !important;
        box-sizing: border-box !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-card {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        height: calc(100dvh - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        border-radius: 14px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-header {
        position: relative !important;
        padding: 12px 14px !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0 !important;
        flex-shrink: 0 !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-header-left {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        gap: 10px !important;
        padding-right: 38px !important;
        align-items: flex-start !important;
        box-sizing: border-box !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-header-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 9px !important;
        font-size: 15px !important;
        margin-top: 2px !important;
        flex-shrink: 0 !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-header-info {
        flex: 1 1 0% !important;
        min-width: 0 !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-header-info h3 {
        font-size: 15px !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-header-info p {
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        margin-top: 3px !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-close-btn {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        z-index: 5 !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-toolbar {
        padding: 8px 12px !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-search-box {
        min-width: 0 !important;
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-search-input {
        height: 36px !important;
        padding: 6px 10px 6px 32px !important;
        font-size: 12.5px !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-counter-badge {
        padding: 3px 10px !important;
        font-size: 11.5px !important;
        gap: 5px !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 10px 12px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-modulo-group {
        margin-bottom: 14px !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-modulo-header {
        gap: 8px !important;
        padding-bottom: 6px !important;
        margin-bottom: 8px !important;
        flex-wrap: nowrap !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-modulo-title {
        font-size: 12px !important;
        gap: 6px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        line-height: 1.25 !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-modulo-count {
        flex-shrink: 0 !important;
        font-size: 10.5px !important;
        padding: 2px 7px !important;
        white-space: nowrap !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 6px !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-item-card {
        padding: 8px 10px !important;
        gap: 9px !important;
        border-radius: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-item-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 13px !important;
        border-radius: 7px !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-item-label {
        font-size: 12.5px !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-item-sub {
        font-size: 10.5px !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-footer {
        padding: 8px 12px !important;
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    html body #modal-config-atalhos-overlay .wmodal-footer-right {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
    }

    html body #modal-config-atalhos-overlay .btn-wmodal-cancel {
        flex: 0 0 auto !important;
        width: auto !important;
        min-height: 38px !important;
        height: 38px !important;
        padding: 0 14px !important;
        font-size: 12.5px !important;
        justify-content: center !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    html body #modal-config-atalhos-overlay .btn-wmodal-save {
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 38px !important;
        height: 38px !important;
        padding: 0 14px !important;
        font-size: 13px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    html body #modal-config-atalhos-overlay .btn-wmodal-clear {
        width: 100% !important;
        min-height: 32px !important;
        height: 32px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* ======================================================================
       8.20 VISTORIA ASSISTÊNCIA, BADGES, XML/CHAVE NF-E, FORNECEDOR,
            BOTÕES COM RETICÊNCIAS, RELATÓRIO BUILDER & MODAL DE ESCOPO
       ====================================================================== */
    /* 8.20.1 Vistoria da Assistência (VistoriaAssistenciaGaleria) */
    html body #vistoria-galeria-container {
        padding: 12px !important;
        overflow: hidden !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #vistoria-galeria-container .galeria-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding-bottom: 12px !important;
        margin-bottom: 12px !important;
        position: relative !important;
    }

    html body #vistoria-galeria-container .galeria-title {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px 8px !important;
        font-size: 15px !important;
        padding-right: 40px !important;
        min-width: 0 !important;
    }

    html body #vistoria-galeria-container .galeria-badge {
        margin-left: 0 !important;
        white-space: nowrap !important;
        font-size: 11px !important;
        padding: 3px 9px !important;
    }

    html body #vistoria-galeria-container .galeria-title .link-refresh {
        margin-left: auto !important;
        width: auto !important;
        height: 30px !important;
        min-height: 30px !important;
        padding: 4px 10px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
    }

    html body #vistoria-galeria-container .galeria-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
    }

    html body #vistoria-galeria-container .galeria-actions .btn-upload-fotos {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 120px !important;
        width: auto !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
    }

    html body #vistoria-galeria-container .galeria-actions>.btn-help-info {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        margin: 0 !important;
    }

    html body #vistoria-galeria-container .galeria-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    html body #vistoria-galeria-container .galeria-thumb {
        height: 125px !important;
    }

    /* 8.20.2 Badges Empilhados em Listagens (padding/espaçamento limpo e reticências no final) */
    html body.theme-mode-modern table.tdatagrid_table td.tdatagrid_cell span.label,
    html body.theme-mode-modern table.tdatagrid_table td span.label,
    html body.theme-mode-modern table.table td span.label,
    html body.theme-mode-modern table.tdatagrid_table td.tdatagrid_cell span.badge,
    html body.theme-mode-modern table.tdatagrid_table td span.badge,
    html body.theme-mode-modern table.table td span.badge,
    html body table.tdatagrid_table td.tdatagrid_cell span.label,
    html body table.tdatagrid_table td span.label,
    html body table.table td span.label,
    html body table.tdatagrid_table td.tdatagrid_cell span.badge,
    html body table.tdatagrid_table td span.badge,
    html body table.table td span.badge {
        display: inline-block !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 2px 4px 4px 0 !important;
        padding: 4px 9px !important;
        line-height: 1.25 !important;
        border-radius: 6px !important;
        vertical-align: middle !important;
        box-sizing: border-box !important;
    }

    html body table.tdatagrid_table td:has(> span.label + span.label),
    html body table.table td:has(> span.label + span.label) {
        line-height: 1.6 !important;
    }

    /* 8.20.3 Modais Importar XML (form_ImportarXmlNfeModal) & Por Chave (form_DfeManifestacaoModal) */
    html body form[name="form_ImportarXmlNfeModal"] div:has(> div > a.btn-baixar-xml-teste),
    html body form[name="form_DfeManifestacaoModal"] div:has(> button.btn-usar-chave-dfe) {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body form[name="form_ImportarXmlNfeModal"] div:has(> div > a.btn-baixar-xml-teste)>div:first-child,
    html body form[name="form_DfeManifestacaoModal"] div:has(> button.btn-usar-chave-dfe)>div:first-child {
        width: 100% !important;
        min-width: 0 !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    html body form[name="form_ImportarXmlNfeModal"] div:has(> a.btn-baixar-xml-teste) {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    html body form[name="form_ImportarXmlNfeModal"] a.btn-baixar-xml-teste,
    html body form[name="form_ImportarXmlNfeModal"] button.btn-testar-depara-xml {
        flex: 1 1 calc(50% - 4px) !important;
        width: auto !important;
        min-width: 120px !important;
        height: 36px !important;
        justify-content: center !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
    }

    html body form[name="form_DfeManifestacaoModal"] button.btn-usar-chave-dfe {
        width: 100% !important;
        height: 36px !important;
        justify-content: center !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    html body form[name="form_ImportarXmlNfeModal"] .card-footer,
    html body form[name="form_ImportarXmlNfeModal"] .panel-footer,
    html body form[name="form_DfeManifestacaoModal"] .card-footer,
    html body form[name="form_DfeManifestacaoModal"] .panel-footer {
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    html body form[name="form_ImportarXmlNfeModal"] .card-footer .btn,
    html body form[name="form_ImportarXmlNfeModal"] .panel-footer .btn,
    html body form[name="form_DfeManifestacaoModal"] .card-footer .btn,
    html body form[name="form_DfeManifestacaoModal"] .panel-footer .btn {
        width: 100% !important;
        margin: 0 !important;
        justify-content: center !important;
    }

    /* 8.20.4 Botão '+' ao lado de Select2 (Fornecedor) + remoção de espaço vazio acima */
    html body .form-group:has(#banner_bloqueio_fornecedor_produto[style*="display:none" i]),
    html body .form-group:has(#banner_bloqueio_fornecedor_produto[style*="display: none" i]) {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body #detailFormFornecedorProdutoServicoProdutoServico>.card-header:empty,
    html body #detailFormFornecedorProdutoServicoProdutoServico>.panel-heading:empty,
    html body .builder-detail-form>.card-header:empty,
    html body .builder-detail-form>.panel-heading:empty {
        display: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    html body #detailFormFornecedorProdutoServicoProdutoServico>.card-body,
    html body #detailFormFornecedorProdutoServicoProdutoServico>.panel-body,
    html body .builder-detail-form>.card-body,
    html body .builder-detail-form>.panel-body {
        padding-top: 4px !important;
    }

    html body .fb-field-container:has(> .select2-container):has(> button.btn),
    html body .fb-inline-field-container:has(> .select2-container):has(> button.btn),
    html body #detailFormFornecedorProdutoServicoProdutoServico div[class*="col-"]:has(> .select2-container):has(> button),
    html body form[name="detailFormFornecedorProdutoServicoProdutoServico"] div[class*="col-"]:has(> .select2-container):has(> button) {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 4px 6px !important;
    }

    html body .fb-field-container:has(> .select2-container):has(> button.btn)>label,
    html body .fb-inline-field-container:has(> .select2-container):has(> button.btn)>label,
    html body #detailFormFornecedorProdutoServicoProdutoServico div[class*="col-"]:has(> .select2-container):has(> button)>label,
    html body form[name="detailFormFornecedorProdutoServicoProdutoServico"] div[class*="col-"]:has(> .select2-container):has(> button)>label {
        flex: 1 1 100% !important;
        width: 100% !important;
        margin-bottom: 2px !important;
    }

    html body .fb-field-container:has(> .select2-container):has(> button.btn)>.select2-container,
    html body .fb-inline-field-container:has(> .select2-container):has(> button.btn)>.select2-container,
    html body #detailFormFornecedorProdutoServicoProdutoServico div[class*="col-"]:has(> .select2-container):has(> button)>.select2-container,
    html body form[name="detailFormFornecedorProdutoServicoProdutoServico"] div[class*="col-"]:has(> .select2-container):has(> button)>.select2-container {
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    html body .fb-field-container:has(> .select2-container):has(> button.btn)>button.btn,
    html body .fb-inline-field-container:has(> .select2-container):has(> button.btn)>button.btn,
    html body #detailFormFornecedorProdutoServicoProdutoServico div[class*="col-"]:has(> .select2-container):has(> button)>button.btn,
    html body #detailFormFornecedorProdutoServicoProdutoServico div[class*="col-"]:has(> .select2-container):has(> button)>button[id*="button__"],
    html body form[name="detailFormFornecedorProdutoServicoProdutoServico"] div[class*="col-"]:has(> .select2-container):has(> button)>button.btn {
        flex: 0 0 38px !important;
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* 8.20.5 Reticências (...) em labels longos de botões para nunca quebrar em multi-linha */
    html body button.btn:not(.sim-preset-pill):not(.sim-vert-btn):not(.cah-pager-btn):not(.cah-hero-ai-btn):not(.lmob-sheet-item):not(.btn-api-fiscal-saas):not(.rbw-ds-item):not(.note-btn):not(.btn-help-info):not(.btn-circle):not(.dropdown-toggle):not(.dashboard-btn-limpar):not(:has(.badge)):not([name*="btnShowCurtainFilters"]),
    html body a.btn:not(.lmob-sheet-item):not(.btn-api-fiscal-saas):not(.cah-pager-btn),
    html body #rb-wizard-root .rbw-btn-pri,
    html body #rb-wizard-root .rbw-btn-sec,
    html body #rb-wizard-root .rbw-btn-emerald,
    html body #rb-hub-root .rb-hero-btn {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body button.btn:not(.sim-preset-pill):not(.sim-vert-btn):not(.cah-pager-btn):not(.cah-hero-ai-btn):not(.lmob-sheet-item):not(.btn-api-fiscal-saas):not(.rbw-ds-item):not(.note-btn):not(.btn-help-info):not(.btn-circle):not(.dropdown-toggle):not(.dashboard-btn-limpar):not(:has(.badge)):not([name*="btnShowCurtainFilters"])>span,
    html body a.btn:not(.lmob-sheet-item):not(.btn-api-fiscal-saas):not(.cah-pager-btn)>span,
    html body button.btn>span.lmob-btn-text,
    html body a.btn>span.lmob-btn-text {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 0 1 auto !important;
        display: block !important;
    }

    html body button.btn:not(.sim-preset-pill):not(.sim-vert-btn):not(.cah-pager-btn):not(.cah-hero-ai-btn):not(.lmob-sheet-item):not(.btn-api-fiscal-saas):not(.rbw-ds-item):not(.note-btn):not(.btn-help-info):not(.btn-circle):not(.dropdown-toggle):not(.dashboard-btn-limpar):not(:has(.badge)):not([name*="btnShowCurtainFilters"])>i,
    html body a.btn:not(.lmob-sheet-item):not(.btn-api-fiscal-saas):not(.cah-pager-btn)>i {
        flex-shrink: 0 !important;
    }

    html body .caixa-op-footer {
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    html body .caixa-op-footer>.btn-default {
        flex: 0 0 auto !important;
        width: auto !important;
        padding: 0 14px !important;
    }

    html body .caixa-op-footer>button:not(.btn-default) {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        width: auto !important;
        padding: 0 14px !important;
    }

    html body .datagrid-header-actions:has([name*="btnShowCurtainFilters"]),
    html body .datagrid-header-actions:has(.badge) {
        overflow: visible !important;
        padding-top: 8px !important;
    }

    html body .datagrid-header-actions:has([name*="btnShowCurtainFilters"])>div,
    html body .datagrid-header-actions:has(.badge)>div {
        overflow: visible !important;
    }

    html body button.btn:has(.badge),
    html body div.btn:has(.badge),
    html body button[name*="btnShowCurtainFilters"],
    html body div.btn[name*="btnShowCurtainFilters"],
    html body [name*="btnShowCurtainFilters"] {
        position: relative !important;
        overflow: visible !important;
    }

    html body button.btn:has(.badge)>span,
    html body div.btn:has(.badge)>span,
    html body button[name*="btnShowCurtainFilters"]>span,
    html body div.btn[name*="btnShowCurtainFilters"]>span,
    html body [name*="btnShowCurtainFilters"]>span {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        overflow: visible !important;
    }

    html body button.btn .badge[style*="position: absolute" i],
    html body button.btn .badge[style*="position:absolute" i],
    html body div.btn .badge[style*="position: absolute" i],
    html body div.btn .badge[style*="position:absolute" i],
    html body button[name*="btnShowCurtainFilters"] .badge,
    html body div.btn[name*="btnShowCurtainFilters"] .badge,
    html body [name*="btnShowCurtainFilters"] .badge {
        position: absolute !important;
        top: -7px !important;
        right: -7px !important;
        z-index: 4 !important;
        min-width: 19px !important;
        height: 19px !important;
        padding: 0 5px !important;
        line-height: 19px !important;
        font-size: 11px !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        pointer-events: none !important;
        overflow: visible !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25) !important;
    }

    /* 8.20.6 Relatório Builder Wizard (#rb-wizard-root) & Hub de Relatórios (#rb-hub-root) */
    html body #rb-wizard-root {
        padding: 8px 6px 20px !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #rb-wizard-root .rbw-header {
        padding: 14px !important;
        gap: 10px !important;
    }

    html body #rb-wizard-root .rbw-title {
        font-size: 17px !important;
        line-height: 1.25 !important;
    }

    html body #rb-wizard-root .rbw-header-actions,
    html body #rb-wizard-root .rbw-btn-ghost {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    html body #rb-wizard-root .rbw-stepper {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 6px !important;
        margin-bottom: 12px !important;
        padding-bottom: 2px !important;
    }

    html body #rb-wizard-root .rbw-stepper::-webkit-scrollbar {
        display: none !important;
    }

    html body #rb-wizard-root .rbw-step-pill {
        flex: 0 0 auto !important;
        width: auto !important;
        padding: 8px 11px !important;
        font-size: 12px !important;
    }

    html body #rb-wizard-root #rbw-stage-body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    html body #rb-wizard-root .rbw-split,
    html body #rb-wizard-root .rbw-grid-2,
    html body #rb-wizard-root .rbw-grid-3 {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    html body #rb-wizard-root .rbw-split>*,
    html body #rb-wizard-root .rbw-grid-2>*,
    html body #rb-wizard-root .rbw-grid-3>* {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #rb-wizard-root .rbw-col-pool {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
    }

    html body #rb-wizard-root .rbw-pool-item {
        min-width: 100% !important;
        width: max-content !important;
        box-sizing: border-box !important;
        gap: 10px !important;
    }

    html body #rb-wizard-root .rbw-pool-item>button {
        flex-shrink: 0 !important;
    }

    html body #rb-wizard-root .rbw-card {
        padding: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
    }

    html body #rb-wizard-root .rbw-card-title {
        white-space: normal !important;
        flex-wrap: wrap !important;
        line-height: 1.3 !important;
        max-width: 100% !important;
    }

    html body #rb-wizard-root .rbw-card>div:has(> .rbw-card-title):has(> button) {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    html body #rb-wizard-root .rbw-card>div:has(> .rbw-card-title):has(> button)>button {
        width: 100% !important;
        justify-content: center !important;
        height: 36px !important;
        min-height: 36px !important;
    }

    html body #rb-wizard-root .rbw-card div:has(> .rbw-chip) {
        flex-wrap: wrap !important;
        max-width: 100% !important;
    }

    html body #rb-wizard-root .rbw-card div:has(> .rbw-token-chip) {
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body #rb-wizard-root .rbw-token-chip {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #rb-wizard-root div:has(> #rbw-fml-fmt) {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    html body #rb-wizard-root #rbw-fml-fmt {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        width: auto !important;
    }

    html body #rb-wizard-root div:has(> #rbw-fml-fmt)>.rbw-btn-emerald {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    html body #rb-wizard-root .rbw-card:has(> .rbw-table),
    html body #rb-wizard-root .rbw-card>div:has(> .rbw-table) {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    html body #rb-wizard-root .rbw-table {
        min-width: 560px !important;
    }

    html body #rb-wizard-root div[style*="grid-template-columns:1fr 1fr 64px 40px"] {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body #rb-wizard-root .rbw-footer-nav {
        position: static !important;
        margin-top: 12px !important;
        padding: 10px 12px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    html body #rb-wizard-root .rbw-footer-left,
    html body #rb-wizard-root .rbw-footer-right {
        display: flex !important;
        flex: 1 1 100% !important;
        gap: 8px !important;
    }

    html body #rb-wizard-root .rbw-footer-nav button {
        flex: 1 1 0% !important;
        justify-content: center !important;
    }

    html body #rb-hub-root {
        position: relative !important;
        padding: 6px 4px 20px !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #rb-hub-root .rb-hero {
        padding: 16px 14px !important;
        gap: 12px !important;
        position: relative !important;
    }

    html body #rb-hub-root .rb-hero-info {
        padding-right: 40px !important;
    }

    html body #rb-hub-root .rb-hero-title {
        font-size: 18px !important;
    }

    html body #rb-hub-root .rb-hero-actions,
    html body #rb-hub-root .rb-hero-btn {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    html body #rb-hub-root .rb-toolbar,
    html body #rb-hub-root .rb-pills-top-row {
        position: static !important;
    }

    html body #rb-hub-root .rb-pills-help-slot {
        position: absolute !important;
        top: 18px !important;
        right: 16px !important;
        z-index: 6 !important;
        margin: 0 !important;
    }

    html body #rb-hub-root .rb-toolbar {
        padding: 12px !important;
        gap: 10px !important;
    }

    html body #rb-hub-root .rb-pills {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 6px !important;
        width: 100% !important;
        padding-bottom: 2px !important;
    }

    html body #rb-hub-root .rb-pills::-webkit-scrollbar {
        display: none !important;
    }

    html body #rb-hub-root .rb-pill {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    html body #rb-hub-root .rb-filters-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    html body #rb-hub-root .rb-search-wrap {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    html body #rb-hub-root .rb-select-wrap {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px !important;
    }

    html body #rb-hub-root .rb-select {
        width: 100% !important;
        min-width: 0 !important;
    }

    html body #rb-hub-root .rb-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    /* 8.20.7 Modal Atualizar Escopo (#scope-modal-dialog / .scope-modal-overlay) */
    html body .scope-modal-overlay>.scope-modal-container {
        width: calc(100vw - 20px) !important;
        max-width: 480px !important;
        height: auto !important;
        max-height: calc(100dvh - 20px) !important;
    }

    html body .scope-modal-header {
        padding: 10px 12px !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    html body .scope-modal-header-left {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        gap: 8px !important;
        align-items: center !important;
    }

    html body .scope-modal-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        flex-shrink: 0 !important;
    }

    html body .scope-modal-header-text {
        min-width: 0 !important;
        flex: 1 1 0% !important;
    }

    html body .scope-modal-header-text h4 {
        font-size: 13.5px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body .scope-modal-header-text span {
        font-size: 10.5px !important;
        line-height: 1.25 !important;
        display: block !important;
    }

    html body .scope-modal-header-actions {
        flex: 0 0 auto !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 6px !important;
    }

    html body .scope-modal-btn-save {
        width: auto !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        margin: 0 !important;
    }

    html body .scope-modal-btn-close {
        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    html body .scope-modal-body {
        padding: 16px 14px 18px !important;
    }

    html body .scope-pills-container {
        gap: 6px !important;
    }

    html body .scope-pill-item {
        font-size: 12px !important;
        padding: 6px !important;
    }

    /* 8.20.9 Dashboard Executivo Financeiro (DashboardView) */
    html body div[form="form_DashboardView"] {
        position: relative !important;
        padding: 12px 12px !important;
        margin-bottom: 10px !important;
    }

    html body form[name="form_DashboardView"],
    html body div[form="form_DashboardView"] .card-body,
    html body form[name="form_DashboardView"] .card-body,
    html body div[form="form_DashboardView"] .panel-body,
    html body form[name="form_DashboardView"] .panel-body,
    html body div[form="form_DashboardView"] .tab-content,
    html body form[name="form_DashboardView"] .tab-content,
    html body div[form="form_DashboardView"] .tab-pane,
    html body form[name="form_DashboardView"] .tab-pane,
    html body div[form="form_DashboardView"] .form-group.tformrow,
    html body form[name="form_DashboardView"] .form-group.tformrow,
    html body div[form="form_DashboardView"] .fb-field-container,
    html body form[name="form_DashboardView"] .fb-field-container,
    html body div[form="form_DashboardView"] .fb-inline-field-container,
    html body form[name="form_DashboardView"] .fb-inline-field-container,
    html body div[form="form_DashboardView"] .dashboard-clean-controls-wrap {
        position: static !important;
    }

    html body div[form="form_DashboardView"] .dashboard-clean-title-wrap {
        padding-right: 42px !important;
        align-items: flex-start !important;
        margin-bottom: 6px !important;
    }

    html body div[form="form_DashboardView"] .dashboard-clean-controls-wrap {
        justify-content: flex-start !important;
        width: 100% !important;
        gap: 8px !important;
    }

    html body div[form="form_DashboardView"] .btn-help-info,
    html body form[name="form_DashboardView"] .btn-help-info {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        margin: 0 !important;
        z-index: 5 !important;
    }

    html body div[form="form_DashboardView"] button[name="btnFiltrar"],
    html body form[name="form_DashboardView"] button[name="btnFiltrar"] {
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 0 !important;
        height: 38px !important;
        padding: 0 12px !important;
    }

    html body div[form="form_DashboardView"] button[name="btnLimpar"],
    html body form[name="form_DashboardView"] button[name="btnLimpar"],
    html body div[form="form_DashboardView"] button.dashboard-btn-limpar,
    html body form[name="form_DashboardView"] button.dashboard-btn-limpar {
        flex: 0 0 64px !important;
        width: 64px !important;
        min-width: 64px !important;
        max-width: 64px !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 !important;
        overflow: visible !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    html body div[form="form_DashboardView"] button[name="btnLimpar"]>span,
    html body form[name="form_DashboardView"] button[name="btnLimpar"]>span,
    html body div[form="form_DashboardView"] button.dashboard-btn-limpar>span,
    html body form[name="form_DashboardView"] button.dashboard-btn-limpar>span {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    html body div[form="form_DashboardView"] button[name="btnLimpar"] i,
    html body form[name="form_DashboardView"] button[name="btnLimpar"] i,
    html body div[form="form_DashboardView"] button.dashboard-btn-limpar i,
    html body form[name="form_DashboardView"] button.dashboard-btn-limpar i {
        color: #ef4444 !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 15px !important;
        line-height: 1 !important;
    }

    /* 8.20.10 Modal Detalhes da Venda (#venda-form-modal-dialog) */
    html body #venda-form-modal-dialog {
        padding: 8px !important;
    }

    html body #venda-form-modal-dialog .vfm-shell {
        width: calc(100vw - 16px) !important;
        max-width: 100% !important;
        height: calc(100dvh - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        border-radius: 14px !important;
    }

    html body #venda-form-modal-dialog .vfm-header {
        position: relative !important;
        padding: 14px 14px 12px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    html body #venda-form-modal-dialog .vfm-header-left {
        align-items: flex-start !important;
        gap: 10px !important;
        padding-right: 76px !important;
        min-width: 0 !important;
    }

    html body #venda-form-modal-dialog .vfm-header-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    html body #venda-form-modal-dialog .vfm-title-row {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    html body #venda-form-modal-dialog .vfm-title-row h3 {
        font-size: 15.5px !important;
        line-height: 1.25 !important;
        width: 100% !important;
        word-break: break-word !important;
    }

    html body #venda-form-modal-dialog .vfm-subtitle {
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        margin-top: 4px !important;
    }

    html body #venda-form-modal-dialog .vfm-btn-help {
        position: absolute !important;
        top: 12px !important;
        right: 48px !important;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        z-index: 4 !important;
        margin: 0 !important;
    }

    html body #venda-form-modal-dialog .vfm-header-close {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        z-index: 4 !important;
        margin: 0 !important;
    }

    html body #venda-form-modal-dialog .vfm-header-actions {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: 100% !important;
    }

    html body #venda-form-modal-dialog .vfm-header-actions .btn-venda-recibo,
    html body #venda-form-modal-dialog .vfm-header-actions .btn-venda-whatsapp {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        justify-content: center !important;
        height: 34px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
    }

    html body #venda-form-modal-dialog .vfm-body {
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 0 !important;
    }

    html body #venda-form-modal-dialog .vfm-col-left {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        overflow: visible !important;
        padding: 14px !important;
        box-sizing: border-box !important;
    }

    html body #venda-form-modal-dialog .vfm-col-right {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding: 14px !important;
        gap: 12px !important;
        box-sizing: border-box !important;
    }

    html body #venda-form-modal-dialog .vfm-cliente-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    html body #venda-form-modal-dialog .vfm-itens-header {
        padding: 12px 14px !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    html body #venda-form-modal-dialog .vfm-table-scroll {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body #venda-form-modal-dialog .vfm-table-scroll table {
        min-width: 520px !important;
    }

    html body #venda-form-modal-dialog .vfm-pag-card {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 10px 12px !important;
    }

    html body #venda-form-modal-dialog .vfm-fiscal-card {
        margin-top: 0 !important;
        padding: 14px !important;
    }

    html body #venda-form-modal-dialog .vfm-fiscal-actions button,
    html body #venda-form-modal-dialog #btn_view_emitir_nfce,
    html body #venda-form-modal-dialog #btn_view_emitir_nfe {
        width: 100% !important;
        min-height: 38px !important;
        white-space: nowrap !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    html body #venda-form-modal-dialog .vfm-footer {
        padding: 10px 12px !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    html body #venda-form-modal-dialog .vfm-footer-cancel {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    html body #venda-form-modal-dialog .vfm-footer-cancel button {
        width: 100% !important;
        justify-content: center !important;
        padding: 8px 12px !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body #venda-form-modal-dialog .vfm-footer-close {
        flex: 0 0 auto !important;
        padding: 8px 14px !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
    }

    /* 8.20.11 Modal Check-in Pré-Emissão Fiscal (#modal-fiscal-checkin / #modal-checkin-ajuda) */
    html body #modal-fiscal-checkin.checkin-modal-overlay,
    html body #modal-checkin-ajuda.checkin-help-overlay {
        padding: 8px !important;
    }

    html body #modal-fiscal-checkin .checkin-modal-dialog,
    html body #modal-checkin-ajuda .checkin-help-dialog {
        width: calc(100vw - 16px) !important;
        max-width: 100% !important;
        height: calc(100dvh - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        border-radius: 14px !important;
    }

    html body #modal-fiscal-checkin .checkin-modal-header,
    html body #modal-checkin-ajuda .checkin-help-header {
        position: relative !important;
        padding: 12px 14px !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    html body #modal-fiscal-checkin .checkin-header-left,
    html body #modal-checkin-ajuda .checkin-help-header-left {
        align-items: flex-start !important;
        gap: 10px !important;
        padding-right: 34px !important;
        min-width: 0 !important;
    }

    html body #modal-fiscal-checkin .checkin-header-shield,
    html body #modal-checkin-ajuda .checkin-help-icon-wrap {
        width: 34px !important;
        height: 34px !important;
        font-size: 16px !important;
        border-radius: 9px !important;
    }

    html body #modal-fiscal-checkin .checkin-header-tag {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 4px !important;
        line-height: 1.2 !important;
    }

    html body #modal-fiscal-checkin .checkin-header-tag .badge {
        font-size: 9.5px !important;
        padding: 2px 6px !important;
    }

    html body #modal-fiscal-checkin .checkin-header-tag span {
        font-size: 10.5px !important;
        margin-left: 0 !important;
    }

    html body #modal-fiscal-checkin .checkin-header-title,
    html body #modal-checkin-ajuda .checkin-help-title {
        font-size: 14.5px !important;
        line-height: 1.2 !important;
        margin: 3px 0 2px !important;
    }

    html body #modal-fiscal-checkin .checkin-header-sub {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }

    html body #modal-fiscal-checkin .checkin-modal-close,
    html body #modal-checkin-ajuda .checkin-modal-close {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 18px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    html body #modal-fiscal-checkin .checkin-modal-scroll {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body #modal-fiscal-checkin .checkin-modal-notice {
        padding: 8px 12px !important;
        flex-shrink: 0 !important;
    }

    html body #modal-fiscal-checkin .checkin-notice-box {
        padding: 8px 10px !important;
        gap: 8px !important;
        align-items: flex-start !important;
        font-size: 11.5px !important;
        line-height: 1.35 !important;
    }

    html body #modal-fiscal-checkin .checkin-modal-body {
        flex: 0 0 auto !important;
        overflow: visible !important;
        padding: 10px 12px 14px !important;
        gap: 10px !important;
    }

    html body #modal-fiscal-checkin .checkin-summary-pills {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    html body #modal-fiscal-checkin .checkin-issue-card {
        flex-wrap: wrap !important;
        padding: 12px !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }

    html body #modal-fiscal-checkin .checkin-card-icon-wrap {
        width: 30px !important;
        height: 30px !important;
        font-size: 13px !important;
        margin-top: 0 !important;
    }

    html body #modal-fiscal-checkin .checkin-card-content {
        flex: 1 1 calc(100% - 42px) !important;
        min-width: 0 !important;
        width: auto !important;
    }

    html body #modal-fiscal-checkin .checkin-card-msg,
    html body #modal-fiscal-checkin .checkin-card-solution {
        font-size: 12px !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }

    html body #modal-fiscal-checkin .btn-checkin-onde-encontrar {
        flex: 1 1 100% !important;
        width: 100% !important;
        justify-content: center !important;
        padding: 7px 12px !important;
        margin-top: 2px !important;
        box-sizing: border-box !important;
    }

    html body #modal-fiscal-checkin .checkin-modal-footer {
        padding: 8px 12px 10px !important;
        gap: 6px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    html body #modal-fiscal-checkin .checkin-footer-brand {
        font-size: 10.5px !important;
        justify-content: center !important;
        line-height: 1.2 !important;
    }

    html body #modal-fiscal-checkin .checkin-footer-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: 100% !important;
    }

    html body #modal-fiscal-checkin .checkin-footer-actions>button {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        padding: 9px 12px !important;
        font-size: 12.5px !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.25 !important;
        overflow: visible !important;
        text-overflow: clip !important;
        box-sizing: border-box !important;
    }

    html body #modal-checkin-ajuda .checkin-help-body {
        padding: 12px !important;
        gap: 10px !important;
    }

    html body #modal-checkin-ajuda .checkin-help-footer {
        padding: 10px 12px !important;
        gap: 8px !important;
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
    }

    html body #modal-checkin-ajuda .checkin-help-footer>button {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        font-size: 12.5px !important;
        padding: 9px 12px !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.25 !important;
        overflow: visible !important;
        text-overflow: clip !important;
        box-sizing: border-box !important;
    }

    /* 8.20.12 De-Para de Formas de Pagamento PDV (TipoLancamentoVendaForm) */
    html body .depara-header-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px 14px !important;
        box-sizing: border-box !important;
    }

    html body .depara-header-main {
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
    }

    html body .depara-header-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 15px !important;
    }

    html body .depara-header-text {
        min-width: 0 !important;
        flex: 1 1 0% !important;
    }

    html body .depara-header-badge {
        align-self: flex-start !important;
    }

    /* 8.20.13 Modais de Rastreamento (RastreamentoModalHelper / .rmodal-*) */
    html body .rmodal-overlay .rmodal-header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 10px !important;
        padding: 12px 14px !important;
    }

    html body .rmodal-overlay .rmodal-header-left {
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
        flex: 1 1 0% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    html body .rmodal-overlay .rmodal-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 9px !important;
        font-size: 15px !important;
        margin-top: 1px !important;
    }

    html body .rmodal-overlay .rmodal-header-text {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    html body .rmodal-overlay .rmodal-header-text h4 {
        font-size: 14.5px !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        margin: 0 !important;
    }

    html body .rmodal-overlay .rmodal-header-text span {
        font-size: 11.5px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        margin-top: 2px !important;
    }

    html body .rmodal-overlay .rmodal-header-actions {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
        align-self: flex-start !important;
        margin-left: 0 !important;
    }

    html body .rmodal-overlay .rmodal-header-actions .rmodal-btn-help {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    html body .rmodal-overlay .rmodal-header-actions .rmodal-btn-close {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    html body .rmodal-overlay .rmodal-body {
        padding: 12px 14px !important;
        overflow-x: hidden !important;
    }

    html body .rmodal-overlay .rmodal-body div[style*="grid-template-columns"] {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    html body .rmodal-overlay .rmodal-body div[style*="grid-template-columns:repeat(4"],
    html body .rmodal-overlay .rmodal-body div[style*="grid-template-columns:repeat(6"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    html body .rmodal-overlay .rmodal-alert {
        padding: 10px 12px !important;
        gap: 8px !important;
        font-size: 12.5px !important;
        margin-bottom: 12px !important;
    }

    html body .rmodal-overlay .rmodal-alert>div {
        min-width: 0 !important;
        flex: 1 1 0% !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    html body .rmodal-overlay .rmodal-field {
        margin-bottom: 12px !important;
        min-width: 0 !important;
    }

    html body .rmodal-overlay .rmodal-field label {
        max-width: 100% !important;
        white-space: normal !important;
        line-height: 1.35 !important;
    }

    html body .rmodal-overlay .rmodal-footer {
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding: 10px 14px !important;
    }

    html body .rmodal-overlay .rmodal-footer .rmodal-btn {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        padding: 9px 12px !important;
        font-size: 12.5px !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.25 !important;
        overflow: visible !important;
        text-overflow: clip !important;
        box-sizing: border-box !important;
    }

    html body .rmodal-overlay .rmodal-footer .rmodal-btn:only-child {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    html body .rmodal-overlay .rmodal-footer .rmodal-btn>i {
        flex-shrink: 0 !important;
    }

    /* 8.20.14 DataTables Responsive (dtr-inline.collapsed): botão + separado do botão Ações */
    html body table.dataTable.dtr-inline.collapsed>tbody>tr:not(.child)>td:first-child:not(.dataTables_empty),
    html body table.dataTable.dtr-inline.collapsed>tbody>tr:not(.child)>th:first-child:not(.dataTables_empty),
    html body table.dataTable.dtr-inline.collapsed>tbody>tr:not(.child)>td.dtr-control:not(.dataTables_empty),
    html body table.dataTable.dtr-inline.collapsed>tbody>tr:not(.child)>th.dtr-control:not(.dataTables_empty),
    html body.theme-mode-modern table.dataTable.dtr-inline.collapsed>tbody>tr:not(.child)>td:first-child:not(.dataTables_empty),
    html body.theme-mode-modern table.dataTable.dtr-inline.collapsed>tbody>tr:not(.child)>td.dtr-control:not(.dataTables_empty) {
        padding-left: 36px !important;
        white-space: nowrap !important;
    }

    html body table.dataTable.dtr-inline.collapsed>tbody>tr:not(.child)>td:first-child:not(.lmob-action-group-cell):not(.dataTables_empty),
    html body table.dataTable.dtr-inline.collapsed>tbody>tr:not(.child)>td.dtr-control:not(.lmob-action-group-cell):not(.dataTables_empty) {
        position: relative !important;
    }

    html body table.dataTable.dtr-inline.collapsed>tbody>tr:not(.child)>td.lmob-action-group-cell:first-child,
    html body table.dataTable.dtr-inline.collapsed>thead>tr>th.lmob-action-group-th:first-child,
    html body.theme-mode-modern table.dataTable.dtr-inline.collapsed>tbody>tr:not(.child)>td.tdatagrid_action.lmob-action-group-cell:first-child,
    html body.theme-mode-modern table.dataTable.dtr-inline.collapsed>thead>tr>th.tdatagrid_action.lmob-action-group-th:first-child {
        width: auto !important;
        min-width: 78px !important;
        max-width: none !important;
        padding-left: 36px !important;
        padding-right: 8px !important;
        text-align: left !important;
    }

    html body table.dataTable.dtr-inline.collapsed>tbody>tr:not(.child)>td:first-child:not(.dataTables_empty)::before,
    html body table.dataTable.dtr-inline.collapsed>tbody>tr:not(.child)>th:first-child:not(.dataTables_empty)::before,
    html body table.dataTable.dtr-inline.collapsed>tbody>tr:not(.child)>td.dtr-control:not(.dataTables_empty)::before,
    html body table.dataTable.dtr-inline.collapsed>tbody>tr:not(.child)>th.dtr-control:not(.dataTables_empty)::before {
        top: 50% !important;
        left: 8px !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        z-index: 2 !important;
        cursor: pointer !important;
    }

    /* 8.20.15 CampanhaDashboard & CampanhaItemList (topo mobile + ajuda no topo dos blocos) */
    html body .cdash-header-outer {
        margin: 8px 8px 0 8px !important;
        width: auto !important;
        max-width: 100% !important;
    }

    html body .campanha-dashboard-root {
        padding: 10px 8px 14px 8px !important;
        box-sizing: border-box !important;
    }

    html body .cdash-header-card {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 14px !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    html body .cdash-header-title {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding-right: 42px !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    html body .cdash-title-row {
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    html body .cdash-title-icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        border-radius: 9px !important;
        background: rgba(2, 132, 199, 0.12) !important;
        color: #0284c7 !important;
        font-size: 15px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-top: 0 !important;
        flex-shrink: 0 !important;
    }

    html body .cdash-title-text {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        font-size: 14.5px !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    html body .cdash-header-controls {
        position: static !important;
        width: 100% !important;
        margin-left: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        padding-top: 10px !important;
        border-top: 1px solid rgba(148, 163, 184, 0.25) !important;
        box-sizing: border-box !important;
    }

    html body .cdash-header-card .btn-help-info {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        margin: 0 !important;
        z-index: 5 !important;
    }

    html body .cdash-header-controls a.btn:not(.cdash-btn-refresh):not(.btn-help-info) {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        height: 36px !important;
        padding: 0 10px !important;
        font-size: 12.5px !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }

    html body .cdash-header-controls a.cdash-btn-refresh {
        flex: 0 0 36px !important;
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
    }

    html body div[form="form_CampanhaItemList"] {
        position: relative !important;
        overflow: visible !important;
        padding-top: 6px !important;
    }

    html body div[form="form_CampanhaItemList"] form[name="form_CampanhaItemList"],
    html body form[name="form_CampanhaItemList"] {
        overflow: visible !important;
    }

    html body div[form="form_CampanhaItemList"] .card-body,
    html body div[form="form_CampanhaItemList"] .panel-body,
    html body div[form="form_CampanhaItemList"] .tab-content,
    html body div[form="form_CampanhaItemList"] .tab-pane,
    html body div[form="form_CampanhaItemList"] .form-group.tformrow,
    html body div[form="form_CampanhaItemList"] .fb-field-container,
    html body div[form="form_CampanhaItemList"] .fb-inline-field-container,
    html body div[form="form_CampanhaItemList"] [data-help-actions="1"],
    html body form[name="form_CampanhaItemList"] .card-body,
    html body form[name="form_CampanhaItemList"] .panel-body,
    html body form[name="form_CampanhaItemList"] .tab-content,
    html body form[name="form_CampanhaItemList"] .tab-pane,
    html body form[name="form_CampanhaItemList"] .form-group.tformrow,
    html body form[name="form_CampanhaItemList"] .fb-field-container,
    html body form[name="form_CampanhaItemList"] .fb-inline-field-container,
    html body form[name="form_CampanhaItemList"] [data-help-actions="1"] {
        position: static !important;
        overflow: visible !important;
    }

    html body div[form="form_CampanhaItemList"] .form-group.tformrow>.fb-field-container:first-child label,
    html body form[name="form_CampanhaItemList"] .form-group.tformrow>.fb-field-container:first-child label {
        min-height: 30px !important;
        display: flex !important;
        align-items: center !important;
        padding-right: 40px !important;
        margin-bottom: 4px !important;
    }

    html body div[form="form_CampanhaItemList"] .btn-help-info,
    html body form[name="form_CampanhaItemList"] .btn-help-info {
        position: absolute !important;
        top: 6px !important;
        right: 6px !important;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        margin: 0 !important;
        z-index: 5 !important;
    }

    html body div[form="form_CampanhaItemList"] .fb-inline-field-container:has(> [data-help-actions="1"]),
    html body form[name="form_CampanhaItemList"] .fb-inline-field-container:has(> [data-help-actions="1"]) {
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    html body div[form="form_CampanhaItemList"] .form-group.tformrow>.fb-field-container:nth-child(3),
    html body form[name="form_CampanhaItemList"] .form-group.tformrow>.fb-field-container:nth-child(3) {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        width: 100% !important;
    }

    html body div[form="form_CampanhaItemList"] .form-group.tformrow>.fb-field-container:nth-child(3) .fb-inline-field-container:not(:has(> [data-help-actions="1"])),
    html body form[name="form_CampanhaItemList"] .form-group.tformrow>.fb-field-container:nth-child(3) .fb-inline-field-container:not(:has(> [data-help-actions="1"])) {
        flex: 1 1 auto !important;
        padding-right: 0 !important;
        margin: 0 !important;
    }

    html body div[form="form_CampanhaItemList"] .form-group.tformrow>.fb-field-container:nth-child(3) button.btn,
    html body form[name="form_CampanhaItemList"] .form-group.tformrow>.fb-field-container:nth-child(3) button.btn {
        width: 100% !important;
        min-height: 36px !important;
        justify-content: center !important;
    }

    /* 8.20.16 Importação de Leads (ImportarCSVLead, ImportarCSVParearCidadesModal & ImportarCSVCobranca) */
    html body .modal-import-lead-csv .panel-body,
    html body .modal-parear-cidades-csv .panel-body,
    html body .modal-import-csv-cobranca .panel-body,
    html body .ui-dialog.modal-import-lead-csv .panel-body,
    html body .ui-dialog.modal-parear-cidades-csv .panel-body,
    html body .ui-dialog.modal-import-csv-cobranca .panel-body {
        padding: 10px 10px !important;
    }

    html body .lead-import-section,
    html body .city-pair-section {
        padding: 12px 12px !important;
        margin-bottom: 12px !important;
        border-radius: 10px !important;
    }

    html body .lead-import-section-title,
    html body .city-pair-section-title {
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin-bottom: 10px !important;
    }

    html body .modern-import-head-card {
        position: relative !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 12px 12px !important;
        margin-bottom: 12px !important;
        box-sizing: border-box !important;
    }

    html body .modern-import-head-card .head-card-avatar {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 10px !important;
        font-size: 16px !important;
        flex-shrink: 0 !important;
    }

    html body .modern-import-head-card .head-card-body {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        padding-right: 38px !important;
    }

    html body .modern-import-head-card .head-card-badge {
        font-size: 10.5px !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
    }

    html body .modern-import-head-card .head-card-title {
        font-size: 14px !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
    }

    html body .modern-import-head-card .head-card-subtitle {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-top: 4px !important;
        word-break: break-word !important;
    }

    html body .modern-import-head-card [data-help-actions] {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        margin: 0 !important;
        z-index: 4 !important;
    }

    html body .modern-import-head-card [data-help-actions] .btn-help-info {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        margin: 0 !important;
    }

    html body .modern-import-head-card [data-help-actions] .btn-help-info i {
        color: #ffffff !important;
    }

    html body .lead-import-stepper {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 4px !important;
        padding: 10px 8px !important;
        margin-bottom: 12px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    html body .lead-import-stepper .step-item {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center !important;
        gap: 5px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    html body .lead-import-stepper .step-circle {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        font-size: 11px !important;
        flex-shrink: 0 !important;
    }

    html body .lead-import-stepper .step-label {
        width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }

    html body .lead-import-stepper .step-line {
        flex: 0 0 14px !important;
        width: 14px !important;
        max-width: 14px !important;
        margin: 11px 0 0 0 !important;
        align-self: flex-start !important;
    }

    html body .mapping-table,
    html body .mapping-table tbody,
    html body .city-pair-table,
    html body .city-pair-table tbody {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    html body .mapping-table tr.mapping-row,
    html body .city-pair-table tr.city-pair-row {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin-bottom: 10px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    html body .mapping-table td.mapping-col-csv,
    html body .mapping-table td.mapping-col-target,
    html body .city-pair-table td.city-col-csv,
    html body .city-pair-table td.city-col-target {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 8px 10px !important;
        box-sizing: border-box !important;
    }

    html body .mapping-table td.mapping-col-target,
    html body .city-pair-table td.city-col-target {
        padding-top: 4px !important;
        padding-bottom: 10px !important;
    }

    html body .mapping-table td.mapping-col-arrow,
    html body .city-pair-table td.city-col-arrow {
        display: none !important;
    }

    html body .col-csv-sample {
        max-width: 100% !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    html body .ui-dialog:has(form[name*="Importar"]) .panel-footer,
    html body .ui-dialog:has(form[name*="Importar"]) .card-footer,
    html body .ui-dialog:has(.modal-modern-import) .panel-footer,
    html body .ui-dialog.modal-modern-import .panel-footer,
    html body .modal-modern-import .panel-footer,
    html body .modal-import-lead-csv .panel-footer,
    html body .modal-parear-cidades-csv .panel-footer,
    html body .modal-import-csv-cobranca .panel-footer {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 12px !important;
        margin: 12px 0 0 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 0 12px 12px !important;
        box-sizing: border-box !important;
    }

    html body.theme-mode-modern .ui-dialog:has(form[name*="Importar"]) .panel-footer button.btn,
    html body.theme-mode-modern .ui-dialog.modal-modern-import .panel-footer button.btn,
    html body.theme-mode-modern .modal-modern-import .panel-footer button.btn,
    html body .ui-dialog:has(form[name*="Importar"]) .panel-footer button.btn,
    html body .ui-dialog:has(.modal-modern-import) .panel-footer button.btn,
    html body .modal-modern-import .panel-footer button.btn,
    html body .modal-import-lead-csv .panel-footer button.btn,
    html body .modal-parear-cidades-csv .panel-footer button.btn,
    html body .modal-import-csv-cobranca .panel-footer button.btn,
    html body #btn_iniciar_importacao_csv,
    html body .modal-modern-import .panel-footer .btn-modern-import-primary,
    html body .modal-modern-import .panel-footer .btn-modern-import-cancel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        min-height: 42px !important;
        height: auto !important;
        padding: 10px 14px !important;
        margin: 0 !important;
        font-size: 13.5px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    html body.theme-mode-modern .ui-dialog:has(form[name*="Importar"]) .panel-footer button.btn>span,
    html body.theme-mode-modern .ui-dialog.modal-modern-import .panel-footer button.btn>span,
    html body .modal-modern-import .panel-footer button.btn>span,
    html body #btn_iniciar_importacao_csv>span,
    html body .modal-modern-import .panel-footer .btn-modern-import-primary>span,
    html body .modal-modern-import .panel-footer .btn-modern-import-cancel>span {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: 100% !important;
    }

    /* 8.20.17 CRM & Prospecção (BaseCnpjExplorerApp — topo mobile + scroll da modal de recarga) */
    html body .bcnpj-topbar-card {
        position: relative !important;
        padding: 14px !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    html body .bcnpj-topbar-inner {
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100% !important;
    }

    html body .bcnpj-topbar-brand {
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding-right: 38px !important;
        box-sizing: border-box !important;
    }

    html body .bcnpj-topbar-brand>div:first-child {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        border-radius: 11px !important;
        font-size: 18px !important;
    }

    html body .bcnpj-topbar-brand>div:last-child {
        flex: 1 1 0% !important;
        min-width: 0 !important;
    }

    html body .bcnpj-topbar-title-row {
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    html body .bcnpj-topbar-title-row h2 {
        font-size: 17px !important;
        line-height: 1.2 !important;
    }

    html body .bcnpj-topbar-dot {
        display: none !important;
    }

    html body .bcnpj-topbar-search {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    html body .bcnpj-topbar-credits {
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    html body .bcnpj-credits-divider {
        display: none !important;
    }

    html body .bcnpj-credits-actions {
        position: static !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    html body .bcnpj-credits-actions>button.btn:not(.btn-help-info) {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        height: 38px !important;
        padding: 0 12px !important;
        justify-content: center !important;
        font-size: 12.5px !important;
    }

    html body .bcnpj-topbar-card .btn-help-info {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        margin: 0 !important;
        z-index: 5 !important;
    }

    html body #basecnpj-filters-col,
    html body #basecnpj-results-col {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    html body #basecnpj-modal-recarga {
        padding: 8px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    html body #basecnpj-modal-recarga>.bcnpj-recarga-dialog {
        width: 100% !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    html body #basecnpj-modal-recarga .bcnpj-recarga-header {
        flex-shrink: 0 !important;
        padding: 12px 14px !important;
        gap: 10px !important;
        align-items: flex-start !important;
        flex-wrap: nowrap !important;
    }

    html body #basecnpj-modal-recarga .bcnpj-recarga-header h4 {
        font-size: 15px !important;
        line-height: 1.25 !important;
        word-break: break-word !important;
    }

    html body #basecnpj-modal-recarga .bcnpj-recarga-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 14px !important;
        box-sizing: border-box !important;
    }

    html body #basecnpj-modal-recarga .bcnpj-recarga-metrics {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    html body #basecnpj-modal-recarga .bcnpj-recarga-footer {
        flex-shrink: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 10px 14px !important;
        justify-content: flex-end !important;
        border-top: 1px solid #e2e8f0 !important;
        box-sizing: border-box !important;
    }

    html body #basecnpj-modal-recarga .bcnpj-recarga-footer>button.btn {
        flex: 1 1 120px !important;
        min-width: 0 !important;
        justify-content: center !important;
        padding: 9px 12px !important;
        font-size: 12.5px !important;
    }

    /* 8.20.18 Kanban Lead (KanbanFilterLead — botão ? no topo à direita) */
    html body #form_KanbanFilterLead,
    html body div[form="form_KanbanFilterLead"],
    html body form[name="form_KanbanFilterLead"] {
        position: relative !important;
    }

    html body #form_KanbanFilterLead .card-body,
    html body #form_KanbanFilterLead .panel-body,
    html body #form_KanbanFilterLead .tab-content,
    html body #form_KanbanFilterLead .tab-pane,
    html body #form_KanbanFilterLead .form-group.tformrow,
    html body #form_KanbanFilterLead .fb-field-container,
    html body #form_KanbanFilterLead .fb-inline-field-container,
    html body #form_KanbanFilterLead .btn-search-actions-wrap,
    html body div[form="form_KanbanFilterLead"] form[name="form_KanbanFilterLead"],
    html body div[form="form_KanbanFilterLead"] .card-body,
    html body div[form="form_KanbanFilterLead"] .panel-body,
    html body div[form="form_KanbanFilterLead"] .tab-content,
    html body div[form="form_KanbanFilterLead"] .tab-pane,
    html body div[form="form_KanbanFilterLead"] .form-group.tformrow,
    html body div[form="form_KanbanFilterLead"] .fb-field-container,
    html body div[form="form_KanbanFilterLead"] .fb-inline-field-container,
    html body div[form="form_KanbanFilterLead"] .btn-search-actions-wrap,
    html body form[name="form_KanbanFilterLead"] .tab-content,
    html body form[name="form_KanbanFilterLead"] .tab-pane,
    html body form[name="form_KanbanFilterLead"] .form-group.tformrow,
    html body form[name="form_KanbanFilterLead"] .fb-field-container,
    html body form[name="form_KanbanFilterLead"] .fb-inline-field-container,
    html body form[name="form_KanbanFilterLead"] .btn-search-actions-wrap {
        position: static !important;
    }

    html body #form_KanbanFilterLead .form-separator,
    html body div[form="form_KanbanFilterLead"] .form-separator,
    html body form[name="form_KanbanFilterLead"] .form-separator {
        padding-right: 42px !important;
        min-height: 32px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    html body #form_KanbanFilterLead .btn-help-info,
    html body div[form="form_KanbanFilterLead"] .btn-help-info,
    html body form[name="form_KanbanFilterLead"] .btn-help-info {
        position: absolute !important;
        top: 10px !important;
        right: 12px !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        border-radius: 50% !important;
        margin: 0 !important;
        z-index: 5 !important;
    }

    /* 8.20.19 Espelho de Conversas WhatsApp (WhatsappEspelhoView / #wae-container) */
    html body .ui-dialog:has(#wae-container):not([style*="display:none" i]):not([style*="display: none" i]) {
        top: 8px !important;
        left: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        height: calc(100dvh - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    html body .ui-dialog:has(#wae-container)>.ui-dialog-content,
    html body .ui-dialog:has(#wae-container)>.ui-dialog-content>div,
    html body #wae-container.wae-root {
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        flex: 1 1 auto !important;
        padding: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 14px !important;
    }

    html body #wae-container .wae-topbar {
        padding: 10px 12px !important;
        gap: 8px !important;
        min-height: 52px !important;
        cursor: default !important;
    }

    html body #wae-container .wae-topbar-icon {
        flex-shrink: 0 !important;
        margin-right: 0 !important;
        font-size: 20px !important;
    }

    html body #wae-container .wae-topbar-title-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    html body #wae-container .wae-topbar-name {
        font-size: 13.5px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        margin-right: 0 !important;
    }

    html body #wae-container .wae-topbar-phone {
        font-size: 11.5px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    html body #wae-container .wae-topbar-actions {
        flex-shrink: 0 !important;
        gap: 6px !important;
    }

    html body #wae-container .wae-topbar-close {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    html body #wae-container .wae-body {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        display: flex !important;
        overflow: hidden !important;
        position: relative !important;
    }

    html body #wae-container:not(.wae-mobile-chat-open) .wae-sidebar {
        display: flex !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
        height: 100% !important;
        border-right: none !important;
    }

    html body #wae-container:not(.wae-mobile-chat-open) .wae-chat-area {
        display: none !important;
    }

    html body #wae-container.wae-mobile-chat-open .wae-sidebar {
        display: none !important;
    }

    html body #wae-container.wae-mobile-chat-open .wae-chat-area {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        height: 100% !important;
    }

    html body #wae-container .wae-sidebar-header {
        padding: 10px 12px !important;
        flex-shrink: 0 !important;
    }

    html body #wae-container .wae-sidebar-header>div {
        width: 100% !important;
    }

    html body #wae-container .wae-instance-list {
        -webkit-overflow-scrolling: touch !important;
        padding: 4px 0 12px !important;
    }

    html body #wae-container .wae-instance-item {
        padding: 12px 14px !important;
        gap: 10px !important;
    }

    html body #wae-container .wae-inst-info {
        margin-left: 0 !important;
    }

    html body #wae-container .wae-inst-info .mt-1 {
        flex-wrap: wrap !important;
        gap: 5px !important;
    }

    html body #wae-container .wae-chat-header {
        padding: 8px 10px !important;
        gap: 8px !important;
        min-height: 50px !important;
    }

    html body #wae-container .wae-chat-header-info {
        min-width: 0 !important;
        gap: 8px !important;
    }

    html body #wae-container .wae-chat-header-avatar {
        width: 32px !important;
        height: 32px !important;
        flex-shrink: 0 !important;
        margin-right: 0 !important;
    }

    html body #wae-container .wae-chat-header-meta {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    html body #wae-container .wae-mobile-back-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        color: #334155 !important;
        flex-shrink: 0 !important;
    }

    html body #wae-container .wae-chat-header-actions {
        flex-shrink: 0 !important;
        gap: 6px !important;
        align-items: center !important;
    }

    html body #wae-container .wae-btn-pdf {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    html body #wae-container .wae-btn-sync {
        height: 32px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        white-space: nowrap !important;
    }

    html body #wae-container .wae-messages {
        padding: 10px 10px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body #wae-container .wae-bubble {
        max-width: 88% !important;
    }

    html body #wae-container .wae-bubble-media {
        min-width: 0 !important;
        max-width: 88% !important;
    }

    html body #wae-container .wae-bubble-media-only {
        max-width: 82% !important;
    }

    html body #wae-container .wae-audio-player {
        min-width: 0 !important;
        width: 100% !important;
    }

    html body #wae-container .wae-audio-player audio {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 215px !important;
    }

    html body #wae-container .wae-chat-footer {
        padding: 8px 10px !important;
        text-align: center !important;
    }

    html body #wae-container .wae-toast {
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
        min-width: 0 !important;
        max-width: calc(100vw - 24px) !important;
    }

    /* 8.20.20 Modal de Dados CPF/CNPJ (LuuviCNPJCPFService / .lv-modal-content) */
    html body .modal:has(.lv-modal-content) {
        overflow: hidden !important;
        padding: 0 !important;
    }

    html body .modal .modal-dialog.lv-modal-xl {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        margin: 8px auto !important;
    }

    html body .modal .modal-content.lv-modal-content {
        width: 100% !important;
        max-height: calc(100dvh - 16px) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        border-radius: 12px !important;
        padding: 0 !important;
        border: none !important;
    }

    html body .modal .lv-modal-header {
        flex: 0 0 auto !important;
        position: relative !important;
        padding: 12px 14px !important;
        border-radius: 12px 12px 0 0 !important;
    }

    html body .modal .lv-modal-header-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        padding-right: 28px !important;
    }

    html body .modal .lv-modal-header .lv-title {
        font-size: 14px !important;
        line-height: 1.25 !important;
        word-break: break-word !important;
    }

    html body .modal .lv-modal-header .lv-badge {
        white-space: nowrap !important;
        margin-top: 2px !important;
        font-size: 11px !important;
    }

    html body .modal .lv-modal-header button.close {
        top: 10px !important;
        right: 12px !important;
        width: 28px !important;
        height: 28px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    html body .modal .lv-modal-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: calc(100dvh - 110px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px 10px 16px !important;
    }

    html body .modal .lv-modal-body .row {
        margin-left: -6px !important;
        margin-right: -6px !important;
    }

    html body .modal .lv-card-section {
        padding: 10px 12px !important;
        margin-bottom: 10px !important;
        overflow: hidden !important;
    }

    html body .modal .lv-modal-body .row>[class*="col-"],
    html body .modal .lv-card-section .row>[class*="col-"] {
        padding-left: 6px !important;
        padding-right: 6px !important;
        min-width: 0 !important;
    }

    html body .modal .lv-info-value {
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        min-width: 0 !important;
    }

    html body .modal .lv-tbl-wrap {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* 8.20.21 Configuração Fiscal e Modal Gestão da Empresa na API Fiscal (ConfiguracaoNfForm / SaasConfiguracaoForm) */
    html body.theme-mode-modern .puxar-dados-empresa-wrap,
    html body .puxar-dados-empresa-wrap {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding: 10px 12px !important;
        width: 100% !important;
        margin-top: 8px !important;
        margin-bottom: 4px !important;
    }

    html body.theme-mode-modern .btn-puxar-dados-empresa,
    html body .btn-puxar-dados-empresa {
        width: 100% !important;
        height: auto !important;
        min-height: 36px !important;
        padding: 8px 12px !important;
        justify-content: center !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.25 !important;
    }

    #modal-empresa-api-fiscal .cmodal-tabs,
    #modal-empresa-api-fiscal-saas .cmodal-tabs {
        flex-shrink: 0 !important;
    }

    #modal-empresa-api-fiscal .btn-fiscal,
    #modal-empresa-api-fiscal-saas .btn-fiscal {
        white-space: normal !important;
        text-align: center !important;
        max-width: 100% !important;
        line-height: 1.3 !important;
    }

    #modal-empresa-api-fiscal .cmodal-cert-grid,
    #modal-empresa-api-fiscal-saas .cmodal-cert-grid {
        grid-template-columns: 1fr !important;
    }

    /* 8.20.22 Negociação — Ficha e Cadastro (NegociacaoFormView / #negociacao-form-modal-dialog) */
    html body #negociacao-form-modal-dialog {
        padding: 6px !important;
    }

    html body #negociacao-form-modal-container {
        width: calc(100vw - 12px) !important;
        max-width: calc(100vw - 12px) !important;
        min-width: 0 !important;
        height: calc(100dvh - 12px) !important;
        max-height: calc(100dvh - 12px) !important;
        border-radius: 14px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    html body #negociacao-form-modal-container>.negform-header {
        padding: 12px 12px !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }

    html body #negociacao-form-modal-container .negform-header-left {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    html body #negociacao-form-modal-container .negform-header-icon {
        width: 34px !important;
        height: 34px !important;
        border-radius: 9px !important;
        font-size: 15px !important;
        flex: 0 0 34px !important;
        margin-top: 2px !important;
    }

    html body #negociacao-form-modal-container .negform-header-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    html body #negociacao-form-modal-container .negform-header-title-row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 5px !important;
    }

    html body #negociacao-form-modal-container #negform_titulo_topo {
        font-size: 14.5px !important;
        line-height: 1.2 !important;
    }

    html body #negociacao-form-modal-container #negform_badge_etapa_topo,
    html body #negociacao-form-modal-container #negform_modo_badge {
        font-size: 10px !important;
        padding: 2px 8px !important;
        white-space: nowrap !important;
    }

    html body #negociacao-form-modal-container .negform-header-meta {
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        margin-top: 4px !important;
        word-break: break-word !important;
    }

    html body #negociacao-form-modal-container .negform-header-actions {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
    }

    html body #negociacao-form-modal-container .negform-header-actions>button {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        border-radius: 9px !important;
        padding: 0 !important;
        font-size: 14px !important;
    }

    html body #negociacao-form-modal-container .negform-header-actions>button.btn-help-info {
        border-radius: 50% !important;
    }

    html body #negociacao-form-modal-container>.negform-split-body {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 0% !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body #negociacao-form-modal-container .negform-col-left,
    html body #negociacao-form-modal-container .negform-col-right {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        border-right: none !important;
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    html body #negociacao-form-modal-container .negform-left-scroll,
    html body #negociacao-form-modal-container .negform-right-scroll {
        flex: 0 0 auto !important;
        overflow: visible !important;
        padding: 12px !important;
    }

    html body #negociacao-form-modal-container .negform-stepper-card {
        padding: 12px !important;
        margin-bottom: 12px !important;
    }

    html body #negociacao-form-modal-container .negform-stepper-card>div:last-child {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    html body #negociacao-form-modal-container .negform-client-empty {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px !important;
        margin-bottom: 12px !important;
    }

    html body #negociacao-form-modal-container .negform-client-empty>button {
        width: 100% !important;
        justify-content: center !important;
    }

    html body #negociacao-form-modal-container .negform-client-filled {
        padding: 12px !important;
        margin-bottom: 12px !important;
    }

    html body #negociacao-form-modal-container .negform-client-head {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    html body #negociacao-form-modal-container .negform-client-head-right {
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
        justify-content: space-between !important;
    }

    html body #negociacao-form-modal-container #negform_cli_doc_badge>span {
        margin-left: 0 !important;
    }

    html body #negociacao-form-modal-container .negform-btn-trocar-cliente {
        width: auto !important;
        flex: 0 0 auto !important;
        padding: 5px 10px !important;
        font-size: 11.5px !important;
    }

    html body #negociacao-form-modal-container .negform-client-body {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    html body #negociacao-form-modal-container #negform_cli_acoes {
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
    }

    html body #negociacao-form-modal-container #negform_cli_acoes>a,
    html body #negociacao-form-modal-container #negform_cli_acoes>span {
        max-width: 100% !important;
        word-break: break-word !important;
    }

    html body #negociacao-form-modal-container #form_negociacao_split {
        padding: 14px !important;
    }

    html body #negociacao-form-modal-container .negform-anexos-card {
        margin-top: 12px !important;
        padding: 12px !important;
    }

    html body #negociacao-form-modal-container .negform-section-head {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    html body #negociacao-form-modal-container .negform-footer {
        padding: 12px !important;
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    html body #negociacao-form-modal-container .negform-footer-close-wrap {
        width: 100% !important;
    }

    html body #negociacao-form-modal-container .negform-footer-close-wrap>button {
        width: 100% !important;
        justify-content: center !important;
        padding: 9px 12px !important;
    }

    html body #negociacao-form-modal-container .negform-footer-actions-wrap {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    html body #negociacao-form-modal-container #negform-wrap-botoes-extra:not([style*="display: none" i]):not([style*="display:none" i]) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    html body #negociacao-form-modal-container #negform-wrap-botoes-extra>button {
        width: 100% !important;
        min-width: 0 !important;
        padding: 8px 6px !important;
        font-size: 11.5px !important;
        justify-content: center !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    html body #negociacao-form-modal-container #btn_ativar_edicao_form:not([style*="display: none" i]):not([style*="display:none" i]),
    html body #negociacao-form-modal-container #btn_salvar_negociacao_form:not([style*="display: none" i]):not([style*="display:none" i]) {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 14px !important;
    }

    html body #negociacao-form-modal-container .negform-tab-nav {
        padding: 8px 10px !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    html body #negociacao-form-modal-container .negform-tab-nav::-webkit-scrollbar {
        display: none;
    }

    html body #negociacao-form-modal-container .neg-pgto-item,
    html body #negociacao-form-modal-container .neg-item-card,
    html body #negociacao-form-modal-container .neg-ativ-item {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 10px 12px !important;
    }

    html body #negociacao-form-modal-container .neg-fiscal-item>div:first-child {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    html body #negociacao-form-modal-container .neg-fiscal-item>div:last-child {
        flex-wrap: wrap !important;
    }

    html body #modal-neg-buscar-cliente-dialog,
    html body #modal-neg-nova-atividade-dialog,
    html body #modal-neg-split-fiscal-dialog {
        padding: 8px !important;
    }

    html body #modal-neg-buscar-cliente-dialog .negform-submodal-card,
    html body #modal-neg-nova-atividade-dialog .negform-submodal-card,
    html body #modal-neg-split-fiscal-dialog .negform-submodal-card {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        border-radius: 14px !important;
    }

    /* 8.20.23 Dashboards e Funis com TFormSeparator (botão ? no topo à direita) e centralização de botões de ação em largura total */
    html body :is(#form_PropostaDashboard, div[form="form_PropostaDashboard"], form[name="form_PropostaDashboard"],
        #form_DashboardAssistencia, div[form="form_DashboardAssistencia"], form[name="form_DashboardAssistencia"],
        #form_DashboardEvento, div[form="form_DashboardEvento"], form[name="form_DashboardEvento"],
        #form_LeadDashboard, div[form="form_LeadDashboard"], form[name="form_LeadDashboard"],
        #form_CobrancaDashboard, div[form="form_CobrancaDashboard"], form[name="form_CobrancaDashboard"],
        #form_SaasDashboard, div[form="form_SaasDashboard"], form[name="form_SaasDashboard"],
        #form_KanbanFilterAssistencia, div[form="form_KanbanFilterAssistencia"], form[name="form_KanbanFilterAssistencia"],
        #form_KanbanFilterEvento, div[form="form_KanbanFilterEvento"], form[name="form_KanbanFilterEvento"],
        #form_KanbanFilterPessoa, div[form="form_KanbanFilterPessoa"], form[name="form_KanbanFilterPessoa"],
        #form_KanbanFilterCobranca, div[form="form_KanbanFilterCobranca"], form[name="form_KanbanFilterCobranca"],
        #form_EventoProDashboard, div[form="form_EventoProDashboard"], form[name="form_EventoProDashboard"],
        #form_KanbanFilterEventoPro, div[form="form_KanbanFilterEventoPro"], form[name="form_KanbanFilterEventoPro"],
        #form_NegociacaoDashboard, div[form="form_NegociacaoDashboard"], form[name="form_NegociacaoDashboard"],
        #form_KanbanFilterNegociacao, div[form="form_KanbanFilterNegociacao"], form[name="form_KanbanFilterNegociacao"],
        #form_KanbanFilterProposta, div[form="form_KanbanFilterProposta"], form[name="form_KanbanFilterProposta"],
        #form_ProdutoServicoDashboard, div[form="form_ProdutoServicoDashboard"], form[name="form_ProdutoServicoDashboard"]) {
        position: relative !important;
    }

    html body :is(#form_PropostaDashboard, div[form="form_PropostaDashboard"], form[name="form_PropostaDashboard"],
        #form_DashboardAssistencia, div[form="form_DashboardAssistencia"], form[name="form_DashboardAssistencia"],
        #form_DashboardEvento, div[form="form_DashboardEvento"], form[name="form_DashboardEvento"],
        #form_LeadDashboard, div[form="form_LeadDashboard"], form[name="form_LeadDashboard"],
        #form_CobrancaDashboard, div[form="form_CobrancaDashboard"], form[name="form_CobrancaDashboard"],
        #form_SaasDashboard, div[form="form_SaasDashboard"], form[name="form_SaasDashboard"],
        #form_KanbanFilterAssistencia, div[form="form_KanbanFilterAssistencia"], form[name="form_KanbanFilterAssistencia"],
        #form_KanbanFilterEvento, div[form="form_KanbanFilterEvento"], form[name="form_KanbanFilterEvento"],
        #form_KanbanFilterPessoa, div[form="form_KanbanFilterPessoa"], form[name="form_KanbanFilterPessoa"],
        #form_KanbanFilterCobranca, div[form="form_KanbanFilterCobranca"], form[name="form_KanbanFilterCobranca"],
        #form_EventoProDashboard, div[form="form_EventoProDashboard"], form[name="form_EventoProDashboard"],
        #form_KanbanFilterEventoPro, div[form="form_KanbanFilterEventoPro"], form[name="form_KanbanFilterEventoPro"],
        #form_NegociacaoDashboard, div[form="form_NegociacaoDashboard"], form[name="form_NegociacaoDashboard"],
        #form_KanbanFilterNegociacao, div[form="form_KanbanFilterNegociacao"], form[name="form_KanbanFilterNegociacao"],
        #form_KanbanFilterProposta, div[form="form_KanbanFilterProposta"], form[name="form_KanbanFilterProposta"],
        #form_ProdutoServicoDashboard, div[form="form_ProdutoServicoDashboard"], form[name="form_ProdutoServicoDashboard"]) :is(form, .card-body, .panel-body, .tab-content, .tab-pane, .form-group.tformrow, .fb-field-container, .fb-inline-field-container, .btn-search-actions-wrap, .dashboard-filter-actions) {
        position: static !important;
    }

    html body :is(#form_PropostaDashboard, div[form="form_PropostaDashboard"], form[name="form_PropostaDashboard"],
        #form_DashboardAssistencia, div[form="form_DashboardAssistencia"], form[name="form_DashboardAssistencia"],
        #form_DashboardEvento, div[form="form_DashboardEvento"], form[name="form_DashboardEvento"],
        #form_LeadDashboard, div[form="form_LeadDashboard"], form[name="form_LeadDashboard"],
        #form_CobrancaDashboard, div[form="form_CobrancaDashboard"], form[name="form_CobrancaDashboard"],
        #form_SaasDashboard, div[form="form_SaasDashboard"], form[name="form_SaasDashboard"],
        #form_KanbanFilterAssistencia, div[form="form_KanbanFilterAssistencia"], form[name="form_KanbanFilterAssistencia"],
        #form_KanbanFilterEvento, div[form="form_KanbanFilterEvento"], form[name="form_KanbanFilterEvento"],
        #form_KanbanFilterPessoa, div[form="form_KanbanFilterPessoa"], form[name="form_KanbanFilterPessoa"],
        #form_KanbanFilterCobranca, div[form="form_KanbanFilterCobranca"], form[name="form_KanbanFilterCobranca"],
        #form_EventoProDashboard, div[form="form_EventoProDashboard"], form[name="form_EventoProDashboard"],
        #form_KanbanFilterEventoPro, div[form="form_KanbanFilterEventoPro"], form[name="form_KanbanFilterEventoPro"],
        #form_NegociacaoDashboard, div[form="form_NegociacaoDashboard"], form[name="form_NegociacaoDashboard"],
        #form_KanbanFilterNegociacao, div[form="form_KanbanFilterNegociacao"], form[name="form_KanbanFilterNegociacao"],
        #form_KanbanFilterProposta, div[form="form_KanbanFilterProposta"], form[name="form_KanbanFilterProposta"],
        #form_ProdutoServicoDashboard, div[form="form_ProdutoServicoDashboard"], form[name="form_ProdutoServicoDashboard"]) .form-separator {
        padding-right: 42px !important;
        min-height: 32px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    html body :is(#form_PropostaDashboard, div[form="form_PropostaDashboard"], form[name="form_PropostaDashboard"],
        #form_DashboardAssistencia, div[form="form_DashboardAssistencia"], form[name="form_DashboardAssistencia"],
        #form_DashboardEvento, div[form="form_DashboardEvento"], form[name="form_DashboardEvento"],
        #form_LeadDashboard, div[form="form_LeadDashboard"], form[name="form_LeadDashboard"],
        #form_CobrancaDashboard, div[form="form_CobrancaDashboard"], form[name="form_CobrancaDashboard"],
        #form_SaasDashboard, div[form="form_SaasDashboard"], form[name="form_SaasDashboard"],
        #form_KanbanFilterAssistencia, div[form="form_KanbanFilterAssistencia"], form[name="form_KanbanFilterAssistencia"],
        #form_KanbanFilterEvento, div[form="form_KanbanFilterEvento"], form[name="form_KanbanFilterEvento"],
        #form_KanbanFilterPessoa, div[form="form_KanbanFilterPessoa"], form[name="form_KanbanFilterPessoa"],
        #form_KanbanFilterCobranca, div[form="form_KanbanFilterCobranca"], form[name="form_KanbanFilterCobranca"],
        #form_EventoProDashboard, div[form="form_EventoProDashboard"], form[name="form_EventoProDashboard"],
        #form_KanbanFilterEventoPro, div[form="form_KanbanFilterEventoPro"], form[name="form_KanbanFilterEventoPro"],
        #form_NegociacaoDashboard, div[form="form_NegociacaoDashboard"], form[name="form_NegociacaoDashboard"],
        #form_KanbanFilterNegociacao, div[form="form_KanbanFilterNegociacao"], form[name="form_KanbanFilterNegociacao"],
        #form_KanbanFilterProposta, div[form="form_KanbanFilterProposta"], form[name="form_KanbanFilterProposta"],
        #form_ProdutoServicoDashboard, div[form="form_ProdutoServicoDashboard"], form[name="form_ProdutoServicoDashboard"]) .btn-help-info {
        position: absolute !important;
        top: 10px !important;
        right: 12px !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        border-radius: 50% !important;
        margin: 0 !important;
        z-index: 5 !important;
    }

    html body :is(#form_PropostaDashboard, div[form="form_PropostaDashboard"], form[name="form_PropostaDashboard"],
        #form_DashboardAssistencia, div[form="form_DashboardAssistencia"], form[name="form_DashboardAssistencia"],
        #form_DashboardEvento, div[form="form_DashboardEvento"], form[name="form_DashboardEvento"],
        #form_LeadDashboard, div[form="form_LeadDashboard"], form[name="form_LeadDashboard"],
        #form_CobrancaDashboard, div[form="form_CobrancaDashboard"], form[name="form_CobrancaDashboard"],
        #form_SaasDashboard, div[form="form_SaasDashboard"], form[name="form_SaasDashboard"],
        #form_KanbanFilterAssistencia, div[form="form_KanbanFilterAssistencia"], form[name="form_KanbanFilterAssistencia"],
        #form_KanbanFilterEvento, div[form="form_KanbanFilterEvento"], form[name="form_KanbanFilterEvento"],
        #form_KanbanFilterPessoa, div[form="form_KanbanFilterPessoa"], form[name="form_KanbanFilterPessoa"],
        #form_KanbanFilterCobranca, div[form="form_KanbanFilterCobranca"], form[name="form_KanbanFilterCobranca"],
        #form_EventoProDashboard, div[form="form_EventoProDashboard"], form[name="form_EventoProDashboard"],
        #form_KanbanFilterEventoPro, div[form="form_KanbanFilterEventoPro"], form[name="form_KanbanFilterEventoPro"],
        #form_NegociacaoDashboard, div[form="form_NegociacaoDashboard"], form[name="form_NegociacaoDashboard"],
        #form_KanbanFilterNegociacao, div[form="form_KanbanFilterNegociacao"], form[name="form_KanbanFilterNegociacao"],
        #form_KanbanFilterProposta, div[form="form_KanbanFilterProposta"], form[name="form_KanbanFilterProposta"],
        #form_ProdutoServicoDashboard, div[form="form_ProdutoServicoDashboard"], form[name="form_ProdutoServicoDashboard"]) .dashboard-filter-actions {
        height: auto !important;
        flex-wrap: wrap !important;
    }

    html body #btnNovoPagamento,
    html body #tbutton_btnNovoPagamento,
    html body #tbutton_btnNovoCheckList,
    html body #btnGerarFinanceiroProposta,
    html body #btnGerarComprasProposta,
    html body #btnGerarComissaoProposta,
    html body #tbutton_btnCadastrarEventoVinculado,
    html body #btnFiltrarDashboardEvento,
    html body #tbutton_btnNovoParecerJuridico,
    html body #tbutton_button_gerar_pagamentos,
    html body #btnGerarPagamentos,
    html body #tbutton_button_novo_item,
    html body #tbutton_btn_salvar_dados_do_sinistro,
    html body #tbutton_button_abrir_vistorias_da_proposta,
    html body #tbutton_btn_salvar_dados_trabalhistas,
    html body #tbutton_button_gerar_folha_de_pagamento,
    html body #NovoProdutoServico,
    html body #btnBuscarAgendamentos,
    html body #btnVisualizarHtml,
    html body #btnVisualizarTextoWhatsApp,
    html body #btnVisualizarTextoSMS,
    html body #btnTemplate,
    html body #btnMapearCSV {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center !important;
    }

    /* 8.20.24 Escolha de Prestador de Assistência (BuscaPrestadorBaseWindow) */
    html body #adianti_right_panel .container-part[page-name="BuscaPrestadorBaseWindow"],
    html body .right-panel>.container-part[page-name="BuscaPrestadorBaseWindow"] {
        width: 100% !important;
        max-width: 100vw !important;
    }

    html body .busca-prestador-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: 100dvh !important;
        max-height: none !important;
        gap: 10px !important;
        padding: 8px 8px 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    html body .busca-prestador-container .painel-lista-prestadores {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: none !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    html body .busca-prestador-container .bp-mobile-close-btn {
        display: inline-flex !important;
    }

    html body .busca-prestador-container .painel-lista-prestadores .bp-filtros-selects {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    html body .busca-prestador-container .painel-lista-prestadores #lista-prestadores-container {
        max-height: 44dvh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 8px !important;
    }

    html body .busca-prestador-container .painel-lista-prestadores select.form-control {
        min-width: 0 !important;
        flex: 1 1 130px !important;
        width: 100% !important;
        font-size: 12.5px !important;
    }

    html body .busca-prestador-container .painel-lista-prestadores .card-prestador {
        padding: 10px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
    }

    html body .busca-prestador-container .painel-mapa-prestadores {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: none !important;
        height: auto !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    html body .busca-prestador-container .painel-mapa-prestadores>div:first-child {
        padding: 10px 12px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    html body .busca-prestador-container #mapa-busca-prestador {
        flex: none !important;
        width: 100% !important;
        height: 42dvh !important;
        min-height: 280px !important;
    }

    html body .busca-prestador-container #mapa-busca-prestador .leaflet-popup-content {
        max-width: calc(100vw - 72px) !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
    }

    html body .busca-prestador-container #painel-prestador-selecionado {
        position: sticky !important;
        bottom: 0 !important;
        z-index: 25 !important;
        padding: 12px !important;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.14) !important;
    }

    html body .busca-prestador-container #painel-prestador-selecionado>div {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    html body .busca-prestador-container #btn-escolher-prestador {
        width: 100% !important;
        justify-content: center !important;
    }

    /* 8.20.25 Painel Gerencial do Evento Pro (EventoProGerencialDashboard) */
    html body .form-container:has(#form_EventoProGerencialDashboard) {
        padding: 6px 6px 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    html:has(link[href*="tema_dark"]) .form-container:has(#form_EventoProGerencialDashboard) {
        background: #141727 !important;
    }

    html:has(link[href*="tema_dark"]) #form_EventoProGerencialDashboard .rgv-box,
    html:has(link[href*="tema_dark"]) #form_EventoProGerencialDashboard .rgv-kpi-card,
    html:has(link[href*="tema_dark"]) #form_EventoProGerencialDashboard .epg-diff-card {
        background: #1f2238 !important;
        border-color: #3b426b !important;
        color: #e2e8f0 !important;
    }

    html:has(link[href*="tema_dark"]) #form_EventoProGerencialDashboard .rgv-box-title,
    html:has(link[href*="tema_dark"]) #form_EventoProGerencialDashboard .rgv-kpi-value,
    html:has(link[href*="tema_dark"]) #form_EventoProGerencialDashboard .epg-diff-value,
    html:has(link[href*="tema_dark"]) #form_EventoProGerencialDashboard .rgv-table td {
        color: #f1f5f9 !important;
        border-color: #3b426b !important;
    }

    /* 8.20.26 Modais de Contratação/Assinatura (Etapas 1-5), Cartão e Recarga API */
    html body #modal-saas-compra-etapa1.sc1-modal-overlay,
    html body #modal-saas-account-cartao.sac-modal-overlay,
    html body #modal-saas-checkout-cartao.scc-modal-overlay {
        padding: 8px !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-modal-container {
        width: 100% !important;
        max-width: 100% !important;
        height: calc(100dvh - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        border-radius: 16px !important;
    }

    html body #modal-saas-account-cartao .sac-modal-container,
    html body #modal-saas-checkout-cartao .scc-modal-container {
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100dvh - 16px) !important;
        border-radius: 16px !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-header,
    html body #modal-saas-account-cartao .sac-header,
    html body #modal-saas-checkout-cartao .scc-header {
        position: relative !important;
        padding: 12px 14px 10px !important;
        gap: 0 !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-header>div:last-child,
    html body #modal-saas-account-cartao .sac-header>div:last-child,
    html body #modal-saas-checkout-cartao .scc-header>div:last-child {
        position: absolute !important;
        top: 10px !important;
        right: 12px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        z-index: 5 !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-header .btn-help-info,
    html body #modal-saas-account-cartao .sac-header .btn-help-info,
    html body #modal-saas-checkout-cartao .scc-header .btn-help-info,
    html body #modal-saas-compra-etapa1 .sc1-btn-close,
    html body #modal-saas-account-cartao .sac-btn-close,
    html body #modal-saas-checkout-cartao .scc-btn-close {
        position: static !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        margin: 0 !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-header-left,
    html body #modal-saas-account-cartao .sac-header-left,
    html body #modal-saas-checkout-cartao .scc-header-left {
        display: grid !important;
        grid-template-columns: 34px minmax(0, 1fr) !important;
        column-gap: 10px !important;
        row-gap: 2px !important;
        align-items: center !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-header-left>div:last-child,
    html body #modal-saas-account-cartao .sac-header-left>div:last-child,
    html body #modal-saas-checkout-cartao .scc-header-left>div:last-child {
        display: contents !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-header-icon,
    html body #modal-saas-account-cartao .sac-header-icon,
    html body #modal-saas-checkout-cartao .scc-header-icon {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
        width: 34px !important;
        height: 34px !important;
        border-radius: 9px !important;
        font-size: 15px !important;
        align-self: start !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-header-badge,
    html body #modal-saas-account-cartao .sac-header-badge,
    html body #modal-saas-checkout-cartao .scc-header-badge {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: start !important;
        max-width: calc(100% - 72px) !important;
        font-size: 9px !important;
        padding: 2px 7px !important;
        margin-bottom: 0 !important;
        line-height: 1.25 !important;
        white-space: normal !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-header-title,
    html body #modal-saas-account-cartao .sac-header-title,
    html body #modal-saas-checkout-cartao .scc-header-title {
        grid-column: 2 !important;
        grid-row: 2 !important;
        padding-right: 72px !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        word-break: break-word !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-header-subtitle,
    html body #modal-saas-account-cartao .sac-header-subtitle,
    html body #modal-saas-checkout-cartao .scc-header-subtitle {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        margin-top: 5px !important;
        max-width: 100% !important;
        word-break: break-word !important;
    }

    /* Stepper Etapa 1 */
    html body #modal-saas-compra-etapa1 .sc1-stepper {
        padding: 10px 8px !important;
        gap: 2px !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        overflow: hidden !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-step-item {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center !important;
        gap: 4px !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-step-circle {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        flex-shrink: 0 !important;
        font-size: 11px !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-step-label {
        font-size: 10px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        word-break: break-word !important;
        white-space: normal !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-step-line {
        flex: 0 0 10px !important;
        width: 10px !important;
        max-width: 10px !important;
        margin: 11px 0 0 0 !important;
        align-self: flex-start !important;
    }

    /* Corpo e Cards Etapa 1 */
    html body #modal-saas-compra-etapa1 .sc1-body {
        padding: 12px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-plan-card {
        padding: 12px 14px !important;
        gap: 10px !important;
        align-items: flex-start !important;
        border-radius: 13px !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-custom-radio {
        width: 22px !important;
        height: 22px !important;
        margin-top: 2px !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-card-top {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
        margin-bottom: 6px !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-card-title {
        font-size: 15px !important;
        line-height: 1.25 !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-card-price {
        font-size: 13.5px !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-card-desc {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-feature-pill {
        font-size: 11px !important;
        padding: 3px 8px !important;
    }

    /* Corpo, Mockup de Cartão e Formulário (Cartão de Crédito & Checkout Cartão) */
    html body #modal-saas-account-cartao .sac-body,
    html body #modal-saas-checkout-cartao .scc-body {
        padding: 12px 14px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body #modal-saas-account-cartao .sac-card-preview,
    html body #modal-saas-checkout-cartao .scc-card-preview {
        padding: 14px 16px !important;
        border-radius: 13px !important;
    }

    html body #modal-saas-account-cartao .sac-card-top,
    html body #modal-saas-checkout-cartao .scc-card-top {
        margin-bottom: 12px !important;
    }

    html body #modal-saas-account-cartao .sac-card-number,
    html body #modal-saas-checkout-cartao .scc-card-number {
        font-size: 15px !important;
        letter-spacing: 2px !important;
        white-space: nowrap !important;
        margin-bottom: 12px !important;
    }

    html body #modal-saas-account-cartao .sac-grid-2,
    html body #modal-saas-checkout-cartao .scc-grid-2 {
        gap: 10px !important;
    }

    html body #modal-saas-account-cartao .sac-grid-2:has(#sac_documento),
    html body #modal-saas-checkout-cartao .scc-grid-2:has(#scc_documento) {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    html body #modal-saas-checkout-cartao .scc-invoice-summary {
        padding: 12px 14px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    html body #modal-saas-checkout-cartao .scc-invoice-price {
        text-align: left !important;
        width: 100% !important;
        padding-top: 8px !important;
        border-top: 1px dashed #e2e8f0 !important;
        display: flex !important;
        align-items: baseline !important;
        justify-content: space-between !important;
    }

    html body #modal-saas-checkout-cartao .scc-price-val {
        font-size: 18px !important;
    }

    /* Rodapés Etapa 1, Cartão de Crédito e Checkout Cartão */
    html body #modal-saas-compra-etapa1 .sc1-footer,
    html body #modal-saas-account-cartao .sac-footer {
        padding: 10px 14px !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-btn-cancel,
    html body #modal-saas-account-cartao .sac-btn-cancel {
        flex: 0 0 auto !important;
        min-height: 40px !important;
        height: 40px !important;
        padding: 0 14px !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-compra-etapa1 .sc1-btn-next,
    html body #modal-saas-account-cartao .sac-btn-save {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        min-height: 40px !important;
        height: 40px !important;
        padding: 0 12px !important;
        font-size: 12.5px !important;
        justify-content: center !important;
        gap: 6px !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-checkout-cartao .scc-footer {
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        padding: 10px 14px !important;
        gap: 8px !important;
    }

    html body #modal-saas-checkout-cartao .scc-btn-cancel,
    html body #modal-saas-checkout-cartao .scc-btn-pay {
        width: 100% !important;
        min-height: 40px !important;
        justify-content: center !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
    }

    /* Modais Wizard Etapas 2-5 e Recarga Saldo API */
    html body #modal-saas-compra-etapa2,
    html body #modal-saas-compra-etapa3,
    html body #modal-saas-compra-etapa4,
    html body #modal-saas-compra-etapa5,
    html body #modal-saldo-api-deposito {
        padding: 8px !important;
    }

    html body #modal-saas-compra-etapa2 .cmodal-dialog,
    html body #modal-saas-compra-etapa3 .cmodal-dialog,
    html body #modal-saas-compra-etapa4 .cmodal-dialog,
    html body #modal-saas-compra-etapa5 .cmodal-dialog,
    html body #modal-saldo-api-deposito .cmodal-dialog {
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100dvh - 16px) !important;
        border-radius: 16px !important;
    }

    html body #modal-saas-compra-etapa2 .sc2-header,
    html body #modal-saas-compra-etapa3 .sc3-header,
    html body #modal-saas-compra-etapa4 .sc4-header,
    html body #modal-saas-compra-etapa5 .sc5-header,
    html body #modal-saldo-api-deposito .cmodal-dialog>div:first-child {
        position: relative !important;
        padding: 12px 14px 10px !important;
        align-items: flex-start !important;
    }

    html body #modal-saas-compra-etapa2 .sc2-header>div:first-child,
    html body #modal-saas-compra-etapa3 .sc3-header>div:first-child,
    html body #modal-saas-compra-etapa4 .sc4-header>div:first-child,
    html body #modal-saas-compra-etapa5 .sc5-header>div:first-child,
    html body #modal-saldo-api-deposito .cmodal-dialog>div:first-child>div:first-child {
        width: 100% !important;
        min-width: 0 !important;
    }

    html body #modal-saas-compra-etapa2 .sc2-header>div:last-child,
    html body #modal-saas-compra-etapa3 .sc3-header>div:last-child,
    html body #modal-saas-compra-etapa4 .sc4-header>div:last-child,
    html body #modal-saas-compra-etapa5 .sc5-header>div:last-child,
    html body #modal-saldo-api-deposito .cmodal-dialog>div:first-child>div:last-child {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        z-index: 5 !important;
    }

    html body #modal-saas-compra-etapa2 .sc2-header .btn-help-info,
    html body #modal-saas-compra-etapa3 .sc3-header .btn-help-info,
    html body #modal-saas-compra-etapa4 .sc4-header .btn-help-info,
    html body #modal-saas-compra-etapa5 .sc5-header .btn-help-info,
    html body #modal-saldo-api-deposito .cmodal-dialog>div:first-child .btn-help-info,
    html body #modal-saas-compra-etapa2 .sc2-btn-close,
    html body #modal-saas-compra-etapa3 .sc3-btn-close,
    html body #modal-saas-compra-etapa4 .sc4-btn-close,
    html body #modal-saas-compra-etapa5 .sc5-btn-close,
    html body #modal-saldo-api-deposito .cmodal-dialog>div:first-child>div:last-child>button:last-child {
        position: static !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
        margin: 0 !important;
    }

    html body #modal-saas-compra-etapa2 .sc2-stepper,
    html body #modal-saas-compra-etapa3 .sc3-stepper,
    html body #modal-saas-compra-etapa4 .sc4-stepper,
    html body #modal-saas-compra-etapa5 .sc5-stepper {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 5px !important;
        margin-bottom: 6px !important;
        padding-right: 72px !important;
        max-width: 100% !important;
    }

    html body #modal-saas-compra-etapa2 .sc2-stepper::-webkit-scrollbar,
    html body #modal-saas-compra-etapa3 .sc3-stepper::-webkit-scrollbar,
    html body #modal-saas-compra-etapa4 .sc4-stepper::-webkit-scrollbar,
    html body #modal-saas-compra-etapa5 .sc5-stepper::-webkit-scrollbar {
        display: none !important;
    }

    html body #modal-saas-compra-etapa2 .sc2-step,
    html body #modal-saas-compra-etapa3 .sc3-step,
    html body #modal-saas-compra-etapa4 .sc4-step,
    html body #modal-saas-compra-etapa5 .sc5-step {
        font-size: 10px !important;
        gap: 4px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    html body #modal-saas-compra-etapa2 .sc2-step-num,
    html body #modal-saas-compra-etapa3 .sc3-step-num,
    html body #modal-saas-compra-etapa4 .sc4-step-num,
    html body #modal-saas-compra-etapa5 .sc5-step-num {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        font-size: 9.5px !important;
        flex-shrink: 0 !important;
    }

    html body #modal-saas-compra-etapa2 .sc2-header h2,
    html body #modal-saas-compra-etapa3 .sc3-header h2,
    html body #modal-saas-compra-etapa4 .sc4-header h2,
    html body #modal-saas-compra-etapa5 .sc5-header h2,
    html body #modal-saldo-api-deposito .cmodal-dialog>div:first-child h2 {
        font-size: 16px !important;
        line-height: 1.25 !important;
        padding-right: 72px !important;
        word-break: break-word !important;
    }

    html body #modal-saas-compra-etapa2 .sc2-header p,
    html body #modal-saas-compra-etapa3 .sc3-header p,
    html body #modal-saas-compra-etapa4 .sc4-header p,
    html body #modal-saas-compra-etapa5 .sc5-header p,
    html body #modal-saldo-api-deposito .cmodal-dialog>div:first-child p {
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        margin-top: 3px !important;
    }

    /* Corpos Etapas 2-5 e Recarga API */
    html body #modal-saas-compra-etapa2 .sc2-body,
    html body #modal-saas-compra-etapa3 .sc3-body,
    html body #modal-saas-compra-etapa4 .sc4-body,
    html body #modal-saas-compra-etapa5 .sc5-body {
        padding: 12px 14px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body #modal-saas-compra-etapa2 .sc2-plano-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 12px 14px !important;
        margin-bottom: 14px !important;
    }

    html body #modal-saas-compra-etapa2 .sc2-plano-banner button {
        width: 100% !important;
        justify-content: center !important;
    }

    html body #modal-saas-compra-etapa2 .sc2-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    html body #modal-saas-compra-etapa2 .sc2-val-card {
        padding: 14px !important;
        min-height: 0 !important;
    }

    html body #modal-saas-compra-etapa3 .sc3-tipo-toggle {
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 14px !important;
    }

    html body #modal-saas-compra-etapa3 .sc3-form-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    html body #modal-saas-compra-etapa3 .sc3-field,
    html body #modal-saas-compra-etapa3 .sc3-section-title {
        grid-column: 1 / -1 !important;
    }

    html body #modal-saas-compra-etapa4 .sc4-summary-card {
        flex-direction: column !important;
        padding: 14px !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
    }

    html body #modal-saas-compra-etapa4 .sc4-summary-card>div:last-child {
        text-align: left !important;
        width: 100% !important;
        padding-top: 10px !important;
        border-top: 1px dashed #cbd5e1 !important;
    }

    html body #modal-saas-compra-etapa4 .sc4-gw-card {
        flex-wrap: wrap !important;
        padding: 12px 14px !important;
        gap: 8px !important;
    }

    html body #modal-saas-compra-etapa4 .sc4-termo-box {
        padding: 12px 14px !important;
        gap: 10px !important;
    }

    html body #modal-saas-compra-etapa5 .sc5-summary-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 12px 14px !important;
        gap: 8px !important;
        margin-bottom: 14px !important;
    }

    html body #modal-saas-compra-etapa5 .sc5-summary-bar>div:last-child {
        text-align: left !important;
    }

    html body #modal-saas-compra-etapa5 .sc5-tabs-wrap {
        flex-direction: column !important;
        gap: 4px !important;
        margin-bottom: 14px !important;
    }

    html body #modal-saas-compra-etapa5 #sc5-preview-num,
    html body #modal-saas-compra-etapa5 #sc5-cartao-salvo-wrap>div:first-child>div:nth-child(3) {
        font-size: 15px !important;
        letter-spacing: 2px !important;
        white-space: nowrap !important;
    }

    html body #modal-saas-compra-etapa5 #sc5-cartao-novo-wrap div:has(> div > #sc5_documento) {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    html body #modal-saldo-api-deposito #form_saldo_api_deposito>div {
        padding: 12px 14px !important;
        gap: 14px !important;
    }

    html body #modal-saldo-api-deposito #form_saldo_api_deposito>div>div:first-child {
        flex: 1 1 100% !important;
        min-width: 0 !important;
    }

    /* Rodapés Etapas 2-5 */
    html body #modal-saas-compra-etapa2 .sc2-footer,
    html body #modal-saas-compra-etapa3 .sc3-footer,
    html body #modal-saas-compra-etapa4 .sc4-footer {
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        padding: 10px 14px !important;
        gap: 8px !important;
    }

    html body #modal-saas-compra-etapa2 .sc2-footer button,
    html body #modal-saas-compra-etapa3 .sc3-footer button,
    html body #modal-saas-compra-etapa4 .sc4-footer button {
        width: 100% !important;
        min-height: 40px !important;
        justify-content: center !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-compra-etapa5 .sc5-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 10px 14px !important;
        gap: 8px !important;
    }

    html body #modal-saas-compra-etapa5 .sc5-footer button {
        width: 100% !important;
        min-height: 40px !important;
        justify-content: center !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-compra-etapa5 .sc5-footer>div:last-child {
        justify-content: center !important;
    }

    /* 8.20.27 Modais WebAssist e Eassist V2 (Sincronização & Configurações/Mapeamento) */
    html body #modal-webassist-sync.tpl-modal-overlay,
    html body #modal-eassist-sync.tpl-modal-overlay,
    html body #modal-eassist-config.tpl-modal-overlay,
    html body #modal-webassist-config.tpl-modal-overlay {
        padding: 6px !important;
    }

    html body #modal-webassist-sync .tpl-modal-container,
    html body #modal-eassist-sync .tpl-modal-container,
    html body #modal-eassist-config .tpl-modal-container,
    html body #modal-webassist-config .tpl-modal-container {
        width: 100% !important;
        max-width: 100% !important;
        height: calc(100dvh - 12px) !important;
        max-height: calc(100dvh - 12px) !important;
        border-radius: 14px !important;
    }

    html body #modal-webassist-sync .tpl-modal-header,
    html body #modal-eassist-sync .tpl-modal-header,
    html body #modal-eassist-config .tpl-modal-header,
    html body #modal-webassist-config .tpl-modal-header {
        position: relative !important;
        padding: 10px 12px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    html body #modal-webassist-sync .tpl-header-left,
    html body #modal-eassist-sync .tpl-header-left,
    html body #modal-eassist-config .tpl-header-left,
    html body #modal-webassist-config .tpl-header-left {
        gap: 9px !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    html body #modal-webassist-sync .tpl-header-left>div:last-child,
    html body #modal-eassist-sync .tpl-header-left>div:last-child,
    html body #modal-eassist-config .tpl-header-left>div:last-child,
    html body #modal-webassist-config .tpl-header-left>div:last-child {
        min-width: 0 !important;
        flex: 1 1 0% !important;
    }

    html body #modal-webassist-sync .tpl-header-icon,
    html body #modal-eassist-sync .tpl-header-icon,
    html body #modal-eassist-config .tpl-header-icon,
    html body #modal-webassist-config .tpl-header-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 9px !important;
        font-size: 16px !important;
    }

    html body #modal-webassist-sync .tpl-header-badge,
    html body #modal-eassist-sync .tpl-header-badge,
    html body #modal-eassist-config .tpl-header-badge,
    html body #modal-webassist-config .tpl-header-badge {
        font-size: 9.5px !important;
        line-height: 1.25 !important;
    }

    html body #modal-webassist-sync .tpl-header-title,
    html body #modal-eassist-sync .tpl-header-title,
    html body #modal-eassist-config .tpl-header-title,
    html body #modal-webassist-config .tpl-header-title {
        font-size: 14.5px !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
    }

    /* Cabeçalho compacto nas modais de Configuração */
    html body #modal-eassist-config .tpl-header-left,
    html body #modal-webassist-config .tpl-header-left {
        padding-right: 72px !important;
    }

    html body #modal-eassist-config .tpl-modal-header>div:last-child,
    html body #modal-webassist-config .tpl-modal-header>div:last-child {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        z-index: 5 !important;
    }

    html body #modal-eassist-config .tpl-modal-header .btn-help-info,
    html body #modal-webassist-config .tpl-modal-header .btn-help-info,
    html body #modal-eassist-config .tpl-btn-close,
    html body #modal-webassist-config .tpl-btn-close {
        position: static !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
        margin: 0 !important;
    }

    /* Cabeçalho compacto nas modais de Sincronização */
    html body #modal-webassist-sync .tpl-modal-header>div:last-child,
    html body #modal-eassist-sync .tpl-modal-header>div:last-child {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        gap: 6px !important;
    }

    html body #modal-webassist-sync .tpl-modal-header>div:last-child .btn-help-info,
    html body #modal-eassist-sync .tpl-modal-header>div:last-child .btn-help-info {
        position: static !important;
        margin-left: auto !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
    }

    html body #modal-webassist-sync .tpl-modal-header>div:last-child .tpl-btn-close,
    html body #modal-eassist-sync .tpl-modal-header>div:last-child .tpl-btn-close {
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
    }

    html body #modal-webassist-sync .tpl-modal-header>div:last-child .btn-modal-default,
    html body #modal-eassist-sync .tpl-modal-header>div:last-child .btn-ea-default {
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }

    /* Faixa de KPIs das modais de Sincronização */
    html body #modal-webassist-sync .stats-strip {
        padding: 8px 10px !important;
        gap: 6px !important;
    }

    html body #modal-webassist-sync .stat-box {
        flex: 0 0 auto !important;
        min-width: 104px !important;
        padding: 6px 9px !important;
        gap: 7px !important;
    }

    html body #modal-webassist-sync .stat-box .stat-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 13px !important;
    }

    html body #modal-webassist-sync .stat-box .stat-val {
        font-size: 15px !important;
    }

    html body #modal-webassist-sync .stat-box .stat-lbl {
        font-size: 9.5px !important;
    }

    html body #modal-eassist-sync .kpi-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 8px 10px !important;
        gap: 6px !important;
    }

    html body #modal-eassist-sync .kpi-card {
        flex: 0 0 94px !important;
        padding: 6px 8px !important;
    }

    html body #modal-eassist-sync .kpi-card .num {
        font-size: 16px !important;
    }

    html body #modal-eassist-sync .kpi-card .lbl {
        font-size: 9.5px !important;
    }

    html body #modal-eassist-sync .ea-tabs-header {
        padding: 6px 10px 0 !important;
        gap: 4px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex-wrap: nowrap !important;
    }

    html body #modal-eassist-sync .ea-tab-btn {
        padding: 8px 10px !important;
        font-size: 11.5px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    html body #modal-eassist-sync .ea-tab-content {
        padding: 10px !important;
    }

    /* Barra de Filtros e Ações em Lote (WebAssistSync & EassistSync) */
    html body #modal-webassist-sync .toolbar-panel,
    html body #modal-eassist-sync .toolbar-row {
        padding: 10px !important;
        gap: 8px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    html body #modal-webassist-sync .toolbar-left,
    html body #modal-eassist-sync .toolbar-left {
        min-width: 0 !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    html body #modal-webassist-sync #waSync-filtro-texto,
    html body #modal-eassist-sync #eaSync-busca {
        grid-column: 1 / -1 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #modal-webassist-sync #waSync-filtro-status,
    html body #modal-webassist-sync #waSync-page-size,
    html body #modal-eassist-sync .ea-select-filter {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    html body #modal-webassist-sync .toolbar-right,
    html body #modal-eassist-sync .toolbar-right {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    html body #modal-webassist-sync #waSync-lote-status {
        grid-column: 1 / -1 !important;
    }

    html body #modal-webassist-sync .toolbar-right button,
    html body #modal-eassist-sync .toolbar-right button {
        width: 100% !important;
        min-width: 0 !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 8px !important;
        font-size: 11.5px !important;
        justify-content: center !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    html body #modal-eassist-sync .toolbar-right .btn-ea-default {
        grid-column: 1 / -1 !important;
    }

    /* Tabelas e Paginação nas modais de Sincronização */
    html body #modal-webassist-sync .tbl-viewport,
    html body #modal-eassist-sync .tbl-wrap {
        overflow-x: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body #modal-webassist-sync table.wa-tbl tbody td,
    html body #modal-eassist-sync table.ea-tbl tbody td {
        padding: 7px 8px !important;
        font-size: 11.5px !important;
    }

    html body #modal-webassist-sync .tpl-modal-footer {
        padding: 8px 10px !important;
        gap: 6px !important;
        justify-content: center !important;
    }

    html body #modal-webassist-sync .pag-info {
        width: 100% !important;
        text-align: center !important;
        font-size: 11.5px !important;
    }

    html body #modal-webassist-sync .pag-controls {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    /* Abas, Sub-abas e Corpo das modais de Configuração */
    html body #modal-eassist-config .cfg-tabs-bar,
    html body #modal-webassist-config .cfg-tabs-bar {
        padding: 6px 10px 0 !important;
        gap: 4px !important;
    }

    html body #modal-eassist-config .cfg-tab-btn,
    html body #modal-webassist-config .cfg-tab-btn {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        padding: 8px 6px !important;
        font-size: 11.5px !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: 1.25 !important;
    }

    html body #modal-eassist-config .cfg-tab-pane,
    html body #modal-webassist-config .tpl-modal-body {
        padding: 12px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body #modal-eassist-config .ea-subtabs-nav {
        flex-direction: column !important;
        gap: 6px !important;
        margin-bottom: 12px !important;
    }

    html body #modal-eassist-config .ea-subtab-btn {
        width: 100% !important;
        justify-content: space-between !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    /* Hero Banner Aba Credenciais (EassistMapeamentoForm) */
    html body #modal-eassist-config .ea-hero-banner {
        padding: 12px !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    html body #modal-eassist-config .ea-hero-left {
        min-width: 0 !important;
        width: 100% !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    html body #modal-eassist-config .ea-hero-left>div:last-child {
        min-width: 0 !important;
        flex: 1 1 0% !important;
    }

    html body #modal-eassist-config .ea-hero-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    html body #modal-eassist-config .ea-hero-title {
        font-size: 14px !important;
        line-height: 1.25 !important;
        word-break: break-word !important;
    }

    html body #modal-eassist-config .ea-hero-desc {
        font-size: 11.5px !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }

    html body #modal-eassist-config .ea-hero-right,
    html body #modal-eassist-config .ea-status-pill-box {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #modal-eassist-config .ea-pill-code {
        font-size: 11.5px !important;
        word-break: break-all !important;
    }

    /* Cards de Formulário e Info Boxes */
    html body #modal-eassist-config .ea-cfg-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    html body #modal-eassist-config .ea-card-secao {
        padding: 12px !important;
        margin-bottom: 12px !important;
    }

    html body #modal-eassist-config .ea-secao-header {
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin-bottom: 10px !important;
    }

    html body #modal-eassist-config .form-group-row {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 12px !important;
    }

    html body #modal-eassist-config .form-field[style*="max-width:140px"] {
        max-width: 100% !important;
    }

    html body #modal-eassist-config .ea-info-card,
    html body #modal-webassist-config .wa-info-card {
        padding: 10px 12px !important;
        gap: 10px !important;
        font-size: 11.5px !important;
        margin-bottom: 12px !important;
        align-items: flex-start !important;
    }

    /* Toolbars de Mapeamento */
    html body #modal-eassist-config .ea-subtab-toolbar,
    html body #modal-webassist-config .wa-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    html body #modal-eassist-config .ea-search-wrap,
    html body #modal-webassist-config .wa-search-wrap {
        max-width: 100% !important;
        width: 100% !important;
    }

    html body #modal-eassist-config .ea-stats-pill,
    html body #modal-webassist-config .wa-stats-pill {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    html body #modal-eassist-config .btn-int-add {
        width: 100% !important;
        justify-content: center !important;
        min-height: 38px !important;
        box-sizing: border-box !important;
    }

    /* Tabelas de Mapeamento convertidas em Cards Mobile */
    html body #modal-eassist-config .ea-table-container,
    html body #modal-webassist-config .wa-table-container {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    html body #modal-eassist-config .ea-table,
    html body #modal-eassist-config .ea-table tbody,
    html body #modal-webassist-config .wa-table,
    html body #modal-webassist-config .wa-table tbody {
        display: block !important;
        width: 100% !important;
        table-layout: auto !important;
    }

    html body #modal-eassist-config .ea-table thead,
    html body #modal-webassist-config .wa-table thead {
        display: none !important;
    }

    /* Catálogo Eassist (tr.ea-row-prod) */
    html body #modal-eassist-config #tbody-mapeamento-catalogo tr.ea-row-prod:not([style*="display: none" i]):not([style*="display:none" i]) {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 12px !important;
        margin-bottom: 10px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    html body #modal-eassist-config #tbody-mapeamento-catalogo tr.ea-row-prod td,
    html body #modal-eassist-config #tbody-mapeamento-textual tr.ea-row-textual td,
    html body #modal-webassist-config .wa-table tbody tr td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        border: none !important;
    }

    html body #modal-eassist-config .ea-table tbody td:has(.ea-arrow-icon),
    html body #modal-webassist-config .wa-table tbody td:has(.wa-arrow-icon) {
        display: none !important;
    }

    html body #modal-eassist-config #tbody-mapeamento-catalogo tr.ea-row-prod td:nth-child(1) {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: auto !important;
    }

    html body #modal-eassist-config #tbody-mapeamento-catalogo tr.ea-row-prod td:nth-child(7) {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        width: auto !important;
    }

    html body #modal-eassist-config #tbody-mapeamento-catalogo tr.ea-row-prod td:nth-child(2) {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
    }

    html body #modal-eassist-config #tbody-mapeamento-catalogo tr.ea-row-prod td:nth-child(4) {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
    }

    html body #modal-eassist-config #tbody-mapeamento-catalogo tr.ea-row-prod td:nth-child(5) {
        grid-column: 1 / -1 !important;
        grid-row: 4 !important;
    }

    html body #modal-eassist-config #tbody-mapeamento-catalogo tr.ea-row-prod td:nth-child(6) {
        grid-column: 1 / -1 !important;
        grid-row: 5 !important;
    }

    html body #modal-eassist-config #tbody-mapeamento-catalogo tr.ea-row-prod td:nth-child(4)::before,
    html body #modal-eassist-config #tbody-mapeamento-catalogo tr.ea-row-prod td:nth-child(5)::before,
    html body #modal-eassist-config #tbody-mapeamento-catalogo tr.ea-row-prod td:nth-child(6)::before,
    html body #modal-eassist-config #tbody-mapeamento-textual tr.ea-row-textual td:nth-child(1)::before,
    html body #modal-eassist-config #tbody-mapeamento-textual tr.ea-row-textual td:nth-child(3)::before,
    html body #modal-eassist-config #tbody-mapeamento-textual tr.ea-row-textual td:nth-child(4)::before,
    html body #modal-eassist-config #tbody-mapeamento-textual tr.ea-row-textual td:nth-child(5)::before,
    html body #modal-webassist-config .wa-table tbody tr td:nth-child(4)::before {
        display: block !important;
        font-size: 10.5px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.4px !important;
        color: #64748b !important;
        margin-bottom: 4px !important;
    }

    html body #modal-eassist-config #tbody-mapeamento-catalogo tr.ea-row-prod td:nth-child(4)::before {
        content: 'Produto na Eassist' !important;
    }

    html body #modal-eassist-config #tbody-mapeamento-catalogo tr.ea-row-prod td:nth-child(5)::before {
        content: 'Código Eassist' !important;
    }

    html body #modal-eassist-config #tbody-mapeamento-catalogo tr.ea-row-prod td:nth-child(6)::before {
        content: 'Descrição contratada na Eassist' !important;
    }

    html body #modal-eassist-config .ea-map-prod-cod,
    html body #modal-eassist-config .ea-map-text-cod {
        text-align: left !important;
    }

    html body #modal-eassist-config textarea.ea-input-field {
        min-height: 58px !important;
        height: auto !important;
    }

    /* Textual Eassist (tr.ea-row-textual) */
    html body #modal-eassist-config #tbody-mapeamento-textual tr.ea-row-textual:not([style*="display: none" i]):not([style*="display:none" i]) {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 12px !important;
        margin-bottom: 10px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    html body #modal-eassist-config #tbody-mapeamento-textual tr.ea-row-textual td:nth-child(1)::before {
        content: 'Termo / palavra-chave (Cotação)' !important;
    }

    html body #modal-eassist-config #tbody-mapeamento-textual tr.ea-row-textual td:nth-child(3)::before {
        content: 'Produto na Eassist' !important;
    }

    html body #modal-eassist-config #tbody-mapeamento-textual tr.ea-row-textual td:nth-child(4)::before {
        content: 'Código Eassist' !important;
    }

    html body #modal-eassist-config #tbody-mapeamento-textual tr.ea-row-textual td:nth-child(5)::before {
        content: 'Descrição contratada na Eassist' !important;
    }

    html body #modal-eassist-config #tbody-mapeamento-textual tr.ea-row-textual td:nth-child(6) .btn-row-del {
        width: 100% !important;
        justify-content: center !important;
        min-height: 36px !important;
        box-sizing: border-box !important;
    }

    /* Mapeamento WebAssist (table.wa-table) */
    html body #modal-webassist-config .wa-table tbody tr:not([style*="display: none" i]):not([style*="display:none" i]) {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 12px !important;
        margin-bottom: 10px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    html body #modal-webassist-config .wa-table tbody tr td:nth-child(1) {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: auto !important;
    }

    html body #modal-webassist-config .wa-table tbody tr td:nth-child(5) {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        width: auto !important;
    }

    html body #modal-webassist-config .wa-table tbody tr td:nth-child(2) {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
    }

    html body #modal-webassist-config .wa-table tbody tr td:nth-child(4) {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
    }

    html body #modal-webassist-config .wa-table tbody tr td:nth-child(4)::before {
        content: 'Código / Categoria WebAssist' !important;
    }

    /* Rodapés das modais de Configuração */
    html body #modal-eassist-config .tpl-modal-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 10px 12px !important;
    }

    html body #modal-eassist-config .tpl-modal-footer>.btn-modal-default {
        width: 100% !important;
        justify-content: center !important;
        min-height: 38px !important;
        box-sizing: border-box !important;
    }

    html body #modal-eassist-config .tpl-modal-footer>div:last-child {
        display: flex !important;
        width: 100% !important;
        gap: 8px !important;
    }

    html body #modal-eassist-config .tpl-modal-footer>div:last-child .btn-int-sec {
        flex: 0 0 auto !important;
        min-height: 40px !important;
        padding: 0 14px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    html body #modal-eassist-config .tpl-modal-footer>div:last-child .btn-int-primary {
        flex: 1 1 0% !important;
        min-height: 40px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    html body #modal-webassist-config .tpl-modal-footer {
        padding: 10px 12px !important;
        gap: 8px !important;
    }

    html body #modal-webassist-config .tpl-modal-footer .btn-int-sec {
        flex: 0 0 auto !important;
        min-height: 40px !important;
        box-sizing: border-box !important;
    }

    html body #modal-webassist-config .tpl-modal-footer .btn-int-primary {
        flex: 1 1 0% !important;
        min-height: 40px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* 8.20.28 Modais de Webhook de Pagamento (.wh-*) */
    html body #modal-saas-unidade-gateway-webhook.tpl-modal-overlay,
    html body #modal-gateway-webhook.tpl-modal-overlay,
    html body #modal-saas-gateway-pagamento-webhook.tpl-modal-overlay {
        padding: 8px !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-modal-container,
    html body #modal-gateway-webhook .wh-modal-container,
    html body #modal-saas-gateway-pagamento-webhook .wh-modal-container {
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100dvh - 16px) !important;
        border-radius: 14px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-modal-header,
    html body #modal-gateway-webhook .wh-modal-header,
    html body #modal-saas-gateway-pagamento-webhook .wh-modal-header {
        position: relative !important;
        padding: 12px 14px !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0 !important;
        flex-shrink: 0 !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-header-left,
    html body #modal-gateway-webhook .wh-header-left,
    html body #modal-saas-gateway-pagamento-webhook .wh-header-left {
        gap: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding-right: 72px !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-header-left>div:last-child,
    html body #modal-gateway-webhook .wh-header-left>div:last-child,
    html body #modal-saas-gateway-pagamento-webhook .wh-header-left>div:last-child {
        min-width: 0 !important;
        flex: 1 1 0% !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-header-icon,
    html body #modal-gateway-webhook .wh-header-icon,
    html body #modal-saas-gateway-pagamento-webhook .wh-header-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 9px !important;
        font-size: 16px !important;
        flex-shrink: 0 !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-header-badge,
    html body #modal-gateway-webhook .wh-header-badge,
    html body #modal-saas-gateway-pagamento-webhook .wh-header-badge {
        font-size: 9.5px !important;
        line-height: 1.25 !important;
        margin-bottom: 2px !important;
        word-break: break-word !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-header-title,
    html body #modal-gateway-webhook .wh-header-title,
    html body #modal-saas-gateway-pagamento-webhook .wh-header-title {
        font-size: 15px !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-modal-header>div:last-child,
    html body #modal-gateway-webhook .wh-modal-header>div:last-child,
    html body #modal-saas-gateway-pagamento-webhook .wh-modal-header>div:last-child {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        z-index: 5 !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-modal-header .btn-help-info,
    html body #modal-gateway-webhook .wh-modal-header .btn-help-info,
    html body #modal-saas-gateway-pagamento-webhook .wh-modal-header .btn-help-info,
    html body #modal-saas-unidade-gateway-webhook .wh-btn-close,
    html body #modal-gateway-webhook .wh-btn-close,
    html body #modal-saas-gateway-pagamento-webhook .wh-btn-close {
        position: static !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        margin: 0 !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-modal-body,
    html body #modal-gateway-webhook .wh-modal-body,
    html body #modal-saas-gateway-pagamento-webhook .wh-modal-body {
        padding: 12px !important;
        gap: 12px !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-modal-body>*,
    html body #modal-gateway-webhook .wh-modal-body>*,
    html body #modal-saas-gateway-pagamento-webhook .wh-modal-body>* {
        flex-shrink: 0 !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-info-card,
    html body #modal-gateway-webhook .wh-info-card,
    html body #modal-saas-gateway-pagamento-webhook .wh-info-card {
        padding: 12px !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-card-section,
    html body #modal-gateway-webhook .wh-card-section,
    html body #modal-saas-gateway-pagamento-webhook .wh-card-section {
        padding: 12px !important;
        gap: 12px !important;
        overflow: visible !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-gateway-pagamento-webhook .wh-asaas-events-grid {
        grid-template-columns: 1fr !important;
        max-height: 220px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex-shrink: 0 !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-field-label,
    html body #modal-gateway-webhook .wh-field-label,
    html body #modal-saas-gateway-pagamento-webhook .wh-field-label {
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-input-group,
    html body #modal-gateway-webhook .wh-input-group,
    html body #modal-saas-gateway-pagamento-webhook .wh-input-group {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-input-group .wh-input,
    html body #modal-gateway-webhook .wh-input-group .wh-input,
    html body #modal-saas-gateway-pagamento-webhook .wh-input-group .wh-input {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 38px !important;
        padding: 0 12px !important;
        font-size: 12.5px !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-input-group .wh-btn-copy,
    html body #modal-gateway-webhook .wh-input-group .wh-btn-copy,
    html body #modal-saas-gateway-pagamento-webhook .wh-input-group .wh-btn-copy {
        min-height: 38px !important;
        height: 38px !important;
        padding: 0 14px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-input-group .wh-btn-copy:last-child,
    html body #modal-gateway-webhook .wh-input-group .wh-btn-copy:last-child,
    html body #modal-saas-gateway-pagamento-webhook .wh-input-group .wh-btn-copy:last-child {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-input-group .wh-btn-send,
    html body #modal-gateway-webhook .wh-input-group .wh-btn-send,
    html body #modal-saas-gateway-pagamento-webhook .wh-input-group .wh-btn-send {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 38px !important;
        height: 38px !important;
        padding: 0 12px !important;
        justify-content: center !important;
        font-size: 12px !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-file-input,
    html body #modal-gateway-webhook .wh-file-input,
    html body #modal-saas-gateway-pagamento-webhook .wh-file-input {
        max-width: 100% !important;
        width: 100% !important;
        font-size: 12px !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-tools-bar,
    html body #modal-gateway-webhook .wh-tools-bar,
    html body #modal-saas-gateway-pagamento-webhook .wh-tools-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-tools-bar button,
    html body #modal-gateway-webhook .wh-tools-bar button,
    html body #modal-saas-gateway-pagamento-webhook .wh-tools-bar button {
        width: 100% !important;
        min-height: 36px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-terminal-bar,
    html body #modal-gateway-webhook .wh-terminal-bar,
    html body #modal-saas-gateway-pagamento-webhook .wh-terminal-bar {
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 7px 10px !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-terminal-title,
    html body #modal-gateway-webhook .wh-terminal-title,
    html body #modal-saas-gateway-pagamento-webhook .wh-terminal-title {
        font-size: 10px !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-console-output,
    html body #modal-gateway-webhook .wh-console-output,
    html body #modal-saas-gateway-pagamento-webhook .wh-console-output {
        padding: 10px 12px !important;
        font-size: 11px !important;
        max-height: 180px !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-modal-footer,
    html body #modal-gateway-webhook .wh-modal-footer,
    html body #modal-saas-gateway-pagamento-webhook .wh-modal-footer {
        padding: 10px 12px !important;
        gap: 8px !important;
        justify-content: stretch !important;
        flex-shrink: 0 !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-btn-footer-close,
    html body #modal-gateway-webhook .wh-btn-footer-close,
    html body #modal-saas-gateway-pagamento-webhook .wh-btn-footer-close {
        flex: 0 0 auto !important;
        min-height: 40px !important;
        padding: 0 14px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    html body #modal-saas-unidade-gateway-webhook .wh-btn-footer-save,
    html body #modal-gateway-webhook .wh-btn-footer-save,
    html body #modal-saas-gateway-pagamento-webhook .wh-btn-footer-save {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        min-height: 40px !important;
        padding: 0 14px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* 8.20.29 Saldo API (Requisições por API) & Gateway Asaas da Empresa (EmpresaGatewayAsaasForm) */
    html body .saldo-api-estatisticas-row {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body .saldo-api-estatisticas-row .card-estatistica,
    html body .saldo-api-estatisticas-row .card-duplo {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    html body #adianti_right_panel.right-panel>.container-part[page-name="EmpresaGatewayAsaasForm"],
    html body .right-panel>.container-part[page-name="EmpresaGatewayAsaasForm"] {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    html body .empresa-gateway-asaas-form {
        padding: 0 8px 16px !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    html body .empresa-gateway-asaas-form .panel-heading {
        position: relative !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px 12px 10px !important;
        gap: 10px !important;
        margin: 0 -8px 10px !important;
    }

    html body .empresa-gateway-asaas-form .panel-heading .panel-title {
        padding-right: 40px !important;
        font-size: 15px !important;
        line-height: 1.25 !important;
    }

    html body .empresa-gateway-asaas-form .panel-heading .header-actions {
        width: 100% !important;
        margin-left: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
    }

    html body .empresa-gateway-asaas-form .panel-heading .btn-help-info {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        margin: 0 !important;
    }

    html body .empresa-gateway-asaas-form .panel-heading .header-actions button.btn:not(.btn-help-info) {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        min-height: 36px !important;
        margin: 0 !important;
        justify-content: center !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    html body .empresa-gateway-asaas-topbar {
        padding: 12px !important;
        gap: 10px !important;
    }

    html body .ega-topbar-left {
        width: 100% !important;
        min-width: 0 !important;
        align-items: flex-start !important;
    }

    html body .ega-icon-box {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    html body .ega-chip {
        flex: 1 1 auto !important;
        justify-content: center !important;
        padding: 5px 8px !important;
        font-size: 11.5px !important;
    }

    html body .empresa-gateway-asaas-form #tbutton_btn_configurar_webhook_gateway_empresa,
    html body .empresa-gateway-asaas-form #tbutton_btn_verificar_webhook_gateway_empresa,
    html body .empresa-gateway-asaas-form button[name="btn_configurar_webhook_gateway_empresa"],
    html body .empresa-gateway-asaas-form button[name="btn_verificar_webhook_gateway_empresa"] {
        width: 100% !important;
        min-height: 38px !important;
        height: auto !important;
        padding: 8px 12px !important;
        white-space: normal !important;
        justify-content: center !important;
        margin-bottom: 6px !important;
        box-sizing: border-box !important;
    }

    html body .ega-tutorial-card {
        padding: 14px !important;
    }

    html body .ega-tutorial-header {
        gap: 10px !important;
        padding-bottom: 12px !important;
        margin-bottom: 12px !important;
    }

    html body .ega-tutorial-header-left {
        min-width: 0 !important;
        width: 100% !important;
        align-items: flex-start !important;
    }

    html body .ega-affiliate-btn {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    html body .ega-tutorial-steps {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* ----------------------------------------------------------------------
       8.20.30 CENTRAL DE MÍDIA DO PARCEIRO (#spcm-modal-theater / QR / Criativo)
       ---------------------------------------------------------------------- */
    html body .spcm-modal-backdrop .spcm-theater-card {
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    html body .spcm-modal-backdrop .spcm-modal-header {
        padding: 10px 12px !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
        flex-wrap: nowrap !important;
    }

    html body .spcm-modal-backdrop .spcm-modal-header-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    html body .spcm-modal-backdrop .spcm-modal-header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    html body #spcm-btn-modo-reuniao.spcm-btn-meeting {
        width: auto !important;
        min-width: 0 !important;
        height: 32px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        gap: 5px !important;
    }

    html body #spcm-btn-modo-reuniao.spcm-btn-meeting i {
        color: #0f766e !important;
    }

    html body #spcm-btn-modo-reuniao.spcm-btn-meeting.is-active {
        background: #0f766e !important;
        border-color: #14b8a6 !important;
        color: #ffffff !important;
    }

    html body #spcm-btn-modo-reuniao.spcm-btn-meeting.is-active i {
        color: #ffffff !important;
    }

    html body .spcm-modal-backdrop .spcm-theater-body {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body #spcm-modal-theater #spcm-meeting-qr-panel.spcm-meeting-slot {
        order: -1 !important;
        flex-shrink: 0 !important;
        padding: 10px 10px 0 10px !important;
        background: #f0fdfa !important;
    }

    html body #spcm-modal-theater .spcm-player-col {
        order: 0 !important;
        border-right: none !important;
        padding: 12px !important;
        flex-shrink: 0 !important;
    }

    html body #spcm-modal-theater .spcm-sidebar-col {
        order: 1 !important;
        overflow-y: visible !important;
        padding: 12px !important;
        flex-shrink: 0 !important;
    }

    html body #spcm-modal-qr .spcm-small-modal {
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* ----------------------------------------------------------------------
       8.20.31 MODAL DE LEITURA / PRÉ-VISUALIZAÇÃO DO BLOG (#central-blog-post-modal)
       ---------------------------------------------------------------------- */
    html body #central-blog-post-modal .cblog-modal-card {
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    html body #central-blog-post-modal .cblog-modal-hero {
        padding: 12px 14px 10px !important;
        flex-shrink: 0 !important;
    }

    html body #central-blog-post-modal .cblog-modal-x {
        top: 10px !important;
        right: 10px !important;
        width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
    }

    html body #central-blog-post-modal .cblog-modal-badges {
        gap: 5px !important;
        margin-bottom: 6px !important;
        padding-right: 36px !important;
    }

    html body #central-blog-post-modal .cblog-modal-badges>span {
        padding: 2px 7px !important;
        font-size: 10px !important;
        gap: 4px !important;
        line-height: 1.3 !important;
    }

    html body #central-blog-post-modal .cblog-modal-title {
        font-size: 15.5px !important;
        line-height: 1.24 !important;
        padding-right: 0 !important;
    }

    html body #central-blog-post-modal .cblog-modal-meta {
        gap: 3px 10px !important;
        margin-top: 6px !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
    }

    html body #central-blog-post-modal .cblog-modal-body {
        padding: 14px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html body #central-blog-post-modal .cblog-article-body {
        font-size: 13.5px !important;
        line-height: 1.58 !important;
    }

    html body #central-blog-post-modal .cblog-modal-footer {
        padding: 10px 14px !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    html body #central-blog-post-modal .cblog-modal-btn-close {
        flex: 0 0 auto !important;
        width: auto !important;
        padding: 8px 12px !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
    }

    html body #central-blog-post-modal .cblog-modal-cta {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        justify-content: center !important;
        padding: 8px 12px !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* ----------------------------------------------------------------------
       8.20.32 MODAL DE DIFF DE CÓDIGO (BuilderPageBatchUpdate / diff.html)
       ---------------------------------------------------------------------- */
    html body .ui-dialog:has(iframe[src*="diff.html"]):not([style*="display:none" i]):not([style*="display: none" i]),
    html body.theme-mode-modern .ui-dialog:has(iframe[src*="diff.html"]):not([style*="display:none" i]):not([style*="display: none" i]) {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        height: calc(100dvh - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        top: 8px !important;
        left: 8px !important;
        right: 8px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    html body .ui-dialog:has(iframe[src*="diff.html"]) .ui-dialog-titlebar,
    html body.theme-mode-modern .ui-dialog:has(iframe[src*="diff.html"]) .ui-dialog-titlebar {
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: 44px !important;
        max-height: none !important;
        padding: 10px 48px 10px 14px !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    html body .ui-dialog:has(iframe[src*="diff.html"]) .ui-dialog-title,
    html body.theme-mode-modern .ui-dialog:has(iframe[src*="diff.html"]) .ui-dialog-title {
        font-size: 13.5px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
        overflow: visible !important;
        text-overflow: clip !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body .ui-dialog:has(iframe[src*="diff.html"])>.ui-dialog-content,
    html body.theme-mode-modern .ui-dialog:has(iframe[src*="diff.html"])>.ui-dialog-content {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        padding: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
    }

    html body .ui-dialog:has(iframe[src*="diff.html"]) iframe[src*="diff.html"] {
        flex: 1 1 auto !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        display: block !important;
        border: 0 !important;
    }

    /* ----------------------------------------------------------------------
       8.20.33 NOTIFICAÇÕES DO SISTEMA (SystemNotificationList)
       ---------------------------------------------------------------------- */
    html body #form_search_SystemNotification .panel-footer,
    html body #form_search_SystemNotification .card-footer {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    html body #form_search_SystemNotification .panel-footer button.btn,
    html body #form_search_SystemNotification .card-footer button.btn {
        height: auto !important;
        min-height: 36px !important;
        padding: 6px 10px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        text-align: center !important;
        line-height: 1.25 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    html body #form_search_SystemNotification .panel-footer button.btn.btn-primary,
    html body #form_search_SystemNotification .card-footer button.btn.btn-primary {
        order: 1 !important;
        flex: 1 1 calc(50% - 4px) !important;
        width: auto !important;
    }

    html body #form_search_SystemNotification .panel-footer button.btn:has(i.fa-eraser),
    html body #form_search_SystemNotification .card-footer button.btn:has(i.fa-eraser) {
        order: 2 !important;
        flex: 1 1 calc(50% - 4px) !important;
        width: auto !important;
    }

    html body #form_search_SystemNotification .panel-footer button.btn:has(i.fa-check-circle),
    html body #form_search_SystemNotification .card-footer button.btn:has(i.fa-check-circle) {
        order: 3 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    html body #form_search_SystemNotification .panel-footer button.btn:has(i.fa-envelope),
    html body #form_search_SystemNotification .card-footer button.btn:has(i.fa-envelope) {
        order: 4 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    html body #SystemNotificationList_datagrid {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }

    html body #SystemNotificationList_datagrid th:first-child,
... [truncated for diff preview]