/* =================================================================
   GED — ajustes carregados DEPOIS do enterprise.css.
   Atenção: o enterprise.css tem uma regra truncada perto da linha 1427
   (#changelist-filter { background: linear- ...) que deixa o resto do
   arquivo sem efeito. Ajustes novos ficam aqui até ele ser saneado.
   ================================================================= */

/* Medição: o dropdown personalizado (.medicao-select) nunca teve CSS e
   aparecia sempre aberto, listando todas as opções na tela. O <select>
   nativo ao lado é o que envia o filtro; fica só ele. */
.medicao-select[data-medicao-select] { display: none !important; }

/* =================================================================
   FASE 2 — CELULAR (≤ 576px)
   Cabeçalho compacto (antes ocupava ~40% da tela) e gráficos da
   Medição dentro da largura da tela (antes ficavam cortados).
   ================================================================= */
@media (max-width: 576px) {
  .topbar-enterprise {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px 10px !important;
    padding: 10px 12px !important;
  }
  .topbar-enterprise .sidebar-toggle { grid-column: 1; grid-row: 1; margin: 0 !important; }
  .topbar-enterprise .topbar-left { grid-column: 2; grid-row: 1; min-width: 0; }
  .topbar-enterprise .topbar-right { grid-column: 3; grid-row: 1; }
  .topbar-enterprise .topbar-center { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .topbar-enterprise .topbar-title {
    font-size: .72rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar-enterprise .topbar-sub,
  .topbar-enterprise .topbar-user > div:not(.avatar-circle) { display: none; }
  .topbar-enterprise .topbar-search { margin: 0 !important; }
  .topbar-enterprise .topbar-search input { min-width: 0; font-size: 16px; } /* 16px evita zoom no iOS */

  img.chart-img {
    max-width: 100% !important;
    height: auto !important;
  }
}
