<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

	<!-- defines the layout master -->
	<fo:layout-master-set>
		<fo:simple-page-master master-name="first" page-height="21cm" page-width="29.7cm" margin-top="1cm" margin-bottom="1cm" margin-left="1cm" margin-right="1cm">
			<fo:region-body margin-top="1cm" margin-bottom="1cm" />
			<fo:region-before extent="1cm" />
			<fo:region-after extent="1cm" />
		</fo:simple-page-master>
	</fo:layout-master-set>

	<!-- starts actual layout -->
	<fo:page-sequence master-reference="first">

	<!-- usage of page layout -->
<!-- header -->
<fo:static-content flow-name="xsl-region-before">
<fo:block text-align="end"
    font-size="10pt"
    font-family="serif"
    line-height="14pt" >
Pagina <fo:page-number/> din <fo:page-number-citation ref-id="last-page"/>
</fo:block>

</fo:static-content>

		<fo:flow flow-name="xsl-region-body">

			<!-- table start -->
			<fo:table table-layout="fixed" border-collapse="separate">
				<fo:table-column column-width="60mm" />
				<fo:table-column column-width="16mm" />
				<fo:table-column column-width="23mm" />
				<fo:table-column column-width="23mm" />
				<fo:table-column column-width="23mm" />
				<fo:table-column column-width="23mm" />
				<fo:table-column column-width="23mm" />
				<fo:table-column column-width="23mm" />
				<fo:table-column column-width="23mm" />
				<fo:table-column column-width="23mm" />

				<fo:table-body>
					<fo:table-row>
						<fo:table-cell border-width="0.02mm" border-style="none" number-columns-spanned="1" display-align="center">
							<fo:block text-align="center" font-weight="bold">Perioada : %%perioada%%</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="none" number-columns-spanned="5" display-align="center">
							<fo:block text-align="center" font-size="20pt" font-weight="bold" font-style="italic">Balanta de stocuri pe depozite</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="none" number-columns-spanned="3" display-align="center">
							<fo:block text-align="start">Societatea: %%societatea%%</fo:block>
							<fo:block text-align="start">Adresa: %%adresa%%</fo:block>
							<fo:block text-align="start">CUI: %%cui%%</fo:block>
							<fo:block text-align="start" white-space-collapse="false"> </fo:block>
						</fo:table-cell>

					</fo:table-row>

					<fo:table-row>
						<fo:table-cell border-width="0.02mm" border-style="none" number-columns-spanned="10" display-align="center">
							<fo:block text-align="center" white-space-collapse="false"> </fo:block>
						</fo:table-cell>
					</fo:table-row>

					<fo:table-row>

						<fo:table-cell border-width="0.02mm" border-style="none" number-columns-spanned="1" display-align="center">
							<fo:block text-align="center" font-weight="bold">%%magazia%%</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="none" number-columns-spanned="1" display-align="center">
                                                        <fo:block text-align="center" white-space-collapse="false"> </fo:block>
                                                </fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="none" number-columns-spanned="2" display-align="center">
							<fo:block text-align="center" font-weight="bold">Stoc initial</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="none" number-columns-spanned="2" display-align="center">
							<fo:block text-align="center" font-weight="bold">Intrari</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="none" number-columns-spanned="2" display-align="center">
							<fo:block text-align="center" font-weight="bold">Iesiri</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="none" number-columns-spanned="2" display-align="center">
							<fo:block text-align="center" font-weight="bold">Stoc final</fo:block>
						</fo:table-cell>
					</fo:table-row>

					<fo:table-row>

						<fo:table-cell border-width="0.02mm" border-style="none" display-align="center">
							<fo:block text-align="center" font-weight="bold">Articol</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="none" display-align="center">
                                                        <fo:block text-align="center" font-weight="bold">UM</fo:block>
                                                </fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="none" display-align="center">
							<fo:block text-align="center" font-weight="bold">Cantitate</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="none" display-align="center">
							<fo:block text-align="center" font-weight="bold">Valoare</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="none" display-align="center">
							<fo:block text-align="center" font-weight="bold">Cantitate</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="none" display-align="center">
							<fo:block text-align="center" font-weight="bold">Valoare</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="none" display-align="center">
							<fo:block text-align="center" font-weight="bold">Cantitate</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="none" display-align="center">
							<fo:block text-align="center" font-weight="bold">Valoare</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="none" display-align="center">
							<fo:block text-align="center" font-weight="bold">Cantitate</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="none" display-align="center">
							<fo:block text-align="center" font-weight="bold">Valoare</fo:block>
						</fo:table-cell>
					</fo:table-row>
					
					%%entries%%
					
					<fo:table-row>
						<fo:table-cell border-width="0.02mm" border-style="none" display-align="center">
							<fo:block text-align="center" font-weight="bold" white-space-collapse="false">TOTAL</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="none" display-align="center">
                                                        <fo:block text-align="center" font-weight="bold" white-space-collapse="false"> </fo:block>
                                                </fo:table-cell>
	
						<fo:table-cell border-width="0.02mm" border-style="none" display-align="center" number-columns-spanned="2" >
							<fo:block text-align="center" font-weight="bold">%%initiala%%</fo:block>
						</fo:table-cell>
	
						<fo:table-cell border-width="0.02mm" border-style="none" display-align="center" number-columns-spanned="2" >
							<fo:block text-align="center" font-weight="bold">%%intrata%%</fo:block>
						</fo:table-cell>
	
						<fo:table-cell border-width="0.02mm" border-style="none" display-align="center" number-columns-spanned="2" >
							<fo:block text-align="center" font-weight="bold">%%iesita%%</fo:block>
						</fo:table-cell>
	
						<fo:table-cell border-width="0.02mm" border-style="none" display-align="center" number-columns-spanned="2" >
							<fo:block text-align="center" font-weight="bold">%%finala%%</fo:block>
						</fo:table-cell>
					</fo:table-row>
					
				</fo:table-body>
			</fo:table>
			<!-- table end -->

<fo:block id="last-page"/>

		</fo:flow>
	</fo:page-sequence>
</fo:root>
