Repeat Table Header in All Pages in DocType

Hello All,

I create a custom doctype with wide child tables, and I need the table header to be repeated in every scroll of a page (the table header NOT the page header/footer which can be set in erpnext setup)

table.report-container {
section-break-after:always;
}
thead.report-header {
display:table-header-group;
}
tfoot.report-footer {
display:table-footer-group;
}
thead {display: table-header-group; }

Add above lines in you custom print format css section and add that class name in tags like .