.report-page {
  padding: 20px;
}

.page-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  align-items: stretch;
}

.filters-row {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filters-row.second-row {
  justify-content: flex-end;
  align-items: flex-start;
}

.filters-row.second-row .date-filter-group {
  flex: 0 0 auto;
  min-width: 180px;
}

.filters-row.second-row .clear-filters-btn {
  flex-shrink: 0;
  margin-left: 8px;
}

.filters-row .filter-search {
  flex: 1;
  max-width: 280px;
  min-width: 180px;
  height: 38px;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
  margin: 0;
}

.filters-row .filter-select {
  min-width: 180px;
  height: 38px;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 30px;
  font-size: 14px;
  background-color: #fff;
  margin: 0;
  line-height: normal;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.filter-group label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 5px;
  color: #333;
}

.filter-group select,
.filter-group input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.clear-filters-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  align-self: end;
  transition: background-color 0.2s;
}

.clear-filters-btn:hover {
  background-color: #5a6268;
}

@media (max-width: 768px) {
  .page-filters {
    padding: 12px;
    border-radius: 12px;
    gap: 10px;
  }

  .filters-row {
    flex-direction: column;
    gap: 10px;
  }

  .filters-row.second-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .filters-row .filter-search {
    min-width: 100%;
    max-width: 100%;
    order: -1;
    height: 38px;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    margin: 0;
  }

  .filter-select {
    min-width: 100%;
    height: 38px;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    margin: 0;
    line-height: normal;
  }

  .date-filter-group {
    flex: 1;
    min-width: 200px;
  }

  .date-inputs {
    flex-direction: column;
  }

  .date-input {
    min-width: 100%;
  }

  .clear-filters-btn {
    width: 100%;
    align-self: stretch;
    margin-top: 8px;
  }
}

.summary-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.summary-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.summary-card strong {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.summary-card div {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.status-badge {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.2s;
}

.status-badge.active {
  background-color: #28a745;
  color: white;
}

.status-badge.active:hover {
  background-color: #218838;
}

.status-badge.reject {
  background-color: #dc3545;
  color: white;
}

.status-badge.reject:hover {
  background-color: #c82333;
}

.status-button {
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.status-button.approved {
  background-color: #28a745;
  color: white;
}

.status-button.pending {
  background-color: #ffc107;
  color: black;
}

.status-button.rejected {
  background-color: #dc3545;
  color: white;
}
