/* FLIP LIVE — escuro, grafite, números grandes. Compatível com Safari de iPads antigos
   (sem gap em flex, sem inset, sem aspect-ratio, sem color-mix). */

:root {
  --fundo: #060708;
  --fundo-2: #0c0d10;
  --cartao: #111317;
  --cartao-2: #16191e;
  --linha: #1f232a;
  --linha-2: #2a2f37;
  --texto: #eceef1;
  --texto-2: #a3a9b2;
  --texto-3: #6b717b;
  --verde: #22d081;
  --verde-fundo: rgba(34, 208, 129, .12);
  --vermelho: #ff5058;
  --vermelho-fundo: rgba(255, 80, 88, .12);
  --ambar: #f2b33d;
  --ambar-fundo: rgba(242, 179, 61, .12);
  --azul: #5aa9ff;
  --serie-1: #e9ecef;
  --serie-2: #5b616b;
  --raio: 14px;
  --num: -apple-system, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--fundo); color: var(--texto); }
body {
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px; line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  font-variant-numeric: tabular-nums;
  overscroll-behavior: none;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h2 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-2); }
small { color: var(--texto-3); font-size: 12px; }

/* ---------- topo ---------- */
.topo {
  display: flex; align-items: center;
  height: 60px; padding: 0 16px;
  padding-left: calc(16px + env(safe-area-inset-left));
  padding-right: calc(16px + env(safe-area-inset-right));
  border-bottom: 1px solid var(--linha);
  background: var(--fundo);
  position: -webkit-sticky; position: sticky; top: 0; z-index: 20;
}
.marca-app { display: flex; align-items: center; font-size: 17px; letter-spacing: .14em; white-space: nowrap; margin-right: 18px; }
.marca-app b { font-weight: 800; margin-right: 6px; }
.marca-app span:last-child { font-weight: 300; color: var(--texto-2); }
.pulso { width: 9px; height: 9px; border-radius: 50%; background: var(--vermelho); margin-right: 10px; box-shadow: 0 0 0 0 rgba(255, 80, 88, .6); -webkit-animation: pulso 2s infinite; animation: pulso 2s infinite; }
.pulso.ok { background: var(--verde); -webkit-animation-name: pulso-verde; animation-name: pulso-verde; }
@-webkit-keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(255, 80, 88, .55); } 70% { box-shadow: 0 0 0 8px rgba(255, 80, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 80, 88, 0); } }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(255, 80, 88, .55); } 70% { box-shadow: 0 0 0 8px rgba(255, 80, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 80, 88, 0); } }
@-webkit-keyframes pulso-verde { 0% { box-shadow: 0 0 0 0 rgba(34, 208, 129, .5); } 70% { box-shadow: 0 0 0 8px rgba(34, 208, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 208, 129, 0); } }
@keyframes pulso-verde { 0% { box-shadow: 0 0 0 0 rgba(34, 208, 129, .5); } 70% { box-shadow: 0 0 0 8px rgba(34, 208, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 208, 129, 0); } }

.ops { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-width: 0; scrollbar-width: none; }
.ops::-webkit-scrollbar { display: none; }
.ops button {
  background: none; border: 0; padding: 0 14px; height: 60px; white-space: nowrap;
  color: var(--texto-3); font-weight: 600; font-size: 14px; position: relative;
}
.ops button.ativo { color: var(--texto); }
.ops button.ativo:after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--texto); border-radius: 2px; }

.topo-dir { display: flex; align-items: center; margin-left: 10px; }
.sinc { display: flex; align-items: center; color: var(--texto-3); font-size: 12px; white-space: nowrap; margin-right: 16px; }
.sinc-ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--texto-3); margin-right: 7px; }
.sinc.ok .sinc-ponto { background: var(--verde); }
.sinc.atraso .sinc-ponto { background: var(--ambar); }
.sinc.erro .sinc-ponto { background: var(--vermelho); }
.sinc.erro { color: var(--vermelho); }
.relogio { display: flex; flex-direction: column; align-items: flex-end; margin-right: 10px; line-height: 1.05; }
.relogio span { font-family: var(--num); font-size: 24px; font-weight: 300; letter-spacing: .02em; }
.relogio small { font-size: 11px; text-transform: capitalize; }
.icone-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--linha); background: var(--cartao); color: var(--texto-2); margin-left: 8px; padding: 0;
}
.icone-btn:active { background: var(--cartao-2); }

.rotacao { display: none; position: relative; height: 22px; border-bottom: 1px solid var(--linha); background: var(--fundo-2); }
.rotacao i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255, 255, 255, .05); }
.rotacao span { position: relative; display: block; padding: 3px 16px; font-size: 11px; color: var(--texto-3); letter-spacing: .06em; text-transform: uppercase; }

.faixa-demo {
  padding: 9px 16px; font-size: 13px; color: #1a1300; background: var(--ambar);
  background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .07) 0 12px, transparent 12px 24px);
}
.faixa-demo b { letter-spacing: .08em; }
.faixa-erro { padding: 9px 16px; font-size: 13px; background: var(--vermelho-fundo); color: #ffb3b7; border-bottom: 1px solid rgba(255, 80, 88, .3); }

.subbarra { display: flex; align-items: center; padding: 12px 16px 0; }
.periodos { display: flex; background: var(--cartao); border: 1px solid var(--linha); border-radius: 12px; padding: 3px; }
.periodos button { border: 0; background: none; color: var(--texto-2); padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.periodos button.ativo { background: var(--texto); color: #000; }
.comparacao { color: var(--texto-3); font-size: 12px; margin-left: 14px; flex: 1; }
.btn-texto { background: none; border: 1px solid var(--linha); border-radius: 10px; padding: 8px 12px; color: var(--texto-2); font-size: 13px; }

/* ---------- painel ---------- */
.painel { padding: 12px 16px 24px; padding-left: calc(16px + env(safe-area-inset-left)); padding-right: calc(16px + env(safe-area-inset-right)); }
.cartao { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 14px 16px; position: relative; min-width: 0; }
.cartao > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; min-height: 26px; }
.cartao > header small { margin-left: 10px; text-align: right; }

.hero { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-gap: 10px; }
.kpi { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 14px 16px 13px; min-width: 0; position: relative; overflow: hidden; }
.kpi .rotulo { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .valor { font-family: var(--num); font-size: 34px; font-weight: 600; letter-spacing: -.02em; margin: 8px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.05; }
.kpi .valor small { font-size: .5em; color: var(--texto-2); font-weight: 500; letter-spacing: 0; margin-right: 3px; }
.kpi .sub { font-size: 12px; color: var(--texto-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .barra { height: 4px; background: var(--linha-2); border-radius: 4px; margin-top: 8px; position: relative; overflow: hidden; }
.kpi .barra i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--texto); border-radius: 4px; }
.kpi.principal .valor { font-size: 40px; }

.delta { font-weight: 600; font-size: 12px; white-space: nowrap; }
.delta.bom { color: var(--verde); }
.delta.ruim { color: var(--vermelho); }
.delta.neutro { color: var(--texto-2); }
.delta.sem { color: var(--texto-3); font-weight: 500; }

.faixa-kpis { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); margin-top: 10px; background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); }
.mini { padding: 12px 14px; border-left: 1px solid var(--linha); min-width: 0; }
.mini:first-child { border-left: 0; }
.mini .rotulo { font-size: 11px; color: var(--texto-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .valor { font-family: var(--num); font-size: 21px; font-weight: 600; margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.mini .delta { font-size: 11px; }

.graficos { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); grid-gap: 10px; margin-top: 10px; }
.grafico { height: 210px; position: relative; }
.grafico svg { display: block; overflow: visible; }
.legenda { display: flex; flex-wrap: wrap; font-size: 12px; color: var(--texto-2); margin: -4px 0 6px; min-height: 16px; }
.legenda span { display: flex; align-items: center; margin-right: 14px; white-space: nowrap; }
.legenda i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; }
.legenda b { color: var(--texto); margin-left: 5px; font-weight: 600; }
.abas { display: flex; }
.abas button { border: 0; background: none; color: var(--texto-3); font-size: 12px; font-weight: 600; padding: 6px 8px; border-radius: 8px; }
.abas button.ativo { color: var(--texto); background: var(--cartao-2); }

.eixo { fill: var(--texto-3); font-size: 10px; font-family: var(--num); }
.grade { stroke: var(--linha); stroke-width: 1; }

.lista-barras { max-height: 240px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.lb { margin-bottom: 11px; }
.lb-topo { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.lb-topo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 8px; color: var(--texto-2); }
.lb-topo b { font-family: var(--num); font-weight: 600; white-space: nowrap; }
.lb-trilho { height: 6px; background: var(--linha); border-radius: 6px; overflow: hidden; }
.lb-trilho i { display: block; height: 100%; background: var(--texto); border-radius: 6px; }
.lb-topo em { font-style: normal; color: var(--texto-3); font-size: 12px; margin-left: 6px; }

.inferior { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); grid-gap: 10px; margin-top: 10px; }

/* alertas */
.contagem { display: flex; }
.contagem span { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; margin-left: 6px; }
.contagem .critico { background: var(--vermelho-fundo); color: var(--vermelho); }
.contagem .atencao { background: var(--ambar-fundo); color: var(--ambar); }
.contagem .positivo { background: var(--verde-fundo); color: var(--verde); }
.alertas { max-height: 300px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.alerta { display: flex; padding: 10px 0; border-top: 1px solid var(--linha); }
.alerta:first-child { border-top: 0; padding-top: 2px; }
.alerta .marcador { width: 3px; border-radius: 3px; margin-right: 12px; flex: 0 0 3px; }
.alerta.critico .marcador { background: var(--vermelho); }
.alerta.atencao .marcador { background: var(--ambar); }
.alerta.positivo .marcador { background: var(--verde); }
.alerta b { display: block; font-size: 14px; font-weight: 600; }
.alerta.critico b { color: #ff8a90; }
.alerta.positivo b { color: #6be3a9; }
.alerta .onde { font-size: 12px; color: var(--texto-2); margin-top: 1px; }
.alerta .det { font-size: 12px; color: var(--texto-3); margin-top: 2px; }
.vazio { color: var(--texto-3); font-size: 13px; padding: 14px 0; }
.vazio b { display: block; color: var(--texto-2); font-size: 15px; margin-bottom: 4px; }

/* ranking */
.ranking { max-height: 300px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.rk { display: flex; align-items: center; padding: 8px 0; border-top: 1px solid var(--linha); }
.rk:first-child { border-top: 0; padding-top: 0; }
.rk .pos { width: 30px; flex: 0 0 30px; font-family: var(--num); font-size: 16px; font-weight: 700; color: var(--texto-3); }
.rk.melhor .pos { color: var(--verde); }
.rk.pior .pos { color: var(--vermelho); }
.rk .meio { flex: 1; min-width: 0; }
.rk .nome { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk .info { font-size: 11px; color: var(--texto-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk .trilho { height: 5px; background: var(--linha); border-radius: 5px; margin-top: 5px; position: relative; overflow: hidden; }
.rk .trilho i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 5px; background: var(--serie-2); }
.rk.melhor .trilho i { background: var(--verde); }
.rk.pior .trilho i { background: var(--vermelho); }
.rk .dir { text-align: right; margin-left: 12px; white-space: nowrap; }
.rk .dir b { display: block; font-family: var(--num); font-size: 15px; }
.rk .dir span { font-size: 11px; color: var(--texto-3); }

/* metas */
.meta-item { margin-bottom: 14px; }
.meta-item .lb-topo b small { color: var(--texto-3); font-weight: 500; font-size: 12px; }
.meta-trilho { height: 8px; background: var(--linha); border-radius: 8px; position: relative; overflow: hidden; }
.meta-trilho i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: var(--texto); }
.meta-trilho i.bom { background: var(--verde); }
.meta-trilho i.ruim { background: var(--vermelho); }
.meta-trilho u { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ambar); text-decoration: none; }
.meta-nota { font-size: 11px; color: var(--texto-3); margin-top: 4px; }

/* tabela */
.campanhas { margin-top: 10px; }
.filtros { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.filtros button { border: 1px solid var(--linha); background: none; color: var(--texto-2); font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 20px; margin-left: 6px; margin-bottom: 4px; }
.filtros button.ativo { background: var(--texto); color: #000; border-color: var(--texto); }
.tabela-rolagem { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
.tabela { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabela th { text-align: right; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--texto-3); padding: 8px 8px; border-bottom: 1px solid var(--linha-2); white-space: nowrap; cursor: pointer; }
.tabela th:first-child, .tabela th:nth-child(2) { text-align: left; }
.tabela th.ord { color: var(--texto); }
.tabela td { text-align: right; padding: 11px 8px; border-bottom: 1px solid var(--linha); white-space: nowrap; font-family: var(--num); }
.tabela td:first-child { text-align: left; color: var(--texto-3); font-weight: 700; width: 30px; }
.tabela td.nome { text-align: left; white-space: normal; min-width: 210px; font-family: inherit; }
.tabela td.nome b { display: block; font-weight: 600; font-size: 13px; }
.tabela td.nome span { font-size: 11px; color: var(--texto-3); }
.tabela tr { cursor: pointer; }
.tabela tr:active td { background: var(--cartao-2); }
.tabela tr.melhor td:first-child { color: var(--verde); }
.tabela tr.pior td:first-child { color: var(--vermelho); }
.tabela td small { display: block; font-size: 11px; color: var(--texto-3); }
.pill { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--cartao-2); color: var(--texto-2); font-family: inherit; }
.pill.ativa { background: var(--verde-fundo); color: var(--verde); }
.pill.problema { background: var(--vermelho-fundo); color: var(--vermelho); }
.indice { display: inline-block; min-width: 48px; text-align: center; padding: 3px 6px; border-radius: 6px; font-weight: 700; font-size: 12px; background: var(--cartao-2); color: var(--texto-2); }
.indice.bom { background: var(--verde-fundo); color: var(--verde); }
.indice.ruim { background: var(--vermelho-fundo); color: var(--vermelho); }
.nota { font-size: 12px; color: var(--texto-3); margin: 10px 0 0; }
.rodape { color: var(--texto-3); font-size: 11px; margin-top: 14px; text-align: center; }

/* tooltip */
.tooltip { position: fixed; z-index: 50; pointer-events: none; background: #1d2026; border: 1px solid var(--linha-2); border-radius: 10px; padding: 8px 10px; font-size: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); min-width: 120px; }
.tooltip b { display: block; margin-bottom: 4px; color: var(--texto-2); font-weight: 600; }
.tooltip div { display: flex; justify-content: space-between; }
.tooltip div span { color: var(--texto-3); margin-right: 12px; }

/* folha (ajustes e campanha) */
.folha { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(0, 0, 0, .7); display: flex; align-items: flex-start; justify-content: center; padding: 30px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.folha-caixa { background: var(--fundo-2); border: 1px solid var(--linha-2); border-radius: 18px; width: 100%; max-width: 880px; }
.folha-topo { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--linha); }
.folha-topo h2 { font-size: 14px; color: var(--texto); }
.folha-corpo { padding: 6px 20px 20px; }
.bloco { padding: 16px 0; border-bottom: 1px solid var(--linha); }
.bloco:last-child { border-bottom: 0; }
.bloco h3 { margin: 0 0 4px; font-size: 16px; }
.bloco p { margin: 0 0 12px; color: var(--texto-3); font-size: 13px; }
.campos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); grid-gap: 10px; }
.campo label { display: block; font-size: 12px; color: var(--texto-2); margin-bottom: 5px; }
.campo input, .campo select, .tab-aj input, .tab-aj select {
  width: 100%; background: var(--cartao); border: 1px solid var(--linha-2); border-radius: 10px; padding: 10px 11px; font-size: 16px; -webkit-appearance: none; appearance: none;
}
.campo input:focus, .tab-aj input:focus { outline: none; border-color: var(--texto-2); }
.check { display: flex; align-items: center; font-size: 14px; margin: 6px 0; }
.check input { width: 22px; height: 22px; margin: 0 10px 0 0; accent-color: var(--verde); }
.btn { background: var(--texto); color: #000; border: 0; border-radius: 11px; padding: 11px 18px; font-weight: 700; font-size: 14px; margin-top: 12px; margin-right: 8px; }
.btn.sec { background: var(--cartao-2); color: var(--texto); border: 1px solid var(--linha-2); }
.btn.perigo { background: none; color: var(--vermelho); border: 1px solid rgba(255, 80, 88, .4); }
.status-linha { display: flex; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 20px; background: var(--cartao-2); color: var(--texto-2); margin: 0 6px 6px 0; }
.chip.ok { background: var(--verde-fundo); color: var(--verde); }
.chip.nao { background: var(--vermelho-fundo); color: var(--vermelho); }
.tab-aj { width: 100%; border-collapse: collapse; font-size: 13px; }
.tab-aj th { text-align: left; font-size: 11px; color: var(--texto-3); font-weight: 600; padding: 6px 4px; text-transform: uppercase; letter-spacing: .04em; }
.tab-aj td { padding: 4px; vertical-align: middle; }
.tab-aj input, .tab-aj select { padding: 8px 9px; font-size: 15px; }
.aviso-salvo { color: var(--verde); font-size: 13px; margin-left: 6px; }
.passos { margin: 0 0 12px 18px; padding: 0; color: var(--texto-2); font-size: 13px; }
.passos li { margin-bottom: 4px; }
code { background: var(--cartao-2); padding: 1px 5px; border-radius: 5px; font-size: 12px; }

.toque-monitor { position: fixed; left: 50%; bottom: 24px; z-index: 40; -webkit-transform: translateX(-50%); transform: translateX(-50%); display: flex; }
.toque-monitor button { background: #1d2026; border: 1px solid var(--linha-2); color: var(--texto); padding: 14px 20px; border-radius: 14px; font-weight: 600; margin: 0 5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .6); }

.carregando { opacity: .55; -webkit-transition: opacity .3s; transition: opacity .3s; }

/* ---------- telas menores (iPad 9,7" deitado = 1024 px) ---------- */
@media (max-width: 1120px) {
  .kpi .valor { font-size: 28px; }
  .kpi.principal .valor { font-size: 33px; }
  .kpi { padding: 12px 13px; }
  .mini { padding: 10px 10px; }
  .mini .valor { font-size: 18px; }
  .marca-app { margin-right: 10px; font-size: 15px; }
  .ops button { padding: 0 10px; font-size: 13px; }
  .ops button.ativo:after { left: 10px; right: 10px; }
  .relogio span { font-size: 21px; }
  .sinc { margin-right: 10px; }
  .col-obj, .col-cpm { display: none; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faixa-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mini { border-top: 1px solid var(--linha); }
  .mini:nth-child(3n+1) { border-left: 0; }
  .graficos, .inferior { grid-template-columns: minmax(0, 1fr); }
  .sinc .sinc-txt { display: none; }
  .comparacao { display: none; }
}

/* ---------- modo monitor: tudo numa tela, sem rolagem ---------- */
body.monitor .subbarra, body.monitor .campanhas, body.monitor .rodape { display: none; }
body.monitor .rotacao { display: block; }
body.monitor #btn-ajustes { display: none; }
body.monitor { overflow: hidden; }
body.monitor #app { height: 100vh; display: flex; flex-direction: column; }
body.monitor .painel { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-top: 10px; padding-bottom: 10px; }
body.monitor .graficos { flex: 1 1 0; min-height: 0; }
body.monitor .graficos .cartao { display: flex; flex-direction: column; overflow: hidden; }
body.monitor .grafico { flex: 1; height: auto; min-height: 90px; }
body.monitor .grafico svg { position: absolute; top: 0; left: 0; }
body.monitor .abas, body.monitor .ranking .nota, body.monitor .cartao > header small:not(#metas-dia) { display: none; }
body.monitor .metas { overflow: hidden; flex: 1; min-height: 0; }
body.monitor .lista-barras { max-height: none; flex: 1; overflow: hidden; }
body.monitor .inferior { flex: 1 1 0; min-height: 0; }
body.monitor .inferior .cartao { display: flex; flex-direction: column; overflow: hidden; }
body.monitor .alertas, body.monitor .ranking { max-height: none; flex: 1; min-height: 0; overflow: hidden; }
body.monitor .kpi .valor { font-size: 38px; }
body.monitor .kpi.principal .valor { font-size: 44px; }
@media (max-width: 1120px) {
  body.monitor .kpi .valor { font-size: 30px; }
  body.monitor .kpi.principal .valor { font-size: 35px; }
}
@media (max-height: 800px) {
  body.monitor .kpi { padding: 10px 12px; }
  body.monitor .kpi .valor { margin: 4px 0 3px; }
  body.monitor .mini { padding: 8px 10px; }
  body.monitor .cartao { padding: 10px 12px; }
  body.monitor .cartao > header { margin-bottom: 4px; }
  body.monitor .graficos, body.monitor .inferior, body.monitor .faixa-kpis { margin-top: 8px; }
}
