@white: #ffffff;
@black: #111111;

@dark:#2c3e50;
@green: #5CB85C;
@lightYellow: #FEFBED;

@materialBlue: darken(#2196F3, 5%);
@materialGreen: #4CAF50;
@materialGrey: #e6e6e6;
@materialDark: #33434d;
@materialOrange: #FFB74D;
@materialRed: #F44336;

@sidenav: @materialBlue;
@sidenavText: @white;


.shadow(@x: 0, @y: 1px, @blur: 2px, @spread: 0, @alpha: 0.25) {
	-webkit-box-shadow: @x @y @blur @spread rgba(0, 0, 0, @alpha);
	-moz-box-shadow: @x @y @blur @spread rgba(0, 0, 0, @alpha);
	box-shadow: @x @y @blur @spread rgba(0, 0, 0, @alpha);
}


.opacity(@opacity: 1) {
	@ieOpacity: @opacity * 100;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=@{ieOpacity})";
	filter: ~"alpha(opacity=@{ieOpacity})";
	opacity: @opacity;
}

.gradient (@startColor: #eee, @endColor: white) {
	background-color: @startColor;
	background: -webkit-gradient(linear, left top, left bottom, from(@startColor), to(@endColor));
	background: -webkit-linear-gradient(top, @startColor, @endColor);
	background: -moz-linear-gradient(top, @startColor, @endColor);
	background: -ms-linear-gradient(top, @startColor, @endColor);
	background: -o-linear-gradient(top, @startColor, @endColor);
}

.inner-shadow(@horizontal:0, @vertical:1px, @blur:2px, @alpha: 0.4) {
  -webkit-box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha);
  -moz-box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha);
  box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha);
}

.box-shadow(@horizontal:0, @vertical:1px, @blur:2px, @rgb) {
  -webkit-box-shadow: @horizontal @vertical @blur @rgb;
  -moz-box-shadow: @horizontal @vertical @blur @rgb;
  box-shadow: @horizontal @vertical @blur @rgb;
}

.background-clip(@argument: padding-box) {
  -moz-background-clip: @argument;
  -webkit-background-clip: @argument;
  background-clip: @argument;
}

.border-radius(@topright: 0, @bottomright: 0, @bottomleft: 0, @topleft: 0) {
  -webkit-border-top-right-radius: @topright;
  -webkit-border-bottom-right-radius: @bottomright;
  -webkit-border-bottom-left-radius: @bottomleft;
  -webkit-border-top-left-radius: @topleft;
  -moz-border-radius-topright: @topright;
  -moz-border-radius-bottomright: @bottomright;
  -moz-border-radius-bottomleft: @bottomleft;
  -moz-border-radius-topleft: @topleft;
  border-top-right-radius: @topright;
  border-bottom-right-radius: @bottomright;
  border-bottom-left-radius: @bottomleft;
  border-top-left-radius: @topleft;
  .background-clip(padding-box);
}

.transform(@string) {
	-webkit-transform: @string;
	-moz-transform: @string;
	-ms-transform: @string;
	-o-transform: @string;
	transform: @string;
}

.transition(@transition) {
	-webkit-transition: @transition;
	-moz-transition: @transition;
	-ms-transition: @transition;
	-o-transition: @transition;
	transition: @transition;
}




















.navbar-header {
  display: inline-block;
}

#navbar {
  display: inline-block;
  float: right;
}


.nav-sidebar {
  margin-right: -21px; /* 20px padding + 1px border */
  margin-bottom: 20px;
  margin-left: -20px;
}
.nav-sidebar > li > a {
  //padding-right: 20px;
  padding-left: 30px;
	font-size: 12px;
  text-transform: uppercase;
  color: @sidenavText;
}

.nav-sidebar > li > a:hover,
.nav-sidebar > li > a:focus {
  background-color: darken(@sidenav, 10%);
}


/* Hide for mobile, show later */
.sidenav-content {
  display: block;
  position: fixed;
  top: 0;
  bottom: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: @sidenav;
  border-right: 0.5px solid @materialBlue;

  .transform(translateX(-102%));
  .transition(0.4s ease-out);
  z-index: 1100;
  width: 250px;
  will-change: transform;
}


.sidenav-content.open{
  .transform(translateX(0%));
  .shadow(0px, 2px, 4px, 0, 0.25);
  border: none;
}

.sidenav-header {

}

.menu-title {
  display: none;
  text-align: center;
  color: @white;
  font-size: 130%;
  padding: 2.5px;
}

.menu-show {
  font-size: 140%;
  text-decoration: none;
  padding: 0.5em 1em;
  display: inline-block;
  color: lighten(@materialDark, 10%);
}

.menu-show:hover {
  text-decoration: none;
  color: @materialDark;
}

.menu-hide {
  font-size: 140%;
  text-decoration: none;
  padding: 10px 20px;
  display: inline-block;
  color: @white;
}

.menu-hide:hover, .menu-hide:visited, .menu-hide:link, .menu-hide:active {
  text-decoration: none;
  color: @white;
}


.main {
  width: 100%;
  margin-top: 20px;
  padding: 20px;
  .transition(0.4s ease-out);
}


.main.open {
  .transform(translateX(190px));
}

.sidenav-overlay {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  .opacity(0);
  background-color: #000;
  //.transition(0.4s);
  //z-index: -1;
  z-index: 1099;
}

.sidenav-overlay.open {
  .opacity(0.2);
  display: block;
}

@media (min-width: 768px) {
  .sidenav-content {
    width: 230px;
    .transform(translateX(0%));
    z-index: 1100;
    will-change: transform;
  }
  .sidenav-overlay {
    display:none;
  }

  .menu-title {
    display: block;
  }

  .menu-show {
    display: none;
  }

  .menu-hide {
    display: none;
  }

  .main, .modal {
    padding-left: 270px;
  }
  .main.open {
    .transform(translateX(0px));
  }

  .modal-body .btn-group > .btn {
    padding: 6px 12px;
  }

}

.footer {
  margin-top: 3em;
  text-align: center;
	font-size: 10px;
	color: @white;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  color: @dark;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAYAAABWKLW/AAAAGElEQVQImWP4jwQY/v/////t27cIDgwAALdPI6en+12vAAAAAElFTkSuQmCC) repeat;
}

.sidenav-content h4 {
	color:  darken(@materialBlue, 40%);
	font-size: 15px;
}

.sidenav-content .badge {
	background-color: @white;
	color: @materialBlue;
	font-size: 10px;
	margin-left: 10px;
	line-height: 7px;
}

.list-group-item.active,
.list-group-item.active:focus,
.list-group-item.active:hover {
    background-color: lighten(@materialBlue, 40%);
    border-color: lighten(@materialBlue, 40%);
		color: @materialBlue;
}

.modal-screen {
  position: absolute;
  z-index: 10000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(255, 255, 255, 0.5); /* Fallback color */
	//background-color: @white; /* Fallback color */
  .opacity(0);
}


.spinner-container {
	position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.spinner {
  margin: 100px auto 0;
  width: 100%;
  text-align: center;
}

.spinner > div {
  width: 18px;
  height: 18px;
  background-color: @materialBlue;

  border-radius: 100%;
  display: inline-block;
  -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.spinner .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
  0%, 80%, 100% { -webkit-transform: scale(0) }
  40% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bouncedelay {
  0%, 80%, 100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  } 40% {
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
  }
}

.fadeIn() {
  from {
    .opacity(0);
  }

  to {
    .opacity(1);
  }
}

@-moz-keyframes fadeIn { .fadeIn() }
@-webkit-keyframes fadeIn { .fadeIn() }
@keyframes fadeIn { .fadeIn() }

.animation(@arguments) {
	-webkit-animation: @arguments;
	-moz-animation: @arguments;
	animation: @arguments;
}

.animation(@name, @duration: 300ms, @delay: 0, @ease: ease, @fill: forwards) {
	-webkit-animation: @name @duration @ease @fill @delay;
	-moz-animation: @name @duration @ease @fill @delay;
	-ms-animation: @name @duration @ease @fill @delay;
	animation: @name @duration @ease @fill @delay;
}

.inAnimation-3 {
  .opacity(0);
  .animation(fadeIn, 400ms, 200ms, ease-out);
}


/* Slider styles *START* */
slider, [slider] {
  display: block;
  position: relative;
  height: 10px;
  width: 100%;
  margin: 15px 5px 15px 5px;
  vertical-align: middle;
}

slider div, [slider] div {
  white-space: nowrap;
  position: absolute;
}

slider div.bar, [slider] div.bar {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  background: @materialGrey;
  overflow: hidden;
}

slider div.handle, [slider] div.handle {
  cursor: pointer;
  width: 25px;
  height: 25px;
  top: -8px;
  background-color: @white;
  border: 1px solid darken(@materialGrey, 10%);
  z-index: 2;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

slider div.handle:after, [slider] div.handle:after {
  content: '';
  background-color: @white;
  width: 19px;
  height: 19px;
  position: absolute;
  top: 2px;
  left: 2px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

slider div.handle:after:hover, [slider] div.handle:after:hover {
  background-color: #000;
}

slider div.handle.active:after, [slider] div.handle.active:after {
  background-color: @materialBlue;
}

slider div.bubble, [slider] div.bubble {
  display: none;
}
/* Slyder styles *END* */


ul.tree {
    list-style: none;
}
li.tree {
  padding: 3px 0px;
}
a.tree {
  text-decoration: none;
}
.breadcrumb-selection {
  background-color: #0d8aee;
  color: #fff;
  border-radius: 3px;
  padding: 8px 7px;
}

.breadcrumb-selection > a {
  background-color: #0d8aee;
  color: #fff;
  text-decoration: none;
}

.my-list:nth-child(even) {
  background-color: #f5f5f5;
  padding: 10px 15px;
}
.my-list:nth-child(odd) {
  background-color: #f1f1f1;
  padding: 10px 15px;
}


.my-list.active, .my-list.active > a {
  background-color: #0d8aee;
  color: #fff;
  text-decoration: none;
}

.dashed-box {
  position: relative;
  border: 1px dashed #888;
  padding: 10px;
}

.dashed-horizontal-line {
  border-bottom: 1px dashed #888;
  width: 30px;
  position: absolute;
  left: -30px;
  top: 40px;
}

.dashed-vertical-line {
  border-left: 1px dashed #888;
  height: 30px;
  position: absolute;
  left: 40px;
  top: -30px;
}
