/* Master MA — oscilador Bloomberg na faixa do volume (Overview).
 * Slot #gct-refinitiv-slot fica oculto/reservado para dados futuros. */

.mma-panel {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background: #000000;
  color: #ebe5d8;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.mma-panel.ih-hidden {
  display: none !important;
}

/* Reservado Refinitiv — nunca mostrar até integração */
.gct-refinitiv-slot,
#gct-refinitiv-slot,
#master-ma-panel.gct-refinitiv-slot {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Host precisa ser relative para o overlay cravar na faixa inferior */
#chart-host,
.mtg-chart-host,
.mt-cell-body,
.mtg-expand-chart-host,
[data-overview-slot] {
  position: relative;
}

/* Overlay na faixa inferior (ex-volume) — âncora bottom via JS */
.mma-panel--volband {
  position: absolute;
  left: 0;
  right: auto;
  width: 100%;
  bottom: 22px;
  /* Bloqueia top legado inline (artefato no meio do chart). */
  top: auto !important;
  z-index: 12;
  pointer-events: none;
  display: block;
  /* Zero padding horizontal — senão o X do histograma sai do candle */
  padding: 0;
  gap: 0;
  min-height: 52px;
  /* Mesmo fundo do chart (#000000) — dark absoluto */
  background: #000000;
  border-top: 1px solid rgba(74, 143, 160, 0.22);
  box-sizing: border-box;
  overflow: hidden;
}

.mma-panel--volband:not(.ih-hidden) {
  display: block !important;
}

.mma-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-height: 16px;
  height: 16px;
  font-size: 10px;
  letter-spacing: 0.04em;
  overflow: hidden;
}

.mma-hd--volband {
  position: absolute;
  top: 0;
  left: 4px;
  z-index: 2;
  gap: 6px;
  min-height: 14px;
  height: 14px;
  font-size: 9px;
  pointer-events: none;
}

.mma-title {
  color: #4a8fa0;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 9px;
  flex-shrink: 0;
}

/* Rótulo MASTER MA aposentado — barras DIFF permanecem. */
.mma-title,
.mma-hd--volband {
  display: none !important;
}

/* Meta do motor — nunca exibir (inclui MST / SIG / DIFF) */
.mma-master,
.mma-conf,
.mma-vol,
.mma-states,
.mma-legend,
.mma-leg,
.mma-st {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 0 !important;
}

.mma-panel--volband .mma-canvas {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #000000;
}

.mma-panel--desk-volband {
  z-index: 28;
}
