/* =====================================================================
   CAMADA LEGADA — VISTA AERO ESMERALDA v6.5.4
   Mantida por compatibilidade estrutural e sobrescrita pela Harmonia v6.6.1.
   ===================================================================== */

:root{
  --aero-font:-apple-system,BlinkMacSystemFont,"Segoe UI Variable","Segoe UI",Inter,Roboto,Arial,sans-serif;
  --aero-ink:#082a21;
  --aero-ink-2:#17483a;
  --aero-muted:#4e776b;
  --aero-deep:#012d24;
  --aero-dark:#064b3a;
  --aero-main:#08775a;
  --aero-bright:#18a67a;
  --aero-mint:#85d9bc;
  --aero-pale:#e8f8f1;
  --aero-white:#fff;
  --aero-copper:#bd7139;
  --aero-copper-dark:#7b3f20;
  --aero-copper-light:#edbc91;
  --aero-red:#a94236;
  --aero-line:rgba(2,75,58,.20);
  --aero-line-light:rgba(255,255,255,.72);
  --aero-glass:rgba(246,255,251,.74);
  --aero-glass-strong:rgba(250,255,253,.90);
  --aero-shadow:0 18px 46px rgba(0,54,41,.16),0 2px 7px rgba(0,54,41,.10);
  --aero-shadow-soft:0 10px 28px rgba(0,54,41,.11),0 1px 3px rgba(0,54,41,.08);
  --aero-inset:inset 0 1px 0 rgba(255,255,255,.94),inset 0 -1px 0 rgba(0,77,58,.09);
  --aero-radius:20px;
  --aero-radius-sm:12px;

  --obsidian:#dff4eb !important;
  --obsidian-light:#f6fffb !important;
  --graphite:rgba(250,255,253,.88) !important;
  --graphite-light:#e1f4ec !important;
  --slate:#c6e7da !important;
  --champagne:#08775a !important;
  --champagne-light:#85d9bc !important;
  --champagne-dark:#064b3a !important;
  --champagne-muted:rgba(8,119,90,.12) !important;
  --champagne-glow:rgba(24,166,122,.24) !important;
  --rose-gold:#bd7139 !important;
  --gold:#bd7139 !important;
  --platinum:#fff !important;
  --silver:#4e776b !important;
  --silver-dark:#85aa9d !important;
  --emerald:#08775a !important;
  --emerald-muted:rgba(8,119,90,.12) !important;
  --ruby:#a94236 !important;
  --ruby-muted:rgba(169,66,54,.11) !important;
  --sapphire:#08775a !important;
  --sapphire-muted:rgba(8,119,90,.11) !important;
  --amethyst:#95633e !important;
  --amethyst-muted:rgba(149,99,62,.11) !important;
  --amber:#bd7139 !important;
  --amber-muted:rgba(189,113,57,.11) !important;
  --red:#a94236 !important;
  --gray:#4e776b !important;
  --text-primary:#082a21 !important;
  --text-secondary:#17483a !important;
  --text-tertiary:#4e776b !important;
  --text-muted:#6d9186 !important;
  --border-invisible:rgba(2,75,58,.06) !important;
  --border-subtle:rgba(2,75,58,.13) !important;
  --border-light:rgba(2,75,58,.20) !important;
  --border-champagne:rgba(189,113,57,.34) !important;
  --shadow-ambient:var(--aero-shadow) !important;
  --shadow-soft:var(--aero-shadow-soft) !important;
  --shadow-medium:0 16px 42px rgba(0,54,41,.16) !important;
  --shadow-elevated:0 28px 74px rgba(0,45,34,.22) !important;
  --shadow-champagne:0 14px 34px rgba(123,63,32,.20) !important;
  --white:#fff !important;
  --black:#dff4eb !important;
}

/* =====================================================================
   v6.5.4 — RESET ESTRUTURAL: SECOES LARGAS E RODAPE SEM SOBREPOSICAO
   ===================================================================== */

/* A antiga busca inteligente criava uma segunda camada no fim da pagina. */
.tfc-command-backdrop,
.tfc-fab,
.tfc-scrolltop,
.tfc-contextbar,
.tfc-smart-status{
  display:none !important;
}

html,
body{
  width:100% !important;
  max-width:100% !important;
  overflow-x:hidden !important;
}

.content{
  width:min(100%,1550px) !important;
  max-width:1550px !important;
  min-width:0 !important;
  margin-right:auto !important;
  margin-left:auto !important;
  padding-right:clamp(18px,3vw,42px) !important;
  padding-left:clamp(18px,3vw,42px) !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}

.main-tab-content,
.section,
.section-saida,
.section-colab,
.section-config{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin-right:0 !important;
  margin-left:0 !important;
  box-sizing:border-box !important;
}

.main-tab-content.active,
.section.active,
.section-saida.active,
.section-colab.active,
.section-config.active{
  display:block !important;
}

.main-tab-content > *,
.section > *,
.section-saida > *,
.section-colab > *,
.section-config > *,
.card,
.tfc-card{
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}

canvas,
svg,
img{
  max-width:100%;
}

/* Um unico modelo de cabecalho substitui as grades automaticas anteriores. */
.card > .card-header,
.tfc-card > .tfc-card-header{
  width:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  display:flex !important;
  flex-flow:row wrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px 18px !important;
  padding:10px 0 16px !important;
  box-sizing:border-box !important;
  text-align:left !important;
}

.card > .card-header > .tfc-section-title-wrap,
.tfc-card > .tfc-card-header > .tfc-section-title-wrap{
  width:auto !important;
  min-width:220px !important;
  max-width:100% !important;
  flex:1 1 300px !important;
  display:inline-flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  margin:0 !important;
  color:#082a21 !important;
  font-family:var(--aero-font) !important;
  font-size:1rem !important;
  font-weight:800 !important;
  line-height:1.35 !important;
  letter-spacing:.01em !important;
  white-space:normal !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  writing-mode:horizontal-tb !important;
}

.card > .card-header > .tfc-section-title-wrap > .ic,
.tfc-card > .tfc-card-header > .tfc-section-title-wrap > .ic,
.card > .card-header > .ic:first-child,
.tfc-card > .tfc-card-header > .ic:first-child{
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  flex:0 0 34px !important;
  display:inline-grid !important;
  place-items:center !important;
  writing-mode:horizontal-tb !important;
}

.card > .card-header.tfc-section-head-actions > .tfc-section-controls,
.tfc-card > .tfc-card-header.tfc-section-head-actions > .tfc-section-controls{
  width:auto !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 0 0 auto !important;
  padding:0 !important;
  flex:0 1 auto !important;
  display:flex !important;
  flex-flow:row wrap !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:9px !important;
}

.card > .card-header select,
.tfc-card > .tfc-card-header select{
  width:auto !important;
  min-width:165px !important;
  max-width:230px !important;
  flex:0 1 200px !important;
}

.card > .card-header button,
.tfc-card > .tfc-card-header button,
.card > .card-header a[class*="btn"],
.tfc-card > .tfc-card-header a[class*="btn"]{
  width:auto !important;
  max-width:100% !important;
  min-width:max-content !important;
  flex:0 0 auto !important;
  white-space:nowrap !important;
  overflow:visible !important;
}

@media(max-width:1100px){
  .card > .card-header.tfc-section-head-actions > .tfc-section-title-wrap,
  .tfc-card > .tfc-card-header.tfc-section-head-actions > .tfc-section-title-wrap{
    width:100% !important;
    min-width:0 !important;
    flex-basis:100% !important;
  }

  .card > .card-header.tfc-section-head-actions > .tfc-section-controls,
  .tfc-card > .tfc-card-header.tfc-section-head-actions > .tfc-section-controls{
    width:100% !important;
    margin-left:0 !important;
    justify-content:flex-start !important;
  }
}

@media(max-width:600px){
  .content{
    padding-right:12px !important;
    padding-left:12px !important;
  }

  .card > .card-header,
  .tfc-card > .tfc-card-header{
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
  }

  .card > .card-header > .tfc-section-title-wrap,
  .tfc-card > .tfc-card-header > .tfc-section-title-wrap{
    width:100% !important;
    min-width:0 !important;
    flex:1 1 auto !important;
  }

  .card > .card-header.tfc-section-head-actions > .tfc-section-controls,
  .tfc-card > .tfc-card-header.tfc-section-head-actions > .tfc-section-controls{
    width:100% !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:9px !important;
  }

  .card > .card-header select,
  .tfc-card > .tfc-card-header select,
  .card > .card-header button,
  .tfc-card > .tfc-card-header button,
  .card > .card-header a[class*="btn"],
  .tfc-card > .tfc-card-header a[class*="btn"]{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    white-space:normal !important;
  }
}

*{box-sizing:border-box}
html{background:#cfeadf !important;color-scheme:light;scroll-behavior:smooth}
body,button,input,select,textarea,table{font-family:var(--aero-font) !important}
body{
  min-width:320px;
  color:var(--aero-ink) !important;
  font-weight:500 !important;
  letter-spacing:-.006em !important;
  background:
    radial-gradient(ellipse at 8% -5%,rgba(255,255,255,.94) 0,rgba(255,255,255,0) 31%),
    radial-gradient(ellipse at 94% 4%,rgba(114,223,184,.52) 0,rgba(114,223,184,0) 36%),
    radial-gradient(ellipse at 78% 80%,rgba(235,184,139,.22) 0,rgba(235,184,139,0) 32%),
    linear-gradient(145deg,#c9eddf 0%,#e8f8f1 42%,#b9e0d1 100%) !important;
  background-attachment:fixed !important;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body::before{
  content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:
    linear-gradient(115deg,transparent 0 29%,rgba(255,255,255,.30) 30%,transparent 31% 100%),
    linear-gradient(160deg,transparent 0 67%,rgba(1,70,53,.06) 68%,transparent 70% 100%);
}
body::after{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.52;
  background-image:radial-gradient(circle at 50% 50%,rgba(255,255,255,.62) 0 1px,transparent 1.5px);
  background-size:22px 22px;
  mask-image:linear-gradient(to bottom,black,transparent 76%);
}
.ambient-particles{opacity:.40 !important;pointer-events:none !important}
.ambient-particles .particle{background:rgba(255,255,255,.72) !important;box-shadow:0 0 14px rgba(24,166,122,.48) !important}

h1,h2,h3,h4,h5,h6,.title,.section-title,.card-header,.chart-title,.modal-title,
.stat-value,.dept-value,.hero-value,.hero-mini-value,.tfc-context-title,
.tfc-card-header,.tfc-chart-title,.tfc-stat-value,.tfc-dept-value{
  font-family:var(--aero-font) !important;
  color:var(--aero-ink) !important;
  font-weight:760 !important;
  letter-spacing:-.028em !important;
}
.stat-value,.dept-value,.hero-value,.hero-mini-value,.tfc-stat-value,.tfc-dept-value,
[id*="Total"],[id*="Valor"],[id*="Saldo"]{
  font-weight:850 !important;
  font-variant-numeric:tabular-nums lining-nums !important;
  font-feature-settings:"tnum" 1,"lnum" 1 !important;
}
strong,b{font-weight:780 !important}
p,small,.muted,.text-muted{color:var(--aero-muted) !important}

/* ---------- Moldura superior Aero ---------- */
.header,.tfc-header{
  position:sticky !important;top:0;z-index:500 !important;
  min-height:76px !important;
  display:flex !important;align-items:center !important;justify-content:space-between !important;
  gap:16px !important;padding:11px clamp(16px,3vw,42px) !important;
  color:#fff !important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.24) 0,rgba(255,255,255,.08) 43%,rgba(0,42,32,.18) 44%,rgba(0,42,32,.35) 100%),
    linear-gradient(110deg,rgba(1,45,36,.94),rgba(5,105,79,.91) 52%,rgba(2,59,46,.95)) !important;
  border:1px solid rgba(255,255,255,.40) !important;
  border-top:0 !important;border-radius:0 0 18px 18px !important;
  box-shadow:0 7px 0 rgba(255,255,255,.16) inset,0 18px 42px rgba(0,40,30,.29) !important;
  backdrop-filter:blur(22px) saturate(155%) !important;
}
.header::before,.tfc-header::after{
  content:"";position:absolute;left:18px;right:18px;top:5px;height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.80),transparent);pointer-events:none;
}
.header::after,.tfc-header::before{
  content:"";position:absolute;left:18%;right:18%;bottom:-1px;height:2px;
  background:linear-gradient(90deg,transparent,#edbc91,transparent) !important;pointer-events:none;
}
.brand-home,.brand{appearance:none;background:transparent !important;border:0 !important;padding:0 !important;color:#fff !important;display:flex !important;align-items:center !important;gap:13px !important;text-align:left;cursor:pointer}
.logo,.tfc-logo-icon{
  width:52px !important;height:52px !important;flex:0 0 52px !important;
  display:grid !important;place-items:center !important;overflow:hidden !important;
  color:#fff !important;border-radius:15px !important;
  background:linear-gradient(145deg,rgba(255,255,255,.29),rgba(255,255,255,.08)) !important;
  border:1px solid rgba(255,255,255,.66) !important;
  box-shadow:inset 0 1px 0 #fff,0 8px 22px rgba(0,25,19,.28),0 0 0 3px rgba(189,113,57,.17) !important;
}
.logo img{width:100%;height:100%;object-fit:cover}
.header .title,.header .user-name,.tfc-header .tfc-logo-title,.tfc-header .tfc-date{color:#fff !important;text-shadow:0 1px 2px rgba(0,20,15,.75) !important}
.header .title{font-size:1.08rem !important;font-weight:760 !important}
.header .title #headerTitulo,.header .subtitle,.header .user-role,.tfc-header .tfc-logo-subtitle{color:#edbc91 !important;text-shadow:0 1px 2px rgba(0,20,15,.62) !important}
.header .subtitle,.tfc-logo-subtitle{font-size:.62rem !important;font-weight:700 !important;letter-spacing:.14em !important;text-transform:uppercase}
.header-actions{display:flex !important;align-items:center !important;gap:9px !important;min-width:0}
.header-buttons,.user-info,.tfc-smart-status{
  display:flex !important;align-items:center !important;gap:5px !important;
  padding:5px !important;border-radius:15px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.07)) !important;
  border:1px solid rgba(255,255,255,.28) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.48),0 5px 16px rgba(0,25,19,.16) !important;
}
.user-info{padding:5px 11px 5px 5px !important;gap:9px !important}
.header-btn{
  width:38px !important;height:38px !important;display:grid !important;place-items:center !important;
  padding:0 !important;color:#fff !important;border-radius:11px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.20),rgba(255,255,255,.04)) !important;
  border:1px solid rgba(255,255,255,.12) !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.25) !important;
}
.header-btn:hover{color:#064b3a !important;background:linear-gradient(#fff,#d9f4e8) !important;border-color:#fff !important;box-shadow:0 0 16px rgba(133,217,188,.58),inset 0 1px 0 #fff !important;transform:translateY(-1px)}
.user-avatar{width:36px !important;height:36px !important;display:grid !important;place-items:center !important;border-radius:11px !important;color:#fff !important;background:linear-gradient(180deg,#dc9b64,#9a5429) !important;border:1px solid rgba(255,255,255,.55) !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.45) !important}
.user-name{font-size:.8rem !important}.user-role{font-size:.56rem !important;letter-spacing:.12em !important}
.logout{
  min-height:42px !important;display:flex !important;align-items:center !important;justify-content:center !important;
  padding:0 15px !important;border-radius:13px !important;color:#fff !important;text-decoration:none !important;font-weight:750 !important;
  background:linear-gradient(180deg,rgba(237,188,145,.58),rgba(123,63,32,.72)) !important;
  border:1px solid rgba(255,255,255,.34) !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.40),0 6px 17px rgba(0,25,19,.18) !important;
}

/* ---------- Barras de navegacao em vidro ---------- */
.main-tabs{
  position:sticky !important;top:76px;z-index:420 !important;
  display:flex !important;align-items:center !important;justify-content:center !important;gap:7px !important;
  padding:9px clamp(14px,3vw,42px) !important;overflow-x:auto !important;
  background:linear-gradient(180deg,rgba(255,255,255,.86),rgba(218,244,233,.72)) !important;
  border:1px solid rgba(255,255,255,.86) !important;border-top:0 !important;
  box-shadow:inset 0 1px 0 #fff,0 11px 26px rgba(0,54,41,.12) !important;
  backdrop-filter:blur(20px) saturate(145%) !important;
}
.main-tab,.nav button,.nav-config button,.nav-btn,.nav-btn-saida,.nav-btn-colab,.nav-btn-config{
  min-height:40px !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;gap:7px !important;
  padding:8px 15px !important;white-space:nowrap !important;border-radius:12px !important;
  color:#17483a !important;font-size:.71rem !important;font-weight:740 !important;letter-spacing:.025em !important;
  background:linear-gradient(180deg,rgba(255,255,255,.90),rgba(207,239,226,.70)) !important;
  border:1px solid rgba(2,75,58,.20) !important;
  box-shadow:inset 0 1px 0 #fff,0 2px 4px rgba(0,54,41,.08) !important;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease !important;
}
.main-tab:hover,.nav button:hover,.nav-config button:hover{filter:brightness(1.035);box-shadow:0 0 13px rgba(24,166,122,.22),inset 0 1px 0 #fff !important;transform:translateY(-1px)}
.main-tab.active,.nav button.active,.nav-config button.active,
.nav-btn.active,.nav-btn-saida.active,.nav-btn-colab.active,.nav-btn-config.active{
  color:#fff !important;text-shadow:0 1px 1px rgba(0,30,23,.58) !important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.25) 0,rgba(255,255,255,.06) 48%,rgba(0,40,30,.13) 49%),
    linear-gradient(135deg,#0d906c,#035240) !important;
  border-color:rgba(255,255,255,.55) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.68),inset 0 -2px 0 rgba(189,113,57,.76),0 6px 16px rgba(0,71,53,.25) !important;
}
.nav,.nav-config{
  position:sticky !important;top:134px;z-index:390 !important;
  display:flex !important;align-items:center !important;justify-content:flex-start !important;gap:7px !important;
  padding:8px clamp(14px,3vw,42px) !important;overflow-x:auto !important;
  background:linear-gradient(180deg,rgba(246,255,251,.88),rgba(222,246,237,.78)) !important;
  border-bottom:1px solid rgba(2,75,58,.17) !important;
  box-shadow:inset 0 1px 0 #fff,0 8px 19px rgba(0,54,41,.07) !important;
  backdrop-filter:blur(17px) !important;
}
.main-tabs::-webkit-scrollbar,.nav::-webkit-scrollbar,.nav-config::-webkit-scrollbar{display:none}

/* ---------- Area de trabalho ---------- */
.content,.tfc-home{width:min(100%,1550px) !important;margin:0 auto !important;padding:clamp(18px,2.7vw,38px) !important;padding-bottom:100px !important}
.main-tab-content{max-width:100% !important}
.tfc-contextbar{display:flex !important;align-items:flex-end !important;justify-content:space-between !important;gap:20px !important;margin:0 0 18px !important;padding:0 3px !important}
.tfc-context-kicker{display:flex !important;align-items:center !important;gap:8px !important;color:#7b3f20 !important;font-size:.62rem !important;font-weight:800 !important;letter-spacing:.13em !important;text-transform:uppercase}
.tfc-context-kicker::before{content:"";width:22px;height:3px;border-radius:4px;background:linear-gradient(90deg,#18a67a,#bd7139)}
.tfc-context-title{margin:5px 0 0 !important;font-size:clamp(1.45rem,2.2vw,2.05rem) !important;color:#082a21 !important;font-weight:810 !important}
.tfc-context-side{color:#4e776b !important;font-size:.68rem !important}
.tfc-sync-pill{display:inline-flex !important;align-items:center !important;gap:7px !important;padding:8px 12px !important;border-radius:999px !important;background:rgba(255,255,255,.68) !important;border:1px solid rgba(255,255,255,.88) !important;box-shadow:var(--aero-shadow-soft) !important}

/* ---------- Home como painel de boas-vindas do Vista ---------- */
.tfc-home{padding-top:24px !important}
.tfc-home-hero{
  position:relative !important;isolation:isolate !important;display:grid !important;
  grid-template-columns:minmax(0,1.38fr) minmax(265px,.62fr) !important;
  min-height:350px !important;overflow:hidden !important;border-radius:27px !important;color:#fff !important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.24) 0,rgba(255,255,255,.07) 37%,rgba(0,53,40,.10) 38%),
    radial-gradient(circle at 86% 12%,rgba(237,188,145,.32),transparent 28%),
    linear-gradient(135deg,rgba(1,45,36,.97),rgba(7,119,89,.93) 56%,rgba(2,58,45,.98)) !important;
  border:1px solid rgba(255,255,255,.67) !important;
  box-shadow:inset 0 1px 0 #fff,inset 0 -2px 0 rgba(123,63,32,.28),0 28px 70px rgba(0,45,34,.28) !important;
  backdrop-filter:blur(22px) !important;
}
.tfc-home-hero::after{content:"";position:absolute;inset:7px;border:1px solid rgba(255,255,255,.14);border-radius:21px;pointer-events:none}
.tfc-home-glow{position:absolute !important;z-index:-1 !important;width:620px !important;height:620px !important;right:-220px !important;top:-390px !important;border-radius:50% !important;border:1px solid rgba(255,255,255,.27) !important;box-shadow:0 0 0 90px rgba(255,255,255,.035),0 0 0 180px rgba(255,255,255,.024) !important}
.tfc-home-copy{display:flex !important;flex-direction:column !important;justify-content:center !important;padding:clamp(36px,5vw,70px) !important}
.tfc-home-eyebrow{width:max-content;display:flex !important;align-items:center !important;gap:9px !important;padding:8px 13px !important;border-radius:999px !important;color:#fff !important;background:linear-gradient(180deg,rgba(255,255,255,.20),rgba(255,255,255,.07)) !important;border:1px solid rgba(255,255,255,.33) !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.38) !important;font-size:.6rem !important;font-weight:800 !important;letter-spacing:.11em !important;text-transform:uppercase;text-shadow:0 1px 2px rgba(0,30,22,.65)}
.tfc-home-live{width:8px;height:8px;border-radius:50%;background:#8ef1cb !important;box-shadow:0 0 0 5px rgba(142,241,203,.14),0 0 12px #8ef1cb !important}
.tfc-home-copy h1{margin:21px 0 12px !important;color:#fff !important;font-size:clamp(2.5rem,4.6vw,4.6rem) !important;font-weight:820 !important;line-height:.98 !important;letter-spacing:-.058em !important;text-shadow:0 2px 3px rgba(0,27,20,.52),0 12px 30px rgba(0,30,22,.20) !important}
.tfc-home-copy h1 span{display:inline !important;color:#ffd5ae !important}
.tfc-home-copy>p{max-width:670px !important;margin:0 !important;color:#e5f8f0 !important;font-size:.96rem !important;font-weight:560 !important;line-height:1.65 !important;text-shadow:0 1px 2px rgba(0,30,22,.64)}
.tfc-daily-message{max-width:700px !important;display:grid !important;grid-template-columns:auto minmax(0,1fr) auto !important;align-items:center !important;gap:13px !important;margin-top:21px !important;padding:13px 15px !important;border-radius:17px !important;background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(0,47,35,.16)) !important;border:1px solid rgba(255,255,255,.28) !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.30) !important;backdrop-filter:blur(12px)}
.tfc-daily-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;color:#7b3f20 !important;background:linear-gradient(180deg,#fff8ef,#edbc91) !important;border:1px solid #fff !important;box-shadow:inset 0 1px 0 #fff,0 6px 14px rgba(0,28,21,.16) !important}
.tfc-daily-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.tfc-daily-copy small{color:#ffd5ae !important;font-size:.53rem !important;font-weight:800 !important;letter-spacing:.13em !important;text-transform:uppercase}.tfc-daily-copy strong{color:#fff !important;font-size:.81rem !important;line-height:1.43 !important;text-shadow:0 1px 2px rgba(0,25,19,.58)}.tfc-daily-message time{color:#bcebd9 !important;font-size:.58rem !important;font-weight:720 !important;white-space:nowrap}
.tfc-home-actions{display:flex !important;flex-wrap:wrap !important;gap:10px !important;margin-top:22px !important}
.tfc-home-actions button{min-height:46px !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;gap:8px !important;padding:0 18px !important;border-radius:13px !important;font-size:.72rem !important;font-weight:780 !important;cursor:pointer;transition:.18s ease !important}
.tfc-home-primary{color:#fff !important;text-shadow:0 1px 1px rgba(60,25,8,.48) !important;background:linear-gradient(180deg,#e1a06a 0,#bd7139 48%,#8e4b26 52%,#a75c2c 100%) !important;border:1px solid rgba(255,255,255,.58) !important;box-shadow:inset 0 1px 0 #fff,0 7px 18px rgba(66,28,9,.27) !important}
.tfc-home-secondary{color:#fff !important;background:linear-gradient(180deg,rgba(255,255,255,.20),rgba(255,255,255,.06)) !important;border:1px solid rgba(255,255,255,.35) !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.38) !important}
.tfc-home-actions button:hover{transform:translateY(-2px);filter:brightness(1.06);box-shadow:0 0 18px rgba(133,217,188,.30),inset 0 1px 0 #fff !important}
.tfc-home-signature{display:flex !important;flex-direction:column !important;align-items:center !important;justify-content:center !important;padding:34px 28px !important;text-align:center !important;background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(0,38,28,.15)) !important;border-left:1px solid rgba(255,255,255,.24) !important}
.tfc-home-logo-frame{width:min(185px,76%) !important;aspect-ratio:1 !important;overflow:hidden !important;border-radius:27px !important;background:#fff !important;border:1px solid rgba(255,255,255,.88) !important;box-shadow:inset 0 1px 0 #fff,0 18px 42px rgba(0,29,21,.32),0 0 0 5px rgba(255,255,255,.08) !important;animation:tfcAeroFloat 5s ease-in-out infinite}
.tfc-home-logo-frame img{width:100%;height:100%;object-fit:cover}@keyframes tfcAeroFloat{50%{transform:translateY(-6px)}}
.tfc-home-signature>span{margin-top:21px !important;color:#c9f0e1 !important;font-size:.56rem !important;font-weight:760 !important;letter-spacing:.13em !important;text-transform:uppercase;text-shadow:0 1px 2px rgba(0,25,19,.66)}
.tfc-home-signature>strong{max-width:280px !important;margin-top:7px !important;color:#fff !important;font-size:.86rem !important;line-height:1.45 !important;text-shadow:0 1px 2px rgba(0,25,19,.70)}
.tfc-home-section{margin-top:25px !important}.tfc-home-heading{display:flex !important;align-items:flex-end !important;justify-content:space-between !important;gap:18px !important;margin-bottom:13px !important;padding:0 5px !important}.tfc-home-heading>div>span{color:#7b3f20 !important;font-size:.56rem !important;font-weight:800 !important;letter-spacing:.13em !important;text-transform:uppercase}.tfc-home-heading h2{margin:4px 0 0 !important;color:#082a21 !important;font-size:clamp(1.25rem,2vw,1.72rem) !important;font-weight:800 !important}.tfc-home-heading p{margin:0 !important;color:#4e776b !important;font-size:.7rem !important}
.tfc-home-modules{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:14px !important}
.tfc-home-module{position:relative !important;min-width:0 !important;min-height:122px !important;display:flex !important;align-items:center !important;gap:13px !important;padding:17px !important;overflow:hidden !important;border-radius:19px !important;color:#082a21 !important;text-align:left !important;cursor:pointer;background:linear-gradient(180deg,rgba(255,255,255,.91) 0,rgba(255,255,255,.70) 45%,rgba(208,240,227,.78) 46%,rgba(238,250,245,.85) 100%) !important;border:1px solid rgba(255,255,255,.92) !important;outline:1px solid rgba(2,75,58,.15) !important;box-shadow:inset 0 1px 0 #fff,0 11px 28px rgba(0,54,41,.12) !important;backdrop-filter:blur(13px) !important;transition:.22s ease !important}
.tfc-home-module::before{content:"" !important;position:absolute !important;left:0 !important;right:0 !important;top:0 !important;width:auto !important;height:4px !important;background:linear-gradient(90deg,#18a67a,#bd7139,#18a67a) !important}
.tfc-home-module::after{content:"";position:absolute;left:10px;right:10px;top:8px;height:38%;border-radius:13px;background:linear-gradient(180deg,rgba(255,255,255,.48),transparent);pointer-events:none}
.tfc-home-module:hover{transform:translateY(-4px) scale(1.01);outline-color:rgba(8,119,90,.34) !important;box-shadow:0 0 19px rgba(24,166,122,.20),0 18px 37px rgba(0,54,41,.16),inset 0 1px 0 #fff !important}
.tfc-home-module-icon{position:relative;z-index:1;width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;border-radius:14px;color:#fff !important;background:linear-gradient(180deg,#20b185 0,#08775a 49%,#04523f 52%,#08644d 100%) !important;border:1px solid rgba(255,255,255,.82) !important;box-shadow:inset 0 1px 0 #fff,0 6px 14px rgba(0,59,44,.22) !important}
.tfc-home-module-copy{position:relative;z-index:1;min-width:0;display:flex;flex:1;flex-direction:column;gap:5px}.tfc-home-module-copy strong{color:#082a21 !important;font-size:.87rem !important;font-weight:790 !important}.tfc-home-module-copy small{color:#4e776b !important;font-size:.64rem !important;line-height:1.42 !important}.tfc-home-module>.ic{position:relative;z-index:1;color:#bd7139 !important}
.tfc-home-insights{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:13px !important;margin-top:14px !important}.tfc-home-insights article{min-width:0;display:flex !important;align-items:center !important;gap:12px !important;padding:15px 17px !important;border-radius:17px !important;background:linear-gradient(180deg,rgba(255,255,255,.80),rgba(225,246,237,.72)) !important;border:1px solid rgba(255,255,255,.90) !important;outline:1px solid rgba(2,75,58,.12) !important;box-shadow:inset 0 1px 0 #fff,0 8px 20px rgba(0,54,41,.08) !important}.tfc-home-insights article>.ic{width:37px;height:37px;flex:0 0 37px;display:grid;place-items:center;border-radius:12px;color:#fff !important;background:linear-gradient(180deg,#d9955e,#9b552d) !important;border:1px solid rgba(255,255,255,.72) !important;box-shadow:inset 0 1px 0 #fff !important}.tfc-home-insights article div{min-width:0;display:flex;flex-direction:column;gap:3px}.tfc-home-insights strong{color:#082a21 !important;font-size:.7rem !important;font-weight:780 !important}.tfc-home-insights small{color:#4e776b !important;font-size:.6rem !important;line-height:1.4 !important}

/* ---------- Vidro Aero reutilizavel ---------- */
.card,.chart-box,.table-wrap,.stat-card,.dept-card,.kanban-column,.upload-area,.modal-content,
.filters,[class*="filters"],.tfc-card,.tfc-chart-container,.tfc-dept-card,.tfc-stat-card,
.tfc-atendentes-section,.tfc-model-section,.tfc-import-preview,.tfc-import-zone,
.tfc-table-container,.tfc-preview-table-container{
  position:relative !important;
  color:#082a21 !important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.90) 0,rgba(255,255,255,.68) 44%,rgba(215,243,231,.72) 45%,rgba(247,253,250,.82) 100%) !important;
  border:1px solid rgba(255,255,255,.92) !important;
  outline:1px solid rgba(2,75,58,.15) !important;
  box-shadow:var(--aero-inset),var(--aero-shadow-soft) !important;
  backdrop-filter:blur(15px) saturate(140%) !important;
}
.card,.chart-box,.stat-card,.dept-card,.kanban-column,.upload-area{overflow:hidden !important}
.card,.chart-box,.modal-content,.tfc-card,.tfc-chart-container{border-radius:var(--aero-radius) !important}
.table-wrap,.tfc-table-container,.tfc-preview-table-container{border-radius:17px !important}
.stat-card,.dept-card,.tfc-stat-card,.tfc-dept-card{border-radius:18px !important}
.card::before,.chart-box::before,.stat-card::after,.dept-card::after,.tfc-card::before,.tfc-chart-container::before{
  content:"";position:absolute;left:8px;right:8px;top:7px;height:35%;border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.48),transparent);pointer-events:none;z-index:0;
}
.card>*,.chart-box>*,.stat-card>*,.dept-card>*,.tfc-card>*,.tfc-chart-container>*{position:relative;z-index:1}
.card:hover,.chart-box:hover,.stat-card:hover,.dept-card:hover,.tfc-card:hover,.tfc-chart-container:hover{outline-color:rgba(8,119,90,.31) !important;box-shadow:inset 0 1px 0 #fff,0 0 20px rgba(24,166,122,.13),0 20px 42px rgba(0,54,41,.14) !important}
.card{padding:clamp(17px,2vw,24px) !important;margin-bottom:19px !important}
.chart-box{padding:19px !important}
.filters,[class*="filters"]{display:flex;flex-wrap:wrap;align-items:flex-end;gap:11px !important;padding:13px !important;margin-bottom:18px !important;border-radius:17px !important}
.filters .form-group{flex:1 1 165px;min-width:145px;margin:0 !important}
.card-header,.chart-title,.tfc-card-header,.tfc-chart-title{
  min-height:34px !important;display:flex !important;align-items:center !important;gap:9px !important;
  margin:0 0 17px !important;padding:0 0 13px !important;color:#082a21 !important;
  border-bottom:1px solid rgba(2,75,58,.15) !important;font-size:.93rem !important;font-weight:790 !important;
}
.card-header::after,.chart-title::after,.tfc-card-header::after,.tfc-chart-title::after{content:"";position:absolute;left:0;bottom:-1px;width:82px;height:2px;background:linear-gradient(90deg,#18a67a,#bd7139,transparent)}
.card-header .ic,.chart-title .ic,.stat-icon,.dept-icon,.tfc-stat-icon{
  display:grid !important;place-items:center !important;color:#fff !important;
  background:linear-gradient(180deg,#1caf83 0,#08775a 49%,#04513e 52%,#08684f 100%) !important;
  border:1px solid rgba(255,255,255,.82) !important;box-shadow:inset 0 1px 0 #fff,0 5px 12px rgba(0,59,44,.20) !important;
}
.card-header .ic,.chart-title .ic{width:31px;height:31px;border-radius:10px}
.stat-icon,.dept-icon,.tfc-stat-icon{width:39px !important;height:39px !important;border-radius:12px !important;margin-bottom:10px !important}
.stats-grid,.dept-stats,.tfc-stats-grid,.tfc-dept-stats{display:grid !important;gap:13px !important;margin-bottom:19px !important}
.dept-stats{grid-template-columns:repeat(4,minmax(0,1fr)) !important}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important}
.stat-card,.dept-card,.tfc-stat-card,.tfc-dept-card{min-height:135px !important;padding:17px !important;transition:.22s ease !important}
.stat-card::before,.dept-card::before,.tfc-stat-card::before,.tfc-dept-card::before{content:"" !important;position:absolute !important;left:0 !important;right:0 !important;top:0 !important;width:auto !important;height:4px !important;border-radius:0 !important;background:linear-gradient(90deg,#18a67a,#bd7139,#18a67a) !important}
.stat-card:hover,.dept-card:hover{transform:translateY(-3px)}
.stat-value,.dept-value,.tfc-stat-value,.tfc-dept-value{color:#064b3a !important;font-size:clamp(1.5rem,2vw,2rem) !important;font-weight:850 !important;line-height:1.08 !important;text-shadow:0 1px 0 #fff !important}
.stat-label,.dept-title,.tfc-stat-label,.tfc-dept-title{color:#4e776b !important;font-size:.65rem !important;font-weight:780 !important;letter-spacing:.075em !important;text-transform:uppercase}
.dept-count{color:#4e776b !important;font-size:.7rem !important}

/* ---------- Hero de indicadores ---------- */
.hero-strip{
  position:relative !important;isolation:isolate !important;display:grid !important;
  grid-template-columns:minmax(0,1.35fr) repeat(2,minmax(150px,.65fr)) !important;
  gap:1px !important;padding:0 !important;margin:0 0 20px !important;overflow:hidden !important;
  border-radius:24px !important;color:#fff !important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.24),rgba(255,255,255,.05) 46%,rgba(0,43,32,.20) 47%),
    linear-gradient(135deg,#023d31,#0b8765 58%,#07503e) !important;
  border:1px solid rgba(255,255,255,.68) !important;outline:1px solid rgba(2,75,58,.18) !important;
  box-shadow:inset 0 1px 0 #fff,0 20px 48px rgba(0,45,34,.23) !important;
}
.hero-main,.hero-mini{padding:clamp(21px,3vw,31px) !important;background:transparent !important;border:0 !important;display:flex !important;flex-direction:column !important;justify-content:center !important}
.hero-mini{border-left:1px solid rgba(255,255,255,.20) !important;background:rgba(255,255,255,.045) !important}
.hero-label,.hero-mini-label{color:#bdeedc !important;font-size:.62rem !important;font-weight:760 !important;letter-spacing:.11em !important;text-transform:uppercase;text-shadow:0 1px 1px rgba(0,27,20,.60)}
.hero-value{color:#fff !important;font-size:clamp(2.25rem,5vw,4.3rem) !important;font-weight:850 !important;letter-spacing:-.055em !important;text-shadow:0 2px 2px rgba(0,27,20,.60),0 9px 25px rgba(0,27,20,.18) !important}
.hero-mini-value{color:#ffd1a8 !important;font-size:clamp(1.35rem,2.2vw,2rem) !important;text-shadow:0 1px 2px rgba(0,27,20,.64) !important}
.hero-sub,.hero-mini-sub{color:#d9f4e9 !important}

/* ---------- Formularios com relevo ---------- */
.form-grid{display:grid !important;grid-template-columns:repeat(12,minmax(0,1fr)) !important;gap:13px !important}.form-grid>.form-group{grid-column:span 4;min-width:0}.form-grid>.form-group:has(textarea){grid-column:1/-1}.form-group{margin-bottom:12px !important}
label,.form-group label,.tfc-form-group label{display:flex !important;align-items:center !important;gap:6px !important;margin:0 0 7px 2px !important;color:#17483a !important;font-size:.69rem !important;font-weight:780 !important;letter-spacing:.035em !important}
input,select,textarea,.form-group input,.form-group select,.form-group textarea,
.tfc-content input,.tfc-content select,.tfc-content textarea{
  width:100%;min-height:45px !important;padding:10px 13px !important;border-radius:11px !important;
  color:#082a21 !important;font-size:.82rem !important;font-weight:590 !important;
  background:linear-gradient(180deg,#fff 0,#f8fffc 55%,#e8f6f0 100%) !important;
  border:1px solid rgba(2,75,58,.31) !important;
  box-shadow:inset 0 1px 3px rgba(0,59,44,.08),0 1px 0 rgba(255,255,255,.88) !important;
  transition:.18s ease !important;
}
textarea{min-height:115px !important;resize:vertical}input::placeholder,textarea::placeholder{color:#789b90 !important;font-weight:500 !important}
input:hover,select:hover,textarea:hover{border-color:rgba(8,119,90,.48) !important}
input:focus,select:focus,textarea:focus{outline:0 !important;border-color:#18a67a !important;background:#fff !important;box-shadow:0 0 0 3px rgba(24,166,122,.18),0 0 14px rgba(24,166,122,.16),inset 0 1px 2px rgba(0,59,44,.05) !important}
input[type="checkbox"],input[type="radio"]{width:auto;min-height:0 !important;accent-color:#08775a !important}
fieldset{padding:17px !important;border-radius:17px !important;border:1px solid rgba(2,75,58,.19) !important;background:rgba(255,255,255,.42) !important}

/* ---------- Botoes Vista ---------- */
.btn,.btn-action,.btn-luxo-gold,.btn-luxo-purple,.btn-colab,.btn-primary,.btn-warning,
.btn-success,.btn-info,.btn-sm,.primary-btn,.tfc-btn,button.tfc-btn,a.tfc-btn{
  min-height:43px !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;gap:8px !important;
  padding:9px 16px !important;border-radius:12px !important;color:#fff !important;
  font-size:.72rem !important;font-weight:780 !important;letter-spacing:.015em !important;text-transform:none !important;text-decoration:none !important;
  text-shadow:0 1px 1px rgba(0,35,26,.64) !important;cursor:pointer;
  background:linear-gradient(180deg,#21b187 0,#0b8b68 47%,#046047 51%,#08775a 100%) !important;
  border:1px solid rgba(255,255,255,.74) !important;outline:1px solid rgba(2,75,58,.42) !important;
  box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(0,50,37,.25),0 5px 14px rgba(0,63,47,.20) !important;
  transition:.17s ease !important;
}
.btn:hover,.btn-action:hover,.btn-luxo-gold:hover,.btn-colab:hover,.primary-btn:hover,.tfc-btn:hover{filter:brightness(1.06) saturate(1.05);transform:translateY(-2px);box-shadow:0 0 16px rgba(24,166,122,.27),inset 0 1px 0 #fff,0 8px 18px rgba(0,63,47,.20) !important}
.btn:active,.btn-action:active,.tfc-btn:active{transform:translateY(0);filter:brightness(.98)}
.btn-luxo-gold,.btn-warning,.tfc-btn-warning{background:linear-gradient(180deg,#dda06c 0,#bd7139 47%,#874821 51%,#a65b2e 100%) !important;outline-color:rgba(123,63,32,.54) !important;text-shadow:0 1px 1px rgba(63,26,8,.58) !important}
.btn-secondary,.tfc-btn-secondary{color:#17483a !important;text-shadow:0 1px 0 #fff !important;background:linear-gradient(180deg,#fff 0,#edf9f4 47%,#cde9dd 51%,#e2f3ec 100%) !important;border-color:#fff !important;outline-color:rgba(2,75,58,.25) !important}
.btn-red,.btn-luxo-red,.btn-danger,.tfc-btn-danger,.btn.excluir,[class*="btn-lote"][class*="excluir"]{background:linear-gradient(180deg,#ce7164 0,#ac493b 47%,#7e2f27 51%,#9c3f34 100%) !important;outline-color:rgba(126,47,39,.55) !important}
button:disabled,.btn:disabled{opacity:.52;filter:saturate(.5);cursor:not-allowed;transform:none !important}
.action-btn{width:34px !important;height:34px !important;min-height:34px !important;padding:0 !important;border-radius:10px !important}.action-btn.edit{background:linear-gradient(180deg,#21b187,#08775a 48%,#04513e 52%,#08775a) !important}.action-btn.delete{background:linear-gradient(180deg,#cf7567,#a94236 48%,#762d27 52%,#963a31) !important}.action-btn.pago,.action-btn.success{background:linear-gradient(180deg,#39c795,#15936c 48%,#076249 52%,#0b7a59) !important}
.btn:focus-visible,.main-tab:focus-visible,.nav button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(237,188,145,.58) !important;outline-offset:2px !important}

/* ---------- Tabelas Aero ---------- */
.table-wrap,.tfc-table-container{overflow:auto !important;max-width:100% !important}
table,.tfc-table{width:100% !important;border-collapse:separate !important;border-spacing:0 !important;background:transparent !important}
table thead th,.tfc-table thead th{position:sticky;top:0;z-index:2;padding:12px 13px !important;color:#fff !important;font-size:.63rem !important;font-weight:800 !important;letter-spacing:.065em !important;text-transform:uppercase;text-shadow:0 1px 1px rgba(0,30,22,.65) !important;background:linear-gradient(180deg,#169772 0,#08775a 47%,#04513e 51%,#08674e 100%) !important;border-bottom:1px solid rgba(255,255,255,.60) !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.55) !important;white-space:nowrap}
table thead th:first-child{border-radius:14px 0 0 0}table thead th:last-child{border-radius:0 14px 0 0}
table tbody td,.tfc-table tbody td{padding:12px 13px !important;color:#17483a !important;font-size:.75rem !important;font-weight:570 !important;border-bottom:1px solid rgba(2,75,58,.12) !important;background:rgba(255,255,255,.45) !important;white-space:nowrap}
table tbody tr:nth-child(even) td,.tfc-table tbody tr:nth-child(even) td{background:rgba(219,244,234,.58) !important}
table tbody tr:hover td,.tfc-table tbody tr:hover td{background:linear-gradient(180deg,#effff8,#d3f3e5) !important;box-shadow:inset 0 1px 0 #fff !important}

/* ---------- Graficos ---------- */
.charts-grid,.tfc-charts-grid{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:17px !important;margin-bottom:19px !important}.tfc-chart-wrap{height:295px !important;min-height:250px !important}.tfc-chart-wrap.alto{height:335px !important}.tfc-chart-wrap.baixo{height:255px !important}.tfc-chart-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-7px 0 13px;padding:9px 12px;border-radius:11px;color:#4e776b !important;background:linear-gradient(180deg,rgba(255,255,255,.76),rgba(216,242,231,.70)) !important;border:1px solid rgba(2,75,58,.11) !important}.tfc-chart-summary strong{color:#064b3a !important}

/* ---------- Modais, toasts, comandos ---------- */
.modal{padding:18px !important;background:rgba(0,36,27,.56) !important;backdrop-filter:blur(13px) saturate(130%) !important}
.modal-content{border-radius:23px !important;border:1px solid rgba(255,255,255,.92) !important;outline:1px solid rgba(2,75,58,.34) !important;box-shadow:inset 0 1px 0 #fff,0 32px 92px rgba(0,30,22,.40) !important;animation:tfcAeroModal .26s ease-out both}
@keyframes tfcAeroModal{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
.modal-header{margin:-1px -1px 17px !important;padding:14px 17px !important;border-radius:21px 21px 0 0 !important;color:#fff !important;background:linear-gradient(180deg,#169772,#08775a 48%,#04513e 52%,#08674e) !important;border-bottom:1px solid rgba(255,255,255,.52) !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.56) !important}.modal-title{color:#fff !important;text-shadow:0 1px 1px rgba(0,30,22,.60) !important}.modal-close{width:32px;height:32px;border-radius:10px !important;color:#fff !important;background:linear-gradient(180deg,#cf7567,#8e382f) !important;border:1px solid rgba(255,255,255,.65) !important;box-shadow:inset 0 1px 0 #fff !important}
.toast{border-radius:14px !important;color:#fff !important;border:1px solid rgba(255,255,255,.68) !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 15px 35px rgba(0,40,30,.25) !important;backdrop-filter:blur(16px) !important}.toast.success{background:linear-gradient(180deg,rgba(25,166,122,.95),rgba(3,82,63,.96)) !important}.toast.info{background:linear-gradient(180deg,rgba(199,128,72,.96),rgba(123,63,32,.96)) !important}.toast.error{background:linear-gradient(180deg,rgba(190,79,66,.96),rgba(116,42,35,.97)) !important}
.tfc-command-backdrop{background:rgba(0,36,27,.52) !important;backdrop-filter:blur(12px) !important}.tfc-command{border-radius:22px !important;background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(221,244,234,.91)) !important;border:1px solid #fff !important;outline:1px solid rgba(2,75,58,.28) !important;box-shadow:0 28px 80px rgba(0,35,26,.37),inset 0 1px 0 #fff !important}.tfc-command-item{border-radius:12px !important}.tfc-command-item:hover{background:linear-gradient(180deg,#edfff7,#d0f1e3) !important}.tfc-command-icon{color:#fff !important;background:linear-gradient(180deg,#18a67a,#064b3a) !important;border-color:#fff !important}
.tfc-fab{width:50px;height:50px;border-radius:16px !important;color:#fff !important;background:linear-gradient(180deg,#dfa16d,#bd7139 48%,#85451f 52%,#a55b2d) !important;border:1px solid rgba(255,255,255,.78) !important;outline:1px solid rgba(123,63,32,.38) !important;box-shadow:inset 0 1px 0 #fff,0 12px 28px rgba(66,28,9,.28) !important}.tfc-scrolltop{border-radius:13px !important;color:#064b3a !important;background:linear-gradient(180deg,#fff,#d9f2e7) !important;border:1px solid #fff !important;outline:1px solid rgba(2,75,58,.20) !important;box-shadow:inset 0 1px 0 #fff,0 8px 20px rgba(0,54,41,.14) !important}

/* ---------- Login Vista ---------- */
.login-container{background:radial-gradient(circle at 18% 15%,rgba(255,255,255,.38),transparent 25%),radial-gradient(circle at 82% 80%,rgba(237,188,145,.26),transparent 28%),linear-gradient(145deg,#a9ddc9,#e6f7ef 45%,#72b99f) !important}
.login-container::before{opacity:.34 !important;background-image:radial-gradient(circle,rgba(255,255,255,.8) 0 1px,transparent 1.6px) !important;background-size:24px 24px !important}
.login-box{position:relative !important;overflow:hidden !important;background:linear-gradient(180deg,rgba(255,255,255,.90) 0,rgba(255,255,255,.65) 44%,rgba(204,238,224,.74) 45%,rgba(239,250,245,.86) 100%) !important;border:1px solid rgba(255,255,255,.95) !important;outline:1px solid rgba(2,75,58,.26) !important;border-radius:27px !important;box-shadow:inset 0 1px 0 #fff,0 35px 90px rgba(0,54,41,.28) !important;backdrop-filter:blur(24px) saturate(145%) !important}
.login-box::before{height:5px !important;left:0 !important;right:0 !important;top:0 !important;background:linear-gradient(90deg,#18a67a,#bd7139,#18a67a) !important}.login-box::after{content:"";position:absolute;left:12px;right:12px;top:10px;height:34%;border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,.54),transparent);pointer-events:none}
.login-logo{position:relative;z-index:1;border:1px solid #fff !important;outline:1px solid rgba(2,75,58,.24) !important;box-shadow:inset 0 1px 0 #fff,0 14px 30px rgba(0,54,41,.18) !important}.login-title{position:relative;z-index:1;color:#082a21 !important;font-weight:810 !important;text-shadow:0 1px 0 #fff !important}.login-subtitle{position:relative;z-index:1;color:#7b3f20 !important;font-weight:730 !important}.login-form,.login-footer,.version-tag{position:relative;z-index:1}.input-group,.login-input-wrap{background:linear-gradient(180deg,#fff,#e9f6f0) !important;border:1px solid rgba(2,75,58,.30) !important;border-radius:12px !important;box-shadow:inset 0 1px 3px rgba(0,59,44,.08),0 1px 0 #fff !important}.login-input{color:#082a21 !important;background:transparent !important}.input-icon{color:#08775a !important}.input-group:focus-within{border-color:#18a67a !important;box-shadow:0 0 0 3px rgba(24,166,122,.16),0 0 14px rgba(24,166,122,.15) !important}.login-btn{color:#fff !important;background:linear-gradient(180deg,#21b187 0,#0b8b68 47%,#046047 51%,#08775a 100%) !important;border:1px solid #fff !important;outline:1px solid rgba(2,75,58,.37) !important;border-radius:13px !important;box-shadow:inset 0 1px 0 #fff,0 8px 18px rgba(0,63,47,.23) !important}.login-footer,.version-tag{color:#4e776b !important}.version-tag{background:rgba(255,255,255,.55) !important;border:1px solid rgba(2,75,58,.12) !important}

/* ---------- Admin do plugin ---------- */
html.wp-toolbar,body.wp-admin{background:linear-gradient(145deg,#c9eddf,#effaf5 50%,#b9dfd1) !important}.tfc-wrap{font-family:var(--aero-font) !important;color:#082a21 !important}.tfc-header{top:32px !important}.tfc-content{max-width:1600px;margin:0 auto;padding:2rem}.tfc-wrap .tfc-card-header,.tfc-wrap .tfc-chart-title{color:#082a21 !important}.tfc-wrap .tfc-btn-primary,.tfc-wrap .tfc-btn-info{color:#fff !important;background:linear-gradient(180deg,#21b187,#0b8b68 48%,#046047 52%,#08775a) !important}.tfc-wrap .tfc-btn-secondary{color:#17483a !important;background:linear-gradient(180deg,#fff,#d8eee5) !important}.tfc-wrap .tfc-progress-fill{background:linear-gradient(90deg,#18a67a,#bd7139) !important}

/* ---------- Elimina cinzas inline restantes ---------- */
[style*="background:#333"],[style*="background: #333"],[style*="background:#222"],[style*="background: #222"],
[style*="background:#111"],[style*="background: #111"],[style*="background:#0a0a0a"],[style*="background: #0a0a0a"],
[style*="background:#000"],[style*="background: #000"],[style*="background:var(--black)"]{
  color:#17483a !important;background:linear-gradient(180deg,#fff,#def2e9) !important;border-color:rgba(2,75,58,.20) !important;
}
[style*="color:#888"],[style*="color: #888"],[style*="color:#666"],[style*="color: #666"],
[style*="color:#777"],[style*="color: #777"],[style*="color:var(--gray)"]{color:#4e776b !important}
[style*="background:#9b59b6"],[style*="background: #9b59b6"],[style*="background:#3498db"],[style*="background: #3498db"],
[style*="background:#17a2b8"],[style*="background: #17a2b8"],[style*="background:#1abc9c"],[style*="background: #1abc9c"],
[style*="background:#2ecc71"],[style*="background: #2ecc71"]{color:#fff !important;background:linear-gradient(180deg,#21b187,#0b8b68 48%,#046047 52%,#08775a) !important}
[style*="background:#84642c"],[style*="background: #84642c"],[style*="background:var(--gold)"]{color:#fff !important;background:linear-gradient(180deg,#dfa16d,#bd7139 48%,#85451f 52%,#a55b2d) !important}

/* ---------- Selo final contra regras legadas mais especificas ---------- */
.content .card,.content .chart-box,.content .table-wrap,.content .stat-card,.content .dept-card,
.section .card,.section .chart-box,.section .table-wrap,.section .stat-card,.section .dept-card{
  border-color:rgba(255,255,255,.92) !important;
  outline-color:rgba(2,75,58,.15) !important;
  box-shadow:var(--aero-inset),var(--aero-shadow-soft) !important;
}
.card>.card-header,.chart-box>.chart-title,.tfc-card>.tfc-card-header,.tfc-chart-container>.tfc-chart-title{
  position:relative !important;
  color:#082a21 !important;
  background:linear-gradient(180deg,rgba(255,255,255,.54),rgba(213,242,230,.40)) !important;
  border-color:rgba(2,75,58,.15) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.82) !important;
}
html body button.btn-secondary,html body a.btn-secondary,html body .btn.btn-secondary,
html body button.tfc-btn-secondary,html body .tfc-btn.tfc-btn-secondary{
  color:#17483a !important;
  background:linear-gradient(180deg,#fff 0,#edf9f4 47%,#cde9dd 51%,#e2f3ec 100%) !important;
  border:1px solid #fff !important;
  outline:1px solid rgba(2,75,58,.25) !important;
  border-radius:12px !important;
  box-shadow:inset 0 1px 0 #fff,0 5px 14px rgba(0,63,47,.14) !important;
}
.table-wrap table tbody td,.tfc-table-container table tbody td{color:#17483a !important;background:rgba(255,255,255,.45) !important;border-color:rgba(2,75,58,.12) !important}
.table-wrap table tbody tr:nth-child(even) td,.tfc-table-container table tbody tr:nth-child(even) td{background:rgba(219,244,234,.58) !important}
.table-wrap table tbody tr:hover td,.tfc-table-container table tbody tr:hover td{background:linear-gradient(180deg,#effff8,#d3f3e5) !important}

/* ---------- Responsividade ---------- */
@media(max-width:1180px){
  .header{padding-inline:20px !important}.header-buttons .header-btn:nth-child(n+4){display:none !important}.tfc-smart-status{display:none !important}
  .dept-stats,.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}.form-grid>.form-group{grid-column:span 6}.tfc-home-modules{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
@media(max-width:860px){
  .header{min-height:68px !important;padding:8px 14px !important;border-radius:0 0 14px 14px !important}.logo{width:46px !important;height:46px !important;flex-basis:46px !important}.header-buttons{display:none !important}.user-role{display:none}.main-tabs{top:68px !important;justify-content:space-between !important;padding:7px 10px !important}.main-tab{flex:1 !important;padding:7px 9px !important}.nav,.nav-config{top:123px !important;padding:7px 10px !important}.content,.tfc-home{padding:17px 13px 105px !important}.tfc-home-hero{grid-template-columns:1fr minmax(225px,.50fr) !important}.tfc-home-copy{padding:34px 28px !important}.tfc-home-insights{grid-template-columns:1fr !important}.charts-grid,.tfc-charts-grid{grid-template-columns:1fr !important}.hero-strip{grid-template-columns:1fr 1fr !important}.hero-main{grid-column:1/-1}.hero-mini{border-top:1px solid rgba(255,255,255,.20) !important}.modal{align-items:flex-end !important;padding:10px !important}.modal-content{width:100% !important;max-width:none !important;max-height:92vh !important;border-radius:23px 23px 12px 12px !important}
}
@media(max-width:600px){
  body{padding-bottom:calc(70px + env(safe-area-inset-bottom)) !important}.ambient-particles{display:none !important}
  .header{height:63px !important;min-height:63px !important;padding:7px 11px !important;overflow:hidden !important}.brand-home{flex:1 1 auto !important;max-width:calc(100% - 48px) !important;gap:9px !important}.logo{width:44px !important;height:44px !important;flex-basis:44px !important;border-radius:12px !important}.header .title{font-size:.97rem !important}.header .subtitle{font-size:.46rem !important}.header-actions{width:40px !important;flex:0 0 40px !important}.header-actions>*{display:none !important}.header-actions>.logout{display:grid !important;width:38px !important;height:38px !important;min-height:38px !important;padding:0 !important;font-size:0 !important}.header-actions>.logout::before{content:"⏻";font-size:1rem}
  .main-tabs{position:fixed !important;top:auto !important;left:0;right:0;bottom:0;z-index:600 !important;min-height:64px !important;padding:6px 7px calc(6px + env(safe-area-inset-bottom)) !important;gap:3px !important;border-radius:16px 16px 0 0 !important;background:linear-gradient(180deg,rgba(255,255,255,.93),rgba(202,237,223,.91)) !important;box-shadow:inset 0 1px 0 #fff,0 -10px 28px rgba(0,54,41,.14) !important}.main-tab{min-width:0 !important;min-height:50px !important;flex:1 1 0 !important;flex-direction:column !important;gap:2px !important;padding:5px 2px !important;border-radius:11px !important;font-size:0 !important}.main-tab .ic{font-size:1rem !important}.main-tab-label{font-size:0 !important}.main-tab-label::after{content:attr(data-short);font-size:.46rem !important;font-weight:800 !important;letter-spacing:.035em}
  .nav,.nav-config{top:63px !important;padding:7px 8px !important}.nav button,.nav-config button{min-height:35px !important;padding:7px 10px !important;font-size:.66rem !important}
  .content,.tfc-home{padding:12px 9px 94px !important}.tfc-contextbar{margin-bottom:13px !important}.tfc-context-title{font-size:1.24rem !important}.tfc-context-side{display:none !important}
  .tfc-home-hero{grid-template-columns:1fr !important;min-height:0 !important;border-radius:21px !important}.tfc-home-copy{padding:25px 19px 19px !important}.tfc-home-eyebrow{font-size:.48rem !important}.tfc-home-copy h1{margin:17px 0 10px !important;font-size:clamp(2.15rem,11vw,2.8rem) !important}.tfc-home-copy>p{font-size:.82rem !important;line-height:1.5 !important}.tfc-daily-message{grid-template-columns:36px minmax(0,1fr) !important;gap:10px !important;margin-top:17px !important;padding:11px !important}.tfc-daily-icon{width:36px;height:36px}.tfc-daily-message time{grid-column:2}.tfc-daily-copy strong{font-size:.71rem !important}.tfc-home-actions{display:grid !important;grid-template-columns:1fr !important;margin-top:17px !important}.tfc-home-actions button{width:100% !important}.tfc-home-signature{display:grid !important;grid-template-columns:72px minmax(0,1fr) !important;grid-template-rows:auto auto !important;align-items:center !important;justify-items:start !important;gap:4px 13px !important;padding:15px 17px !important;text-align:left !important;border-left:0 !important;border-top:1px solid rgba(255,255,255,.24) !important}.tfc-home-logo-frame{width:72px !important;grid-row:1/3 !important;border-radius:15px !important;animation:none}.tfc-home-signature>span,.tfc-home-signature>strong{margin:0 !important}.tfc-home-signature>span{font-size:.46rem !important}.tfc-home-signature>strong{font-size:.69rem !important}.tfc-home-heading{align-items:flex-start !important;flex-direction:column !important;gap:4px !important;margin-top:18px !important}.tfc-home-modules{grid-template-columns:1fr !important;gap:9px !important}.tfc-home-module{min-height:84px !important;padding:12px 13px !important;border-radius:16px !important}.tfc-home-module-icon{width:40px;height:40px;flex-basis:40px}.tfc-home-insights{gap:9px !important}.tfc-home-insights article{padding:13px !important}
  .filters,[class*="filters"]{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:9px !important}.filters>.form-group{min-width:0 !important}.filters>button,.filters>.btn{grid-column:1/-1;width:100% !important}.hero-strip{grid-template-columns:1fr 1fr !important;border-radius:20px !important}.hero-main{min-height:125px}.hero-main,.hero-mini{padding:18px !important}.hero-value{font-size:clamp(2rem,12vw,3rem) !important}.dept-stats,.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:9px !important}.stat-card,.dept-card{min-height:122px !important;padding:14px !important}.stat-value,.dept-value{font-size:1.33rem !important}.card,.chart-box{padding:14px !important;border-radius:17px !important}.charts-grid,.tfc-charts-grid{gap:11px !important}.tfc-chart-wrap,.tfc-chart-wrap.alto{height:270px !important}.tfc-chart-wrap.baixo{height:220px !important}.form-grid{grid-template-columns:1fr !important}.form-grid>.form-group{grid-column:1/-1 !important}input,select,textarea{font-size:16px !important}.table-wrap{margin-inline:-2px !important}table{min-width:680px}.tfc-fab{right:12px !important;bottom:calc(76px + env(safe-area-inset-bottom)) !important;width:44px;height:44px}.tfc-scrolltop{right:13px !important;bottom:calc(128px + env(safe-area-inset-bottom)) !important}
}
@media(max-width:390px){.dept-stats,.stats-grid{grid-template-columns:1fr !important}.filters,[class*="filters"]{grid-template-columns:1fr !important}.filters>*{grid-column:1 !important}.header .title{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}
@media print{.header,.main-tabs,.nav,.nav-config,.tfc-fab,.tfc-scrolltop,.tfc-contextbar{display:none !important}.content{max-width:none !important;padding:0 !important}.card,.chart-box,.table-wrap{background:#fff !important;box-shadow:none !important;outline:1px solid #cde1d8 !important;break-inside:avoid}}

/* =====================================================================
   v6.5.1 — AJUSTES DE LEGIBILIDADE E RESPIRO
   ===================================================================== */

/* Login: campos independentes, rotulos visiveis e area de toque maior. */
.login-box{
  width:min(92vw,480px) !important;
  max-width:480px !important;
  padding:44px 40px 34px !important;
}
.login-form{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:22px !important;
  margin-top:8px !important;
  text-align:left !important;
}
.login-field{display:grid !important;grid-template-columns:1fr !important;gap:9px !important;min-width:0 !important}
.login-field-label{
  display:block !important;
  margin:0 0 0 3px !important;
  color:#123f33 !important;
  font-size:.79rem !important;
  font-weight:800 !important;
  letter-spacing:.045em !important;
  line-height:1.2 !important;
}
.login-form .input-group{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  width:100% !important;
  min-height:58px !important;
  margin:0 !important;
  overflow:hidden !important;
  border-radius:14px !important;
}
.login-form .input-icon{
  left:18px !important;
  width:22px !important;
  font-size:1.05rem !important;
}
.login-form .login-input{
  width:100% !important;
  height:58px !important;
  min-height:58px !important;
  padding:0 18px 0 54px !important;
  border:0 !important;
  outline:0 !important;
  border-radius:14px !important;
  color:#082a21 !important;
  font-size:1rem !important;
  font-weight:650 !important;
  line-height:58px !important;
  background:transparent !important;
  box-shadow:none !important;
}
.login-form .login-input::placeholder{color:#6a8d82 !important;font-weight:550 !important;opacity:1 !important}
.login-form .login-btn{
  min-height:56px !important;
  margin-top:4px !important;
  font-size:.88rem !important;
  font-weight:820 !important;
  letter-spacing:.09em !important;
}
.login-footer{margin-top:28px !important;padding-top:20px !important;font-size:.74rem !important;line-height:1.5 !important}
.version-tag{bottom:9px !important;right:14px !important}

/* Home: separa o fechamento da pagina da barra fixa e abre os modulos. */
.tfc-home{padding-bottom:190px !important}
.tfc-home-section{margin-top:36px !important}
.tfc-home-heading{margin-bottom:19px !important}
.tfc-home-modules{gap:18px !important}
.tfc-home-module{min-height:136px !important;padding:20px !important}
.tfc-home-module-copy strong{font-size:.95rem !important;line-height:1.25 !important}
.tfc-home-module-copy small{font-size:.7rem !important;line-height:1.5 !important}
.tfc-home-insights{gap:18px !important;margin-top:28px !important;margin-bottom:34px !important}
.tfc-home-insights article{min-height:88px !important;padding:18px 20px !important}
.tfc-home-insights strong{font-size:.78rem !important}
.tfc-home-insights small{font-size:.67rem !important;line-height:1.5 !important}

/* Graficos: uma leitura por linha, mais altura, menos enfeite e mais contraste. */
.charts-grid,.tfc-charts-grid{
  grid-template-columns:minmax(0,1fr) !important;
  gap:26px !important;
  margin-bottom:30px !important;
}
.chart-box,.tfc-chart-container{
  min-width:0 !important;
  padding:28px !important;
  border-radius:22px !important;
}
.chart-box::before,.tfc-chart-container::before{height:18% !important;opacity:.55 !important}
.chart-title,.tfc-chart-title{
  min-height:42px !important;
  margin-bottom:20px !important;
  padding-bottom:15px !important;
  font-size:1rem !important;
  line-height:1.35 !important;
}
.tfc-chart-summary{
  margin:0 0 18px !important;
  padding:12px 15px !important;
  font-size:.77rem !important;
  line-height:1.45 !important;
}
.tfc-chart-wrap{
  width:100% !important;
  height:370px !important;
  min-height:370px !important;
  padding:8px 4px 2px !important;
}
.tfc-chart-wrap.alto{height:440px !important;min-height:440px !important}
.tfc-chart-wrap.baixo{height:335px !important;min-height:335px !important}
.tfc-chart-wrap canvas{display:block !important;width:100% !important;max-width:100% !important;filter:none !important}

/* Titulos, filtros e numeros ganham contraste sem engrossar todo o painel. */
.section-title,.card-title,.chart-title,.tfc-chart-title{color:#062f25 !important;font-weight:820 !important}
.stats-grid,.dept-stats{gap:18px !important}
.stat-card,.dept-card{padding:20px !important}
.stat-value,.dept-value{line-height:1.15 !important}
.filters,[class*="filters"]{gap:14px !important;padding:17px !important}
.filters label,[class*="filters"] label{font-size:.74rem !important}

@media(max-width:860px){
  .login-container{padding:24px 14px !important}
  .tfc-home{padding-bottom:160px !important}
  .charts-grid,.tfc-charts-grid{gap:20px !important}
  .tfc-chart-wrap{height:350px !important;min-height:350px !important}
  .tfc-chart-wrap.alto{height:410px !important;min-height:410px !important}
  .tfc-chart-wrap.baixo{height:315px !important;min-height:315px !important}
}
@media(max-width:600px){
  .login-container{align-items:flex-start !important;padding:24px 12px 42px !important;overflow-y:auto !important}
  .login-box{margin:auto 0 !important;padding:28px 20px 32px !important;border-radius:22px !important}
  .login-logo{width:78px !important;height:78px !important;margin-bottom:16px !important}
  .login-title{font-size:1.62rem !important;margin-bottom:7px !important}
  .login-subtitle{margin-bottom:20px !important;font-size:.62rem !important;line-height:1.5 !important}
  .divider{margin-bottom:22px !important}
  .login-form{gap:19px !important}
  .login-form .input-group,.login-form .login-input{height:56px !important;min-height:56px !important}
  .login-form .login-input{line-height:56px !important}
  .tfc-home{padding-bottom:150px !important}
  .tfc-home-section{margin-top:29px !important}
  .tfc-home-heading{margin-bottom:16px !important}
  .tfc-home-modules{gap:13px !important}
  .tfc-home-module{min-height:98px !important;padding:16px !important}
  .tfc-home-insights{gap:13px !important;margin-top:25px !important;margin-bottom:35px !important}
  .tfc-home-insights article{min-height:82px !important;padding:16px !important}
  .chart-box,.tfc-chart-container{padding:18px 13px !important;border-radius:18px !important}
  .chart-title,.tfc-chart-title{font-size:.91rem !important;margin-bottom:16px !important}
  .tfc-chart-wrap{height:330px !important;min-height:330px !important;padding:5px 0 0 !important}
  .tfc-chart-wrap.alto{height:390px !important;min-height:390px !important}
  .tfc-chart-wrap.baixo{height:300px !important;min-height:300px !important}
  .stats-grid,.dept-stats{gap:12px !important}
}

/* =====================================================================
   v6.5.2 — CABECALHO, TITULOS E BOTOES DE COPIA
   ===================================================================== */

/* Cabeçalho mais limpo: uma linha firme, sem cápsulas competindo entre si. */
.header{
  width:100% !important;
  height:74px !important;
  min-height:74px !important;
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:24px !important;
  padding:10px clamp(18px,2.5vw,36px) !important;
  overflow:visible !important;
  border-radius:0 0 15px 15px !important;
}
.header .brand-home{
  min-width:0 !important;
  flex:1 1 auto !important;
  max-width:none !important;
  gap:12px !important;
  overflow:hidden !important;
}
.header .brand-home>div:last-child{min-width:0 !important;overflow:hidden !important}
.header .title{margin:0 !important;color:#fff !important;font-size:1.08rem !important;line-height:1.18 !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important}
.header .subtitle{margin-top:3px !important;font-size:.55rem !important;line-height:1.25 !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important}
.header .header-actions{
  width:auto !important;
  min-width:0 !important;
  flex:0 0 auto !important;
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:9px !important;
  margin-left:auto !important;
}
.header .header-buttons{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:5px !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
.header .header-buttons .header-btn:nth-child(n+5){display:none !important}
.header .tfc-smart-status{display:none !important}
.header .header-btn{
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  min-height:38px !important;
  flex:0 0 38px !important;
  padding:0 !important;
}
.header .user-info{
  min-width:0 !important;
  max-width:190px !important;
  padding:4px 10px 4px 4px !important;
  flex:0 1 auto !important;
}
.header .user-info>div:last-child{min-width:0 !important}
.header .user-name{display:block !important;max-width:125px !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important}
.header .logout{flex:0 0 auto !important;white-space:nowrap !important}
.main-tabs{top:74px !important}
.nav,.nav-config{top:132px !important}

/* Título da área com margem interna real e sem aperto lateral. */
.content>.tfc-contextbar{
  width:100% !important;
  min-width:0 !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:20px !important;
  margin:0 0 24px !important;
  padding:17px 20px !important;
  border-radius:17px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(219,244,234,.68)) !important;
  border:1px solid rgba(255,255,255,.92) !important;
  outline:1px solid rgba(2,75,58,.12) !important;
  box-shadow:inset 0 1px 0 #fff,0 9px 24px rgba(0,54,41,.09) !important;
}
.tfc-contextbar>div:first-child{min-width:0 !important;padding:0 !important}
.tfc-context-kicker{max-width:100% !important;line-height:1.45 !important;white-space:normal !important}
.tfc-context-title{max-width:100% !important;margin:6px 0 0 !important;line-height:1.15 !important;white-space:normal !important;overflow-wrap:anywhere !important}
.tfc-context-side{flex:0 0 auto !important;white-space:nowrap !important}

/* Cabeçalhos internos deixam o título crescer e jogam controles para outra linha. */
.card>.card-header,.chart-box>.chart-title,.tfc-card>.tfc-card-header,.tfc-chart-container>.tfc-chart-title{
  width:100% !important;
  min-width:0 !important;
  height:auto !important;
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:space-between !important;
  column-gap:18px !important;
  row-gap:12px !important;
  overflow:visible !important;
}
.card>.card-header>span:first-child:not(.ic),.card>.card-header>div:first-child:not(:last-child),
.tfc-card>.tfc-card-header>span:first-child:not(.ic),.tfc-card>.tfc-card-header>div:first-child:not(:last-child){
  min-width:min(100%,230px) !important;
  flex:1 1 260px !important;
  line-height:1.38 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}
.card>.card-header>div:last-child,.tfc-card>.tfc-card-header>div:last-child{
  min-width:0 !important;
  max-width:100% !important;
  display:flex !important;
  flex:0 1 auto !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:9px !important;
}

/* Botões de cópia nunca mais são recortados. */
button[onclick*="copiar"],button[onclick*="Copiar"],button[title*="Copiar"],.action-btn.copia{
  width:auto !important;
  max-width:100% !important;
  min-width:max-content !important;
  height:auto !important;
  min-height:44px !important;
  flex:0 0 auto !important;
  padding:10px 16px !important;
  line-height:1.3 !important;
  white-space:nowrap !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
.action-btn.copia{width:36px !important;min-width:36px !important;min-height:36px !important;height:36px !important;padding:0 !important}

@media(max-width:1180px){
  .header{gap:15px !important;padding-inline:18px !important}
  .header .header-buttons .header-btn:nth-child(n+3){display:none !important}
  .header .user-info{max-width:155px !important}
  .header .user-name{max-width:92px !important}
}
@media(max-width:860px){
  .header{height:66px !important;min-height:66px !important;padding:8px 13px !important;gap:10px !important}
  .header .logo{width:46px !important;height:46px !important;flex-basis:46px !important}
  .header .header-buttons,.header .user-info{display:none !important}
  .header .header-actions{width:auto !important;flex:0 0 auto !important}
  .header .logout{display:grid !important;width:40px !important;height:40px !important;min-height:40px !important;padding:0 !important;font-size:0 !important}
  .header .logout::before{content:"⏻";font-size:1rem}
  .main-tabs{top:66px !important}
  .nav,.nav-config{top:121px !important}
  .content>.tfc-contextbar{grid-template-columns:1fr !important;gap:10px !important;padding:15px 16px !important}
  .tfc-context-side{display:none !important}
}
@media(max-width:600px){
  .header{height:62px !important;min-height:62px !important;border-radius:0 0 12px 12px !important}
  .header .brand-home{max-width:calc(100vw - 72px) !important}
  .header .title{font-size:.94rem !important}
  .header .subtitle{font-size:.43rem !important;letter-spacing:.10em !important}
  .header .logo{width:43px !important;height:43px !important;flex-basis:43px !important}
  .main-tabs{top:auto !important}
  .nav,.nav-config{top:62px !important}
  .content>.tfc-contextbar{margin-bottom:16px !important;padding:14px !important;border-radius:14px !important}
  .tfc-context-kicker{font-size:.54rem !important;letter-spacing:.08em !important}
  .tfc-context-title{font-size:1.3rem !important;overflow-wrap:normal !important;word-break:normal !important}
  .card>.card-header,.tfc-card>.tfc-card-header{display:grid !important;grid-template-columns:1fr !important;gap:11px !important}
  .card>.card-header>span:first-child:not(.ic),.card>.card-header>div:first-child:not(:last-child),
  .tfc-card>.tfc-card-header>span:first-child:not(.ic),.tfc-card>.tfc-card-header>div:first-child:not(:last-child){min-width:0 !important;width:100% !important;flex:none !important}
  .card>.card-header>div:last-child,.tfc-card>.tfc-card-header>div:last-child{width:100% !important;display:grid !important;grid-template-columns:1fr !important;justify-content:stretch !important}
  .card>.card-header>div:last-child select,.card>.card-header>div:last-child button,
  .tfc-card>.tfc-card-header>div:last-child select,.tfc-card>.tfc-card-header>div:last-child button{width:100% !important;max-width:100% !important}
  button[onclick*="copiar"],button[onclick*="Copiar"],button[title*="Copiar"]{width:100% !important;min-width:0 !important;white-space:normal !important}
  .action-btn.copia{width:36px !important;min-width:36px !important;white-space:nowrap !important}
}

/* =====================================================================
   v6.5.3 — ESTRUTURA DEFINITIVA DE SECOES E BUSCA RAPIDA
   ===================================================================== */

/* A busca é um modal oculto. Sem estas regras ela vira uma faixa no rodapé. */
html.tfc-command-open{overflow:hidden !important}
.tfc-command-backdrop{
  position:fixed !important;
  inset:0 !important;
  z-index:5000 !important;
  width:100vw !important;
  height:100vh !important;
  display:grid !important;
  place-items:start center !important;
  padding:10vh 18px 24px !important;
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
  background:rgba(0,36,27,.52) !important;
  backdrop-filter:blur(12px) !important;
  transition:opacity .2s ease,visibility .2s ease !important;
}
.tfc-command-backdrop.is-open{
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
}
.tfc-command{
  position:relative !important;
  width:680px !important;
  max-width:100% !important;
  max-height:min(690px,80vh) !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
  transform:translateY(-10px) scale(.985) !important;
  transition:transform .24s ease !important;
}
.tfc-command-backdrop.is-open .tfc-command{transform:none !important}
.tfc-command-search{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  padding:17px 18px !important;
  border-bottom:1px solid rgba(2,75,58,.14) !important;
}
.tfc-command-search>.ic{flex:0 0 auto !important;color:#08775a !important;font-size:1.1rem !important}
.tfc-command-search input{
  min-width:0 !important;
  min-height:36px !important;
  flex:1 1 auto !important;
  padding:4px !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  font-size:1rem !important;
}
.tfc-command-key{flex:0 0 auto !important;padding:5px 8px !important;border:1px solid rgba(2,75,58,.20) !important;border-radius:8px !important;color:#4e776b !important;background:#fff !important;font-size:.65rem !important;font-weight:750 !important}
.tfc-command-results{min-height:0 !important;overflow:auto !important;padding:10px !important}
.tfc-command-group{padding:9px 10px 6px !important;color:#7b3f20 !important;font-size:.62rem !important;font-weight:800 !important;letter-spacing:.10em !important;text-transform:uppercase !important}
.tfc-command-item{
  width:100% !important;
  min-height:55px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  padding:10px 12px !important;
  border:0 !important;
  border-radius:12px !important;
  color:#082a21 !important;
  text-align:left !important;
  background:transparent !important;
  box-shadow:none !important;
  outline:0 !important;
}
.tfc-command-item:hover,.tfc-command-item.is-selected{color:#082a21 !important;background:linear-gradient(180deg,#edfff7,#d0f1e3) !important;transform:none !important}
.tfc-command-item .tfc-command-icon{width:36px !important;height:36px !important;flex:0 0 36px !important;display:grid !important;place-items:center !important;border-radius:10px !important}
.tfc-command-item-copy{min-width:0 !important;display:flex !important;flex-direction:column !important;gap:2px !important}
.tfc-command-item-copy strong{color:#082a21 !important;font-size:.8rem !important;font-weight:760 !important;white-space:normal !important}
.tfc-command-item-copy small{color:#4e776b !important;font-size:.67rem !important;white-space:normal !important}
.tfc-command-empty{padding:32px !important;color:#4e776b !important;text-align:center !important;font-size:.8rem !important}
.tfc-command-footer{display:flex !important;justify-content:space-between !important;gap:16px !important;padding:11px 16px !important;border-top:1px solid rgba(2,75,58,.14) !important;color:#4e776b !important;font-size:.64rem !important}
.tfc-fab{position:fixed !important;right:22px !important;bottom:22px !important;z-index:430 !important;display:grid !important;place-items:center !important;padding:0 !important}
.tfc-scrolltop{position:fixed !important;right:24px !important;bottom:86px !important;z-index:420 !important;width:42px !important;height:42px !important;min-width:42px !important;min-height:42px !important;display:grid !important;place-items:center !important;padding:0 !important;opacity:0 !important;visibility:hidden !important;transform:translateY(8px) !important;transition:.2s ease !important}
.tfc-scrolltop.is-visible{opacity:1 !important;visibility:visible !important;transform:none !important}

/* Cabeçalhos de seção: título inteiro e controles em uma única linha no desktop. */
.card>.card-header:has(>span:first-child:not(.ic) + div:last-child),
.card>.card-header:has(>div:first-child + div:last-child),
.tfc-card>.tfc-card-header:has(>span:first-child:not(.ic) + div:last-child),
.tfc-card>.tfc-card-header:has(>div:first-child + div:last-child){
  display:grid !important;
  grid-template-columns:minmax(260px,1fr) auto !important;
  align-items:center !important;
  column-gap:24px !important;
  row-gap:12px !important;
  min-height:64px !important;
  padding:8px 0 16px !important;
}
.card>.card-header>span:first-child:not(.ic),.tfc-card>.tfc-card-header>span:first-child:not(.ic){
  width:auto !important;
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  flex:none !important;
  color:#082a21 !important;
  font-family:var(--aero-font) !important;
  font-size:1rem !important;
  font-weight:800 !important;
  line-height:1.35 !important;
  white-space:normal !important;
}
.card>.card-header>span:first-child:not(.ic)>.ic,.tfc-card>.tfc-card-header>span:first-child:not(.ic)>.ic{
  width:34px !important;
  height:34px !important;
  flex:0 0 34px !important;
  display:grid !important;
  place-items:center !important;
}
.card>.card-header:has(>span:first-child:not(.ic) + div:last-child)>div:last-child,
.card>.card-header:has(>div:first-child + div:last-child)>div:last-child,
.tfc-card>.tfc-card-header:has(>span:first-child:not(.ic) + div:last-child)>div:last-child,
.tfc-card>.tfc-card-header:has(>div:first-child + div:last-child)>div:last-child{
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
}
.card>.card-header:has(>span:first-child:not(.ic) + div:last-child)>div:last-child select,
.card>.card-header:has(>div:first-child + div:last-child)>div:last-child select,
.tfc-card>.tfc-card-header:has(>span:first-child:not(.ic) + div:last-child)>div:last-child select,
.tfc-card>.tfc-card-header:has(>div:first-child + div:last-child)>div:last-child select{
  width:auto !important;
  min-width:170px !important;
  max-width:230px !important;
  flex:0 1 210px !important;
}
.card>.card-header:has(>span:first-child:not(.ic) + div:last-child)>div:last-child button,
.card>.card-header:has(>div:first-child + div:last-child)>div:last-child button,
.tfc-card>.tfc-card-header:has(>span:first-child:not(.ic) + div:last-child)>div:last-child button,
.tfc-card>.tfc-card-header:has(>div:first-child + div:last-child)>div:last-child button{
  width:auto !important;
  min-width:max-content !important;
  flex:0 0 auto !important;
}

/* Cabeçalho simples com ícone direto continua horizontal. */
.card>.card-header>.ic:first-child,.tfc-card>.tfc-card-header>.ic:first-child{grid-column:auto !important;align-self:center !important}

@media(max-width:1100px){
  .card>.card-header:has(>span:first-child:not(.ic) + div:last-child),
  .card>.card-header:has(>div:first-child + div:last-child),
  .tfc-card>.tfc-card-header:has(>span:first-child:not(.ic) + div:last-child),
  .tfc-card>.tfc-card-header:has(>div:first-child + div:last-child){grid-template-columns:1fr !important;align-items:start !important}
  .card>.card-header:has(>span:first-child:not(.ic) + div:last-child)>div:last-child,
  .card>.card-header:has(>div:first-child + div:last-child)>div:last-child,
  .tfc-card>.tfc-card-header:has(>span:first-child:not(.ic) + div:last-child)>div:last-child,
  .tfc-card>.tfc-card-header:has(>div:first-child + div:last-child)>div:last-child{width:100% !important;justify-content:flex-start !important;flex-wrap:wrap !important}
}
@media(max-width:600px){
  .tfc-command-backdrop{place-items:end center !important;padding:0 !important}
  .tfc-command{width:100% !important;max-width:none !important;max-height:88vh !important;border-radius:22px 22px 0 0 !important}
  .tfc-command-footer{padding-bottom:calc(11px + env(safe-area-inset-bottom)) !important}
  .tfc-fab{right:12px !important;bottom:calc(76px + env(safe-area-inset-bottom)) !important}
  .tfc-scrolltop{right:13px !important;bottom:calc(128px + env(safe-area-inset-bottom)) !important}
  .card>.card-header:has(>span:first-child:not(.ic) + div:last-child),
  .card>.card-header:has(>div:first-child + div:last-child),
  .tfc-card>.tfc-card-header:has(>span:first-child:not(.ic) + div:last-child),
  .tfc-card>.tfc-card-header:has(>div:first-child + div:last-child){min-height:0 !important;padding:5px 0 14px !important}
  .card>.card-header:has(>span:first-child:not(.ic) + div:last-child)>div:last-child,
  .card>.card-header:has(>div:first-child + div:last-child)>div:last-child,
  .tfc-card>.tfc-card-header:has(>span:first-child:not(.ic) + div:last-child)>div:last-child,
  .tfc-card>.tfc-card-header:has(>div:first-child + div:last-child)>div:last-child{display:grid !important;grid-template-columns:1fr !important;gap:9px !important}
  .card>.card-header:has(>span:first-child:not(.ic) + div:last-child)>div:last-child select,
  .card>.card-header:has(>div:first-child + div:last-child)>div:last-child select,
  .tfc-card>.tfc-card-header:has(>span:first-child:not(.ic) + div:last-child)>div:last-child select,
  .tfc-card>.tfc-card-header:has(>div:first-child + div:last-child)>div:last-child select,
  .card>.card-header:has(>span:first-child:not(.ic) + div:last-child)>div:last-child button,
  .card>.card-header:has(>div:first-child + div:last-child)>div:last-child button,
  .tfc-card>.tfc-card-header:has(>span:first-child:not(.ic) + div:last-child)>div:last-child button,
  .tfc-card>.tfc-card-header:has(>div:first-child + div:last-child)>div:last-child button{width:100% !important;min-width:0 !important;max-width:none !important}
}

/* v6.5.4 — regras finais: prevalecem sobre os estilos legados acima. */
.tfc-command-backdrop,
.tfc-fab,
.tfc-scrolltop,
.tfc-contextbar,
.tfc-smart-status{display:none !important}

html,body{width:100% !important;max-width:100% !important;overflow-x:hidden !important}
.content{
  width:min(100%,1550px) !important;
  max-width:1550px !important;
  min-width:0 !important;
  margin-inline:auto !important;
  padding-inline:clamp(18px,3vw,42px) !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}
.main-tab-content,.section,.section-saida,.section-colab,.section-config{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin-inline:0 !important;
  box-sizing:border-box !important;
}
.main-tab-content.active,.section.active,.section-saida.active,.section-colab.active,.section-config.active{display:block !important}
.main-tab-content>*,.section>*,.section-saida>*,.section-colab>*,.section-config>*,.card,.tfc-card{
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}
canvas,svg,img{max-width:100%}

.card>.card-header,.tfc-card>.tfc-card-header{
  width:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  display:flex !important;
  flex-flow:row wrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px 18px !important;
  padding:10px 0 16px !important;
  box-sizing:border-box !important;
  text-align:left !important;
}
.card>.card-header>.tfc-section-title-wrap,.tfc-card>.tfc-card-header>.tfc-section-title-wrap{
  width:auto !important;
  min-width:220px !important;
  max-width:100% !important;
  flex:1 1 300px !important;
  display:inline-flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  margin:0 !important;
  color:#082a21 !important;
  font-family:var(--aero-font) !important;
  font-size:1rem !important;
  font-weight:800 !important;
  line-height:1.35 !important;
  letter-spacing:.01em !important;
  white-space:normal !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  writing-mode:horizontal-tb !important;
}
.card>.card-header>.tfc-section-title-wrap>.ic,.tfc-card>.tfc-card-header>.tfc-section-title-wrap>.ic,
.card>.card-header>.ic:first-child,.tfc-card>.tfc-card-header>.ic:first-child{
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  flex:0 0 34px !important;
  display:inline-grid !important;
  place-items:center !important;
  writing-mode:horizontal-tb !important;
}
.card>.card-header.tfc-section-head-actions>.tfc-section-controls,
.tfc-card>.tfc-card-header.tfc-section-head-actions>.tfc-section-controls{
  width:auto !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 0 0 auto !important;
  padding:0 !important;
  flex:0 1 auto !important;
  display:flex !important;
  flex-flow:row wrap !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:9px !important;
}
.card>.card-header select,.tfc-card>.tfc-card-header select{
  width:auto !important;
  min-width:165px !important;
  max-width:230px !important;
  flex:0 1 200px !important;
}
.card>.card-header button,.tfc-card>.tfc-card-header button,
.card>.card-header a[class*="btn"],.tfc-card>.tfc-card-header a[class*="btn"]{
  width:auto !important;
  max-width:100% !important;
  min-width:max-content !important;
  flex:0 0 auto !important;
  white-space:nowrap !important;
  overflow:visible !important;
}
@media(max-width:1100px){
  .card>.card-header.tfc-section-head-actions>.tfc-section-title-wrap,
  .tfc-card>.tfc-card-header.tfc-section-head-actions>.tfc-section-title-wrap{
    width:100% !important;min-width:0 !important;flex-basis:100% !important
  }
  .card>.card-header.tfc-section-head-actions>.tfc-section-controls,
  .tfc-card>.tfc-card-header.tfc-section-head-actions>.tfc-section-controls{
    width:100% !important;margin-left:0 !important;justify-content:flex-start !important
  }
}
@media(max-width:600px){
  .content{padding-inline:12px !important}
  .card>.card-header,.tfc-card>.tfc-card-header{
    flex-direction:column !important;align-items:stretch !important;gap:10px !important
  }
  .card>.card-header>.tfc-section-title-wrap,.tfc-card>.tfc-card-header>.tfc-section-title-wrap{
    width:100% !important;min-width:0 !important;flex:1 1 auto !important
  }
  .card>.card-header.tfc-section-head-actions>.tfc-section-controls,
  .tfc-card>.tfc-card-header.tfc-section-head-actions>.tfc-section-controls{
    width:100% !important;display:grid !important;grid-template-columns:1fr !important;gap:9px !important
  }
  .card>.card-header select,.tfc-card>.tfc-card-header select,
  .card>.card-header button,.tfc-card>.tfc-card-header button,
  .card>.card-header a[class*="btn"],.tfc-card>.tfc-card-header a[class*="btn"]{
    width:100% !important;min-width:0 !important;max-width:none !important;white-space:normal !important
  }
}
