Idiom: Down to the wire

Down to the wire: at the very end of a process or project that it is possible to do something
Example: It was a battle of strength that came down to the wire when we challenged our client to settle down the open issues.