Security forces detain 37 rioters across country