Children and adult migrants detained at the US-Mexico border are subjected to “dangerous overcrowding” conditions that represent “an immediate risk to the health and safety” of border agents and those detained, according to a scathing new report released Tuesday by an independent government watchdog.

The Department of Homeland Security Office of Inspector General called on the Trump administration to take immediate steps to alleviate conditions in the Rio Grande Valley Border Patrol facilities.

Even managers of the detention facilities along the border raised security concerns over the conditions, with one senior manager calling the escalating tensions between migrants and border guards “a ticking time bomb.”

The OIG found children at three of the five border patrol facilities had no access to showers and limited access to fresh clothes. While infant formula, diapers, juice and snacks were available, children didn’t have hot meals at two of the facilities until inspectors arrived.

The new report contains photos taken during a June Inspector General visit depicting migrants crammed behind chained fences.

Some single adults at one facility were “held in standing room only conditions for a week and at another, some single adults were held more than a month in overcrowded cells,” the report found.

The conditions led to “security incidents among adult males at multiple facilities,” the DHS OIG reports. Some detainees (were) “clogging toilets with Mylar blankets and socks in order to be released from their cells during maintenance.”

One of the walk-throughs had to be cut short because “when detainees observed us, they banged on the cell windows, shouted pressed notes to the window with their time in custody, and gestured to evidence of their time in custody,” the report said, referring to male detainees pointing to their shaggy beards.

Food was a problem for adults, too. Border agents are required to respect detainees’ “religious and other dietary restrictions.” However, “many single adults had been receiving only bologna sandwiches,” which meant some “were becoming constipated and required medical attention.”

The damning report comes a day after Rep. Alexandria Ocasio-Cortez (D-Bronx/Queens) and other lawmakers visited two stations in the El Paso sector to sound the alarm about terrible conditions there.

The DHS said the current situation at the southern border represents “an acute and worsening crisis” due to the surge of undocumented immigrants trying to cross the border.

DHS said its agents were doing their best to address the problems, but they need “congressional action” to close the “legal and judicial loopholes” that have incentivized migrants from Central America to make the dangerous trek to the southern border.

Congress last week passed legislation to allocate $4.6 billion for humanitarian aid for migrant families following public outcry over a photo of a migrant father and his daughter who drowned trying to cross the Rio Grande.

The congressional action did not address any changes to asylum and detention rules that the Trump administration wants to make it harder for Central American immigrants to enter the US.