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

body {
    font-family: var(--v2-font-family);
    font-size: var(--v2-type-body);
    color: var(--v2-text);
}

.v2-brand-copy strong,
.v2-user strong {
    font-size: var(--v2-type-emphasis);
}

.v2-brand-copy span,
.v2-user small,
.v2-kpi small,
.v2-card-head > span,
.v2-page-note {
    font-size: var(--v2-type-micro);
}

.v2-nav-label,
.v2-nav-item,
.v2-eyebrow,
.v2-button,
.v2-status,
.v2-field > span,
.v2-kpi > span,
.v2-operation-strip span,
.v2-tabs button,
.v2-text-button,
.v2-summary-kpis span {
    font-size: var(--v2-type-label);
}

.v2-topbar p,
.v2-field select,
.v2-empty,
.v2-notice,
.v2-summary-main p,
.v2-brief p {
    font-size: var(--v2-type-body);
}

.v2-operation-strip strong,
.v2-summary-kpis strong,
.v2-brief > strong {
    font-size: var(--v2-type-emphasis);
}

.v2-card-head h2 {
    font-size: var(--v2-type-section);
}

.v2-topbar h1 {
    font-size: var(--v2-type-page);
}

.v2-kpi > strong {
    font-size: var(--v2-type-kpi);
}

/* BRAIN_INTER_GLOBAL_USAGE_V1_BEGIN */

/*
   Fonte oficial de interface:
   INTER

   Aplica-se a:
   - Brain Admin
   - RADAR / SaaS
   - Central
   - Login
   - Appearance
   - Drawers
   - Modais
   - Formulários
   - Tabelas

   Elementos de código permanecem monoespaçados.
*/

html,
body {
    font-family:
        var(--v2-font-family) !important;
}

button,
input,
select,
textarea,
option,
optgroup {
    font-family:
        var(--v2-font-family) !important;
}

table,
thead,
tbody,
tfoot,
tr,
th,
td {
    font-family:
        var(--v2-font-family) !important;
}

.v2-app,
.v2-main,
.v2-content,
.v2-sidebar,
.v2-appearance,
#baApp,
#baApp .v2-content,
dialog {
    font-family:
        var(--v2-font-family) !important;
}

code,
pre,
kbd,
samp {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace !important;
}

/* BRAIN_INTER_GLOBAL_USAGE_V1_END */

/* BRAIN_SEMANTIC_TYPE_BINDING_V1_BEGIN */

/*
 ============================================================
 BRAIN — HIERARQUIA TIPOGRÁFICA SEMÂNTICA OFICIAL

 APOIO     -> label/micro -> 12px default
 CONTEÚDO  -> body/emphasis -> 14px default
 SEÇÃO     -> section -> 18px default
 DESTAQUE  -> page/kpi -> 28px default

 IMPORTANTE:
 - escopo deliberado somente no CONTEÚDO;
 - sidebar NÃO participa;
 - tamanhos continuam editáveis pela Aparência.
 ============================================================
*/


/* ==========================================================
   1. APOIO
   Labels, legendas, metadados, badges, cabeçalhos,
   informações auxiliares e textos secundários.
   ========================================================== */

.v2-main label,
.v2-main small,
.v2-main caption,
.v2-main thead th,

.v2-main .ba-label,
.v2-main .ba-kpi > span,
.v2-main .ba-kpi > small,

.v2-main .v2-badge,
.v2-main .badge,
.v2-main .status-badge,

.v2-main [class*="eyebrow"],
.v2-main [class*="kicker"],
.v2-main [class*="caption"],
.v2-main [class*="helper"],
.v2-main [class*="hint"],
.v2-main [class*="meta"],
.v2-main [class*="badge"],
.v2-main [class*="chip"],
.v2-main [class*="pill"],
.v2-main [class*="tag"],

.v2-main article > small {
    font-size:
        var(--v2-type-label) !important;
}


/* ==========================================================
   2. CONTEÚDO
   Texto padrão de leitura e interação.
   ========================================================== */

.v2-main p,
.v2-main td,

.v2-main input:not([type="checkbox"]):not([type="radio"]),
.v2-main select,
.v2-main textarea,

.v2-main button:not(.v2-nav-item),
.v2-main .v2-button,

.v2-main [class*="description"],
.v2-main [class*="subtitle"],
.v2-main [class*="summary"],
.v2-main [class*="message"],
.v2-main [class*="empty"] {
    font-size:
        var(--v2-type-body) !important;
}


/* ==========================================================
   3. SEÇÃO
   Títulos internos de cards, painéis e agrupamentos.
   ========================================================== */

.v2-main h2,
.v2-main h3,

.v2-main [class*="section-title"],
.v2-main [class*="card-title"],
.v2-main [class*="panel-title"] {
    font-size:
        var(--v2-type-section) !important;
}


/* ==========================================================
   4. DESTAQUE
   Título principal e indicadores numéricos.
   ========================================================== */

.v2-main h1,

.v2-main #baTitle,

.v2-main .v2-page-title,
.v2-main .ba-page-title,

.v2-main [class*="page-title"],

.v2-main .ba-kpi > strong,

.v2-main [class*="kpi"] > strong,
.v2-main [class*="metric"] > strong {
    font-size:
        var(--v2-type-page) !important;
}


/* ==========================================================
   KPI BRAIN ADMIN
   Regra explícita para não depender de CSS legado.
   ========================================================== */

#baApp .v2-main .ba-kpi > span,
#baApp .v2-main .ba-kpi > small {
    font-size:
        var(--v2-type-label) !important;
}

#baApp .v2-main .ba-kpi > strong {
    font-size:
        var(--v2-type-kpi) !important;
}


/* ==========================================================
   TABELAS
   ========================================================== */

.v2-main table th {
    font-size:
        var(--v2-type-label) !important;
}

.v2-main table td {
    font-size:
        var(--v2-type-body) !important;
}


/* ==========================================================
   FORMULÁRIOS
   ========================================================== */

.v2-main form label {
    font-size:
        var(--v2-type-label) !important;
}

.v2-main form input,
.v2-main form select,
.v2-main form textarea,
.v2-main form button {
    font-size:
        var(--v2-type-body) !important;
}


/* ==========================================================
   DIALOGS / MODAIS
   Mantém a mesma hierarquia sem alcançar a sidebar.
   ========================================================== */

dialog label,
dialog small,
dialog th,
dialog [class*="badge"],
dialog [class*="chip"],
dialog [class*="meta"] {
    font-size:
        var(--v2-type-label) !important;
}

dialog p,
dialog td,
dialog input,
dialog select,
dialog textarea,
dialog button {
    font-size:
        var(--v2-type-body) !important;
}

dialog h2,
dialog h3 {
    font-size:
        var(--v2-type-section) !important;
}

dialog h1 {
    font-size:
        var(--v2-type-page) !important;
}


/* BRAIN_SEMANTIC_TYPE_BINDING_V1_END */
