detainment

noun

1.
a state of being confined (usually for a short time)