<style type="text/css">
@page {
    size: A4 portrait;
    margin: 12mm;
}
html { margin: 0; padding: 0; }
body {
    margin: 0;
    padding: 16px 20px;
    font-family: DejaVu Sans, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: #111827;
    background-color: #ffffff;
    box-sizing: border-box;
}
.pdf-wrap {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}
table { width: 100%; border-collapse: collapse; }
/* Sections stay together; long item lists may continue on the next page */
table.pdf-section,
td.pdf-section { page-break-inside: avoid; }
thead tr, tfoot tr { page-break-inside: avoid; }
td, th {
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.45;
    vertical-align: top;
}
table.pdf-items tbody tr { page-break-inside: auto; }
</style>
