Djokovic in detention as visa battle looms