Padding when "Panel mod" is used

Hi there,

I’m new in home assistant and I just want first said a huge thanks for all the community for the excellent job! I really love it.

I’m facing to a small issue during my configuration which is to add a padding when I use my dashboard with the option “panel mod” activated but I’m not able to add it :’(

I tried to create a new css file, load it in there resources area without any problem, then set as css selector hui-panel-view and add the needed padding but unfortunately this is not working.

Could you tell me what could be the best way to add this padding please.

Thank you for reading and for your help.

Finally found a way by using custom component : card-mod

please, explain how to solve with card-mod

Thanks!