Table header shows at top of page during print
<p>I'm trying to create printable pages for my web app. I came across someone's JSFiddle and have been trying to implement it. </p>

<p>Here is the link with my added code below.</p>

<p><a href="http://jsfiddle.net/2wk6Q/5272/" rel="nofollow">http://jsfiddle.net/2wk6Q/5272/</a></p>

<pre><code>body {
    margin: 0;
    padding: 0;
    background-color: #FAFAFA;
    font: 12pt "Times New Roman";
}

.report-title{
    padding: 0px;
}

.org-info{
    padding: 0px;
    font-size: 11px;
    margin-bottom: 50px;
}


* {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.page {
    width: 21cm;
    min-height: 29.7cm;
    padding: 2cm;
    margin: 1cm auto;
    border: 1px #D3D3D3 solid;
    border-radius: 5px;
    background: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

@page {
    size: A4;
    margin: 0;
}
@media print {
    .page {
        margin: 0;
        border: initial;
        border-radius: initial;
        width: initial;
        min-height: initial;
        box-shadow: initial;
        background: initial;
        page-break-after: always;
    }

    /*
    table { 
        page-break-inside:auto 
    }
    tr { 
        page-break-inside: avoid; 
        page-break-after: auto; 
    }
    thead{ 
        display:table-header-group 
    }

    tfoot { 
        display:table-footer-group 
    }
    */

}
</code></pre>

<p>It works pretty well but it displays the table header at the top of the page that contains the table.</p>

<p><a href="https://i.stack.imgur.com/GBuai.png" rel="nofollow"><img src="https://i.stack.imgur.com/GBuai.png" alt="enter image description here"></a></p>

<p>Here is my mustache template that I am using to display the data.</p>

<pre><code>{{#members}}
&lt;div class="page"&gt;
    &lt;h3 class="text-center report-title"&gt;{{orgName}} {{year}} Annual Giving Statement&lt;/h3&gt;
    &lt;div class="org-info text-center"&gt;
        &lt;p&gt;No goods or services were provided, only intangible religious benefits. Tax ID: {{taxId}}&lt;/p&gt;
        &lt;p&gt;{{orgName}} * {{orgAddress1}} {{orgAddress2}} * {{orgCity}}, {{orgState}} {{orgZip}}&lt;/p&gt;
        &lt;p&gt;{{orgContact}} * {{orgEmail}} * {{orgUrl}}&lt;/p&gt;
    &lt;/div&gt;
    &lt;p&gt;{{date}}&lt;/p&gt;
    &lt;address&gt;
       {{displayName}}&lt;br&gt;
       {{address1}}&lt;br&gt;
       {{#address2Exists}}
        {{address2}}&lt;br&gt;
       {{/address2Exists}} 
       {{city}}, {{state}}  {{zip}}
    &lt;/address&gt;
    &lt;p&gt;
        Dear {{displayName}},
        &lt;br&gt;&lt;br&gt;
        Thank you so much for your generosity in support of the mission God has given Brian's Test. Below is
        your tax deductible giving summary of gifts received during the 2016 calendar year. On the following
        page you will find an itemized giving statement. As a reminder, items purchased, such as shirts,
        artwork, coffee mugs, etc, are not tax deductible, as well as any monies for an event where goods or
        services were provided.
        &lt;br&gt;
        &lt;br&gt;
        Also enclosed you will find a copy of the 2016 Budget Report. This report as well as each quarter's
        report are also available for access online at illcomplacent.com. If you have any questions about this
        statement or any portion of the budget report, please feel free to call or email us anytime.
        &lt;br&gt;
        &lt;br&gt;
        Sincerly,
        &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;
        {{orgContact}}
    &lt;/p&gt;
&lt;/div&gt;
&lt;div class="page"&gt;
    &lt;h3 class="text-center"&gt;Total {{year}} YTD Tax Deductible Gift: ${{sum}}&lt;/h3&gt;
    &lt;br&gt;
    &lt;table class="table table-condensed"&gt;
        &lt;thead&gt;
            &lt;th&gt;Date Received&lt;/th&gt;
            &lt;th&gt;Type&lt;/th&gt;
            &lt;th&gt;Amount&lt;/th&gt;
        &lt;/thead&gt;
        &lt;tbody&gt;
            {{#donations}}
                &lt;tr&gt;
                    &lt;td&gt;{{dateRec}}&lt;/td&gt;
                    &lt;td&gt;{{paymentType}}&lt;/td&gt;
                    &lt;td&gt;${{amount}}&lt;/td&gt;
                &lt;/tr&gt;
            {{/donations}}               
        &lt;/tbody&gt;
        &lt;tfoot&gt;
            &lt;td&gt;&lt;/td&gt;
            &lt;td&gt;&lt;/td&gt;
            &lt;td&gt;&lt;strong&gt;${{sum}}&lt;/strong&gt;&lt;/td&gt;
        &lt;/tfoot&gt;
    &lt;/table&gt;
&lt;/div&gt;
{{/members}}
</code></pre>

<p>I'm not sure what other options I have. I need to be able to create printable pages because they are reports. If anyone has any other idea's I am totally up for it. </p>