to the hilt
Also, up to the hilt. Completely, to the maximum degree, as in The house was mortgaged up to the hilt. This idiom alludes to the handle (hilt) of a sword, the only portion that remains out when the weapon is plunged all the way in. The figurative use of the term was first recorded in 1687.