/* V107 — correções visuais pontuais sobre a V104, sem alterar cálculos ou fluxos. */
body.ux-v107-patch{--v107-surface:#121c31;--v107-surface-2:#0d172a;--v107-border:rgba(96,165,250,.18);--v107-border-strong:rgba(103,232,249,.40);--v107-shadow:0 14px 34px rgba(2,6,23,.14);}
body.ux-v107-patch .v96-filter-panel,
body.ux-v107-patch .v98-scope-banner,
body.ux-v107-patch .v96-card,
body.ux-v107-patch .panel,
body.ux-v107-patch .mini-kpi,
body.ux-v107-patch .kpi-card{box-shadow:var(--v107-shadow);}
body.ux-v107-patch .v96-filter-panel{border-color:var(--v107-border-strong);background:linear-gradient(180deg,rgba(18,28,49,.98),rgba(11,18,33,.98));}
body.ux-v107-patch .v96-field label,
body.ux-v107-patch .mini-kpi-label,
body.ux-v107-patch .kpi-title{letter-spacing:.06em;}
body.ux-v107-patch .v96-tabs{padding:8px;border-color:rgba(96,165,250,.22);background:#0b1324;}
body.ux-v107-patch .v96-tabs button{position:relative;min-height:50px;font-size:9px;transition:all .15s ease;}
body.ux-v107-patch .v96-tabs button.active{border-color:rgba(103,232,249,.55);background:linear-gradient(135deg,rgba(37,99,235,.35),rgba(124,58,237,.32));box-shadow:inset 0 0 0 1px rgba(147,197,253,.25),0 10px 20px rgba(37,99,235,.12);}
body.ux-v107-patch .v96-tabs button.active::after{content:'ABA ATUAL';display:block;margin-top:2px;color:#c9e7ff;font-size:7px;font-weight:900;letter-spacing:.06em;}
body.ux-v107-patch .v96-chips{gap:8px;}
body.ux-v107-patch .v96-chip{padding:8px 10px;border-color:rgba(103,232,249,.32);background:linear-gradient(135deg,rgba(8,145,178,.16),rgba(37,99,235,.14));color:#e6f3ff;box-shadow:0 8px 18px rgba(2,6,23,.10);}
body.ux-v107-patch .v96-chip button{color:#d6ecff;}
body.ux-v107-patch .v98-scope-banner{padding:16px 18px;border-color:rgba(96,165,250,.28);}
body.ux-v107-patch .v98-scope-copy strong{font-size:16px;line-height:1.2;}
body.ux-v107-patch .v98-scope-copy span{color:#a8b8d4;}
body.ux-v107-patch .v98-scope-stat{min-width:96px;border-color:rgba(96,165,250,.18);background:rgba(11,18,33,.55);}
body.ux-v107-patch .v96-kpis,
body.ux-v107-patch .mini-kpi-grid{gap:14px;}
body.ux-v107-patch .v96-kpi,
body.ux-v107-patch .mini-kpi,
body.ux-v107-patch .kpi-card{display:flex;flex-direction:column;justify-content:flex-start;min-height:144px;padding:16px;border-color:var(--v107-border);background:linear-gradient(180deg,#141f35,#10192c);}
body.ux-v107-patch .v96-kpi small,
body.ux-v107-patch .mini-kpi-label,
body.ux-v107-patch .kpi-title{padding-right:0;font-size:10px;line-height:1.35;color:#93a3be;}
body.ux-v107-patch .v96-kpi strong,
body.ux-v107-patch .mini-kpi-value,
body.ux-v107-patch .kpi-value{margin-top:8px;font-size:clamp(21px,1.45vw,28px);line-height:1.08;letter-spacing:-.028em;word-break:normal;overflow-wrap:normal;hyphens:none;white-space:normal;font-variant-numeric:tabular-nums;}
body.ux-v107-patch .v96-kpi strong.money,
body.ux-v107-patch .mini-kpi-value.money{font-size:clamp(18px,1.18vw,23px);line-height:1.12;letter-spacing:-.022em;}
body.ux-v107-patch .v96-kpi span,
body.ux-v107-patch .profile-kpi-sub,
body.ux-v107-patch .commercial-kpi-note,
body.ux-v107-patch .financial-kpi-note{margin-top:auto;padding-top:10px;font-size:10px;line-height:1.45;color:#9eb0cb;}
body.ux-v107-patch .v96-card{padding:18px;border-radius:18px;border-color:rgba(96,165,250,.16);}
body.ux-v107-patch .v96-card-head strong{font-size:13px;line-height:1.3;}
body.ux-v107-patch .v96-card-head span{font-size:10px;line-height:1.45;color:#91a3be;}
body.ux-v107-patch .v96-chart{height:330px;min-height:330px;}
body.ux-v107-patch .v96-funnel-step{border-color:rgba(96,165,250,.18);background:linear-gradient(180deg,#13213a,#10192c);}
body.ux-v107-patch .v96-funnel-step strong{font-size:18px;line-height:1.05;}
body.ux-v107-patch .v96-funnel-step span{font-size:10px;line-height:1.4;}
body.ux-v107-patch .floating-period-indicator{right:16px;bottom:14px;max-width:min(320px,calc(100vw - 28px));padding:10px 12px 10px 10px;border-radius:14px;border-color:rgba(96,165,250,.32);background:rgba(10,16,29,.92);box-shadow:0 16px 32px rgba(2,6,23,.22);}
body.ux-v107-patch .floating-period-icon{width:28px;height:28px;flex-basis:28px;border-radius:9px;}
body.ux-v107-patch .floating-period-copy strong,
body.ux-v107-patch .floating-period-label-v78{font-size:11px;line-height:1.25;}
body.ux-v107-patch .floating-period-copy small,
body.ux-v107-patch .v78-period-rule{font-size:8px;line-height:1.35;}
body.ux-v107-patch .main-container{padding-bottom:96px!important;}
@media (max-width: 1440px){
  body.ux-v107-patch .v96-kpis{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width: 1100px){
  body.ux-v107-patch .v96-kpis,body.ux-v107-patch .mini-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  body.ux-v107-patch .v96-grid-2,body.ux-v107-patch .v96-grid-3{grid-template-columns:1fr;}
}