You need to hand it to President Donald Trump, his entire administration and his party. It takes more than a little chutzpah to act in a way that seems callous to the concerns of children. First, it was gun control. Now it is immigration in general, and separating children from their parents in particular. If this is the way to winning the midterms, it’s hard to see how.

Republicans have talked for decades about crime, drugs, national security, traditional values, the dangers associated with big government and helping businesses produce economic growth.

GOP candidates are comfortable talking about those themes during campaigns, and the party’s voters have become accustomed to hearing those issues addressed.

Democrats, on the other hand, have talked more about quality-of-life issues, the environment, health care, gun control and helping the more disadvantaged and vulnerable in society, including the poor, the elderly, single mothers and children. Democratic voters expect their candidates to stress those topics and offer prescriptions.

At certain moments, Republican priorities have broader appeal, while at other times the Democratic message has been shown to be superior.

Not surprisingly, swing voters go back and forth between the two parties, depending on the issue mix and the country’s priorities, and enthusiasm within both parties ebbs and flows.

Fall focus

If this November’s elections are about the state of the economy, Republicans will do quite well. Most of the economic indicators are good, and while things could change over the next few months, they are not likely to deteriorate dramatically.

Republicans would likely keep the House and Senate if the midterms were only a referendum on the president’s handling of the economy.

But the economy isn’t dominating voters’ attention these days.

The June 1-4 NBC News/Wall Street Journal poll asked registered voters about the “most important factor in deciding your vote” and found five issues bunched together in the double digits: health care; economy and jobs; guns; taxes and spending; and immigration.

In tough economic times (whether high unemployment or high inflation), the economy and jobs inevitably rank far ahead of other concerns because people think first about putting food on the table and paying the mortgage.

But today, when jobs are relatively plentiful and Americans feel upbeat about the economy, people have time to think about other issues and problems — such as health care, gun control and how people should be treated.

Now, after spending the last couple of years demonizing immigrants, fighting those who advocate more diversity, ripping up government regulations, cutting taxes for corporate America and doing little to respond to a series of school-related shootings, President Donald Trump doubled down on immigration, producing a “zero tolerance” policy that meant separating children from their parents, before backtracking on Wednesday with an executive order after the uproar penetrated even the Oval Office’s usual political calculus.

Core Trump voters — the kind of people who watch the Fox News prime-time lineup religiously and complain that members of the national media are the enemy — are certain to accept White House positions on the border and agree with congressional Republicans on guns.

But core Trump voters won’t decide control of the House in the midterms.

Quinnipiac’s widely noted June 14-17 national poll showed two out of three voters opposing the administration’s policy of separating children from their parents when families illegally cross the border.

The numbers among independent voters (68 percent opposing separation), whites with a college degree (68 percent opposing) and white women (65 percent opposing) suggest the White House badly mishandled the issue, and it’s not hard to see why Trump started backpedaling.

Even more than one in three Republicans disapprove of the administration’s behavior.

Misjudging the mood

If reports are correct that Trump thought the “zero tolerance” policy would help him politically, he seems to have miscalculated badly. There is nothing wrong with a president seeking to energize his party’s base. But that is all that Trump ever does.

He never tries to broaden his appeal. The controversy over separating children from their parents, like the White House’s response to school shootings, helps push quality of life to the fore of this election cycle, taking voters’ attention away from the economy.

Trump and his party look cruel and cold-hearted, costing the Republicans female voters, suburbanites, independents and voters with a college degree — and that’s before Democrats spend millions of dollars painting the picture of a president and a political party indifferent to school shootings and insensitive to the plight of children.

Combined with likely improved turnout among liberals and possibly even minorities and younger voters (who often don’t bother to vote in midterms), the movement among swing voters and soft Republicans seems like a recipe for a remarkably good Democratic election.

Trump would be much better off talking about his role in creating jobs and starting a dialogue with North Korea.

But the president, who appears tone-deaf when it comes to quality-of-life issues such as guns, health care and the environment, simply prefers spending his time fighting with America’s friends, imposing tariffs, pushing his immigration agenda and attacking the FBI and Robert Mueller.

And regardless of any presidential or congressional action, the damage to the GOP has already been done.