All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
Putting your CNIC (Computerized National Identity Card) in your wallet in the way that you have mentioned (in the back pocket of your pants) does not constitute disrespect to the Name of Allaah, The Exalted, because the card is well-preserved and honored. Also, it is not disliked to enter the bathroom with the wallet in your pocket, given the hardship incurred by having to keep it outside each time you enter the bathroom. Ar-Ruhaybaani wrote, “It is not undesirable to enter the bathroom while carrying coins bearing the Name of Allaah due to the hardship incurred of having to put them aside each time one enters the bathroom. The same applies to entering the bathroom while carrying a Hirz (an amulet on which the Name of Allaah is written). An-Naathim (i.e. Ibn Abd Al-Qawiyy) stated that the ruling applies to the Hirz with greater reason.” [Mataalib Uli An-Nuha]
Allaah Knows best.