<panel use_hit_mask="true" navigation_focus_target="true">
	<layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/>

	<flags id="appearance" value="boxes/custom/tactics kit/paper"/>
	<boolean id="should_force_refresh" value="true"/>

	<container class="plain_box" id="bssl" appearance="boxes/custom/tactics kit/selected/paper" hidden="true"></container>

	<container>
		<layout class="stick_to_sides_attachment" alignment="top,right" inset="0" apply_to_children="true"/>

		<!--injury/red/yellow card -->
		<container class="inner_box_no_margin" id="inji" height="16" width="16">
		</container>
	</container>

	<container class="main_box" id="nmcN" appearance="boxes/custom/tactics kit/paper">
		<layout class="arrange_vertical_attachment" alignment="bottom" offset="0"/>
		<layout class="stick_to_sides_attachment" alignment="horizontal" inset="0,0,0,0" apply_to_children="true"/>
		<layout class="stick_to_sides_attachment" alignment="all" inset="0" />

		<container class="main_contrast_box_no_margin" id="bcIM" red_replacement="teal 900" height="50" >
			<layout class="arrange_vertical_attachment" alignment="fill" offset="0" gap="0"/>
			<layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" apply_to_children="true"/>

			<container>
				<container id="OUTE" >
					<layout class="arrange_vertical_attachment" alignment="top" offset="0" gap="0"/>
					<layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" apply_to_children="true"/>
					<layout class="stick_to_sides_attachment" alignment="all" inset="0" />

					<!-- Extra container level to make the animations work -->
					<container height="25">
						<layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/>

						<!--role/duty-->
						<widget class="role_duty_popup_button_mini" id="rodu" size="xsmall" auto_size="none" secondary_icon="icons/custom/misc/small down" alignment="centre" disabled_colour="faded white">
							<animation class="scale_animation" animation_id="extd" duration="0.15" trigger_id="hidden" trigger_value="false" start_value="1.0,0.0" end_value="1.0,1.0" centre_point="0.0, 0.0" delay_widget_hide="false" />
						</widget>

						<!--info (morale, rating, condition)-->
						<container id="info" hidden="true">
							<layout class="arrange_horizontal_attachment" layout="12,-1,20" offset="4" gap="2"/>
							<layout class="stick_to_sides_attachment" alignment="vertical" inset="1" apply_to_children="true"/>

							<animation class="scale_animation" animation_id="extd" duration="0.15" trigger_id="hidden" trigger_value="false" start_value="1.0,0.0" end_value="1.0,1.0" centre_point="0.0, 1.0" delay_widget_hide="false" />

							<!--morale-->
							<widget class="morale_label" id="Mora"  width="12" height="12" colour="faded white" smpc="true" ShTx="false" scale_picture="true" />

							<!--rating and position share a slot - show one or the other-->
							<container>
								<layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/>

								<widget class="dashed_number_label" id="avra" alignment="centre" size="small" colour="white" wants_mouse_events="false"/>
								<widget class="position_label" id="Ppos" alignment="centre" colour="faded white" size="5.4" wants_mouse_events="false"/>
							</container>

							<!--condition-->
							<widget class="player_condition_icon_widget" id="cond" >
								<flags id="appearance" value="" />
								<boolean id="label_disabled" value="true" />
							</widget>
						</container>

						<!--familiarity container-->
						<container id="fmiL">
							<layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/>
							<widget class="player_tactical_familiarity_bar" id="fmBR" auto_hidden="false">
								<animation class="scale_animation" animation_id="extd" duration="0.15" trigger_id="hidden" trigger_value="false" start_value="1.0,0.0" end_value="1.0,1.0" centre_point="0.0, 0.0" delay_widget_hide="false" />
							</widget>

						</container>

						<!--playing time container-->
						<container id="play">
							<layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/>
							<widget class="reserves_recommended_playing_time_popup" id="ptBR" select_event="eRSP" appearance="buttons/custom/tactics/role picker mini/button" red_replacement="black" alignment="centre">
								<animation class="scale_animation" animation_id="extd" duration="0.15" trigger_id="hidden" trigger_value="false" start_value="1.0,0.0" end_value="1.0,1.0" centre_point="0.0, 0.0" />
							</widget>

						</container>

					</container>


				</container>
			</container>

			<container>
				<layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/>

				<container>
					<layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/>
					<layout class="stick_to_sides_attachment" alignment="horizontal" inset="0"/>

					<!--name-->
					<widget class="player_picker_button" entity_layout_id="it02" id="plPB" file="widgets/player selection button tactics" editor_group_id="it10" navigation_focus_target="true">
						<string id="draggable" value="false"/>
					</widget>
				</container>
			</container>
		</container>
	</container>

	<container>
		<layout class="arrange_vertical_attachment" layout="-1, 42" offset="0" gap="2"/>
		<layout class="stick_to_sides_attachment" alignment="horizontal" inset="1" apply_to_children="true"/>
		<layout class="stick_to_sides_attachment" alignment="all" inset="0" />

		<widget class="tactics_kit_picture" id="kitp" keep_aspect_ratio="true" alignment="centre" scale_picture="true" number_inset_right="0" number_inset_top="0" number_height="45">
		</widget>

		<container class="spacer" id="kitS"/>
	</container>

	<container id="gpIN">
		<layout class="stick_to_sides_attachment" alignment="all" inset="0" />

		<widget class="picture" file="icons/custom/player instruction/player pitch" id="PInI" image_alignment="bottom,left" scale_picture="false">
			<layout class="stick_to_sides_attachment" alignment="all" inset="0,0,45,0" />
		</widget>
	</container>

</panel>
