// helpers class for fixing input width
.fixed-width-xs
	width: 48px!important
.fixed-width-sm
	width: 80px!important
.fixed-width-md
	width: 120px!important
.fixed-width-lg
	width: 160px!important
.fixed-width-xl
	width: 200px!important
.fixed-width-xxl
	width: 250px!important

//quick fix for inline hidden content on device width - waiting for bootstrap update https://github.com/twbs/bootstrap/issues/8869
.hidden-inline-xs
	@media (max-width: $screen-xs)
		display: none!important

.row-margin-bottom
	margin-bottom: 15px
.row-margin-top
	margin-top: 15px
.row-padding-top
	padding-top: 15px

.thumbnail,
.img-thumbnail
	background-color: white
	border-color: #ccc!important

.highlight
	background-color: #F7E69F

.text-orange
	color: $amber

.badge
	padding: 1px 5px
	font-weight: normal
	font-size: 1em
	line-height: inherit
	letter-spacing: 0.0625em
	background-color: $brand-primary
	&.badge-info
		background-color: $brand-info
	&.badge-success
		background-color: $brand-success
	&.badge-warning
		background-color: $brand-warning
	&.badge-danger
		background-color: $brand-danger
	&.badge-critical
		background-color: darken($brand-danger,15%)

.label
	font-size: 12px
	font-weight: 400
	&.label-inactive
		background-color: #999
//tabs
.nav-tabs
	border-bottom: none
	li .badge
		background-color: white
		border: solid 2px #eee
		color: #666
	li a
		font-size: 1.1em
		font-family: $headings-font-family
		text-transform: uppercase
		font-weight: 300
	li.active
		a, a:hover, a:focus
			background-color: white

.table tr.parent td
	background-color: #eee!important
	border-bottom: solid 1px #ccc!important

//alert boxs
@mixin alert-panel($icon,$color)
	padding-left: 50px
	position: relative
	border: none
	border-left: solid 3px lighten($color,9%)
	&:before
		position: absolute
		top: 6px
		left: 7px
		display: block
		height: 25px
		width: 25px
		color: lighten($color,9%)
		@extend .icon
		@extend .icon-3x
		@extend .#{$icon}

.alert.alert-warning
	@include alert-panel(icon-exclamation-circle, $brand-warning)

.alert.alert-danger
	@include alert-panel(icon-exclamation-triangle, $brand-danger)

.alert.alert-success
	@include alert-panel(icon-check-circle, $brand-success)

.alert.alert-info
	@include alert-panel(icon-question-circle, $brand-info)
	color: darken($brand-info,10%)
	border: solid 1px lighten($brand-info,25%)
	background-color: lighten($brand-info,37%)

.alert.alert-addons
	$alert-addons-border: lighten($brand-addons,10%)
	$alert-addons-text: $brand-addons
	@include alert-variant(#F3F3F2, $alert-addons-border, $alert-addons-text)
	@include alert-panel(icon-puzzle-piece, $brand-addons)

.alert.alert-message
	@include alert-panel(icon-comment, $brand-warning)
	border: solid 2px $brand-warning
	background-color: white

.alert h4
	font-size: 1.45em
	margin-bottom: 1em

.overflow-y
	max-height: 200px
	margin-bottom: 15px
	overflow-y: auto

.input[type='password']
	font-size: 2em!important

.pagination
	margin: 17px 0 0 0 !important

.panel.panel-sm
	padding: 8px!important
	.panel-heading
		margin: -8px -8px 10px -8px !important
		font-size: 13px!important
		padding-left: 8px !important
	.form-group
		margin-bottom: 8px

.list-detail
	dd:not(:last-child)
		margin-bottom: 10px

//stars
.rating
	unicode-bidi: bidi-override
	direction: rtl
	font-size: 20px
	span.star
		font-family: FontAwesome
		font-weight: normal
		font-style: normal
		display: inline-block
		&:hover
			cursor: pointer
		&:before
			content: "\f006"
			padding-right: 3px
			color: #999
		&:hover:before,
		&.active:before,
		&:hover~span.star:before,
		&.active~span.star:before
			content: "\f005"
			color: #e3cf7a
