/* General */

/*** Colors***/
@blue: #4b8df8;
@blue-light: #bfd5fa;
@yellow: #ffb848;
@green: #35aa47;
@purple: #852b99;
@red: #e02222;
@white: #ffffff;
@black: #000;
@gray-dark: #3d3d3d;
@gray: #808080;
@gray-light: #ccc;
@gray-light-2: #e5e5e5;
@orange: #FFB848;

.red {
	color: @red;
}

.orange {
	color: @orange;
}

.green {
	color: @green;
}

	.green.important {
		color: @green !important;
	}

.white {
	color: @white;
}

.gray {
	color: @gray;
}

.gray-light {
	color: @gray-light;
}

.blue-light {
	color: @blue-light;
}

.right {
	float: right;
}

.left {
	float: left;
}

.align-right {
	text-align: right;
}

.align-left {
	text-align: left;
}

.align-center {
	text-align: center;
}

.striked {
	text-decoration: line-through;
}

.inline-list {
	margin: 0;
	padding: 0;
}

	.inline-list li {
		float: left;
	}

input {
	box-sizing: content-box;
}

	input.text,
	textarea.text {
		box-sizing: content-box;
		padding: 3px 5px;
		box-shadow: inset 3px 3px 5px #eeeeee;
		background: #fffff6;
	}


	input.text.mtz,
	textarea.text.mtz {
		margin-top:0;
	}
		input.text:focus,
		input.text:active {
			background: @white;
			box-shadow: none;
		}

	input:disabled {
		border: 1px solid #e5e5e5;
		background: none;
		box-shadow: none;
		color: @black;
	}

		input:disabled:hover {
			cursor: text;
		}

	input.text[type="file"] {
		padding:0 5px;
	}

textarea.text {
	padding: 5px;
}

	textarea.text:focus,
	textarea.text:active {
		background: @white;
		box-shadow: none;
	}

textarea:disabled {
	border: 1px solid #e5e5e5;
	background: none;
	box-shadow: none;
	color: @black;
}

	textarea:disabled:hover {
		cursor: text;
	}

body .modal-footer {
	text-align:center;
}

body .modal form {
	margin:0;
}

.not-implemented {
	opacity:0.25;
}


.table.table-bordered tr:hover td{
	background: #fcfede;
}

.table tr.selected td{
	background: @purple;
}

/* Widths*/

.w10 {
	width: 10%;
}

.w20 {
	width: 20%;
}

.w30 {
	width: 30%;
}

.w40 {
	width: 40%;
}

.w50 {
	width: 50%;
}

.w60 {
	width: 60%;
}

.w70 {
	width: 70%;
}

.w80 {
	width: 80%;
}

.w90 {
	width: 90%;
}

.w100 {
	width: 100%;
}

/* Type */
a {
	text-decoration: none;
}

	a:hover {
		text-decoration: none;
	}

	a, a:focus, a:hover, a:active {
		outline: 0 none;
	}

table {
	font-size: 14px;
}

.table-search i.bigger {
	font-size: 18px;
}

.checkbox input[type="checkbox"] {
	margin-left: 0;
	margin-right: 5px;
}

.radio input[type="radio"] { 
	margin-left:0; 
	margin-right:5px;
}

.tab1 {
	display: inline-block;
	width: 30px;
}

.tab2 {
	display: inline-block;
	width: 60px;
}

.tab3 {
	display: inline-block;
	width: 90px;
}

.tab4 {
	display: inline-block;
	width: 120px;
}

.tab5 {
	display: inline-block;
	width: 150px;
}

.tab-content {
	border: 1px solid #ddd;
	border-top:none;
	padding:15px;
	margin-top:-20px;
}

/* Grid */

html {
	overflow-y:scroll;
}

body {
	margin: 0;
	padding: 0;
	min-width: 1300px;
	font-family: Verdana, sans-serif;
	font-size: 13px;
	display: -webkit-flex;
	display: -moz-box-flex;
	display: flex;
	-webkit-align-items: stretch;
	-moz-align-items: stretch;
	align-items: stretch;
	flex-direction: column;
	-webkit-flex-direction: column;
	background: #3D3D3D;
}

/* Header */
header {
	display: -webkit-flex;
	display: -moz-box;
	display: flex;
	height: 40px;
	background: #1f1f1f;
	color: #ddd;
	padding: 0 20px 0 0;
	font-size: 13px;
}

	header i {
		font-size: 16px;
	}

#logo {
	cursor: pointer;
	width: 200px;
	height: 40px;
	background: url(../images/logo.png) 0 0 no-repeat;
	text-indent: 100%;
	white-space: nowrap;
	overflow: hidden;
}

	#logo:hover {
		background-position: 0 -40px;
	}

#topnav {
	-webkit-flex: 1;
	-moz-box-flex: 1;
	flex: 1;
}

	#topnav a {
		height: 20px;
		padding: 10px;
		display: inline-block;
		color: #ddd;
	}

		#topnav a:hover {
			background-color: #333;
		}

		#topnav a.active,
		#topnav a.active:hover {
			box-shadow: 0 3px 8px rgba(0, 0, 0, 0.125) inset;
			color: #fff;
			background: @red;
			position: relative;
		}

			#topnav a.active:after {
				border-left: 6px solid transparent;
				border-right: 6px solid transparent;
				border-top: 6px solid @red;
				bottom: 0;
				display: inline-block;
				height: 0;
				left: 50%;
				margin: 0 0 -6px -7px;
				position: absolute;
				width: 0;
				content: "";
			}

		#topnav a i {
			margin-right: 0;
		}

#usernav {
	width: 250px;
	display: -webkit-flex;
	display: -moz-box;
	display: flex;
	-webkit-justify-content: flex-end;
	-moz-justify-content: flex-end;
	justify-content: flex-end;
}

	#usernav a {
		color: #808080;
	}

	#usernav div {
		margin: 0 4px;
		text-align: center;
	}

		#usernav div:hover {
			background: #333;
		}

	#usernav .alerts a,
	#usernav .messages a,
	#usernav .tasks a {
		width: 18px;
		height: 20px;
		padding: 10px 12px;
		position: relative;
		display: block;
	}

	#usernav a i {
		font-size: 18px;
		top: 5px;
	}

	#usernav .username span{
		height: 20px;
		padding: 10px 12px;
		padding-right: 4px;
		display: block;
	}

	#usernav .logout {
		margin-right: 0;
	}

		#usernav .logout a {
			height: 20px;
			padding: 10px 12px;
			padding-right: 4px;
			display: block;
		}

	#usernav .red-label {
		background: @red;
		padding: 1px 6px 3px;
		border-radius: 12px !important;
		font-size: 11px;
		height: 14px;
		position: absolute;
		right: 4px;
		top: 8px;
		color: white;
		display: inline-block;
	}

section {
	display: -webkit-flex;
	display: -moz-box;
	display: flex;
	-webkit-flex: 1;
	-moz-box-flex: 1;
	flex: 1;
	-webkit-align-content: stretch;
	align-content: stretch;
}

/* Aside */

aside {
	width: 200px;
	position: relative;
}

	aside .nav-wrap {
		display: none;
	}

		aside .nav-wrap.active {
			display: block;
		}

	aside .nav {
		list-style: none;
		margin: 0;
		margin-top: 10px;
		margin-bottom: 20px;
		padding: 0;
		width: 100%;
	}

	aside .second.nav-wrap {
		position: absolute;
		top: 0;
		left: 0;
		width: 185px;
		height: 100%;
		background: #3D3D3D;
		border-left: 15px solid #3D3D3D;
		padding-top: 15px;
	}

		aside .second.nav-wrap ul {
			margin-top: 0;
		}

		aside .second.nav-wrap li {
			background: @gray;
		}

			aside .second.nav-wrap li:first-child a {
				background: #1f1f1f;
				margin-bottom: 15px;
				color: #3d3d3d;
				padding: 0;
			}

			aside .second.nav-wrap li:first-child i {
				color: @white !important;
			}

			aside .second.nav-wrap li:first-child .btn {
				display: block;
			}

			aside .second.nav-wrap li a {
				color: @gray-light-2;
				background: @gray;
				padding-right: 5px;
			}


			aside .second.nav-wrap li i:not(.red) {
				color: #454545;
			}

			aside .second.nav-wrap li a:hover {
				background: #4B4B4B;
			}

			aside .second.nav-wrap li:hover i:not(.red) {
				color: @black;
			}

			aside .second.nav-wrap li i.red {
				color: @red !important;
			}

			aside .second.nav-wrap li i.orange {
				color: @orange !important;
			}

			aside .second.nav-wrap li.active a {
				background: @white;
				box-shadow: none;
				color: @black;
			}

			aside .second.nav-wrap li.active i {
				color: @gray-dark;
			}

		aside .second.nav-wrap > li {
			background: @red;
		}


	aside .hide.active {
		display: block;
	}

	aside .nav a {
		border-top: 1px solid #595959;
		display: block;
		font-size: 13px;
		margin: 0;
		padding: 10px 15px;
		position: relative;
		color: #ccc;
	}

		aside .nav a:hover {
			background-color: #4B4B4B;
		}

	aside .nav li:first-child a {
		border-top: none;
	}

	aside .nav .active a {
		background: @red;
		box-shadow: 0 3px 8px rgba(0, 0, 0, 0.125) inset;
		border-top-color: transparent;
		color: @white;
	}

		aside .nav .active a:after {
			background-image: url("../images/sidebar-menu-arrow.png");
			display: block;
			float: right;
			height: 25px;
			position: absolute;
			right: -1px;
			top: 8px;
			width: 8px;
			content: "";
		}


	aside .nav i {
		color: @gray;
		margin-right: 0.7em;
	}

	aside .nav .active a i {
		color: @white;
	}


	aside .search-box {
		border-bottom: 1px solid #959595;
		padding-bottom: 2px;
		margin: 20px 15px;
		position:relative;
	}

		aside .search-box input {
			background-color: #3D3D3D;
			color: #BABABA;
			border: none;
			width: 143px;
			box-shadow: none !important;
			margin-bottom: 0;
		}


			aside .search-box input:active,
			aside .search-box input:focus {
				outline: none;
			}

		aside .search-box .btn {
			position:absolute;
			right:0;
			top:4px;
			display: inline-block;
			color: @gray;
			background: none;
			padding: 0;
			margin: 0;
		}

		aside .search-box i {
			margin-right: 0;
		}


	aside .dd-wrap select {
		width: 180px;
		margin: 0 0 10px 10px;
	}

	aside .nav .subnav {
		display: none;
		list-style: none;
		margin: 0;
		margin-top: 10px;
		margin-bottom: 20px;
		padding: 0;
		width: 100%;
	}

	aside .nav .active .subnav {
		display: block;
	}

	aside .nav .subnav a,
	aside .nav .acitive .subnav a {
		background: transparent;
		box-shadow: none;
		color: #ccc;
		padding-left: 25px;
	}

		aside .nav .subnav a i,
		aside .nav .acitive .subnav a i {
			color: @gray;
		}

		aside .nav .subnav a:after,
		aside .nav .acitive .subnav a:after {
			display: none;
		}

	aside .nav .subnav .active a,
	aside .nav .active .subnav .active a {
		background: #4B4B4B;
		color: @white;
	}

		aside .nav .subnav .active a:hover,
		aside .nav .active .subnav a:hover {
			background: #4B4B4B !important;
		}

/* Content */
article {
	-webkit-flex: 1;
	-moz-box-flex: 1;
	flex: 1;
	padding: 15px;
	padding-bottom:0;
	background: @white;
	position: relative;
	margin-bottom:45px;
}

article .article-footer {
	margin:0 -15px;
	padding: 15px 30px;
}

.bc-wrap {
	display: none;
}

	.bc-wrap.active {
		display: block;
	}

.bcnav {
	background: @gray-light-2;
	margin-bottom: 25px;
	padding: 5px 10px;
	font-size: 11px;
}

	.bcnav a {
		color: @gray;
		display: none;
	}

		.bcnav a.active {
			display: inline-block;
		}

		.bcnav a:hover {
			color: @black;
		}

		.bcnav a:after {
			content: "\e076";
			color: @gray-dark;
			font-family: icomoon;
			padding: 0 5px;
			position: relative;
			top: 0.13em;
		}

	.bcnav i {
		color: @gray-dark;
		top: 0.1em;
	}


.page-commands {
	float: right;
	position: absolute;
	top: 10px;
	right: 25px;
}

	.page-commands .btn {
		position:relative;
		top:-10px;
		padding: 10px !important;
		border-radius: 0 0 15px 15px !important;
	}

	.page-commands span {
		position: relative;
		top: 2px;
		margin-right: 17px;
	}

/* Overrides */

[class^="icon-"] {
	font-style: normal;
	margin-right: 0.5em;
	position: relative;
	top: 0.15em;
	height: 1em;
	width: 1em;
	display: inline-block;
}

.label {
	border-radius: 16px !important;
	padding: 0;
	background: @gray-light-2;
}

	.label i.red {
		color: @red;
	}

	.label i.blue {
		color: @blue;
	}

	.label [class^="icon-"] {
		margin: 0;
		top: 1px;
		left: 1px;
		color: @gray-dark;
		font-size: 14px;
		height: 16px;
		width: 16px;
		padding: 5px;
		text-shadow: none;
	}

.alert.notification {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	padding:15px;
}

.alert .label {
	background: @white;
	margin-right: 10px;
}

.btn.icn-only,
.btn.btn-mini {
	height: 16px;
	padding: 5px;
	line-height: 16px;
}

	.btn.icn-only [class^="icon-"] {
		margin: 0;
		top: 0;
		padding: 0;
	}

.btn + .btn {
	margin-left: 15px;
}

.btn.orange-stripe {
	border-left: 3px solid @orange;
}

.btn.gray-stripe {
	border-left: 3px solid @gray;
}

.table td:last-child,
.table th:last-child {
	text-align: left;
}

.table td:first-child,
.table th:first-child {
	text-align: left;
}

.table td {
	line-height: 22px;
}

	.table td.new {
		font-weight: bold;
	}


.table-hover tbody tr:hover > td, .table-hover tbody tr:hover > th {
	background-color: #F0f0f0;
}

.table-row-click tbody tr:hover > td:first-child, .table-row-click tbody tr:hover > th:first-child {
	cursor: pointer;
}

.table + .btn-more {
	margin-top: -20px;
	display: block;
}

.table tbody th {
color:#808080;
font-size:14px;
font-weight:normal;
}
.pagination {
	margin-top:-10px;
}

.pagination ul > li > a:hover, .pagination ul > li > a:focus, .pagination ul > .active > a, .pagination ul > .active > span {
background-color: #F0F0F0;
}

.input-icon {
	position: relative;
}

.btn-group .btn.icn-only {
	height: auto;
	padding: 7px 14px;
	margin:0;
}

.filter-panel {
	background: #fafafa;
	padding: 5px;
	margin-bottom: 15px;
	height: 30px;
	border:1px solid #e5e5e5;

	& input, & select {
		margin-bottom: 0;
		border-color: #e3e7ea;
	}

		& input.text {
		margin-top:0;
		}

	& .btn,
	& .btn.icn-only  {
		margin-top: 0;
		height: 30px;
		line-height: 30px;
		padding: 0 10px;	
	}
}


.form .form-actions {
	padding-left: 20px;
	margin-top: 40px;
}

.form-actions.order {
	padding-left:20px !important;
	margin:0 -10px -10px -10px;
}
.tree {
	list-style: none;
}

	.tree li {
		margin-left: 0;
		margin-right: 10px;
	}

	.tree .checkbox input[type="checkbox"] {
		margin-left: 0;
		margin-right: 5px;
	}


	.tree.tree-inline li {
		display: inline-block;
		width: auto;
	}

.branch {
	list-style: none;
}

.portlet .tree {
	margin-left: 0;
	margin-bottom: 25px;
}

.portlet-title .caption {
	float: none !important;
}

.control-label {
	font-size: 14px;
	color: @gray;
}

.td-thumb {
	width: 50px;
}

.thumb.small {
	width: 50px;
}

/* Ajax loader */
.ajax-loader {
	background: #FFF2AF url(../images/ajax-loader.gif) no-repeat 30px center;
	content: "";
	height: 30px;
	line-height: 30px;
	position: fixed;
	right: 0;
	left: 0;
	margin: auto;
	top: 55px;
	text-align: left;
	width: 105px;
	padding-left: 60px;
	box-shadow: 3px 3px 5px #AAA;
	z-index:2002;
	opacity:1;
	-webkit-transition-property: opacity;
	-webkit-transition-duration: 0s;
	-webkit-transition-timing-function: linear;
	-webkit-transition-delay: .5s;
}

	.ajax-loader.hide {
		opacity:0;
		display:block !important;
	}

		.ajax-loader.hide .ajax-overlay {
			display:none !important;
		}

.ajax-overlay {
	background:rgba(255,255,255,0.0);
	z-index:2001;
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
}


/* Ajax loader */
.error-loader .content{
	background: #FFBFAF url(../images/bomb.png) no-repeat 10px 10px;
	content: "";
	min-height: 36px;
	line-height: 1.5em;
	position: fixed;
	right: 0;
	left: 0;
	margin: auto;
	top: 55px;
	text-align: left;
	width: 650px;
	padding:10px;
	padding-left: 60px;
	box-shadow: 3px 3px 5px #000;
	opacity:1;
	z-index:3005;
	-webkit-transition-property: opacity;
	-webkit-transition-duration: 0s;
	-webkit-transition-timing-function: linear;
	-webkit-transition-delay: .5s;
}

	.error-loader.hide {
		opacity:0;
		display:none !important;
	}

		.error-loader.hide .error-overlay {
			display:none !important;
		}

.error-overlay {
	background:rgba(0,0,0,0.25);
	z-index:3000;
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
}


/* SYstem panel */
.system.panel {
	width: 291px;
	margin: 25px auto;
	padding: 10px;
	background: @white;
}

	.system.panel .login-form {
		width: 100%;
		margin-bottom: 0;
	}

	.system.panel .checkbox input {
		margin-left: 0 !important;
		margin-right: 5px !important;
	}

	.system.panel .form-actions {
		margin: 15px -10px -10px -10px !important;
		text-align:center;
	}


/* Product */

.product-header {
	height:145px;
}

	.product-header .control-group {
		margin-bottom:0;
	}

	.product-header .control-label {
		margin-bottom:0;
	}

	.product-header input {
		margin:0;
	}

.product-image {
	width:120px;
	margin-top:3px;
}

	.product-image .thumb {
		width:100px;
	}

.product-code {
	width:390px;
	padding-top:27px;
}

.product-details {
margin-left:120px;
margin-right:440px;
margin-bottom:10px;
}


.product-details .control-group + .row-fluid {
	margin-top:15px;
}

/* Pager */
.pagination a:hover {
	cursor:pointer;
}

/* Uploader*/
.upload-thumb {
	max-height:68px;
}

.upl-uploaded i{
	font-size:20px;
}

 .fileinput-button {
  position: relative;
  overflow: hidden;
 }

 .fileinput-button input {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  opacity: 0;
  filter: alpha(opacity=0);
  transform: translate(-300px, 0) scale(4);
  font-size: 23px;
  direction: ltr;
  cursor: pointer;
 }

.progress {
	display:block;
	height:20px;
	margin:7px 0;
}

/* Order */
.insurance-block {
margin-top:10px;
}
.insurance-measure {
	display:inline-block;
	margin-right:10px;
}

/* Table import */
.table.table-import {
	text-align:left !important;
	font-size:12px;
	background:white;
}

	.table.table-import .result {
		text-align:left !important;
	}

	.table.table-import thead th:last-child {
		text-align:left !important;
	}


/* Portel overrides*/

.portlet.box .portlet-title .tools {
	position:relative;
	top:-4px;
}

.portlet.box .portlet-title .tools .text {
	margin:0;
}

	.portlet.box .portlet-title .tools .btn {
		padding: 6px 10px;
		line-height: 16px;
	}

.portlet-footer {
	padding: 15px;
	background-color: #f2f2f2;
	border-top: 1px solid #e5e5e5;
}

.table td .gray {	
	color:#ccc;
}

.table thead tr th {
	font-weight:bold;
}