The presence of tobacco components, including nicotine, can be detected in hair follicles for a considerable period, often up to 90 days or even longer.