The city reached a tentative deal late Tuesday with eight unions representing nearly 12,000 uniformed superior officers — an important step toward inking deals with rank-and-file members.

The $560 million agreement would raise salaries 11.5 percent, when compounded, over seven years for NYPD detectives, lieutenants and captains, as well as for supervisors in the Fire, Sanitation and Correction departments.

It represents an increase of 1 percent over the pattern set by the teachers union, plus a small end-of-career benefit.

“It’s an acknowledgment of the work and the dangers and difficulty of the work,” Mayor de Blasio said at a celebratory announcement at City Hall. “These are the leaders in agencies we depend on every day.”

The only supervising union excluded from the coalition was the Sergeants Benevolent Association, whose president, Ed Mullins, has been at odds with the mayor over a perceived lack of support for the NYPD.

He did not return a call seeking comment.

The Patrolmen’s Benevolent Association, which represents 24,000 rank-and-file police officers, is set to enter binding arbitration with the city over a contract that expired in June 2010.

PBA President Pat Lynch — who also has been butting heads with the mayor — said his members wouldn’t be happy with a deal like the one offered Tuesday because the first year’s payments are delayed.

“Compared to our fellow police officers, we are the lowest paid,” said Lynch. “Zeros are unacceptable.”

The tentative deal includes four straight years of 1 percent raises, retroactive to when the eight unions’ contracts expired in 2011 or 2012.

The increases bump up to 1.5 percent in the fifth year, 2.5 percent in the sixth year and 3 percent in the final year.

A final deal would mean 71 percent of city workers are covered by contracts, all of them negotiated since de Blasio took office Jan. 1.