/* Cabeçalho de todas as páginas: quem está usando (esquerda) e créditos, atalhos e saída (canto direito) */
:root {
  --topo-alt: 52px;
}
.topo-g {
  position: sticky;
  top: 0;
  z-index: 18;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: var(--topo-alt);
  padding: 0 20px;
  background: var(--papel);
  border-bottom: 1px solid var(--linha);
}
.topo-quem {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.topo-itens {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.situacao {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--verde-claro);
  color: var(--verde);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.situacao:empty {
  display: none;
}
.situacao.atencao {
  background: var(--sol-claro);
  color: var(--sol);
}
.topo-b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--linha);
  border-radius: 8px;
  background: var(--papel);
  color: var(--tinta);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.topo-b[hidden] {
  display: none;
}
.topo-b:hover {
  border-color: var(--verde);
  color: var(--verde);
}
main {
  padding-top: 14px;
}
@media (max-width: 980px) {
  .topo-quem,
  .topo-b span {
    display: none;
  }
  .topo-g {
    justify-content: flex-end;
  }
}
/* celular: em cima da faixa verde, ao lado da marca */
@media (max-width: 760px) {
  .lateral {
    min-height: calc(64px + env(safe-area-inset-top));
  }
  .topo-g {
    position: fixed;
    top: env(safe-area-inset-top);
    right: 0;
    z-index: 41;
    height: 64px;
    padding: 0 8px;
    background: none;
    border: 0;
  }
  .topo-itens {
    gap: 5px;
  }
  .situacao {
    max-width: 104px;
    padding: 5px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #1a5244;
    color: #d9f1e8;
    font-size: 11.5px;
  }
  .situacao.atencao {
    background: #f4b45f;
    color: #3a2204;
  }
  .situacao .longo-s {
    display: none;
  }
  .topo-b {
    justify-content: center;
    width: 40px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: #d9f1e8;
  }
}
