/**
 * CSS Global - ZOE Condo Manager Client Hub
 * Força Montserrat em TODOS os lugares e corrige problemas de design
 */

/* Importar Montserrat (já carregado via icons.php, mas garantindo) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* APLICAR MONTSERRAT APENAS EM ELEMENTOS DO PLUGIN ZOE */
/* NUNCA aplicar globalmente para não quebrar WordPress core (dashicons, admin-bar, etc) */
/* EXCEÇÃO: Elementos Font Awesome e dashicons não devem herdar Montserrat */
.zoe-cmc-dashboard *:not([class*="fa-"]):not([class^="fa-"]):not([class*="dashicons"]):not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.dashicons),
.zoe-cmc-listagem *:not([class*="fa-"]):not([class^="fa-"]):not([class*="dashicons"]):not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.dashicons),
.zoe-cmc-marketing *:not([class*="fa-"]):not([class^="fa-"]):not([class*="dashicons"]):not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.dashicons),
.zoe-cmc-helpdesk *:not([class*="fa-"]):not([class^="fa-"]):not([class*="dashicons"]):not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.dashicons),
.zoe-cmc-tickets *:not([class*="fa-"]):not([class^="fa-"]):not([class*="dashicons"]):not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.dashicons),
.zoe-cmc-documents *:not([class*="fa-"]):not([class^="fa-"]):not([class*="dashicons"]):not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.dashicons),
.zoe-cmc-financeiro *:not([class*="fa-"]):not([class^="fa-"]):not([class*="dashicons"]):not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.dashicons),
.zoe-cmc-single *:not([class*="fa-"]):not([class^="fa-"]):not([class*="dashicons"]):not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.dashicons) {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Textos regulares - weight 400 - APENAS em elementos do plugin */
.zoe-cmc-dashboard body,
.zoe-cmc-dashboard p,
.zoe-cmc-dashboard span,
.zoe-cmc-dashboard div,
.zoe-cmc-dashboard input,
.zoe-cmc-dashboard textarea,
.zoe-cmc-dashboard select,
.zoe-cmc-dashboard button,
.zoe-cmc-dashboard a,
.zoe-cmc-dashboard td,
.zoe-cmc-dashboard th,
.zoe-cmc-dashboard label,
.zoe-cmc-dashboard li,
.zoe-cmc-dashboard ul,
.zoe-cmc-dashboard ol,
.zoe-cmc-dashboard table,
.zoe-cmc-dashboard form,
.zoe-cmc-dashboard fieldset,
.zoe-cmc-dashboard legend,
.zoe-cmc-listagem body,
.zoe-cmc-listagem p,
.zoe-cmc-listagem span,
.zoe-cmc-listagem div,
.zoe-cmc-listagem input,
.zoe-cmc-listagem textarea,
.zoe-cmc-listagem select,
.zoe-cmc-listagem button,
.zoe-cmc-listagem a,
.zoe-cmc-listagem td,
.zoe-cmc-listagem th,
.zoe-cmc-listagem label,
.zoe-cmc-listagem li,
.zoe-cmc-listagem ul,
.zoe-cmc-listagem ol,
.zoe-cmc-listagem table,
.zoe-cmc-listagem form,
.zoe-cmc-listagem fieldset,
.zoe-cmc-listagem legend,
.zoe-cmc-marketing body,
.zoe-cmc-marketing p,
.zoe-cmc-marketing span,
.zoe-cmc-marketing div,
.zoe-cmc-marketing input,
.zoe-cmc-marketing textarea,
.zoe-cmc-marketing select,
.zoe-cmc-marketing button,
.zoe-cmc-marketing a,
.zoe-cmc-marketing td,
.zoe-cmc-marketing th,
.zoe-cmc-marketing label,
.zoe-cmc-marketing li,
.zoe-cmc-marketing ul,
.zoe-cmc-marketing ol,
.zoe-cmc-marketing table,
.zoe-cmc-marketing form,
.zoe-cmc-marketing fieldset,
.zoe-cmc-marketing legend,
.zoe-cmc-helpdesk body,
.zoe-cmc-helpdesk p,
.zoe-cmc-helpdesk span,
.zoe-cmc-helpdesk div,
.zoe-cmc-helpdesk input,
.zoe-cmc-helpdesk textarea,
.zoe-cmc-helpdesk select,
.zoe-cmc-helpdesk button,
.zoe-cmc-helpdesk a,
.zoe-cmc-helpdesk td,
.zoe-cmc-helpdesk th,
.zoe-cmc-helpdesk label,
.zoe-cmc-helpdesk li,
.zoe-cmc-helpdesk ul,
.zoe-cmc-helpdesk ol,
.zoe-cmc-helpdesk table,
.zoe-cmc-helpdesk form,
.zoe-cmc-helpdesk fieldset,
.zoe-cmc-helpdesk legend,
.zoe-cmc-tickets body,
.zoe-cmc-tickets p,
.zoe-cmc-tickets span,
.zoe-cmc-tickets div,
.zoe-cmc-tickets input,
.zoe-cmc-tickets textarea,
.zoe-cmc-tickets select,
.zoe-cmc-tickets button,
.zoe-cmc-tickets a,
.zoe-cmc-tickets td,
.zoe-cmc-tickets th,
.zoe-cmc-tickets label,
.zoe-cmc-tickets li,
.zoe-cmc-tickets ul,
.zoe-cmc-tickets ol,
.zoe-cmc-tickets table,
.zoe-cmc-tickets form,
.zoe-cmc-tickets fieldset,
.zoe-cmc-tickets legend,
.zoe-cmc-documents body,
.zoe-cmc-documents p,
.zoe-cmc-documents span,
.zoe-cmc-documents div,
.zoe-cmc-documents input,
.zoe-cmc-documents textarea,
.zoe-cmc-documents select,
.zoe-cmc-documents button,
.zoe-cmc-documents a,
.zoe-cmc-documents td,
.zoe-cmc-documents th,
.zoe-cmc-documents label,
.zoe-cmc-documents li,
.zoe-cmc-documents ul,
.zoe-cmc-documents ol,
.zoe-cmc-documents table,
.zoe-cmc-documents form,
.zoe-cmc-documents fieldset,
.zoe-cmc-documents legend,
.zoe-cmc-financeiro body,
.zoe-cmc-financeiro p,
.zoe-cmc-financeiro span,
.zoe-cmc-financeiro div,
.zoe-cmc-financeiro input,
.zoe-cmc-financeiro textarea,
.zoe-cmc-financeiro select,
.zoe-cmc-financeiro button,
.zoe-cmc-financeiro a,
.zoe-cmc-financeiro td,
.zoe-cmc-financeiro th,
.zoe-cmc-financeiro label,
.zoe-cmc-financeiro li,
.zoe-cmc-financeiro ul,
.zoe-cmc-financeiro ol,
.zoe-cmc-financeiro table,
.zoe-cmc-financeiro form,
.zoe-cmc-financeiro fieldset,
.zoe-cmc-financeiro legend,
.zoe-cmc-single body,
.zoe-cmc-single p,
.zoe-cmc-single span,
.zoe-cmc-single div,
.zoe-cmc-single input,
.zoe-cmc-single textarea,
.zoe-cmc-single select,
.zoe-cmc-single button,
.zoe-cmc-single a,
.zoe-cmc-single td,
.zoe-cmc-single th,
.zoe-cmc-single label,
.zoe-cmc-single li,
.zoe-cmc-single ul,
.zoe-cmc-single ol,
.zoe-cmc-single table,
.zoe-cmc-single form,
.zoe-cmc-single fieldset,
.zoe-cmc-single legend {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 400 !important;
}

/* Títulos - weight 700 (bold) */
h1,
h2,
h3,
h4,
h5,
h6,
.zoe-cmc-dashboard h1,
.zoe-cmc-dashboard h2,
.zoe-cmc-dashboard h3,
.zoe-cmc-dashboard h4,
.zoe-cmc-dashboard h5,
.zoe-cmc-dashboard h6,
.zoe-cmc-listagem h1,
.zoe-cmc-listagem h2,
.zoe-cmc-listagem h3,
.zoe-cmc-stat-card h3,
.zoe-cmc-card-title,
.zoe-cmc-modal-header h3,
.zoe-cmc-section-header h2,
.zoe-cmc-single-title,
.zoe-cmc-single-section h3,
.zoe-cmc-dashboard-header h1,
.zoe-cmc-listagem-header h2,
.zoe-cmc-form-section h3,
.zoe-cmc-marketing h2,
.zoe-cmc-marketing h3,
.zoe-cmc-helpdesk h1,
.zoe-cmc-helpdesk h2,
.zoe-cmc-helpdesk h3,
.zoe-cmc-tickets h1,
.zoe-cmc-tickets h2,
.zoe-cmc-tickets h3,
.zoe-cmc-documents h1,
.zoe-cmc-documents h2,
.zoe-cmc-documents h3,
.zoe-cmc-financeiro h1,
.zoe-cmc-financeiro h2,
.zoe-cmc-financeiro h3 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 700 !important;
}

/* Corrigir ícones Font Awesome - GARANTIR que não herdam Montserrat */
/* Font Awesome usa font-family específica que deve ser preservada */
.zoe-cmc-icon i,
.zoe-cmc-stat-icon i,
.zoe-cmc-kpi-icon i,
i.fa,
i.fas,
i.far,
i.fab,
.fa,
.fas,
.far,
.fab,
[class*="fa-"],
[class^="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
    line-height: 1 !important;
}

/* Ícones solid (fas) - weight 900 */
i.fas,
.fas,
.zoe-cmc-icon .fas,
[class*="fas fa-"] {
    font-weight: 900 !important;
}

/* Ícones regular (far) - weight 400 */
i.far,
.far,
.zoe-cmc-icon .far,
[class*="far fa-"] {
    font-weight: 400 !important;
}

/* Ícones brands (fab) - weight 400 */
i.fab,
.fab,
.zoe-cmc-icon .fab,
[class*="fab fa-"] {
    font-weight: 400 !important;
    font-family: "Font Awesome 6 Brands" !important;
}

/* Garantir que elementos com classes Font Awesome não herdam Montserrat */
i[class*="fa-"],
span[class*="fa-"],
div[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
}

/* Garantir que ícones dentro de elementos do plugin funcionem CORRETAMENTE */
.zoe-cmc-icon,
.zoe-cmc-stat-icon,
.zoe-cmc-kpi-icon {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    line-height: 1 !important;
}

.zoe-cmc-dashboard .zoe-cmc-icon,
.zoe-cmc-dashboard .zoe-cmc-stat-icon,
.zoe-cmc-dashboard .zoe-cmc-kpi-icon,
.zoe-cmc-listagem .zoe-cmc-icon,
.zoe-cmc-listagem .zoe-cmc-stat-icon,
.zoe-cmc-marketing .zoe-cmc-icon,
.zoe-cmc-helpdesk .zoe-cmc-icon,
.zoe-cmc-tickets .zoe-cmc-icon,
.zoe-cmc-documents .zoe-cmc-icon,
.zoe-cmc-financeiro .zoe-cmc-icon,
.zoe-cmc-single .zoe-cmc-icon {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    line-height: 1 !important;
}

/* Garantir que elementos i dentro de .zoe-cmc-icon funcionem */
.zoe-cmc-icon i,
.zoe-cmc-stat-icon i,
.zoe-cmc-kpi-icon i {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    line-height: 1 !important;
}

/* Corrigir design geral */
.zoe-cmc-dashboard,
.zoe-cmc-listagem,
.zoe-cmc-marketing,
.zoe-cmc-helpdesk,
.zoe-cmc-tickets,
.zoe-cmc-documents,
.zoe-cmc-financeiro,
.zoe-cmc-single {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Garantir que botões e inputs usam Montserrat - APENAS em elementos do plugin */
.zoe-cmc-dashboard button,
.zoe-cmc-dashboard input,
.zoe-cmc-dashboard textarea,
.zoe-cmc-dashboard select,
.zoe-cmc-listagem button,
.zoe-cmc-listagem input,
.zoe-cmc-listagem textarea,
.zoe-cmc-listagem select,
.zoe-cmc-marketing button,
.zoe-cmc-marketing input,
.zoe-cmc-marketing textarea,
.zoe-cmc-marketing select,
.zoe-cmc-helpdesk button,
.zoe-cmc-helpdesk input,
.zoe-cmc-helpdesk textarea,
.zoe-cmc-helpdesk select,
.zoe-cmc-tickets button,
.zoe-cmc-tickets input,
.zoe-cmc-tickets textarea,
.zoe-cmc-tickets select,
.zoe-cmc-documents button,
.zoe-cmc-documents input,
.zoe-cmc-documents textarea,
.zoe-cmc-documents select,
.zoe-cmc-financeiro button,
.zoe-cmc-financeiro input,
.zoe-cmc-financeiro textarea,
.zoe-cmc-financeiro select,
.zoe-cmc-single button,
.zoe-cmc-single input,
.zoe-cmc-single textarea,
.zoe-cmc-single select,
a.btn,
.zoe-cmc-btn {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 400 !important;
}

/* Tabelas - APENAS em elementos do plugin */
.zoe-cmc-dashboard table,
.zoe-cmc-listagem table,
.zoe-cmc-marketing table,
.zoe-cmc-helpdesk table,
.zoe-cmc-tickets table,
.zoe-cmc-documents table,
.zoe-cmc-financeiro table,
.zoe-cmc-single table,
.zoe-cmc-table,
.zoe-cmc-table th,
.zoe-cmc-table td {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 400 !important;
}

.zoe-cmc-table th,
.zoe-cmc-table thead th {
    font-weight: 700 !important;
}

/* Cards e containers */
.zoe-cmc-card,
.zoe-cmc-stat-card,
.zoe-cmc-widget,
.zoe-cmc-modal-content {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Formulários */
.zoe-cmc-form,
.zoe-cmc-form input,
.zoe-cmc-form textarea,
.zoe-cmc-form select,
.zoe-cmc-form label,
.zoe-cmc-form button {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 400 !important;
}

.zoe-cmc-form h2,
.zoe-cmc-form h3,
.zoe-cmc-form-section h3 {
    font-weight: 700 !important;
}

/* Override para qualquer elemento que possa estar sobrescrevendo - APENAS elementos do plugin */
/* PROTEGER dashicons, Font Awesome (ícones) e elementos do WordPress core - ícones usam Font Awesome */
.zoe-cmc-dashboard *:not([class*="dashicons"]):not(.dashicons):not([id*="admin"]):not([class*="wp-"]):not([id*="wp-"]):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.zoe-cmc-icon):not(.zoe-cmc-stat-icon),
.zoe-cmc-listagem *:not([class*="dashicons"]):not(.dashicons):not([id*="admin"]):not([class*="wp-"]):not([id*="wp-"]):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.zoe-cmc-icon):not(.zoe-cmc-stat-icon),
.zoe-cmc-marketing *:not([class*="dashicons"]):not(.dashicons):not([id*="admin"]):not([class*="wp-"]):not([id*="wp-"]):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.zoe-cmc-icon):not(.zoe-cmc-stat-icon),
.zoe-cmc-helpdesk *:not([class*="dashicons"]):not(.dashicons):not([id*="admin"]):not([class*="wp-"]):not([id*="wp-"]):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.zoe-cmc-icon):not(.zoe-cmc-stat-icon),
.zoe-cmc-tickets *:not([class*="dashicons"]):not(.dashicons):not([id*="admin"]):not([class*="wp-"]):not([id*="wp-"]):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.zoe-cmc-icon):not(.zoe-cmc-stat-icon),
.zoe-cmc-documents *:not([class*="dashicons"]):not(.dashicons):not([id*="admin"]):not([class*="wp-"]):not([id*="wp-"]):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.zoe-cmc-icon):not(.zoe-cmc-stat-icon),
.zoe-cmc-financeiro *:not([class*="dashicons"]):not(.dashicons):not([id*="admin"]):not([class*="wp-"]):not([id*="wp-"]):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.zoe-cmc-icon):not(.zoe-cmc-stat-icon),
.zoe-cmc-single *:not([class*="dashicons"]):not(.dashicons):not([id*="admin"]):not([class*="wp-"]):not([id*="wp-"]):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.zoe-cmc-icon):not(.zoe-cmc-stat-icon) {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* PROTEGER dashicons do WordPress core */
.dashicons,
[class*="dashicons"],
#adminmenuback,
#adminmenuwrap,
#adminmenu,
#wpadminbar,
.wp-admin * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}
