Why was she detained overnight?

How to say “Why was she detained overnight?” in Japanese

In Japanese

彼女(かのじょ)、どうして一晩中(ひとばんじゅう)拘束(こうそく)されてたの?

Kanojo, dōshite hitobanjū kōsoku sareteta no?

Why was she detained overnight? in other languages