to the detriment of
idiomDefinition of to the detriment of
formal
: in a way that is harmful to (someone or something)
He puts all his time into his career, to the detriment of his personal life.