/* FiFlow v3 — design system SaaS financeiro premium */
html[data-fiflow-version="3"] {
  --color-primary:#0C4F41;--color-primary-dark:#083A30;--color-primary-soft:#E3EEE8;
  --color-sidebar:#0C4F41;--color-sidebar-active:#083A30;--color-accent-green:#3FBFA0;
  --color-orange:#9C6B1F;--color-red:#A23B2E;--color-yellow:#9C6B1F;
  --success:#0C4F41;--primary:#0C4F41;--info:#0C4F41;--warning:#9C6B1F;--purple:#0C4F41;
  --background:#F6FAF7;--card:#FFFFFF;--planning-success:#0C4F41;--planning-primary:#0C4F41;
  --planning-info:#0C4F41;--planning-warning:#9C6B1F;--planning-orange:#9C6B1F;--planning-purple:#0C4F41;
  --color-bg:#F6FAF7;--color-card:#FFF;--color-border:#DFE7E1;--color-muted:#5C6E66;
  --color-text:#12211C;--brand:var(--color-primary);--brand2:var(--color-primary-dark);
  --brand3:#062A22;--brand-accent:var(--color-accent-green);--brand-light:var(--color-primary-soft);
  --brand-border:rgba(12,79,65,.22);--green:var(--color-primary);--green2:var(--color-primary);
  --green-light:var(--color-primary-soft);--red:var(--color-red);--red2:var(--color-red);
  --red-light:#F5E3DF;--amber:var(--color-orange);--amber2:var(--color-orange);
  --amber-light:#F3E9D6;--cyan:var(--color-accent-green);--cyan2:var(--color-primary);
  --bg:var(--color-bg);--bg2:var(--color-card);--bg3:var(--color-card);--bg4:#EFF5F1;
  --bg5:#E3EEE8;--text:var(--color-text);--text2:#5C6E66;--text3:var(--color-muted);
  --border:var(--color-border);--border2:#C7D5CD;--border3:#B0C2B8;
  --radius-panel:16px;--radius-card:10px;--radius-control:6px;
  --shadow:0 1px 2px rgba(18,33,28,.05), 0 1px 1px rgba(18,33,28,.04), 0 6px 20px -8px rgba(18,33,28,.16);
}
html[data-fiflow-version="3"],html[data-fiflow-version="3"] body{background:var(--color-bg);color:var(--color-text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif}
html[data-fiflow-version="3"] body{overflow:hidden}
html[data-fiflow-version="3"] #app-dashboard{background:var(--color-bg)}
/* Sidebar clara — referências (Codename/Quixotic/Fundcy/Vaultix) usam sidebar branca/clara em
   todos os casos, cor reservada só para logo, item ativo e acentos. O verde forte virou acento,
   não mais o fundo inteiro do painel. */
html[data-fiflow-version="3"] .sidebar{width:224px;min-width:224px;height:100vh;padding:22px 14px 18px;background:var(--color-card);border:0;border-right:1px solid var(--color-border);color:var(--color-text);display:flex;flex-direction:column;box-shadow:none}
html[data-fiflow-version="3"] .sidebar-logo{height:auto;margin:0 5px 20px;padding:0;display:flex;gap:10px;align-items:center}
html[data-fiflow-version="3"] .logo-mark{width:32px;height:32px;border-radius:9px;background:transparent;color:var(--color-primary);display:grid;place-items:center;font-size:16px;font-weight:900;letter-spacing:-.08em;overflow:hidden}
html[data-fiflow-version="3"] .logo-mark span{font-size:9px;margin-left:-2px}
html[data-fiflow-version="3"] .logo-text{color:var(--color-text);font-size:15px;font-weight:800;line-height:1.25}
html[data-fiflow-version="3"] .logo-sub{color:var(--color-muted);font-size:8px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;margin-top:3px}
html[data-fiflow-version="3"] .v3-sidebar-nav{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none}
html[data-fiflow-version="3"] .v3-sidebar-nav::-webkit-scrollbar{display:none}
html[data-fiflow-version="3"] .nav-section{margin:15px 10px 6px;padding:0;color:var(--color-muted);font-size:8px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
html[data-fiflow-version="3"] .nav-item{position:relative;width:100%;min-height:39px;padding:0 12px;margin:2px 0;border:0;border-radius:9px;background:transparent;color:var(--text2);display:flex;align-items:center;gap:10px;font-size:11.5px;font-weight:570;text-align:left;transition:.18s}
html[data-fiflow-version="3"] .nav-item:hover{background:var(--color-bg);color:var(--color-text)}
html[data-fiflow-version="3"] .nav-item.active{background:var(--color-primary-soft);color:var(--color-primary-dark);font-weight:750}
html[data-fiflow-version="3"] .nav-item.active:before{content:"";position:absolute;inset:8px auto 8px -14px;width:3px;border-radius:3px;background:var(--color-primary)}
html[data-fiflow-version="3"] .nav-icon{color:currentColor;display:inline-grid;place-items:center}
html[data-fiflow-version="3"] .sidebar-footer{position:static;margin:14px 0 0;padding-top:12px;border-top:1px solid var(--color-border);display:grid;gap:7px}
html[data-fiflow-version="3"] .v3-sidebar-link{min-height:30px;border:0;background:transparent;color:var(--color-muted);display:flex;align-items:center;gap:9px;padding:0 10px;font-size:10.5px;text-align:left}
html[data-fiflow-version="3"] .v3-sidebar-link:hover{color:var(--color-text)}
html[data-fiflow-version="3"] .v3-sidebar-link.danger{color:var(--color-red)}
html[data-fiflow-version="3"] .v3-sidebar-link.active{min-height:36px;border-radius:8px;background:var(--color-bg);color:var(--color-text);font-weight:800}
html[data-fiflow-version="3"] .main{width:calc(100% - 224px);height:100vh;background:var(--color-bg)}
html[data-fiflow-version="3"] .header{height:72px;min-height:72px;padding:0 24px;border-bottom:1px solid var(--color-border);background:rgba(255,255,255,.94);display:flex;align-items:center;justify-content:space-between;gap:20px;backdrop-filter:blur(14px)}
html[data-fiflow-version="3"] .v3-header-primary{min-width:0;display:flex;align-items:center;gap:26px}
html[data-fiflow-version="3"] .v3-header-period-filter{display:flex;align-items:center;gap:8px;padding-left:18px;border-left:1px solid var(--color-border)}
html[data-fiflow-version="3"] .header-title{color:var(--color-primary);font-size:17px;font-weight:800;line-height:1.1}
html[data-fiflow-version="3"] .header-subtitle{max-width:260px;margin-top:4px;color:var(--color-muted);font-size:9px;line-height:1.25}
html[data-fiflow-version="3"] .v3-header-tabs{align-self:stretch;display:flex;align-items:center;gap:18px}
html[data-fiflow-version="3"] .v3-header-tabs button{position:relative;align-self:stretch;padding:0;border:0;background:transparent;color:var(--color-muted);font-size:10px}
html[data-fiflow-version="3"] .v3-header-tabs button.active{color:var(--color-primary);font-weight:800}
html[data-fiflow-version="3"] .v3-header-tabs button.active:after{content:"";position:absolute;left:0;right:0;bottom:16px;height:2px;background:var(--color-primary)}
html[data-fiflow-version="3"] .header-right{display:flex;align-items:center;gap:9px}
html[data-fiflow-version="3"] .v3-search{width:min(250px,25vw);height:36px;padding:0 12px;border:1px solid var(--color-border);border-radius:999px;background:#F4F6F5;color:var(--color-muted);display:flex;align-items:center;gap:8px}
html[data-fiflow-version="3"] .v3-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:var(--color-text);font-size:10px}
html[data-fiflow-version="3"] .v3-icon-button{position:relative;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--color-text);font-size:19px}
html[data-fiflow-version="3"] .v3-icon-button:hover{background:var(--color-primary-soft)}
html[data-fiflow-version="3"] .v3-notification-dot{position:absolute;top:6px;right:6px;width:5px;height:5px;border-radius:50%;background:var(--color-red)}
html[data-fiflow-version="3"] .header-user{min-height:44px;padding:5px 0 5px 10px;border:0;border-left:1px solid var(--color-border);border-radius:0;background:transparent;display:flex;gap:8px}
html[data-fiflow-version="3"] .header-user:hover{background:transparent}
html[data-fiflow-version="3"] .user-avatar{width:32px;height:32px;border:2px solid rgba(0,122,90,.18);border-radius:50%;background:linear-gradient(145deg,var(--color-primary),var(--color-primary-dark));color:#fff;font-size:11px;font-weight:800}
html[data-fiflow-version="3"] .header-user>div:last-child{display:grid}
html[data-fiflow-version="3"] .user-name-display{color:var(--color-text);font-size:10px;font-weight:800}
html[data-fiflow-version="3"] .header-user small{color:var(--color-muted);font-size:8px}
html[data-fiflow-version="3"] .content{height:calc(100vh - 72px);padding:20px 24px 30px;overflow-y:auto;background:var(--color-bg)}
html[data-fiflow-version="3"] .tab-pane{max-width:1480px;margin:0 auto}
html[data-fiflow-version="3"] .v3-legacy-controls{display:none!important}
/* Mesmo contorno/sombra/raio do "FiFlow Unified Card" (.fiflow-card, ver PADRÃO ÚNICO DE CARDS DO
   SISTEMA acima) — antes .v3-card/.card/.budget-summary-card usavam --color-border/--shadow/--radius-card,
   uma borda mais visível e sombra diferente das dos cards de métrica, criando dois estilos de card no
   mesmo sistema. */
html[data-fiflow-version="3"] .v3-card,html[data-fiflow-version="3"] .card,html[data-fiflow-version="3"] .budget-summary-card{border:1px solid rgba(0,0,0,0.04);border-radius:18px;background:var(--color-card);box-shadow:0 1px 3px rgba(0,0,0,0.03), 0 4px 20px rgba(0,0,0,0.04)}
html[data-fiflow-version="3"] .v3-card{padding:16px}
html[data-fiflow-version="3"] .v3-section-header,html[data-fiflow-version="3"] .v3-page-heading-row,html[data-fiflow-version="3"] .v3-page-intro,html[data-fiflow-version="3"] .budget-panel-header{display:flex;align-items:center;justify-content:space-between;gap:16px}
html[data-fiflow-version="3"] .v3-section-header{margin-bottom:14px}
html[data-fiflow-version="3"] .v3-section-header h2,html[data-fiflow-version="3"] .budget-panel-header h2,html[data-fiflow-version="3"] .v3-priority-panel h2,html[data-fiflow-version="3"] .ai-side-card h2{margin:0;color:var(--color-text);font-size:13px;font-weight:800}
html[data-fiflow-version="3"] .v3-section-header p,html[data-fiflow-version="3"] .v3-page-heading-row p,html[data-fiflow-version="3"] .v3-page-intro p{margin:4px 0 0;color:var(--color-muted);font-size:10px}
html[data-fiflow-version="3"] .v3-page-heading-row{margin-bottom:16px}
html[data-fiflow-version="3"] .v3-page-heading-row h1,html[data-fiflow-version="3"] .v3-page-intro h1{margin:0;color:var(--color-text);font-size:22px;font-weight:850;letter-spacing:-.035em}
html[data-fiflow-version="3"] .v3-section-kicker,html[data-fiflow-version="3"] .v3-eyebrow{color:var(--color-primary);font-size:8px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
html[data-fiflow-version="3"] .v3-badge{display:inline-flex;align-items:center;gap:5px;width:max-content;min-height:21px;padding:3px 9px;border-radius:var(--radius-full);background:var(--bg4);color:#5C6E66;font-size:8px;font-weight:800}
html[data-fiflow-version="3"] .v3-badge::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}
html[data-fiflow-version="3"] .v3-badge.tone-green,html[data-fiflow-version="3"] .tone-green{color:var(--color-primary)}
html[data-fiflow-version="3"] .v3-badge.tone-green{background:var(--color-primary-soft)}
html[data-fiflow-version="3"] .v3-badge.tone-orange,html[data-fiflow-version="3"] .tone-orange{color:var(--color-orange)}
html[data-fiflow-version="3"] .v3-badge.tone-orange{background:var(--amber-light)}
html[data-fiflow-version="3"] .v3-badge.tone-red,html[data-fiflow-version="3"] .tone-red,html[data-fiflow-version="3"] .negative{color:var(--color-red)!important}
html[data-fiflow-version="3"] .v3-badge.tone-red{background:var(--red-light)}
html[data-fiflow-version="3"] .positive{color:var(--color-primary)!important}
html[data-fiflow-version="3"] .v3-progress{height:5px;border-radius:999px;background:#E8EDEA;overflow:hidden}
html[data-fiflow-version="3"] .v3-progress span{display:block;height:100%;border-radius:inherit;background:var(--color-primary)}
html[data-fiflow-version="3"] .v3-progress span.tone-red{background:var(--color-red)}
html[data-fiflow-version="3"] .v3-metrics-grid{display:grid;gap:14px}
html[data-fiflow-version="3"] .v3-metrics-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
html[data-fiflow-version="3"] .v3-metrics-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
html[data-fiflow-version="3"] .v3-metrics-grid.five{grid-template-columns:repeat(5,minmax(0,1fr))}
/* ==========================================================================
   PADRÃO ÚNICO DE CARDS DO SISTEMA (FiFlow Unified Card)
   ========================================================================== */
html[data-fiflow-version="3"] .fiflow-card,
html[data-fiflow-version="3"] .v3-metric-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 4px 20px rgba(0,0,0,0.04);
  padding: 22px 22px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(0,0,0,0.04);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

html[data-fiflow-version="3"] .fiflow-card:hover,
html[data-fiflow-version="3"] .v3-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04), 0 10px 24px rgba(12,79,65,0.07);
}

/* Header */
html[data-fiflow-version="3"] .fiflow-card .card-header,
html[data-fiflow-version="3"] .v3-metric-card .card-header {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-bottom: 0;
  padding: 0;
  border: none;
  background: transparent;
}

html[data-fiflow-version="3"] .fiflow-card .card-header-left,
html[data-fiflow-version="3"] .v3-metric-card .card-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

html[data-fiflow-version="3"] .fiflow-card .card-icon,
html[data-fiflow-version="3"] .v3-metric-card .card-icon {
  width: 40px;
  height: 40px;
  background: #E3EEE8;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

html[data-fiflow-version="3"] .fiflow-card .card-icon svg,
html[data-fiflow-version="3"] .v3-metric-card .card-icon svg {
  width: 20px;
  height: 20px;
}

html[data-fiflow-version="3"] .fiflow-card .card-title,
html[data-fiflow-version="3"] .v3-metric-card .card-title {
  font-size: 14px;
  font-weight: 500;
  color: #5C6E66;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-fiflow-version="3"] .fiflow-card .card-link,
html[data-fiflow-version="3"] .v3-metric-card .card-link {
  font-size: 13px;
  font-weight: 500;
  color: #0C4F41;
  text-decoration: none;
  cursor: pointer;
  padding: 4px 2px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

html[data-fiflow-version="3"] .fiflow-card .card-link:hover,
html[data-fiflow-version="3"] .v3-metric-card .card-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Valor */
html[data-fiflow-version="3"] .fiflow-card .card-value,
html[data-fiflow-version="3"] .v3-metric-card .card-value {
  font-size: 30px;
  font-weight: 700;
  color: #12211C;
  letter-spacing: -0.03em;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

html[data-fiflow-version="3"] .fiflow-card .card-value .currency,
html[data-fiflow-version="3"] .v3-metric-card .card-value .currency {
  font-size: 16px;
  font-weight: 600;
  color: #8A9A93;
}

/* Badge + comparação */
html[data-fiflow-version="3"] .fiflow-card .card-footer,
html[data-fiflow-version="3"] .v3-metric-card .card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

html[data-fiflow-version="3"] .fiflow-card .badge,
html[data-fiflow-version="3"] .v3-metric-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(12,79,65,.10);
  color: #0C4F41;
  line-height: 1.3;
  white-space: nowrap;
}

html[data-fiflow-version="3"] .fiflow-card .badge.badge-red,
html[data-fiflow-version="3"] .v3-metric-card .badge.badge-red {
  background: rgba(162,59,46,.11);
  color: #A23B2E;
}

html[data-fiflow-version="3"] .fiflow-card .badge.badge-orange,
html[data-fiflow-version="3"] .v3-metric-card .badge.badge-orange {
  background: #fff6ed;
  color: #9C6B1F;
}

html[data-fiflow-version="3"] .fiflow-card .badge.badge-purple,
html[data-fiflow-version="3"] .v3-metric-card .badge.badge-purple,
html[data-fiflow-version="3"] .fiflow-card .badge.badge-blue,
html[data-fiflow-version="3"] .v3-metric-card .badge.badge-blue {
  background: rgba(23,94,78,.10);
  color: #175E4E;
}

html[data-fiflow-version="3"] .fiflow-card .badge.badge-neutral,
html[data-fiflow-version="3"] .v3-metric-card .badge.badge-neutral {
  background: #EFF5F1;
  color: #5C6E66;
}

html[data-fiflow-version="3"] .fiflow-card .badge svg,
html[data-fiflow-version="3"] .v3-metric-card .badge svg {
  width: 13px;
  height: 13px;
}

html[data-fiflow-version="3"] .fiflow-card .card-compare,
html[data-fiflow-version="3"] .v3-metric-card .card-compare {
  font-size: 12.5px;
  color: #8A9A93;
  line-height: 1.3;
}
html[data-fiflow-version="3"] .v3-dashboard-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px}
html[data-fiflow-version="3"] .v3-dashboard-left,html[data-fiflow-version="3"] .v3-dashboard-main{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:14px}
html[data-fiflow-version="3"] .v3-financial-alert{min-height:54px;margin-bottom:0;padding:11px 15px;border:1px solid color-mix(in srgb, var(--color-orange) 35%, var(--color-border));border-radius:var(--radius-control);background:var(--amber-light);display:flex;align-items:center;gap:12px}
html[data-fiflow-version="3"] .v3-financial-alert>span{color:var(--color-orange);font-size:23px}
html[data-fiflow-version="3"] .v3-financial-alert strong{color:var(--color-orange);font-size:10px}
html[data-fiflow-version="3"] .v3-financial-alert p{margin:3px 0 0;color:#5C6E66;font-size:9px}
/* Tom neutro: usado quando o desvio é real mas não crítico — evita alarme falso no primeiro contato com o dashboard. */
html[data-fiflow-version="3"] .v3-financial-alert.tone-neutral{border-color:var(--color-border);background:var(--bg4)}
html[data-fiflow-version="3"] .v3-financial-alert.tone-neutral>span{color:var(--color-primary)}
html[data-fiflow-version="3"] .v3-financial-alert.tone-neutral strong{color:var(--color-text)}
html[data-fiflow-version="3"] #alertsZone:has(.v3-financial-alert){margin-bottom:14px}
html[data-fiflow-version="3"] .v3-premium-card{min-height:190px;padding:22px;border-radius:var(--radius-panel);background:radial-gradient(circle at 90% 15%,rgba(63,191,160,.25),transparent 30%),linear-gradient(145deg,#175E4E,var(--color-primary-dark));color:#fff;box-shadow:0 20px 40px rgba(8,58,48,.25);display:flex;flex-direction:column;border:1px solid rgba(255,255,255,0.08)}
html[data-fiflow-version="3"] .v3-card-brand,html[data-fiflow-version="3"] .v3-premium-card footer,html[data-fiflow-version="3"] .v3-daily-limit>div:first-child,html[data-fiflow-version="3"] .v3-daily-limit footer,html[data-fiflow-version="3"] .v3-card-inline-title{display:flex;justify-content:space-between;gap:10px}
html[data-fiflow-version="3"] .v3-card-brand{margin-bottom:7px;font-size:9px;font-weight:800}
html[data-fiflow-version="3"] .v3-premium-card>strong{font-size:15px}
html[data-fiflow-version="3"] .v3-premium-card>small{margin-top:auto;color:rgba(255,255,255,.62);font-size:8px;font-weight:750;text-transform:uppercase}
html[data-fiflow-version="3"] .v3-premium-balance{margin-top:4px;font-size:27px;font-weight:850}
html[data-fiflow-version="3"] .v3-premium-card footer{margin-top:17px;color:rgba(255,255,255,.76);font-size:9px;font-weight:700}
html[data-fiflow-version="3"] .v3-daily-limit{padding:15px}
html[data-fiflow-version="3"] .v3-daily-limit strong,html[data-fiflow-version="3"] .v3-card-inline-title strong{font-size:11px;font-weight:800}
html[data-fiflow-version="3"] .v3-daily-limit>div:first-child span{font-size:9px;font-weight:750}
html[data-fiflow-version="3"] .v3-daily-limit .v3-progress{margin:12px 0 8px}
html[data-fiflow-version="3"] .v3-daily-limit footer{color:var(--color-muted);font-size:8px}
html[data-fiflow-version="3"] .v3-insight-of-day{display:flex;align-items:flex-start;gap:10px}
html[data-fiflow-version="3"] .v3-insight-of-day-icon{flex-shrink:0;width:30px;height:30px;border-radius:9px;background:var(--color-primary-soft);color:var(--color-primary);display:grid;place-items:center;font-size:15px}
html[data-fiflow-version="3"] .v3-insight-of-day strong{display:block;margin-bottom:3px;color:var(--color-muted);font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}
html[data-fiflow-version="3"] .v3-insight-of-day p{margin:0 0 6px;color:var(--color-text);font-size:11px;line-height:1.45;font-weight:600}
html[data-fiflow-version="3"] .v3-insight-of-day .v3-text-button{padding:0;font-size:9.5px}
html[data-fiflow-version="3"] .v3-usage-stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:4px}
html[data-fiflow-version="3"] .v3-usage-stats-grid div{text-align:center;padding:14px 8px;border:1px solid var(--color-border);border-radius:12px;background:var(--color-bg)}
html[data-fiflow-version="3"] .v3-usage-stats-grid strong{display:block;color:var(--color-primary);font-size:18px;font-weight:850}
html[data-fiflow-version="3"] .v3-usage-stats-grid span{display:block;margin-top:3px;color:var(--color-muted);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
html[data-fiflow-version="3"] .v3-card-inline-title{align-items:center;margin-bottom:12px}
html[data-fiflow-version="3"] .v3-card-inline-title button,html[data-fiflow-version="3"] .v3-text-button,html[data-fiflow-version="3"] .v3-insight-card button{padding:0;border:0;background:transparent;color:var(--color-primary);font-size:9px;font-weight:800}
html[data-fiflow-version="3"] .v3-text-button.danger{color:var(--color-red)}
html[data-fiflow-version="3"] .v3-saving-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 0}
html[data-fiflow-version="3"] .v3-saving-icon{width:32px;height:32px;border-radius:8px;background:var(--color-primary-soft);color:var(--color-primary);display:grid;place-items:center;font-size:13px}
html[data-fiflow-version="3"] .v3-saving-row strong{display:block;margin-bottom:6px;font-size:9px}
html[data-fiflow-version="3"] .v3-saving-row b{font-size:9px}
html[data-fiflow-version="3"] .v3-balance-chart{min-height:330px}
html[data-fiflow-version="3"] .v3-saldo-evolution-chart{min-height:230px}
html[data-fiflow-version="3"] .v3-chart-value{margin:-7px 0 4px;font-size:18px;font-weight:850;letter-spacing:-.02em}
html[data-fiflow-version="3"] .v3-dual-chart svg,html[data-fiflow-version="3"] .v3-forecast-svg svg{width:100%;height:220px;overflow:visible}
html[data-fiflow-version="3"] .v3-dual-chart svg line,html[data-fiflow-version="3"] .v3-forecast-svg svg line{stroke:#E8EDEB;stroke-width:1}
html[data-fiflow-version="3"] .v3-dual-chart polyline,html[data-fiflow-version="3"] .v3-forecast-svg polyline{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
html[data-fiflow-version="3"] .v3-dual-chart .income{stroke:var(--color-primary)}
html[data-fiflow-version="3"] .v3-dual-chart .expense{stroke:var(--color-orange)}
html[data-fiflow-version="3"] .v3-chart-labels{display:flex;justify-content:space-between;color:var(--color-muted);font-size:7.5px;font-weight:750;text-transform:uppercase}
html[data-fiflow-version="3"] .v3-chart-labels span{display:grid;text-align:center}
html[data-fiflow-version="3"] .v3-chart-labels small{font-size:6px;color:#9AA8A1}
html[data-fiflow-version="3"] .v3-chart-legend{display:flex;justify-content:center;align-items:center;gap:16px;color:var(--color-muted);font-size:8px;font-weight:750}
html[data-fiflow-version="3"] .v3-chart-legend span{display:flex;align-items:center;gap:5px}
html[data-fiflow-version="3"] .v3-chart-legend i,html[data-fiflow-version="3"] .v3-donut-legend i{width:7px;height:7px;border-radius:50%}
html[data-fiflow-version="3"] .v3-chart-legend i.green{background:var(--color-primary)}
html[data-fiflow-version="3"] .v3-chart-legend i.teal{border:1px dashed var(--color-primary)}
html[data-fiflow-version="3"] .v3-chart-legend i.orange{background:var(--color-orange)}
html[data-fiflow-version="3"] .v3-dashboard-bottom{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);gap:14px}
html[data-fiflow-version="3"] .v3-activity-heatmap-card{margin-top:14px;overflow-x:auto;overflow-y:visible}
html[data-fiflow-version="3"] .v3-heatmap-wrap{display:flex;flex-direction:column;gap:3px;width:100%;min-width:min(760px,100%)}
html[data-fiflow-version="3"] .v3-heatmap-range{margin-bottom:4px;color:var(--color-muted);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
html[data-fiflow-version="3"] .v3-heatmap-months,html[data-fiflow-version="3"] .v3-heatmap-row{display:grid;grid-template-columns:24px repeat(var(--v3-heatmap-weeks),minmax(6px,1fr));align-items:center;gap:3px;width:100%}
html[data-fiflow-version="3"] .v3-heatmap-month{min-width:0;color:var(--color-muted);font-size:8px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:clip}
html[data-fiflow-version="3"] .v3-heatmap-weekday{color:var(--color-muted);font-size:8px;font-weight:700;text-align:right;padding-right:4px}
html[data-fiflow-version="3"] .v3-heatmap-cell{position:relative;display:block;width:100%;height:15px;border:0;border-radius:3px;background:var(--bg4);padding:0;appearance:none;cursor:default}
html[data-fiflow-version="3"] button.v3-heatmap-cell{cursor:help}
html[data-fiflow-version="3"] button.v3-heatmap-cell:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}
html[data-fiflow-version="3"] button.v3-heatmap-cell:hover::after,html[data-fiflow-version="3"] button.v3-heatmap-cell:focus-visible::after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 8px);z-index:20;transform:translateX(-50%);width:max-content;max-width:180px;padding:8px 9px;border-radius:7px;background:#17211D;color:#fff;box-shadow:0 8px 22px rgba(23,33,29,.18);font-size:10px;font-weight:750;line-height:1.35;text-align:left;white-space:pre-line;pointer-events:none}
html[data-fiflow-version="3"] button.v3-heatmap-cell:hover::before,html[data-fiflow-version="3"] button.v3-heatmap-cell:focus-visible::before{content:"";position:absolute;left:50%;bottom:calc(100% + 3px);z-index:21;transform:translateX(-50%);border:5px solid transparent;border-top-color:#17211D;pointer-events:none}
html[data-fiflow-version="3"] .v3-heatmap-cell.level-1{background:#BFE3D4}
html[data-fiflow-version="3"] .v3-heatmap-cell.level-2{background:#7FC8A9}
html[data-fiflow-version="3"] .v3-heatmap-cell.level-3{background:#34A576}
html[data-fiflow-version="3"] .v3-heatmap-cell.level-4{background:var(--color-primary-dark)}
html[data-fiflow-version="3"] .v3-heatmap-legend{display:flex;align-items:center;gap:4px;margin-top:8px;padding-left:24px;color:var(--color-muted);font-size:8px;font-weight:700}
html[data-fiflow-version="3"] .v3-heatmap-legend .v3-heatmap-cell{width:11px;height:11px;flex:0 0 11px}
html[data-fiflow-version="3"] .v3-recent-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #EDF1EF}
html[data-fiflow-version="3"] .v3-recent-row:last-child{border-bottom:0}
html[data-fiflow-version="3"] .v3-recent-icon{width:30px;height:30px;border-radius:50%;background:var(--color-primary-soft);color:var(--color-primary);display:grid;place-items:center}
html[data-fiflow-version="3"] .v3-recent-row strong{display:block;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-fiflow-version="3"] .v3-recent-row small{display:block;margin-top:3px;color:var(--color-muted);font-size:7.5px}
html[data-fiflow-version="3"] .v3-recent-row b{font-size:9px}
html[data-fiflow-version="3"] .v3-donut-wrap{display:grid;place-items:center;gap:14px}
html[data-fiflow-version="3"] .v3-donut{width:145px;height:145px;padding:18px;border-radius:50%}
html[data-fiflow-version="3"] .v3-donut>div{width:100%;height:100%;border-radius:50%;background:#fff;display:grid;place-content:center;text-align:center}
html[data-fiflow-version="3"] .v3-donut small{font-size:7px;color:var(--color-muted);text-transform:uppercase}
html[data-fiflow-version="3"] .v3-donut strong{font-size:11px}
html[data-fiflow-version="3"] .v3-donut-legend{width:100%;display:grid;gap:6px}
html[data-fiflow-version="3"] .v3-donut-legend span{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:6px;color:var(--color-muted);font-size:8px}
html[data-fiflow-version="3"] .v3-account-grid{margin:15px 0 18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
html[data-fiflow-version="3"] .v3-account-card{--account-accent:var(--color-primary);position:relative;min-height:190px;padding:20px;border:1px solid rgba(0,0,0,0.04);border-radius:18px;background:linear-gradient(145deg,#FFF,#FCFDFC);box-shadow:0 1px 3px rgba(0,0,0,0.03), 0 4px 20px rgba(0,0,0,0.04);overflow:hidden;transition:transform .3s cubic-bezier(0.16, 1, 0.3, 1),box-shadow .3s cubic-bezier(0.16, 1, 0.3, 1),border-color .3s ease}
html[data-fiflow-version="3"] .v3-account-card:after{content:"";position:absolute;inset:0 0 auto;height:3px;border-radius:18px 18px 0 0;background:linear-gradient(90deg,var(--account-accent) 0%,color-mix(in srgb,var(--account-accent) 35%,transparent) 75%,transparent 100%);opacity:.9}
html[data-fiflow-version="3"] .v3-account-card:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--account-accent) 40%,var(--color-border));box-shadow:0 8px 16px rgba(0,0,0,.03),0 20px 40px rgba(18,56,47,.08)}
html[data-fiflow-version="3"] .v3-account-heading{display:flex;gap:10px}
html[data-fiflow-version="3"] .v3-account-logo{width:34px;height:34px;border-radius:7px;background:#EDF1EF;color:var(--color-primary-dark);display:grid;place-items:center;font-size:10px;font-weight:900;flex-shrink:0}
html[data-fiflow-version="3"] .v3-account-logo svg{width:20px;height:20px}
html[data-fiflow-version="3"] .v3-account-heading div{display:grid}
html[data-fiflow-version="3"] .v3-account-heading small{color:var(--color-orange);font-size:6.5px;font-weight:850;text-transform:uppercase}
html[data-fiflow-version="3"] .v3-account-heading strong{font-size:10px;margin:2px 0}
html[data-fiflow-version="3"] .v3-account-heading span{color:var(--color-muted);font-size:7.5px}
html[data-fiflow-version="3"] .v3-account-label{margin-top:17px;color:var(--color-muted);font-size:9px;font-weight:820;letter-spacing:.045em;text-transform:uppercase}
html[data-fiflow-version="3"] .v3-account-balance{margin-top:5px;font-size:25px;font-weight:870;letter-spacing:-.04em}
html[data-fiflow-version="3"] .v3-account-card footer{margin-top:13px;padding-top:10px;border-top:1px solid #EDF1EF;display:flex;justify-content:space-between;color:var(--color-muted);font-size:7.5px}
html[data-fiflow-version="3"] .v3-account-actions{position:absolute;top:10px;right:10px;display:flex;opacity:0}
html[data-fiflow-version="3"] .v3-account-card:hover .v3-account-actions{opacity:1}
html[data-fiflow-version="3"] .v3-account-actions button,html[data-fiflow-version="3"] .v3-row-delete{width:25px;height:25px;padding:0;border:0;border-radius:6px;background:#F1F4F2;color:var(--color-muted)}
html[data-fiflow-version="3"] .v3-consolidated-card{min-height:170px;margin-bottom:18px;padding:26px;border-radius:18px;background:var(--color-primary-dark);color:#fff;box-shadow:0 16px 32px rgba(18,56,47,.18);border:1px solid rgba(255,255,255,0.06)}
/* Este card usa o mesmo esqueleto de .fiflow-card (card-header/card-value/card-footer),
   por isso herda display:flex;flex-direction:column;gap:16px da regra base. Como o fundo
   é escuro, os textos/badges herdados (pensados para cards claros) precisam de contraste próprio: */
html[data-fiflow-version="3"] .v3-consolidated-card .card-title{color:rgba(255,255,255,.65)}
html[data-fiflow-version="3"] .v3-consolidated-card .card-link{color:var(--color-accent-green)}
html[data-fiflow-version="3"] .v3-consolidated-card .card-value{color:#fff}
html[data-fiflow-version="3"] .v3-consolidated-card .card-value .currency{color:rgba(255,255,255,.55)}
html[data-fiflow-version="3"] .v3-consolidated-card .card-compare{color:rgba(255,255,255,.55)}
html[data-fiflow-version="3"] .v3-consolidated-card .badge{background:rgba(63,191,160,.16);color:var(--color-accent-green)}
html[data-fiflow-version="3"] .v3-consolidated-card .badge.badge-red{background:rgba(255,138,115,.18);color:#FFB4A2}
html[data-fiflow-version="3"] .v3-consolidated-card .badge.badge-purple,html[data-fiflow-version="3"] .v3-consolidated-card .badge.badge-blue{background:rgba(255,255,255,.14);color:rgba(255,255,255,.85)}
html[data-fiflow-version="3"] .v3-consolidated-card details{color:rgba(255,255,255,.55)}
html[data-fiflow-version="3"] .v3-consolidated-card details summary{color:var(--color-accent-green)!important}
html[data-fiflow-version="3"] .v3-consolidated-card details summary svg{stroke:var(--color-accent-green)}
html[data-fiflow-version="3"] .v3-consolidated-card details>div{border-top-color:rgba(255,255,255,.12)!important}
html[data-fiflow-version="3"] .v3-consolidated-card details>div>div{color:rgba(255,255,255,.85);border-bottom-color:rgba(255,255,255,.1)!important}
html[data-fiflow-version="3"] .v3-consolidated-card details>div>div small{color:rgba(255,255,255,.5)!important}
html[data-fiflow-version="3"] .v3-consolidated-card details>div>div .negative{color:#FFB4A2!important}
html[data-fiflow-version="3"] .v3-consolidated-card details>div>div .positive{color:var(--color-accent-green)!important}
html[data-fiflow-version="3"] .v3-table-card{padding:0;overflow:hidden}
html[data-fiflow-version="3"] .v3-table-card>.v3-section-header{padding:15px 16px 0}
/* Tabelas largas (DRE, lançamentos) cortavam a última coluna sem nenhuma pista de que dá para
   rolar — a barra de rolagem ficava fininha/quase invisível no estilo overlay do macOS. Forçar
   uma scrollbar fina mas sempre visível resolve sem precisar de JS para detectar overflow. */
html[data-fiflow-version="3"] .v3-table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:var(--border3) transparent;padding-bottom:4px}
html[data-fiflow-version="3"] .v3-table-scroll::-webkit-scrollbar{height:7px}
html[data-fiflow-version="3"] .v3-table-scroll::-webkit-scrollbar-thumb{background:var(--border3);border-radius:999px}
html[data-fiflow-version="3"] .v3-table-scroll::-webkit-scrollbar-track{background:transparent}
html[data-fiflow-version="3"] .v3-table,html[data-fiflow-version="3"] .dre-table{width:100%;border-collapse:collapse;color:var(--color-text)}
html[data-fiflow-version="3"] .v3-table th,html[data-fiflow-version="3"] .v3-table td{padding:11px 14px;border-bottom:1px solid var(--color-border);text-align:left;font-size:8.5px;vertical-align:middle}
html[data-fiflow-version="3"] .v3-table th{background:var(--bg4);color:var(--color-muted);font-size:7px;font-weight:850;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}
html[data-fiflow-version="3"] .v3-table td strong{font-size:8.5px}
html[data-fiflow-version="3"] .v3-table td small{display:block;color:var(--color-muted);font-size:7px}
html[data-fiflow-version="3"] .v3-table select{max-width:130px;padding:4px 6px;border:0;border-radius:5px;background:var(--bg4);font-size:7px;text-overflow:ellipsis}
html[data-fiflow-version="3"] .v3-table tbody tr:hover td{background:var(--bg4)}
html[data-fiflow-version="3"] .v3-table tr.selected td{background:var(--color-primary-soft)}
html[data-fiflow-version="3"] .v3-filter-bar{padding:13px 15px;border-bottom:1px solid var(--color-border);display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html[data-fiflow-version="3"] .v3-filter-bar select,html[data-fiflow-version="3"] .v3-filter-bar input,html[data-fiflow-version="3"] .v3-select-display{min-height:31px;padding:0 9px;border:1px solid var(--color-border);border-radius:7px;background:#fff;color:var(--color-text);font-size:8px}
html[data-fiflow-version="3"] .v3-filter-search{min-width:180px;flex:1}
html[data-fiflow-version="3"] .v3-filter-popover-wrap{position:relative}
html[data-fiflow-version="3"] .v3-filter-trigger{display:inline-flex;align-items:center;gap:6px;position:relative}
html[data-fiflow-version="3"] .v3-filter-trigger.active{border-color:var(--color-primary);color:var(--color-primary)}
html[data-fiflow-version="3"] .v3-filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:15px;height:15px;padding:0 4px;border-radius:999px;background:var(--color-primary);color:#fff;font-size:8px;font-weight:800}
html[data-fiflow-version="3"] .v3-filter-count[hidden]{display:none}
html[data-fiflow-version="3"] .v3-filter-popover{position:absolute;top:calc(100% + 6px);left:0;z-index:20;width:240px;max-height:min(420px,70vh);overflow-y:auto;padding:14px;border:1px solid var(--color-border);border-radius:12px;background:#fff;box-shadow:var(--shadow);display:grid;gap:10px;align-content:start}
html[data-fiflow-version="3"] .v3-filter-popover[hidden]{display:none}
html[data-fiflow-version="3"] .v3-filter-popover label{display:grid;gap:4px;color:var(--color-muted);font-size:8.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
html[data-fiflow-version="3"] .v3-filter-popover select{min-height:31px;padding:0 9px;border:1px solid var(--color-border);border-radius:7px;background:#fff;color:var(--color-text);text-transform:none;font-weight:500}
html[data-fiflow-version="3"] .v3-filter-popover .v3-text-button{justify-self:start;margin-top:2px;flex-shrink:0}
html[data-fiflow-version="3"] .v3-filter-checkbox-label{border-top:1px solid var(--color-border);padding-top:10px}
html[data-fiflow-version="3"] .v3-filter-checkbox-row{display:flex;align-items:center;gap:7px;color:var(--color-text);font-size:11px;font-weight:700;text-transform:none;letter-spacing:normal}
html[data-fiflow-version="3"] .v3-filter-checkbox-row input[type="checkbox"]{width:14px;height:14px;accent-color:var(--color-primary);cursor:pointer}
html[data-fiflow-version="3"] .v3-filter-hint{color:var(--color-muted);font-size:8.5px;font-weight:500;text-transform:none;letter-spacing:normal;line-height:1.4}
html[data-fiflow-version="3"] #txDuplicateBadge{margin-right:0}
html[data-fiflow-version="3"] .v3-dup-badge{display:inline-flex;align-items:center;min-height:22px;padding:3px 7px;border:1px solid var(--red-border);border-radius:999px;background:var(--red-light);color:var(--red2);font-size:9px;font-weight:800;white-space:nowrap}
html[data-fiflow-version="3"] .v3-period-menu{width:200px;gap:0;padding:8px}
html[data-fiflow-version="3"] .v3-period-all{display:flex!important;flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:8px;padding:7px 6px;border-bottom:1px solid var(--color-border);margin-bottom:4px;color:var(--color-text)!important;font-size:10.5px!important;font-weight:700!important;text-transform:none!important;cursor:pointer}
html[data-fiflow-version="3"] .v3-period-list{display:flex;flex-direction:column;max-height:260px;overflow-y:auto}
html[data-fiflow-version="3"] .v3-period-list label{display:flex!important;flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:8px;padding:6px;border-radius:7px;color:var(--color-text)!important;font-size:10.5px!important;font-weight:600!important;text-transform:none!important;cursor:pointer}
html[data-fiflow-version="3"] .v3-period-list label:hover{background:var(--color-bg)}
html[data-fiflow-version="3"] .v3-period-empty{display:block;padding:10px 6px;color:var(--color-muted);font-size:10px}
html[data-fiflow-version="3"] .v3-period-total-badge{display:inline-flex;align-items:center;height:30px;padding:0 11px;border-radius:999px;background:var(--color-primary-soft);color:var(--color-primary-dark);font-size:10px;font-weight:800;white-space:nowrap}
html[data-fiflow-version="3"] .v3-period-total-badge[hidden]{display:none}
html[data-fiflow-version="3"] .v3-table-actions{padding:10px 15px;display:flex;align-items:center;gap:8px}
html[data-fiflow-version="3"] .v3-category-list{max-height:520px;overflow-y:auto}
html[data-fiflow-version="3"] .v3-category-row{padding:11px 15px;border-bottom:1px solid #EDF1EF;display:grid;grid-template-columns:minmax(160px,1.4fr) minmax(120px,1fr) 130px;align-items:center;gap:14px}
html[data-fiflow-version="3"] .v3-category-row:hover{background:#FAFCFB}
html[data-fiflow-version="3"] .v3-category-name{display:flex;align-items:center;gap:9px;min-width:0}
html[data-fiflow-version="3"] .v3-category-name strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-fiflow-version="3"] .v3-category-usage{display:flex;flex-direction:column;gap:2px;color:var(--color-muted);font-size:9px}
html[data-fiflow-version="3"] .v3-category-usage span:last-child{color:var(--color-text);font-weight:700;font-size:11px}
html[data-fiflow-version="3"] .v3-category-limit{display:flex;align-items:center;justify-content:flex-end;gap:4px}
html[data-fiflow-version="3"] .v3-category-limit span{color:var(--color-muted);font-size:9px}
html[data-fiflow-version="3"] .v3-category-limit input{width:84px;min-height:28px;padding:0 8px;border:1px solid var(--color-border);border-radius:7px;text-align:right;font-size:11px}
html[data-fiflow-version="3"] .v3-category-nolimit{color:var(--color-border);text-align:right;font-size:11px}
@media (max-width:720px){
  html[data-fiflow-version="3"] .v3-category-row{grid-template-columns:1fr;gap:6px}
  html[data-fiflow-version="3"] .v3-category-limit,html[data-fiflow-version="3"] .v3-category-nolimit{justify-content:flex-start;text-align:left}
}
html[data-fiflow-version="3"] .v3-table-actions .v3-badge{margin-right:auto}
html[data-fiflow-version="3"] .bulk-select-bar{margin:0;padding:10px 15px;border-radius:0;background:var(--color-primary-soft);font-size:8px}
html[data-fiflow-version="3"] .bulk-select-bar.show{display:flex}
html[data-fiflow-version="3"] .v3-insight-grid{margin-top:14px;display:grid;grid-template-columns:1fr 1fr;gap:14px}
html[data-fiflow-version="3"] .v3-insight-card{display:flex;align-items:center;gap:14px}
html[data-fiflow-version="3"] .v3-insight-card>span{width:42px;height:42px;border-radius:50%;background:var(--color-primary-soft);color:var(--color-primary);display:grid;place-items:center;font-size:19px}
html[data-fiflow-version="3"] .v3-insight-card.orange>span{background:var(--amber-light);color:var(--color-orange)}
html[data-fiflow-version="3"] .v3-insight-card strong{font-size:10px}
html[data-fiflow-version="3"] .v3-insight-card p{margin:4px 0;color:var(--color-muted);font-size:8px}
html[data-fiflow-version="3"] .v3-import-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(250px,.65fr);gap:18px}
html[data-fiflow-version="3"] .v3-upload-card>p,html[data-fiflow-version="3"] .v3-backup-card p{margin:4px 0 14px;color:var(--color-muted);font-size:9px}
html[data-fiflow-version="3"] .drop-zone{min-height:230px;padding:28px;border:1.5px dashed #AFC5BB;border-radius:14px;background:#FCFDFC;display:flex;flex-direction:column;align-items:center;justify-content:center}
html[data-fiflow-version="3"] .drop-zone:hover,html[data-fiflow-version="3"] .drop-zone.drag-over{border-color:var(--color-primary);background:var(--color-primary-soft)}
html[data-fiflow-version="3"] .v3-upload-icon{width:52px;height:52px;margin-bottom:16px;border-radius:50%;background:var(--color-primary-soft);color:var(--color-primary);display:grid;place-items:center;font-size:28px}
html[data-fiflow-version="3"] .drop-zone strong{font-size:13px}
html[data-fiflow-version="3"] .drop-zone p{max-width:390px;margin:8px 0 13px;color:var(--color-muted);font-size:9px;text-align:center}
html[data-fiflow-version="3"] .v3-import-side{display:grid;align-content:start;gap:14px}
html[data-fiflow-version="3"] .v3-guide-item{padding:10px 0;display:grid;gap:4px}
html[data-fiflow-version="3"] .v3-guide-item strong{font-size:9px}
html[data-fiflow-version="3"] .v3-guide-item span,html[data-fiflow-version="3"] .v3-dedupe-note span{color:var(--color-muted);font-size:8px}
html[data-fiflow-version="3"] .v3-dedupe-note{margin-top:8px;padding:12px;border:1px solid #CDE7DC;border-radius:9px;background:var(--color-primary-soft);display:grid;gap:4px}
html[data-fiflow-version="3"] .v3-dedupe-note strong{color:var(--color-primary);font-size:8px}
html[data-fiflow-version="3"] .v3-security-card{min-height:170px;padding:18px;border-radius:14px;background:var(--color-primary-dark);color:#fff;display:flex;flex-direction:column;justify-content:flex-end}
html[data-fiflow-version="3"] .v3-security-card>span{margin-bottom:auto;color:rgba(55,214,163,.44);font-size:40px;text-align:right}
html[data-fiflow-version="3"] .v3-security-card strong{color:var(--color-accent-green);font-size:14px}
html[data-fiflow-version="3"] .v3-security-card p{color:rgba(255,255,255,.48);font-size:8px}
html[data-fiflow-version="3"] .v3-backup-card{margin-top:18px;display:flex;align-items:center;justify-content:space-between;gap:20px}
html[data-fiflow-version="3"] .v3-inline-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
html[data-fiflow-version="3"] .v3-system-total{padding:24px;color:#93A19B;font-size:8px;font-weight:800;text-align:center;text-transform:uppercase}
html[data-fiflow-version="3"] .file-queue-item{padding:10px 12px;border:1px solid var(--color-border);border-radius:9px;background:#F3F5F4}
html[data-fiflow-version="3"] .v3-import-queue{margin-top:15px}
html[data-fiflow-version="3"] .v3-dre-card{padding:0;overflow:hidden}
html[data-fiflow-version="3"] .v3-waterfall-card{margin-top:16px}
html[data-fiflow-version="3"] .v3-categories-chart-card{margin-top:16px}
html[data-fiflow-version="3"] .v3-categories-chart-canvas{position:relative;height:280px;margin-top:6px}
html[data-fiflow-version="3"] .v3-categories-chart-canvas canvas{width:100%!important;height:100%!important}
html[data-fiflow-version="3"] .v3-category-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.18)}
html[data-fiflow-version="3"] .v3-categories-bulk-bar{display:none}
html[data-fiflow-version="3"] .v3-categories-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 20px;text-align:center;gap:12px}
html[data-fiflow-version="3"] .v3-categories-empty-icon{opacity:.4}
html[data-fiflow-version="3"] #categoriesTxList .v3-category-tx-table td{padding:6px 8px;font-size:12px}
html[data-fiflow-version="3"] #categoriesTxList .v3-category-tx-table select{padding:3px 6px;font-size:11px;max-width:140px}
html[data-fiflow-version="3"] .v3-waterfall-canvas{position:relative;height:280px;margin-top:6px}
html[data-fiflow-version="3"] .v3-waterfall-canvas canvas{width:100%!important;height:100%!important}
html[data-fiflow-version="3"] .v3-invest-evolution-card,html[data-fiflow-version="3"] .v3-invest-flow-card{margin-top:16px}
html[data-fiflow-version="3"] .v3-invest-chart-canvas{position:relative;height:220px;margin-top:6px}
html[data-fiflow-version="3"] .v3-invest-chart-canvas canvas{width:100%!important;height:100%!important}
html[data-fiflow-version="3"] .v3-dre-toolbar{justify-content:flex-end}
html[data-fiflow-version="3"] .v3-dre-toolbar .v3-badge{margin-left:auto}
html[data-fiflow-version="3"] .dre-table{min-width:1160px}
html[data-fiflow-version="3"] .dre-table th,html[data-fiflow-version="3"] .dre-table td{padding:7px 9px;border-color:var(--color-border);font-size:8px;white-space:nowrap;font-variant-numeric:tabular-nums}
html[data-fiflow-version="3"] .dre-table thead th{position:sticky;top:0;z-index:2;background:var(--bg4);color:var(--color-text);font-size:7px;text-transform:uppercase;letter-spacing:.05em}
html[data-fiflow-version="3"] .dre-table th:first-child,html[data-fiflow-version="3"] .dre-table td:first-child{position:sticky;left:0;z-index:1;background:inherit}
html[data-fiflow-version="3"] .dre-total td{background:var(--color-primary-dark)!important;color:#fff!important}
html[data-fiflow-version="3"] .dre-indicator td{background:var(--color-primary)!important;color:#fff!important}
html[data-fiflow-version="3"] #dreInsights{margin-top:15px}
html[data-fiflow-version="3"] .v3-ai-workspace{grid-template-columns:minmax(0,1.5fr) minmax(280px,.62fr);gap:16px}
html[data-fiflow-version="3"] .ai-chat-card{min-height:calc(100vh - 114px);display:flex;flex-direction:column}
html[data-fiflow-version="3"] .v3-agent-heading{margin-bottom:12px;display:flex;justify-content:space-between;gap:10px}
html[data-fiflow-version="3"] .v3-agent-heading strong{display:block;font-size:11px}
html[data-fiflow-version="3"] .v3-agent-heading small{display:block;color:var(--color-muted);font-size:7px;text-transform:uppercase}
html[data-fiflow-version="3"] .ai-chat-history{flex:1;min-height:340px;max-height:none;padding:8px;border:0;background:#FAFBFA}
html[data-fiflow-version="3"] .ai-msg-bubble{border-color:var(--color-border);border-radius:12px;box-shadow:none}
html[data-fiflow-version="3"] .ai-msg-wrap.user .ai-msg-bubble{background:var(--color-primary);color:#fff}
html[data-fiflow-version="3"] .ai-quick{margin:10px 0}
html[data-fiflow-version="3"] .ai-quick-btn{border-color:var(--color-border);border-radius:999px;background:#fff;color:var(--color-text);font-size:8px}
html[data-fiflow-version="3"] .ai-input-row{padding:7px;border:1px solid var(--color-border);border-radius:11px;background:#fff}
html[data-fiflow-version="3"] .ai-input{border:0;background:transparent}
html[data-fiflow-version="3"] .ai-side-card{min-height:calc(100vh - 114px)}
html[data-fiflow-version="3"] .ai-kpi-grid{grid-template-columns:1fr 1fr}
html[data-fiflow-version="3"] .ai-kpi{padding:12px;border:1px solid rgba(0,0,0,0.04);border-radius:12px;background:linear-gradient(145deg,#FFF,#F4F8F6);box-shadow:0 1px 3px rgba(0,0,0,0.03), 0 4px 20px rgba(0,0,0,0.04)}
html[data-fiflow-version="3"] .ai-list-item{padding:9px 0;border-color:#E8EDEB;font-size:8px}
html[data-fiflow-version="3"] .v3-forecast-chart{min-height:390px;margin-top:15px}
html[data-fiflow-version="3"] .v3-forecast-svg svg{height:260px}
html[data-fiflow-version="3"] .v3-forecast-svg .actual{stroke:var(--color-primary)}
html[data-fiflow-version="3"] .v3-forecast-svg .projected{stroke:var(--color-primary);stroke-dasharray:8 7}
html[data-fiflow-version="3"] .v3-forecast-svg .expense{stroke:var(--color-orange);stroke-dasharray:5 6}
html[data-fiflow-version="3"] .v3-forecast-insight{margin-top:16px;padding:12px;border:1px solid #CDD9D4;border-radius:8px;background:#F0F3F1;display:flex;gap:10px;font-size:9px}
html[data-fiflow-version="3"] .v3-forecast-insight p{margin:0}
html[data-fiflow-version="3"] .v3-prediction-bottom{margin-top:15px;display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:15px}
html[data-fiflow-version="3"] .v3-scenario-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
html[data-fiflow-version="3"] .v3-scenario{padding:14px;border:1px solid var(--color-border);border-radius:11px;display:grid}
html[data-fiflow-version="3"] .v3-scenario.active{border:1.5px solid var(--color-primary);background:var(--color-primary-soft)}
html[data-fiflow-version="3"] .v3-scenario small{color:var(--color-muted);font-size:7px;font-weight:850;text-transform:uppercase}
html[data-fiflow-version="3"] .v3-scenario strong{margin-top:7px;font-size:15px}
html[data-fiflow-version="3"] .v3-scenario>span{font-size:8px}
html[data-fiflow-version="3"] .v3-scenario hr{width:100%;margin:13px 0 8px;border:0;border-top:1px solid var(--color-border)}
html[data-fiflow-version="3"] .v3-scenario p{margin:3px 0;color:var(--color-muted);display:flex;justify-content:space-between;font-size:7.5px}
html[data-fiflow-version="3"] .v3-priority-panel{padding:18px;border-radius:14px;background:var(--color-primary-dark);color:#fff;display:flex;flex-direction:column}
html[data-fiflow-version="3"] .v3-priority-panel h2{color:#fff;font-size:15px}
html[data-fiflow-version="3"] .v3-priority-item{margin-top:12px;padding:12px;border-radius:8px;background:rgba(255,255,255,.12);display:flex;gap:10px}
html[data-fiflow-version="3"] .v3-priority-item>span{width:21px;height:21px;border-radius:50%;background:var(--color-accent-green);color:var(--color-primary-dark);display:grid;place-items:center;flex:0 0 auto;font-size:7px}
html[data-fiflow-version="3"] .v3-priority-item strong{font-size:9px}
html[data-fiflow-version="3"] .v3-priority-item p{margin:5px 0 0;color:rgba(255,255,255,.68);font-size:8px}
html[data-fiflow-version="3"] .v3-ai-strategy{min-height:38px;margin-top:auto;border:0;border-radius:7px;background:var(--color-accent-green);color:var(--color-primary-dark);font-size:10px;font-weight:850}
html[data-fiflow-version="3"] .budget-summary-grid{margin-bottom:18px;grid-template-columns:repeat(3,1fr)}
html[data-fiflow-version="3"] .budget-summary-card{min-height:108px;padding:15px}
html[data-fiflow-version="3"] .budget-summary-icon{color:var(--color-primary);background:var(--color-primary-soft)}
html[data-fiflow-version="3"] .budget-summary-icon.orange{color:var(--color-orange);background:var(--amber-light)}
html[data-fiflow-version="3"] .budget-summary-progress span,html[data-fiflow-version="3"] .budget-bar-inner{background:var(--color-primary)}
html[data-fiflow-version="3"] .budget-summary-progress.orange span{background:var(--color-orange)}
html[data-fiflow-version="3"] .v3-budget-workspace{grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr)}
html[data-fiflow-version="3"] .budget-panel-header{margin-bottom:12px}
html[data-fiflow-version="3"] .budget-goal-card{border:1px solid rgba(0,0,0,0.04);border-radius:11px;box-shadow:0 1px 3px rgba(0,0,0,0.03), 0 4px 20px rgba(0,0,0,0.04)}
html[data-fiflow-version="3"] .budget-badge.green{background:var(--color-primary-soft);color:var(--color-primary)}
html[data-fiflow-version="3"] .budget-badge.yellow{background:var(--amber-light);color:var(--color-orange)}
html[data-fiflow-version="3"] .budget-badge.red{background:var(--red-light);color:var(--color-red)}
html[data-fiflow-version="3"] .v3-ai-insight{margin-top:14px;padding:12px;border:1px solid #CDE7DC;border-radius:9px;background:var(--color-primary-soft);display:grid;gap:4px}
html[data-fiflow-version="3"] .v3-ai-insight strong{color:var(--color-primary);font-size:9px}
html[data-fiflow-version="3"] .v3-ai-insight span{color:var(--color-muted);font-size:8px}

/* Centro de Planejamento Financeiro */
html[data-fiflow-version="3"] #pane-budget{--planning-shadow:0 1px 2px rgba(0,0,0,.03),0 8px 24px rgba(0,0,0,.05);gap:24px;padding-bottom:28px}
html[data-fiflow-version="3"] #pane-budget.active{display:grid;animation:v3PlanningFade .45s ease both}
html[data-fiflow-version="3"] #pane-budget .v3-page-heading-row{margin-bottom:-10px}
html[data-fiflow-version="3"] .v3-planning-period-row{margin-top:-8px;display:flex;align-items:center;justify-content:flex-end;gap:10px}
html[data-fiflow-version="3"] .v3-planning-period-row label{color:var(--color-muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
html[data-fiflow-version="3"] .v3-planning-period-row select,
html[data-fiflow-version="3"] .v3-compass-profile select{height:38px;padding:0 34px 0 12px;border:1px solid var(--color-border);border-radius:11px;background:#fff;color:var(--color-text);font:700 11px Inter,system-ui,sans-serif;outline:none;transition:border-color .2s,box-shadow .2s}
html[data-fiflow-version="3"] .v3-planning-period-row select:focus,
html[data-fiflow-version="3"] .v3-compass-profile select:focus{border-color:var(--planning-primary);box-shadow:0 0 0 3px rgba(13,138,107,.1)}
html[data-fiflow-version="3"] .v3-compass-strategy-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
html[data-fiflow-version="3"] .v3-strategy-card{position:relative;min-height:195px;padding:24px 26px;border:1px solid rgba(0,0,0,0.04);border-radius:20px;background:linear-gradient(135deg,#F0FAF5 0%,#FFFFFF 40%);box-shadow:0 1px 3px rgba(0,0,0,0.03), 0 4px 20px rgba(0,0,0,0.04);color:var(--color-text);display:flex;flex-direction:column;align-items:flex-start;text-align:left;overflow:hidden;cursor:pointer;transition:transform .3s cubic-bezier(0.16, 1, 0.3, 1),box-shadow .3s cubic-bezier(0.16, 1, 0.3, 1),border-color .3s ease}
html[data-fiflow-version="3"] .v3-strategy-card:after{content:"";position:absolute;top:-30px;right:-30px;width:100px;height:100px;border-radius:50%;background:rgba(12,79,65,.06);pointer-events:none}
html[data-fiflow-version="3"] .v3-strategy-card:hover,
html[data-fiflow-version="3"] .v3-strategy-card.active{transform:translateY(-6px);border-color:#0C4F41;box-shadow:0 12px 24px rgba(12,79,65,.12),0 4px 8px rgba(18,33,28,.06)}
html[data-fiflow-version="3"] .v3-strategy-icon{width:46px;height:46px;border-radius:50%;background:#E0F0EA;color:#0C4F41;display:grid;place-items:center;position:relative;z-index:1;box-shadow:0 4px 14px rgba(12,79,65,.12)}
html[data-fiflow-version="3"] .v3-strategy-title{margin-top:14px;color:#5C6E66;font-size:11px;font-weight:800}
html[data-fiflow-version="3"] .v3-strategy-value{margin-top:5px;color:#12211C;font-size:clamp(22px,2vw,28px);font-weight:870;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
html[data-fiflow-version="3"] .v3-strategy-ratio{margin-top:8px;color:#788A82;font-size:10px}
html[data-fiflow-version="3"] .v3-strategy-ratio b{color:#12211C;font-weight:700}
html[data-fiflow-version="3"] .v3-strategy-status{margin-top:6px;margin-bottom:10px;color:#0C4F41;font-size:10px;font-weight:800}
html[data-fiflow-version="3"] .v3-strategy-progress{width:100%;height:7px;margin-top:auto;border-radius:999px;background:#E0E8E4;overflow:hidden}
html[data-fiflow-version="3"] .v3-strategy-progress i{display:block;height:100%;border-radius:inherit;background:var(--strategy-color);transition:width .7s ease}
html[data-fiflow-version="3"] .v3-compass-panel{min-height:300px;padding:32px!important;border-radius:24px!important;box-shadow:var(--planning-shadow)!important}
html[data-fiflow-version="3"] .v3-compass-insight{display:flex;align-items:flex-start;gap:10px;margin-bottom:16px;padding:13px 16px;border:1px solid var(--color-border);border-radius:14px;background:var(--color-card)}
html[data-fiflow-version="3"] .v3-compass-insight span{flex-shrink:0;font-size:17px}
html[data-fiflow-version="3"] .v3-compass-insight p{margin:0;color:var(--color-text);font-size:12px;font-weight:650;line-height:1.45}
html[data-fiflow-version="3"] .v3-risk-section{margin-top:16px;border-color:color-mix(in srgb, var(--color-orange) 35%, var(--color-border))!important;background:var(--amber-light)!important}
html[data-fiflow-version="3"] .v3-risk-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid color-mix(in srgb, var(--color-orange) 20%, var(--color-border))}
html[data-fiflow-version="3"] .v3-risk-row:last-child{border-bottom:0}
html[data-fiflow-version="3"] .v3-risk-row strong{display:block;font-size:11px}
html[data-fiflow-version="3"] .v3-risk-row span{display:block;margin-top:2px;color:var(--color-muted);font-size:9.5px}
html[data-fiflow-version="3"] .v3-risk-row b{white-space:nowrap;font-size:10px}
html[data-fiflow-version="3"] .v3-compass-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
html[data-fiflow-version="3"] .v3-compass-header h2,
html[data-fiflow-version="3"] .v3-planning-section h2,
html[data-fiflow-version="3"] .v3-planning-insights h2{margin:4px 0 0;color:var(--color-text);font-size:18px;font-weight:850;letter-spacing:-.025em}
html[data-fiflow-version="3"] .v3-compass-header p,
html[data-fiflow-version="3"] .v3-planning-section .budget-panel-header p,
html[data-fiflow-version="3"] .v3-planning-insights-heading p{margin:6px 0 0;color:var(--color-muted);font-size:11px;line-height:1.5}
html[data-fiflow-version="3"] .v3-compass-profile{display:grid;gap:7px;color:var(--color-muted);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}
html[data-fiflow-version="3"] .v3-compass-income-badge{display:grid;gap:4px;padding:10px 16px;border:1px solid var(--color-border);border-radius:11px;background:var(--color-primary-soft);text-align:center}
html[data-fiflow-version="3"] .v3-compass-income-badge span{color:var(--color-muted);font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
html[data-fiflow-version="3"] .v3-compass-income-badge strong{color:var(--color-primary);font-size:15px;font-weight:850}
html[data-fiflow-version="3"] .v3-compass-body{min-height:250px;margin-top:20px;display:grid;grid-template-columns:minmax(320px,.85fr) minmax(440px,1.15fr);align-items:center;gap:38px}
html[data-fiflow-version="3"] .v3-compass-chart-wrap{position:relative;height:240px;min-width:0}
html[data-fiflow-version="3"] .v3-compass-chart-center{position:absolute;inset:50% auto auto 50%;width:118px;transform:translate(-50%,-50%);display:grid;text-align:center;pointer-events:none}
html[data-fiflow-version="3"] .v3-compass-chart-center span,
html[data-fiflow-version="3"] .v3-compass-chart-center small{color:var(--color-muted);font-size:8px}
html[data-fiflow-version="3"] .v3-compass-chart-center strong{margin:4px 0;color:var(--color-text);font-size:14px}
html[data-fiflow-version="3"] .v3-compass-table{width:100%;border-collapse:collapse}
html[data-fiflow-version="3"] .v3-compass-table th{padding:10px 12px;border-bottom:1px solid var(--color-border);color:var(--color-muted);font-size:8.5px;font-weight:850;text-align:left;text-transform:uppercase;letter-spacing:.05em}
html[data-fiflow-version="3"] .v3-compass-table td{padding:12px;border-bottom:1px solid #EDF1EF;color:var(--color-muted);font-size:10.5px;transition:background .2s}
html[data-fiflow-version="3"] .v3-compass-table tr:last-child td{border-bottom:0}
html[data-fiflow-version="3"] .v3-compass-table td:first-child{color:var(--color-text);font-weight:750}
html[data-fiflow-version="3"] .v3-compass-table td strong{color:var(--color-text)}
html[data-fiflow-version="3"] .v3-compass-table tr.highlight td{animation:v3CompassHighlight 1.25s ease}
html[data-fiflow-version="3"] .v3-compass-dot{width:8px;height:8px;margin-right:8px;border-radius:50%;display:inline-block}
html[data-fiflow-version="3"] .v3-compass-status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:8.5px;font-weight:850;white-space:nowrap}
html[data-fiflow-version="3"] .v3-compass-status.excellent{background:var(--color-primary-soft);color:var(--color-primary)}
html[data-fiflow-version="3"] .v3-compass-status.good{background:rgba(63,191,160,.16);color:#175E4E}
html[data-fiflow-version="3"] .v3-compass-status.attention{background:var(--amber-light);color:var(--color-orange)}
html[data-fiflow-version="3"] .v3-compass-status.outside{background:var(--red-light);color:var(--color-red)}
html[data-fiflow-version="3"] .v3-compass-custom{display:none;margin-top:18px;padding:14px;border:1px solid #DDE8E3;border-radius:14px;background:#F8FBFA;align-items:end;grid-template-columns:repeat(5,minmax(90px,1fr)) auto;gap:10px}
html[data-fiflow-version="3"] .v3-compass-custom.active{display:grid}
html[data-fiflow-version="3"] .v3-compass-custom label{position:relative;display:grid;gap:5px;color:var(--color-muted);font-size:8px;font-weight:800}
html[data-fiflow-version="3"] .v3-compass-custom input{height:34px;padding:0 24px 0 9px;border:1px solid var(--color-border);border-radius:8px;background:#fff}
html[data-fiflow-version="3"] .v3-compass-custom label span{position:absolute;right:8px;bottom:9px}
html[data-fiflow-version="3"] .v3-compass-custom small{grid-column:1/-1;color:var(--color-muted);font-size:8px}
html[data-fiflow-version="3"] .v3-planning-section{border-radius:20px;background:#fff;box-shadow:var(--planning-shadow);overflow:hidden}
html[data-fiflow-version="3"] .v3-planning-section>.budget-panel-header{min-height:auto;padding:22px 24px;border-bottom:1px solid var(--color-border)}
html[data-fiflow-version="3"] .v3-premium-goals{padding:24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
html[data-fiflow-version="3"] .v3-premium-goal{position:relative;padding:20px;border:1px solid rgba(0,0,0,0.04);border-radius:20px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,0.03), 0 4px 20px rgba(0,0,0,0.04);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
html[data-fiflow-version="3"] .v3-premium-goal:hover{transform:scale(1.01);border-color:color-mix(in srgb,var(--goal-color) 35%,#DDE5E1);box-shadow:var(--planning-shadow)}
html[data-fiflow-version="3"] .v3-premium-goal-heading{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px}
html[data-fiflow-version="3"] .v3-premium-goal-heading>div{display:grid;gap:3px}
html[data-fiflow-version="3"] .v3-premium-goal-heading strong{font-size:12px}
html[data-fiflow-version="3"] .v3-premium-goal-heading span{color:var(--color-muted);font-size:9px}
html[data-fiflow-version="3"] .v3-goal-percent{padding:5px 8px;border-radius:999px;background:color-mix(in srgb,var(--goal-color) 10%,#fff);color:var(--goal-color)!important;font-weight:850}
html[data-fiflow-version="3"] .v3-goal-financials{margin:18px 0 15px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
html[data-fiflow-version="3"] .v3-goal-financials span{min-width:0}
html[data-fiflow-version="3"] .v3-goal-financials small{display:block;color:var(--color-muted);font-size:8px}
html[data-fiflow-version="3"] .v3-goal-financials strong{display:block;margin-top:4px;color:var(--color-text);font-size:11px;white-space:nowrap}
html[data-fiflow-version="3"] .v3-premium-goal .budget-bar-outer{height:7px;background:#EAF0ED}
html[data-fiflow-version="3"] .v3-premium-goal .budget-bar-inner{background:var(--goal-color);transition:width .7s ease}
html[data-fiflow-version="3"] .v3-goal-footer{margin-top:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--color-muted);font-size:9px}
html[data-fiflow-version="3"] .v3-goal-footer>span strong{color:var(--color-text)}
html[data-fiflow-version="3"] .v3-goal-footer>div{display:flex;align-items:center;gap:7px}
html[data-fiflow-version="3"] .v3-budget-section{padding:0!important}
html[data-fiflow-version="3"] .v3-budget-section .budget-category-list{max-height:430px;padding:10px 24px 4px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#C8D5CF transparent}
html[data-fiflow-version="3"] .v3-budget-section .budget-category-list::-webkit-scrollbar{width:6px}
html[data-fiflow-version="3"] .v3-budget-section .budget-category-list::-webkit-scrollbar-thumb{border-radius:999px;background:#C8D5CF}
html[data-fiflow-version="3"] .v3-budget-category{position:relative;min-height:72px;padding:15px 92px 15px 0;border-bottom:1px solid #EDF1EF;display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:center;gap:8px 18px;transition:background .2s,padding .2s;cursor:pointer}
html[data-fiflow-version="3"] .v3-budget-category:hover{padding-left:10px;padding-right:82px;background:var(--color-primary-soft)}
html[data-fiflow-version="3"] .v3-budget-category>div:first-child{display:grid;gap:3px}
html[data-fiflow-version="3"] .v3-budget-category>div:first-child strong{font-size:11px}
html[data-fiflow-version="3"] .v3-budget-category>div:first-child span{color:var(--color-muted);font-size:9px}
html[data-fiflow-version="3"] .v3-budget-indicator{display:inline-flex;align-items:center;gap:6px;font-size:8.5px;font-weight:800}
html[data-fiflow-version="3"] .v3-budget-indicator i{width:7px;height:7px;border-radius:50%}
html[data-fiflow-version="3"] .v3-budget-indicator.inside{color:var(--planning-success)}
html[data-fiflow-version="3"] .v3-budget-indicator.inside i,
html[data-fiflow-version="3"] .v3-budget-category.inside .v3-budget-progress i{background:var(--planning-success)}
html[data-fiflow-version="3"] .v3-budget-indicator.near{color:var(--color-orange)}
html[data-fiflow-version="3"] .v3-budget-indicator.near i,
html[data-fiflow-version="3"] .v3-budget-category.near .v3-budget-progress i{background:var(--planning-warning)}
html[data-fiflow-version="3"] .v3-budget-indicator.above{color:var(--color-red)}
html[data-fiflow-version="3"] .v3-budget-indicator.above i,
html[data-fiflow-version="3"] .v3-budget-category.above .v3-budget-progress i{background:var(--color-red)}
html[data-fiflow-version="3"] .v3-budget-progress{height:5px;border-radius:999px;background:#EAF0ED;overflow:hidden}
html[data-fiflow-version="3"] .v3-budget-progress i{display:block;height:100%;border-radius:inherit;transition:width .7s ease}
/* Estouro real (>100%) ganha textura listrada — não basta a cor, a forma da barra também precisa comunicar overflow. */
html[data-fiflow-version="3"] .v3-budget-category.above .v3-budget-progress i{background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.35) 0 4px,transparent 4px 8px)}
html[data-fiflow-version="3"] .v3-budget-category>b{position:absolute;right:0;bottom:15px;color:var(--color-muted);font-size:10px}
html[data-fiflow-version="3"] .v3-budget-category.above>b{color:var(--color-red);font-weight:800}
html[data-fiflow-version="3"] .v3-budget-total{padding:17px 24px 22px;border-top:1px solid var(--color-border);display:grid;grid-template-columns:1fr auto;gap:6px 20px;align-items:center}
html[data-fiflow-version="3"] .v3-budget-total>span:first-child{font-size:11px;font-weight:800}
html[data-fiflow-version="3"] .v3-budget-total>span:nth-child(2){color:var(--color-muted);font-size:9px}
html[data-fiflow-version="3"] .v3-budget-total .budget-summary-progress{grid-column:1/-1;height:6px;margin-top:3px}
html[data-fiflow-version="3"] .v3-planning-insights{padding:24px;border:1px solid rgba(0,0,0,0.04);border-radius:20px;background:linear-gradient(135deg,#F0FAF6,#F8FCFA);box-shadow:0 1px 3px rgba(0,0,0,0.03), 0 4px 20px rgba(0,0,0,0.04)}
html[data-fiflow-version="3"] .v3-planning-insights-heading{display:flex;align-items:flex-start;gap:12px;color:var(--planning-primary)}
html[data-fiflow-version="3"] .v3-planning-insight-list{margin-top:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}
html[data-fiflow-version="3"] .v3-planning-insight{min-height:46px;padding:11px 13px;border:1px solid rgba(13,138,107,.1);border-radius:12px;background:rgba(255,255,255,.72);color:var(--planning-primary);display:flex;align-items:flex-start;gap:9px}
html[data-fiflow-version="3"] .v3-planning-insight span{color:#47625A;font-size:10px;line-height:1.45}
html[data-fiflow-version="3"] .v3-planning-disclaimer{margin-top:16px;padding-top:13px;border-top:1px solid rgba(13,138,107,.13);color:var(--color-muted);font-size:9px}
html[data-fiflow-version="3"] .v3-budget-legacy-kpis{display:none!important}
@keyframes v3PlanningFade{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@keyframes v3CompassHighlight{0%,100%{background:transparent}35%{background:#EEF8F4}}
@keyframes fiflowConfettiFall{0%{transform:translateY(0) rotate(0deg);opacity:.95}100%{transform:translateY(100vh) rotate(540deg);opacity:0}}
@keyframes v3MilestonePulse{0%{box-shadow:0 0 0 0 rgba(0,122,90,.45)}70%{box-shadow:0 0 0 7px rgba(0,122,90,0)}100%{box-shadow:0 0 0 0 rgba(0,122,90,0)}}
html[data-fiflow-version="3"] .v3-progress.milestone-pulse span{animation:v3MilestonePulse 1s ease-out 1}

html[data-fiflow-version="3"] .v3-settings-grid{display:grid;gap:15px}
html[data-fiflow-version="3"] .v3-settings-accounts{display:grid;gap:12px}
html[data-fiflow-version="3"] .v3-settings-accounts .v3-account-grid{margin:0}
html[data-fiflow-version="3"] .v3-settings-row{min-height:64px;padding:12px 0;border-top:1px solid #E8EDEB;display:flex;align-items:center;justify-content:space-between;gap:18px}
html[data-fiflow-version="3"] .v3-settings-row strong{display:block;font-size:10px}
html[data-fiflow-version="3"] .v3-settings-row span{display:block;color:var(--color-muted);font-size:8px}
html[data-fiflow-version="3"] .v3-empty{min-height:220px;padding:30px;display:grid;place-items:center;align-content:center;text-align:center}
html[data-fiflow-version="3"] .v3-empty-icon{width:50px;height:50px;margin-bottom:10px;border-radius:50%;background:var(--color-primary-soft);color:var(--color-primary);display:grid;place-items:center}
html[data-fiflow-version="3"] .v3-empty strong{font-size:13px}
html[data-fiflow-version="3"] .v3-empty p{max-width:430px;margin:6px 0 14px;color:var(--color-muted);font-size:9px}
@media(max-width:1180px){
  html[data-fiflow-version="3"] .v3-dashboard-grid{grid-template-columns:250px minmax(0,1fr)}
  html[data-fiflow-version="3"] .v3-account-grid,html[data-fiflow-version="3"] .v3-metrics-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-fiflow-version="3"] .v3-import-grid,html[data-fiflow-version="3"] .v3-ai-workspace,html[data-fiflow-version="3"] .v3-prediction-bottom,html[data-fiflow-version="3"] .v3-budget-workspace{grid-template-columns:1fr}
  html[data-fiflow-version="3"] .v3-import-side{grid-template-columns:1fr 1fr}
  html[data-fiflow-version="3"] .ai-chat-card,html[data-fiflow-version="3"] .ai-side-card{min-height:auto}
  html[data-fiflow-version="3"] .v3-compass-strategy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-fiflow-version="3"] .v3-compass-body{grid-template-columns:300px minmax(0,1fr);gap:24px}
  html[data-fiflow-version="3"] .v3-compass-custom{grid-template-columns:repeat(3,minmax(100px,1fr))}
  html[data-fiflow-version="3"] .v3-metrics-grid.five{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:920px){
  html[data-fiflow-version="3"] .sidebar{left:0;top:0;width:72px;min-width:72px;padding:18px 10px;border-radius:0}
  html[data-fiflow-version="3"] .sidebar-logo{margin:0 auto 18px}
  html[data-fiflow-version="3"] .sidebar-logo>div:last-child,html[data-fiflow-version="3"] .nav-section,html[data-fiflow-version="3"] .nav-item span:last-child,html[data-fiflow-version="3"] .v3-sidebar-link{display:none}
  html[data-fiflow-version="3"] .nav-item{justify-content:center;padding:0}
  html[data-fiflow-version="3"] .nav-item.active:before{left:-10px}
  html[data-fiflow-version="3"] .main{width:calc(100% - 72px);margin-left:72px}
  html[data-fiflow-version="3"] .v3-header-tabs,html[data-fiflow-version="3"] .header-subtitle{display:none}
  html[data-fiflow-version="3"] .v3-dashboard-grid{grid-template-columns:1fr}
  html[data-fiflow-version="3"] .v3-dashboard-left{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:720px){
  /* O cabeçalho ganhou o filtro de período global (antes vivia dentro de cada página) — em telas
     estreitas título + filtro não cabem numa única linha de altura fixa. Sem isso, o conteúdo do
     header que excede a altura fixa fica "flutuando" por cima do card seguinte (overflow visível). */
  html[data-fiflow-version="3"] .main{display:flex;flex-direction:column}
  html[data-fiflow-version="3"] .header{height:auto;min-height:64px;padding:10px 14px;flex-wrap:wrap;row-gap:8px}
  html[data-fiflow-version="3"] .v3-header-primary{flex-wrap:wrap;row-gap:6px;width:100%}
  html[data-fiflow-version="3"] .v3-header-period-filter{padding-left:0;border-left:0}
  html[data-fiflow-version="3"] .content{height:auto;flex:1;min-height:0;padding:14px}
  html[data-fiflow-version="3"] .v3-search,html[data-fiflow-version="3"] .header-user>div:last-child{display:none}
  html[data-fiflow-version="3"] .v3-dashboard-left,html[data-fiflow-version="3"] .v3-dashboard-bottom,html[data-fiflow-version="3"] .v3-metrics-grid.three,html[data-fiflow-version="3"] .v3-metrics-grid.four,html[data-fiflow-version="3"] .v3-account-grid,html[data-fiflow-version="3"] .v3-insight-grid,html[data-fiflow-version="3"] .budget-summary-grid,html[data-fiflow-version="3"] .v3-scenario-grid,html[data-fiflow-version="3"] .v3-import-side{grid-template-columns:1fr}
  html[data-fiflow-version="3"] .v3-metrics-grid.five{grid-template-columns:1fr}
  html[data-fiflow-version="3"] .v3-page-heading-row,html[data-fiflow-version="3"] .v3-page-intro,html[data-fiflow-version="3"] .v3-backup-card{align-items:flex-start;flex-direction:column}
  html[data-fiflow-version="3"] .v3-table-actions{align-items:stretch;flex-direction:column}
  html[data-fiflow-version="3"] #pane-budget{gap:16px}
  html[data-fiflow-version="3"] .v3-planning-period-row{justify-content:flex-start}
  html[data-fiflow-version="3"] .v3-compass-strategy-grid,
  html[data-fiflow-version="3"] .v3-premium-goals,
  html[data-fiflow-version="3"] .v3-planning-insight-list{grid-template-columns:1fr}
  html[data-fiflow-version="3"] .v3-strategy-card{min-height:170px}
  html[data-fiflow-version="3"] .v3-compass-panel{padding:22px!important}
  html[data-fiflow-version="3"] .v3-compass-header{flex-direction:column}
  html[data-fiflow-version="3"] .v3-compass-profile{width:100%}
  html[data-fiflow-version="3"] .v3-compass-profile select{width:100%}
  html[data-fiflow-version="3"] .v3-compass-body{grid-template-columns:1fr}
  html[data-fiflow-version="3"] .v3-compass-chart-wrap{height:270px}
  html[data-fiflow-version="3"] .v3-compass-table-wrap{overflow-x:auto}
  html[data-fiflow-version="3"] .v3-compass-table{min-width:500px}
  html[data-fiflow-version="3"] .v3-compass-custom{grid-template-columns:repeat(2,minmax(100px,1fr))}
  html[data-fiflow-version="3"] .v3-premium-goals{padding:16px}
  html[data-fiflow-version="3"] .v3-goal-footer{align-items:flex-start;flex-direction:column}
  html[data-fiflow-version="3"] .v3-budget-category{padding-right:0;grid-template-columns:1fr}
  html[data-fiflow-version="3"] .v3-budget-category:hover{padding-left:7px;padding-right:0}
  html[data-fiflow-version="3"] .v3-budget-category>b{position:static}
  html[data-fiflow-version="3"] .v3-budget-total{grid-template-columns:1fr}
  html[data-fiflow-version="3"] .v3-budget-total .budget-summary-progress{grid-column:auto}
}

/* Ajustes de produto: guia, importação assistida, predição completa e metas em lista */
html[data-fiflow-version="3"] .v3-import-steps{margin-bottom:18px}
html[data-fiflow-version="3"] .v3-step-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
html[data-fiflow-version="3"] .v3-step-grid article,
html[data-fiflow-version="3"] .v3-guide-flow article{padding:14px;border:1px solid var(--color-border);border-radius:11px;background:#FAFCFB;display:flex;gap:10px}
html[data-fiflow-version="3"] .v3-step-grid article>span,
html[data-fiflow-version="3"] .v3-guide-flow article>span{width:25px;height:25px;flex:0 0 auto;border-radius:50%;background:var(--color-primary);color:#fff;display:grid;place-items:center;font-size:9px;font-weight:900}
html[data-fiflow-version="3"] .v3-step-grid strong,
html[data-fiflow-version="3"] .v3-guide-flow strong{display:block;font-size:9px}
html[data-fiflow-version="3"] .v3-step-grid p,
html[data-fiflow-version="3"] .v3-guide-flow p{margin:5px 0 0;color:var(--color-muted);font-size:8px;line-height:1.5}
html[data-fiflow-version="3"] .v3-backup-card p{max-width:850px;line-height:1.65}
html[data-fiflow-version="3"] .v3-backup-warning{margin-top:10px;padding:11px 14px;border:1px solid #F5D7B9;border-radius:9px;background:#FFF7EE;color:#735437;font-size:8.5px;line-height:1.5}

html[data-fiflow-version="3"] .v3-guide-page{display:grid;gap:17px}
html[data-fiflow-version="3"] .v3-guide-hero{padding:23px;border-radius:15px;background:linear-gradient(135deg,#E7F6F1,#F8FCFA);border:1px solid #CAE7DD;display:flex;align-items:center;justify-content:space-between;gap:20px}
html[data-fiflow-version="3"] .v3-guide-hero h1{margin:5px 0 4px;font-size:24px;letter-spacing:-.04em}
html[data-fiflow-version="3"] .v3-guide-hero p{margin:0;max-width:700px;color:var(--color-muted);font-size:10px}
html[data-fiflow-version="3"] .v3-guide-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
html[data-fiflow-version="3"] .v3-guide-columns{display:grid;grid-template-columns:1fr 1fr;gap:15px}
html[data-fiflow-version="3"] .v3-guide-list{margin:0;padding:0;list-style:none;display:grid}
html[data-fiflow-version="3"] .v3-guide-list li{position:relative;padding:11px 8px 11px 35px;border-bottom:1px solid #E8EEEB}
html[data-fiflow-version="3"] .v3-guide-list li:last-child{border-bottom:0}
html[data-fiflow-version="3"] .v3-guide-list li:before{content:counter(list-item);position:absolute;left:4px;top:10px;width:21px;height:21px;border-radius:6px;background:var(--color-primary-soft);color:var(--color-primary);display:grid;place-items:center;font-size:8px;font-weight:900}
html[data-fiflow-version="3"] .v3-guide-list strong{display:block;font-size:9px}
html[data-fiflow-version="3"] .v3-guide-list span{display:block;margin-top:3px;color:var(--color-muted);font-size:8px;line-height:1.5}
html[data-fiflow-version="3"] .v3-guide-reference>div:last-child{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
html[data-fiflow-version="3"] .v3-guide-reference span{padding:12px;border-radius:9px;background:#F3F7F5;color:var(--color-muted);font-size:8px;line-height:1.45}
html[data-fiflow-version="3"] .v3-guide-reference strong{display:block;margin-bottom:4px;color:var(--color-text);font-size:9px}

html[data-fiflow-version="3"] #pane-predict .predict-summary-grid,
html[data-fiflow-version="3"] #pane-predict .v3-value-card-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}
html[data-fiflow-version="3"] #pane-predict .predict-summary-card{min-height:126px;padding:14px;border:1px solid rgba(0,0,0,0.04);border-radius:12px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,0.03), 0 4px 20px rgba(0,0,0,0.04)}
html[data-fiflow-version="3"] #pane-predict .predict-summary-icon{width:31px;height:31px;border-radius:8px;background:var(--color-primary-soft);color:var(--color-primary)}
html[data-fiflow-version="3"] #pane-predict .predict-summary-icon svg{stroke:currentColor}
html[data-fiflow-version="3"] #pane-predict .predict-summary-label{margin-top:9px;color:var(--color-muted);font-size:7px}
html[data-fiflow-version="3"] #pane-predict .predict-summary-card>strong{font-size:18px;color:var(--color-text);text-transform:none}
html[data-fiflow-version="3"] #pane-predict .predict-summary-card>span:last-child{font-size:7.5px}
html[data-fiflow-version="3"] #pane-predict .predict-chart-card{margin-bottom:15px;padding:17px}
html[data-fiflow-version="3"] #pane-predict .predict-chart-wrap{height:300px}
html[data-fiflow-version="3"] #pane-predict .predict-panel{padding:17px}
html[data-fiflow-version="3"] #pane-predict .v3-predict-workspace{grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:15px;margin-bottom:15px}
html[data-fiflow-version="3"] #pane-predict .predict-scenario-card{border-color:var(--color-border);background:#FAFCFB}
html[data-fiflow-version="3"] #pane-predict .scenario-base{border:1.5px solid var(--color-primary);background:var(--color-primary-soft)}
html[data-fiflow-version="3"] #pane-predict .predict-action-item>span{background:var(--color-primary);color:#fff}
html[data-fiflow-version="3"] #pane-predict .predict-method-note{background:#F1F6F4;border-color:#D6E3DE}
html[data-fiflow-version="3"] #pane-predict .predict-disclaimer{margin-top:0;background:#F4F7F5;border-color:var(--color-border)}

html[data-fiflow-version="3"] .v3-goal-row{padding:15px 16px!important}
html[data-fiflow-version="3"] .v3-goal-row-actions{display:flex;align-items:center;gap:7px}
html[data-fiflow-version="3"] .v3-goal-row .budget-row-progress-meta{margin-top:10px}
html[data-fiflow-version="3"] .v3-goal-row .budget-bar-outer{margin-top:7px}

@media(max-width:1180px){
  html[data-fiflow-version="3"] .v3-step-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  html[data-fiflow-version="3"] #pane-predict .predict-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  html[data-fiflow-version="3"] .v3-guide-flow,
  html[data-fiflow-version="3"] .v3-guide-reference>div:last-child{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-fiflow-version="3"] .v3-guide-columns,
  html[data-fiflow-version="3"] #pane-predict .v3-predict-workspace{grid-template-columns:1fr}
}
@media(max-width:720px){
  html[data-fiflow-version="3"] .v3-step-grid,
  html[data-fiflow-version="3"] .v3-guide-flow,
  html[data-fiflow-version="3"] .v3-guide-reference>div:last-child,
  html[data-fiflow-version="3"] #pane-predict .predict-summary-grid{grid-template-columns:1fr}
  html[data-fiflow-version="3"] .v3-guide-hero{align-items:flex-start;flex-direction:column}
  html[data-fiflow-version="3"] .v3-goal-row .budget-row-header{align-items:flex-start;flex-direction:column}
  html[data-fiflow-version="3"] .v3-goal-row-actions{width:100%;justify-content:flex-end}
}

/* Escala tipográfica de conteúdo — leitura confortável em telas desktop */
html[data-fiflow-version="3"] .content{font-size:13px}
html[data-fiflow-version="3"] .content p,
html[data-fiflow-version="3"] .content .v3-section-header p,
html[data-fiflow-version="3"] .content .v3-page-heading-row p,
html[data-fiflow-version="3"] .content .v3-page-intro p{font-size:12px;line-height:1.55}
html[data-fiflow-version="3"] .content .v3-section-kicker,
html[data-fiflow-version="3"] .content .v3-eyebrow,
html[data-fiflow-version="3"] .content .v3-metric-label,
html[data-fiflow-version="3"] .content .v3-account-label{font-size:10px}
html[data-fiflow-version="3"] .content .v3-badge,
html[data-fiflow-version="3"] .content .budget-badge{min-height:24px;padding:4px 9px;font-size:10px}
html[data-fiflow-version="3"] .content .v3-metric-meta,
html[data-fiflow-version="3"] .content .v3-financial-alert p,
html[data-fiflow-version="3"] .content .v3-card-brand,
html[data-fiflow-version="3"] .content .v3-premium-card footer,
html[data-fiflow-version="3"] .content .v3-daily-limit>div:first-child span,
html[data-fiflow-version="3"] .content .v3-daily-limit footer,
html[data-fiflow-version="3"] .content .v3-card-inline-title button,
html[data-fiflow-version="3"] .content .v3-text-button,
html[data-fiflow-version="3"] .content .v3-saving-row strong,
html[data-fiflow-version="3"] .content .v3-saving-row b,
html[data-fiflow-version="3"] .content .v3-chart-legend,
html[data-fiflow-version="3"] .content .v3-recent-row strong,
html[data-fiflow-version="3"] .content .v3-recent-row b,
html[data-fiflow-version="3"] .content .v3-donut-legend span,
html[data-fiflow-version="3"] .content .v3-account-heading strong,
html[data-fiflow-version="3"] .content .v3-account-heading span,
html[data-fiflow-version="3"] .content .v3-account-card footer,
html[data-fiflow-version="3"] .content .v3-consolidated-card p,
html[data-fiflow-version="3"] .content .v3-consolidated-stats small,
html[data-fiflow-version="3"] .content .v3-filter-bar select,
html[data-fiflow-version="3"] .content .v3-filter-bar input,
html[data-fiflow-version="3"] .content .v3-select-display,
html[data-fiflow-version="3"] .content .bulk-select-bar,
html[data-fiflow-version="3"] .content .v3-insight-card p,
html[data-fiflow-version="3"] .content .v3-upload-card>p,
html[data-fiflow-version="3"] .content .v3-backup-card p,
html[data-fiflow-version="3"] .content .drop-zone p,
html[data-fiflow-version="3"] .content .v3-guide-item strong,
html[data-fiflow-version="3"] .content .v3-guide-item span,
html[data-fiflow-version="3"] .content .v3-dedupe-note strong,
html[data-fiflow-version="3"] .content .v3-dedupe-note span,
html[data-fiflow-version="3"] .content .v3-security-card p,
html[data-fiflow-version="3"] .content .v3-system-total,
html[data-fiflow-version="3"] .content .ai-quick-btn,
html[data-fiflow-version="3"] .content .ai-list-item,
html[data-fiflow-version="3"] .content .v3-settings-row span,
html[data-fiflow-version="3"] .content .v3-guide-flow p,
html[data-fiflow-version="3"] .content .v3-guide-list span,
html[data-fiflow-version="3"] .content .v3-guide-reference span{font-size:11px;line-height:1.5}
html[data-fiflow-version="3"] .content .v3-financial-alert strong,
html[data-fiflow-version="3"] .content .v3-card-inline-title strong,
html[data-fiflow-version="3"] .content .v3-insight-card strong,
html[data-fiflow-version="3"] .content .v3-guide-flow strong,
html[data-fiflow-version="3"] .content .v3-guide-list strong,
html[data-fiflow-version="3"] .content .v3-guide-reference strong,
html[data-fiflow-version="3"] .content .v3-settings-row strong{font-size:12px}
html[data-fiflow-version="3"] .content .v3-recent-row small,
html[data-fiflow-version="3"] .content .v3-account-heading small{font-size:10px;line-height:1.4}
html[data-fiflow-version="3"] .content .v3-table th,
html[data-fiflow-version="3"] .content .dre-table thead th{font-size:10px}
html[data-fiflow-version="3"] .content .v3-table td,
html[data-fiflow-version="3"] .content .dre-table td,
html[data-fiflow-version="3"] .content .dre-table th{font-size:11px}
html[data-fiflow-version="3"] .content .v3-table td strong{font-size:11px}
html[data-fiflow-version="3"] .content .v3-table td small,
html[data-fiflow-version="3"] .content .v3-table select{font-size:10px}
html[data-fiflow-version="3"] .content .ai-kpi-lbl,
html[data-fiflow-version="3"] .content .ai-side-title,
html[data-fiflow-version="3"] .content .predict-summary-label,
html[data-fiflow-version="3"] .content .predict-summary-card>span:last-child{font-size:10px!important}
html[data-fiflow-version="3"] .content .predict-panel-subtitle,
html[data-fiflow-version="3"] .content .predict-method-note,
html[data-fiflow-version="3"] .content .predict-action-item p,
html[data-fiflow-version="3"] .content .predict-anomaly-row span,
html[data-fiflow-version="3"] .content .predict-opportunity-row span,
html[data-fiflow-version="3"] .content .predict-disclaimer{font-size:11px}

html[data-fiflow-version="3"] .v3-balance-chart-canvas{position:relative;height:235px;margin-top:6px}
html[data-fiflow-version="3"] .v3-balance-chart-canvas canvas{width:100%!important;height:100%!important}
html[data-fiflow-version="3"] .v3-saldo-chart-canvas{position:relative;height:140px;margin-top:4px}
html[data-fiflow-version="3"] .v3-saldo-chart-canvas canvas{width:100%!important;height:100%!important}

/* Lançamentos mantidos no histórico, mas fora do contexto financeiro */
html[data-fiflow-version="3"] .v3-transactions-table tr.excluded-from-analytics td{background:#F4F7F5;color:#718079}
html[data-fiflow-version="3"] .v3-transactions-table tr.excluded-from-analytics td strong,
html[data-fiflow-version="3"] .v3-transactions-table tr.excluded-from-analytics td[class*="positive"],
html[data-fiflow-version="3"] .v3-transactions-table tr.excluded-from-analytics td[class*="negative"]{color:#718079}
html[data-fiflow-version="3"] .v3-transactions-table tr.excluded-from-analytics td:first-child{box-shadow:inset 3px 0 0 #8CA69C}
html[data-fiflow-version="3"] .v3-status-stack{display:flex;align-items:flex-start;gap:5px;flex-direction:column}
html[data-fiflow-version="3"] .v3-analytics-badge{display:inline-flex;align-items:center;min-height:22px;padding:3px 7px;border:1px solid #C9D5D0;border-radius:999px;background:#EDF2F0;color:#53665E;font-size:9px;font-weight:700;white-space:nowrap}
html[data-fiflow-version="3"] .v3-row-actions{display:flex;align-items:center;gap:5px}
html[data-fiflow-version="3"] .v3-row-analytics{width:27px;height:27px;padding:0;border:1px solid #CDD8D3;border-radius:7px;background:#FFF;color:#2C6655;font-size:13px;cursor:pointer}
html[data-fiflow-version="3"] .v3-row-analytics:hover{border-color:var(--color-primary);background:var(--color-primary-soft)}
html[data-fiflow-version="3"] .v3-row-analytics.active{border-color:#8CA69C;background:#E7EEEB;color:#53665E}
html[data-fiflow-version="3"] .v3-analytics-help{margin-right:auto;color:#61736B;font-size:10px;line-height:1.4}
html[data-fiflow-version="3"] .v3-table-actions #txCountBadge{margin-right:0}
html[data-fiflow-version="3"] .v3-table-actions .v3-badge+.v3-analytics-help{margin-left:2px}

/* Modal de transações por categoria (Orçamento) */
html[data-fiflow-version="3"] .v3-category-tx-table{width:100%;border-collapse:collapse}
html[data-fiflow-version="3"] .v3-category-tx-table th{padding:10px 12px;border-bottom:1px solid var(--color-border);color:var(--color-muted);font-size:9px;font-weight:850;text-align:left;text-transform:uppercase;letter-spacing:.05em;position:sticky;top:0;background:var(--color-card);z-index:1}
html[data-fiflow-version="3"] .v3-category-tx-table td{padding:10px 12px;border-bottom:1px solid #EDF1EF;color:var(--text2);font-size:11px;vertical-align:middle}
html[data-fiflow-version="3"] .v3-category-tx-table td strong{display:block;font-size:11px;color:var(--color-text)}
html[data-fiflow-version="3"] .v3-category-tx-table td small{display:block;color:var(--color-muted);font-size:9px;margin-top:2px}
html[data-fiflow-version="3"] .v3-category-tx-table select{min-height:28px;padding:2px 8px;border:1px solid var(--color-border);border-radius:6px;background:var(--color-card);color:var(--color-text);font-size:10px;max-width:160px;cursor:pointer}
html[data-fiflow-version="3"] .v3-category-tx-table select:hover{border-color:var(--color-primary)}
html[data-fiflow-version="3"] .v3-category-tx-table tr:hover td{background:var(--color-primary-soft)}
html[data-fiflow-version="3"] .v3-category-tx-empty{padding:30px;text-align:center;color:var(--color-muted);font-size:12px}
html[data-fiflow-version="3"] #budgetCategoryTxList .v3-table-scroll,
html[data-fiflow-version="3"] #compassGroupTxList .v3-table-scroll{border:1px solid var(--color-border);border-radius:10px;overflow:hidden}

/* Unificação universal de cards (Contas, Metas, Categorias, Cenários) */
html[data-fiflow-version="3"] .v3-card-actions-row{display:flex;align-items:center;justify-content:space-between;margin-top:12px;padding-top:10px;border-top:1px solid #EDF1EF;gap:8px}
html[data-fiflow-version="3"] .v3-card-action-btn{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border:1px solid #DDE5E1;border-radius:7px;background:#F6F9F7;color:#2C6655;font-size:11px;font-weight:750;cursor:pointer;transition:all .15s}
html[data-fiflow-version="3"] .v3-card-action-btn:hover{background:#EAF3EF;border-color:var(--color-primary);color:var(--color-primary)}
html[data-fiflow-version="3"] .v3-card-action-btn.danger{color:#A23B2E;border-color:#F5D4D0;background:#FDF5F4}
html[data-fiflow-version="3"] .v3-card-action-btn.danger:hover{background:#FBEAE8;border-color:#A23B2E}

html[data-fiflow-version="3"] .v3-account-metric-card,
html[data-fiflow-version="3"] .v3-goal-metric-card,
html[data-fiflow-version="3"] .v3-category-metric-card,
html[data-fiflow-version="3"] .v3-scenario-metric-card{min-height:175px}

html[data-fiflow-version="3"] .v3-category-metric-card{min-height:160px;cursor:pointer}
html[data-fiflow-version="3"] .v3-category-metric-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(0,0,0,0.06)}

html[data-fiflow-version="3"] .v3-premium-goals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:0;margin-top:12px}
html[data-fiflow-version="3"] .predict-scenarios{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0}

/* ==========================================================================
   SELETOR DE DATAS UNIVERSAL (DATE RANGE PICKER)
   Estilos fieis ao modulo fornecido pelo usuario
   ========================================================================== */

.fiflow-datepicker-popover {
  position: absolute;
  z-index: 1050;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
  border-radius: 20px;
  animation: fiflowPickerFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.fiflow-datepicker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, 0.08);
}

@keyframes fiflowPickerFadeIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.fiflow-date-filter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.fiflow-date-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1.5px solid #C7D5CD;
  border-radius: 999px;
  background: #EFF5F1;
  color: #333;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.fiflow-date-trigger svg {
  stroke: #0C4F41;
  flex-shrink: 0;
}

.fiflow-date-trigger:hover {
  background: #EFF5F1;
  border-color: #0C4F41;
  color: #111;
}

.fiflow-date-trigger.active {
  background: #0C4F41;
  border-color: #0C4F41;
  color: #fff;
  box-shadow: 0 4px 12px rgba(12,79,65, 0.25);
}

.fiflow-date-trigger.active svg {
  stroke: #fff;
}

.fiflow-date-trigger .fiflow-date-arrow {
  font-size: 11px;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.fiflow-date-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #DFE7E1;
  color: #555;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.fiflow-date-clear-btn:hover {
  background: #FADCD7;
  color: #A23B2E;
}

.picker-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  width: 330px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  box-sizing: border-box;
  font-family: inherit;
}

.date-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #EFF5F1;
  border: 1.5px solid #C7D5CD;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: #333;
  align-self: center;
  white-space: nowrap;
}

.date-badge svg {
  width: 15px;
  height: 15px;
  stroke: #0C4F41;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.month-nav span {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.month-nav button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  color: #666;
  font-size: 20px;
  line-height: 1;
  border-radius: 6px;
  transition: background 0.15s;
}

.month-nav button:hover {
  background: #EFF5F1;
}

.date-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid #DFE7E1;
  border-radius: 10px;
  padding: 9px 8px;
  font-size: 12.5px;
  font-family: inherit;
  color: #333;
  text-align: center;
  outline: none;
  transition: border-color 0.15s;
}

.date-input:focus {
  border-color: #0C4F41;
}

.date-sep {
  color: #bbb;
  font-size: 14px;
  flex-shrink: 0;
}

.quick-selects {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.quick-btn {
  background: none;
  border: 1.5px solid #DFE7E1;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-family: inherit;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
  white-space: nowrap;
}

.quick-btn:hover {
  border-color: #0C4F41;
  color: #0C4F41;
  background: #F6FAF7;
}

.quick-btn.active {
  border-color: #0C4F41;
  color: #0C4F41;
  background: #E3EEE8;
}

.cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11.5px;
  color: #999;
  font-weight: 500;
  margin-bottom: 2px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 1px;
}

.cal-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  position: relative;
  background: transparent;
  user-select: none;
}

.cal-cell.empty {
  cursor: default;
}

.cal-cell.other-month {
  color: #ccc;
}

.cal-cell.in-range {
  background: #E3EEE8;
}

.cal-cell.range-start {
  background: linear-gradient(90deg, transparent 50%, #E3EEE8 50%);
}

.cal-cell.range-end {
  background: linear-gradient(90deg, #E3EEE8 50%, transparent 50%);
}

.cal-cell.range-single {
  background: transparent;
}

.cal-cell .day-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  transition: background 0.12s, color 0.12s;
}

.cal-cell:not(.empty):not(.other-month):hover .day-num {
  background: #E3EEE8;
}

.cal-cell.selected .day-num {
  background: #0C4F41;
  color: #fff;
  font-weight: 600;
}

.cal-cell.selected:hover .day-num {
  background: #083A30;
}

.cal-cell.today:not(.selected) .day-num {
  border: 1.5px solid #0C4F41;
}

.picker-card .actions {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}

.picker-card .btn {
  flex: 1;
  padding: 11px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.picker-card .btn-cancel {
  background: #EFF5F1;
  color: #555;
}

.picker-card .btn-cancel:hover {
  background: #E3EEE8;
}

.picker-card .btn-apply {
  background: #0C4F41;
  color: #fff;
}

.picker-card .btn-apply:hover {
  background: #083A30;
}
