SACRAMENTO, Calif. (AP) — The latest vote tallies from Los Angeles and Orange counties show Democrat Vanessa Delgado has won a special election to replace a California state senator who resigned over sexual misconduct allegations.

Numbers released Friday show Delgado ahead of Republican businesswoman Rita Topalian by 4 percentage points, a wide enough margin to ensure her victory. More than 50,000 votes had been counted with outstanding ballots likely in the low hundreds.

Delgado, the mayor of Montebello could be sworn in as early as Monday. She'll serve for less than a month in Sacramento before her term ends.

In a strange twist, primary voters in June chose Delgado for the special election but a different Democrat, Bob Archuleta, to face Topalian in November. The winner of that contest will get a four-year term.

The Legislature's regular session concludes at the end of August. Delgado's replacement will take office in December.

During her short term, Delgado says she will focus on securing resources for the district, which has lacked representation since former state Sen. Tony Mendoza resigned in February. She ran on a platform focused on affordable housing and school reform.

Delgado's victory will bring the Senate Democrats just one seat short of a supermajority.