down to the wire

📖 general
Meaning
Until the very last moment or the last possible second; a situation where the outcome is not decided until the very end.
Literal Meaning
Referring to a finish line (wire) in a race.
Example
“The election was incredibly close, coming right down to the wire before a winner was declared.”