:root {
  --app-azul: #14467a;
}

body {
  background: #f4f6f9;
  font-size: 0.92rem;
}

.app-navbar {
  background: var(--app-azul);
}

.app-conteudo {
  max-width: 1600px;
}

.app-cartao-estreito {
  max-width: 26rem;
  margin: 2rem auto;
}

.app-indicador-valor {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--app-azul);
  line-height: 1.2;
}

.app-coluna-nome {
  max-width: 18rem;
}

.table > thead th {
  white-space: nowrap;
  font-weight: 600;
}

.app-tabela {
  font-size: 0.85rem;
}

.app-cartao-medio {
  max-width: 40rem;
  margin: 1rem auto;
}

.app-filtros .nav-link {
  padding: 0.25rem 0.75rem;
}

.app-busca {
  width: 18rem;
}

.app-ficha dt {
  font-weight: 500;
  color: var(--bs-secondary-color);
}

.app-rolagem {
  max-height: 32rem;
  overflow-y: auto;
}

.app-campo-curto input {
  width: 5rem;
}

.app-alinha-botao {
  margin-top: 1.35rem;
}

/* Itinerário, pontos e mapas */
.app-mapa {
  height: 70vh;
  min-height: 24rem;
}

.app-vias {
  font-size: 0.85rem;
  padding-left: 2rem;
}

.app-coluna-linhas {
  max-width: 22rem;
}

/* Quadro de horários */
.app-grade {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.app-viagem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.4rem;
  padding: 0.15rem 0.3rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.3rem;
  background: #fff;
  line-height: 1.15;
  cursor: pointer;
  user-select: none;
}

.app-viagem input {
  position: absolute;
  opacity: 0;
}

.app-viagem:focus-within {
  outline: 2px solid var(--app-azul);
}

.app-viagem-leitura {
  cursor: default;
}

.app-viagem-marcada {
  border-color: #d39e00;
  background: #fff6da;
}

.app-viagem:has(input:checked) {
  border-color: #0d6efd;
  background: #cfe2ff;
}

.app-hora {
  display: inline-flex;
  align-items: stretch;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.app-marcas {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0.7rem;
  margin-left: 1px;
  font-size: 0.6rem;
  line-height: 1;
}

.app-carro {
  font-size: 0.68rem;
  color: var(--bs-secondary-color);
}

.app-barra-lote {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 -2px 8px rgb(0 0 0 / 8%);
}

.app-lote-campo select {
  min-width: 11rem;
}
