.reports-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.reports-heading h2 {
  margin: 7px 0;
}

.reports-heading p {
  margin: 0;
  color: #718096;
}

.report-filters {
  display: grid;
  grid-template-columns:
    minmax(210px, 1.4fr)
    repeat(4, minmax(145px, 1fr))
    auto;
  gap: 14px;
  align-items: end;
  padding: 20px;
}

.report-filters label {
  display: grid;
  gap: 8px;
  color: #233953;
  font-size: 13px;
  font-weight: 700;
}

.report-filters input,
.report-filters select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #dbe6f0;
  border-radius: 12px;
  background: #fff;
  color: #142b45;
}

.report-filters .primary-button {
  min-height: 46px;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.report-metrics article {
  padding: 18px;
  border: 1px solid #e5eef6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(25, 71, 113, .05);
}

.report-metrics span {
  display: block;
  color: #72859b;
  font-size: 12px;
  font-weight: 700;
}

.report-metrics strong {
  display: block;
  margin-top: 8px;
  color: #102c4c;
  font-size: 28px;
}

.report-result {
  padding: 22px;
}

.report-result-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.report-result-title h3 {
  margin: 5px 0 0;
}

#report-count {
  color: #718096;
  font-size: 13px;
  font-weight: 700;
}

.report-table-wrap {
  overflow-x: auto;
}

#report-table {
  width: 100%;
  border-collapse: collapse;
}

#report-table th,
#report-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  white-space: nowrap;
}

#report-table th {
  color: #6c8096;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#report-table td {
  color: #203850;
  font-size: 13px;
}

.report-message {
  padding: 40px;
  color: #718096;
  text-align: center;
}

@media (max-width: 1100px) {
  .report-filters {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .report-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .reports-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .report-filters,
  .report-metrics {
    grid-template-columns: 1fr;
  }
}

/* Garante que o atributo hidden prevaleça sobre outros estilos */
#reports-page[hidden] {
  display: none !important;
}
