.monthly-payments-page .page-filters {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.monthly-payments-page .filters-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.monthly-payments-page .filters-row.second-row .filter-select {
  flex: 0 0 auto;
  min-width: 160px;
}

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

.monthly-payments-page .filters-row .filter-search {
  flex: 1;
  max-width: 280px;
  min-width: 180px;
}

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

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

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

  .monthly-payments-page .filter-search {
    min-width: 100%;
    max-width: 100%;
    order: -1;
  }

  .monthly-payments-page .filter-select {
    min-width: 100%;
  }

  .monthly-payments-page .clear-filters-btn {
    width: 100%;
    align-self: stretch;
  }
}