Can someone please help check this css for pdf exporting

Operating system

Windows

Joplin version

3.2.5

Desktop version info

Joplin 3.2.5 (prod, win32)

客户端 ID: 280e49f2b42a439db2331bff3b1cbe79
同步版本:3
配置文件版本:47
支持的密钥链:否

修订:2da789a

Backup: 1.4.2
Copy Anchor Link: 1.1.0
Journal: 1.2.0
Markmap: 1.7.0
Rich Markdown: 0.15.1

Sync target

OneDrive

Editor

Markdown Editor

What issue do you have?

I wanted to make pdf with background color specify the margin for page and number while exporting to pdf.
I have searched forum and with the help of the chatgpt to obtain the following css:

@media print {
    @page {
        margin: 0; /* Set the page margin to 0 */
    }
    body {
        padding: 10mm; /* Set the padding of the content to 10mm on all sides */
        background-color: #F3F2EE!important; /* Set the background color */
        box-sizing: border-box; /* Ensure padding does not affect the content width */
    }
}

But I acutally got the following, the margin for header is zero, this is werid. Can someone please help check the above

Screenshots