<?xml version="1.0" encoding="UTF-8"?>
<Definition labelDebug="false">
	<Import url="[config.mod.template]window.xml" />
	<Import url="[config.mod.template]block.xml" />
	<Import url="[config.mod.template]button/horizontalTab.xml" />
	<Import url="[config.mod.template]button/themeHorizontalTab.xml" />
	<Import url="[config.mod.template]button/iconButton.xml" />
	<Import url="[config.mod.template]button/sortButton.xml" />
	<Constants>
		<Constant name="assets" value="[config.ui.skin]assets.swf|" />
       	<Constant name="css" value="[config.ui.skin]css/" />
       	<Constant name="common" value="[config.ui.skin]common/" />
       	<Constant name="texture" value="[config.ui.skin]texture/" />
	</Constants>
	
	<Container name="mainCtr">
		<Size>
            <AbsDimension x="852" y="550" />
        </Size>
		
		<Anchors>
			<Anchor relativePoint="CENTER" point="CENTER">
			</Anchor>
		</Anchors>
		
		<window title="[ui.sell.offlineSales.title]"
				dark="true">
			<Size>
				 <AbsDimension x="852" y="552" />
			</Size>
			
			<Content>
			
				<themeHorizontalTab name="btn_sales">
					<Anchors>
						<Anchor>
							<AbsDimension x="25" y="11" />
						</Anchor>
					</Anchors>
					<Size>
						<AbsDimension x="140" y="40" />
					</Size>
					<text>[ui.sell.sales]</text>
				</themeHorizontalTab>
				<themeHorizontalTab name="btn_unsoldItems">
					<Anchors>
						<Anchor>
							<AbsDimension x="170" y="11" />
						</Anchor>
					</Anchors>
					
					<Size>
						<AbsDimension x="140" y="40" />
					</Size>
					<text>[ui.sell.unsoldItems]</text>
				</themeHorizontalTab>
				
				<block name="gridBlock" dark="false">
					<Anchors>
	                    <Anchor relativePoint="TOP" point ="TOP">
	                        <AbsDimension y="46" />
	                    </Anchor>
	                </Anchors>
	                <Size>
	                   <!--  <RelDimension x="0.96"/> -->
	                    <AbsDimension x="800" y="424"/>
	                </Size>
	                <dark>false</dark>
	                <headerHeight>40</headerHeight>
	                <footerHeight>70</footerHeight>
			
					<Content>
						<sortButton name="btn_sortItemIndex">		
							<Size>
								<AbsDimension x="75" y="36" />
							</Size> 
						</sortButton>
						<Label name="lbl_sortItemIndex">
							<Anchors>
								<Anchor>
									<AbsDimension x="5" y="7" />
								</Anchor>
							</Anchors>
							<Size>
								<AbsDimension x="70" y="24"/>
							</Size>
							<css>[local.css]normal2.css</css>
							<cssClass>boldcenter</cssClass>
						</Label>
			
						<sortButton name="btn_sortItemName">
							<Anchors>
								<Anchor>
									<AbsDimension x="75" />
								</Anchor>
							</Anchors>				
							<Size>
								<AbsDimension x="275" y="36" />
							</Size>
						</sortButton>
						<sortButton name="btn_sortUnsoldItemName">
							<Anchors>
								<Anchor>
									<AbsDimension x="75"/>
								</Anchor>
							</Anchors>				
							<Size>
								<AbsDimension x="420" y="36" />
							</Size>
						</sortButton>
						<Label name="lbl_sortItemName">
							<Anchors>
								<Anchor>
									<AbsDimension x="75" y="7" />
								</Anchor>
							</Anchors>
							<Size>
								<AbsDimension x="275" y="24"/>
							</Size>
							<css>[local.css]normal2.css</css>
							<cssClass>bold</cssClass>	
						</Label>
			
						<sortButton name="btn_sortItemQuantity">
							<Anchors>
								<Anchor>
									<AbsDimension x="350"/>
								</Anchor>
							</Anchors>				
							<Size>
								<AbsDimension x="100" y="36" />
							</Size>
						</sortButton>
						<Label name="lbl_sortItemQuantity">
							<Anchors>
								<Anchor>
									<AbsDimension x="350" y="7" />
								</Anchor>
							</Anchors>
							<Size>
								<AbsDimension x="100" y="24"/>
							</Size>
							<css>[local.css]normal2.css</css>
							<cssClass>boldright</cssClass>	
						</Label>
			
						<sortButton name="btn_sortItemKamas">
							<Anchors>
								<Anchor>
									<AbsDimension x="450"/>
								</Anchor>
							</Anchors>				
							<Size>
								<AbsDimension x="188" y="36" />
							</Size>
						</sortButton>
						<Label name="lbl_sortItemKamas">
							<Anchors>
								<Anchor>
									<AbsDimension x="468" y="7" />
								</Anchor>
							</Anchors>
							<Size>
								<AbsDimension x="130" y="24"/>
							</Size>
							<css>[local.css]normal2.css</css>
							<cssClass>boldright</cssClass>	
						</Label>
			
						<sortButton name="btn_sortSaleType">
							<Anchors>
								<Anchor>
									<AbsDimension x="638"/>
								</Anchor>
							</Anchors>				
							<Size>
								<AbsDimension x="146" y="36" />
							</Size>
						</sortButton>
						<Label name="lbl_sortSaleType">
							<Anchors>
								<Anchor>
									<AbsDimension x="650" y="7" />
								</Anchor>
							</Anchors>
							<Size>
								<AbsDimension x="140" y="24"/>
							</Size>
							<css>[local.css]normal2.css</css>
							<cssClass>bold</cssClass>	
							
						</Label>
						
						<!-- Grid Background -->
						<TextureBitmap name="grid_background">
							<Anchors>
								<Anchor>
									<AbsDimension x="-4" y="34"/>
								</Anchor>
							</Anchors>
							<Size>
								<AbsDimension x="800" y="300" />
							</Size>
							<themeDataId>bg_small_border_light</themeDataId>
						</TextureBitmap>
					
						<!-- Grid -->
						<Grid name="gd_sales">
							<Anchors>
								<Anchor>
									<AbsDimension x="0" y="42" />
								</Anchor>
							</Anchors>
							<Size>
								<AbsDimension x="780" y="300" />
								<!-- <RelDimension x ="1"/> -->
							</Size>
							<rendererName>InlineXmlGridRenderer</rendererName>
							<rendererArgs>updateSaleLine,[colors.grid.line]</rendererArgs>
							<verticalScrollbarCss>[local.css]scrollBar.css</verticalScrollbarCss>
							<slotWidth>790</slotWidth>
							<slotHeight>40</slotHeight>
				
							<Container>
								<Size>
									<AbsDimension x="784" y="44" />
								</Size>
								<Label name="lbl_item_index">
									<Anchors>
										<Anchor>
											<AbsDimension x="0" y="10" />
										</Anchor>
									</Anchors>
									<Size>
										<AbsDimension x="75" y="44" />
									</Size>
									<useStyleSheet>true</useStyleSheet>
									<cssClass>mediumcenterbold</cssClass>
	                                <css>[local.css]small2.css</css>
								</Label>
								
								<Label name="lbl_item_name">
									<Anchors>
										<Anchor>
											<AbsDimension x="75" y="10" />
										</Anchor>
									</Anchors>
									<Size>
										<AbsDimension x="275" y="44" />
									</Size>
									<hyperlinkEnabled>true</hyperlinkEnabled>
									<useStyleSheet>true</useStyleSheet>
									<cssClass>left</cssClass>
	                                <css>[local.css]small2.css</css>
								</Label>
								
								<Label name="lbl_item_quantity">
									<Anchors>
										<Anchor>
											<AbsDimension x="360" y="10" />
										</Anchor>
									</Anchors>
									<Size>
										<AbsDimension x="80" y="30" />
									</Size>
									<useStyleSheet>true</useStyleSheet>
									<cssClass>mediumrightbold</cssClass>
	                                <css>[local.css]small2.css</css>
								</Label>
								
								<Label name="lbl_kamas">
									<Anchors>
										<Anchor>
											<AbsDimension x="455" y="10" />
										</Anchor>
									</Anchors>
									<Size>
										<AbsDimension x="145" y="30" />
									</Size>
									<useStyleSheet>true</useStyleSheet>
									<css>[local.css]small2.css</css>
									<cssClass>mediumrightbold</cssClass>	
								</Label>
								<Texture name="tx_kamas"> 
	                                <Anchors>
	                                    <Anchor>
	                                       <AbsDimension x="605" y="13" />
	                                    </Anchor>
	                                </Anchors>
	                                <Size>
	                                    <AbsDimension x="15" y="15" />
	                                </Size>
	                                <uri>[local.texture]icon_ogrin.png</uri>
	                            </Texture>
																
								<Label name="lbl_sale_type">
									<Anchors>
										<Anchor>
											<AbsDimension x="650" y="10" />
										</Anchor>
									</Anchors>
									<Size>
										<AbsDimension x="130" y="30" />
									</Size>
									<useStyleSheet>true</useStyleSheet>
									<css>[local.css]small2.css</css>
									<cssClass>mediumleftbold</cssClass>
								</Label>
							</Container>
						</Grid>
						
						
						<Container name="ctr_totals">
							
							<Anchors>
								<Anchor relativePoint="BOTTOM" point="BOTTOM">
									<!-- <AbsDimension x="0" y="300" /> -->
								</Anchor>
							</Anchors>
							<Size>
								<AbsDimension x="784" y="60"/>
							</Size>
							
							
							<!-- Quantity of objects sell -->
							<Label name="lbl_total_quantity">
								<Anchors>
									<Anchor>
										<AbsDimension x="10" y="5" />
									</Anchor>
								</Anchors>
								<Size>
									<AbsDimension x="300" y="25"/>
								</Size>
								<css>[local.css]small2.css</css>
								<cssClass>bold</cssClass>
							</Label>

							<Label name="lbl_warningOnMaxKamasLimitReached">
								<Anchors>
									<Anchor relativePoint="RIGHT" point="RIGHT">
										<AbsDimension x="0" y="10" />
									</Anchor>
								</Anchors>
								<Size>
									<AbsDimension x="700" y="25"/>
								</Size>
								<css>[local.css]small2.css</css>
								<cssClass>redright</cssClass>
							</Label>
							
							<Label name="lbl_total_sales">
								<Anchors>
									<Anchor>
										<AbsDimension x="10" y="30" />
									</Anchor>
								</Anchors>
								<Size>
									<AbsDimension x="300" y="25"/>
								</Size>
								<css>[local.css]small2.css</css>
								<cssClass>bold</cssClass>
							</Label>
							
							<Label name="lbl_total_kamas">
								<Anchors>
									<Anchor>
										<AbsDimension x="355" y="3" />
									</Anchor>
								</Anchors>
								<Size>
									<AbsDimension x="400" y="25"/>
								</Size>
								<css>[local.css]small2.css</css>
								<cssClass>boldright</cssClass>
							</Label>
							
							<Texture name="tx_total_kamas_value">
                                <Anchors>
                                    <Anchor>
                                        <AbsDimension x="760" y="7" />
                                    </Anchor>
                                </Anchors>
                                <Size>
                                    <AbsDimension x="15" y="15" />
                                </Size>
                                <uri>[local.texture]icon_ogrin.png</uri>
                            </Texture>
						</Container>
			
						<!-- Grid UnsoldItems -->
						<Grid name="gd_unsoldItems">
							<Anchors>
								<Anchor>
									<AbsDimension x="0" y="42" />
								</Anchor>
							</Anchors>
							<Size>
								<AbsDimension x="784" y="360" />
							</Size>
							<rendererName>InlineXmlGridRenderer</rendererName>
							<rendererArgs>updateSaleLine,[colors.grid.line]</rendererArgs>
							<verticalScrollbarCss>[local.css]scrollBar.css</verticalScrollbarCss>
							<slotWidth>790</slotWidth>
							<slotHeight>40</slotHeight>
				
							<Container>
								<Size>
									<AbsDimension x="790" y="30" />
								</Size>
								<Label name="lbl_item_index">
									<Anchors>
										<Anchor>
											<AbsDimension x="0" y="10" />
										</Anchor>
									</Anchors>
									<Size>
										<AbsDimension x="75" y="30" />
									</Size>
									<useStyleSheet>true</useStyleSheet>
									<css>[local.css]small2.css</css>
									<cssClass>mediumcenterbold</cssClass>
								</Label>
								<Label name="lbl_item_name">
									<Anchors>
										<Anchor>
											<AbsDimension x="75" y="10" />
										</Anchor>
									</Anchors>
									<Size>
										<AbsDimension x="418" y="30" />
									</Size>
									<hyperlinkEnabled>true</hyperlinkEnabled>
									<useStyleSheet>true</useStyleSheet>
									<css>[local.css]small2.css</css>
								</Label>
								<Label name="lbl_item_quantity">
									<Anchors>
										<Anchor>
											<AbsDimension x="478" y="10" />
										</Anchor>
									</Anchors>
									<Size>
										<AbsDimension x="80" y="30" />
									</Size>
									<useStyleSheet>true</useStyleSheet>
									<css>[local.css]small2.css</css>
									<cssClass>mediumrightbold</cssClass>
								</Label>
								<Label name="lbl_sale_type">
									<Anchors>
										<Anchor>
											<AbsDimension x="650" y="10" />
										</Anchor>
									</Anchors>
									<Size>
										<AbsDimension x="130" y="30" />
									</Size>
									<useStyleSheet>true</useStyleSheet>
									<css>[local.css]small2.css</css>
									<cssClass>mediumleftbold</cssClass>
								</Label>
							</Container>
						</Grid>
						
					</Content>
			</block>
			
			
			

			</Content>
		</window>
	</Container>
</Definition>