html, body
	min-height: 100%
	height: 100%

body
	font: 400 #{$font-size-base}/#{$line-height-base} $font-family-base
	color: $text-color
	background-color: $body-bg
	-webkit-tap-highlight-color: rgba(0,0,0,0)

#main
	z-index: 10
	width: 100%
	padding: 36px 0 60px
	@include margin(0, 0, -50px, 0)
	@include float(left)

#content.bootstrap
	padding: 90px 10px 0
	@include transition-property(margin)
	@include transition-duration(0.4s)
	@include transition-timing-function(ease-out)
	.panel
		position: relative
		padding: 20px
		margin-bottom: 20px
		border: solid 1px darken($bg-content-color,10%)
		background-color: white
		@include border-radius(5px)
		&.panel-highlighted
			border-color: $brand-primary!important
			@include box-shadow(rgba($brand-primary,.15) 0 0 0 6px inset !important)
		.panel-heading
			font-family: $headings-font-family
			font-weight: $headings-font-weight
			font-size: 14px
			text-overflow: ellipsis
			white-space: nowrap
			color: #555
			height: 32px
			.btn
				padding: 4px 8px !important
			a.btn
				font-family: $font-family-sans-serif
				text-transform: none
				position: relative
				top: 2px
			i
				font-size: $icon-size-base
		.panel
			border: solid 1px #DDDDDD
		.panel.tab-content
			@include border-radius(0 0 3px 3px)
	h3:not(.modal-title), .panel-heading
		border: none
		font-size: 1.2em
		line-height: 2.2em
		height: 2.2em
		text-transform: uppercase
		border-bottom: solid 1px #EEEEEE
		@include padding(0, 0, 0, 5px)
		@include margin(-20px, -16px, 15px, -16px)
		i, a
			color: contrasted($bg-panel-heading-color)
		.badge
			color: $gray
			font-size: 1.1em
			line-height: 1.2em
			padding: 0 10px
			font-weight: 700
			border: solid 1px lighten($gray-light,25%)
			background-color: white
			@include margin-left(0.4em)
			@include border-radius(20px)
			a
				display: block
				font-size: 0.8em
		.panel-heading-action
			line-height: 0
			position: absolute
			top: 2px
			@include right(0)
			.btn
				padding: 4px 8px !important
			.btn-group
				position: absolute
				white-space: nowrap
				top: 2px
				@include right(6px)
				a.btn
					float: none
			> a.btn
				position: absolute
				top: 0
				@include right(2px)
			a.list-toolbar-btn
				height: 30px
				width: 30px
				color: #CCC
				@include float(left)
				@include border-left(solid 1px #eee)
				&:hover
					text-decoration: none
					color: $brand-primary
				i
					text-align: center
					font-size: 18px
					line-height: 30px
			.dropdown-menu
				line-height: normal
	.panel-danger .panel-heading
		background-color: #DC143C
		color: #FFF
		margin: -20px -20px 15px -20px
		padding: 0px 10px 0px 10px

	form .alert
		clear: both
	@media (max-width: $screen-phone)
		padding: 120px 5px 0
		@include margin-left(0!important)
	.help-block
		font-style: italic
	.nav.nav-tabs li.active a
		z-index: 99
	.breadcrumb
		background-color: white
		border: solid 1px darken($bg-content-color,10%)
	.panel.panel-sm
		padding: 8px!important
		.panel-heading
			font-size: 13px
			margin: -8px -8px 10px
			@include ltr
				padding-left: 8px
			@include rtl
				padding-right: 8px
		.form-group
			margin-bottom: 8px

//data-focus
.data-focus
	&.data-focus-primary
		background-color: $brand-primary
		color: white
		@include border-radius(10px)

//orders
#customer_part
	.customerCard
		&.selected-customer .panel
			color: $brand-success
			border: solid 2px $brand-success

//modal
body.display-modal
	#content, #main
		margin: 0
		padding: 0
		background: #F8F8F8

.bootstrap
	.modal
		.alert
			h3
				margin-top: 0
	.modal-footer
		.alert
			text-align: left

//todo: remove temp fix for bootstrap RC1 -> final
.bootstrap
	input[type="text"],input[type="search"],input[type="password"], textarea, select
		@extend .form-control

//panels
.bootstrap
	.panel
		.panel-footer
			height: 73px
			border-color: #eee
			background-color: #FCFDFE
			margin: 15px -20px -20px
			.btn.pull-right:not(:first-child)
				@include margin-right(5px)
			.btn
				line-height: 1em

#header
	.panel-footer
		margin: 15px 0 0!important
		height: 40px!important

//list header
.list_action_wrapper
	margin-bottom: 15px
	.list_availibility_container
		position: relative
		.dropdown-menu
			right: 0
			padding: 8px 12px
			label
				font-weight: 400
	#selected_filter_container
		background-color: #fff
		padding: 8px 20px
		border: solid 1px #d3d8db
		border-radius: 5px 5px 0 0
		font-size: 14px
		min-height: 52px
		margin-top: 15px
		.selected_filters > span
			font-size: 12px
			padding: 6px 10px
			display: inline-block
			background: #F5F8F9
			border: 1px solid #A0D0EB
			border-radius: 3px
			&+ span
				margin-left: 12px
			.filter_value
				font-weight: 700
			i
				cursor: pointer

	#list_filters_panel
		margin-top: 15px
		margin-bottom: 0
	#selected_filter_container + #list_filters_panel
		margin-top: 0
	#selected_filter_container + div.panel
		border-top: transparent
		border-radius: 0 0 5px 5px
	.list_filters
		padding: 0 30px
		display: grid
		grid-template-columns: repeat(3, minmax(0, 1fr))
		gap: 8px 40px
		&>.row
			display: flex
			align-items: center
		.date_range, .input_range
			display: flex
			justify-content: space-between
			gap: 15px
		.date_range .input-group:first-child
			margin-bottom: 0
		label
			text-align: right
			font-weight: 400
		.actions
			grid-column-start: 1
			grid-column-end: 4
	@media (max-width: $screen-desktop)
		.list_filters
			grid-template-columns: repeat(2, 1fr)
			.actions
				grid-column-start: 1
				grid-column-end: 3

	@media (max-width: $screen-tablet)
		.list_filters
			grid-template-columns: repeat(1, 1fr)
			.actions
				grid-column-start: 1
				grid-column-end: 2
			label
				text-align: left



//help containers
#main.helpOpen
	width: 70%
	@media (max-width: $screen-lg)
		width: 100%

#help-container
	position: relative
	margin: 0
	padding: 0
	float: right
	width: 30%
	margin-top: 155px
	margin-bottom: 50px
	background-color: white
	box-sizing: border-box
	overflow-x: hidden
	@media (max-width: $screen-lg)
		display: none

.page-topbar
	#help-container
		margin-top: 140px
