/* --- GERAL E FONTES --- */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #f4f7f6;
  color: #333;
  margin: 0;
}

/* --- CABEÇALHO E NAVEGAÇÃO --- */
.site-header {
  background-color: #192a56;
  color: white;
  text-align: center;
  padding: 30px 20px;
}

.nav-anos {
  text-align: center;
  padding: 20px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 10;
}

.btn {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  margin: 0 10px;
  transition:
    background-color 0.3s,
    transform 0.2s;
}

.btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* --- CONTEÚDO PRINCIPAL E SEÇÕES --- */
.container-tabelas {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.secao-ano {
  margin-bottom: 60px;
}

.secao-ano h2 {
  font-size: 2rem;
  color: #192a56;
  border-bottom: 3px solid #007bff;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

.tabela-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

thead tr {
  background-color: #192a56;
  color: white;
  text-align: left;
}

th,
td {
  padding: 15px 20px;
}

th {
  font-weight: 700;
}

tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s;
}

tbody tr:last-of-type {
  border-bottom: none;
}

tbody tr:hover {
  background-color: #f0f8ff;
}

tbody {
  display: block;
  max-height: 450px;
  overflow-y: auto;
}

thead,
tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

th:nth-child(1),
td:nth-child(1) {
  width: 25%;
} /* Coluna "Beneficiário" */
th:nth-child(2),
td:nth-child(2) {
  width: 40%;
} /* Coluna "Objeto" */
th:nth-child(3),
td:nth-child(3) {
  width: 20%;
} /* Coluna "Valor" */
th:nth-child(4),
td:nth-child(4) {
  width: 15%;
  text-align: center;
} /* Coluna "Status" */

/* --- ESTILOS DOS "STATUS" --- */
.status {
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  white-space: normal;
  min-width: 0;
}

.status.concluída {
  background-color: #28a745; /* Verde */
}

.status.em-execução {
  background-color: #fd7e14; /* Laranja */
}

.status.planejada {
  background-color: #17a2b8; /* Ciano */
}

.status.em-preparação {
  background-color: #ffc107; /* Amarelo */
}

@media (max-width: 600px) {
  tbody {
    display: table-row-group;
    max-height: none;
    overflow: visible;
  }

  /* thead,
  tbody tr {
    display: table-row;
    width: auto;
    table-layout: auto;
  } */

  table {
    min-width: 680px;
  }

  th,
  td {
    padding: 10px 12px;
  }

  .status {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
}

@media (max-width: 570px) {
  tbody {
    font-size: 14px;
  }
}

@media (max-width: 500px) {
  tbody {
    font-size: 13px;
  }
  .tabela-wrapper th {
    font-size: 12px;
  }
}
