Write a function in Python to process and filter datasets for Solaya.
Implement process_and_filter_datasets(datasets, filters). datasets is a list of record lists, and each record is a dictionary with hashable scalar values. filters maps field names to lists of accepted values. Flatten the batches, keep records matching every filter, preserve original order, and do not mutate the inputs. Records missing a filtered field must be excluded. If filters is empty, return every record.
def process_and_filter_datasets(datasets, filters):