brown study
brown study {n. phr.}
A time of deep thought about something; a deep thoughtful mood.
When his wife found him, he had pushed away his books and was in a brown study.
Categories:
Source: A Dictionary of American Idioms