Roughly in the 1960s, though the process started before that and arguably didn't finish until the 1990s or so. More here: https://www.reddit.com/r/AskHistorians/wiki/us_history#wiki_changing_role_of_republicans_and_democrats