<?xml version="1.0" encoding="windows-1251" ?>
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo">
    <xsl:output method="xml" version="1.0" omit-xml-declaration="no" indent="yes" />
    <xsl:template match="DECLARBODY">
        <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
            <fo:layout-master-set>
                <fo:simple-page-master margin-right="0.5cm" margin-left="2cm" margin-bottom="1cm" margin-top="0.5cm" page-width="21cm" page-height="29.7cm" master-name="first">
                    <fo:region-body margin-top="0cm" margin-bottom="0cm" />
                    <fo:region-before extent="0cm" />
                    <fo:region-after extent="0cm" />
                </fo:simple-page-master>
            </fo:layout-master-set>
            <fo:page-sequence font-family="TimesNewRoman" font-size="8pt" master-reference="first">
                <fo:flow flow-name="xsl-region-body">
		    
		    <xsl:for-each select="/DECLAR/DECLARBODY/PAGE">
			<xsl:variable name="PAGE" select="."/>
			
                    
		     <fo:table space-before.optimum="0.1cm" hyphenate="true">
                        <fo:table-column />
                        <fo:table-column column-width="2.5cm" />
                        <fo:table-column column-width="2cm" />
                        <fo:table-body>
                            <fo:table-row>
                                <fo:table-cell display-align="before" padding-left="0.1cm">
                                    <fo:block text-align="left" color="#cccccc">
					E04T03I
				    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell display-align="center" padding-left="0.1cm">
                                    <fo:block>
                                        № аркуша звіту
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell padding-left="0.1cm" border-bottom="solid" border-width="0.25pt" display-align="center">
                                    <fo:block text-align="center">
                                        <fo:inline>
                                            <xsl:value-of select="HEADER/PAGE_NUM" />
                                        </fo:inline>
                                    </fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                        </fo:table-body>
                    </fo:table>
		    
                    <fo:table space-before.optimum="0.2cm" font-size="8pt">
                        <fo:table-column column-number="1" />
                        <fo:table-column column-number="2" column-width="2cm" />
                        <fo:table-column column-number="3" column-width="1cm" />
                        <fo:table-column column-number="4" column-width="2cm" />
                        <fo:table-body>
                            <fo:table-row>
                                <fo:table-cell display-align="center" text-align="left" padding-left="0.1cm">
                                    <fo:block>1. Звіт за місяць: </fo:block>
                                </fo:table-cell>
                                <fo:table-cell padding-left="0.1cm" border-style="solid" border-width="0.25pt" display-align="center">
                                    <fo:block text-align="center">
                                        <fo:inline>
                                            <xsl:value-of select="//PERIOD_MONTH" />
                                        </fo:inline>
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell display-align="center">
                                    <fo:block text-align="center">рік: </fo:block>
                                </fo:table-cell>
                                <fo:table-cell padding-left="0.1cm" border-style="solid" border-width="0.25pt" display-align="center">
                                    <fo:block text-align="center">
                                        <fo:inline>
                                            <xsl:value-of select="//PERIOD_YEAR" />
                                        </fo:inline>
                                    </fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                        </fo:table-body>
                    </fo:table>
                    <fo:table space-before="0.2cm" width="100%" font-size="7.5pt" display-align="center">
                        <fo:table-column column-number="1" column-width="8cm" />
                        <fo:table-column column-number="2" column-width="4.5cm" />
                        <fo:table-column column-number="3" />
                        <fo:table-body>
                            <fo:table-row>
                                <fo:table-cell display-align="center" padding-left="0.1cm">
                                    <fo:block>2. Код за ЄДРПОУ або податковий номер страхувальника</fo:block>
                                </fo:table-cell>
                                <fo:table-cell padding-right="0.1cm" border-style="solid" border-width="0.25pt" display-align="center">
                                    <fo:block text-align="center" font-size="8pt">
                                        <fo:inline>
                                            <xsl:value-of select="HEADER/FIRM_EDRPOU" />
                                        </fo:inline>
                                    </fo:block>
                                </fo:table-cell>
				<fo:table-cell padding-right="0.1cm">
                                    <fo:block text-align="center" font-size="8pt">
                                    </fo:block>
                                </fo:table-cell>
                            </fo:table-row>
			    <fo:table-row>
                                <fo:table-cell display-align="center" padding-left="0.1cm">
                                    <fo:block>3. Код за ЄДРПОУ або податковий номер ліквідованого страхувальника (заповнюється у разі подачі звіту правонаступником)</fo:block>
                                </fo:table-cell>
                                <fo:table-cell padding-right="0.1cm" border-style="solid" border-width="0.25pt" display-align="center">
                                    <fo:block text-align="center" font-size="8pt">
                                        <fo:inline>
                                            <xsl:value-of select="HEADER/LIKV_EDRPOU" />
                                        </fo:inline>
                                    </fo:block>
                                </fo:table-cell>
				<fo:table-cell padding-right="0.1cm">
                                    <fo:block text-align="center" font-size="8pt">
                                    </fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                        </fo:table-body>
                    </fo:table>
                    <fo:table space-before="0.2cm" width="100%" font-size="8pt" hyphenate="true" display-align="center">
                        <fo:table-column column-number="1" column-width="3cm" />
                        <fo:table-column column-number="2" column-width="15.4cm" />
                        <fo:table-body>
                            <fo:table-row>
                                <fo:table-cell display-align="center" padding-left="0.1cm" font-weight="bold">
                                    <fo:block>Страхувальник</fo:block>
                                </fo:table-cell>
                                <fo:table-cell padding-left="0.1cm" border-bottom="solid" border-width="0.25pt" display-align="center">
                                    <fo:block font-size="8pt" text-align="center">
                                        <fo:inline>
                                            <xsl:value-of select="HEADER/FIRM_NAME" />
                                        </fo:inline>
                                    </fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                            <fo:table-row>
                                <fo:table-cell display-align="center" padding-left="0.1cm" font-size="6pt" number-columns-spanned="2">
                                    <fo:block text-align="center">(найменування страхувальника)</fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                        </fo:table-body>
                    </fo:table>
		    
                    <fo:block font-size="9pt">
                        <fo:leader></fo:leader>
                    </fo:block>
                    <fo:block font-size="9pt" font-weight="bold" text-align="center">Таблиця 3. Нарахування єдиного внеску на загальнообов'язкове державне 
                    </fo:block>
		    <fo:block font-size="9pt" font-weight="bold" text-align="center">соціальне страхування за осіб, які проходять строкову військову службу
                    </fo:block>
		    <fo:block font-size="2pt">
                        <fo:leader></fo:leader>
                    </fo:block>
                    <fo:table space-before="0.1cm" width="100%" hyphenate="true" display-align="center">
                        <fo:table-column column-number="1" column-width="10.4cm" />
                        <fo:table-column column-number="2" column-width="2cm" />
                        <fo:table-column column-number="3" column-width="2cm" />
                        <fo:table-column column-number="4" column-width="2cm" />
                        <fo:table-column column-number="5" column-width="2cm" />
                        <fo:table-body>
                            <fo:table-row>
                                <fo:table-cell border-style="solid" border-width="0.25pt" display-align="center" number-rows-spanned="2">
                                    <fo:block keep-with-next="always" text-align="center" font-weight="bold">Назва показника</fo:block>
                                </fo:table-cell>
                                <fo:table-cell border-style="solid" border-width="0.25pt" display-align="center" number-rows-spanned="2">
                                    <fo:block keep-with-next="always" text-align="center" font-weight="bold">Кількість осіб, яким нараховане грошове забезпечення у звітному місяці</fo:block>
                                </fo:table-cell>
                                <fo:table-cell border-style="solid" border-width="0.25pt" display-align="center" number-columns-spanned="3">
                                    <fo:block keep-with-next="always" text-align="center" font-weight="bold">Нараховано єдиного внеску</fo:block>
                                    <fo:block keep-with-next="always" text-align="center" font-weight="bold">(грн.)</fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                            <fo:table-row>
                                <fo:table-cell border-style="solid" border-width="0.25pt" display-align="center">
                                    <fo:block keep-with-next="always" text-align="center" font-weight="bold">у звітному місяці</fo:block>
                                </fo:table-cell>
                                <fo:table-cell border-style="solid" border-width="0.25pt" display-align="center">
                                    <fo:block keep-with-next="always" text-align="center" font-weight="bold">у тому числі за попередні звітні періоди
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell border-style="solid" border-width="0.25pt" display-align="center">
                                    <fo:block keep-with-next="always" text-align="center" font-weight="bold">з початку року</fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                            <fo:table-row>
                                <fo:table-cell border-style="solid" border-width="0.25pt" display-align="center">
                                    <fo:block keep-with-next="always" text-align="center" font-weight="bold">1</fo:block>
                                </fo:table-cell>
                                <fo:table-cell border-style="solid" border-width="0.25pt" display-align="center">
                                    <fo:block keep-with-next="always" text-align="center" font-weight="bold">2</fo:block>
                                </fo:table-cell>
                                <fo:table-cell border-style="solid" border-width="0.25pt" display-align="center">
                                    <fo:block keep-with-next="always" text-align="center" font-weight="bold">3</fo:block>
                                </fo:table-cell>
                                <fo:table-cell border-style="solid" border-width="0.25pt" display-align="center">
                                    <fo:block keep-with-next="always" text-align="center" font-weight="bold">4</fo:block>
                                </fo:table-cell>
                                <fo:table-cell border-style="solid" border-width="0.25pt" display-align="center">
                                    <fo:block keep-with-next="always" text-align="center" font-weight="bold">5</fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                            <fo:table-row>
                                <fo:table-cell border-style="solid" border-width="0.25pt" display-align="center" padding-left="0.1cm">
                                    <fo:block keep-with-next="always">
                                       Особи, які проходять строкову військову службу у Збройних Силах України, інших утворених відповідно до закону військових формуваннях, Служба безпеки України, органах МВС та службу в органах і підрозділах цивільного захисту
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell padding-left="0.1cm" padding-right="0.1cm" border-style="solid" border-width="0.25pt">
                                    <fo:block text-align="center">
                                        <xsl:if test="string-length(TABLE/COL1_0) = 0"> - </xsl:if><xsl:if test="string-length(TABLE/COL1_0) &gt; 0"><xsl:value-of select="TABLE/COL1_0" /></xsl:if>
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell padding-left="0.1cm" padding-right="0.1cm" border-style="solid" border-width="0.25pt">
                                    <fo:block text-align="center">
                                        <xsl:if test="string-length(TABLE/SUM1_0) = 0"> - </xsl:if><xsl:if test="string-length(TABLE/SUM1_0) &gt; 0"><xsl:value-of select="TABLE/SUM1_0" /></xsl:if>
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell padding-left="0.1cm" padding-right="0.1cm" border-style="solid" border-width="0.25pt">
                                    <fo:block text-align="center">
                                        <xsl:if test="string-length(TABLE/SUM1_1) = 0"> - </xsl:if><xsl:if test="string-length(TABLE/SUM1_1) &gt; 0"><xsl:value-of select="TABLE/SUM1_1" /></xsl:if>
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell padding-left="0.1cm" padding-right="0.1cm" border-style="solid" border-width="0.25pt">
                                    <fo:block text-align="center">
                                        <xsl:if test="string-length(TABLE/SUM1_2) = 0"> - </xsl:if><xsl:if test="string-length(TABLE/SUM1_2) &gt; 0"><xsl:value-of select="TABLE/SUM1_2" /></xsl:if>
                                    </fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                        </fo:table-body>
                    </fo:table>
		    
		    <fo:block text-align="left" font-size="6pt" margin="3pt 2pt">
			* Для фізичних осіб, які мають відмітку в паспорті про право здійснювати будь-які платежі за серією та номером паспорта.
		     </fo:block>
		    
                    <fo:table space-before.optimum="0.5cm" start-indent="0pt">
                        <fo:table-column column-number="1" column-width="5cm" />
                        <fo:table-column column-number="2" column-width="2cm" />
                        <fo:table-column column-number="3" column-width="11.4cm" />
                        <fo:table-body start-indent="0pt" end-indent="0pt">
                            <fo:table-row>
                                <fo:table-cell padding-left="0.1cm">
                                    <fo:block>
                                        <fo:inline>
                                            Дата формування у страхувальника</fo:inline>
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell padding-left="0.1cm" border-style="solid" border-width="0.25pt">
                                    <fo:block text-align="center" font-weight="bold">
                                        <xsl:value-of select="concat(substring(//DATA_FILL,1,2),'.',substring(//DATA_FILL,3,2),'.',substring(//DATA_FILL,5,4))" />
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell padding-left="0.1cm" text-align="center">
                                    <fo:block font-weight="bold">
                                        <fo:inline>
                                        </fo:inline>
                                    </fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                        </fo:table-body>
                    </fo:table>
                    <fo:table space-before="0.5cm" width="100%" hyphenate="true" break-after="page">
                        <fo:table-column column-number="1" column-width="3cm" />
                        <fo:table-column column-number="2" column-width="3cm" />
                        <fo:table-column column-number="3" column-width="0.5cm" />
                        <fo:table-column column-number="4" column-width="4cm" />
                        <fo:table-column column-number="5" column-width="0.5cm" />
                        <fo:table-column column-number="6" column-width="6cm" />
                        <fo:table-column column-number="7" column-width="1.4cm" />
                        <fo:table-body>
                            <fo:table-row>
                                <fo:table-cell>
                                    <fo:block keep-with-next="always" text-align="left">Керівник</fo:block>
                                </fo:table-cell>
                                <fo:table-cell padding-left="0.1cm" padding-right="5.4pt" border-style="solid" border-width="0.25pt" display-align="center">
                                    <fo:block text-align="center" font-weight="bold">
                                        <xsl:value-of select="FOOTER/BOSS_NUMIDENT" />
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell display-align="center" number-rows-spanned="2">
                                    <fo:block keep-with-next="always" text-align="center"></fo:block>
                                </fo:table-cell>
                                <fo:table-cell border-bottom="solid" border-width="0.25pt" display-align="center">
                                    <fo:block keep-with-next="always" text-align="center"></fo:block>
                                </fo:table-cell>
                                <fo:table-cell display-align="center" number-rows-spanned="2">
                                    <fo:block keep-with-next="always" text-align="center"></fo:block>
                                </fo:table-cell>
                                <fo:table-cell padding-left="0.1cm" padding-right="5.4pt" border-bottom="solid" border-width="0.25pt" display-align="center">
                                    <fo:block text-align="center" font-weight="bold">
                                        <xsl:value-of select="FOOTER/FIRM_BOSS" />
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell display-align="center" number-rows-spanned="2">
                                    <fo:block keep-with-next="always" text-align="center"></fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                            <fo:table-row>
                                <fo:table-cell>
                                    <fo:block keep-with-next="always" text-align="left" font-weight="bold"></fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block keep-with-next="always" text-align="center" font-size="6pt">(податковий номер або серія та номер паспорта*) </fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block keep-with-next="always" text-align="center" font-size="6pt">(підпис)</fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block keep-with-next="always" text-align="center" font-size="6pt">(ініціали та прізвище)</fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                            <fo:table-row>
                                <fo:table-cell number-columns-spanned="7">
                                    <fo:block keep-with-next="always" text-align="left">М.П.</fo:block>
				    <fo:block  text-align="left" font-size="6pt"> (за наявності)</fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                            <fo:table-row>
                                <fo:table-cell>
                                    <fo:block keep-with-next="always" text-align="left">Головний бухгалтер</fo:block>
                                </fo:table-cell>
                                <fo:table-cell padding-left="0.1cm" padding-right="5.4pt" border-style="solid" border-width="0.25pt" display-align="center">
                                    <fo:block text-align="center" font-weight="bold">
                                        <xsl:value-of select="FOOTER/BUH_NUMIDENT" />
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell display-align="center" number-rows-spanned="2">
                                    <fo:block keep-with-next="always" text-align="center"></fo:block>
                                </fo:table-cell>
                                <fo:table-cell border-bottom="solid" border-width="0.25pt" display-align="center">
                                    <fo:block keep-with-next="always" text-align="center"></fo:block>
                                </fo:table-cell>
                                <fo:table-cell display-align="center" number-rows-spanned="2">
                                    <fo:block keep-with-next="always" text-align="center"></fo:block>
                                </fo:table-cell>
                                <fo:table-cell padding-left="0.1cm" padding-right="5.4pt" border-bottom="solid" border-width="0.25pt" display-align="center">
                                    <fo:block text-align="center" font-weight="bold">
                                        <xsl:value-of select="FOOTER/FIRM_BUH" />
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell display-align="center" number-rows-spanned="2">
                                    <fo:block keep-with-next="always" text-align="center"></fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                            <fo:table-row>
                                <fo:table-cell>
                                    <fo:block keep-with-next="always" text-align="left" font-weight="bold"></fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block keep-with-next="always" text-align="center" font-size="6pt">(податковий номер або серія та номер паспорта*) </fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block keep-with-next="always" text-align="center" font-size="6pt">(підпис)</fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block keep-with-next="always" text-align="center" font-size="6pt">(ініціали та прізвище)</fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                        </fo:table-body>
                    </fo:table>
		    
		    </xsl:for-each>
		    
                </fo:flow>
            </fo:page-sequence>
        </fo:root>
    </xsl:template>
</xsl:stylesheet>