/* ========================================
   Módulo: Gestão Financeira
   Tela 1 — Boas-vindas (modal de entrada)
   Contrato de design: Figma nó 40011155:274847 (1440x1024).
   Figma real: modal SÓ com gradiente vertical (topo escuro → base azul-claro)
   + texto branco centralizado + botão. NÃO há foto/hero (o cofrinho não existe
   neste frame). Fonte segue o DS do sistema (system-stack), não 'Work Sans'.
   ======================================== */

.gf-boasvindas-overlay {
    position: fixed;
    inset: 0;
    z-index: 3200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 10, 12, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-sizing: border-box;
}

/* Card do modal: gradiente vertical do Figma, conteúdo centralizado. */
.gf-boasvindas-modal {
    position: relative;
    width: min(100%, 720px);
    max-height: min(92vh, 560px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(5, 10, 12, 0.45);
    /* Gradiente vertical do Figma: topo escuro → base azul-claro. */
    background: linear-gradient(180deg,
        #050A0C 0%,
        #245878 31%,
        #5395BB 64%,
        #D3EFFC 100%);
}

.gf-boasvindas-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.gf-boasvindas-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

/* Conteúdo centralizado sobre o gradiente. */
.gf-boasvindas-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 64px 48px 56px;
    text-align: center;
}

.gf-boasvindas-titulo {
    margin: 0;
    max-width: 420px;
    font-size: 30px;
    font-weight: 600;
    line-height: 34px;
    color: #FFFFFF;
}

.gf-boasvindas-texto {
    margin: 0;
    max-width: 560px;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
    letter-spacing: 0.0125em;
    color: #FFFFFF;
}

.gf-boasvindas-texto strong {
    font-weight: 600;
}

.gf-boasvindas-btn-iniciar {
    margin-top: 8px;
    min-width: 332px;
    padding: 10px 24px;
    border: 0.8px solid #F0F9FF;
    border-radius: 6px;
    background: #0EA5E9;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}

.gf-boasvindas-btn-iniciar:hover {
    background: #0284c7;
}

/* ─── Responsividade (web-only, sem versão mobile dedicada) ─── */
@media (max-width: 992px) {
    .gf-boasvindas-modal {
        max-height: 94vh;
    }

    .gf-boasvindas-titulo {
        font-size: 26px;
        line-height: 30px;
    }
}

@media (max-width: 600px) {
    .gf-boasvindas-overlay {
        padding: 12px;
    }

    .gf-boasvindas-body {
        padding: 24px 20px 32px;
    }

    .gf-boasvindas-titulo {
        font-size: 22px;
        line-height: 26px;
    }

    .gf-boasvindas-btn-iniciar {
        min-width: 100%;
    }
}

/* ========================================
   Tela 2 — Questionário (frames 3-12, componente único)
   Layout Figma: modal centrado sobre a carteira escurecida. Título fixo,
   barra de progresso contínua, enunciado, opções com radio à DIREITA.
   Tokens do DS (azul #0ea5e9, card branco, gray Tailwind); fonte do sistema.
   ======================================== */

.gf-quest-overlay {
    position: fixed;
    inset: 0;
    z-index: 3200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 10, 12, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-sizing: border-box;
}

.gf-quest-modal {
    position: relative;
    width: min(100%, 760px);
    max-height: 92vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 40px 32px;
    box-shadow: 0 24px 64px rgba(5, 10, 12, 0.35);
}

.gf-quest-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.gf-quest-close:hover { background: #e5e7eb; color: #111827; }

.gf-quest-titulo {
    margin: 0 0 20px;
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    color: #111827;
}

.gf-quest-titulo strong { font-weight: 700; }

.gf-quest-contador {
    margin: 0 0 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

/* Barra de progresso contínua (fill proporcional a N/5). */
.gf-quest-progress {
    height: 4px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    margin-bottom: 28px;
}

.gf-quest-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: #0ea5e9;
    transition: width 0.3s ease;
}

.gf-quest-enunciado {
    margin: 0 0 24px;
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    color: #111827;
    text-align: center;
}

.gf-quest-opcoes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.gf-quest-opcao {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.gf-quest-opcao:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.gf-quest-opcao.is-selected {
    border-color: #0ea5e9;
    background: #e0f2fe;
}

.gf-quest-opcao-texto {
    font-size: 15px;
    line-height: 20px;
    color: #374151;
}

.gf-quest-opcao.is-selected .gf-quest-opcao-texto {
    color: #0369a1;
    font-weight: 500;
}

/* Radio à direita (Figma). */
.gf-quest-opcao-radio {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #ffffff;
    transition: border-color 0.15s ease;
}

.gf-quest-opcao.is-selected .gf-quest-opcao-radio {
    border-color: #0ea5e9;
    background: radial-gradient(circle, #0ea5e9 0 40%, #ffffff 46%);
}

.gf-quest-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.gf-quest-btn-voltar,
.gf-quest-btn-avancar {
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.gf-quest-btn-voltar {
    background: #ffffff;
    border-color: #d1d5db;
    color: #374151;
}

.gf-quest-btn-voltar:hover:not(:disabled) {
    background: #f9fafb;
}

.gf-quest-btn-avancar {
    background: #0ea5e9;
    color: #ffffff;
}

.gf-quest-btn-avancar:hover:not(:disabled) {
    background: #0284c7;
}

.gf-quest-btn-voltar:disabled,
.gf-quest-btn-avancar:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .gf-quest-modal {
        padding: 32px 20px 24px;
    }

    .gf-quest-titulo { font-size: 20px; }

    .gf-quest-enunciado {
        font-size: 18px;
        line-height: 24px;
    }

    /* Botões de nav ocupam a largura para não estourar em telas estreitas. */
    .gf-quest-btn-voltar,
    .gf-quest-btn-avancar {
        flex: 1 1 auto;
    }
}

/* ========================================
   Tela 3 — Resultado de perfil (frames 13/15/17)
   Layout Figma: modal gradiente azul sobre a carteira escurecida, texto branco
   à ESQUERDA + coluna direita para a foto do arquétipo (só Prov.31 tem arte).
   Cores/tokens do DS (azul #0ea5e9); gradiente do Figma (claro no topo → escuro na base).
   ======================================== */

.gf-result-overlay {
    position: fixed;
    inset: 0;
    z-index: 3200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 10, 12, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-sizing: border-box;
}

.gf-result-modal {
    position: relative;
    width: min(100%, 940px);
    max-height: min(92vh, 620px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(5, 10, 12, 0.45);
    /* Gradiente do Figma: azul-claro no topo → escuro na base. */
    background: linear-gradient(160deg, #D3EFFC 0%, #5395BB 45%, #245878 78%, #0f2b3d 100%);
    color: #ffffff;
}

/* Fallback: modal em 1 coluna quando um perfil não tiver foto de arquétipo.
   Hoje os 3 perfis (José/Prov.31/Salomão) têm foto no Figma, então esta classe
   fica como salvaguarda para perfis futuros sem arte. */
.gf-result-modal--sem-foto {
    grid-template-columns: 1fr;
    max-width: 720px;
}

.gf-result-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.15s ease;
    z-index: 2;
}

.gf-result-close:hover { background: rgba(255, 255, 255, 0.24); }

.gf-result-conteudo {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.gf-result-label {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}

.gf-result-nome {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 700;
    line-height: 40px;
}

.gf-result-arquetipo {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.gf-result-descricao {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 21px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 420px;
}

.gf-result-objetivo {
    margin: 0 0 28px;
    font-size: 14px;
    line-height: 20px;
    color: #ffffff;
}

.gf-result-objetivo strong { font-weight: 700; }

.gf-result-acoes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gf-result-btn-refazer,
.gf-result-btn-dashboard {
    padding: 11px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, filter 0.15s ease;
}

.gf-result-btn-refazer {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.9);
    color: #0f2b3d;
}

.gf-result-btn-refazer:hover { background: #ffffff; }

.gf-result-btn-dashboard {
    border: none;
    background: #0ea5e9;
    color: #ffffff;
}

.gf-result-btn-dashboard:hover { background: #0284c7; }

/* Coluna direita: foto do arquétipo (só quando há arte). */
.gf-result-foto {
    position: relative;
    overflow: hidden;
}

.gf-result-foto img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 720px) {
    .gf-result-modal,
    .gf-result-modal--sem-foto {
        grid-template-columns: 1fr;
        max-height: 94vh;
    }

    /* Em telas estreitas a foto vira faixa superior. */
    .gf-result-foto {
        order: -1;
        min-height: 200px;
    }

    .gf-result-foto img { position: static; }

    .gf-result-conteudo { padding: 32px 24px; }

    .gf-result-nome { font-size: 28px; line-height: 32px; }
}

/* ════════════════════════════════════════════════════════
   Telas 19-24 — Dashboard de Gestão Financeira
   Tokens do design system do sistema (bloco financeiro-* de Perfil.css):
   card #fff / border #e5e7eb / radius 12px / padding 24px / sombra 0 1px 2px,
   paleta sky #0ea5e9 + gray Tailwind, tipografia system-stack (herda do body).
   Layout fiel ao Figma; cores/raios/sombras SEMPRE do DS (nunca inventados).
   ════════════════════════════════════════════════════════ */

.gf-dash-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 24px;
}

/* ── Barra de topo ── */
.gf-dash-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gf-dash-topbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.gf-dash-topbar-ctx {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.gf-dash-topbar-spacer { flex: 1; }

.gf-dash-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.gf-dash-topbar-btn:hover { background: #f3f4f6; }

.gf-dash-topbar-btn.is-primary {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #ffffff;
}

.gf-dash-topbar-btn.is-primary:hover { background: #0284c7; }

.gf-dash-topbar-sino {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #0ea5e9;
    cursor: pointer;
    font-size: 15px;
}

/* ── Header: saudação + stepper ── */
.gf-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.gf-dash-saudacao {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.gf-dash-sub {
    margin: 4px 0 0;
    font-size: 14px;
    color: #6b7280;
}

.gf-dash-stepper {
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
}

.gf-dash-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 116px;
    text-align: center;
    position: relative;
}

.gf-dash-step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e5e7eb;
    z-index: 1;
}

.gf-dash-step.is-done .gf-dash-step-dot,
.gf-dash-step.is-active .gf-dash-step-dot {
    background: #0ea5e9;
}

.gf-dash-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
}

.gf-dash-step.is-done::after { background: #0ea5e9; }

.gf-dash-step-label {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    line-height: 1.3;
}

.gf-dash-step.is-active .gf-dash-step-label {
    color: #0369a1;
    font-weight: 600;
}

/* ── Card base (financeiro-card) ── */
.gf-dash-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gf-dash-card-titulo {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.gf-dash-card-desc {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 18px;
    color: #6b7280;
}

/* ── Topo: hero (2fr) + alertas (1fr) ── */
.gf-dash-topo {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* Hero-card do dashboard. Layout Figma difere por perfil:
   - José (19): foto grande (cofrinho) preenchendo o card, texto sobreposto à esquerda.
   - Prov.31 (21): gradiente azul, SEM foto (.gf-dash-hero--sem-foto).
   - Salomão (23): foto de trading ao fundo + donut sobreposto (.gf-dash-hero-img--fundo).
   Base escura sóbria (#0f2b3d) com tokens do DS; azul #0ea5e9 no progresso/fill. */
.gf-dash-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #0f2b3d;
    border: none;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    min-height: 300px;
}

.gf-dash-hero .gf-dash-card-titulo { color: #ffffff; }
.gf-dash-hero .gf-dash-card-desc { color: rgba(255, 255, 255, 0.85); }

/* Prov.31: gradiente azul (135°), sem foto → sem véu. */
.gf-dash-hero--sem-foto {
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 55%, #0f2b3d 100%);
}

/* José: foto preenche o card (mais presente que o layout lateral anterior). */
.gf-dash-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    z-index: 0;
}

/* Salomão: foto de fundo (trading) atrás do donut. */
.gf-dash-hero-img--fundo {
    object-position: center;
    opacity: 0.9;
}

/* Véu escuro: forte à esquerda (legibilidade do texto), some à direita (revela a foto).
   Não se aplica ao hero sem foto (que já é gradiente sólido). */
.gf-dash-hero:not(.gf-dash-hero--sem-foto)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(15, 43, 61, 0.94) 0%, rgba(15, 43, 61, 0.85) 38%, rgba(15, 43, 61, 0.45) 68%, rgba(15, 43, 61, 0.1) 100%);
}

.gf-dash-hero-conteudo {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

/* Salomão (donut no hero): conteúdo ocupa a largura, sobre a foto de fundo. */
.gf-dash-hero-conteudo:has(.gf-dash-hero-donut) { max-width: 100%; }

.gf-dash-meta-destaque {
    margin: 8px 0 10px;
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.gf-dash-meta-destaque-legenda {
    margin-left: 8px;
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.gf-dash-hero-paragrafo {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 19px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 330px;
}

.gf-dash-meta-var {
    display: block;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #34d399;
}

.gf-dash-progress-topo {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 6px;
}

.gf-dash-progress-topo-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.gf-dash-progress-pct {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.gf-dash-progress {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.gf-dash-progress-fill {
    height: 100%;
    border-radius: 4px;
    background: #0ea5e9;
    transition: width 0.4s ease;
}

.gf-dash-progress-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* pill-boxes meta/guardado (overlay translúcido no hero escuro) */
.gf-dash-meta-pills {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.gf-dash-meta-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 10px 14px;
}

.gf-dash-meta-pill span {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.gf-dash-meta-pill strong { font-size: 15px; font-weight: 700; }

/* Hero como donut (Salomão) */
.gf-dash-hero-donut {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 16px;
}

.gf-dash-hero-donut-chart { position: relative; }

.gf-dash-hero-donut-centro {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.gf-dash-hero-donut-centro small {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.06em;
}

.gf-dash-hero-donut-centro strong { font-size: 26px; font-weight: 700; }

/* ── Alertas e insights ── */
.gf-dash-card-alertas { display: flex; flex-direction: column; }

.gf-dash-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.gf-dash-chip {
    padding: 6px 12px;
    border-radius: 16px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
}

.gf-dash-alertas {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gf-dash-alerta {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid #f3f4f6;
    font-size: 13px;
    line-height: 18px;
    color: #4b5563;
}

.gf-dash-alerta i {
    margin-top: 2px;
    color: #0ea5e9;
    flex-shrink: 0;
}

.gf-dash-alerta-input {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.gf-dash-alerta-input input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    color: #374151;
}

.gf-dash-alerta-input input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.gf-dash-alerta-input button {
    width: 40px;
    border: none;
    border-radius: 6px;
    background: #0ea5e9;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.gf-dash-alerta-input button:hover { background: #0284c7; }

/* ── KPIs em linha (financeiro-cat-card) ── */
.gf-dash-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.gf-dash-kpi {
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 16px;
    background: #fafafa;
}

.gf-dash-kpi-rotulo {
    display: block;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 6px;
}

.gf-dash-kpi-valor {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.gf-dash-kpi-var {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #10b981;
}

.gf-dash-kpi-nota {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

/* ── Base: linha (2fr) + donut/contas (1fr) + cursos (1fr) ── */
.gf-dash-base {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.gf-dash-card-linha,
.gf-dash-card-donut {
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.gf-dash-linha-topo {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.gf-dash-linha-abas {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #9ca3af;
}

.gf-dash-linha-abas .is-active {
    color: #0ea5e9;
    font-weight: 600;
    border-bottom: 2px solid #0ea5e9;
    padding-bottom: 2px;
}

.gf-dash-linha-toggles {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.gf-dash-linha-toggle {
    padding: 3px 10px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.gf-dash-linha-toggle.is-active {
    background: #e0f2fe;
    color: #0369a1;
}

.gf-dash-linha-saldo {
    text-align: right;
    font-size: 13px;
    color: #6b7280;
}

.gf-dash-linha-saldo strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.gf-dash-linha-var { color: #10b981; font-size: 12px; }

/* Donut (José: gastos) com valor central */
.gf-dash-donut-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gf-dash-donut-centro {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.gf-dash-donut-centro strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.gf-dash-donut-centro small { font-size: 12px; color: #10b981; }

/* Contas bancárias (financeiro-bank-card) */
.gf-dash-card-contas {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.gf-dash-conta {
    border-radius: 12px;
    padding: 20px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    background-blend-mode: overlay;
    background-image: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent);
}

.gf-conta-c6 { background: linear-gradient(135deg, #374151 0%, #111827 100%); }
.gf-conta-inter { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }

.gf-dash-conta-tipo { font-size: 12px; color: rgba(255, 255, 255, 0.8); }

.gf-dash-conta-saldo { font-size: 22px; font-weight: 700; }

.gf-dash-conta-acoes { display: flex; gap: 10px; }

.gf-dash-conta-acoes button {
    flex: 1;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

.gf-dash-conta-acoes button:first-child {
    background: #ffffff;
    border-color: #ffffff;
    color: #111827;
}

/* Área de cursos (CTA com foto de fundo) */
.gf-dash-card-cursos {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 220px;
    color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gf-dash-cursos-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.gf-dash-cursos-overlay {
    position: relative;
    z-index: 1;
    padding: 24px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.85) 65%);
}

.gf-dash-cursos-overlay .gf-dash-card-titulo { color: #ffffff; }

.gf-dash-cursos-desc {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 19px;
    color: rgba(255, 255, 255, 0.85);
}

.gf-dash-cursos-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: #0ea5e9;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
}

.gf-dash-cursos-btn:hover { background: #0284c7; }

.gf-dash-rodape {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}

/* ── Responsividade (grids fluidos; reforço em telas estreitas) ── */
@media (max-width: 992px) {
    .gf-dash-topo,
    .gf-dash-base {
        grid-template-columns: 1fr;
    }

    .gf-dash-hero-conteudo { max-width: 100%; }
}

@media (max-width: 600px) {
    .gf-dash-saudacao { font-size: 22px; }
    .gf-dash-stepper { display: none; }
    .gf-dash-topbar { flex-wrap: wrap; }
    .gf-dash-meta-destaque { font-size: 32px; }

    .gf-dash-card-linha,
    .gf-dash-card-donut { min-height: 280px; }
}

