/* ═══════════════════════════════════════════════════════════════
   ABA GERAL — Design System Institucional (Quant / HFT)
   body.view-geral-active · layout intacto · só estética
   ═══════════════════════════════════════════════════════════════ */

body.view-geral-active,
body.student-view-active {
  --inst-bg: #000000;
  --inst-panel: #05070a;
  --inst-surface: #080b0f;
  --inst-border: rgba(0, 168, 204, 0.15);
  --inst-border-dim: rgba(255, 255, 255, 0.06);
  --inst-cyan: #4A8FA0;
  --inst-cyan-muted: rgba(74, 143, 160, 0.45);
  --inst-text: var(--ink-cream, #ebe5d8);
  --inst-text-dim: #6a7884;
  --inst-text-faint: #454f58;
  --inst-amber: #B8843A;
  --inst-amber-hot: #C8923A;
  --inst-amber-line: rgba(184, 132, 58, 0.35);
  --inst-green: #67E6C9;
  --inst-red: #E77A7A;
  --inst-mono: var(--font-bloomberg);
  --inst-ui: var(--inst-mono);
  --inst-radius: 0;
  --inst-fs-data: 21.1px;
  --inst-fs-label: 16.8px;
  --inst-fs-tab: 19.5px;
  --inst-fs-micro: 15.4px;
  --tabnav-h: 48px;
  --inst-fw-data: 500;
  --inst-fw-label: 400;
  --inst-ls-label: 0.08em;
  --inst-ls-tab: 0.12em;
  --inst-luma: rgba(0, 168, 204, 0.38);
  --inst-luma-soft: rgba(0, 168, 204, 0.16);
  --inst-luma-border: rgba(0, 168, 204, 0.26);
  --inst-luma-bg: rgba(0, 168, 204, 0.05);
  --inst-luma-glow: 0 0 10px rgba(0, 168, 204, 0.1), inset 0 0 14px rgba(0, 168, 204, 0.05);
  --inst-luma-text: 0 0 8px rgba(0, 168, 204, 0.32), 0 0 18px rgba(0, 168, 204, 0.14);
  --clocks-h: 136px;
  --govbar-h: 56px;
  --header-h: calc(var(--tabnav-h) + var(--clocks-h) + var(--govbar-h));
}

/* ── Base ── */
body.view-geral-active,
body.view-geral-active #app {
  background: var(--inst-bg);
  color: var(--inst-text);
  font-family: var(--inst-mono);
  font-size: var(--inst-fs-data);
  font-weight: var(--inst-fw-data);
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

body.view-geral-active #header {
  background: var(--inst-bg);
  border-bottom: 1px solid var(--inst-border-dim);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: visible;
  isolation: isolate;
}

body.view-geral-active #tabnav {
  border-bottom-color: var(--inst-border-dim);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  height: var(--tabnav-h);
  min-height: var(--tabnav-h);
  overflow: visible;
  box-sizing: border-box;
}

body.view-geral-active.fs-mode #tabnav,
body.view-geral-active.report-full #tabnav,
body.view-geral-active.ordens-full #tabnav,
body.view-geral-active.tt-full #tabnav,
body.view-geral-active.ts-full #tabnav,
body.view-geral-active.tp-full #tabnav {
  height: var(--tabnav-h);
  min-height: var(--tabnav-h);
}

body.view-geral-active.fs-mode #app {
  top: var(--header-h);
  bottom: var(--footer-stack-h);
}

body.view-geral-active.fs-chart-only #app {
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

body.view-geral-active.fs-chart-only #center {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

body.view-geral-active.fs-chart-only #view-geral {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

body.view-geral-active.fs-chart-only #geral-main-tv-slot {
  display: none !important;
}

body.view-geral-active.fs-chart-only #chart-host:has(#imperium-desk.visible) {
  overflow: visible !important;
}

body.view-geral-active.fs-chart-only #imperium-desk.visible {
  display: flex !important;
  flex-direction: column;
  z-index: 60;
  pointer-events: auto;
}

body.view-geral-active.fs-chart-only #chart-stage {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  width: 100% !important;
}

body.view-geral-active.fs-chart-only #chart-host {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  width: 100% !important;
}
body.view-geral-active.fs-chart-only #clocks-row,
body.view-geral-active.fs-chart-only #gov-bar,
body.view-geral-active.fs-chart-only #tabnav,
body.view-geral-active.fs-chart-only #footer-stack {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  border: none !important;
}

body.view-geral-active.fs-chart-only #header {
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  border: none !important;
  pointer-events: none !important;
}

/* Alt+Shift — barra TF + ferramentas (RECT, TREND, MA…) fixa acima do gráfico */
body.view-geral-active.fs-chart-only #tf-bar {
  display: flex !important;
  visibility: visible !important;
  height: auto !important;
  min-height: 46px !important;
  max-height: none !important;
  flex-shrink: 0;
  opacity: 1 !important;
  pointer-events: auto !important;
  overflow: visible !important;
}

body.view-geral-active.report-full #app,
body.view-geral-active.tt-full #app,
body.view-geral-active.ts-full #app,
body.view-geral-active.tp-full #app {
  top: var(--tabnav-h);
}

body.view-geral-active.report-full #view-report.active,
body.view-geral-active.ordens-full #view-ordens.active,
body.view-geral-active.tt-full #view-tempo-tela.active,
body.view-geral-active.tp-full #view-trading-plan.active {
  top: var(--tabnav-h);
}

body.view-geral-active.fs-mode #view-caleco.active {
  top: var(--tabnav-h);
}

body.view-geral-active .nav-main {
  justify-content: center;
  padding: 0 12px;
}

body.view-geral-active .brand {
  color: var(--inst-cyan);
  font-family: var(--inst-mono);
  font-size: var(--inst-fs-tab);
  font-weight: 500;
  letter-spacing: var(--inst-ls-tab);
  line-height: 1.2;
  overflow: visible;
  padding-top: 2px;
  padding-bottom: 2px;
  box-sizing: border-box;
  gap: 9px;
}

body.view-geral-active .brand-mark {
  width: 22px;
  height: 22px;
  color: #00d4e0;
  flex: 0 0 auto;
  display: block;
}

body.view-geral-active .tab {
  border-radius: var(--inst-radius);
  color: var(--inst-text-dim);
  font-family: var(--inst-mono);
  font-size: var(--inst-fs-tab);
  font-weight: 500;
  letter-spacing: var(--inst-ls-tab);
  line-height: 1.2;
  overflow: visible;
  box-sizing: border-box;
}

body.view-geral-active .nav-right .tab {
  font-size: var(--inst-fs-tab);
  letter-spacing: var(--inst-ls-tab);
  padding: 0 12px;
}

body.view-geral-active .tab:hover {
  color: var(--inst-cyan);
}

body.view-geral-active .tab.active,
body.view-geral-active #tab-geral.active,
body.view-geral-active .tab[data-view="terminal"].active,
body.view-geral-active #tab-terminal.active,
body.view-geral-active .tab[data-view="report"].active,
body.view-geral-active #tab-report.active,
body.view-geral-active .tab[data-view="caleco"].active,
body.view-geral-active #tab-intel-hub.active,
body.view-geral-active .tab[data-view="chat"].active,
body.view-geral-active #tab-chat.active,
body.view-geral-active .tab[data-view="conexoes"].active,
body.view-geral-active .tab[data-view="admin"].active,
body.view-geral-active .tab[data-view="student"].active,
body.view-geral-active .tab[data-view="tempo-tela"].active,
body.view-geral-active .tab[data-view="affiliate"].active {
  border-bottom-color: var(--inst-cyan);
  color: var(--inst-cyan);
}

/* ── Aba STUDENT — tabnav institucional (ciano · Bloomberg) ── */
body.student-view-active #header {
  background: var(--inst-bg);
  border-bottom: 1px solid var(--inst-border-dim);
}

body.student-view-active #tabnav {
  border-bottom-color: var(--inst-border-dim);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  height: var(--tabnav-h);
  min-height: var(--tabnav-h);
}

body.student-view-active .brand {
  color: var(--inst-cyan);
  font-family: var(--inst-mono);
  font-size: var(--inst-fs-tab);
  font-weight: 500;
  letter-spacing: var(--inst-ls-tab);
}

body.student-view-active .tab {
  border-radius: var(--inst-radius);
  color: var(--inst-text-dim);
  font-family: var(--inst-mono);
  font-size: var(--inst-fs-tab);
  font-weight: 500;
  letter-spacing: var(--inst-ls-tab);
}

body.student-view-active .nav-right .tab {
  font-size: var(--inst-fs-tab);
  letter-spacing: var(--inst-ls-tab);
  padding: 0 12px;
}

body.student-view-active .tab:hover {
  color: var(--inst-cyan);
}

body.student-view-active .tab.active,
body.student-view-active .tab[data-view="student"].active {
  border-bottom-color: var(--inst-cyan);
  color: var(--inst-cyan);
}

body.student-view-active #view-student {
  background: var(--inst-bg, #000000);
  color: var(--inst-text, #d4dce4);
  font-family: var(--font-bloomberg, var(--inst-mono));
}

/* ── Intel Hub (tela cheia) — cabeçalho e relógios no padrão aba Geral ── */
body.ih-hub-full {
  --inst-bg: #000000;
  --inst-cyan: #4A8FA0;
  --inst-text: var(--ink-cream, #ebe5d8);
  --inst-text-dim: #6a7884;
  --inst-text-faint: #454f58;
  --inst-green: #67E6C9;
  --inst-red: #E77A7A;
  --inst-border-dim: rgba(255, 255, 255, 0.06);
  --inst-mono: var(--font-bloomberg);
  --inst-fs-label: 16.8px;
  --inst-fs-tab: 19.5px;
  --inst-ls-tab: 0.12em;
  --tabnav-h: 48px;
  --clocks-h: 136px;
}

body.ih-hub-full #header {
  background: var(--inst-bg);
  border-bottom: 1px solid var(--inst-border-dim);
}

body.ih-hub-full #tabnav {
  border-bottom-color: var(--inst-border-dim);
  height: var(--tabnav-h);
  min-height: var(--tabnav-h);
}

body.ih-hub-full .brand {
  border-right-color: var(--inst-border-dim);
  color: var(--inst-cyan);
  font-family: var(--inst-mono);
  font-size: var(--inst-fs-tab);
  font-weight: 500;
  letter-spacing: var(--inst-ls-tab);
}

body.ih-hub-full .nav-right {
  border-left-color: var(--inst-border-dim);
}

body.ih-hub-full .tab,
body.ih-hub-full .nav-right .tab {
  border-radius: 0;
  color: var(--inst-text-dim);
  font-family: var(--inst-mono);
  font-size: var(--inst-fs-tab);
  font-weight: 500;
  letter-spacing: var(--inst-ls-tab);
  padding: 0 12px;
}

body.ih-hub-full .tab:hover {
  color: var(--inst-cyan);
}

body.ih-hub-full .tab.active {
  border-bottom-color: var(--inst-cyan);
  color: var(--inst-cyan);
}

/* ── Clocks (Overview #clocks-row + Intel Hub .cal-clocks-row) ── */
body.view-geral-active #clocks-row,
body.ih-hub-full #view-caleco .cal-clocks-row {
  background: var(--inst-bg);
  border-bottom: 1px solid var(--inst-border-dim);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)) minmax(118px, 1.15fr) minmax(118px, 1.15fr) minmax(118px, 1.05fr);
  height: var(--clocks-h);
  min-height: var(--clocks-h);
  max-height: var(--clocks-h);
  align-items: stretch;
  overflow: hidden;
  flex-shrink: 0;
}

body.view-geral-active #clocks-row > .icb-clock,
body.view-geral-active .icb-clock,
body.ih-hub-full #view-caleco .cal-clocks-row > .icb-clock {
  border-right: 1px solid var(--inst-border-dim);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: flex-start;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  overflow: hidden;
  padding: 7px 10px 8px;
  box-sizing: border-box;
}

body.view-geral-active #clocks-row > .icb-clock:last-child,
body.ih-hub-full #view-caleco .cal-clocks-row > .icb-clock:last-child {
  border-right: none;
}

body.view-geral-active #clocks-row .icb-clock-label,
body.view-geral-active .icb-clock-label,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-label {
  color: var(--inst-cyan);
  font-family: var(--inst-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.6px;
  line-height: 1.2;
  margin-bottom: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

body.view-geral-active #clocks-row .icb-clock-time,
body.view-geral-active .icb-clock-time,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-time {
  color: var(--inst-text);
  font-family: var(--font-bloomberg);
  font-size: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 1px 0 2px;
}

body.view-geral-active #clocks-row .icb-clock-time.closed,
body.view-geral-active .icb-clock-time.closed,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-time.closed {
  color: var(--inst-text);
}

body.view-geral-active #clocks-row .icb-clock-time.open,
body.view-geral-active .icb-clock-time.open,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-time.open {
  color: var(--inst-cyan);
}

body.view-geral-active #clocks-row .icb-clock-time.icb-clock-assets,
body.view-geral-active .icb-clock-time.icb-clock-assets,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-time.icb-clock-assets,
body.chat-full #clocks-row .icb-clock-time.icb-clock-assets {
  color: var(--inst-text);
  display: flex;
  flex-direction: column;
  font-family: var(--font-bloomberg, "IBM Plex Mono", Consolas, monospace) !important;
  font-size: inherit !important;
  gap: 3px;
  height: 100%;
  justify-content: flex-start;
  line-height: 1;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  text-align: left;
  width: 100%;
}

body.view-geral-active #clocks-row > .icb-clock.session-assets-mode,
body.ih-hub-full #view-caleco .cal-clocks-row > .icb-clock.session-assets-mode,
body.chat-full #clocks-row > .icb-clock.session-assets-mode {
  background: #020406;
  border-top: 1px solid var(--inst-cyan);
  border-color: rgba(74, 143, 160, 0.52);
  gap: 0;
  justify-content: flex-start;
  padding: 5px 7px 6px;
}

body.view-geral-active .icb-clock-assets-head,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-assets-head,
body.chat-full #clocks-row .icb-clock-assets-head {
  align-items: center;
  color: var(--inst-text-dim);
  display: flex;
  flex: 0 0 13px;
  font-size: clamp(9px, 0.58vw, 11px);
  font-weight: 700;
  gap: 6px;
  letter-spacing: 0.1em;
  min-width: 0;
  white-space: nowrap;
}

body.view-geral-active .icb-clock-assets-live-dot,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-assets-live-dot,
body.chat-full #clocks-row .icb-clock-assets-live-dot {
  background: var(--inst-green);
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(116, 222, 198, 0.35);
  flex: 0 0 6px;
  height: 6px;
  width: 6px;
}

body.view-geral-active .icb-clock-assets-list,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-assets-list,
body.chat-full #clocks-row .icb-clock-assets-list {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
  grid-auto-rows: minmax(0, 1fr);
  min-height: 0;
}

body.view-geral-active .icb-clock-asset-item,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-asset-item,
body.chat-full #clocks-row .icb-clock-asset-item {
  align-items: center;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(106, 120, 132, 0.25);
  color: var(--inst-text);
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr) auto 20px;
  min-width: 0;
  overflow: hidden;
  padding: 0 4px 0 6px;
}

body.view-geral-active .icb-clock-asset-item b,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-asset-item b,
body.chat-full #clocks-row .icb-clock-asset-item b {
  color: var(--inst-text);
  font-size: clamp(11px, 0.72vw, 14px);
  font-weight: 700;
  letter-spacing: 0.035em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.view-geral-active .icb-clock-asset-item em,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-asset-item em,
body.chat-full #clocks-row .icb-clock-asset-item em {
  color: var(--inst-cyan-muted, #4A8FA0);
  font-size: clamp(7px, 0.45vw, 9px);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
}

body.view-geral-active .icb-clock-asset-meter,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-asset-meter,
body.chat-full #clocks-row .icb-clock-asset-meter {
  align-items: flex-end;
  display: flex;
  gap: 1px;
  height: 12px;
  justify-content: flex-end;
  width: 20px;
}

body.view-geral-active .icb-clock-asset-meter i,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-asset-meter i,
body.chat-full #clocks-row .icb-clock-asset-meter i {
  background: var(--inst-cyan);
  display: block;
  flex: 0 0 2px;
}

body.view-geral-active .icb-clock-asset-meter i:nth-child(1),
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-asset-meter i:nth-child(1),
body.chat-full #clocks-row .icb-clock-asset-meter i:nth-child(1) { height: 35%; }
body.view-geral-active .icb-clock-asset-meter i:nth-child(2),
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-asset-meter i:nth-child(2),
body.chat-full #clocks-row .icb-clock-asset-meter i:nth-child(2) { height: 50%; }
body.view-geral-active .icb-clock-asset-meter i:nth-child(3),
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-asset-meter i:nth-child(3),
body.chat-full #clocks-row .icb-clock-asset-meter i:nth-child(3) { height: 65%; }
body.view-geral-active .icb-clock-asset-meter i:nth-child(4),
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-asset-meter i:nth-child(4),
body.chat-full #clocks-row .icb-clock-asset-meter i:nth-child(4) { height: 82%; }
body.view-geral-active .icb-clock-asset-meter i:nth-child(5),
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-asset-meter i:nth-child(5),
body.chat-full #clocks-row .icb-clock-asset-meter i:nth-child(5) { height: 100%; }

body.view-geral-active #clocks-row > .icb-clock.session-assets-mode > .icb-clock-label,
body.view-geral-active #clocks-row > .icb-clock.session-assets-mode > .icb-clock-exchange,
body.view-geral-active #clocks-row > .icb-clock.session-assets-mode > .icb-clock-st,
body.view-geral-active #clocks-row > .icb-clock.session-assets-mode > .icb-clock-ut,
body.ih-hub-full #view-caleco .cal-clocks-row > .icb-clock.session-assets-mode > .icb-clock-label,
body.ih-hub-full #view-caleco .cal-clocks-row > .icb-clock.session-assets-mode > .icb-clock-exchange,
body.ih-hub-full #view-caleco .cal-clocks-row > .icb-clock.session-assets-mode > .icb-clock-st,
body.ih-hub-full #view-caleco .cal-clocks-row > .icb-clock.session-assets-mode > .icb-clock-ut,
body.chat-full #clocks-row > .icb-clock.session-assets-mode > .icb-clock-label,
body.chat-full #clocks-row > .icb-clock.session-assets-mode > .icb-clock-exchange,
body.chat-full #clocks-row > .icb-clock.session-assets-mode > .icb-clock-st,
body.chat-full #clocks-row > .icb-clock.session-assets-mode > .icb-clock-ut {
  display: none !important;
}

body.view-geral-active #clocks-row .icb-clock.local .icb-clock-time,
body.view-geral-active .icb-clock.local .icb-clock-time,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock.local .icb-clock-time,
body.view-geral-active #clocks-row .icb-clock.utc .icb-clock-time,
body.view-geral-active .icb-clock.utc .icb-clock-time,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock.utc .icb-clock-time {
  color: var(--inst-cyan, #00a8cc);
  font-family: var(--font-bloomberg);
  font-size: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

body.view-geral-active .icb-clock.overtrading .icb-clock-time {
  color: var(--inst-cyan);
  font-family: var(--font-bloomberg);
  font-size: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

body.view-geral-active #clocks-row .icb-clock.local-date .icb-clock-time,
body.view-geral-active .icb-clock.local-date .icb-clock-time,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock.local-date .icb-clock-time {
  color: var(--inst-text, #ebe5d8);
}

body.view-geral-active #clocks-row .icb-clock-exchange,
body.view-geral-active .icb-clock-exchange,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-exchange {
  color: var(--inst-text-dim);
  font-size: 16px;
  letter-spacing: 0.3px;
  line-height: 1.25;
  margin-top: 1px;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

body.view-geral-active #clocks-row .icb-clock-exchange.open,
body.view-geral-active .icb-clock-exchange.open,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-exchange.open {
  color: var(--inst-text-dim);
}

body.view-geral-active #clocks-row .icb-clock-exchange,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-exchange {
  margin-top: 1px;
}

body.view-geral-active #clocks-row .icb-clock-st,
body.view-geral-active .icb-clock-st,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-st {
  color: var(--inst-text-dim);
  display: block;
  font-size: clamp(12px, 0.76vw, 15px);
  font-weight: 700;
  letter-spacing: 0.25px;
  line-height: 1.25;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.view-geral-active #clocks-row .icb-clock-st::before,
body.view-geral-active .icb-clock-st::before,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-st::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

body.view-geral-active #clocks-row .icb-clock-st.open::before,
body.view-geral-active .icb-clock-st.open::before,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-st.open::before {
  background: var(--inst-green);
}

body.view-geral-active #clocks-row .icb-clock-st.closed::before,
body.view-geral-active .icb-clock-st.closed::before,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-st.closed::before {
  background: var(--inst-red);
}

body.view-geral-active #clocks-row .icb-clock-st-local::before,
body.view-geral-active .icb-clock-st-local::before,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-st-local::before,
body.view-geral-active #clocks-row .icb-clock-st-utc::before,
body.view-geral-active .icb-clock-st-utc::before,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-st-utc::before {
  background: var(--inst-cyan, #00a8cc);
}

body.view-geral-active #clocks-row .icb-clock-st.open,
body.view-geral-active .icb-clock-st.open,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-st.open {
  color: var(--inst-text-dim);
}

body.view-geral-active #clocks-row .icb-clock-st.closed,
body.view-geral-active .icb-clock-st.closed,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-st.closed {
  color: var(--inst-text-dim);
}

body.view-geral-active #clocks-row .icb-clock-st-local,
body.view-geral-active .icb-clock-st-local,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-st-local,
body.view-geral-active #clocks-row .icb-clock-st-utc,
body.view-geral-active .icb-clock-st-utc,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-st-utc {
  color: var(--inst-text-dim);
}

body.view-geral-active #clocks-row .icb-clock-ut,
body.view-geral-active .icb-clock-ut,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-ut {
  display: block;
  color: var(--inst-text-faint);
  font-size: 15px;
  line-height: 1.3;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.view-geral-active #clocks-row .icb-clock.local,
body.view-geral-active .icb-clock.local,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock.local,
body.view-geral-active #clocks-row .icb-clock.utc,
body.view-geral-active .icb-clock.utc,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock.utc {
  background: #0a1018;
  flex: none;
  min-width: 118px;
  height: 100%;
  align-self: stretch;
}

body.view-geral-active #clocks-row .icb-clock.local .icb-clock-label,
body.view-geral-active .icb-clock.local .icb-clock-label,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock.local .icb-clock-label,
body.view-geral-active #clocks-row .icb-clock.utc .icb-clock-label,
body.view-geral-active .icb-clock.utc .icb-clock-label,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock.utc .icb-clock-label {
  color: var(--inst-text, #ebe5d8);
  font-family: var(--inst-mono);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.2;
}

body.view-geral-active .icb-clock.overtrading {
  flex: none;
}

body.view-geral-active #clocks-row .icb-clock.local-date,
body.view-geral-active .icb-clock.local-date,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock.local-date {
  flex: none;
  background: #0a1018;
  height: 100%;
  align-self: stretch;
}

body.view-geral-active #clocks-row .icb-clock.local-date .icb-clock-label,
body.view-geral-active .icb-clock.local-date .icb-clock-label,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock.local-date .icb-clock-label {
  color: var(--inst-text, #ebe5d8);
  font-family: var(--inst-mono);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 2px;
}

body.view-geral-active #clocks-row .icb-clock.local-date .icb-clock-time,
body.view-geral-active .icb-clock.local-date .icb-clock-time,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock.local-date .icb-clock-time {
  color: var(--inst-text, #ebe5d8);
  font-family: var(--font-bloomberg);
  font-size: 27px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.08;
}

body.view-geral-active #clocks-row .icb-clock.local-date .icb-clock-exchange,
body.view-geral-active .icb-clock.local-date .icb-clock-exchange,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock.local-date .icb-clock-exchange {
  text-transform: capitalize;
}

body.view-geral-active #clocks-row .icb-clock-row-hold,
body.view-geral-active .icb-clock-row-hold,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-row-hold {
  visibility: hidden;
  pointer-events: none;
  flex-shrink: 0;
}

body.view-geral-active #clocks-row .icb-clock-row-hold.icb-clock-st,
body.view-geral-active .icb-clock-row-hold.icb-clock-st,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-row-hold.icb-clock-st {
  display: block;
  min-height: 17px;
  margin-top: 1px;
}

body.view-geral-active #clocks-row .icb-clock-row-hold.icb-clock-ut,
body.view-geral-active .icb-clock-row-hold.icb-clock-ut,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock-row-hold.icb-clock-ut {
  display: block;
  min-height: 15px;
}

body.view-geral-active #clocks-row .icb-clock.session-open,
body.view-geral-active .icb-clock.session-open,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock.session-open {
  background: rgba(0, 168, 204, 0.05);
  box-shadow: none;
  cursor: pointer;
  outline: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

body.view-geral-active #clocks-row .icb-clock.session-open:hover,
body.view-geral-active .icb-clock.session-open:hover,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock.session-open:hover,
body.view-geral-active #clocks-row .icb-clock.session-open:focus-visible,
body.view-geral-active .icb-clock.session-open:focus-visible,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock.session-open:focus-visible {
  background: rgba(0, 168, 204, 0.14);
  box-shadow: inset 0 0 0 1px rgba(74, 143, 160, 0.55);
}

body.view-geral-active #clocks-row .icb-clock.session-open:active,
body.view-geral-active .icb-clock.session-open:active,
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock.session-open:active {
  background: rgba(0, 168, 204, 0.2);
}

body.view-geral-active #clocks-row .icb-clock:not(.session-open),
body.ih-hub-full #view-caleco .cal-clocks-row .icb-clock:not(.session-open) {
  cursor: default;
}
/* ── Gov bar ── */
body.view-geral-active #gov-bar {
  background: var(--inst-panel);
  border-bottom: 1px solid var(--inst-border-dim);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  height: var(--govbar-h);
  min-height: var(--govbar-h);
  max-height: var(--govbar-h);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

body.view-geral-active .gov-item {
  border-right-color: var(--inst-border-dim);
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
  background: var(--inst-panel);
  align-self: center;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 14px;
  min-height: 0;
}

body.view-geral-active .gov-stack {
  gap: 2px;
  line-height: 1.15;
}

body.view-geral-active .gov-dot {
  width: 8px;
  height: 8px;
}

body.view-geral-active #gov-ticker {
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  max-height: 100%;
  align-self: center;
  z-index: 1;
  background: var(--inst-panel);
  padding: 0 8px;
}

body.view-geral-active .gov-lbl {
  color: var(--inst-text-dim);
  font-family: var(--inst-mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: var(--inst-ls-label);
  line-height: 1.2;
}

body.view-geral-active .gov-val {
  color: var(--inst-text);
  font-family: var(--inst-mono);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

body.view-geral-active .gov-val.ok {
  color: var(--inst-green);
}

body.view-geral-active .gov-val.gold {
  color: var(--inst-amber);
}

body.view-geral-active .gov-val.red {
  color: var(--inst-red);
}

body.view-geral-active .gov-val.blue {
  color: var(--inst-cyan);
}

body.view-geral-active .gov-badge {
  background: rgba(116, 222, 198, 0.08);
  border: 1px solid rgba(116, 222, 198, 0.22);
  border-radius: var(--inst-radius);
  color: var(--inst-green);
  font-size: var(--inst-fs-micro);
  letter-spacing: 0.1em;
}

body.view-geral-active .gov-tq-lbl {
  color: var(--inst-text-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 20px;
  font-weight: 600;
  letter-spacing: var(--inst-ls-label);
  line-height: 1.2;
}

body.view-geral-active .gov-tq {
  gap: 8px;
  padding: 0 14px;
}

body.view-geral-active .gov-tq-name {
  gap: 2px;
  line-height: 1.15;
}

body.view-geral-active .gov-tq-val {
  font-size: 22px;
  line-height: 1.15;
}

body.view-geral-active .gov-tq-pair {
  font-size: 15px;
  line-height: 1.2;
}

body.view-geral-active .gov-tq-sep {
  font-size: var(--gtq-fs-sep);
}

body.view-geral-active .gov-tq-val.flat {
  color: var(--inst-text);
}

body.view-geral-active .gov-tq-val.up {
  color: var(--inst-green, #67E6C9);
}

body.view-geral-active .gov-tq-val.dn {
  color: var(--inst-red, #E77A7A);
}

body.view-geral-active .gov-tq-ico {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  min-width: 24px;
  width: auto;
  height: 14px;
  overflow: visible;
  flex-shrink: 0;
  opacity: 1;
  visibility: visible;
}

body.view-geral-active .gov-tq-flags {
  display: inline-flex !important;
  position: relative;
  width: 24px;
  height: 12px;
  flex-shrink: 0;
  overflow: visible;
}

body.view-geral-active .gov-tq-flag {
  display: inline-flex !important;
  overflow: visible;
}

body.view-geral-active .gov-tq-flag svg {
  display: block !important;
  width: 14px !important;
  height: 10px !important;
}

body.view-geral-active .gov-tq-flag--solo svg {
  width: 16px !important;
  height: 11px !important;
}

body.view-geral-active .gov-tq-flag--base {
  left: 0;
  top: 0;
}

body.view-geral-active .gov-tq-flag--quote {
  right: 0;
  bottom: 0;
}

body.view-geral-active .gov-tq-sep {
  font-size: var(--inst-fs-micro);
}

/* ── Left OMS — compact / tight ── */
body.view-geral-active #left {
  background: var(--inst-bg);
  border-right: 1px solid var(--inst-border);
}

body.view-geral-active #left-shell {
  font-family: var(--font-bloomberg, var(--inst-mono));
}

body.view-geral-active #oms {
  border-bottom: 1px solid var(--inst-border-dim);
  padding: 7px 8px;
}

body.view-geral-active .oms-hdr {
  margin-bottom: 5px;
}

body.view-geral-active .oms-badge {
  border: 1px solid var(--inst-border);
  border-radius: var(--inst-radius);
  color: var(--inst-cyan);
  font-family: var(--inst-mono);
  font-size: 31.4px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 5px 12px;
}

body.view-geral-active .oms-symbol {
  color: var(--inst-text);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 31.4px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

body.view-geral-active .oms-dir-display {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border-dim);
  border-radius: var(--inst-radius);
  min-width: 118px;
  padding: 6px 11px;
}

body.view-geral-active .oms-dir-arrow {
  font-size: 24.6px;
  font-weight: 500;
}

body.view-geral-active .oms-dir-label {
  font-size: 14.6px;
  letter-spacing: 0.14em;
}
body.view-geral-active #oms .oms-dir-display.dir-buy .oms-dir-arrow,
body.view-geral-active #oms .oms-dir-display.dir-buy .oms-dir-label {
  color: var(--inst-green, var(--green));
}

body.view-geral-active #oms .oms-dir-display.dir-sell .oms-dir-arrow,
body.view-geral-active #oms .oms-dir-display.dir-sell .oms-dir-label {
  color: var(--inst-red, var(--red));
}

body.view-geral-active #oms .oms-dir-display.dir-none .oms-dir-arrow,
body.view-geral-active #oms .oms-dir-display.dir-none .oms-dir-label {
  color: var(--inst-text-dim, var(--text-faint));
}


body.view-geral-active .oms-grid-2 {
  margin-bottom: 3px;
}

body.view-geral-active .oms-cell {
  background: var(--inst-panel);
  padding: 5px 8px;
}

body.view-geral-active .oms-stats-grid .oms-cell,
body.view-geral-active .oms-cockpit-page .oms-stats-grid .oms-cell {
  background: var(--inst-bg);
  border-color: var(--inst-border-dim);
  border-radius: 0;
}

body.view-geral-active .oms-cell-label {
  color: var(--inst-text-dim);
  font-family: var(--inst-mono);
  font-size: 22.4px;
  font-weight: var(--inst-fw-label);
  letter-spacing: var(--inst-ls-label);
  margin-bottom: 3px;
  text-transform: uppercase;
}

body.view-geral-active .oms-cell-val {
  color: var(--inst-text);
  font-family: var(--inst-mono);
  font-size: 31.4px;
  font-weight: var(--inst-fw-data);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

body.view-geral-active .oms-cell--st .oms-cell-label {
  color: var(--inst-cyan);
}

body.view-geral-active .oms-cell--metric .oms-cell-label {
  font-size: 24.6px;
}

body.view-geral-active .oms-cell--metric .oms-cell-val {
  font-size: 40.3px;
  font-weight: 700;
  line-height: 1.15;
}

body.view-geral-active .oms-input {
  background: var(--inst-bg);
  border: 1px solid var(--inst-border-dim);
  border-radius: var(--inst-radius);
  color: var(--inst-cyan);
  font-family: var(--inst-mono);
  font-size: 24.6px;
  font-weight: 500;
  padding: 0 5px;
  text-align: right;
}

body.view-geral-active .oms-input:focus {
  border-color: var(--inst-cyan-muted);
  outline: none;
}

body.view-geral-active .oms-cell--st .oms-input,
body.view-geral-active #oms-sl,
body.view-geral-active #oms-tp {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  min-height: 42px;
  padding: 6px 8px;
  letter-spacing: 0.02em;
}

body.view-geral-active .oms-cell--risk-pct .oms-cell-val,
body.view-geral-active .oms-cell--risk-usd .oms-cell-val,
body.view-geral-active #oms-display-risco,
body.view-geral-active #oms-display-risco-pct,
body.view-geral-active #oms-display-risco-agg,
body.view-geral-active #oms-display-risco-pct-agg {
  font-weight: 700;
  font-synthesis: weight;
}

body.view-geral-active .oms-row {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 26.9px;
  font-weight: 400;
  padding: 6px 0;
}

body.view-geral-active .oms-row-label {
  color: var(--inst-text-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 22.4px;
  letter-spacing: var(--inst-ls-label);
  text-transform: uppercase;
}

body.view-geral-active .oms-row-val {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 26.9px;
  font-weight: 600;
}

body.view-geral-active .oms-row-val.gold,
body.view-geral-active .oms-row-label.gold {
  color: var(--inst-amber);
}

body.view-geral-active .oms-row-val.red,
body.view-geral-active .oms-row-label.red {
  color: var(--inst-red);
}

body.view-geral-active .oms-row-val.ok {
  color: var(--inst-green);
}

body.view-geral-active .oms-row-risco .oms-row-label,
body.view-geral-active .oms-row-risco .oms-row-val {
  color: var(--inst-text);
}

body.view-geral-active .oms-row-val.cyan,
body.view-geral-active .oms-row-label.cyan {
  color: var(--inst-cyan);
}

/* Mostradores principais — Risco $ · Lote/ordem · Saldo total */
#oms .oms-row.oms-row-lg {
  padding: 10px 0;
  min-height: 49px;
  align-items: center;
}

#oms .oms-row.oms-row-lg .oms-row-label {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 24.6px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#oms .oms-row.oms-row-lg .oms-row-val {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 31.4px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

body.view-geral-active #oms .oms-row.oms-row-lg .oms-row-label {
  font-size: 26.9px;
  letter-spacing: var(--inst-ls-label);
}

body.view-geral-active #oms .oms-row.oms-row-lg .oms-row-val {
  font-size: 35.8px;
  font-weight: 700;
}

body.view-geral-active .sec-label {
  color: rgba(106, 168, 184, 0.92);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: var(--inst-ls-label);
  padding: 6px 8px 3px;
  text-shadow: var(--inst-luma-text);
}

body.view-geral-active .sec-label--major {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 7px 8px 4px;
}

body.view-geral-active .sec-label--major .sec-label-val {
  font-size: 19px;
  font-weight: 600;
}

body.view-geral-active .sec-label-val {
  color: var(--inst-cyan);
  text-shadow: 0 0 8px rgba(0, 168, 204, 0.35), 0 0 18px rgba(0, 168, 204, 0.15);
}

body.view-geral-active .btn-grid-5,
body.view-geral-active .btn-grid-6,
body.view-geral-active .grade-grid,
body.view-geral-active .inst-grid,
body.view-geral-active .g-grid,
body.view-geral-active .action-grid,
body.view-geral-active .bottom-grid {
  gap: 1px;
  padding: 0 4px 2px;
}

body.view-geral-active .risk-btn,
body.view-geral-active .grade-btn,
body.view-geral-active .dyn-btn,
body.view-geral-active .action-btn,
body.view-geral-active .bottom-btn {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border-dim);
  border-radius: var(--inst-radius);
  color: var(--inst-text-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 19.6px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 9px 0;
  box-shadow: none;
  text-shadow: none;
}

body.view-geral-active .action-btn {
  font-size: 19.6px;
  padding: 18px 0;
}

body.view-geral-active .bottom-btn {
  font-size: 19.6px;
  line-height: 1.35;
  padding: 13px 0;
}

body.view-geral-active .dyn-btn {
  font-size: 16.8px;
  padding: 10px 0;
}

body.view-geral-active .grade-btn {
  font-size: 18.8px;
  padding: 9px 0;
}

body.view-geral-active .risk-btn {
  font-size: 19.6px;
  padding: 8px 0;
}

body.view-geral-active .risk-btn:hover,
body.view-geral-active .grade-btn:hover,
body.view-geral-active .dyn-btn:hover,
body.view-geral-active .action-btn:hover,
body.view-geral-active .bottom-btn:hover {
  background: var(--inst-cyan);
  border-color: var(--inst-cyan);
  box-shadow: none;
  color: #000;
  font-weight: 700;
  transform: none;
  text-shadow: none;
}

body.view-geral-active .risk-btn.active,
body.view-geral-active .grade-btn.active,
body.view-geral-active .dyn-btn.active,
body.view-geral-active .action-btn.active,
body.view-geral-active .bottom-btn.active {
  background: var(--inst-cyan);
  border-color: var(--inst-cyan);
  color: #000;
  font-weight: 700;
  box-shadow: none;
  text-shadow: none;
}

body.view-geral-active .action-btn.tp-armed {
  border-color: var(--inst-cyan);
  color: var(--inst-cyan);
  background: var(--inst-surface);
  text-shadow: none;
}

body.view-geral-active .dyn-bar {
  gap: 4px;
  padding: 2px 4px 3px;
}

body.view-geral-active #governanca {
  padding: 0;
  font-family: var(--inst-mono);
}

body.view-geral-active #governanca.gov-tv-active #gov-panel-default {
  display: none;
}

body.view-geral-active #gov-tv-host {
  width: 100%;
}

body.view-geral-active #gov-tv-host .ih-tv-block--gov {
  border: none;
  border-top: 1px solid var(--inst-border-dim);
  background: #000;
}

body.view-geral-active #gov-tv-host .ih-module-bar {
  padding: 8px 10px;
  background: var(--inst-panel);
  border-bottom: 1px solid var(--inst-border-dim);
}

body.view-geral-active #gov-tv-host .ih-module-title {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--inst-cyan);
}

body.view-geral-active #gov-tv-host .ih-tv-aspect {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  padding-top: 0;
}

body.view-geral-active #gov-tv-host .ih-tv-video {
  object-fit: contain;
}

body.view-geral-active #gov-tv-host .ih-tv-chans {
  padding: 6px 8px;
  background: var(--inst-bg);
}

body.view-geral-active #gov-tv-host .ih-tv-expand-chart,
body.view-geral-active #gov-tv-chart-slot .ih-tv-expand-chart {
  flex-shrink: 0;
  font-family: var(--inst-mono);
  font-size: 12px;
  line-height: 1;
  min-width: 26px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--inst-border-dim);
  color: var(--inst-dim);
  cursor: pointer;
}

body.view-geral-active #gov-tv-host .ih-tv-expand-chart:hover,
body.view-geral-active #gov-tv-chart-slot .ih-tv-expand-chart:hover,
body.view-geral-active #gov-tv-host .ih-tv-expand-chart.active,
body.view-geral-active #gov-tv-chart-slot .ih-tv-expand-chart.active {
  color: var(--inst-cyan);
  border-color: rgba(0, 168, 204, 0.45);
}

body.view-geral-active #gov-tv-host .ih-module-bar,
body.view-geral-active #gov-tv-chart-slot .ih-module-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.view-geral-active #gov-tv-host .ih-module-title,
body.view-geral-active #gov-tv-chart-slot .ih-module-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
}

body.view-geral-active #gov-tv-host .ih-tv-mute,
body.view-geral-active #gov-tv-chart-slot .ih-tv-mute,
body.view-geral-active #gov-tv-host .ih-tv-wl-switch,
body.view-geral-active #gov-tv-host .ih-tv-expand-chat,
body.view-geral-active #gov-tv-host .ih-tv-popout,
body.view-geral-active #gov-tv-chart-slot .ih-tv-popout {
  flex-shrink: 0;
  appearance: none;
  font-family: var(--inst-mono);
  font-size: 16px;
  line-height: 1;
  min-width: 32px;
  min-height: 28px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--inst-border-dim);
  border-radius: 2px;
  color: var(--inst-cyan);
  cursor: pointer;
}

body.view-geral-active #gov-tv-host .ih-tv-mute:hover,
body.view-geral-active #gov-tv-chart-slot .ih-tv-mute:hover,
body.view-geral-active #gov-tv-host .ih-tv-mute.unmuted,
body.view-geral-active #gov-tv-chart-slot .ih-tv-mute.unmuted {
  border-color: rgba(0, 168, 204, 0.45);
  background: rgba(0, 168, 204, 0.08);
  color: var(--inst-cyan);
}

body.view-geral-active #gov-tv-host .ih-tv-btn,
body.view-geral-active #gov-tv-chart-slot .ih-tv-btn {
  font-size: 12px;
  padding: 6px 8px;
}

body.view-geral-active .gov-tv-sidebar-ph {
  display: none;
  padding: 10px 8px;
  font-family: var(--inst-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: var(--inst-dim);
  background: rgba(0, 168, 204, 0.06);
  border: 1px solid var(--inst-border-dim);
  text-align: center;
  cursor: pointer;
}

body.view-geral-active .gov-tv-sidebar-ph:not(.ih-hidden) {
  display: block;
}

body.view-geral-active .gov-tv-sidebar-ph:hover {
  color: var(--inst-cyan);
  background: rgba(0, 168, 204, 0.1);
}

.gov-tv-chart-slot {
  display: none;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  background: #000;
}

body.view-geral-active.gov-tv-chart-expanded #gov-tv-chart-slot {
  display: flex !important;
}

body.view-geral-active.gov-tv-chart-expanded #chart-host {
  display: none !important;
}

body.view-geral-active.gov-tv-chart-expanded #gov-tv-chart-slot .ih-tv-block--gov {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: none;
  background: #000;
}

body.view-geral-active.gov-tv-chart-expanded #gov-tv-chart-slot .ih-module-bar {
  padding: 8px 12px;
  background: var(--inst-panel);
  border-bottom: 1px solid var(--inst-border-dim);
}

body.view-geral-active.gov-tv-chart-expanded #gov-tv-chart-slot .ih-tv-aspect {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  aspect-ratio: unset;
  height: auto;
  min-height: 0;
  padding-top: 0;
}

body.view-geral-active.gov-tv-chart-expanded #gov-tv-chart-slot .ih-tv-video {
  object-fit: contain;
}

body.view-geral-active.gov-tv-chart-expanded #gov-tv-chart-slot .ih-tv-chans {
  flex-shrink: 0;
  padding: 6px 10px;
  background: var(--inst-bg);
}

/* Macro TV · watchlist lateral (Alt+X) — 2× display */
body.view-geral-active.gov-tv-wl-mode #app {
  grid-template-columns: var(--left-w) minmax(0, 1fr) calc(var(--right-w) * 2);
}

body.view-geral-active.gov-tv-wl-mode #right {
  width: calc(var(--right-w) * 2);
  min-width: calc(var(--right-w) * 2);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

body.view-geral-active.gov-tv-wl-mode #right::-webkit-scrollbar { width: 6px; }
body.view-geral-active.gov-tv-wl-mode #right::-webkit-scrollbar-track { background: var(--inst-bg); }
body.view-geral-active.gov-tv-wl-mode #right::-webkit-scrollbar-thumb { background: var(--inst-border); border-radius: 2px; }
body.view-geral-active.gov-tv-wl-mode #right::-webkit-scrollbar-thumb:hover { background: var(--inst-cyan-muted); }

body.view-geral-active.gov-tv-wl-mode #wl-panel-default {
  display: none !important;
}

body.view-geral-active.gov-tv-wl-mode #wl-tv-slot {
  display: flex !important;
  box-sizing: border-box;
  max-width: 100%;
  overflow: visible;
  flex: 0 0 auto;
}

body.view-geral-active.gov-tv-wl-mode #wl-tv-slot .ih-tv-block--gov {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
  border: none;
  background: #000;
  overflow: hidden;
}

body.view-geral-active.gov-tv-wl-mode #wl-tv-slot .ih-module-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 10px;
  background: var(--inst-panel);
  border-bottom: 1px solid var(--inst-border-dim);
}

body.view-geral-active.gov-tv-wl-mode #wl-tv-slot .ih-module-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--inst-cyan);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.view-geral-active.gov-tv-wl-mode #wl-tv-slot .ih-tv-aspect {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  min-width: 0;
  padding-top: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

body.view-geral-active.gov-tv-wl-mode #wl-tv-slot .ih-tv-video {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

body.view-geral-active.gov-tv-wl-mode #wl-tv-slot .ih-tv-chans {
  flex-shrink: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  gap: 6px;
  background: var(--inst-bg);
}

body.view-geral-active.gov-tv-wl-mode #wl-tv-slot .ih-tv-btn {
  min-width: 0;
  flex: 1 1 0;
  padding: 6px 4px;
  font-size: 10px;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.view-geral-active.gov-tv-wl-mode #wl-tv-slot .ih-tv-wl-switch,
body.view-geral-active.geral-split-tv #geral-main-tv-slot .ih-tv-wl-switch {
  flex-shrink: 0;
  font-family: var(--inst-mono);
  font-size: 13px;
  line-height: 1;
  min-width: 26px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--inst-border-dim);
  border-radius: 2px;
  color: var(--inst-cyan);
  cursor: pointer;
}

body.view-geral-active.gov-tv-wl-mode #wl-tv-slot .ih-tv-wl-switch:hover,
body.view-geral-active.geral-split-tv #geral-main-tv-slot .ih-tv-wl-switch:hover {
  border-color: rgba(0, 168, 204, 0.45);
  background: rgba(0, 168, 204, 0.08);
}

body.view-geral-active.gov-tv-wl-mode #wl-tv-slot .ih-tv-mute,
body.view-geral-active.geral-split-tv #geral-main-tv-slot .ih-tv-mute,
body.view-geral-active.gov-tv-wl-mode #wl-tv-slot .ih-tv-popout,
body.view-geral-active.geral-split-tv #geral-main-tv-slot .ih-tv-popout,
body.view-geral-active.gov-tv-wl-mode #wl-tv-slot #ih-gov-tv-popout,
body.view-geral-active.geral-split-tv #geral-main-tv-slot #ih-gov-tv-popout {
  flex-shrink: 0;
  appearance: none;
  font-family: var(--inst-mono);
  font-size: 12px;
  line-height: 1;
  min-width: 26px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--inst-border-dim);
  border-radius: 2px;
  color: var(--inst-cyan);
  cursor: pointer;
  pointer-events: auto;
  z-index: 2;
}

body.view-geral-active.gov-tv-wl-mode #wl-tv-slot .ih-tv-mute:hover,
body.view-geral-active.geral-split-tv #geral-main-tv-slot .ih-tv-mute:hover,
body.view-geral-active.gov-tv-wl-mode #wl-tv-slot .ih-tv-popout:hover,
body.view-geral-active.geral-split-tv #geral-main-tv-slot .ih-tv-popout:hover,
body.view-geral-active.gov-tv-wl-mode #wl-tv-slot #ih-gov-tv-popout:hover,
body.view-geral-active.geral-split-tv #geral-main-tv-slot #ih-gov-tv-popout:hover {
  border-color: rgba(0, 168, 204, 0.45);
  background: rgba(0, 168, 204, 0.08);
}

body.view-geral-active.gov-tv-wl-mode #wl-tv-slot .ih-tv-popout.active,
body.view-geral-active.geral-split-tv #geral-main-tv-slot .ih-tv-popout.active,
body.view-geral-active.gov-tv-popout-active #ih-gov-tv-popout {
  color: var(--inst-cyan-bright, #33bdd6);
  border-color: rgba(0, 168, 204, 0.65);
  background: rgba(0, 168, 204, 0.14);
}

body.view-geral-active #gov-tv-host .ih-tv-expand-wl,
body.view-geral-active #wl-tv-slot .ih-tv-expand-wl,
body.view-geral-active #gov-tv-chart-slot .ih-tv-expand-wl {
  flex-shrink: 0;
  font-family: var(--inst-mono);
  font-size: 12px;
  line-height: 1;
  min-width: 26px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--inst-border-dim);
  color: var(--inst-dim);
  cursor: pointer;
}

body.view-geral-active #gov-tv-host .ih-tv-expand-wl:hover,
body.view-geral-active #wl-tv-slot .ih-tv-expand-wl:hover,
body.view-geral-active #gov-tv-chart-slot .ih-tv-expand-wl:hover,
body.view-geral-active #gov-tv-host .ih-tv-expand-wl.active,
body.view-geral-active #wl-tv-slot .ih-tv-expand-wl.active,
body.view-geral-active #gov-tv-chart-slot .ih-tv-expand-wl.active {
  color: var(--inst-cyan);
  border-color: rgba(0, 168, 204, 0.45);
}

body.view-geral-active .wl-tv-toggle {
  font-family: var(--inst-mono);
  font-size: 14px;
  line-height: 1;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--inst-border-dim);
  border-radius: var(--inst-radius, 3px);
  color: var(--inst-dim);
  cursor: pointer;
}

body.view-geral-active .wl-tv-toggle:hover,
body.view-geral-active .wl-tv-toggle.active {
  color: var(--inst-cyan);
  border-color: rgba(0, 168, 204, 0.45);
}

.gov-tv-popout-ph {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 12px;
  text-align: center;
  color: var(--inst-cyan, #00a8cc);
  font-family: var(--inst-mono, var(--font-bloomberg));
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  border: 1px dashed rgba(0, 168, 204, 0.35);
  background: rgba(0, 0, 0, 0.65);
  box-sizing: border-box;
}

body.view-geral-active .gov-title {
  color: var(--inst-amber-hot);
  font-family: var(--inst-mono);
  font-size: 17.8px;
  font-weight: var(--inst-fw-label);
  letter-spacing: var(--inst-ls-label);
}

body.view-geral-active .gov-hdr {
  margin-bottom: 14px;
}

body.view-geral-active .gov-row {
  font-family: var(--inst-mono);
  font-weight: var(--inst-fw-data);
  padding: 10px 0;
  min-height: 42px;
  line-height: 1.44;
  align-items: center;
}

body.view-geral-active .gov-row-lbl {
  color: var(--inst-text-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-weight: var(--inst-fw-label);
  letter-spacing: 0.02em;
  font-size: 27px;
}

body.view-geral-active .gov-row-val {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-weight: var(--inst-fw-data);
  letter-spacing: 0.02em;
  font-size: 27px;
}

body.view-geral-active .gov-row-val.ok {
  color: var(--inst-green);
}

body.view-geral-active .gov-row-val.gold {
  color: var(--inst-amber);
}

body.view-geral-active .gov-row-val.red {
  color: var(--inst-red);
}

body.view-geral-active .gov-row-val.cyan {
  color: var(--inst-cyan);
}

body.view-geral-active .gov-status-grid {
  gap: 6px;
  margin-top: 13px;
}

body.view-geral-active .gov-status-btn {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 17.4px;
  font-weight: var(--inst-fw-label);
  letter-spacing: 0.04em;
  padding: 12px 7px;
  min-height: 38px;
}

/* ── Watchlist ── */
body.view-geral-active #right {
  background: var(--inst-bg);
  border-left: 1px solid var(--inst-border);
}

body.view-geral-active .wl-header {
  border-bottom: 1px solid var(--inst-border-dim);
  padding: 4px 6px;
}

body.view-geral-active .wl-title {
  color: var(--inst-cyan);
  font-family: var(--inst-mono);
  font-size: 18.9px;
  font-weight: 600;
  letter-spacing: var(--inst-ls-label);
  text-transform: uppercase;
}

body.view-geral-active .wl-search {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border-dim);
  border-radius: var(--inst-radius);
  color: var(--inst-text);
  font-family: var(--inst-mono);
  font-size: 17.3px;
  font-weight: 400;
  padding: 3px 6px;
}

body.view-geral-active .wl-search:focus {
  border-color: var(--inst-cyan-muted);
  outline: none;
}

body.view-geral-active .wl-session {
  color: var(--inst-text-dim);
  font-size: 17.3px;
  font-weight: 500;
  letter-spacing: var(--inst-ls-label);
  padding: 2px 6px;
}

body.view-geral-active .wl-session.wl-session-open {
  color: var(--inst-text);
}

body.view-geral-active .wl-cols {
  padding: 1px 6px 10px;
}

body.view-geral-active .wl-col-lbl {
  color: var(--inst-text-faint);
  font-size: 17.3px;
  font-weight: 500;
  letter-spacing: var(--inst-ls-label);
}

body.view-geral-active .wl-section {
  color: var(--inst-text-dim);
  font-size: 17.3px;
  font-weight: 500;
  letter-spacing: var(--inst-ls-label);
  padding: 10px 6px 2px;
  margin-top: 22px;
  margin-bottom: 10px;
}

body.view-geral-active .wl-section-active {
  background: rgba(0, 168, 204, 0.05);
  border-bottom: 1px solid var(--inst-border-dim);
  color: var(--inst-cyan);
  margin-top: 22px;
  margin-bottom: 10px;
}

body.view-geral-active .wl-row {
  align-items: center;
  border-bottom: 1px solid var(--inst-border-dim);
  padding: 2px 6px;
}

body.view-geral-active .wl-row:hover {
  background: var(--inst-surface);
}

body.view-geral-active .wl-row.active {
  background: rgba(0, 168, 204, 0.06);
  border-left: 1px solid var(--inst-cyan);
}

body.view-geral-active .wl-row.wl-sess-active .wl-name {
  color: var(--inst-cyan);
}

body.view-geral-active .wl-row.wl-sess-idle:not(.active) .wl-name,
body.view-geral-active .wl-row.wl-sess-idle:not(.active) .wl-price {
  color: var(--inst-text);
  opacity: 1;
}

body.view-geral-active .wl-row.wl-sess-idle:not(.active) .wl-pct.up {
  color: var(--inst-green);
  opacity: 1;
}

body.view-geral-active .wl-row.wl-sess-idle:not(.active) .wl-pct.dn {
  color: var(--inst-red);
  opacity: 1;
}

body.view-geral-active .wl-flag {
  box-shadow: 0 0 0 1px rgba(0, 168, 204, 0.12);
}

body.view-geral-active .wl-name {
  color: var(--inst-text);
  font-family: var(--inst-mono);
  font-size: 18.9px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

body.view-geral-active .wl-price {
  color: var(--inst-text-dim);
  font-family: var(--inst-mono);
  font-size: 18.9px;
  font-weight: 500;
  text-align: right;
}

body.view-geral-active .wl-pct {
  font-family: var(--inst-mono);
  font-size: 17.3px;
  font-weight: 500;
  min-width: 52px;
  text-align: right;
}

body.view-geral-active .wl-pct.up {
  color: var(--inst-green);
}

body.view-geral-active .wl-pct.dn {
  color: var(--inst-red);
}

/* ── Chart area ── */
body.view-geral-active #center {
  background: var(--inst-bg);
}

body.view-geral-active #view-geral {
  background: var(--inst-bg);
}

body.view-geral-active #tf-bar {
  background: var(--inst-panel);
  border-bottom: 1px solid var(--inst-border-dim);
  gap: 3px;
  min-height: 46px;
  height: auto;
  padding: 12px 12px 9px;
  justify-content: center;
}

body.view-geral-active #gcp-data-status .gcp-pill {
  font-family: var(--inst-mono);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  padding: 0;
  border: none;
  background: none;
  color: var(--inst-cyan);
}

body.view-geral-active #gcp-data-status .gcp-brand {
  font-family: var(--inst-mono);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: var(--inst-ls-label);
  color: var(--inst-text-dim);
}

body.view-geral-active #gcp-data-status .gcp-pill-dot {
  width: 6px;
  height: 6px;
}

body.view-geral-active .tf-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--inst-radius);
  color: var(--inst-text-dim);
  font-family: var(--inst-mono);
  font-size: 17.71px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 3px 9px;
}

body.view-geral-active .tf-btn:hover {
  border-color: var(--inst-border-dim);
  color: var(--inst-text);
}

body.view-geral-active .tf-btn.active {
  background: var(--inst-cyan);
  border-color: var(--inst-cyan);
  color: #000;
  font-weight: 700;
}

body.view-geral-active .tf-sep {
  background: var(--inst-border-dim);
  height: 16px;
  margin: 0 3px;
}

body.view-geral-active .tool-btn {
  border-radius: var(--inst-radius);
  color: var(--inst-text-dim);
  font-family: var(--inst-mono);
  font-size: 16.22px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 3px 8px;
}

body.view-geral-active .tool-btn:hover {
  border-color: var(--inst-border-dim);
  color: var(--inst-text);
}

body.view-geral-active .tf-bar-spacer {
  flex: 1 1 auto;
  min-width: 12px;
}

body.view-geral-active .tf-fs-btn {
  letter-spacing: 0.08em;
  white-space: nowrap;
}

body.view-geral-active .tool-btn.active {
  background: var(--inst-cyan);
  border-color: var(--inst-cyan);
  color: #000;
  font-weight: 700;
}

body.view-geral-active #chart-host {
  background: #000000;
  position: relative;
}

/* Volume pane label (Overview) — direita, fora do Cortex Desk */
.gct-chart-volume-lbl {
  position: absolute;
  left: auto;
  right: 56px;
  top: auto;
  bottom: 22px;
  z-index: 5;
  pointer-events: none;
  font-family: var(--inst-mono, var(--font-bloomberg), Consolas, monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(230, 230, 230, 0.95);
  user-select: none;
  padding: 5px 8px 4px;
  border: 1px solid rgba(220, 220, 220, 0.55);
  background: rgba(0, 0, 0, 0.72);
  min-width: 168px;
  line-height: 1.35;
  text-align: left;
}

.gct-vol-row {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.gct-vol-row + .gct-vol-row {
  margin-top: 2px;
}

.gct-vol-swatch {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.gct-vol-swatch--hist {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.gct-vol-swatch--ma {
  background: #00E676;
  border: 1px solid #00E676;
}

.gct-vol-row--ma .gct-vol-txt {
  color: #00E676;
}

/* Separador sólido preço / volume (Bloomberg) — posição via JS */
.gct-chart-volume-sep {
  position: absolute;
  left: 0;
  right: 48px;
  height: 8px;
  background: #c8c8c8;
  border: none;
  border-top: none;
  border-bottom: none;
  border-radius: 0;
  box-sizing: border-box;
  box-shadow: none;
  background-image: none;
  outline: none;
  pointer-events: none;
  z-index: 6;
  display: none;
}

/* fallback se JS não posicionar */
#chart-host.gct-has-volume::after {
  content: none;
}

body.view-geral-active #chart-tf-display {
  top: 11px;
  padding: 5px 16px;
  border-color: rgba(255, 255, 255, 0.5);
  border-radius: var(--inst-radius, 4px);
}

body.view-geral-active #chart-tf-display .chart-tf-val {
  font-family: var(--inst-mono, var(--font-bloomberg));
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
}

body.view-geral-active #ls-hud {
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid var(--inst-border);
  border-radius: var(--inst-radius);
  color: var(--inst-text);
  font-family: var(--inst-mono);
  font-size: 15.4px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 5px 12px;
}

body.view-geral-active #ls-hud.ls-buy {
  border-color: rgba(116, 222, 198, 0.4);
  color: var(--inst-green);
}

body.view-geral-active #ls-hud.ls-sell {
  border-color: rgba(224, 134, 134, 0.4);
  color: var(--inst-red);
}

body.view-geral-active #tp-exec-btn {
  background: var(--inst-cyan);
  border: 1px solid var(--inst-cyan);
  border-radius: var(--inst-radius);
  color: #000;
  font-family: var(--inst-mono);
  font-size: 14.1px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 14px;
}

body.view-geral-active #tp-exec-btn:hover {
  background: var(--inst-cyan);
  border-color: var(--inst-cyan);
  box-shadow: 0 0 14px rgba(0, 168, 204, 0.35);
  color: #000;
  font-weight: 700;
}

body.view-geral-active #tp-exec-btn.tp-ready-pulse {
  background: var(--inst-cyan);
  border-color: var(--inst-cyan);
  color: #000;
}

body.view-geral-active #chart-host:has(#imperium-desk.visible) {
  overflow: visible;
}

body.view-geral-active #imperium-desk,
body.view-geral-active #imperium-desk.monitor-desk-embedded {
  left: 0;
  bottom: 0;
  width: 388px;
  zoom: calc(1 / 1.5);
  height: auto;
  max-height: none;
  overflow: visible;
  background: var(--bg1);
  border: 1px solid var(--inst-border);
  border-left: none;
  border-bottom: none;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--inst-mono);
  font-weight: var(--inst-fw-data);
}

body.view-geral-active #imperium-desk.visible,
body.view-geral-active #imperium-desk.monitor-desk-embedded.visible {
  display: flex;
  flex-direction: column;
}

body.view-geral-active #imperium-desk,
body.view-geral-active #imperium-desk.monitor-desk-embedded,
body.view-geral-active #imperium-desk * {
  font-family: var(--inst-mono) !important;
}

body.view-geral-active .imd-topbar {
  border-bottom: 1px solid var(--inst-border-dim);
  color: var(--inst-cyan);
  font-family: var(--inst-mono);
  font-size: var(--inst-fs-micro);
  font-weight: 500;
  letter-spacing: var(--inst-ls-label);
  padding: 6px 10px;
}

body.view-geral-active .imd-symbol {
  padding: 8px 12px;
  border-bottom: 1px solid var(--inst-border-dim);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

body.view-geral-active .imd-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 12px;
  gap: 4px;
}

body.view-geral-active .imd-row-label {
  color: var(--inst-text-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: var(--inst-fs-micro);
  letter-spacing: var(--inst-ls-label);
  text-transform: uppercase;
  line-height: 1.2;
}

body.view-geral-active .imd-row-values {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  line-height: 1.25;
}

body.view-geral-active .imd-row-pct {
  color: var(--inst-cyan);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 18.3px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

body.view-geral-active .imd-row-pct.red {
  color: var(--inst-red, #E77A7A);
}

body.view-geral-active .imd-row-usd {
  color: var(--inst-green, #67E6C9);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 18.3px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

body.view-geral-active .imd-symbol-name {
  color: var(--inst-text);
  font-family: var(--inst-mono);
  font-size: 18.3px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

body.view-geral-active .imd-row-usd.red {
  color: var(--inst-red, #E77A7A);
}

body.view-geral-active .imd-row-val1,
body.view-geral-active .imd-row-val2 {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 18.3px;
  font-weight: 600;
  line-height: 1.25;
}

body.view-geral-active .imd-row-val1.amber {
  color: var(--inst-amber-hot);
}

body.view-geral-active .imd-row-val1.cyan,
body.view-geral-active #imd-saldo {
  color: var(--inst-cyan, var(--cyan));
}

body.view-geral-active .imd-close-btns {
  gap: 4px;
  padding: 6px 10px 8px;
}

body.view-geral-active .imd-close-btn {
  border-radius: var(--inst-radius);
  font-family: var(--inst-mono);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 7px 0;
}

body.view-geral-active .imd-g-stats {
  padding: 6px 0 8px;
  --imd-g-fs-tag: 18px;
  --imd-g-fs-ord: 18px;
  --imd-g-fs-risk: 17px;
  --imd-g-fs-pl: 17px;
}

body.view-geral-active .imd-g-stats-hd {
  color: var(--inst-text-dim);
  font-family: var(--inst-mono);
  font-size: 16px;
  letter-spacing: var(--inst-ls-label);
  padding: 6px 12px;
}

body.view-geral-active .imd-g-stat {
  border-top-color: var(--inst-border-dim);
  grid-template-columns: 48px minmax(0, 1fr) minmax(88px, auto);
  gap: 6px 8px;
  padding: 9px 12px;
  min-height: 44px;
}

body.view-geral-active .imd-g-stat-mid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}

body.view-geral-active .imd-g-stat-ord {
  color: var(--inst-text-dim);
  font-family: var(--inst-mono);
  font-size: var(--imd-g-fs-ord, 18px);
  line-height: 1.25;
}

body.view-geral-active .imd-g-stat-risk {
  color: var(--inst-cyan);
  font-family: var(--inst-mono);
  font-size: var(--imd-g-fs-risk, 17px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

body.view-geral-active .imd-g-stat-plcol {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 3px;
  min-width: 112px;
}

body.view-geral-active .imd-g-stat-plpct {
  color: var(--inst-green);
  font-family: var(--inst-mono);
  font-size: var(--imd-g-fs-pl, 17px);
  font-weight: 600;
  line-height: 1.25;
  opacity: 0.92;
}

body.view-geral-active .imd-g-stat-plpct.red {
  color: var(--inst-red);
}

body.view-geral-active .imd-g-stat-pl {
  color: var(--inst-green);
  font-family: var(--inst-mono);
  font-size: var(--imd-g-fs-ord, 18px);
  font-weight: 600;
  line-height: 1.25;
}

body.view-geral-active .imd-g-stat-pl.red {
  color: var(--inst-red);
}

body.view-geral-active .imd-symbol-sub {
  color: var(--inst-text-dim);
  font-family: var(--inst-mono);
  font-size: var(--inst-fs-micro);
  font-weight: var(--inst-fw-label);
  letter-spacing: var(--inst-ls-label);
  text-transform: uppercase;
}

body.view-geral-active .imd-row-inline {
  color: var(--inst-text);
  font-family: var(--inst-mono);
  font-size: var(--inst-fs-label);
  font-weight: var(--inst-fw-data);
  line-height: 1.25;
}

body.view-geral-active .imd-row-val1.green,
body.view-geral-active .imd-row-val1:not(.red):not(.amber):not(.cyan) {
  color: var(--inst-green);
}

body.view-geral-active .imd-row-val2:not(.red) {
  color: var(--inst-green);
}

body.view-geral-active .imd-row-val1.red,
body.view-geral-active .imd-row-val2.red {
  color: var(--inst-red);
}

body.view-geral-active .imd-close-pos {
  background: var(--imd-close-pos-bg);
  border-color: var(--imd-close-pos-bd);
  color: #fff;
}

body.view-geral-active .imd-close-neg {
  background: var(--imd-close-neg-bg);
  border-color: var(--imd-close-neg-bd);
  color: #fff;
}

body.view-geral-active .imd-g-stat-tag {
  font-family: var(--inst-mono);
  font-size: var(--imd-g-fs-tag, 18px);
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--inst-radius);
}

body.view-geral-active .imd-g-stat-tag.G1 { color: var(--imd-g1-fg); border-color: var(--imd-g1-bd); background: var(--imd-g1-bg); }
body.view-geral-active .imd-g-stat-tag.G2 { color: var(--imd-g2-fg); border-color: var(--imd-g2-bd); background: var(--imd-g2-bg); }
body.view-geral-active .imd-g-stat-tag.G3 { color: var(--imd-g3-fg); border-color: var(--imd-g3-bd); background: var(--imd-g3-bg); }
body.view-geral-active .imd-g-stat-tag.G4 { color: var(--imd-g4-fg); border-color: var(--imd-g4-bd); background: var(--imd-g4-bg); }
body.view-geral-active .imd-g-stat-tag.G5 { color: var(--imd-g5-fg); border-color: var(--imd-g5-bd); background: var(--imd-g5-bg); }
body.view-geral-active .imd-g-stat-tag.G6 { color: var(--imd-g6-fg); border-color: var(--imd-g6-bd); background: var(--imd-g6-bg); }
body.view-geral-active .imd-g-stat-tag.G7 { color: var(--imd-g7-fg); border-color: var(--imd-g7-bd); background: var(--imd-g7-bg); }
body.view-geral-active .imd-g-stat-tag.G8 { color: var(--imd-g8-fg); border-color: var(--imd-g8-bd); background: var(--imd-g8-bg); }
body.view-geral-active .imd-g-stat-tag.G9 { color: var(--imd-g9-fg); border-color: var(--imd-g9-bd); background: var(--imd-g9-bg); }
body.view-geral-active .imd-g-stat-tag.G10 { color: var(--imd-g10-fg); border-color: var(--imd-g10-bd); background: var(--imd-g10-bg); }

body.view-geral-active .imd-g-stat:not(.imd-g-stat--empty) {
  cursor: pointer;
}

body.view-geral-active .imd-g-stat:not(.imd-g-stat--empty):hover {
  background: rgba(255, 255, 255, 0.03);
}

body.view-geral-active .imd-g-stat.selected {
  box-shadow: inset 0 0 0 1px rgba(0, 168, 204, 0.45);
  background: rgba(0, 168, 204, 0.06);
}

body.view-geral-active .imd-g-stat.armed {
  filter: brightness(1.12);
  background: rgba(255, 255, 255, 0.06);
}

body.view-geral-active .imd-foot {
  border-top-color: var(--inst-border-dim);
  background: rgba(5, 7, 10, 0.98);
}

/* ── Bottom bar ── */
body.view-geral-active #footer-stack #bottombar {
  background: var(--inst-panel);
  border-top-color: var(--inst-border-dim);
  gap: 16px;
  padding: 0 22px;
}

body.view-geral-active .bb-left-cluster {
  gap: 24px;
}

body.view-geral-active .bb-right-cluster {
  border-left-color: var(--inst-border-dim);
  gap: 20px;
  padding-left: 20px;
}

body.view-geral-active .bb-item {
  gap: 10px;
}

body.view-geral-active .bb-label {
  color: var(--inst-text-dim);
  font-family: var(--inst-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.07em;
}

body.view-geral-active .bb-val {
  color: var(--inst-text);
  font-family: var(--inst-mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

body.view-geral-active .bb-val.ok {
  color: var(--inst-green);
}

body.view-geral-active .bb-val.neg {
  color: var(--inst-red);
}

body.view-geral-active .bb-val.gold {
  color: var(--inst-amber);
}

body.view-geral-active .bb-val.cyan,
body.view-geral-active #bb-initial {
  color: var(--inst-cyan, var(--cyan));
}

body.view-geral-active .bb-item.bb-fps .bb-val,
body.view-geral-active .bb-item.bb-latency .bb-val {
  color: var(--inst-cyan);
  font-size: 17px;
}

body.view-geral-active .bb-item.bb-wr .bb-label {
  text-transform: none;
  letter-spacing: 0.04em;
}

body.view-geral-active .bb-item.bb-wr .bb-val,
body.view-geral-active .bb-item.bb-wr .bb-val.gold,
body.view-geral-active .bb-item.bb-wr .bb-val.ok,
body.view-geral-active .bb-item.bb-wr .bb-val.neg {
  color: var(--inst-amber, var(--amber));
}

body.view-geral-active .bb-item.bb-withdrawn .bb-label {
  text-transform: none;
  letter-spacing: 0.04em;
}

body.view-geral-active .bb-item.bb-withdrawn .bb-val,
body.view-geral-active .bb-item.bb-withdrawn .bb-val.ok,
body.view-geral-active #bb-withdrawn {
  color: var(--inst-green, #67E6C9) !important;
}

/* ── Scrollbars ── */
body.view-geral-active ::-webkit-scrollbar {
  height: 3px;
  width: 3px;
}

body.view-geral-active ::-webkit-scrollbar-thumb {
  background: var(--inst-border-dim);
  border-radius: 0;
}

body.view-geral-active ::-webkit-scrollbar-thumb:hover {
  background: var(--inst-cyan-muted);
}

/* ── Desks multi-chart — toolbar / grid (mesmo #tf-bar Geral) ── */
body.view-geral-active .imperium-desk-view {
  background: var(--inst-bg);
}

body.view-geral-active .term-alerts-view {
  background: var(--inst-bg);
}

body.view-geral-active .term-alerts-host {
  background: var(--inst-bg);
}

body.view-geral-active .imperium-desk-view .desk-toolbar {
  align-items: center;
  background: var(--inst-panel);
  border-bottom: 1px solid var(--inst-border-dim);
  gap: 8px;
  justify-content: flex-start;
  min-height: 48px;
  padding: 14px 10px 10px 4px;
}

body.view-geral-active .imperium-desk-view .desk-win-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--inst-radius);
  color: var(--inst-text-dim);
  font-family: var(--inst-mono);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 12px;
}

body.view-geral-active .imperium-desk-view > .desk-toolbar.al-tf-bar .desk-win-group {
  margin-left: auto;
}

body.view-geral-active .imperium-desk-view .desk-win-btn:hover {
  border-color: var(--inst-border-dim);
  color: var(--inst-text);
}

body.view-geral-active .imperium-desk-view .desk-win-btn.active {
  background: var(--inst-cyan);
  border-color: var(--inst-cyan);
  color: #000;
  font-weight: 700;
}

body.view-geral-active .imperium-desk-view .desk-popout-btn {
  margin-left: auto;
  text-transform: uppercase;
}

body.view-geral-active .imperium-desk-view .desk-popout-btn.active {
  background: rgba(0, 168, 204, 0.12);
  border-color: var(--inst-cyan-muted);
  color: var(--inst-cyan);
  font-weight: 700;
}

body.view-geral-active .imperium-desk-view .desk-grid {
  background: var(--inst-border-dim);
  gap: 1px;
}

body.view-geral-active .imperium-desk-view .mt-cell {
  background: var(--inst-bg);
}

body.view-geral-active .imperium-desk-view .mt-cell-hdr {
  background: var(--inst-panel);
  border-bottom: 1px solid var(--inst-border-dim);
}

body.view-geral-active .imperium-desk-view .mt-cell-sym {
  color: var(--inst-cyan);
  font-weight: 600;
}

body.view-geral-active .imperium-desk-view .mt-cell-tf,
body.view-geral-active .imperium-desk-view .mt-cell-price {
  color: var(--inst-text-dim);
}

/* ── Aba REPORT — Desempenho (mesmo padrão institucional) ── */
body.view-geral-active #view-report {
  background: var(--inst-bg);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-lazy {
  --imp-bg-page: var(--inst-bg);
  --imp-bg-card: var(--inst-panel);
  --imp-bg-chart: var(--inst-bg);
  --imp-bg-hover: var(--inst-surface);
  --imp-border-card: var(--inst-border-dim);
  --imp-border-tab: var(--inst-border-dim);
  --imp-border-table: var(--inst-border-dim);
  --imp-text-label: var(--inst-text-dim);
  --imp-text-sub: var(--inst-text-faint);
  --imp-text-value: var(--ink-cream, #ebe5d8);
  --imp-text-table-hd: var(--inst-text-dim);
  --imp-text-table-cl: var(--ink-cream, #ebe5d8);
  --imp-text-symbol: var(--inst-cyan);
  --imp-val-neutral: var(--ink-cream, #ebe5d8);
  --imp-val-pos: var(--inst-green);
  --imp-val-neg: var(--inst-red);
  --imp-pl-neutral: var(--ink-cream, #ebe5d8);
  --imp-pl-pos: var(--inst-green);
  --imp-pl-neg: var(--inst-red);
  --imp-orange: var(--inst-cyan);
  --imp-purple: var(--inst-cyan-muted);
  --imp-amber: var(--inst-cyan-muted);
  --imp-sapphire: var(--inst-cyan);
  --imp-steel: var(--inst-border-dim);
  background: var(--inst-bg);
  color: var(--inst-text);
  font-family: var(--inst-mono);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-panel {
  padding-top: 14px;
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-tabs {
  background: var(--inst-panel);
  border-bottom-color: var(--inst-border-dim);
  min-height: 48px;
  height: auto;
  padding: 12px 16px 10px;
  margin: 0 12px 10px;
  gap: 6px;
  align-items: center;
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-tab {
  color: var(--inst-text-dim);
  font-family: var(--inst-mono);
  font-size: var(--inst-fs-label);
  font-weight: 500;
  height: 38px;
  letter-spacing: var(--inst-ls-tab);
  padding: 0 16px;
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-tab:hover:not(.active) {
  color: var(--inst-text);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-tab.active {
  background: var(--inst-cyan);
  border-bottom-color: var(--inst-cyan);
  color: #000;
  font-weight: 700;
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-metric,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-chart-card,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-block {
  background: var(--inst-panel);
  border-color: var(--inst-border-dim);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-metric-value,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-vv,
body.view-geral-active #view-report table.imp-des-table td:not(:first-child):not(.pos):not(.neg),
body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-cal-stat-pill.neu,
body.view-geral-active #view-report #des-r-pff,
body.view-geral-active #view-report #des-r-pff-sub {
  color: #ffffff;
}

body.view-geral-active #view-report #des-r-wr.imp-des-metric-value,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-metric-value.imp-des-wr-val {
  color: var(--inst-amber-hot, var(--amber-hot));
}

body.view-geral-active #view-report #des-r-wr.imp-des-metric-value.imp-des-wr-neg,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-metric-value.imp-des-wr-val.imp-des-wr-neg {
  color: var(--inst-red);
}

body.view-geral-active #view-report table.imp-des-table td.pos,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-cal-stat-pill.pos,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-mkt-melhor,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-mkt-melhor .imp-des-mkt-arrow {
  color: var(--inst-green);
}

body.view-geral-active #view-report table.imp-des-table td.neg,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-cal-stat-pill.neg,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-mkt-pior,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-mkt-pior .imp-des-mkt-arrow,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-dd-meta {
  color: var(--inst-red);
}

body.view-geral-active #view-report table.imp-des-hist-table td.imp-des-hist-open {
  color: var(--inst-cyan);
}

body.view-geral-active #view-report table.imp-des-hist-table td.imp-des-hist-pending {
  color: var(--inst-amber, #D47500);
}

body.view-geral-active #view-report table.imp-des-hist-table td.imp-des-hist-closed {
  color: var(--text-dim);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-hist-empty {
  color: var(--text-dim);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="history"] .imp-des-hist-footer {
  background: var(--inst-bg);
  border-top: 1px solid var(--inst-border-dim);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="history"] .imp-des-hist-footer .oa-footer-cell {
  background: var(--inst-bg);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="history"] .imp-des-hist-day-orders {
  background: var(--inst-bg);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="history"] .imp-des-hist-footer .oa-footer-lbl {
  color: var(--inst-text-faint);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 12px;
  letter-spacing: var(--inst-ls-label, 0.12em);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="history"] .imp-des-hist-footer .oa-footer-val {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 20px;
  font-weight: 700;
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="history"] .imp-des-hist-footer .oa-saldo {
  color: var(--inst-cyan);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="history"] .imp-des-hist-footer .oa-alvo {
  color: var(--inst-green);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="history"] .imp-des-hist-footer .oa-footer-val.oa-neg {
  color: var(--inst-red);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="history"] .imp-des-hist-footer .oa-footer-val.oa-pos {
  color: var(--inst-green);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="history"] .imp-des-hist-footer .oa-footer-val.oa-wr {
  color: var(--inst-amber-hot, var(--amber-hot));
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="history"] .imp-des-hist-footer .oa-footer-val.oa-neu {
  color: #ffffff;
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="history"] .imp-des-hist-footer .oa-footer-sub {
  color: var(--inst-text-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 12px;
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="history"] .imp-des-hist-footer .oa-footer-sub.oa-pos {
  color: var(--inst-green);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="history"] .imp-des-hist-footer .oa-footer-sub.oa-neg {
  color: var(--inst-red);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="history"] .imp-des-hist-day-orders .oa-open-orders-lbl {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: var(--inst-ls-label, 0.12em);
  color: var(--inst-text-faint);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="history"] #des-h-day-orders {
  background: var(--inst-amber, var(--amber));
  border-radius: 0;
  color: #000;
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  min-width: 42px;
  padding: 7px 16px;
  text-align: center;
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-block-title,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-chart-title,
body.view-geral-active #view-report table.imp-des-table td:first-child,
body.view-geral-active #view-report table.imp-des-table tbody tr:hover td:first-child,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-cal-btn,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-cal-label {
  color: var(--inst-cyan);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-metric.accent-orange::before,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="resumo"] .imp-des-metric.accent-green::before,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="resumo"] .imp-des-metric.accent-blue::before {
  background: var(--inst-cyan-muted);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-bar-fill:not(.neg) {
  background: var(--inst-green);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-bar-fill.neg {
  background: var(--inst-red);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-dd-row .imp-des-bar-fill.imp-des-dd-bar-amber {
  background: var(--inst-red);
  opacity: 0.65;
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-cal-btn:hover {
  border-color: var(--inst-cyan-muted);
  color: var(--inst-cyan);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-scroll::-webkit-scrollbar-thumb,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-table-wrap::-webkit-scrollbar-thumb {
  background: var(--inst-border-dim);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-scroll::-webkit-scrollbar-thumb:hover,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) .imp-des-table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--inst-cyan-muted);
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="trades"] {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 22px;
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="trades"] .imp-des-metric-label {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 22px;
  letter-spacing: 0.08em;
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="trades"] .imp-des-metric-value {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 52px;
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="trades"] .imp-des-metric-sub {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 24px;
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="trades"] .imp-des-block-title {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 22px;
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="trades"] .imp-des-kv-row {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 28px;
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="trades"] .imp-des-kk,
body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="trades"] .imp-des-vv {
  font-family: var(--font-bloomberg, var(--inst-mono));
}

body.view-geral-active :is(#view-report, .des-day-original-report-panel) section[data-des-panel="trades"] .imp-des-chart-title {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 22px;
}

/* ── Trading Plan — overlay (mesmo padrão institucional) ── */
body.view-geral-active #view-trading-plan {
  background: var(--inst-bg);
  font-family: var(--font-bloomberg, var(--inst-mono));
}

body.view-geral-active #view-trading-plan .tp-header {
  background: var(--inst-panel);
  border-bottom: 1px solid var(--inst-border-dim);
}

body.view-geral-active #view-trading-plan .tp-header-title {
  color: var(--inst-cyan);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 18.3px;
  letter-spacing: 0.12em;
}

body.view-geral-active #view-trading-plan .tp-header-stats {
  color: var(--inst-text-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 15.4px;
}

body.view-geral-active #view-trading-plan .tp-filter-btn {
  background: transparent;
  border: 1px solid var(--inst-border-dim);
  border-radius: 0;
  color: var(--inst-text-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 15.4px;
  letter-spacing: 0.08em;
  padding: 5px 12px;
}

body.view-geral-active #view-trading-plan .tp-filter-btn:hover {
  border-color: var(--inst-cyan-muted);
  color: var(--inst-text);
}

body.view-geral-active #view-trading-plan .tp-filter-btn.active {
  background: var(--inst-cyan);
  border-color: var(--inst-cyan);
  color: #000;
  font-weight: 700;
}

body.view-geral-active #view-trading-plan #tp-btn-voltar-grafico {
  background: transparent;
  border: 1px solid var(--inst-border-dim);
  border-radius: 0;
  color: var(--inst-text-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 15.4px;
}

body.view-geral-active #view-trading-plan #tp-btn-voltar-grafico:hover {
  border-color: var(--inst-cyan-muted);
  color: var(--inst-cyan);
}

body.view-geral-active #view-trading-plan .tp-totals {
  background: var(--inst-border-dim);
}

body.view-geral-active #view-trading-plan .tp-total-cell {
  background: var(--inst-panel);
}

body.view-geral-active #view-trading-plan .tp-total-label {
  color: var(--inst-text-faint);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 14.1px;
}

body.view-geral-active #view-trading-plan .tp-total-val {
  color: var(--inst-cyan);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 44.9px;
}

body.view-geral-active #view-trading-plan .tp-total-val.green,
body.ih-hub-full #view-trading-plan .tp-total-val.green {
  color: var(--inst-green);
  font-weight: 500;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.view-geral-active #view-trading-plan .tp-total-val.red,
body.ih-hub-full #view-trading-plan .tp-total-val.red {
  color: var(--inst-red);
}

body.view-geral-active #view-trading-plan .tp-total-sub {
  color: var(--inst-text-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 15.4px;
}

body.view-geral-active #view-trading-plan .tp-total-sub.green,
body.ih-hub-full #view-trading-plan .tp-total-sub.green {
  color: var(--inst-green);
  font-weight: 500;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.view-geral-active #view-trading-plan .tp-cards {
  background: var(--inst-bg);
  grid-template-columns: repeat(auto-fill, minmax(560px, 1fr));
}

body.view-geral-active #view-trading-plan .tp-card--macro {
  background: var(--inst-panel);
  border: 1px solid var(--inst-border-dim);
  border-radius: 0;
  cursor: pointer;
  gap: 10px;
  min-height: 0;
  padding: 18px 22px;
}

body.view-geral-active #view-trading-plan .tp-card--macro.tp-card--open {
  cursor: default;
  min-height: auto;
}

body.view-geral-active #view-trading-plan .tp-card--macro:hover,
body.view-geral-active #view-trading-plan .tp-card--macro.tp-card--open {
  background: #0a1014;
  border-color: rgba(0, 168, 204, 0.35);
}

body.view-geral-active #view-trading-plan .tp-card--macro .ih-macro-card-title {
  color: var(--inst-cyan);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 20px;
  letter-spacing: 1.5px;
}

body.view-geral-active #view-trading-plan .tp-card--macro .ih-macro-card-sub,
body.view-geral-active #view-trading-plan .tp-card--macro .tp-card-sub {
  color: var(--inst-text-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 20px;
  line-height: 1.35;
}

body.view-geral-active #view-trading-plan .tp-card--macro .ih-macro-trend {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 18px;
}

body.view-geral-active #view-trading-plan .tp-card--macro .ih-macro-trend.up { color: var(--inst-green); }
body.view-geral-active #view-trading-plan .tp-card--macro .ih-macro-trend.down { color: var(--inst-red); }

body.view-geral-active #view-trading-plan .tp-card--macro .tp-card-hero {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 52px;
  line-height: 1.1;
}

body.view-geral-active #view-trading-plan .tp-card--macro .tp-card-hero.green { color: var(--inst-green); }
body.view-geral-active #view-trading-plan .tp-card--macro .tp-card-hero.red { color: var(--inst-red); }

body.view-geral-active #view-trading-plan .tp-card--macro .tp-card-hero-suffix {
  color: var(--inst-text-dim);
  font-size: 28px;
}

body.view-geral-active #view-trading-plan .tp-card--macro .tp-card-spark,
body.view-geral-active #view-trading-plan .tp-card--macro .tp-card-spark svg,
body.view-geral-active #view-trading-plan .tp-card--macro .ih-spark {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
}

body.view-geral-active #view-trading-plan .tp-card--macro .ih-macro-foot {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 18px;
}

body.view-geral-active #view-trading-plan .tp-card-detail {
  border-top: 1px solid var(--inst-border-dim);
  margin-top: 13px;
  padding-top: 13px;
}

body.view-geral-active #view-trading-plan .tp-card-detail[hidden] {
  display: none !important;
}

body.view-geral-active #view-trading-plan .tp-card-detail .tp-card-info {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 22px;
}

body.view-geral-active #view-trading-plan .tp-card-detail .tp-card-metric-lbl {
  font-size: 20px;
}

body.view-geral-active #view-trading-plan .tp-card-detail .tp-card-metric-val {
  font-size: 30px;
}

body.view-geral-active #view-trading-plan .tp-card-detail .tp-card-notes-lbl {
  color: var(--inst-cyan);
  font-size: 18px;
}

body.view-geral-active #view-trading-plan .tp-card-detail .tp-card-notes-txt {
  font-size: 22px;
  min-height: 77px;
}

body.view-geral-active #view-trading-plan .tp-card-detail .tp-card-footer {
  font-size: 20px;
}

body.view-geral-active #view-trading-plan .tp-card-detail .tp-card-btn-exec,
body.view-geral-active #view-trading-plan .tp-card-detail .tp-card-btn-cancel {
  font-size: 22px;
}

body.view-geral-active #view-trading-plan .tp-card .ih-macro-card-title {
  color: var(--inst-cyan);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 11px;
  letter-spacing: 1.6px;
}

body.view-geral-active #view-trading-plan .tp-card .ih-macro-trend.tp-trend-armado,
body.view-geral-active #view-trading-plan .tp-card .ih-macro-trend.armed {
  color: var(--inst-cyan);
}

body.view-geral-active #view-trading-plan .tp-card {
  background: var(--inst-panel);
  border: 1px solid var(--inst-border-dim);
  border-radius: 0;
  min-height: 315px;
  font-family: var(--font-bloomberg, var(--inst-mono));
}

body.view-geral-active #view-trading-plan .tp-card-header {
  background: var(--inst-surface);
  border-bottom: 1px solid var(--inst-border-dim);
  padding: 10px 12px;
}

body.view-geral-active #view-trading-plan .tp-card-sym {
  color: var(--inst-cyan);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 24.4px;
}

body.view-geral-active #view-trading-plan .tp-card-status {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 15.4px;
  padding: 4px 10px;
}

body.view-geral-active #view-trading-plan .tp-card-status.armado {
  background: rgba(0, 168, 204, 0.08);
  border: 1px solid var(--inst-cyan-muted);
  border-radius: 0;
  color: var(--inst-cyan);
}

body.view-geral-active #view-trading-plan .tp-card-status.executado,
body.ih-hub-full #view-trading-plan .tp-card-status.executado {
  background: rgba(116, 222, 198, 0.08);
  border: 1px solid rgba(116, 222, 198, 0.35);
  border-radius: 0;
  color: var(--inst-green);
}

body.view-geral-active #view-trading-plan .tp-card-status.fechado {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border-dim);
  border-radius: 0;
  color: var(--inst-text-dim);
}

body.view-geral-active #view-trading-plan .tp-card-status.cancelado {
  background: rgba(224, 134, 134, 0.08);
  border: 1px solid rgba(224, 134, 134, 0.35);
  border-radius: 0;
  color: var(--inst-red);
}

body.view-geral-active #view-trading-plan .tp-card-info {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 16.8px;
  padding: 8px 12px;
}

body.view-geral-active #view-trading-plan .tp-card-metric {
  background: var(--inst-panel);
  border-color: var(--inst-border-dim);
  padding: 10px 10px;
}

body.view-geral-active #view-trading-plan .tp-card-metric-lbl {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 15.4px;
}

body.view-geral-active #view-trading-plan .tp-card-metric-val {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 23px;
}

body.view-geral-active #view-trading-plan .tp-card-metric-val.green,
body.ih-hub-full #view-trading-plan .tp-card-metric-val.green {
  color: var(--inst-green);
}

body.view-geral-active #view-trading-plan .tp-card-dir-buy,
body.ih-hub-full #view-trading-plan .tp-card-dir-buy {
  color: var(--inst-green);
}

body.view-geral-active #view-trading-plan .tp-card-notes {
  min-height: 115px;
  padding: 10px 14px;
}

body.view-geral-active #view-trading-plan .tp-card-notes-lbl {
  color: var(--inst-cyan);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: var(--inst-fs-label, 16.8px);
  margin-bottom: 8px;
}

body.view-geral-active #view-trading-plan .tp-card-notes-txt {
  color: var(--inst-text-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 19.5px;
  line-height: 1.65;
  min-height: 91px;
}

body.view-geral-active #view-trading-plan .tp-card-exec-mode {
  padding: 10px 12px;
}

body.view-geral-active #view-trading-plan .tp-exec-mode-lbl,
body.view-geral-active #view-trading-plan .tp-mode-btn {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 15.4px;
}

body.view-geral-active #view-trading-plan .tp-card-footer {
  background: var(--inst-surface);
  border-top: 1px solid var(--inst-border-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 15.4px;
  padding: 8px 12px;
}

body.view-geral-active #view-trading-plan .tp-card-btn-exec,
body.ih-hub-full #view-trading-plan .tp-card-btn-exec {
  background: var(--inst-green);
  border-radius: 0;
  color: #000;
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 16.8px;
  padding: 7px 14px;
}

body.view-geral-active #view-trading-plan .tp-card-btn-cancel {
  background: transparent;
  border: 1px solid rgba(224, 134, 134, 0.35);
  border-radius: 0;
  color: var(--inst-red);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 16.8px;
  padding: 7px 14px;
}

body.view-geral-active #view-trading-plan .tp-empty-txt {
  color: var(--inst-text-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 18.3px;
}

body.view-geral-active #view-trading-plan .tp-empty-sub {
  color: var(--inst-text-faint);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 15.4px;
}

body.view-geral-active #btn-trading-plan.active {
  background: var(--inst-cyan);
  border-color: var(--inst-cyan);
  color: #000;
  font-weight: 700;
}

/* ── Ordens Ativas — overlay (mesmo padrão institucional) ── */
body.view-geral-active #view-ordens {
  background: var(--inst-bg);
  font-family: var(--font-bloomberg, var(--inst-mono));
}

body.view-geral-active #view-ordens .oa-header,
body.view-geral-active #view-ordens .oa-filters,
body.view-geral-active #view-ordens .oa-g-filters,
body.view-geral-active #view-ordens .oa-close-section {
  background: var(--inst-panel);
  border-color: var(--inst-border-dim);
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

body.view-geral-active #view-ordens .oa-title {
  color: var(--inst-cyan);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 19.4px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

body.view-geral-active #view-ordens .oa-count {
  color: var(--inst-text-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 16.4px;
}

body.view-geral-active #view-ordens .oa-exp-badge {
  background: var(--inst-amber, var(--amber));
  border: 1px solid var(--inst-amber-hot, var(--amber-hot));
  border-radius: 0;
  color: #000;
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 16.4px;
  font-weight: 700;
}

body.view-geral-active #view-ordens .oa-filter-label,
body.view-geral-active #view-ordens .oa-g-filter-label {
  color: var(--inst-text-faint);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 16.4px;
  letter-spacing: var(--inst-ls-label, 0.12em);
  text-transform: uppercase;
}

body.view-geral-active #view-ordens .oa-filter-btn,
body.view-geral-active #view-ordens .oa-g-btn {
  background: transparent;
  border: 1px solid var(--inst-border-dim);
  border-radius: 0;
  color: var(--inst-text-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 16.4px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 5px 12px;
}

body.view-geral-active #view-ordens .oa-filter-btn:hover,
body.view-geral-active #view-ordens .oa-g-btn:hover {
  border-color: var(--inst-cyan-muted);
  color: var(--inst-text);
}

body.view-geral-active #view-ordens .oa-filter-btn.active,
body.view-geral-active #view-ordens .oa-g-btn.active {
  background: var(--inst-cyan);
  border-color: var(--inst-cyan);
  color: #000;
  font-weight: 700;
}

body.view-geral-active #view-ordens #oa-btn-voltar-grafico {
  background: transparent;
  border: 1px solid var(--inst-border-dim);
  border-radius: 0;
  color: var(--inst-text-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 16.4px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

body.view-geral-active #view-ordens #oa-btn-voltar-grafico:hover {
  border-color: var(--inst-cyan-muted);
  color: var(--inst-cyan);
}

body.view-geral-active #view-ordens .oa-table-wrap .oa-table,
body.view-geral-active #view-ordens-popout .oa-table-wrap .oa-table {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 22px;
}

body.view-geral-active #view-ordens .oa-table-wrap .oa-table th,
body.view-geral-active #view-ordens-popout .oa-table-wrap .oa-table th {
  background: var(--inst-panel);
  border-bottom-color: var(--inst-border-dim);
  color: var(--inst-text-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 9px 12px;
}

body.view-geral-active #view-ordens .oa-table-wrap .oa-table td,
body.view-geral-active #view-ordens-popout .oa-table-wrap .oa-table td {
  border-bottom-color: var(--inst-border-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 22px;
  padding: 9px 12px;
}

body.view-geral-active #view-ordens .oa-table-wrap .oa-table td:not(.oa-pos):not(.oa-neg):not(.oa-amb):not(.oa-alvo):not(.oa-risco):not(.oa-tp-pts),
body.view-geral-active #view-ordens-popout .oa-table-wrap .oa-table td:not(.oa-pos):not(.oa-neg):not(.oa-amb):not(.oa-alvo):not(.oa-risco):not(.oa-tp-pts) {
  color: var(--inst-text);
}

body.view-geral-active #view-ordens .oa-table-wrap .oa-table td.oa-pl.oa-pos {
  color: var(--inst-green);
  font-weight: 700;
}

body.view-geral-active #view-ordens .oa-table-wrap .oa-table td.oa-pl.oa-neg {
  color: var(--inst-red);
  font-weight: 700;
}

body.view-geral-active #view-ordens .oa-table-wrap .oa-table tr:hover td {
  background: rgba(0, 168, 204, 0.04);
}

body.view-geral-active #view-ordens .oa-pos {
  color: var(--inst-green);
}

body.view-geral-active #view-ordens .oa-neg {
  color: var(--inst-red);
}

body.view-geral-active #view-ordens .oa-risco {
  color: var(--inst-cyan);
}

body.view-geral-active #view-ordens .oa-neu {
  color: var(--inst-text);
}

body.view-geral-active #view-ordens .oa-amb {
  color: var(--inst-cyan);
}

body.view-geral-active #view-ordens .oa-tp-pts,
body.view-geral-active #view-ordens-popout .oa-tp-pts,
body.view-geral-active #view-ordens .oa-table-wrap .oa-table td.oa-tp-pts,
body.view-geral-active #view-ordens-popout .oa-table-wrap .oa-table td.oa-tp-pts {
  color: var(--inst-amber-hot, var(--amber-hot));
  font-weight: 700;
}

body.view-geral-active #view-ordens .oa-alvo {
  color: var(--inst-green);
}

body.view-geral-active #view-ordens .oa-table-wrap .oa-g-tag,
body.view-geral-active #view-ordens-popout .oa-table-wrap .oa-g-tag {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 20px;
  font-weight: 700;
}

body.view-geral-active #view-ordens .oa-table-wrap .oa-close-x,
body.view-geral-active #view-ordens-popout .oa-table-wrap .oa-close-x {
  background: transparent;
  border: 1px solid var(--inst-cyan-muted);
  border-radius: 0;
  color: var(--inst-cyan);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 25px;
  width: 32px;
  height: 32px;
}

body.view-geral-active #view-ordens .oa-table-wrap .oa-close-x.oa-close-x--blocked {
  background: rgba(224, 134, 134, 0.1);
  border-color: #E77A7A;
  color: #E77A7A;
  cursor: not-allowed;
  opacity: 1;
}
body.view-geral-active #view-ordens .oa-table-wrap .oa-close-x.oa-close-x--blocked:hover {
  background: rgba(224, 134, 134, 0.18);
  color: #ff7070;
  border-color: #ff7070;
}

body.view-geral-active #view-ordens .oa-table-wrap .oa-close-x:hover:not(.oa-close-x--blocked) {
  background: rgba(0, 168, 204, 0.12);
  border-color: var(--inst-cyan);
  color: #fff;
}

body.view-geral-active #view-ordens .oa-close-section-top {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

body.view-geral-active #view-ordens .oa-close-label {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  color: var(--inst-text-faint);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 14.6px;
  letter-spacing: var(--inst-ls-label, 0.12em);
  text-transform: uppercase;
  margin-bottom: 0;
}

body.view-geral-active #view-ordens .oa-open-orders-row {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.view-geral-active #view-ordens .oa-close-all-btns {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  flex-shrink: 0;
}

body.view-geral-active #view-ordens .oa-close-g-btn {
  background: var(--inst-amber, var(--amber));
  border: none;
  border-radius: 0;
  color: #000;
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 16.4px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  pointer-events: auto;
}

body.view-geral-active #view-ordens .oa-close-g-btn:hover:not(.oa-close-g-btn--empty) {
  filter: brightness(1.08);
}

body.view-geral-active #view-ordens .oa-close-g-group--blocked .oa-close-g-btn,
body.view-geral-active #view-ordens .oa-close-g-group--empty .oa-close-g-btn {
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(224, 134, 134, 0.75);
  cursor: not-allowed;
}

body.view-geral-active #view-ordens .oa-close-g-btn.oa-close-forbidden-anim {
  animation: oa-close-forbidden 0.55s ease;
}

body.view-geral-active #view-ordens .oa-close-btns {
  align-items: flex-start;
  gap: 10px;
}

body.view-geral-active #view-ordens .oa-close-g-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

body.view-geral-active #view-ordens .oa-close-g-group--open .oa-close-g-btn {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

body.view-geral-active #view-ordens .oa-close-g-chunks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-left: 2px;
}

body.view-geral-active #view-ordens .oa-close-g-chunks[hidden] {
  display: none !important;
}

body.view-geral-active #view-ordens .oa-close-g-chunk {
  background: var(--inst-amber, var(--amber));
  border: none;
  border-radius: 0;
  color: #000;
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 14.6px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
}

body.view-geral-active #view-ordens .oa-close-g-chunk:hover:not(:disabled) {
  filter: brightness(1.08);
}

body.view-geral-active #view-ordens .oa-close-g-chunk:disabled,
body.view-geral-active #view-ordens .oa-close-g-chunk.oa-close-g-chunk--empty {
  cursor: not-allowed;
  opacity: 0.35;
}

body.view-geral-active #view-ordens .oa-close-g-group--hidden,
body.view-geral-active #view-ordens .oa-close-g-chunk--hidden {
  display: none !important;
}

body.view-geral-active #view-ordens .oa-close-all {
  border: none;
  border-radius: 0;
  color: #fff;
  flex: 0 0 auto;
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 15.5px;
  font-weight: 700;
  padding: 6px 12px;
  width: auto;
}

body.view-geral-active #view-ordens .oa-close-all-pos {
  background: var(--inst-green, #67E6C9);
  color: #fff;
  font-family: var(--font-bloomberg, var(--inst-mono));
}

body.view-geral-active #view-ordens .oa-close-all-neg {
  background: var(--inst-red, #E77A7A);
  color: #fff;
  font-family: var(--font-bloomberg, var(--inst-mono));
}

body.view-geral-active #view-ordens .oa-purge-local,
body.view-geral-active #view-ordens .oa-purge-flat {
  background: #4a5568;
  color: #fff;
  font-family: var(--font-bloomberg, var(--inst-mono));
}

body.view-geral-active #view-ordens .oa-close-all-pos:hover,
body.view-geral-active #view-ordens .oa-close-all-neg:hover,
body.view-geral-active #view-ordens .oa-purge-local:hover,
body.view-geral-active #view-ordens .oa-purge-flat:hover {
  filter: brightness(1.08);
}

body.view-geral-active #view-ordens .oa-footer {
  background: var(--inst-bg);
  border-top-color: var(--inst-border-dim);
}

body.view-geral-active #view-ordens .oa-footer-cell {
  background: var(--inst-bg);
}

body.view-geral-active #view-ordens .oa-footer-lbl {
  color: var(--inst-text-faint);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 14.6px;
  letter-spacing: var(--inst-ls-label, 0.12em);
}

body.view-geral-active #view-ordens .oa-footer-val {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 27.8px;
  font-weight: 700;
}

body.view-geral-active #view-ordens .oa-saldo {
  color: var(--inst-cyan);
  font-weight: 700;
}

body.view-geral-active #view-ordens .oa-footer-sub {
  color: var(--inst-text-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 16.4px;
}

body.view-geral-active #view-ordens .oa-footer-sub.oa-pos {
  color: var(--inst-green);
}

body.view-geral-active #view-ordens .oa-footer-sub.oa-neg {
  color: var(--inst-red);
}

body.view-geral-active #view-ordens .oa-open-orders-lbl {
  color: var(--inst-text-dim);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 20.8px;
  font-weight: 500;
  letter-spacing: var(--inst-ls-label);
}

body.view-geral-active #view-ordens #oa-total-badge {
  background: var(--inst-amber, var(--amber));
  border-radius: 0;
  color: #000;
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 27.8px;
  font-weight: 700;
  line-height: 1;
  min-width: 52px;
  padding: 9px 20px;
  text-align: center;
}

body.view-geral-active #view-ordens .oa-table-wrap td[colspan] {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 19.9px;
  letter-spacing: 0.08em;
}

/* P/L ordens — verde lucro / vermelho perda (prioridade sobre td neutro) */
body.view-geral-active #view-ordens .oa-table-wrap .oa-table td.oa-pl.oa-pos,
#view-ordens .oa-table-wrap .oa-table td.oa-pl.oa-pos,
#view-ordens-popout .oa-table-wrap .oa-table td.oa-pl.oa-pos {
  color: var(--inst-green);
  font-weight: 700;
}

body.view-geral-active #view-ordens .oa-table-wrap .oa-table td.oa-pl.oa-neg,
#view-ordens .oa-table-wrap .oa-table td.oa-pl.oa-neg,
#view-ordens-popout .oa-table-wrap .oa-table td.oa-pl.oa-neg {
  color: var(--inst-red);
  font-weight: 700;
}

body.view-geral-active #btn-ordens-ativas.active {
  background: var(--inst-cyan);
  border-color: var(--inst-cyan);
  color: #000;
  font-weight: 700;
}

/* ── Aba ALERTAS — overlay (mesmo padrão institucional) ── */
body.view-geral-active #view-alertas {
  background: var(--inst-bg);
  font-family: var(--inst-mono);
}

body.view-geral-active #view-alertas .al-header {
  background: var(--inst-panel);
  border-bottom: 1px solid var(--inst-border-dim);
}

body.view-geral-active #view-alertas .al-title {
  color: var(--inst-cyan);
  font-family: var(--inst-mono);
  letter-spacing: 0.12em;
}

body.view-geral-active #view-alertas .al-count {
  background: rgba(0, 168, 204, 0.08);
  border: 1px solid var(--inst-cyan-muted);
  border-radius: 0;
  color: var(--inst-cyan);
  font-family: var(--inst-mono);
}

body.view-geral-active #view-alertas .al-cards {
  background: var(--inst-bg);
}

body.view-geral-active #view-alertas .al-card {
  background: var(--inst-panel);
  border: 1px solid var(--inst-border-dim);
  border-radius: 0;
}

body.view-geral-active #view-alertas .al-card-header {
  background: var(--inst-surface);
  border-bottom: 1px solid var(--inst-border-dim);
}

body.view-geral-active #view-alertas .al-card-sym {
  color: var(--inst-cyan);
  font-family: var(--inst-mono);
}

body.view-geral-active #view-alertas .al-card-cnt {
  background: transparent;
  border: 1px solid var(--inst-border-dim);
  border-radius: 0;
  color: var(--inst-text-dim);
  font-family: var(--inst-mono);
}

body.view-geral-active #view-alertas .al-mountain-wrap {
  background: var(--inst-bg);
}

body.view-geral-active #view-alertas .al-mountain-loading {
  color: var(--inst-text-faint);
  font-family: var(--inst-mono);
}

body.view-geral-active #view-alertas .al-list {
  border-top-color: var(--inst-border-dim);
}

body.view-geral-active #view-alertas .al-list-item {
  border-bottom-color: var(--inst-border-dim);
  font-family: var(--inst-mono);
}

body.view-geral-active #view-alertas .al-list-price {
  color: var(--inst-cyan);
  font-family: var(--inst-mono);
}

body.view-geral-active #view-alertas .al-list-time {
  color: var(--inst-text-faint);
}

body.view-geral-active #view-alertas .al-list-del {
  color: var(--inst-text-dim);
}

body.view-geral-active #view-alertas .al-list-del:hover {
  color: var(--inst-red);
}

body.view-geral-active #view-alertas .al-empty-txt {
  color: var(--inst-text-dim);
  font-family: var(--inst-mono);
}

body.view-geral-active #view-alertas .al-empty-sub {
  color: var(--inst-text-faint);
  font-family: var(--inst-mono);
}

body.view-geral-active #btn-alertas.active {
  background: var(--inst-cyan);
  border-color: var(--inst-cyan);
  color: #000;
  font-weight: 700;
}

/* ── Macro Reversal Radar / CPM — fontes +12% (CSS externo) ── */
body.view-geral-active .mrr-header-title {
  font-size: 14.1px;
}

body.view-geral-active .mrr-mode-btn {
  font-size: 12.7px;
}

body.view-geral-active #macro-reversal-radar.mrr-mode-chart .mrr-header-title {
  font-size: 15.4px;
}

body.view-geral-active #macro-reversal-radar.mrr-mode-chart .mrr-mode-btn {
  font-size: 14.1px;
}

body.view-geral-active .mrr-tf-btn {
  font-size: 14px;
}

body.view-geral-active .mrr-leg {
  font-size: 12.7px;
}

body.view-geral-active .mrr-hint {
  font-size: 11.3px;
}

body.view-geral-active #macro-reversal-radar.mrr-mode-chart .mrr-hint {
  font-size: 12.7px;
}

body.view-geral-active .mrr-cpm-label {
  font-size: 16.8px;
}

body.view-geral-active .mrr-cpm-bar-label,
body.view-geral-active .mrr-cpm-signal-stat,
body.view-geral-active .mrr-cpm-toggle {
  font-size: 12.7px;
}

/* ── Aba CONEXÕES — tela dedicada · sem painéis · tema ciano ── */
body.view-conexoes-active {
  --inst-text-dim: #96a8b4;
  --inst-text-faint: #788897;
  --cx-muted-glow: 0 0 10px rgba(148, 168, 184, 0.18), 0 0 1px rgba(196, 210, 220, 0.45);
}

body.view-conexoes-active #clocks-row,
body.view-conexoes-active #gov-bar {
  display: none !important;
}

body.view-conexoes-active #left,
body.view-conexoes-active #right {
  display: none !important;
}

body.view-conexoes-active #app {
  grid-template-columns: minmax(0, 1fr) !important;
  top: var(--tabnav-h);
}

body.view-conexoes-active #center {
  grid-column: 1 !important;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

body.view-conexoes-active #view-conexoes {
  position: absolute;
  inset: 0;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 20px 28px 56px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--inst-bg, #000);
  font-family: var(--inst-mono, var(--font-bloomberg));
  z-index: 20;
}

body.view-conexoes-active .cx-globe-bg::before {
  opacity: 0.5;
}

body.view-conexoes-active .cx-globe-bg::after {
  background:
    radial-gradient(
      ellipse 50% 65% at 50% 50%,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.18) 42%,
      rgba(0, 0, 0, 0.78) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.45) 0%,
      transparent 10%,
      transparent 90%,
      rgba(0, 0, 0, 0.5) 100%
    );
}

body.view-conexoes-active #view-conexoes > *:not(.cx-globe-bg) {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

body.view-conexoes-active .cx-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 18px;
  width: 100%;
}

@media (max-width: 1200px) {
  body.view-conexoes-active .cx-slots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.view-conexoes-active .cx-slots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.view-conexoes-active .cx-slot-card {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border-dim);
  padding: 18px;
  gap: 12px;
  font-family: var(--font-bloomberg, var(--inst-mono));
}

body.view-conexoes-active .cx-slot-card.is-active {
  border-color: var(--inst-cyan-muted, rgba(0, 168, 204, 0.45));
}

body.view-conexoes-active .cx-slot-card.is-connected {
  border-color: rgba(0, 200, 120, 0.35);
}

body.view-conexoes-active .cx-slot-card.is-inactive {
  opacity: 0.94;
}

body.view-conexoes-active .cx-slot-num {
  color: var(--inst-cyan);
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 22px;
  font-weight: 700;
  letter-spacing: var(--inst-ls-label);
}

body.view-conexoes-active .cx-slot-active {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 18px;
  color: var(--inst-text-dim);
  text-shadow: var(--cx-muted-glow);
}

body.view-conexoes-active .cx-slot-active input {
  width: 16px;
  height: 16px;
}

body.view-conexoes-active .cx-slot-meta {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 17px;
  letter-spacing: var(--inst-ls-label);
  color: var(--inst-text-faint);
  min-height: 20px;
  text-shadow: var(--cx-muted-glow);
}

body.view-conexoes-active .cx-slot-status {
  color: var(--inst-cyan);
  font-weight: 600;
}

body.view-conexoes-active .cx-slot-status[data-tone="dim"],
body.view-conexoes-active .cx-slot-card.is-inactive .cx-slot-status {
  color: var(--inst-text-dim);
  text-shadow: var(--cx-muted-glow);
}

body.view-conexoes-active .cx-slot-balance {
  color: var(--inst-text);
  font-weight: 600;
  font-size: 18px;
}

body.view-conexoes-active .cx-slot-grid {
  gap: 10px;
}

body.view-conexoes-active .cx-slot-card .cx-label {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 18px;
  font-weight: 600;
  letter-spacing: var(--inst-ls-label);
  color: var(--inst-text-dim);
  text-shadow: var(--cx-muted-glow);
}

body.view-conexoes-active .cx-slot-card .cx-input,
body.view-conexoes-active .cx-slot-card .cx-select {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  padding: 10px 12px;
  min-height: 42px;
}

body.view-conexoes-active .cx-slot-pill {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 16px;
  font-weight: 700;
  letter-spacing: var(--inst-ls-label);
  padding: 6px 11px;
  color: var(--inst-text-dim);
  border-color: rgba(150, 168, 180, 0.28);
  text-shadow: var(--cx-muted-glow);
}

body.view-conexoes-active .cx-slot-hint {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 16px;
  line-height: 1.45;
  color: var(--inst-text-faint);
}

body.view-conexoes-active .cx-slot-actions .cx-btn,
body.view-conexoes-active .cx-slot-actions .cx-btn-sec {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 18px;
  font-weight: 700;
  letter-spacing: var(--inst-ls-label);
  padding: 11px 14px;
  margin: 0;
}

body.view-conexoes-active .cx-slot-actions .cx-btn-sec {
  color: var(--inst-text-dim);
  text-shadow: var(--cx-muted-glow);
}

body.view-conexoes-active .cx-summary-meta {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: var(--inst-fs-label);
  color: var(--inst-text-faint);
  text-shadow: var(--cx-muted-glow);
}

body.view-conexoes-active .cx-title {
  font-size: var(--inst-fs-tab);
  font-weight: 600;
  letter-spacing: var(--inst-ls-tab);
  color: var(--inst-cyan);
  margin-bottom: 20px;
  text-transform: uppercase;
}

body.view-conexoes-active .cx-section {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: var(--inst-ls-label);
  color: var(--inst-text-dim);
  border-bottom-color: var(--inst-border-dim);
  margin-top: 18px;
  text-shadow: var(--cx-muted-glow);
}

body.view-conexoes-active .cx-lead {
  font-size: var(--inst-fs-label);
  line-height: 1.65;
  color: var(--inst-text-dim);
  text-shadow: var(--cx-muted-glow);
}

body.view-conexoes-active .cx-hint {
  font-size: var(--inst-fs-micro);
  color: var(--inst-text-faint);
  text-shadow: var(--cx-muted-glow);
}

body.view-conexoes-active .cx-label {
  font-size: var(--inst-fs-label);
  color: var(--inst-text-dim);
  letter-spacing: var(--inst-ls-label);
  text-shadow: var(--cx-muted-glow);
}

body.view-conexoes-active .cx-env-pill,
body.view-conexoes-active .cx-protocol-pill {
  font-size: var(--inst-fs-label);
  min-height: 34px;
  padding: 6px 12px;
}

body.view-conexoes-active .cx-input {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border-dim);
  color: var(--inst-cyan);
  font-family: var(--inst-mono);
  font-size: 18px;
  padding: 9px 12px;
}

body.view-conexoes-active .cx-input:focus {
  border-color: var(--inst-cyan);
  outline: none;
}

body.view-conexoes-active .cx-input::placeholder {
  color: var(--inst-text-faint);
  text-shadow: var(--cx-muted-glow);
}

body.view-conexoes-active .cx-slot-card .cx-input::placeholder {
  color: var(--inst-text-faint);
  text-shadow: var(--cx-muted-glow);
}

body.view-conexoes-active .cx-status {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border-dim);
  font-size: 18px;
  color: var(--inst-text);
  padding: 12px 16px;
}

body.view-conexoes-active #cx-status-txt {
  color: var(--inst-cyan);
}

body.view-conexoes-active .cx-dot.ok {
  background: var(--inst-green);
}

body.view-conexoes-active .cx-dot.err {
  background: var(--inst-red);
}

body.view-conexoes-active .cx-dot.warn {
  background: var(--inst-cyan);
}

body.view-conexoes-active .cx-btn {
  background: var(--inst-cyan);
  border: 1px solid var(--inst-cyan);
  color: #000;
  font-family: var(--inst-mono);
  font-size: var(--inst-fs-label);
  font-weight: 700;
  letter-spacing: var(--inst-ls-label);
  padding: 10px 22px;
}

body.view-conexoes-active .cx-btn:hover {
  opacity: 0.88;
}

body.view-conexoes-active .cx-btn-sec {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border-dim);
  color: var(--inst-text-dim);
  font-family: var(--inst-mono);
  font-size: var(--inst-fs-label);
  font-weight: 600;
  letter-spacing: var(--inst-ls-label);
  padding: 10px 22px;
  text-shadow: var(--cx-muted-glow);
}

body.view-conexoes-active .cx-btn-sec:hover {
  border-color: var(--inst-cyan-muted);
  color: var(--inst-cyan);
}

body.view-conexoes-active .cx-log-line {
  color: var(--inst-text-dim);
  border-bottom-color: var(--inst-border-dim);
  text-shadow: var(--cx-muted-glow);
}

body.view-conexoes-active .cx-log-line.ok {
  color: var(--inst-green);
}

body.view-conexoes-active .cx-log-line.err {
  color: var(--inst-red);
}

body.view-conexoes-active .cx-log-line.warn {
  color: var(--inst-amber);
}

body.view-conexoes-active .cx-log-line.info {
  color: var(--inst-cyan);
}

body.view-conexoes-active .cx-slot-log-wrap {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

body.view-conexoes-active .cx-slot-log-hdr {
  color: var(--inst-amber);
  font-size: var(--inst-fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.view-conexoes-active .cx-slot-log {
  background: var(--inst-bg);
  border: 1px solid var(--inst-border-dim);
  font-size: var(--inst-fs-micro);
  min-height: 280px;
  max-height: 360px;
}

body.view-conexoes-active .cx-slot-log-empty {
  color: var(--inst-text-faint);
}

body.view-conexoes-active .cx-slot-log .cx-log-line {
  font-size: var(--inst-fs-micro);
  text-shadow: var(--cx-muted-glow);
}

/* ── Aba FINANCE — cabeçalho institucional · ciano · Bloomberg ── */
body.view-geral-active.view-finance-active .fin-top {
  background: var(--inst-panel);
  border-bottom-color: var(--inst-border-dim);
  min-height: 52px;
  padding: 10px 20px;
}

body.view-geral-active.view-finance-active .fin-top-title {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: var(--inst-fs-tab, 19.5px);
  font-weight: 600;
  letter-spacing: var(--inst-ls-tab, 0.12em);
  color: var(--inst-cyan);
  text-shadow: var(--inst-luma-text, none);
}

body.view-geral-active.view-finance-active .fin-top-pill,
body.view-geral-active.view-finance-active .fin-api-pill {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: var(--inst-fs-micro, 15.4px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

body.view-geral-active.view-finance-active .fin-top-pill {
  color: var(--inst-text-dim);
}

body.view-geral-active.view-finance-active .fin-top-pill.ok {
  color: var(--inst-cyan);
}

body.view-geral-active.view-finance-active .fin-api-pill {
  color: var(--inst-text-dim);
  border-color: var(--inst-border-dim);
}

body.view-geral-active.view-finance-active .fin-api-pill.ok {
  color: var(--inst-cyan);
  border-color: var(--inst-luma-border);
}

body.view-geral-active.view-finance-active .fin-api-pill.warn {
  color: var(--inst-cyan-muted);
  border-color: var(--inst-border);
}

body.view-geral-active.view-finance-active .fin-phdr-title {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: var(--inst-fs-tab, 19.5px);
  font-weight: 600;
  letter-spacing: var(--inst-ls-tab, 0.12em);
  color: var(--inst-cyan);
}

/* ── Aba AFFILIATE — cabeçalho institucional · ciano · Bloomberg ── */
body.view-geral-active.view-affiliate-active .aff-top {
  background: var(--inst-panel);
  border-bottom-color: var(--inst-border-dim);
  min-height: 52px;
  padding: 10px 20px;
}

body.view-geral-active.view-affiliate-active .aff-top-title {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 30px;
  font-weight: 600;
  letter-spacing: var(--inst-ls-tab, 0.12em);
  color: var(--inst-cyan);
  text-shadow: var(--inst-luma-text, none);
}

body.view-geral-active.view-affiliate-active .aff-top-pill {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--inst-text-dim);
  border-color: var(--inst-border-dim);
}

body.view-geral-active.view-affiliate-active .aff-top-pill.ok {
  color: var(--inst-cyan);
  border-color: var(--inst-luma-border);
}

body.view-geral-active.view-affiliate-active .aff-subtab {
  font-family: var(--font-bloomberg, var(--inst-mono));
  font-size: 28px;
  font-weight: 500;
  letter-spacing: var(--inst-ls-tab, 0.12em);
  padding: 20px 24px;
}

body.view-geral-active.view-affiliate-active .aff-subtab.active {
  color: var(--inst-cyan);
  border-bottom-color: var(--inst-cyan);
}

body.view-geral-active.view-affiliate-active #view-affiliate {
  background: var(--inst-bg, #000);
}

/* ══ ABA GERAL — anti layout fantasma (views empilhadas no #center) ══ */
body.geral-view-only #view-geral {
  z-index: 2;
  background: var(--inst-bg);
}

body.geral-view-only #center > [id^="view-"]:not(#view-geral) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

