/*
---------------------------------------------------------------
  Note that styles you apply to the main menu items are inherited by the sub menus items too.
  If you'd like to avoid this, you could use child selectors (not supported by IE6) - for example:
  .sm-grey > li > a { ... } instead of .sm-grey a { ... }
---------------------------------------------------------------*/


/* Menu box
===================*/


	.sm-grey  {
		border-bottom:1px solid #6d6049;
		border-top:1px solid #6d6049;
		margin-bottom: 10px;
background: #7a4545; /* Old browsers */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZlZmVmZSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNkZWRkZGQiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top,  #444343 0%, #000000 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#444343), color-stop(100%,#000000)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  #444343 0%,#000000 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  #444343 0%,#000000 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  #444343 0%,#000000 100%); /* IE10+ */
background: linear-gradient(to bottom,  #444343 0%,#000000 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#444343', endColorstr='#000000',GradientType=0 ); /* IE6-8 */
/* radius */
-webkit-border-radius: 0px;
border-radius: 0px;

		}
	
	.sm-grey ul {
		background:#fff;
		border:1px solid #bbb;
		}


/* Menu items
===================*/

	.sm-grey a {
		padding:11px 12px;
		color:#fff;
		font-size:13px;
		line-height:17px;
		text-decoration:none;
		}
		
	.sm-grey ul a {
		color:#000;
		}

	.sm-grey a i {
		margin-right: 6px;
		color: #ffffff;
		font-size: 14px;
		}
		
		
	.sm-grey a.current i {
		margin: 0px;
		color: #fff;
		font-size: 14px;
		}

	.sm-grey li {
		font-weight: 600;
		}
		
	.sm-grey a:hover, .sm-grey a:focus, .sm-grey a:active,
	.sm-grey a.highlighted {
		background:#000000;
		color:#fff;
		}
		
	.sm-grey ul a:hover, .sm-grey ul a:focus, .sm-grey ul a:active,
	.sm-grey ul a.highlighted {
		/*background:#dcdcdc;
		color:#000;*/
		background:none;
		color:#85693b;
		}
		
	/* current items - add the class manually to some item or check the "markCurrentItem" script option */
	.sm-grey a.current, .sm-grey a.current:hover, .sm-grey a.current:focus, .sm-grey a.current:active {
		background: #000000; /* Old browsers */
		color:#fff;
		line-height:17px;
		}
		
	.sm-grey ul a.current, .sm-grey ul a.current:hover, .sm-grey ul a.current:focus, .sm-grey ul a.current:active {
		background: #dedede; /* Old browsers */
		color:#000;
		line-height:17px;
		}
		
	.sm-grey a.has-submenu {
		padding-right:32px;
		}
		
 	.sm-grey ul a.has-submenu,
	.sm-grey-vertical a.has-submenu {
		padding-right:23px;
		}


/* Sub menu indicators
===================*/
	
	.sm-grey a span.sub-arrow {
		position:absolute;
		right:12px;
		top:50%;
		margin-top:-3px;
		/* we will use one-side border to create a triangle so that we don't use a real background image, of course, you can use a real image if you like too */
		width:0;
		height:0;
		overflow:hidden;
		border-width:4px; /* tweak size of the arrow */
		border-style:solid dashed dashed dashed;
		border-color:#fff transparent transparent transparent;
		}
	
	.sm-grey-vertical a span.sub-arrow,
 	.sm-grey ul a span.sub-arrow {
		right:15px;
		top:50%;
		margin-top:-5px;
		border-width:4px;
		border-style:dashed dashed dashed solid;
		border-color:transparent transparent transparent #888;
		}
		
	.sm-grey a:hover span.sub-arrow {
		border-width:4px; /* tweak size of the arrow */
		border-style:solid dashed dashed dashed;
		border-color:#fff transparent transparent transparent;
		}
	
	.sm-grey-vertical a:hover span.sub-arrow,
 	.sm-grey ul a:hover span.sub-arrow {
		border-width:4px;
		border-style:dashed dashed dashed solid;
		border-color:transparent transparent transparent #fff;
		}



/* Items separators
===================*/

	.sm-grey li {
		border-left:1px solid #6d6049;
	}
	.sm-grey li:first-child {
		border-left:0;
	}
	.sm-grey ul li,
	.sm-grey-vertical li {
		border-left:0;
		border-top:1px solid #ccc;
	}
	.sm-grey ul li:first-child,
	.sm-grey-vertical li:first-child {
		border-top:0;
	}


/* Scrolling arrows containers for tall sub menus - test sub menu: "Sub test" -> "more..." -> "more..." in the default download package
===================*/

	.sm-grey span.scroll-up, .sm-grey span.scroll-down {
		position:absolute;
		display:none;
		visibility:hidden;
		overflow:hidden;
		border:solid #bbb;
		border-width:1px 0;
		background:#fff;
		height:20px;
		/* width and position will be automatically set by the script */
	}
	.sm-grey span.scroll-up-arrow, .sm-grey span.scroll-down-arrow {
		position:absolute;
		top:-2px;
		left:50%;
		margin-left:-8px;
		/* we will use one-side border to create a triangle so that we don't use a real background image, of course, you can use a real image if you like too */
		width:0;
		height:0;
		overflow:hidden;
		border-width:8px; /* tweak size of the arrow */
		border-style:dashed dashed solid dashed;
		border-color:transparent transparent #555 transparent;
	}
	.sm-grey span.scroll-down-arrow {
		top:6px;
		border-style:solid dashed dashed dashed;
		border-color:#555 transparent transparent transparent;
	}



/*
---------------------------------------------------------------
SEARCH
---------------------------------------------------------------*/

	.sm-grey .search {
		border-top:0;
		float: right;
		border: 0px;
		padding-top: 1px;
		width: auto;
		}


	.sm-grey form {
		margin: 4px 0px 0px 0px;
		padding: 0px;
		}
		
	.sm-grey fieldset {
		margin: 0px;
		padding: 0px;
		}
		
	.sm-grey input {
		font-size: 13px;
		border: 1px solid #ccc;
		padding: 6px 4px;
		outline: none;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;
		border-radius: 2px;
		color: #777;
		width: 120px;
		max-width: 100%;
		display: inline-block;
		margin: 0px;
		margin-left: 10px;
		background: #fff;
		}


	.button,
	button,
	input[type="submit"],
	input[type="reset"],
	input[type="button"] {
	  margin-bottom: 0px;
		}

/*
---------------------------------------------------------------
  Responsiveness
  These will make the sub menus collapsible when the screen width is too small.  
---------------------------------------------------------------*/

@media screen and (min-width: 767px) and (max-width: 960px) {
	
		.sm-grey input {
			width: 60px;
			margin-left: 0px;
			}
			
		.sm-grey li:first-child a i {
			display: inline;
			}
			
		.sm-grey a i {
			display: none;
			}
			
		.sm-grey a.current i {
			display: inline-block;
			}
	
	}


/*  #Mobile (Portrait)
================================================== */

@media screen and (min-width: 320px) and (max-width: 767px) {

	/* The following will make the sub menus collapsible for small screen devices (it's not recommended editing these) */
	ul.sm-grey{width:auto !important; border: 0px;}
	ul.sm-grey ul{display:none;position:static !important;top:auto !important;left:auto !important;margin-left:0 !important;margin-top:0 !important;width:auto !important;min-width:0 !important;max-width:none !important; }
	ul.sm-grey>li{float:none;  border: 1px solid #000000;}
	ul.sm-grey>li>a,ul.sm-grey ul.sm-nowrap>li>a{white-space:normal;}
	ul.sm-grey iframe{display:none;}

	/* Uncomment this rule to disable completely the sub menus for small screen devices */
	/*.sm-grey ul, .sm-grey span.sub-arrow, .sm-grey iframe {
		display:none !important;
	}*/


	.sm-grey .search {
		float: none;
		}


/* Menu box
===================*/

	.sm-grey ul {
		border:0;
		/* darken the background of the sub menus */
		background:rgba(100,100,100,0.1);
		-moz-box-shadow:none;
		-webkit-box-shadow:none;
		box-shadow:none;
		}


/* Menu items
===================*/


	.sm-grey a {
		padding-top:13px;
		padding-bottom:13px;
		background:transparent !important;
		color:#fff !important;
	}
	
	.sm-grey a i {
		/*color:#fff !important;*/
	}
	
	.sm-grey a.current {
		color:#fff !important;
		background: #000000 !important; /* Old browsers */
	}
	
	.sm-grey a.has-submenu {
		padding-right:23px;
	}
	
	.sm-grey ul li {
		background-color: #ffffff;
		border-top:1px solid #ccc !important;
		
	}
	
	.sm-grey ul li a {
		color:#000 !important;
	}
	
	
	.sm-grey ul li a.current {
		color:#000 !important;
		background: #dedede !important; /* Old browsers */
	}
	
	
	.sm-grey ul li a:hover, .sm-grey ul a:focus, .sm-grey ul a:active,
	.sm-grey ul a.highlighted {
		color:#85693b !important;
		}
	
	/* add some text indentation for the 2+ level sub menu items */
	.sm-grey ul a {
		border-left:8px solid transparent;
	}
	.sm-grey ul ul a {
		border-left:16px solid transparent;
	}
	.sm-grey ul ul ul a {
		border-left:24px solid transparent;
	}
	.sm-grey ul ul ul ul a {
		border-left:32px solid transparent;
	}
	.sm-grey ul ul ul ul ul a {
		border-left:40px solid transparent;
	}
	
	
/* Sub menu indicators
===================*/

	.sm-grey a span.sub-arrow {
		right:auto;
		margin-left:-14px;
	}
	/* Hide sub indicator when item is expanded - we enable the item link when it's expanded */
	.sm-grey a.highlighted span.sub-arrow {
		
	}


/* Items separators
===================*/

	.sm-grey li {
		border-left:0;
		border-top:1px solid #6d6049 !important;
	}
	.sm-grey li:first-child {
		border-top:0 !important;
		/*border-left:1px solid #d9d9d9 !important;*/
	}
	



}