Throw-for-a-loop Definition

verb

(idiomatic) To confuse or disorient; to throw off; to mix up.

The detour threw me for a loop and I arrived late for work.
Wiktionary