/* Author: Louis Holladay
 * Website: AdminDesigns.com
 * Last Updated: 01/01/14 
 
 * These styles control various aspects of the site
 * which benefit from being responsive 
 


    EVOLVE GREEN    - #60bb46
    DARK GREY       - #525252
    LIGHT GREY      - #efefef


---------------------------------------
HEADER RESPONSIVE CSS
--------------------------------------*/

body {
    font-family: 'Quicksand', sans-serif;
    letter-spacing: 0.02em;
    font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
}

/* Content Changes */
#content,
body.sidebar-collapsed #content {
    margin-left: 52px;
    left: 0px;
    -webkit-transition: margin .1s ease-out, left .1s ease-out;
    transition: margin .1s ease-out, left .1s ease-out;
}
#content > .container {
	padding: 25px 15px 50px 15px;
}

/* Sidebar Fixed Settings */
#sidebar.affix {
	height: 100%;
}
#sidebar.affix > #sidebar-search + #sidebar-menu {
	top: 52px;
	bottom: 52px;
}
#sidebar.affix > #sidebar-menu,
#sidebar.affix > #sidebar-search.hidden + #sidebar-menu {
	overflow: visible;
	position: absolute;
	top: 1px;
	bottom: 1px;
	width: 100%;
}


/* Sidebar Column */
#sidebar,
body.sidebar-collapsed #sidebar {
    width: 52px;
    position: fixed;
    height: 100%;
    z-index: 1024;
    background: #525252;
    top: 0;
    bottom: 0;
    
    transition: width 0.3s ease;
    -webkit-transition: width 0.3s ease;
}

/* Sidebar Search Form */
#sidebar-search,
body.sidebar-collapsed #sidebar-search {
    position: relative;
    padding: 42px 10px 10px;
    background-color: #efefef;
}
#sidebar-search form,
body.sidebar-collapsed #sidebar-search form {
	display: none;
    position: relative;
    max-width: 170px;
    float: left;
}
#sidebar-search form input.search-bar,
body.sidebar-collapsed #sidebar-search form input.search-bar {
    padding: 3px 8px;
    height: 29px;
    max-height: 30px;
    color: #999;
    font-size: 14px;
    outline: none;
    background: #fff;
}
#sidebar-search form .field-icon-right  {
	display: none;
    color: #AAA;
    font-size: 14px;
    top: 6px;
}

/* Sidebar Collapse Toggle Button */
#sidebar-search .sidebar-toggle,
body.sidebar-collapsed #sidebar-search .sidebar-toggle {
    width: 30px;
    cursor: pointer;
    height: 30px;
    font-size: 18px;
    text-align: center;
    color: #525252;
    position: absolute;
    top: 10px;
    left: 10px;
}

/* Sidebar Navigation Menu */
ul.sidebar-nav li { margin: 0 }

ul.sidebar-nav li a { color: #777 }

ul.sidebar-nav li a:hover { background-color: transparent }

ul.sidebar-nav > li > a,
body.sidebar-collapsed ul.sidebar-nav > li > a {
    display: block;
    font-size: 16px;
    text-decoration: none;
    color: #efefef;
    padding: 10px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    white-space: nowrap;
    transition: background-color 0.3s;
}

ul.sidebar-nav > li > a:hover,
ul.sidebar-nav > li > a:focus,
body.sidebar-collapsed ul.sidebar-nav > li > a:hover,
body.sidebar-collapsed ul.sidebar-nav > li > a:focus {
    background-color: rgba(0,0,0,0.1);
}

ul.sidebar-nav > li > a:hover .sidebar-nav__icon,
body.sidebar-collapsed ul.sidebar-nav > li > a:hover .sidebar-nav__icon {
    color: #60bb46;
}

    ul.sidebar-nav > li > a:hover .sidebar-title,
    ul.sidebar-nav > li > a:focus .sidebar-title,
    body.sidebar-collapsed ul.sidebar-nav > li > a:hover .sidebar-title,
    body.sidebar-collapsed ul.sidebar-nav > li > a:focus .sidebar-title {
        visibility: visible;
        opacity: 1;
        background-color: rgba(0,0,0,0.9);
        padding: 5px 10px;
        border-radius: 3px;
    }

    @media (min-width: 1200px){
        ul.sidebar-nav > li > a:hover .sidebar-title,
        ul.sidebar-nav > li > a:focus .sidebar-title {
            visibility: visible;
            opacity: 1;
            background-color: transparent;
            padding: 0;
            border-radius: 3px;
        }

        body.sidebar-collapsed ul.sidebar-nav > li > a:hover .sidebar-title,
        body.sidebar-collapsed ul.sidebar-nav > li > a:focus .sidebar-title {
            visibility: visible;
            opacity: 1;
            background-color: rgba(0,0,0,0.9);
            padding: 5px 10px;
            border-radius: 3px;
        }
    }

/* Side Nav Icon */
ul.sidebar-nav > li > a .sidebar-nav__icon,
body.sidebar-collapsed ul.sidebar-nav > li > a .sidebar-nav__icon {
    display: inline-block;
    font-size: 18px;
    margin-right: 10px;
    width: 30px;
    text-align: center;
    transition: color 0.3s;
}
ul.sidebar-nav li.active > a .sidebar-nav__icon {
    color: #60bb46;
}

/* Side Nav Title */
ul.sidebar-nav > li > a .sidebar-title,
body.sidebar-collapsed ul.sidebar-nav > li > a .sidebar-title {
    visibility: hidden;
    opacity: 0;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: opacity ease 0.3s 0.3s;
}

body.sidebar-collapsed .sidebar-logo{
    display:none;
}

/* Sub-menu */
ul.sidebar-nav ul.sub-nav,
body.sidebar-collapsed ul.sidebar-nav ul.sub-nav {
    display: none;
	position: absolute;
	z-index: 9999;
	width: 200px;
	left: 40px;
	border: 1px solid #c9c9c9;
    border-top: 0;
    background-color: #fafafa;
}

ul.sidebar-nav ul.sub-nav > li > a,
body.sidebar-collapsed ul.sidebar-nav ul.sub-nav > li > a {
	 padding: 12px 20px 12px 20px;
}
ul.sidebar-nav ul.sub-nav > li:last-child a,
body.sidebar-collapsed ul.sidebar-nav ul.sub-nav > li:last-child a { 
	padding: 12px 35px 18px 20px; 
}

/* Sub Nav Icon */
ul.sidebar-nav ul.sub-nav li span,
body.sidebar-collapsed ul.sidebar-nav ul.sub-nav li span {
    margin-right: 12px;
	min-width: 15px;
	min-height: 15px;
	float: left;
}
ul.sidebar-nav ul.sub-nav > li > a:hover .glyphicons,
body.sidebar-collapsed ul.sidebar-nav ul.sub-nav > li > a:hover .glyphicons {
	color: #d9534f ;
}

/* Side Nav Caret */
ul.sidebar-nav > li > a span.caret,
body.sidebar-collapsed ul.sidebar-nav > li > a span.caret {
	display: none;
    position: absolute;
    top: 45%;
    right: 10px;
    border-top: 5px solid;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
}
/* Side Nav caret state - we simply flip caret(border) */
ul.sidebar-nav > li > a.collapsed span.caret,
body.sidebar-collapsed ul.sidebar-nav > li > a.collapsed span.caret {
    border-top: 0;
    border-bottom: 5px solid;
}
/* Side Nav active caret state */
ul.sidebar-nav > li.active > a span.caret,
body.sidebar-collapsed ul.sidebar-nav > li.active > a span.caret { 
	color: #d9534f;
}

/* Open both menu title and Sub-menu on hover */
ul.sidebar-nav li:hover ul,
body.sidebar-collapsed ul.sidebar-nav li:hover ul {
	display: block;
}



/* SIDEBAR OPEN STATE */
/* Sidebar Fixed Settings */
body.sidebar-persist #sidebar.affix > #sidebar-menu,
body.sidebar-persist #sidebar.affix > #sidebar-search.hidden + #sidebar-menu {
	overflow: auto;
}

/* Primary Content */
body.sidebar-persist #content {
	-webkit-transition: left .1s ease-out;	
	transition: left .1s ease-out;
}
body.sidebar-persist #content:after {
	left: 190px;
	margin-left: 40px;
}
/* Sidebar Column */
body.sidebar-persist #sidebar {	
	width: 230px; 
	-webkit-transition: width .1s ease-out;
	transition: width .1s ease-out;
}
body.sidebar-persist #sidebar:before { 
	width: 230px;
	-webkit-transition: width .1s ease-out;
	transition: width .1s ease-out;
}

/* Sidebar Search Form */
body.sidebar-persist #sidebar-search form {
	width: 165px;
	display: block;
}

/* Sidebar Collapse Toggle Button */
body.sidebar-persist #sidebar-search .sidebar-toggle { margin-right: 0px; }

/* Side Nav Icon */
body.sidebar-persist ul.sidebar-nav > li > a .glyphicons { border-right: 1px solid #c9c9c9; }

/* Side Nav Title */
body.sidebar-persist ul.sidebar-nav > li > a .sidebar-title {
	top: -1px;
	text-indent: 20px;
	height: 46px;
	background: transparent;
	border-color: transparent;
    visibility: visible;
    opacity: 1;
    padding: 0;
}

/* Side Nav Sub-menu */
body.sidebar-persist ul.sidebar-nav ul.sub-nav {
    display: none;
	width: auto;
	position: relative;
	left: 0;
	border: 0;
	border-bottom: 1px solid #c9c9c9;
    background-color: #fafafa;
}

body.sidebar-persist ul.sidebar-nav li:hover ul { display: none; }

body.sidebar-persist .accordion-toggle.menu-open + .sub-nav {
	display: block;	
}

body.sidebar-persist ul.sidebar-nav ul.sub-nav > li > a,
body.sidebar-persist ul.sidebar-nav ul.sub-nav > li:last-child a { 
	padding-left: 35px; 
}

/* Side Nav Caret */
body.sidebar-persist ul.sidebar-nav > li > a span.caret { display: block; }

.evolve-logo {
    display: block;
    position: absolute;
    bottom: 0;
    padding: 2px;
    text-align: center;
    left: 0;
    right: 0;
    overflow: hidden;
}

.sidebar-collapsed .evolve-logo,
.evolve-logo {
    border: 13px solid #525252;
}

.sidebar-collapsed .evolve-logo img,
.evolve-logo img {
    max-width: 90px;
}

/* SIDEBAR STATE ON LARGE RESOLUTIONS */
@media (min-width: 1200px) {

    .evolve-logo {
        padding: 20px;
        border-width: 0;
    }

    .sidebar-collapsed .evolve-logo {
        padding: 2px;
    }

    .evolve-logo img {
        max-width: 100%;
    }

    .sidebar-collapsed .evolve-logo img {
        max-width: 90px;
    }
	
/* Sidebar Fixed Settings */
#sidebar.affix > #sidebar-menu,
#sidebar.affix > #sidebar-search.hidden + #sidebar-menu {
	overflow-x: auto;
}
body.sidebar-collapsed #sidebar.affix > #sidebar-menu,
body.sidebar-collapsed #sidebar.affix > #sidebar-search.hidden + #sidebar-menu {
	overflow: visible;
}

/* Primary Content */	
#content { 
	margin-left: 240px; 

}
#content > .container {	padding: 25px 30px 50px 30px; }

/* Sidebar Column */
#sidebar { width: 240px; }
#sidebar:before { width: 240px; }

/* Sidebar Search Form */
#sidebar-search form {
	max-width: 140px;	
	display: block;
}

/* Sidebar Collapse Toggle Button */
#sidebar-search .sidebar-toggle { margin-right: 0; }

/* Side Nav Title */
ul.sidebar-nav > li > a .sidebar-title {
	display: inline;
    visibility: visible;
    opacity: 1;
}

/* Sub-menu */
ul.sidebar-nav ul.sub-nav {
    display: none;
	width: auto;
	position: relative;
	left: 0;
	border: 0;
	border-bottom: 1px solid #c9c9c9;
    background-color: #fafafa;
}

ul.sidebar-nav li:hover ul { display: none; }

.accordion-toggle.menu-open + .sub-nav {
	display: block;	
}


ul.sidebar-nav ul.sub-nav > li > a,
ul.sidebar-nav ul.sub-nav > li:last-child a {
	 padding-left: 25px;
}

/* Side Nav Caret */
ul.sidebar-nav > li > a span.caret {
	display: block;
}


/* COLLAPSED STATE AT 1200 RESOLUTIONS */
body.sidebar-collapsed ul.sidebar-nav > li > a .glyphicons {
	border-right: 0;
}

}


@media (min-width: 1450px) {
	
	#content {
		margin-left: 240px;
	}
	#content > .container {
		padding: 35px 35px 50px 45px; 
	}
	#sidebar {
		width: 240px;
	}
	#sidebar:before {
		width: 240px;
	}
	#sidebar-search form {
		max-width: 175px;	
	}
	ul.sidebar-nav ul.sub-nav > li > a,
	ul.sidebar-nav ul.sub-nav > li:last-child a {
		 padding-left: 35px;
	}
	
}



/*---------------------------------------
  XS VIEWPORT
--------------------------------------*/

@media (max-width: 665px) {
	#topbar .breadcrumb {
		float: none;
		text-align: center;	
	}
}



/*---------------------------------------
   HEADER REPONSIVE STYLES
--------------------------------------*/

@media (max-width: 565px) {
	.navbar-brand {
		display: none;
	}
}



/*---------------------------------------
   DASHBOARD REPONSIVE STYLES
--------------------------------------*/
/* The frontpage console buttons are fluid which makes
* them an asthetic challenge because they contain text
* So we hide the search bar by default and only show it
* on extra large screens (typical desktops 1368px and up) */

#console-btns #console-search-btn {
	display: none;
}

.panel {
    border: none;
    background-color: #fafafa;
    border-radius: 5px;
    box-shadow: none;
}

.panel-heading {
    border: none;
    border-radius: 5px 5px 0 0;
    background: #575757;
    font-weight: 500;
    color: #fff;
    font-family: 'Quicksand', sans-serif;
}

.panel-body {
    padding: 20px;
}

.panel-title {
    font-size: 18px;
    text-shadow: none;
}

.panel-title-sm {
    color: #fff;
    text-shadow: none;
    font-weight: 400;
}

.panel-title-sm a {
    color: #fff;
}

.panel-footer {
    background-color: #efefef;
}

.sw-pair > input,
.sw-textarea-pair > textarea,
select,
.form-control {
    height: 36px;
    font-size: 16px;
    box-shadow: none;
    color: #525252;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: #525252;
    font-size: 16px;
    box-shadow: none;
    color: #525252;
}

.btn {
    border-radius: 100px;
}

.btn-green {
    background-color: #60bb46;
}

.btn-default,
.btn-default:hover,
.btn-default:focus,
.btn-default:active {
    color: #35a017;
    border-color: #60bb46;
    background-color: #fff;
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active {
    background-color: #60bb461c;
}

.btn [class*="fa"] {
    margin-right: 6px;
}

.sw-pair > input:focus,
.sw-textarea-pair > textarea:focus,
select:focus,
.form-control:focus {
    border-color: #60bb47;
    box-shadow: 0 0 0px 3px rgba(96, 187, 71, 0.5);
}