Kids in New York’s juvenile detention centers were placed in solitary confinement in tiny cells for up to 24 hours a day — some lacking fresh water and a bucket for a toilet — over minor infractions or as a way to deal with staffing issues, a new bombshell lawsuit claims. The class action suit…