* {
  box-sizing: border-box;
}

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 100%;
  line-height: 1.5;
  color: #1b2430;
  background: #f3f5f7;
}

body {
  margin: 0;
}

.largura {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.topo {
  background: #0b5c3b;
  color: #ffffff;
}

.topo .largura {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.marca {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
}

.topo nav {
  display: flex;
  gap: 1.25rem;
}

.topo a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.topo a:hover,
.topo a:focus,
.topo a[aria-current="page"] {
  border-bottom-color: #ffffff;
}

main {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

h1 {
  font-size: 1.7rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.resumo {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
}

a {
  color: #0b5c3b;
}

code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.cartao {
  background: #ffffff;
  border: 1px solid #d5dbe1;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.grade-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

select,
input[type="text"] {
  width: 100%;
  font: inherit;
  color: inherit;
  background: #ffffff;
  border: 1px solid #7b8794;
  border-radius: 0.3rem;
  padding: 0.5rem 0.6rem;
}

select:focus,
input[type="text"]:focus,
button:focus {
  outline: 3px solid #f0b429;
  outline-offset: 1px;
}

input.invalido {
  border-color: #b42318;
  background: #fef3f2;
}

.dica {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: #485564;
}

.meses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.mes[hidden] {
  display: none;
}

.mes input {
  text-align: right;
}

.aviso-erro {
  margin: 1rem 0 0;
  padding: 0.6rem 0.8rem;
  border-left: 4px solid #b42318;
  background: #fef3f2;
  color: #7a271a;
}

.acoes {
  margin: 1rem 0 0;
}

button {
  font: inherit;
  color: #1b2430;
  background: #e6eaee;
  border: 1px solid #7b8794;
  border-radius: 0.3rem;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

button:hover {
  background: #d5dbe1;
}

.situacao {
  border-left: 6px solid #0b5c3b;
  background: #e8f5ee;
  border-radius: 0.3rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.situacao p {
  margin: 0;
}

.situacao-titulo {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.situacao.excesso-ate-20 {
  border-left-color: #b54708;
  background: #fff4e5;
}

.situacao.excesso-acima-20 {
  border-left-color: #b42318;
  background: #fef3f2;
}

.rotulo-barra {
  font-weight: 600;
}

output {
  font-variant-numeric: tabular-nums;
}

progress {
  display: block;
  width: 100%;
  height: 1.1rem;
  margin: 0.25rem 0 1rem;
  accent-color: #0b5c3b;
}

.numeros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
}

.numeros div {
  border: 1px solid #d5dbe1;
  border-radius: 0.3rem;
  padding: 0.6rem 0.75rem;
}

.numeros dt {
  font-size: 0.9rem;
  color: #485564;
}

.numeros dd {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

ul {
  padding-left: 1.25rem;
  margin: 0 0 0.75rem;
}

li {
  margin-bottom: 0.4rem;
}

.tabela-rolagem {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

th,
td {
  border: 1px solid #d5dbe1;
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: #eef1f4;
}

td.valor {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rodape {
  background: #1b2430;
  color: #e6eaee;
  font-size: 0.9rem;
  padding: 1.25rem 0;
}

.rodape p {
  margin: 0 0 0.5rem;
}

.rodape code {
  color: #ffffff;
}

.rodape a {
  color: #ffffff;
}

@media (max-width: 30rem) {
  h1 {
    font-size: 1.4rem;
  }

  .cartao {
    padding: 1rem;
  }
}
