* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html, body {
  width: 100%;
  height: 100%;
  background: black;
  overflow: hidden;
  font-family: Arial, sans-serif;
  color: white;
}

/* Barra superior */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
  border-bottom: 2px solid #222;
}

.top-left {
  display: flex;
  align-items: center;
  height: 100%;
}

.top-left img {
  max-height: 50px;   /* garante que caiba dentro da barra */
  width: auto;         /* mantém proporção */
  object-fit: contain; /* evita distorção */
}

.top-center h1 {
  font-size: 1.8rem;
  text-align: center;
  font-weight: bold;
  color: #ffffff; /* branco */
}

.top-right {
  font-size: 1.2rem;
  font-weight: bold;
  color: #41bc58; /* verde */
}

.grid {
  position: absolute;
  top: 60px;
  left: 0;

  display: grid;

  grid-template-columns: repeat(5, 768px);

  grid-template-rows:
    200px   /* linha 1 - KPIs */
    290px   /* linha 2 */
    290px   /* linha 3 */
    240px;  /* linha 4 - wide */

  width: 3840px;
  height: 1020px;

  grid-auto-flow: row;
}


/* iframe normal */
iframe.normal {
  transform: scale(1);
  transform-origin: 0 0;
}


iframe {
  width: 100%;
  height: 100%;
  border: 1px solid #222;
  background: black;
  display: block;
}

.span2 {
  grid-column: span 2;
}

.span1 {
  grid-column: span 1;
}

.kpi-card {
  background: #111;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 0 15px #00ff0044;
  height: 60px;       /* ocupa a altura da célula da grid */
  padding: 0;         /* remove todo padding */
  margin: 0;
  font-size: 32px;    /* base para textos menores se quiser */
}

.kpi-card .number {
  font-size: 32px;    /* reduz o tamanho do número */
  font-weight: bold;
  margin: 0;          /* remove margem inferior */
}

.kpi-card .text {
  font-size: 14px;    /* texto mais leve e menor */
  font-weight: 300;
  color: #00ff00aa; 
  margin: 0;
}