<?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-width="21cm" page-height="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">

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

			<!-- table start -->
			<fo:table table-layout="fixed" border-collapse="separate">
				<fo:table-column column-width="10mm" />
				<fo:table-column column-width="80mm" />
				<fo:table-column column-width="25mm" />
				<fo:table-column column-width="25mm" />
				<fo:table-column column-width="25mm" />
				<fo:table-column column-width="25mm" />

				<fo:table-body>
					<fo:table-row>
						<fo:table-cell border-width="0.02mm" border-style="none" number-columns-spanned="6" display-align="center">
							<fo:block text-align="center" font-size="20pt" font-weight="bold" font-style="italic">Raport de productie</fo:block>
						</fo:table-cell>
					</fo:table-row>

				    <fo:table-row>
				        <fo:table-cell border-width="0.02mm" border-style="none" number-columns-spanned="6" display-align="center">
							<fo:block text-align="start">Societatea: %%societatea%%</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="6" display-align="center">
							<fo:block text-align="start" font-weight="bold">Perioada : %%perioada%%</fo:block>
						</fo:table-cell>
                    </fo:table-row>

					<fo:table-row>
						<fo:table-cell border-width="0.02mm" border-style="none" number-columns-spanned="6" 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" display-align="center">
							<fo:block text-align="center" font-weight="bold">Nr. Crt.</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">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">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 p. achizitie</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">Pret unitar</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 p. vanzare</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" number-columns-spanned="3">
							<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" number-columns-spanned="1" >
							<fo:block text-align="center" font-weight="bold">%%totalAchizitie%%</fo:block>
						</fo:table-cell>
	
						<fo:table-cell border-width="0.02mm" border-style="none" display-align="center" number-columns-spanned="1" >
							<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="1" >
							<fo:block text-align="center" font-weight="bold">%%totalVanzare%%</fo:block>
						</fo:table-cell>
	
					</fo:table-row>
					
				</fo:table-body>
			</fo:table>
			<!-- table end -->

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