Remove background from badge

Hello,

I’m setting up a dashboard to control the house from a tablet on the wall.
For all the cards, I could remove the background, but on the badges I don’t get it working.
I’m using the card-mod, is there a way to get the background transparent on the badges?

Please post a sample of your code…

This is what I use for the cards on the dashboard, and it works great, but not on the badges.
I tried a lot of configuration I could find on the forum but nothing works.

type: entity
show_name: true
show_state: true
show_icon: true
entity: person.eduard
show_entity_picture: true
card_mod:
  style: |
    ha-card {
       border-width: 0px !important;
       background: none;
       box-shadow: none

If I copy and paste this code it changes nothing, it stays exactly the same as the normal badge.
Am I missing something?

Please specify the badges you mean. The new Sections badges?

Yes that’s correct, sorry for the missing information